1 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3 * docs/grub.texi (configfile): Explain environment variable
6 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
10 Remove several trivially-unnecessary uses of nested functions.
12 * grub-core/commands/i386/pc/sendkey.c
13 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
15 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
17 (legacy_file_getline): ... this.
18 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
20 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
21 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
23 (probe_dummy_iter): ... this.
24 * grub-core/kern/i386/coreboot/mmap.c
25 (grub_linuxbios_table_iterate: check_signature): Likewise.
26 * grub-core/kern/parser.c (grub_parser_split_cmdline:
27 check_varstate): Likewise. Mark inline.
28 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
29 an additional parameter.
30 (find_long: fnd_long): Likewise. Pass two additional parameters.
31 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
32 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
33 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
34 Likewise. Rename to ...
35 (grub_cmos_find_port_iter): ... this.
36 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
38 (find_rtc_iter): ... this.
40 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
41 function directly into the function body, since it is only called
44 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
46 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
47 __attribute__ ((unused)).
48 * grub-core/video/bochs.c (find_card): Likewise.
49 * grub-core/video/cirrus.c (find_card): Likewise.
50 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
51 * grub-core/video/sis315pro.c (find_card): Likewise.
52 * grub-core/video/sm712.c (find_card): Likewise.
54 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
56 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
57 Fixes Savannah bug #37821.
59 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
61 Apply program name transformations at build-time rather than at
62 run-time. Fixes Debian bug #696465.
64 * acinclude.m4 (grub_TRANSFORM): New macro.
65 * configure.ac: Create output variables with transformed names for
67 * util/bash-completion.d/grub-completion.bash.in: Use
68 pre-transformed variables for program names.
69 * util/grub-install.in: Likewise.
70 * util/grub-kbdcomp.in: Likewise.
71 * util/grub-mkconfig.in: Likewise.
72 * util/grub-mkconfig_lib.in: Likewise.
73 * util/grub-mknetdir.in: Likewise.
74 * util/grub-mkrescue.in: Likewise.
75 * util/grub-mkstandalone.in: Likewise.
76 * util/grub-reboot.in: Likewise.
77 * util/grub-set-default.in: Likewise.
78 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
79 * tests/util/grub-shell-tester.in: Remove unused assignment.
80 * tests/util/grub-shell.in: Likewise.
81 * util/grub.d/00_header.in: Likewise.
83 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
85 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
87 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
89 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
91 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
93 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
94 Reported by: Eriks Latosheks <foresterlv>.
96 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
98 * docs/grub.texi (Network): Update instructions on generating netboot
101 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
103 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
104 around device name if necessarry.
106 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
108 * util/grub-install.in: Follow the symbolic link parameter added
111 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
113 * util/grub-install.in: Remove stale TODO.
115 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
117 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
118 dynamic allocation for the bootpath buffer.
120 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
122 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
125 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
127 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
128 argument rather than font name. All users updated.
129 (grub_gfxterm_set_window): Likewise.
131 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
133 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
136 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
138 * util/getroot.c (convert_system_partition_to_system_disk): Support
141 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
143 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
144 infinite loop on corrupted FS.
146 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
148 Fix big-endian mtime.
150 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
151 together sec and usec.
152 (grub_ufs_dir): Use correct byteswapping for UFS time.
154 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
156 Support big-endian UFS1.
158 * Makefile.util.def (libgrubmods): Add ufs_be.c
159 * grub-core/Makefile.core.def (ufs1_be): New module.
160 * grub-core/fs/ufs_be.c: New file.
161 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
164 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
166 * include/grub/types.h: Fix functionality unaffecting typo in
167 GRUB_TARGET_WORDSIZE conditional macro.
169 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
171 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
173 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
175 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
176 that /netbsd appears first (when it exists).
178 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
180 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
181 Fixes Savannah bug #37558.
183 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
185 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
186 description of extract_entries_configfile.
188 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
190 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
192 (grub_cmd_linux): Likewise.
193 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
194 preferred_lifetime. Update all users.
196 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
198 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
199 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
201 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
203 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
204 errors from grub-probe to /dev/null, not stdout.
206 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
208 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
211 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
213 * util/grub-install.in: Make the error message if $source_dir
214 doesn't exist more useful.
216 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
218 Fix grub-emu build on FreeBSD.
220 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
221 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
223 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
224 implementation is currently Linux-specific.
225 * util/getroot.c (exec_pipe): Define only on Linux or when either
226 libzfs or libnvpair is unavailable.
227 (find_root_devices_from_poolname): Remove unused path variable.
229 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
231 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
232 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
233 should fit before end == 63.
235 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
237 * util/grub-setup.c (write_rootdev): Remove unused core_img
238 parameter. Update all callers.
239 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
240 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
243 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
245 * util/grub-mkconfig_lib.in (grub_tab): New variable.
246 (grub_add_tab): New function.
247 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
248 * util/grub.d/10_illumos.in: Likewise.
249 * util/grub.d/10_kfreebsd.in: Likewise.
250 * util/grub.d/10_linux.in: Likewise.
251 * util/grub.d/10_netbsd.in: Likewise.
252 * util/grub.d/10_windows.in: Likewise.
253 * util/grub.d/10_xnu.in: Likewise.
254 * util/grub.d/20_linux_xen.in: Likewise.
255 * util/grub.d/30_os-prober.in: Likewise.
257 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
259 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
260 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
261 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
262 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
263 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
265 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
266 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
268 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
270 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
272 Reported by: BURETTE, Bernard.
274 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
276 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
279 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
281 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
282 IEEE1275 machines. Fixes powerpc-emu compilation.
283 * include/grub/terminfo.h: Likewise.
285 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
287 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
289 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
291 (efiemu_set_variable): Make vendor_guid a const pointer.
293 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
295 Don't require grub-mkconfig_lib to generate manpages for programs.
297 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
298 dependencies, don't add grub-mkconfig_lib.
299 (program): Pass empty adddeps.
300 (script): Pass grub-mkconfig_lib as adddeps.
302 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
304 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
305 * util/getroot.c (grub_find_device): Likewise.
306 (get_mdadm_uuid): Likewise.
307 (grub_util_is_imsm): Likewise.
308 (grub_util_pull_device): Likewise.
309 * util/grub-probe.c (probe): Likewise.
311 2012-09-10 Benoit Gschwind <gschwind>
313 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
314 (devs): Add devpath_8.
316 2012-09-08 Peter Jones <pjones@redhat.com>
318 * grub-core/Makefile.core.def (efifwsetup): New module.
319 * grub-core/commands/efi/efifwsetup.c: New file.
320 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
321 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
323 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
325 2012-09-05 Jiri Slaby <jslaby@suse.cz>
327 * configure.ac: Add SuSe path.
329 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
333 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
335 * util/import_gcry.py: Sort cipher_files, to make build system
336 generation more deterministic.
338 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
340 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
341 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
342 (grub_set_datetime): Likewise.
344 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
346 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
349 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
351 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
353 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
355 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
357 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
359 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
360 required for checkouts from bzr, but it may be useful for users or
361 distributors wishing to update translations against a tarball
362 distribution, and it can be helpful for the tarball to be a superset
365 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
367 * Makefile.am (EXTRA_DIST): Add
368 grub-core/tests/boot/linux.init-mips.S,
369 grub-core/tests/boot/linux.init-ppc.S, and
370 grub-core/tests/boot/linux-ppc.cfg.
372 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
374 * grub-core/mmap/mips/loongson: Remove empty directory.
376 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
378 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
381 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
383 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
386 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
388 * configure.ac: Strengthen the test for working -nostdinc -isystem.
390 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
392 * po/POTFILES.in: Regenerated.
394 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
396 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
397 (NetBSD): New subsection.
399 2012-07-22 Ales Nesrsta <starous@volny.cz>
401 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
402 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
404 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
406 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
407 * util/grub.d/10_hurd.in: Add missing quoting.
408 * util/grub.d/10_illumos.in: Likewise.
409 * util/grub.d/10_kfreebsd.in: Likewise.
410 * util/grub.d/10_linux.in: Likewise.
411 * util/grub.d/20_linux_xen.in: Likewise.
413 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
417 * grub-core/Makefile.core.def (lsefi): New module.
418 * grub-core/commands/efi/lsefi.c: New file.
419 * include/grub/efi/api.h: Add more GUIDs.
421 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
423 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
424 (grub_bsd_elf32_hook): Likewise.
425 (grub_bsd_elf64_size_hook): Likewise.
426 (grub_bsd_elf64_hook): Likewise.
427 (grub_bsd_load_elf): Likewise.
429 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
431 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
432 if hash function is unavailable.
433 (dec_stream_header): Likewise.
435 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
437 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
440 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
442 Fix coreboot compilation.
444 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
445 (grub_vga_text_init_real): ... this.
446 (grub_vga_text_fini): Rename to ...
447 (grub_vga_text_fini_real): ... this.
449 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
451 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
453 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
455 * grub-core/lib/legacy_parse.c: Support clear and testload.
457 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
459 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
461 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
463 * grub-core/fs/ext2.c: Experimental support for 64-bit.
465 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
467 * grub-core/net/tftp.c (ack): Fix endianness problem.
468 (tftp_receive): Likewise.
469 Reported by: Michael Davidsaver.
471 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
473 * gentpl.py: Make mans depend on grub-mkconfig_lib.
475 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
477 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
478 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
479 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
481 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
483 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
485 Reported by: Stuart Hayes.
487 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
489 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
491 * grub-core/Makefile.core.def (mda_text): New module.
492 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
493 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
494 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
495 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
497 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
498 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
499 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
501 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
503 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
505 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
507 * grub-core/term/i386/vga_common.c: Removed.
508 * include/grub/i386/vga_common.h: Likewise.
509 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
510 (grub_vga_cr_bw_read): Likewise.
511 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
512 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
513 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
514 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
515 grub_vga_cr_read/grub_vga_cr_write.
516 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
518 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
520 * configure.ac: Bump version to 2.00.
521 * grub-core/normal/main.c (features): Add feature_200_final.
523 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
524 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
526 * NEWS: Fix unclarity and language mistakes.
528 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
530 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
531 additional size to 3 pages.
532 Reported by: Stuart Hayes.
534 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
536 * NEWS: Add 2.00 entry.
538 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
540 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
541 put explicit "/" for empty path.
542 (wildcard_expand): Improve dprintf.
544 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
546 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
547 it's equal to currnode. This can happen with "" symlink.
549 2012-06-27 Yves Blusseau <blusseau@zetam.org>
551 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
552 echo shell command by printf command.
554 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
556 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
557 the value returned by firmware is the maximal position, not diumension.
558 (grub_terminfo_output_state): Use a more sane fallback.
560 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
562 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
564 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
566 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
567 frequency to 150 MHz.
569 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
573 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
575 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
577 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
579 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
581 Handle slash in HFS label.
583 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
584 (grub_hfs_dir): Tanslate slash.
585 (grub_hfs_label): Don't translate slash.
587 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
589 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
590 network protocol listing since it introduces problematic dependency on
593 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
595 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
597 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
599 Init video early on yeeloong to avoid being rebooted by watchdog.
601 * grub-core/Makefile.am (gensm712): New target.
602 (sm712_start.S): Likewise.
603 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
604 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
605 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
607 * include/grub/vga.h: Move registry definitions to...
608 * include/grub/vgaregs.h: ... here.
610 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
612 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
615 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
617 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
618 platforms with firmware disk drivers in the core.
620 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
622 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
623 informative verbose message.
624 (read_lv): Handle 64-bit segment size.
626 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
628 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
630 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
632 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
633 character but still remove trainling spaces.
634 (grub_fat_label): Ignore archive flag.
636 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
638 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
639 cast between linux_kernel_header and linux_kernel_params.
641 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
643 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
645 (grub_raid6_recover_func_t): Likewise.
646 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
647 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
649 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
651 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
653 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
657 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
658 [__NetBSD__]: Add explicit cast before bitshift.
660 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
662 * configure.ac: Bump to 2.00~rc1.
664 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
666 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
669 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
670 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
672 * docs/grub.texi: Fix search syntax.
673 (Multi-boot manual config): Put msdos rather than GPT example.
676 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
678 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
680 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
682 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
684 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
686 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
687 message on double free. Put the value of magic in case of mismatch.
689 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
691 Speed-up video on yeeloong.
693 * grub-core/video/sm712.c (framebuffer): Remove render_target and
695 (grub_video_sm712_video_fini): Unmap cached_ptr.
696 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
697 (grub_video_sm712_set_active_render_target): Removed.
698 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
699 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
702 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
704 Avoid flushing the same line multiple times on loongson.
706 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
707 Step in 32 bytes and not 1 byte.
708 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
711 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
713 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
716 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
718 Implement flow control for http.
720 * grub-core/net/http.c (parse_line): Handle response 206.
721 (http_receive): Stall if too many packets are in the queue.
722 (http_establish): Fix range header.
723 (http_seek): Fix double free.
724 (http_close): Likewise.
725 (http_packets_pulled): New function.
726 (grub_http_protocol): Set http_seek
727 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
728 (ack_real): Set window depending on i_stall.
729 (grub_net_send_tcp_packet): Likewise.
730 (grub_net_tcp_stall): New function.
731 (grub_net_tcp_unstall): Likewise.
732 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
733 (grub_net_tcp_unstall): Likewise.
735 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
737 * grub-core/net/tftp.c: Decrease stall to 50 packets.
739 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
741 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
743 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
745 * tests/util/grub-shell.in: Fix a typo.
747 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
749 Implement flow control for tftp.
751 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
752 packets but stop only if stop condition is satisfied.
753 (grub_net_fs_read_real): Call packets_pulled after real read. Use
754 `stall' instead of `eof' as stop condition.
755 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
756 (http_err): Likewise.
757 * grub-core/net/tftp.c (ack): Replace the first argument with data
759 (tftp_receive): Stall if too many packets are in wait queue.
760 (tftp_packets_pulled): New function.
761 (grub_tftp_protocol): Set packets_pulled.
762 * include/grub/net.h (grub_net_packets): New field count.
763 (grub_net_put_packet): Increment count.
764 (grub_net_remove_packet): Likewise.
765 (grub_net_app_protocol): New field `packets_pulled'.
766 (grub_net): New field `stall'.
768 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
770 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
771 sync part to handle them.
773 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
775 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
776 * grub-core/net/drivers/ieee1275/ofnet.c
777 (grub_ieee1275_net_config_real): Likewise.
779 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
781 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
782 the direct route for server/gateway.
784 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
786 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
787 IP address to server name since we may not hame the DNS.
789 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
791 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
792 freeing random buffer on failure.
793 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
795 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
797 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
799 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
801 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
803 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
804 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
805 Handle malloc error correctly.
807 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
809 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
812 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
814 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
817 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
819 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
820 none is explicitly specified.
822 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
824 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
827 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
829 Respect netmask from bootp/dhcp.
831 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
832 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
833 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
835 (grub_net_add_ipv4_local): ... this.
836 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
837 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
838 (grub_net_add_ipv4_local): New proto.
840 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
842 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
843 determining EFI memory map size.
845 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
847 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
849 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
851 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
852 when looking for partition separator.
854 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
856 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
859 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
861 Restructure FAT driver to avoid hook in label reading as it hits a
864 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
865 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
866 (grub_fat_iterate_dir): Split into ...
867 (grub_fat_iterate_init): ... this, ...
868 (grub_fat_iterate_fini): ... this, ...
869 (grub_fat_iterate_dir_next): ... and this. All users updated.
871 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
873 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
874 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
875 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
876 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
877 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
878 New fields last_key and last_key_time.
879 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
880 extended key-esc into extended key-extended key.
882 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
884 Avoid unnecessary memcpy of whole video buffer.
886 * grub-core/video/fb/video_fb.c (dirty): New struct.
887 (framebuffer): Add members current_dirty and previous_dirty.
888 (dirty): New function.
889 (grub_video_fb_fill_rect): Update dirty.
890 (common_blitter): Likewise.
891 (grub_video_fb_scroll): Likewise.
892 (doublebuf_blit_update_screen): Copy only dirty part.
893 (doublebuf_pageflipping_update_screen): Likewise.
894 (grub_video_fb_doublebuf_blit_init): Init dirty.
895 (doublebuf_pageflipping_init): Likewise.
896 (grub_video_fb_setup): Likewise.
898 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
900 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
903 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
905 Fix wildcard regexp dot and other special characters handling.
906 Reported by: Robert Mabee.
908 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
909 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
910 (split_path): Trigger expansion on '?'.
911 (unescape): New function.
912 (wildcard_expand): Unescape parts copied without globbing.
913 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
914 (grub_script_arglist_to_argv): Don't unescape expansions.
916 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
918 * include/grub/net.h (grub_net_card): New member txbufsize.
919 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
920 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
921 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
922 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
924 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
925 compatible property to check for macs. Set
926 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
927 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
928 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
929 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
930 (send_card_buffer): Use txbuf.
931 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
932 nested function out of the parent while on it.
934 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
936 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
938 (grub_ieee1275_net_config_real): Fix config pointer.
940 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
942 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
943 filename parsing to non-block devices.
945 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
947 * grub-core/kern/device.c (grub_device_open): Remove dead code.
949 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
951 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
954 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
956 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
957 UUID search command even if hints probing failed.
959 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
961 * po/POTFILES.in: Regenerated.
963 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
965 Speed-up video on fuloong.
967 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
969 (grub_pci_device_unmap_range): Handle non-cached address.
970 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
972 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
973 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
974 (grub_video_sis315pro_set_active_render_target): Removed.
975 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
976 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
977 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
979 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
982 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
984 * docs/grub.texi (Multi-boot manual config): New section.
986 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
988 Avoid slow read-back from VRAM.
990 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
992 * grub-core/video/fb/video_fb.c
993 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
994 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
995 (front_target): Remove front_target. Add pages.
996 (grub_video_fb_init): Skip setting front_pages.
997 (grub_video_fb_fini): Likewise.
998 (doublebuf_blit_update_screen): Use pages.
999 (grub_video_fb_doublebuf_blit_init): Likewise.
1000 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1001 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1002 (grub_video_fb_setup): Prefer doublebuffing.
1004 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1006 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1009 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1013 * tests/util/grub-shell.in: Handle loongson.
1014 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1016 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1017 Reboot instead of shutdown if REBOOT is defined.
1019 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1021 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1022 sized ports since unlike on real hardware qemu supports only 32-bit
1025 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1027 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1028 * util/grub-mkrescue.in: Handle loongson.
1030 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1032 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1033 Set is_part appropriately.
1034 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1035 names. Canonicalize partition without full disk.
1037 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1039 Revert usb-quiesce since it's wrong.
1041 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1042 (grub_ofdisk_init): Don't do quiesce.
1044 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1046 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1047 PowerMac workaround to Xserves as well.
1048 Information supplied by: Benjamin Herrenschmidt.
1050 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1052 Don't assume that beginning address is also the entry point on ppc.
1054 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
1055 (grub_linux_boot): Use linux_entry.
1056 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
1057 (grub_linux_load64): Likewise.
1059 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1061 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
1063 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1065 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
1066 needlessly lose the console.
1068 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1070 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
1073 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1075 Remove non-functional EFI grub_get_rtc. Put a better fatal message
1076 than current grub_get_rtc() not implemented when booted with
1077 coreboot without TSC.
1079 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
1080 Add machine/time.h to kernel headers on loongson.
1081 * grub-core/Makefile.core.def (kernel): Remove
1082 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
1083 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
1084 (grub_get_rtc): Likewise.
1085 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
1086 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
1087 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
1088 * grub-core/kern/i386/tsc.c (grub_tsc_init)
1089 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
1090 rather than installing known non-working time source.
1091 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
1092 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
1093 * include/grub/time.h: Don't include machine/time.h.
1094 * include/grub/efi/time.h: Removed.
1095 * include/grub/i386/efi/time.h: Likewise.
1096 * include/grub/i386/ieee1275/time.h: Likewise.
1097 * include/grub/powerpc/ieee1275/time.h: Likewise.
1098 * include/grub/sparc64/ieee1275/time.h: Likewise.
1099 * include/grub/x86_64/efi/time.h: Likewise.
1101 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1103 Remove dot on i and j when combining with above diacritics.
1105 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
1107 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
1108 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
1109 with dotless variants when any combining above is present.
1111 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1113 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
1114 text and not binary.
1116 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1118 Stop polling as soon as we have the packet we were waiting for.
1120 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
1122 * grub-core/net/arp.c (have_pending): New var.
1123 (pending_req): Likewise.
1124 (grub_net_arp_send_request): Fill pending_req and use have_pending as
1126 (grub_net_arp_receive): Set have_pending.
1127 * grub-core/net/dns.c (recv_data): New field stop.
1128 (recv_hook): Set stop.
1129 (grub_net_dns_lookup): Init stop and use as stop condition.
1130 * grub-core/net/http.c (http_establish): Use headers_recv as stop
1132 * grub-core/net/net.c (grub_net_poll_cards): New argument
1133 stop_condition. Stop when it goes true.
1134 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
1136 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
1138 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1140 Keep TX and RX buffers on EFI rather than always allocate new ones.
1142 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
1143 card. All users updated.
1144 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
1145 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
1146 (get_card_packet): Likewise.
1147 (grub_efinet_findcards): Init new fields.
1149 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1151 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
1152 compilation error on sparc64.
1154 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1156 Use ITC on IA64 rather than broken routine based on daytime.
1158 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
1160 (grub_get_rtc) [__ia64__]: Likewise.
1161 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
1162 (get_itc): New function.
1163 (grub_rtc_get_time_ms): Likewise.
1164 (grub_machine_init): Calibrate ITC.
1165 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
1166 Keep only on non-ia64. Don't export since it's broken and used only
1167 if TSC is unavailable.
1169 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1171 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
1173 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
1174 Skip if parent is unused.
1176 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1178 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
1180 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1182 Fix wildcard escaping.
1184 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
1185 * grub-core/script/execute.c (wildcard_escape): .. to here.
1187 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
1188 * grub-core/script/execute.c (wildcard_unescape): .. to here.
1190 * grub-core/script/execute.c (gettext_append): Always escape.
1191 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
1192 * grub-core/script/yylex.l: Don't cut away the escaping.
1193 * tests/grub_script_echo1.in: Add tests with wildcard.
1195 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1197 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
1198 (ftdi_hw_configure): Likewise.
1199 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
1201 (real_config): Handle 1.5 stop bits.
1202 (pl2303_hw_configure): Likewise.
1204 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1206 * Makefile.am: Add ppc linux bootcheck.
1207 * grub-core/tests/boot/linux-ppc.cfg: New file.
1208 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
1210 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1212 * tests/grub_script_expansion.in: Skip network protocols.
1214 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1216 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
1218 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1220 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
1224 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1226 ESCC serial driver for conducting sautomated tests in qemu.
1227 Not tested on real hardware.
1229 * include/grub/serial.h (grub_serial_port): New field escc_desc.
1230 * grub-core/term/ieee1275/escc.c: New file.
1231 * grub-core/Makefile.core.def (escc): New module.
1233 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1235 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
1237 (serial_hw_fetch): Don't read invalid handle.
1238 (serial_hw_put): Don't write into invalid handle.
1240 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1242 Add a 1.5 stop bits value.
1244 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
1245 * include/grub/serial.h (grub_serial_stop_bits_t): Add
1246 GRUB_SERIAL_STOP_BITS_1_5.
1248 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
1250 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
1251 value rather than let it uninited.
1253 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1255 * grub-core/commands/wildcard.c (+check_file): New function.
1256 (wildcard_expand): Don't expand to non-existing files, expand with
1257 suffix and not attempt to expand if not needed.
1259 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1261 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
1262 out of partitions containing other partitions.
1264 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1266 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
1267 on some qemu versions with GRUB.
1269 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
1271 (grub_openbsd_bootarg_pcibios): New struct.
1272 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
1275 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1277 * tests/util/grub-shell.in: Trim firmware output on EFI.
1279 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1281 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
1282 and coreboot since it's already in kernel.
1284 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1286 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
1287 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1288 to here. New return value start. All users updated.
1289 Recursively scan linear mappings.
1290 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
1292 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
1293 Use grub_util_get_dm_node_linear_info.
1294 * util/getroot.c (convert_system_partition_to_system_disk): Use
1295 grub_util_info rather than grub_dprintf.
1296 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
1298 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1300 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
1302 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
1303 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
1305 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1307 * include/grub/types.h (grub_set_unaligned64): New function.
1308 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
1311 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1313 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
1314 (grub_ofdisk_fini): Quiesce USB devices.
1316 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1318 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
1321 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1323 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
1325 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1327 * grub-core/disk/pata.c (grub_pata_pio_read)
1328 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
1329 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
1331 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1333 Extend automated tests to qemu-mips.
1335 * Makefile.am: reorganise tests and enable qemu-mips.
1336 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
1337 * grub-core/tests/boot/linux.init-mips.S: New file.
1338 * tests/partmap_test.in: Handle ata0 disks.
1339 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
1342 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1344 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
1346 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
1349 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1351 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
1352 (grub_halt): Likewise.
1353 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
1355 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1357 * grub-core/term/serial.c (grub_serial_register)
1358 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
1359 the behaviour in line with x86 platforms.
1361 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1363 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
1364 (grub_ata_strncpy): Likewise.
1365 (grub_ata_identify): Add missing byteswaps.
1367 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1369 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
1371 (screen_read_char): Likewise.
1372 (grub_vga_text_cls): Likewise.
1374 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1376 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
1378 (make_file_path): Likewise.
1380 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1382 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
1384 Tested by: Paulo Flabiano Smorigo.
1385 Crucial information about API supplied by: Coleen <Last name unknown>.
1386 Reviewed by: Coleen <Last name unknown>.
1388 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1390 * util/grub-mkimage.c: Disable -Wcast-align.
1392 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1394 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
1397 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1399 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
1401 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1403 * util/grub-probe.c (escape_of_path): Fix double free.
1405 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1407 * grub-core/commands/videoinfo.c (hook): Show pitch.
1409 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1411 * util/grub.d/20_linux_xen.in: Skip xen-syms.
1413 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1415 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
1416 (probe): Add ieee1275 to OFW devices.
1418 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1420 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
1422 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1424 Handle IBM OFW path.
1426 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
1428 (of_path_of_scsi): Handle vdevice.
1430 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1432 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
1433 Allocate in multiples of 16 to avoid adding a few bytes free region the
1436 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1438 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
1439 Allocate in multiples of 16 to avoid adding a few bytes free region the
1441 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
1443 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1445 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
1447 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
1448 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
1450 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
1452 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
1454 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1456 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
1457 resulted in \\ at the end of the line.
1459 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1461 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
1462 (grub_parser_cmdline_state): Likewise.
1463 (grub_parser_split_cmdline): Likewise.
1465 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1467 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
1468 /dev/root and /dev/dm-*.
1470 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1472 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
1473 fix partially stale display.
1475 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1477 * grub-core/normal/menu_entry.c (backward_char): Use right line for
1480 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1482 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
1483 Fix MBR remapping workaround.
1484 (grub_util_biosdisk_read) [__linux__]: Likewise.
1486 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
1488 * util/grub-install.in: Check for ieee1275 and not ieee1276.
1490 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1492 * configure.ac: Bump to beta6.
1494 2012-05-31 Christer Weinigel <christer@weinigel.se>
1496 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
1498 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1500 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
1501 (grub_cmd_linux): Likewise.
1503 2012-05-31 Christer Weinigel <christer@weinigel.se>
1507 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
1508 (GRUB_EHCI_MULT_TWO): Likewise.
1509 (GRUB_EHCI_MULT_THREE): Likewise.
1510 (GRUB_EHCI_CMASK_MASK): New enum value.
1511 (GRUB_EHCI_SMASK_MASK): Likewise.
1512 (GRUB_EHCI_CMASK_OFF): Likewise.
1513 (GRUB_EHCI_SMASK_OFF): Likewise.
1514 (grub_ehci_pci_iter): Enable periodic schedule.
1515 (grub_ehci_parse_notrun): Likewise.
1516 (grub_ehci_restore_hw): Likewise.
1517 (grub_ehci_setup_qh): Set flags for low speed transfers.
1518 (grub_ehci_find_qh): Use periodic list for low speed.
1519 (grub_ehci_setup_transfer): Check periodic queue as well.
1520 (grub_ehci_check_transfer): Likewise.
1521 (grub_ehci_cancel_transfer): Cancel periodic transfer.
1523 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1525 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
1528 2012-05-31 Peter Jones <pjones@redhat.com>
1530 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
1531 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
1532 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
1534 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1536 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
1537 uninited variable. Allocate at least setup_sects.
1539 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1541 Fix handling of EFI with big memory maps.
1543 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
1544 (real_mode_mem): Likewise.
1545 (real_mode_target): Likewise.
1546 (real_mode_pages): Likewise.
1547 (prot_mode_pages): Likewise.
1548 (linux_params): New var.
1549 (linux_cmdline): Likewise.
1550 (free_pages): Don't set real mode variables.
1551 (allocate_pages): Don't allocate real mode memory.
1552 (grub_e820_add_region): Remove the limit.
1553 (grub_linux_boot): Allocate and copy real mode memory.
1554 (grub_linux_unload): Free linux_cmdline.
1555 (grub_cmd_linux): Use temporary storage for parameters.
1556 (grub_cmd_initrd): Likewise.
1557 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
1558 (linux_kernel_params): Make it 1K big.
1560 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1562 * Makefile.util.def: Remove -Wno-format.
1563 * grub-core/Makefile.core.def: Likewise.
1565 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1567 * tests/cmp_unit_test.c: Add missing failure message.
1568 * tests/example_unit_test.c: Likewise.
1569 * tests/printf_unit_test.c: Likewise.
1571 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1573 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
1574 relaxation of protective MBR requirements.
1576 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1578 * configure.ac: Add condition for COND_HOST_XNU.
1579 * Makefile.util.def (10_xnu): New script.
1580 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
1582 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1584 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
1587 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1589 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
1590 Binary on other platforms stays identical.
1592 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1594 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
1597 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1599 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
1601 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1603 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
1604 rather than defining size_t ourselves to avoid conflict.
1606 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1608 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
1609 initialisation to avoid __bzero reference.
1611 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1613 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
1615 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
1616 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
1617 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
1618 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
1619 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
1621 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1623 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
1624 * grub-core/kern/misc.c: Likewise.
1625 * grub-core/loader/i386/xnu.c: Likewise.
1626 * include/grub/i386/tsc.h: Likewise.
1627 * include/grub/symbol.h: Likewise.
1629 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1631 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
1632 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
1635 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1637 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
1638 Implement Apple flavour.
1639 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
1641 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1643 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
1644 (memmove) [__APPLE__]: Likewise.
1645 (memcpy) [__APPLE__]: Likewise.
1646 (memset) [__APPLE__]: Likewise.
1647 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
1648 (memmove) [__APPLE__]: Likewise.
1649 (memcpy) [__APPLE__]: Likewise.
1650 (memset) [__APPLE__]: Likewise.
1652 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1654 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
1657 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1659 * grub-core/normal/main.c (read_config_file): Provide config_file and
1661 * util/grub.d/41_custom.in: Use config_directoy when available.
1663 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1665 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
1666 (grub_bfs_dir): Likewise.
1668 2012-05-27 Peter Jones <pjones@redhat.com>
1670 The old code gives arguments to a printf function which can't work
1671 correctly, and the compiler complains.
1673 * grub-core/tests/example_functional_test.c (example_test): Add
1675 * grub-core/tests/lib/test.c (add_failure): Rewrite.
1676 * include/grub/test.h (grub_test_assert_helper): New declaration.
1677 (grub_test_assert): Use grub_test_assert_helper.
1679 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1681 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
1682 (exfctest): ... this to avoid overlong filenames.
1685 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1687 Handle "." and ".." on squashfs.
1689 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
1690 Make inode numbers into stack.
1691 (grub_squash_read_symlink): Use stack.
1692 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
1693 (make_root_node): Fill stack.
1694 (grub_squash_open): Use stack.
1696 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1698 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
1701 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1703 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
1704 stderr on test calls.
1706 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1708 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
1710 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1712 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
1714 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1716 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
1719 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1721 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
1722 (grub_hfsplus_iterate_dir): Add "." and "..".
1724 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1726 * grub-core/fs/cpio.c (canonicalize): Handle "..".
1727 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
1729 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1731 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
1732 (find_path): Handle "." and "..".
1734 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1736 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
1737 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
1738 (grub_affs_iterate_dir): Handle hardlinks.
1740 2012-05-26 Matthew Garrett <mjg@redhat.com>
1742 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
1743 (grub_efi_console_fini): Likewise.
1744 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
1745 (grub_video_gop_fill_mode_info): Rename to ...
1746 (grub_video_gop_fill_real_mode_info): ... this.
1747 (grub_video_gop_fill_mode_info): New function.
1748 (grub_video_gop_setup): Setup double framebuffer.
1749 (grub_video_gop_get_info_and_fini): Use original framebuffer.
1751 (grub_video_gop_swap_buffers): Copy framebuffer.
1752 (grub_video_gop_fini): Free offscreen buffer.
1753 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
1755 (grub_efi_gop_blt_pixel): New struct.
1757 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1759 * gentpl.py: Remove error disabling for objconv.
1761 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1763 * configure.ac: Remove -Wunitialized as it's not available on older
1766 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1768 Fix extent overflow comparator.
1770 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
1771 (grub_hfsplus_read_block): Set type.
1772 (grub_hfsplus_cmp_extkey): Compare type.
1774 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
1776 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
1778 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1780 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
1783 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1785 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
1786 (dejavu_bold_14.pf2): New target.
1788 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1790 * configure.ac: Fix djvu font detection.
1792 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1794 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
1795 ext* instead of ext2.
1797 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1799 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
1802 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
1804 * docs/grub-dev.texi: Remove dot from .png.
1806 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1808 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
1809 protective entry in any slot.
1810 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
1811 if protective entry is found in any slot.
1813 Protective entry in non-first slot make no sense but is a widespread
1816 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1818 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
1820 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1822 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
1824 (grub_reiserfs_open): Don't free root.
1826 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1828 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
1829 after freeing for safety.
1831 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1833 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
1834 Reported by: Jordan Uggla.
1836 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
1838 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
1839 actual implementation. Specifically, clarify that the grub menu will
1840 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
1843 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
1845 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
1848 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1850 Remove unjustified hard dependency of normal.mod on gfxterm.
1852 * include/grub/term.h (grub_term_output): New member fullscreen.
1853 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
1854 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
1855 (grub_gfxterm): Set .fullscreen.
1856 * grub-core/normal/menu.c (menu_init): Use fullscreen.
1857 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
1859 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1861 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
1862 mentioning possible problems with non-ASCII (non-compliant) ISOs.
1863 Mention case-insensitive AFFS, SFS and JFS.
1865 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1867 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
1869 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1871 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
1874 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1876 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
1877 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
1879 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1881 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
1882 (grub_jfs_mount): Fill caseins.
1883 (grub_jfs_find_file): Respect caseins.
1885 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1887 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
1890 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1892 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
1893 New argument origpath. All users updated.
1895 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1897 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
1898 (read_attr): Ensure that we read start of possibly compressed block.
1900 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1902 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
1903 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
1906 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1908 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
1909 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
1910 (dejavu.pf2): Replace with ...
1911 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
1914 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1916 * util/grub.d/20_linux_xen.in: Add missing line.
1918 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1920 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
1921 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
1922 (grub_utf16_to_utf8): Likewise.
1924 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1926 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
1927 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
1928 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1929 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
1930 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1931 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
1933 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1935 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
1938 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1940 * grub-core/fs/udf.c (read_string): Bail out on size=0.
1941 (grub_udf_read_symlink): Handle read_string failure.
1943 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1945 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
1948 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1950 Fix handling of UDF symlinks.
1952 * grub-core/fs/udf.c (read_string): New argument outbuf.
1954 (grub_ufs_read_symlink): Rename to ...
1955 (grub_udf_read_symlink): ... this. All users updated.
1956 Handle symlinks with more than one component.
1958 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1960 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
1961 symlinks. Replace leading colon with a slash.
1963 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1965 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
1968 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1970 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
1971 match in inner node.
1973 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1975 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
1976 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
1977 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
1978 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
1979 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
1980 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
1981 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
1982 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
1983 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
1985 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1987 Use grub-probe and not cmp to check that disk is empty.
1989 * util/grub-install.in: Use grub-probe for zero-check.
1990 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
1991 (probe): Handle PRINT_ZERO_CHECK.
1992 (argp_parser): Handle -t zero_check.
1994 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1996 Flush block cache on adding disk to device map.
1998 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
1999 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2001 (read_device_map): Likewise.
2002 (open_device): Flush on opening.
2004 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2006 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2007 (handle_symlink): Fix off-by-one error.
2008 Canonicalize the target.
2009 (grub_cpio_dir): Canonicalize the name.
2012 (grub_cpio_open): Canonicalize the name.
2014 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2016 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2019 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2021 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2022 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2024 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2026 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2027 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
2030 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2032 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2035 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2037 Fix UFS1 big file support.
2039 * grub-core/fs/ufs.c (INODE): Removed.
2040 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2042 (INODE_MODE): Simplify.
2043 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2044 (grub_ufs_lookup_symlink): Don't use INODE.
2046 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2048 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2050 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2051 (grub_minix_data): Replace log_block_size with block_size.
2052 (grub_minix_read_file): Use block_size but avoid 64-bit division.
2053 (grub_minix_mount): Fill block_size.
2055 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2057 * configure.ac: Bump to beta5.
2059 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2061 Fix wrapped HFS+ handling.
2063 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
2064 blocks_start. All users updated.
2065 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
2067 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
2069 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2071 Fix long symlinks on reiserfs.
2073 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
2074 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
2075 (grub_reiserfs_iterate_dir): Save size for non-directories.
2076 (grub_reiserfs_open): Don't reread stat block as we already know the
2078 (grub_reiserfs_read): Split into...
2079 (grub_reiserfs_read_real): ... and ...
2080 (grub_reiserfs_read): ...this.
2082 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2084 Fix non-indexed JFS.
2086 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
2087 (grub_jfs_data): New field namecomponentlen.
2088 (grub_jfs_mount): Fill namecomponentlen.
2089 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
2091 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2093 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
2094 * tests/grub_script_echo1.in: Add tests.
2096 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2098 * util/grub-install.in: Ignore empty devicetree directory.
2100 2012-05-08 Bean <bean123ch@gmail.com>
2102 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
2104 (free_rsm): Free header as well.
2105 (free_old_fragments): Fix memory leak.
2106 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
2107 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
2108 (destroy_pq): Likewise.
2109 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
2111 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2113 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
2114 resulting hash as a precaution.
2116 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2118 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
2119 '_' in variable names.
2120 * grub-core/net/net.c (grub_net_network_level_interface_register):
2123 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2125 Fix AFFS with non-512B blocks.
2127 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
2128 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
2129 (grub_affs_data): Replace blocksize with log_blocksize.
2130 (grub_affs_read_block): Fix non-512B blocks.
2131 (grub_affs_read_symlink): Likewise.
2132 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
2133 (grub_affs_read): Fix non-512B blocks.
2134 (grub_affs_label): Likewise.
2135 (grub_affs_mtime): Likewise.
2136 (grub_affs_mount): Fix block detection routine.
2138 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2140 Add filesystem mtime to AFFS.
2142 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
2143 (aftime2ctime): New function.
2144 (grub_affs_dir): Use aftime2ctime.
2145 (grub_affs_label): Fix return value.
2146 (grub_affs_mtime): New function.
2147 (grub_affs_fs): Add mtime.
2149 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2151 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
2154 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2156 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
2159 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2161 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
2163 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2165 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
2167 (FLAGS_CASE_SENSITIVE): New enum value.
2168 (cache_entry): New struct.
2169 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
2170 cache_size and cache.
2171 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
2172 Add log_blocksize and fshelp_flags.
2173 (grub_sfs_read_extent): Handle non-512 blocks.
2174 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
2175 (grub_sfs_read_file): Handle non-512 blocks.
2176 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
2178 (grub_sfs_read_symlink): Handle non-512 blocks.
2179 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
2180 (grub_sfs_dir): Free cache.
2181 (grub_sfs_close): Likewise.
2183 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2185 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
2188 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2190 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
2192 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2194 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
2196 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
2198 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
2199 (grub_sfs_read_extent): Likewise.
2200 (grub_sfs_read_block): Likewise.
2201 (grub_sfs_mount): Likewise.
2202 (grub_sfs_iterate_dir): Likewise.
2203 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
2204 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
2206 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2208 Fix errors on compressed NTFS with 512B clusters.
2210 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
2212 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
2214 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
2215 Relax check for inline extents.
2216 (ntfscomp): Return correct -1 on error and not 0.
2218 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2220 * util/grub-install.in: Fix handling of prefix containing spaces.
2222 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2224 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
2225 (grub_squash_read_data): Fix offset byte-swapping.
2227 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2229 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
2230 per common usage and preffered in several parts of code.
2231 (grub_memcmp): Likewise.
2232 (grub_strncmp): Likewise.
2233 * include/grub/misc.h (grub_strcasecmp): Likewise.
2234 (grub_strncasecmp): Likewise.
2235 * Makefile.util.def (cmp_test): New test.
2236 (grub_script_strcmp): Likewise.
2237 * tests/cmp_unit_test.c: New file.
2238 * tests/grub_script_strcmp.in: Likewise.
2239 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
2241 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2243 * include/grub/pci.h: Move enums into no-asm part.
2245 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2247 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
2249 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2251 * util/getroot.c (find_hurd_root_device): Try to make error message
2252 and comments to translators clearer.
2254 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2256 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
2258 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2260 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
2263 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2265 * docs/grub.cfg: Update.
2267 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2269 * docs/grub.texi (PXE): Remove not present variables.
2271 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2273 * grub-core/net/net.c (defserver_set_env): New function.
2274 (defserver_get_env): Likewise.
2275 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
2277 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2279 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
2282 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2284 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
2285 * grub-core/kern/emu/hostdisk.c: Likewise.
2287 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2289 Handle hurd userspace partitions.
2291 * util/getroot.c (find_hurd_root_device): New function.
2292 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
2294 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2296 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
2298 Reported by: Bastian Blank.
2300 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2302 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
2303 crossing page boundary.
2305 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2307 Fix B-tree search in BFS, especially in presence of non-ASCII
2310 * grub-core/fs/bfs.c (bfs_strcmp): New function.
2311 (find_in_b_tree): Use standard bsearch + btree algorithm.
2313 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2315 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
2318 2012-05-03 Matthew Garrett <mjg@redhat.com>
2319 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2321 Suspend broadcom cards in order to stop their DMA.
2323 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
2324 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
2325 (pci): Don't build on x86 EFI.
2326 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
2327 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
2329 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
2330 stop_broadcom if running on EFI.
2331 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
2332 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
2333 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
2334 (grub_pci_find_capability): New proto.
2336 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2338 * docs/grub.texi: Remove dot from the extension as it apparently
2339 doesn't work with some makeinfo versions.
2341 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2343 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
2344 with GRUB expectance.
2346 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2348 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
2350 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2352 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
2353 zero after directory block since last entry may be not 0-terminated if
2354 it ends on block boundary. Use continue instead of if spanning whole
2357 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2359 Support 4K sectors UDF inline files.
2361 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
2362 (grub_udf_extended_file_entry): Likewise.
2363 (grub_fshelp_node): Name the anonymous union. Put block at the end.
2365 (get_fshelp_size): New function.
2366 (grub_udf_read_icb): Read whole block.
2367 (grub_udf_iterate_dir): Likewise.
2368 (grub_udf_dir): Likewise.
2369 (grub_udf_open): Likewise.
2371 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2373 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
2375 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2377 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
2378 inline symlinks in addition to workaround.
2380 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2382 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
2384 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2386 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
2388 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2390 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
2392 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2394 Fix reiserfs big seek times.
2396 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
2397 exact. All users updated.
2398 (grub_reiserfs_read): Use nearest btree search for seeking.
2399 Fix return value on error.
2401 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2403 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
2405 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
2406 * docs/grub.texi: Update menuentry description.
2408 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2410 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
2411 crash when embedding onto filesystem.
2413 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2415 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
2418 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2420 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
2422 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2424 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
2427 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2428 2012-05-01 Bean <bean123ch@gmail.com>
2430 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
2432 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2434 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
2435 Special behaviour for len = 0 to read whole file isn't used anywhere and
2436 can cause buffer ovewrflows in several places.
2438 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2440 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
2442 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2444 Handle RAIDZ on non-512B sectors.
2446 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
2447 max_children_ashift.
2448 (fill_vdev_info_real): Fill max_children_ashift.
2449 (read_device): Use max_children_ashift.
2451 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2453 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
2455 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2457 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
2459 * docs/grub.texi: Update device.map parts.
2461 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2463 Don't scan into non-diskfilter devices having diskfilter names.
2465 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
2466 (scan_disk): New argument accept_diskfilter. Fix recursion depth
2468 (scan_disk_hook): New function.
2470 2012-04-29 Bean <bean123ch@gmail.com>
2472 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
2475 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
2477 * configure.ac: Detect starfield theme font path
2478 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
2480 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2482 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
2483 geometry on serial consoles.
2485 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2487 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
2488 because of network consoles.
2490 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2492 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
2495 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2497 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
2500 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2502 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
2503 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
2505 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2507 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
2508 Allocate at lest 8192 for temporary buffer as required for lzo.
2510 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2512 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
2513 to cluster_bits, since it's already added in.
2514 (grub_fat_read_data): Likewise.
2516 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2518 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
2519 as long as cluster size is multiple of 512 bytes.
2521 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2523 * util/grub-mkrescue.in: Fix locale directory.
2525 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2527 * grub-core/kern/emu/hostdisk.c (map): Make static.
2529 2012-04-23 Bean <bean123ch@gmail.com>
2531 * util/grub-fstest.c (fstest): Add missing break.
2533 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
2537 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
2538 not define nr variable.
2539 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
2540 find_root_devices_from_poolname, find_root_devices_from_libzfs,
2541 grub_find_device): Do not define.
2543 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2545 Fix kfreebsd compile and behaviour.
2547 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
2549 * util/getroot.c: Fix wait.h include.
2550 (grub_guess_root_devices): Error if grub_find_device fails.
2551 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
2552 (grub_util_get_dev_abstraction): Likewise.
2553 (grub_util_pull_device): Likewise.
2554 (grub_util_get_grub_dev): Likewise.
2555 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
2557 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2559 Fix and unify wholedisk detection.
2561 * util/getroot.c (convert_system_partition_to_system_disk): New argument
2562 is_part. All users updated.
2563 (device_is_wholedisk): Removed.
2564 (grub_util_biosdisk_get_grub_dev): Use is_part.
2566 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2568 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
2571 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2573 * configure.ac: Bump to beta4.
2575 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2577 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
2578 --fs-uuid --set UUID syntax.
2580 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2582 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
2585 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2587 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
2589 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
2591 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
2593 2012-04-18 Mike Gilbert <floppym@gentoo.org>
2595 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
2597 2012-04-18 Bean <bean123ch@gmail.com>
2599 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
2602 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2604 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
2606 (grub_util_biosdisk_read): Handle Linux partitions not exactly
2607 corresponding to GRUB partitions.
2608 (grub_util_biosdisk_write): Likewise.
2610 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2612 Scan mdraid before LVM.
2614 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
2615 (grub_diskfilter_register_front): ... this.
2616 (grub_diskfilter_register_back): New function.
2617 All users of grub_diskfilter_register updated.
2619 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2621 * util/grub-install.in: Fix an automatic target detection bug.
2623 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2625 * util/grub-install.in: New option --efi-directory.
2627 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2629 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
2630 boot services if we have no other choice.
2632 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2634 * util/grub-mknetdir.in: Rename --override-directory to --directory and
2636 * tests/util/grub-shell.in: Update to --directory.
2638 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2640 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
2642 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2644 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
2645 (grub_minix_read_file): Likewise.
2646 (grub_minix_read_inode): Likewise.
2647 (grub_minix_find_file): Likewise.
2648 (grub_minix_dir): Likewise.
2650 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2652 * util/grub-setup.c (setup): Fix partition handling and blocklist
2655 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2657 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
2658 redundant buggy overlap check.
2660 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2662 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
2665 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2667 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
2668 kh.loadflags on pre-2.00 kernels.
2670 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2672 Terminate UNDI and PXE before launching the payload to avoid problems
2675 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
2676 (grub_loader_flags): ... this. All users updated.
2677 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
2678 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
2679 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
2680 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
2682 (grub_pxe_restore): Likewise.
2683 (fini_hnd): New var.
2684 (GRUB_MOD_INIT): Register shutdown hook.
2685 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
2686 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
2687 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
2688 (grub_loader_set): Rename second argument to flags.
2690 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2692 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
2694 (grub_get_num_of_utf8_bytes): New function.
2695 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
2696 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
2698 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
2699 (grub_ucs4_to_utf8): Change return type.
2701 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2703 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
2705 * grub-core/fs/bfs.c (hop_level): Likewise.
2706 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
2708 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2710 * grub-core/lib/adler32.c: Recode due to license unclearness.
2712 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2714 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
2715 (test_header): Likewise.
2717 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2719 Fix --help formatting.
2721 * util/grub-mkconfig_lib.in (print_option_help): New function.
2722 (grub_fmt): Likewise.
2723 * util/grub-install.in: Use print_option_help and grub_fmt.
2724 * util/grub-kbdcomp.in: Likewise.
2725 * util/grub-mkconfig.in: Likewise.
2726 * util/grub-mknetdir.in: Likewise.
2727 * util/grub-mkrescue.in: Likewise.
2728 * util/grub-mkstandalone.in: Likewise.
2729 * util/grub-reboot.in: Likewise.
2730 * util/grub-set-default.in: Likewise.
2731 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
2733 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2735 * linguas.sh: Remove autogenerated *.po.
2737 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2739 * po/README: Move language fetcing to ...
2740 * linguas.sh: ... here.
2741 * po/README: Point to linguas.sh.
2743 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2745 * po/README: Exclude ko.po due to disclaimer problems.
2747 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2749 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
2751 (grub_gettext_translate_real): Handle 0th string.
2752 (grub_gettext_translate): Ensure that "" isn't translated.
2754 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2756 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
2757 TRANSLATORS comment.
2758 (grub_diskfilter_print_partmap): Propagate changing of error into
2761 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2763 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
2764 to uint64_t to prevent overflow.
2765 (grub_diskfilter_lv): Increase start_extent and extent_count
2766 to uint64_t to prevent overflow.
2768 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2770 * configure.ac: Increase version.
2772 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2774 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
2776 * po/Rules-translit: New file.
2777 * po/arabic.sed: Likewise.
2778 * po/cyrillic.sed: Likewise.
2779 * po/greek.sed: Likewise.
2780 * po/hebrew.sed: Likewise.
2781 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
2782 * po/Makefile.in.in: Add extra_dist4.
2784 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2786 Handle big-endian minixfs (fixes minixfs tests on bigendian).
2788 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
2789 modify names. Introduce MODE_BIGENDIAN.
2790 * grub-core/fs/minix_be.c: New file.
2791 * grub-core/fs/minix2_be.c: Likewise
2792 * grub-core/fs/minix3_be.c: Likewise.
2793 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
2795 * grub-core/Makefile.core.def (minix_be): New module.
2796 (minix2_be): Likewise.
2797 (minix3_be): Likewise.
2799 2012-04-01 Felix <email@hamburg.de>
2801 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
2802 (devs): Add MBP 2011.
2804 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2806 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
2808 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2810 * grub-core/normal/cmdline.c (print_completion): New field
2812 (grub_cmdline_get): Handle width properly.
2814 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2816 * grub-core/commands/lsacpi.c (options): Add missing terminator.
2818 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2820 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
2821 after 29th of February.
2823 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2825 Fix exfat endianness handling.
2827 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
2828 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
2829 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
2830 Byte-swap utf16 when necessary.
2831 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
2833 2012-03-31 Anton Blanchard <anton@samba.org>
2834 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2836 Fix btrfs endianness handling.
2838 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
2839 (lower_bound): Make root uint64_t. Use root in le.
2840 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
2841 (find_path): Fix template key init.
2842 (grub_btrfs_dir): Fix mtime byteswap.
2843 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
2845 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2847 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
2848 recursion_depth. Break infinite resursions. All users updated.
2850 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2852 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
2854 Reported by: Peter Jones.
2856 2012-03-31 Anton Blanchard <anton@samba.org>
2858 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
2861 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2863 * util/grub-install.in: Fix nvram call for PreP.
2865 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2867 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
2868 the error when some elements are missing into a warning.
2870 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2872 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
2874 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
2876 * docs/grub.texi (Invoking grub-probe): New section.
2877 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
2879 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2881 Fix tab and wide character handling in editor and menu.
2883 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
2884 agglomerate control characters with combining marks.
2885 (bidi_line_wrap): Allow break on tab.
2886 (grub_unicode_get_comb_start): New function.
2887 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
2889 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
2891 * grub-core/normal/term.c (print_ucs4_terminal): New argument
2892 fixed_tab_size. All users updated.
2893 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
2894 (grub_term_getcharwidth): Handle \t.
2895 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
2898 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2900 Handle big-endian mdraid.
2902 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
2903 * grub-core/Makefile.core.def (mdraid09_be): New module.
2904 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
2905 rather than grub_le_to_cpu* and grub_cpu_to_le*.
2906 * grub-core/disk/mdraid_linux_be.c: New file.
2908 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2910 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
2912 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2914 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
2915 missing quotes which caused confusion among translators.
2917 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2919 * util/grub-mkconfig_lib.in: Fix typo.
2921 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2923 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
2925 * tests/grub_script_leading_whitespace.in: New file.
2926 * Makefile.util.def (grub_script_leading_whitespace): New test.
2928 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2930 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
2933 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2935 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
2936 starts with control character.
2938 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2940 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
2942 (grub_gdb_outbuf): Likewise.
2944 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2946 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
2947 zero terminator. Fixes a crash.
2949 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2951 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
2953 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
2954 images independently of preffered adderss field.
2956 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2958 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
2959 * grub-core/commands/regexp.c: Likewise.
2960 * grub-core/loader/i386/linux.c: Likewise.
2961 * grub-core/partmap/msdos.c: Likewise.
2962 * grub-core/script/execute.c: Likewise.
2963 * grub-core/term/gfxterm.c: Likewise.
2965 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2967 Add variable parsing in $"..." and fix several mismatches with bash.
2969 * Makefile.util.def (grub_script_gettext): New test.
2970 * grub-core/script/execute.c (parse_string): New function.
2971 (gettext_append): Likewise.
2972 (grub_script_arglist_to_argv): Use gettext_append.
2973 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
2974 * tests/grub_script_gettext.in: New file.
2976 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2978 Fix handling of leading spaces in scripts.
2980 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
2982 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
2983 other than skipping \r. All users updated.
2984 * tests/grub_script_echo1.in: Add space-related tests.
2985 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
2987 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2989 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
2991 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2993 * configure.ac: Bump up the version to beta2.
2995 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2997 Fix gettext reload bugs (e.g. inability to disable gettext
3000 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3001 main_context and secondary_context. All functions updated.
3002 (grub_gettext_translate): Rename to ...
3003 (grub_gettext_translate_real): ... this. Return NULL on failed
3005 (grub_gettext_translate): Handle secondary context.
3006 (grub_gettext_delete_list): Close file and zero-out the context.
3007 (grub_mofile_open): Don't call grub_gettext_delete_list.
3009 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3010 if locale="" to avoid pointless error message.
3011 (grub_gettext_env_write_lang): Update lang even if load fails.
3012 Handle secondary context.
3013 (grub_gettext_reread_prefix): New function.
3014 (read_main): Likewise.
3015 (read_secondary): Likewise.
3016 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3017 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3018 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3019 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3021 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3023 * configure.ac: Decrease warning level to avoid spurious warnings and
3024 to be able to compile with GCC 4.2.
3025 * Makefile.util.def: Remove -Wno-error=logical-op.
3027 2012-03-10 William Bittner <william.bittner@gmail.com>
3029 * util/import_unicode.py: Add missing brackets around string for
3032 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3034 Fix efi chainloader on network root.
3036 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3038 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3041 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3043 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3044 unused show_text member.
3045 * docs/grub.texi: Document "text" property.
3047 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3049 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
3052 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3054 Fix IMSM handling on Fedora.
3056 * util/getroot.c (grub_util_is_imsm): New function.
3057 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
3059 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3061 * Makefile.am: Strip gold section.
3062 * conf/Makefile.common: Likewise.
3063 * gentpl.py: Likewise.
3064 * grub-core/Makefile.core.def: Likewise.
3065 * grub-core/genmod.sh.in: Likewise.
3067 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3069 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
3070 * util/grub.d/20_linux_xen.in: Likewise.
3071 Based on Debian patch.
3073 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3075 * util/grub.d/10_linux.in: Fix syntax error resulting in
3076 Richard Laager's patch.
3077 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
3079 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3081 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
3084 2012-03-10 Richard Laager <rlaager@wiktel.com>
3086 * util/grub.d/10_linux.in: Fix ZFS root passing.
3088 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3090 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3091 * grub-core/commands/xnu_uuid.c: Likewise.
3092 * grub-core/loader/efi/appleloader.c: Likewise.
3093 * grub-core/script/execute.c: Likewise.
3094 * grub-core/script/main.c: Likewise.
3095 * util/grub-mkfont.c: Likewise.
3097 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3099 * util/grub-mkfont.c (options): Use more appropriate "select" that
3100 "set" for face index.
3102 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3104 * util/grub-editenv.c (options): Gettextize command summaries.
3106 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3108 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
3109 "out of memory" error messagge.
3111 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3113 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
3114 of diskfilter for diskfilter on diskfilter support.
3116 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3118 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
3120 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3122 * util/grub-install.in: Check for themes/starfield/theme.txt and not
3125 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3127 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
3129 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3131 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
3133 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3135 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
3138 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3140 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
3142 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3144 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
3146 * util/grub-install.in: Fix and gettextize error message.
3148 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3150 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
3152 * util/grub-mount.c (options): Likewise.
3154 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3156 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
3158 * grub-core/commands/search_wrap.c (options): Likewise.
3160 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3162 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
3164 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3166 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
3168 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
3171 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3173 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
3174 "temporary" since it's used in identifier and is limited in space.
3176 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3178 * po/POTFILES.in: Regenerate. Include *.h since they contain
3179 translatable strings as well.
3181 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3183 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
3184 byte-swap on big-endian.
3185 Reported by: Lennart Sorensen
3187 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3189 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
3190 (allocate_pages): Improve dprintf.
3191 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
3192 code32_start. Fill code32_start and kernel_alignment in params.
3193 (grub_cmd_initrd): Use prot_init_space.
3195 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3197 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
3199 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3201 * util/grub-install.in: Add missing dot at the end of sentence.
3203 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3205 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3206 * grub-core/commands/videotest.c: Likewise.
3207 * grub-core/loader/i386/linux.c: Likewise.
3209 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3211 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
3213 Reported by: Milo Casagrande.
3215 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3217 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
3218 * grub-core/commands/gptsync.c: Likewise.
3219 * grub-core/commands/hashsum.c: Likewise.
3220 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3221 * grub-core/commands/legacycfg.c: Likewise.
3222 * grub-core/io/gzio.c: Likewise.
3223 * grub-core/net/net.c: Likewise.
3224 * grub-core/term/gfxterm.c: Likewise.
3225 * grub-core/term/terminfo.c: Likewise.
3226 * grub-core/tests/test_blockarg.c: Likewise.
3227 * grub-core/video/video.c: Likewise.
3228 * util/grub-install.in: Likewise.
3229 * util/grub-mkfont.c: Likewise.
3231 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3233 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
3235 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3237 * grub-core/commands/search_wrap.c (options): Fix a typo.
3238 Reported by: David Prévot.
3240 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3242 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
3245 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3247 * util/grub-script-check.c (main): Fix a syntax error message which was
3250 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3252 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
3254 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3256 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
3259 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3261 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
3263 * util/grub-mount.c (options): Likewise.
3265 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3267 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
3269 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3271 * grub-core/net/http.c: Add TRANSLATORS comments.
3272 * grub-core/normal/cmdline.c: Likewise.
3273 * grub-core/normal/misc.c: Likewise.
3274 * grub-core/partmap/msdos.c: Likewise.
3275 * grub-core/parttool/msdospart.c: Likewise.
3276 * grub-core/script/execute.c: Likewise.
3277 * grub-core/script/main.c: Likewise.
3278 * grub-core/term/terminfo.c: Likewise.
3279 * grub-core/video/bitmap.c: Likewise.
3280 * util/grub-install.in: Likewise.
3281 * util/grub-mkimage.c: Likewise.
3282 * util/grub-mklayout.c: Likewise.
3283 * util/grub-setup.c: Likewise.
3285 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3287 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
3288 with similar messages in grub-fstest.
3290 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3292 * util/grub-install.in: Unify "option requires an argument" message
3293 with similar messages in other files.
3294 * util/grub-mkconfig.in: Likewise.
3296 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3298 * util/grub-set-default.in: Replace printf with gettext_printf (the
3299 string in in question is already translated from grub-reboot)
3301 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3303 * configure.ac: Bump up the version to beta1.
3305 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3307 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
3308 case when min_align = 0.
3310 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3312 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
3313 and fix a case when line_start overflows.
3315 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3317 * util/grub-reboot.in (usage): Mention id posibility.
3318 * util/grub-set-default.in (usage): Likewise.
3320 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3322 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
3323 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
3324 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
3325 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
3326 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
3327 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3328 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
3330 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3332 * grub-core/commands/menuentry.c (options): Remove
3333 GRUB_ARG_OPTION_REPEATABLE.
3334 Reported by: Andreas Vogel
3336 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
3338 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
3340 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
3342 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
3345 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3347 Use sort -V by the idea of Georgi Georgiev.
3349 * util/grub-mkconfig_lib.in (version_sort): New function.
3350 (version_test_numeric): Use version_sort.
3352 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3354 Use submenus in grub-mkconfig.
3356 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
3357 * util/grub-mkconfig_lib.in (grub_quote): New function.
3358 (gettext_printf): Use gettext and not gettext_quoted to fix several
3360 * util/grub.d/10_hurd.in: Use submenus.
3361 * util/grub.d/10_kfreebsd.in: Likewise.
3362 * util/grub.d/10_linux.in: Likewise.
3363 * util/grub.d/10_netbsd.in: Likewise.
3364 * util/grub.d/20_linux_xen.in: Likewise.
3365 * util/grub.d/30_os-prober.in: Likewise.
3366 * util/grub.d/10_illumos.in: Add missing quoting.
3367 * util/grub.d/10_windows.in: Likewise.
3369 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3371 Fix menu title instability bug.
3373 * grub-core/commands/menuentry.c (options): New option --id.
3374 (grub_normal_add_menu_entry): New argument id. All users updated.
3375 (grub_cmd_menuentry): Handle --id.
3376 (grub_menu_init): Accept unknown arguments.
3377 * grub-core/normal/main.c (features): Add feature_menuentry_id and
3378 feature_menuentry_options.
3379 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
3381 (get_entry_number): Match with id as well.
3382 * include/grub/menu.h (grub_menu_entry): New member id.
3383 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
3384 * util/grub.d/00_header.in: Define menuentry_id_option.
3385 * util/grub.d/10_hurd.in: Define id.
3386 * util/grub.d/10_illumos.in: Likewise.
3387 * util/grub.d/10_kfreebsd.in: Likewise.
3388 * util/grub.d/10_linux.in: Likewise.
3389 * util/grub.d/10_netbsd.in: Likewise.
3390 * util/grub.d/10_windows.in: Likewise.
3391 * util/grub.d/20_linux_xen.in: Likewise.
3392 * util/grub.d/30_os-prober.in: Likewise.
3394 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3396 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
3397 "scope" with "body".
3399 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3401 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
3402 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
3403 prot_size and prot_file_size.
3405 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3407 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
3408 All users updated. If easily=1 require raid-5/-6 to be full.
3409 (is_node_readable): Likewise.
3410 (scan_devices): Scan incomplete but readable LVs at the end.
3411 (grub_diskfilter_memberlist): Pull missing devices.
3412 (insert_array): Skip scanning until device is complete or scan is
3414 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
3416 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
3417 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
3419 2012-03-03 Matthew Garrett <mjg@redhat.com>
3420 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3422 Avoid EFI boot services when loading Linux.
3424 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
3425 avoid_efi_bootservices. All users updated.
3426 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
3427 argument avoid_efi_bootservices. All users updated.
3428 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
3429 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
3430 align, min_align, relocatable, prefered_address. All users updated.
3431 Allocate avoiding boot services if kernel is relocatable.
3432 (grub_cmd_linux): Check if kernel is relocatable.
3433 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
3434 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
3435 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
3436 avoid_efi_boot_services.
3437 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
3438 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
3439 (linux_kernel_params): Likewise.
3441 2012-03-03 Matthew Garrett <mjg@redhat.com>
3442 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3446 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
3448 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
3449 modes. Set gop_handle.
3450 (grub_video_gop_get_edid): New function.
3451 (grub_gop_get_preferred_mode): Likewise.
3452 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
3453 (grub_video_efi_gop_adapter): Set .get_edid.
3454 * include/grub/efi/edid.h: New file.
3455 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
3457 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3459 * util/grub-install.in: Load efivars unconditionally.
3461 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3463 * po/Rules-piglatin: Change suffix from .po-update-en to
3464 .po-update-en-piglatin.
3466 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3470 * po/piglatin.sed: New file.
3471 * po/en@piglatin.header: Likewise.
3472 * po/Rules-piglatin: Likewise.
3473 * po/README: Add en@piglatin to autogenerated languages.
3475 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3477 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
3479 * grub-core/commands/hdparm.c (options): Use "Display" rather than
3480 "Check" since we don't check anything.
3481 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
3483 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
3484 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
3485 (grub_md_sha512_real): Likewise.
3487 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3489 * grub-core/commands/gptsync.c: Fix typographic quoting.
3490 * grub-core/commands/ieee1275/suspend.c: Likewise.
3491 * grub-core/commands/parttool.c: Likewise.
3492 * grub-core/commands/search_wrap.c: Likewise.
3493 * grub-core/commands/videoinfo.c: Likewise.
3494 * grub-core/gfxmenu/gui_label.c: Likewise.
3495 * grub-core/hello/hello.c: Likewise.
3496 * grub-core/kern/emu/main.c: Likewise.
3497 * grub-core/net/net.c: Likewise.
3498 * grub-core/normal/menu.c: Likewise.
3499 * grub-core/normal/menu_text.c: Likewise.
3500 * grub-core/normal/misc.c: Likewise.
3501 * util/grub-editenv.c: Likewise.
3502 * util/grub-install.in: Likewise.
3503 * util/grub-kbdcomp.in: Likewise.
3504 * util/grub-mkconfig.in: Likewise.
3505 * util/grub-mknetdir.in: Likewise.
3506 * util/grub-mkrescue.in: Likewise.
3507 * util/grub-mkstandalone.in: Likewise.
3508 * util/grub-reboot.in: Likewise.
3509 * util/grub-set-default.in: Likewise.
3510 * util/grub-setup.c: Likewise.
3511 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3513 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3515 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
3516 * grub-core/commands/keystatus.c: Likewise.
3517 * grub-core/commands/loadenv.c: Likewise.
3518 * grub-core/commands/probe.c: Likewise.
3519 * grub-core/commands/regexp.c: Likewise.
3520 * grub-core/commands/true.c: Likewise.
3521 * grub-core/commands/videoinfo.c: Likewise.
3522 * grub-core/disk/cryptodisk.c: Likewise.
3523 * grub-core/disk/ldm.c: Likewise.
3524 * grub-core/disk/loopback.c: Likewise.
3525 * grub-core/disk/luks.c: Likewise.
3526 * grub-core/fs/zfs/zfsinfo.c: Likewise.
3527 * grub-core/kern/disk.c: Likewise.
3528 * grub-core/kern/emu/hostdisk.c: Likewise.
3530 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3532 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
3533 * util/grub-install.in: Add missing quote in the comment.
3535 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3537 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
3538 * grub-core/commands/lsmmap.c: Likewise.
3539 * grub-core/commands/minicmd.c: Likewise.
3540 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
3541 * grub-core/commands/regexp.c: Likewise.
3542 * grub-core/gdb/gdb.c: Likewise.
3543 * grub-core/term/gfxterm.c: Likewise.
3544 * util/grub-mkconfig.in: Likewise.
3545 * util/grub-mkfont.c: Likewise.
3546 * util/grub-mklayout.c: Likewise.
3547 * util/grub-mknetdir.in: Likewise.
3548 * util/grub-mkrescue.in: Likewise.
3549 * util/grub.d/30_os-prober.in: Likewise.
3551 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3553 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
3554 with "Direct color" and "Packed" with "Packed pixel".
3555 (grub_cmd_videoinfo): Simplify legend.
3557 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3559 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3560 absolutely unclear error message.
3562 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3564 * util/grub-mkstandalone.in: Remove confusing leftover print.
3566 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3568 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
3570 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
3571 (GRUB_MOD_INIT): Likewise.
3572 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
3574 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
3576 * util/grub-install.in (usage): Likewise.
3577 Spell ID in whole letters.
3578 Add missing ending dot.
3580 * util/grub-reboot.in: Fix capitalisation.
3581 * util/grub-set-default.in: Likewise.
3583 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3585 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
3586 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
3587 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
3588 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
3589 Disable -Werror for -Wdeprecated-declarations.
3590 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
3591 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
3592 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
3593 (grub_util_get_grub_dev): Make luks handling dependent on
3594 HAVE_DEVICE_MAPPER and not __linux__.
3595 (get_win32_path): Fix format security.
3596 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
3597 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
3598 Don't try grub_find_zpool_from_dir.
3599 (grub_make_system_path_relative_to_its_root) [!__linux__]:
3600 #ifdef-out paresdir.
3602 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3604 * util/grub-pe2elf.c (usage): Add missing noreturn.
3605 (write_section_data): Rename name to shname to avoid shadowing.
3606 (write_symbol_table): Rename name to symname to avoid shadowing.
3607 Fix write_reloc_section call.
3609 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3611 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
3612 to ensure that it's after the last byte of .text.
3614 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3616 * util/ieee1275/ofpath.c (my_isdigit): New function.
3617 (trailing_digits): Use my_isdigit.
3618 (strip_trailing_digits): Likewise.
3620 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3622 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
3623 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
3625 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3627 * grub-core/kern/i386/pc/startup.S: Define __start.
3629 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3631 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
3632 strip already transforms he format.
3634 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3636 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
3638 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3640 * util/grub-install.in: Add missing gettext init.
3641 * util/grub-kbdcomp.in: Likewise.
3642 * util/grub-mkconfig.in: Likewise.
3643 * util/grub-mknetdir.in: Likewise.
3644 * util/grub-mkrescue.in: Likewise.
3645 * util/grub-mkstandalone.in: Likewise.
3646 * util/grub-reboot.in: Likewise.
3647 * util/grub-set-default.in: Likewise.
3648 * util/grub.d/00_header.in: Likewise.
3649 * util/grub.d/10_hurd.in: Likewise.
3650 * util/grub.d/10_windows.in: Likewise.
3651 * util/grub.d/30_os-prober.in: Likewise.
3652 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3654 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3656 * po/Rules-swiss: Fix header comment.
3658 2012-02-29 Andreas Vogel <anvoit>
3660 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
3661 resulted in leak of arguments.
3663 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3665 * grub-core/boot/i386/pc/startup_raw.S: Use separate
3666 reed_solomon_size const definition instead of computing it since
3667 Apple assembler doesn't support the later.
3669 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3671 * gentpl.py (kernel): Rewrite Apple part.
3673 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3675 * include/grub/kernel.h (FOR_MODULES): Check module magic.
3677 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3679 * util/grub-mkimagexx.c (locate_sections): Support non-standard
3681 (load_image): Likewise.
3683 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3685 * configure.ac: Fix a typo in previous commit.
3687 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3689 Don't add -Wl,-N on Apple platform.
3691 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
3692 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
3694 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3696 * grub-core/Makefile.core.def (lzma_decompress): Use
3697 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
3699 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3701 * grub-core/genmod.sh.in: Rewrite the Apple part.
3703 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3705 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
3708 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3710 * acinclude.m4 (grub_CHECK_PIC): New test.
3711 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
3713 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3715 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
3716 to avoid the warning.
3718 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3720 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
3721 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
3722 after. All users updated.
3724 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3726 Use the common size routine in hostfs so we can read disks as well.
3728 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
3729 (grub_util_get_fd_size): ... this. Return size in bytes.
3731 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
3732 grub_util_get_fd_size.
3734 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3736 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
3737 Add blocksize retrieval.
3739 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3741 * configure.ac: Restore CFLAGS after efiemu check.
3743 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3745 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
3748 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3750 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
3752 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3754 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
3755 (grub_cmd_halt): Likewise.
3757 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3759 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
3760 for local arithmetics.
3761 Break %sp init into 2 instructions.
3762 Add 0 byte at the end.
3764 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3766 * grub-core/disk/diskfilter.c (read_segment): Initialise err
3769 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3771 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
3774 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3776 * grub-core/disk/ldm.c (make_vg): Init part.name.
3777 (grub_ldm_detect): Silence spurious warning.
3778 (grub_util_is_ldm): Likewise.
3780 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3782 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
3783 sane value to avoid a spurious warning.
3785 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3787 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
3788 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
3790 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3792 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
3793 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
3795 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3797 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
3798 hardcoding the relevant info.
3800 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3802 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
3803 missing const qualifiers.
3804 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
3806 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3808 * util/getroot.c [__APPLE__]: Add missing includes.
3809 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
3811 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3813 * util/grub-mkimage.c (generate_image): Silence spurious warning.
3815 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3817 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
3820 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3822 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
3824 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3826 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
3827 and grub_file_close call.
3829 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3831 Add LZSS Mach-O support (needed for new xnu kernelcache).
3833 * grub-core/Makefile.core.def (xnu): Add file lzss.c
3834 * grub-core/loader/lzss.c: New file.
3835 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
3836 on Mach-O open failure.
3837 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
3838 Don't free cmdsXX in uncompressedXX is set.
3839 (grub_macho_file): Init new fields.
3840 New argument is_64bit. All users updated.
3841 Handle compressed. Error out if no suitable architecture is found.
3843 (grub_macho_open): New argument is_64bit. All users updated.
3844 * grub-core/loader/macho32.c: Add defines for new fields.
3845 * grub-core/loader/macho64.c: Likewise.
3846 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
3847 (grub_macho_parse): Handle compressed.
3848 Defer actual processing if compressed.
3849 (grub_macho_cmds_iterate): Decompress if compressed. New argument
3850 "filename". All users updated.
3851 (grub_macho_size): New argument "filename". All users updated.
3852 (grub_macho_get_entry_point): Likewise.
3853 (grub_macho_load): Handle compressed.
3854 * include/grub/macho.h (grub_macho_lzss_header): New struct.
3855 (GRUB_MACHO_LZSS_OFFSET): New define.
3856 (grub_decompress_lzss): New proto.
3857 * include/grub/machoload.h (grub_macho_file): New fields to handle
3859 (grub_macho_contains_macho64): Remove proto.
3860 (grub_macho_contains_macho32): Likewise.
3861 * util/grub.d/30_os-prober.in: Use kernel cache if available.
3863 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3865 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
3867 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3871 * Makefile.am (starfield_theme_files): New var.
3872 (starfield_DATA): Use starfield_theme_files.
3873 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
3874 Add bootcheck-related files.
3875 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
3876 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
3877 and font_char_metrics.txt.
3878 * grub-core/Makefile.core.def (kernel): Update extra_dist.
3879 (setjmp): Add lib/ia64/longjmp.S.
3880 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
3881 * po/POTFILES.in: Regenerate.
3882 * po/Rules-swiss: use DISTFILES.common.extra2 and not
3883 DISTFILES.common.extra1.
3884 * util/devicemap.c: Removed.
3885 * grub-core/lib/i386/relocator_backward.S: Likewise.
3886 * util/import_gcry.py: Remove unused files. Add extra_dist for
3889 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3891 * grub-core/gettext/gettext.c (grub_mofile_open): Call
3892 grub_gettext_delete_list before changing grub_gettext_max to avoid
3893 running out of array bounds.
3895 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3897 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
3898 grub_vga_text_init/grub_vga_text_fini.
3900 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3902 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
3904 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3906 * configure.ac: Bump to 2.00~beta0.
3908 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3910 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
3911 missing initialisation.
3913 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3915 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
3917 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3919 Support v2 xnu boot arguments.
3921 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
3922 New argument fsbfreq_out.
3923 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
3924 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
3926 * grub-core/loader/machoXX.c (grub_macho_load): New argument
3928 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
3929 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
3930 (grub_xnu_boot_params): Rename to ...
3931 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
3932 (grub_xnu_boot_params_v2): New struct.
3934 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3936 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
3937 zeroing of CRC field before computing CRC.
3939 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3941 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
3942 Change order of allocations to decrease fragmentation.
3944 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3946 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
3948 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
3950 Use write-combining MTRR to speed up video with buggy BIOSes.
3952 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
3953 (cpuid): New define.
3956 (mtrr_base): Likewise.
3957 (mtrr_mask): Likewise.
3958 (grub_vbe_enable_mtrr_entry): New function.
3959 (grub_vbe_enable_mtrr): Likewise.
3960 (grub_vbe_disable_mtrr): Likewise.
3961 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
3962 control off to BIOS.
3963 (grub_video_vbe_init): Fill mtrr.
3964 (grub_video_vbe_fini): Disable mtrr.
3965 (grub_video_vbe_get_info_and_fini): Likewise.
3966 (grub_video_vbe_setup): Enable mtrr.
3968 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
3970 * include/grub/partition.h (grub_partition_map): Change prototype of
3971 embed to take a maximum value for nsectors.
3972 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
3973 * include/grub/fs.h (grub_fs): Likewise.
3974 * grub-core/partmap/msdos.c (embed_signatures): New array.
3975 (pc_partition_map_embed): Check for and avoid sectors matching any
3976 of the signatures in embed_signatures, up to max_nsectors.
3977 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
3978 returned sector map to max_nsectors.
3979 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
3980 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
3981 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
3982 * util/grub-setup.c (setup): Allow for the embedding area being
3983 split into multiple blocklists. Tell dest_partmap->embed the
3984 maximum number of sectors we care about.
3986 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3988 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
3989 Specify blocklist_install and reserver_first_sector for all fs.
3990 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
3993 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3995 * util/grub-install.in: Clarify strings.
3996 Fix source dir check.
3998 2012-02-27 Richard Laager <rlaager@wiktel.com>
4000 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4001 "zfs" and "fuse.zfs" as synonyms.
4003 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4005 * configure.ac: Put platform and target_cpu substitutions back since
4006 they are used for directories.
4008 2012-02-27 Richard Laager <rlaager@wiktel.com>
4009 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4011 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4012 * util/grub.d/20_linux_xen.in: Likewise.
4014 2012-02-27 Richard Laager <rlaager@wiktel.com>
4016 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4019 2012-02-27 Richard Laager <rlaager@wiktel.com>
4021 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4024 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4026 Don't use insecure popen in getroot.
4028 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4029 (exec_pipe): ... here.
4030 (find_root_devices_from_poolname): Use exec_pipe.
4032 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4034 Remove platform and target_cpu replacement.
4036 * configure.ac: Remove platform and target_cpu substitutions.
4037 * tests/util/grub-shell.in: Use modinfo.
4038 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4041 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4043 Autodetect platform in grub-install but allow override.
4045 * util/grub-install.in: Autodetect platform. Support --target and
4046 --directory. Read platform from modinfo.sh.
4048 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4050 Support btrfs multi-volume probe.
4052 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
4053 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
4054 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
4055 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
4056 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
4057 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
4058 grub_find_root_devices_from_btrfs if on btrfs.
4060 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4062 Remove any awareness of *.c util files about target.
4064 * Makefile.util.def (grub-setup): Split to ...
4065 (grub-bios-setup): ... and this.
4066 (grub-sparc64-setup): ... and this.
4067 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
4068 * docs/man/grub-setup.h2m: Split into ...
4069 * docs/man/grub-sparc64-setup.h2m: ... this.
4070 * docs/man/grub-bios-setup.h2m: ... and this.
4071 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
4072 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
4073 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
4074 (grub_target_addr_t): Remove.
4075 (grub_target_size_t): Remove.
4076 (grub_target_ssize_t): Remove.
4077 * util/grub-install.in: Use new grub-*-setup.
4078 * util/grub-mkimagexx.c (Elf_Word): New define.
4079 (Elf_Half): Likewise.
4080 (Elf_Section): Likewise.
4081 (ELF_ST_TYPE): Likewise.
4082 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
4083 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
4085 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4087 Replace grub_target_addr with more appropriate types.
4089 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
4090 grub_target_addr with grub_addr.
4091 * grub-core/commands/iorw.c (grub_cmd_read): Replace
4092 grub_target_addr with grub_port.
4093 (grub_cmd_write): Likewise.
4094 * grub-core/commands/memrw.c (grub_cmd_read): Replace
4095 grub_target_addr with grub_addr.
4096 (grub_cmd_write): Likewise.
4097 * grub-core/video/efi_uga.c (find_line_len): Likewise.
4099 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4101 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
4102 const qualifier for vendor_guid.
4104 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4106 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
4108 (efiemu_memequal): Likewise.
4109 (find_variable): Likewise.
4111 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4113 Fix missing console prototype on qemu-mips.
4115 * include/grub/mips/qemu_mips/console.h: New file.
4117 2012-02-27 Matthew Garrett <mjg@redhat.com>
4118 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4120 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
4121 * include/grub/efi/efi.h: Likewise.
4122 * include/grub/efi/api.h: Add guid for EFI-specified variables.
4123 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
4124 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
4125 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
4126 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
4127 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
4129 2012-02-27 Matthew Garrett <mjg@redhat.com>
4131 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
4133 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4135 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
4138 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4140 * configure.ac: Remove inappropriate use of program_transform_name
4141 on grubdir and bootdir but allow explicit specification of those
4144 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4146 * util/grub-mknetdir.in (grub_prefix): Removed.
4147 (subdir): Use @bootdirname@ and @grubdirname@.
4149 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4151 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
4153 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4155 * po/POTFILES.in: Regenerated.
4157 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4159 Remove improper use of program_transform_name on pkglibrootdir.
4161 * configure.ac (pkglibrootdir): Removed.
4162 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
4163 * util/grub-mkimage.c: Likewise.
4165 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4167 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
4170 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4172 * util/grub-install.in: Use file identifier if no UUID is available
4173 or user explicitly prompted for it.
4175 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
4177 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
4178 (freebsd_get_zfs): New function.
4179 (grub_freebsd_boot): Pass zfs UUID.
4180 (grub_cmd_freebsd): Set zfs UUID.
4182 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4184 * conf/Makefile.common (platformdir): Base on pkglibdir and not
4187 2012-02-27 Mike Gilbert <floppym@gentoo.org>
4189 Add configure flag to control libzfs integration.
4191 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
4193 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4195 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
4197 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
4200 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4202 Remove grub_{modname}_init and grub_{modname}_fini. They should never
4203 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
4204 be used on non-modules.
4206 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
4207 Rename to grub_boot_init.
4208 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
4209 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
4210 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
4211 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
4212 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
4213 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
4214 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
4215 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
4217 (grub_machine_init): Remove empty inits.
4218 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
4220 (grub_machine_init): Remove empty inits.
4221 * grub-core/term/arc/console.c: Remove explicit proto.
4222 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
4223 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
4224 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4225 grub_at_keyboard_fini.
4226 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
4227 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
4228 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4230 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
4231 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
4232 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4234 * grub-core/term/ieee1275/console.c: Remove explicit proto.
4235 * grub-core/term/serial.c (GRUB_MOD_INIT)
4236 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
4237 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4239 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
4240 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
4241 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
4243 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
4244 (GRUB_MOD_FINI): Likewise.
4245 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
4246 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
4247 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4248 grub_video_radeon_fuloong2e_fini.
4249 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
4250 [LOONGSON]: Rename to grub_video_sis315pro_init.
4251 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4252 grub_video_sis315pro_fini.
4253 * grub-core/video/sm712.c (GRUB_MOD_INIT)
4254 [LOONGSON]: Rename to grub_video_sm712_init.
4255 (GRUB_MOD_FINI) [LOONGSON]: Rename to
4256 grub_video_sm712_fini.
4257 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
4258 (grub_at_keyboard_fini): Likewise.
4259 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
4260 Don't declare grub_{modname}_init.
4261 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
4262 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
4264 (grub_keylayouts_fini) [!EMU]: Likewise.
4265 * include/grub/serial.h (grub_serial_init) [!EMU]:
4267 (grub_serial_fini) [!EMU]: Likewise.
4268 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
4270 (grub_terminfo_fini) [!EMU]: Likewise.
4271 * include/grub/video.h (grub_font_init) [!EMU]:
4273 (grub_font_fini) [!EMU]: Likewise.
4274 (grub_gfxterm_init) [!EMU]: Likewise.
4275 (grub_gfxterm_fini) [!EMU]: Likewise.
4276 (grub_video_sm712_init) [!EMU]: Likewise.
4277 (grub_video_sm712_fini) [!EMU]: Likewise.
4278 (grub_video_sis315pro_init) [!EMU]: Likewise.
4279 (grub_video_sis315pro_fini) [!EMU]: Likewise.
4280 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
4281 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
4283 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4285 Make nand a prefix for nand devices.
4287 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
4289 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4291 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
4292 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
4294 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4296 * include/grub/env.h (grub_env_find): Remove prototype.
4297 * grub-core/kern/env.c (grub_env_find): Make static.
4298 (grub_env_set): Remove useless set.
4300 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4302 * grub-core/kern/i386/realmode.S: Remove useless align.
4304 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4306 * include/grub/dl.h (grub_dl_load_file): Don't export.
4308 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4310 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
4313 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4315 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
4317 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
4318 not reloading whole superblock but only the part which is really needed.
4319 Remove useless grub_errors.
4320 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
4323 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4325 Don't export grub_get_rtc.
4327 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
4328 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
4330 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4332 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
4334 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4336 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
4337 argument since it can be deduced from diskfilter. All users updated.
4339 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4343 * include/grub/list.h (grub_prio_list): Removed.
4344 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
4345 GRUB_COMMAND_PRIO_MASK.
4346 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
4347 GRUB_COMMAND_FLAG_ACTIVE.
4348 (grub_prio_list_insert): Removed.
4349 (grub_prio_list_remove): Likewise.
4350 (GRUB_AS_PRIO_LIST): Likewise.
4351 (GRUB_AS_PRIO_LIST_P): Likewise.
4352 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
4353 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
4354 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
4355 * grub-core/kern/command.c (grub_register_command_prio): Inline
4357 (grub_unregister_command): Likewise.
4359 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4361 Fix interrupt mixup from previous commit.
4363 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
4364 (grub_realidt): New var.
4365 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
4367 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
4369 (grub_relocator16_boot): Set grub_relocator16_idt.
4370 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
4371 (LOCAL(realidt)): ... this.
4372 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
4373 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
4374 (grub_realidt): New variable.
4376 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4378 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
4379 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
4380 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
4381 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
4383 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
4384 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
4385 * po/POTFILES.in: Regenerate.
4387 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4389 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
4392 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4394 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
4396 (add_length): Likewise.
4398 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4399 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
4401 GDB serial and backtrace support.
4403 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
4404 (prot_to_real): Likewise.
4405 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
4406 * grub-core/Makefile.core.def (backtrace): New module.
4408 * grub-core/gdb/cstub.c: New file.
4409 * grub-core/gdb/gdb.c: Likewise.
4410 * grub-core/gdb/i386/idt.c: Likewise.
4411 * grub-core/gdb/i386/machdep.S: Likewise.
4412 * grub-core/gdb/i386/signal.c: Likewise.
4413 * grub-core/lib/i386/backtrace.c: Likewise.
4414 * grub-core/lib/backtrace.c: Likewise.
4415 * include/grub/backtrace.h: Likewise.
4416 * include/grub/gdb.h: Likewise.
4417 * include/grub/i386/gdb.h: Likewise.
4419 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4421 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
4423 (add_length): Likewise.
4424 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
4425 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
4427 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
4428 __argp_get_display_len.
4430 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4432 $"..." support in scripts.
4434 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
4435 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
4436 * grub-core/script/yylex.l: Likewise.
4437 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
4440 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4442 * gentpl.py: Remove obsolete pkglib_DATA handling.
4444 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4446 Don't transform PACKAGE_TARNAME following a discussion on autoconf
4449 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
4450 * util/grub-kbdcomp.in: Likewise.
4451 * util/grub-mkconfig.in: Likewise.
4452 * util/grub-mkconfig_lib.in: Likewise.
4453 * util/grub-mknetdir.in: Likewise.
4454 * util/grub-mkrescue.in: Likewise.
4455 * util/grub-mkstandalone.in: Likewise.
4456 * util/grub-reboot.in: Likewise.
4457 * util/grub-set-default.in: Likewise.
4458 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4460 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4464 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
4465 * util/grub.d/00_header.in: Compute prefix in the only place it's still
4466 used for backward compatibility.
4468 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4470 Add new all_video module.
4472 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
4473 * grub-core/Makefile.core.def (all_video): New module.
4474 * grub-core/genmoddep.awk: Generate dependency of all_video from
4476 * grub-core/lib/fake_module.c: New file.
4477 * grub-core/normal/main.c (features): Add feature_all_video_module.
4478 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
4479 don't do explicit search again.
4480 insmod all_video in load_video if available.
4482 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4484 Another round of string clarification and adding TRANSLATORS comments.
4486 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4488 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
4490 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4492 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
4494 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
4495 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
4497 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4499 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
4500 trailing newline implicitly. All users updated.
4502 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4504 Implement serial on IEEE1275 and EFI.
4506 * docs/grub.texi (Platform-specific limitations): Fix the columen video
4507 on emu. Mention arc and emu as the only platforms without serial
4509 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
4511 * grub-core/term/efi/serial.c: New file.
4512 * grub-core/term/ieee1275/serial.c: Likewise.
4513 * grub-core/term/serial.c (grub_serial_find): Disable direct port
4514 specification if no ns8250 driver is available.
4515 (grub_cmd_serial): Likewise.
4516 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
4517 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
4518 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
4519 (grub_efi_parity_type_t): New type.
4520 (grub_efi_stop_bits_t): Likewise.
4521 (grub_efi_serial_io_interface): New struct.
4522 * include/grub/serial.h (grub_serial_port): Make 'broken' field
4523 available for all interfaces.
4524 Add EFI and IEEE1275 fields.
4525 (grub_ofserial_init): New proto.
4526 (grub_efiserial_init): Likeiwse.
4527 * util/grub.d/00_header.in: Don't check for the presence of serial
4530 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4532 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
4533 name as if it was an alias.
4535 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4537 * grub-core/commands/lsacpi.c (options): Fix typo.
4539 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4541 Convert grub-emu to argp.
4543 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
4545 * util/argp_common.c: Rename to ...
4546 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
4547 Add missing includes.
4548 * grub-core/kern/emu/main.c: Convert to argp.
4549 * po/POTFILES.in: Regenerate.
4550 * util/grub-install.in (usage): Make first letter lowcase in messages
4552 * util/grub-setup.c (options): Likewise.
4554 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4556 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
4557 Put back accidently commented-out code.
4559 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4561 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
4562 loop check using Brent algorithm.
4563 (grub_hfsplus_btree_search): Likewise.
4565 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4567 * util/grub-install.in: Fix usage of wrong device for PreP install.
4569 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4571 * conf/Makefile.common (CFLAGS_GNULIB): Add
4572 -Wno-unsafe-loop-optimizations.
4573 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
4575 * grub-core/commands/legacycfg.c: Add pragma to skip
4576 -Wunsafe-loop-optimizations.
4577 (check_password_md5_real): Fix loop counter type.
4578 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
4580 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
4581 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
4583 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
4584 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
4585 * grub-core/net/net.c (grub_net_route_address): Add safety loop
4587 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
4588 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
4589 avoid possible infinite loops.
4590 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
4591 and -Wunsafe-loop-optimizations.
4592 * grub-core/script/yylex.l: Likewise.
4593 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
4594 (print_glyphs): Avoid infinite loops.
4595 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
4597 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
4599 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
4600 to avoid infinite loop.
4601 (disp_acpi_rsdt_table): Likewise.
4603 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4605 * grub-core/font/font.c (grub_font_load): Add support for default
4606 path for fonts ($prefix/fonts).
4607 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
4608 for checking if string is a path.
4609 * grub-core/normal/main.c (features): Add feature_default_font_path.
4610 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
4611 * util/grub.d/00_header.in: Use default directory if possible.
4612 * util/grub-install.in: Install unicode.pf2.
4614 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4616 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
4617 * po/Rules-swiss: New file.
4618 * po/swiss.sed: Likewise.
4620 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
4622 * grub-core/fs/btrfs.c (find_device): Fix typos.
4623 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
4624 * util/grub-mkrelpath.c (argp_parser): Likewise.
4625 Reported by: Yuri Chornoivan.
4627 2012-02-23 Dalet Omega <daletomega@gmail.com>
4629 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
4630 for usual informative messages.
4632 2012-02-23 Dalet Omega <daletomega@gmail.com>
4636 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
4637 * conf/Makefile.common: Define starfielddir.
4638 * configure.ac: Configure starfield.
4639 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
4640 * themes/starfield/README: Likewise.
4641 * themes/starfield/blob_w.png: Likewise.
4642 * themes/starfield/boot_menu_c.png: Likewise.
4643 * themes/starfield/boot_menu_e.png: Likewise.
4644 * themes/starfield/boot_menu_n.png: Likewise.
4645 * themes/starfield/boot_menu_ne.png: Likewise.
4646 * themes/starfield/boot_menu_nw.png: Likewise.
4647 * themes/starfield/boot_menu_s.png: Likewise.
4648 * themes/starfield/boot_menu_se.png: Likewise.
4649 * themes/starfield/boot_menu_sw.png: Likewise.
4650 * themes/starfield/boot_menu_w.png: Likewise.
4651 * themes/starfield/slider_c.png: Likewise.
4652 * themes/starfield/slider_n.png: Likewise.
4653 * themes/starfield/slider_s.png: Likewise.
4654 * themes/starfield/src/blob_nw.xcf: Likewise.
4655 * themes/starfield/src/bootmenu/: Likewise.
4656 * themes/starfield/src/bootmenu/center.xcf: Likewise.
4657 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
4658 * themes/starfield/src/bootmenu/side.xcf: Likewise.
4659 * themes/starfield/src/slider_c.xcf: Likewise.
4660 * themes/starfield/src/slider_n.xcf: Likewise.
4661 * themes/starfield/src/slider_s.xcf: Likewise.
4662 * themes/starfield/src/terminalbox/: Likewise.
4663 * themes/starfield/src/terminalbox/center.xcf: Likewise.
4664 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
4665 * themes/starfield/src/terminalbox/side.xcf: Likewise.
4666 * themes/starfield/starfield.png: Likewise.
4667 * themes/starfield/terminal_box_c.png: Likewise.
4668 * themes/starfield/terminal_box_e.png: Likewise.
4669 * themes/starfield/terminal_box_n.png: Likewise.
4670 * themes/starfield/terminal_box_ne.png: Likewise.
4671 * themes/starfield/terminal_box_nw.png: Likewise.
4672 * themes/starfield/terminal_box_s.png: Likewise.
4673 * themes/starfield/terminal_box_se.png: Likewise.
4674 * themes/starfield/terminal_box_sw.png: Likewise.
4675 * themes/starfield/terminal_box_w.png: Likewise.
4676 * themes/starfield/theme.txt: Likewise.
4678 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
4680 * util/grub.d/00_header.in: Add missing export theme.
4682 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4684 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
4686 Reported by: Eren D.
4688 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4690 * conf/Makefile.common (grubdatadir): Removed.
4691 (Makefile.am): Move eveything grubdata to pkgdata.
4693 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4695 * grub-core/commands/acpihalt.c (get_sleep_type):
4696 Remove unused variable.
4698 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4700 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
4701 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
4702 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
4703 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
4704 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
4705 i18n with gettext no-op.
4706 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
4707 GRUB_ACPI_OPCODE_STRING_CONST.
4708 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
4709 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
4711 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4713 * po/POTFILES.in: Regenerate.
4715 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4717 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
4718 -Wno-error=missing-noreturn.
4720 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4722 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
4723 condition to avoid possibly infinite loops.
4724 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
4725 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
4727 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4729 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
4730 condition to avoid possibly infinite loops.
4732 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4734 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
4737 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4739 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
4741 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4743 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
4745 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4747 * util/bin2h.c (usage): Add missing attribute noreturn.
4749 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4751 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
4752 if the size isn't divisible by 512.
4754 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4756 Make list_push and list_remove functions rather than inline functions
4757 to decrease size and avoid aliasing violations.
4759 * include/grub/list.h (grub_list_push): Move to ...
4760 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
4761 * include/grub/list.h (grub_list_remove): Move to ...
4762 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
4764 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4766 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
4767 and -Wunused-result.
4769 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
4771 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
4772 Reported by: Seth Goldberg
4774 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
4776 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
4778 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4780 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
4781 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
4783 * docs/grub.texi (Simple configuration): Document
4784 GRUB_CMDLINE_GNUMACH.
4786 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4788 * conf/Makefile.common (platform_SCRIPTS): New variable.
4789 (platform_PROGRAMS): Likewise.
4790 * gentpl.py: Mark *,module and *.image for install.
4791 * grub-core/gdb_grub.in: Add a notice of expected environment.
4792 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
4793 (gmodule.pl): Likewise.
4795 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4797 Replace grub_checkkey with grub_getkey_noblock.
4799 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
4800 (grub_getkey_noblock): ... this. All users updated.
4802 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4804 * grub-core/kern/emu/console.c: Move to ...
4805 * grub-core/term/emu/console.c: ...here.
4806 (grub_ncurses_getkey): Fix return value if no key is detected.
4808 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4810 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
4811 (grub_unit_test_fini): Likewise.
4812 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
4814 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4816 * include/grub/test.h (GRUB_UNIT_TEST)
4818 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4820 * grub-core/script/execute.c (grub_script_break): Clarify logic.
4821 Better error handling.
4822 (grub_script_return): Likewise.
4823 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
4825 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4827 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
4828 rimplicit redifinition.
4830 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4832 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
4835 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4837 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
4838 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
4841 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4843 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
4844 as GRUB_ERR_BUG. Don't malloc if no device is available.
4846 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4848 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
4849 Mark calling with invalid term as GRUB_ERR_BUG.
4851 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4853 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
4854 packets rather than raising an error.
4856 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4858 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
4861 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4863 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
4864 diagnostic to dprintf.
4865 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
4867 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4869 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
4872 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4874 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
4875 (grub_ntfs_iterate_dir): Likewise.
4877 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4879 Efiemu stylistic fixes and gettext.
4881 * grub-core/efiemu/i386/loadcore32.c
4882 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
4883 * grub-core/efiemu/i386/loadcore64.c
4884 (grub_arch_efiemu_relocate_symbols64): Likewise.
4885 * grub-core/efiemu/i386/pc/cfgtables.c
4886 (grub_machine_efiemu_init_tables): Likewise.
4887 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
4888 (grub_efiemu_loadcore_initXX): Add a filename argument.
4890 Improved error message.
4891 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
4892 Add a filename argument.
4894 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
4895 Reclassify double relocation as GRUB_ERR_BUG.
4897 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4899 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
4902 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4904 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
4907 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4909 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
4911 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4913 Improve string. Gettextize.
4915 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4917 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
4919 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
4921 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4923 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
4924 [GRUB_UTIL]: New function.
4925 (insert_array) [GRUB_UTIL]: Store partmaps.
4926 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
4928 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
4929 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
4930 (probe_abstraction): Print diskfilter and not raid.
4931 Reported by: Lennart Sorensen
4933 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4935 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
4936 * util/grub-mkimagexx.c (MASK3): New define.
4937 (add_value_to_slot_20b): Use MASK3.
4938 (add_value_to_slot_21): Likewise.
4939 (relocate_addresses): Fix format specification.
4940 (load_image): Explicitly init symtab_section.
4942 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4944 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
4945 (grub_util_biosdisk_get_grub_dev): Fix format specification.
4947 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4949 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
4951 Reported by: Lennart Sorensen
4953 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4955 * gentpl.py: Add missing license header.
4956 * docs/grub.texi: Update copyright year.
4958 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
4960 Source grub-mkconfig_lib from the build directory at build time.
4961 Suggested by: Vladimir Serbinenko.
4963 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
4964 * util/grub-install.in: Define pkgdatadir if not already set, and source
4965 grub-mkconfig_lib from there.
4966 * util/grub-kbdcomp.in: Likewise.
4967 * util/grub-mkconfig.in: Likewise.
4968 * util/grub-mknetdir.in: Likewise.
4969 * util/grub-mkrescue.in: Likewise.
4970 * util/grub-mkstandalone.in: Likewise.
4971 * util/grub-reboot.in: Likewise.
4972 * util/grub-set-default.in: Likewise.
4973 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4975 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4977 Increase warning level.
4979 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
4980 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
4981 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
4982 (TARGET_CFLAGS): Likewise.
4983 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
4984 * grub-core/Makefile.core.def (decompressor_xz): Add
4985 -Wno-unreachable-code.
4986 (normal): Add -Wno-redundant-decls.
4987 (xzio): Add -Wno-unreachable-code.
4988 (lzopio): Add -Wno-redundant-decls -Wno-error.
4989 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
4990 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
4991 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
4992 * grub-core/kern/dl.c: Add exception to -Wcast-align.
4993 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
4994 * grub-core/kern/i386/coreboot/init.c: Add exception to
4995 -Wsuggest-attribute=noreturn.
4996 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
4997 * grub-core/kern/ia64/dl_helper.c: Likewise.
4998 * grub-core/kern/mips/dl.c: Likewise.
4999 * grub-core/kern/sparc64/dl.c: Likewise.
5000 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5001 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5003 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5004 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5005 * grub-core/loader/mips/linux.c: Likewise.
5006 * grub-core/loader/multiboot_elfxx.c: Likewise.
5007 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5008 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5009 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5010 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5012 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5013 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5016 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5018 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5021 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5023 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5024 Avoid improper use of strings.
5025 (grub_cmd_legacy_initrdnounzip): Likewise.
5027 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5029 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5031 (grub_util_info): Likewise.
5032 (grub_util_error): Likewise.
5034 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5036 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5037 * util/grub-fstest.c (fstest): Likewise.
5039 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5041 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5042 (grub_md_sha512_real): Likewise.
5043 (grub_util_get_geli_uuid): Likewise.
5044 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5045 (grub_util_biosdisk_open): Fix format specification.
5046 Respect format security.
5047 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5048 (xrealloc): Likewise.
5049 (xasprintf): Likewise.
5051 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5053 * util/import_gcry.py: Include grub/crypto.h in init.c.
5055 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5057 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
5058 (generate_image): Make prefix a const char *.
5059 Fix format specifications. Respect format security.
5060 Avoid void * arithmetics.
5062 (argp_parser): Remove unused variable. Respect format security.
5063 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
5064 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
5065 (count_funcs): Remove unused variable.
5066 (relocate_addresses): Fix format specification.
5067 Disable x86-64 with elf32. Remove unused variables.
5068 (add_fixup_entry): Avoid shadowing.
5069 (make_reloc_section): Fix format specification.
5071 (locate_sections): Fix format specifications.
5072 (load_image): Avoid shadowing.
5074 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5076 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
5077 Fix format specifications. Respect format security.
5078 Don't translate already translated grub_errmsg.
5079 (argp_parser): Remove unused variable
5081 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5083 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
5085 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5087 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
5088 (main): Likewise. Use xmalloc. Respect format security.
5090 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5092 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
5094 (argp_parser): Remove unused variable.
5096 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5098 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
5099 (add_pixel): Make static.
5100 (add_font): Likewise.
5101 (write_string_section): Make name and str a const char *.
5102 (write_be16_section): Make name a const char *.
5103 (print_glyphs): Make static.
5104 (write_font_ascii_bitmap): Likewise.
5105 (write_font_width_spec): Likewise.
5106 (write_font_pf2): Likewise.
5107 (argp_parser): Remove unused variable.
5108 Respect format security.
5109 (main): Avoid shadowing. Respect format security.
5111 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5113 * util/grub-editenv.c (argp_parser): Make static.
5114 (create_envblk_file): Use xmalloc.
5115 (open_envblk_file): Likewise.
5116 Resepect format security.
5117 (set_variables): Respect format security.
5119 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5121 * util/getroot.c (grub_find_device): Respect format security.
5122 (get_mdadm_uuid): Remove unused variable.
5123 (grub_util_pull_device): Dont call gettext on already translated
5125 (find_system_device): Remove unused variable.
5126 (grub_util_get_grub_dev): Likewise.
5127 (grub_make_system_path_relative_to_its_root): Respect format security.
5129 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5131 * util/grub-fstest.c (execute_command): Make first argument
5133 (read_file): Avoid shadowing.
5134 Reuse underlying error message if device open fails.
5135 (cmd_cmp): Respect format security.
5136 (root): Make const char *.
5137 (fstest): Remove args argument and use global copy.
5138 Respect format security.
5139 (argp_parser): Make static.
5140 (main): Make default_root const char *.
5142 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5144 * util/grub-mount.c (root): Make const char *.
5145 (execute_command): Make first argument a const char *.
5146 (fuse_init): Respect format security.
5147 (argp_parser): Make static. Remove unused variable.
5148 (main): Make default_root a const char *.
5149 Respect format security.
5151 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5153 * util/grub-probe.c (probe): Don't call gettext on already translated
5155 Remove unused variables.
5156 (argp_parser): Remove unused variable.
5158 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5160 * util/grub-script-check.c (argp_parser): Remove unused variable.
5161 (main): Rename read to curread to avoid shadowing.
5163 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5165 * util/misc.c (grub_util_write_image_at): Fix format specification.
5166 (grub_util_write_image): Likewise.
5167 (grub_script_execute_argument_to_string): Removed (unused).
5168 (grub_script_execute_menuentry): Likewise.
5169 (grub_putchar): Likewise.
5171 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5173 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
5174 (FUNCTION) [GRUB_UTIL]: Likewise.
5175 (VARIABLE) [GRUB_UTIL]: Likewise.
5177 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5179 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
5180 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
5182 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5184 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
5187 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5189 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
5190 (LzmaEnc_SaveState): Removed (unused).
5191 (LzmaEnc_RestoreState): Likewise.
5192 (LzmaEnc_InitPriceTables): Made static.
5193 (LzmaEnc_Construct): Likewise.
5194 (LzmaEnc_FreeLits): Likewise.
5195 (LzmaEnc_Destruct): Likewise.
5196 (LzmaEnc_Init): Likewise.
5197 (LzmaEnc_InitPrices): Likewise.
5198 (LzmaEnc_Finish): Likewise.
5199 (LzmaEnc_PrepareForLzma2): Removed (unused).
5200 (LzmaEnc_MemPrepare): Likewise.
5201 (LzmaEnc_GetNumAvailableBytes): Likewise.
5202 (LzmaEnc_GetCurBuf): Likewise.
5203 (LzmaEnc_CodeOneMemBlock): Likewise.
5205 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5207 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
5208 (grub_util_ldm_embed): Likewise.
5210 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5212 * util/grub-editenv.c (print_var): Rename name to varname to
5214 (main): Rename index to curindex to avoid shadowing.
5215 Make filename a const char *.
5217 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5219 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
5220 to arg_getline to avoid shadowing.
5222 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5224 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
5225 disk_ to avoid shadowing.
5227 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5229 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
5230 curindex to avoid shadowing.
5232 (MatchFinder_GetNumAvailableBytes): Make static.
5234 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5236 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
5239 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5241 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
5242 argument from encrypt to do_encrypt to avoid shadowing.
5244 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5246 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
5247 incorrect nesting of #if's.
5249 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5251 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
5252 checks which are always false on some platforms.
5253 (grub_cmd_lsacpi): Likewise.
5254 * grub-core/kern/misc.c (grub_strtoul): Likewise.
5255 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
5258 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5260 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
5261 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
5263 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5265 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
5266 re_dfa_t to avoid breaking alignment invariants.
5267 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
5268 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
5270 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5272 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
5273 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
5275 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5277 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
5280 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5282 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
5283 conserve alignment invariants.
5284 (grub_ehci_ehcc_read16): Likewise.
5285 (grub_ehci_oper_read32): Likewise.
5286 (grub_ehci_oper_write32): Likewise.
5287 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
5288 Conserve alignment invariants.
5290 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5292 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
5293 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
5296 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5298 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
5299 Remove unused variable.
5301 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5303 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
5306 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5308 * include/grub/net.h: Remove double declarations.
5310 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5312 Remove "payload" command in ia64 Linux loader since I couldn't
5313 find any evidence of it being used for anything.
5314 Replace "relocate" command with an environment variable
5316 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
5318 (ia64_boot_payload): Removed.
5319 (last_payload): Likewise.
5320 (RELOCATE_OFF): Likewise.
5321 (RELOCATE_ON): Likewise.
5322 (RELOCATE_FORCE): Likewise.
5323 (relocate): Likewise.
5324 (free_pages): Don't free payloads.
5325 (grub_load_elf64): Use common error messages.
5326 Use "linux_relocate" variable.
5327 Increase the space after boot_params.
5328 (grub_cmd_payload): Removed.
5329 (grub_cmd_relocate): Likewise.
5330 (grub_cmd_fpswa): Improve messages.
5331 (cmd_payload): Removed.
5332 (cmd_relocate): Likewise.
5333 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
5334 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
5336 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5338 Convert UHCI to DMA framework.
5340 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
5341 (grub_uhci_pci_iter): Fill new members
5342 (grub_alloc_td): Use P2V and V2P functions.
5343 (grub_free_queue): Likewise.
5344 (grub_alloc_qh): Likewise.
5345 (grub_uhci_setup_transfer): Likewise.
5346 (grub_uhci_check_transfer): Likewise.
5348 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5350 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
5351 Remove assignment in if while on it.
5353 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5355 * util/grub-mkstandalone.in: Fix modules directory.
5357 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5359 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
5361 (argp_parser): Accept "auto" as compression specification.
5363 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5365 Fix `help' with unloaded modules.
5367 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
5368 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
5369 (grub_dyncmd_dispatcher): Small stylistic fix.
5370 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
5371 explicit help is requested.
5373 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5375 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
5376 Explicitly init restart while on it.
5378 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5380 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
5383 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5385 * util/grub-mknetdir.in: Use . rather than source for POSIX
5388 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5390 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
5392 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5394 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
5397 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5399 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
5402 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5404 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
5406 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5408 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
5409 iteration of partitions.
5411 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5413 Improve gettext support. Stylistic fixes and error handling fixes while
5416 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
5418 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
5419 part. Instead setup the correct stack in RM.
5420 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
5422 * include/grub/i386/relocator_private.h: New file.
5424 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5426 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
5428 * util/grub-fstest.c (options): Add missing DEVICE part.
5430 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5432 Clarify and unify messages.
5434 * grub-core/commands/hashsum.c (options): Unify messages.
5435 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
5436 literal-only message as translatable.
5437 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
5438 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
5439 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
5441 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
5442 key, not the key used to unlock. Clarify what it's used for.
5443 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
5444 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
5445 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
5446 * util/grub-editenv.c (options): Unify "verbose" message.
5447 * util/grub-fstest.c (read_file): Unify error message.
5448 (fstest): Add quotes around commands.
5449 (options): Unify "verbose" message.
5450 * util/grub-install.in: Add quotes around variable name.
5451 * util/grub-kbdcomp.in: Unify error message.
5452 * util/grub-mkfont.c (main): Likewise.
5453 * util/grub-mkrescue.in: Likewise.
5454 * util/grub-mklayout.c (options): Unify "verbose" message.
5455 * util/grub-mkstandalone.in: Unify help and verbose messages.
5456 * util/grub-mount.c (options): Unify "verbose" message.
5457 * util/grub-probe.c (options): Likewise.
5458 * util/grub-script-check.c (options): Likewise.
5459 * util/grub-setup.c (setup): Unify no-terminator message.
5460 (options): Use DEVICE and not DEV.
5461 Unify "verbose" message.
5462 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
5464 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5466 Improve and unify messages.
5468 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
5469 name. All users updated.
5470 Print filename in error.
5471 (read_device_map): Print filename in error.
5472 * util/getroot.c (grub_guess_root_devices): Print filename in error.
5473 (grub_util_get_os_disk): Likewise.
5474 (grub_util_biosdisk_get_grub_dev): Likewise.
5475 (grub_util_check_block_device): Likewise.
5476 (grub_util_check_char_device): Likewise.
5477 (grub_make_system_path_relative_to_its_root): Likewise.
5478 * util/grub-editenv.c (create_envblk_file): Likewise.
5479 (open_envblk_file): Likewise.
5480 (write_envblk): Likewise.
5481 * util/grub-fstest.c (cmd_cp): Likewise.
5482 (cmd_cat): Likewise.
5483 (cmd_cmp): Likewise.
5484 * util/grub-menulst2cfg.c (main): Likewise.
5485 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
5486 (write_font_width_spec): Likewise.
5487 (write_font_pf2): Likewise.
5488 * util/grub-mkimage.c (generate_image): New argument outname.
5490 Remove unreacheable message.
5491 (options): Unify messages.
5492 (help_filter): Likewise.
5493 * util/grub-mklayout.c (usage): Removed (unused).
5494 (main): Print filename in error.
5495 * util/grub-mkrescue.in: Fix wrong quoting.
5496 * util/grub-setup.c (setup): Print filename in error.
5497 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
5498 (check_sas): Likewise.
5499 * util/misc.c (grub_util_get_fp_size): Removed.
5500 (grub_util_get_image_size): Print filename in error.
5501 (grub_util_read_at): Removed.
5502 (grub_util_read_image): Print filename in error.
5503 (grub_util_load_image): Likewise.
5504 (grub_util_write_image_at): New argument filename. All users updated.
5505 Print filename in error.
5506 (grub_util_write_image): New argument filename. All users updated.
5507 Print filename in error.
5508 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
5509 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
5511 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5513 * grub-core/Makefile.core.def (pxechain): New module.
5514 * grub-core/loader/i386/pc/pxechainloader.c: New file.
5515 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
5517 (grub_pc_net_config_real): Use grub_pxe_get_cached.
5518 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
5520 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5522 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
5523 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
5524 * include/grub/err.h (grub_error_saved): New struct.
5525 (grub_errmsg): Make array size explicit.
5526 * include/grub/misc.h (grub_error_save): New function.
5527 (grub_error_load): Likewise.
5528 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
5529 (grub_error_push): Update `errno' member name.
5530 (grub_error_pop): Likewise
5531 * grub-core/net/tftp.c (tftp_data): New member save_err.
5532 (tftp_receive): Save error.
5533 (tftp_open): Restore error.
5535 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5537 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
5538 to real mode down to execute A20-related code in protected mode as
5541 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5543 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
5544 NULL when the argument `level' has an unexpected value.
5546 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5548 Move platform-dependent files from $prefix to $prefix/$platform.
5550 * config.h.in (GRUB_TARGET_CPU): New definition.
5551 (GRUB_PLATFORM): Likewise.
5552 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
5553 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
5554 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
5555 * grub-core/kern/dl.c (grub_dl_load): Likewise.
5556 * grub-core/normal/autofs.c (read_fs_list): Likewise.
5557 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
5558 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
5559 * grub-core/normal/term.c (read_terminal_list): Likewise.
5560 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
5562 (grub_gettext_init_ext): Likewise.
5563 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
5565 * util/grub-install.in: Update directories.
5566 * util/grub-mknetdir.in: Likewise.
5567 * util/grub-mkrescue.in: Likewise.
5569 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5571 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
5572 grub_error framework. All users updated.
5574 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5576 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
5577 lists (by always binsearching), improve caching (cache strings
5578 used for binsearch, not only results), improve
5579 maintainability (by using more structured binary search) and correct
5582 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5584 * grub-core/script/execute.c (grub_script_return): Fix warning.
5586 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5588 * grub-core/script/execute.c (grub_script_return): Fix potential
5590 Reported by: Jim Meyering.
5592 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5594 * po/POTFILES.in: Regenerate.
5595 * util/grub-install.in: Gettextize the strings missed in first pass.
5597 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5599 * Makefile.util.def (grub-mkdevicemap): Removed.
5600 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
5601 * include/grub/util/deviceiter.h: Removed.
5602 * util/deviceiter.c: Likewise.
5603 * util/getroot.c (grub_util_get_os_disk): New function.
5604 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
5605 replacement for EFI.
5606 * util/grub-mkdevicemap.c: Removed.
5607 * util/grub-probe.c (probe): Handle PRINT_DISK.
5608 (argp_parser): Handle -t disk.
5610 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5612 * util/grub-mkfont.c: Migrate to argp.
5613 * util/grub-mklayout.c: Likewise.
5614 * util/grub-mkpasswd-pbkdf2.c: Likewise.
5615 * util/grub-mkrelpath.c: Likewise.
5616 * util/grub-probe.c: Likewise.
5617 * util/grub-script-check.c: Likewise.
5619 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5621 * util/grub-reboot.in: Add missing datarootdir.
5622 Add missing newline.
5623 * util/grub-set-default.in: Add missing datarootdir.
5624 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
5625 * util/grub-mkrescue.in: Likewise.
5627 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5629 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
5631 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5633 * util/grub-kbdcomp.in: Add decent help and gettextize.
5634 * docs/man/grub-kbdcomp.h2m: New file.
5636 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5638 Migrate grub-mkimage.c to argp.
5640 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
5641 (grub-setup): Likewise.
5642 * util/grub-setup.c (print_version): Move to ...
5643 * util/argp_common.c (print_version): ... here.
5644 * util/grub-setup.c (argp_program_version_hook): Move to ...
5645 * util/argp_common.c (argp_program_version_hook): ... here.
5646 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
5648 * util/grub-mkimage.c (main): Migrate to argp.
5650 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5652 * util/grub-mkrescue.in: Use same message as
5653 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
5654 for better translations.
5656 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5658 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
5659 options with generic grub-mkrescue.in with the goal of future
5662 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5664 * grub-core/kern/mm.c: Add missing include of i18n.h
5665 * grub-core/lib/relocator.c: Likewise.
5667 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5669 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
5671 (allocate_pages): Check return value.
5672 Replace fatal with error.
5673 (grub_linux_boot): Replace printf with dprintf.
5674 Check find_mmap_size return value.
5675 Replace fatal with error.
5676 Don't call grub_machine_fini.
5677 (grub_load_elf64): Replace printf with dprintf.
5678 (grub_cmd_linux): Likewise.
5679 (grub_cmd_initrd): Likewise.
5680 (grub_cmd_payload): Likewise.
5682 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5684 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
5686 * grub-core/video/radeon_fuloong2e.c
5687 (grub_video_radeon_fuloong2e_setup): Likewise.
5688 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
5689 * grub-core/video/video.c (grub_video_set_mode): Don't override
5690 standard out of memory message.
5692 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5694 NetBSD disk wedge support.
5696 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
5697 [__NetBSD__]: Handle NetBSD disk wedges.
5698 * util/getroot.c (convert_system_partition_to_system_disk)
5699 [__NetBSD__]: Likewise.
5701 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
5703 * util/grub-mkconfig.in: Use umask rather than chmod to create
5704 grub.cfg.new to avoid insecure grub.cfg.
5706 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5708 * grub-core/commands/ls.c: Gettextize.
5709 * grub-core/commands/setpci.c: Likewise.
5710 * grub-core/commands/videotest.c: Likewise.
5711 * grub-core/disk/geli.c: Likewise.
5712 * grub-core/kern/mm.c: Likewise.
5713 * grub-core/lib/relocator.c: Likewise.
5714 * grub-core/loader/efi/appleloader.c: Likewise.
5715 * grub-core/loader/i386/xnu.c: Likewise.
5716 * grub-core/loader/ia64/efi/linux.c: Likewise.
5717 * grub-core/loader/xnu.c: Likewise.
5718 * grub-core/net/dns.c: Likewise.
5719 * grub-core/net/net.c: Likewise.
5720 * grub-core/script/lexer.c: Likewise.
5721 * grub-core/script/parser.y: Likewise.
5722 * grub-core/script/yylex.l: Likewise.
5723 * util/getroot.c: Likewise.
5724 * util/grub-setup.c: Likewise.
5726 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5728 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
5731 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5733 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
5735 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5737 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
5739 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
5740 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
5742 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5744 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
5745 * util/grub-install.in: Gettextize.
5746 * util/grub-mkconfig.in: Likewise.
5747 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
5749 (grub_warn): Gettextize.
5750 * util/grub-mknetdir.in: Gettextize.
5751 * util/grub-mkrescue.in: Likewise.
5752 * util/grub-mkstandalone.in: Likewise.
5753 * util/grub-reboot.in: Likewise.
5754 * util/grub-set-default.in: Likewise.
5755 * util/grub.d/00_header.in: Likewise.
5756 * util/grub.d/10_hurd.in: Likewise.
5757 * util/grub.d/10_kfreebsd.in: Likewise.
5758 * util/grub.d/10_linux.in: Likewise.
5759 * util/grub.d/10_netbsd.in: Likewise.
5760 * util/grub.d/10_windows.in: Likewise.
5761 * util/grub.d/20_linux_xen.in: Likewise.
5762 * util/grub.d/30_os-prober.in: Likewise.
5763 * po/POTFILES-shell.in: Regenerate.
5765 2012-02-03 Richard Laager <rlaager@wiktel.com>
5767 * util/grub-mkimage.c (main): Fix format-security warning.
5768 * util/grub-mkrelpath.c (main): Likewise.
5769 * util/grub-probe.c (main): Likewise.
5771 2012-02-03 Richard Laager <rlaager@wiktel.com>
5773 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
5775 Put back lost PRINT_DRIVE.
5777 2012-02-03 Richard Laager <rlaager@wiktel.com>
5779 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
5780 (grub_guess_root_devices): Replace strlen with sizeof.
5782 (find_root_devices_from_poolname): Remove unused variable.
5785 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5787 Support install on multi-device filesystems.
5789 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
5790 (grub_guess_root_devices): ...this. Return char **. All users updated.
5791 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
5793 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
5794 (find_root_devices_from_poolname): ... here.
5795 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
5797 (grub_guess_root_device): Rename to ...
5798 (grub_guess_root_devices): ... this. Return char **. All users updated.
5799 * util/grub-install.in: Handle multi-device filesystems.
5800 * util/grub-probe.c (probe). Make device_names a char **. Add delim
5801 argument. All users updated.
5802 Handle multi-device filesystems.
5803 Use 'delim' as separator.
5804 Remove device check to allow filesystems on file.
5805 (main): Support -0 argument. Handle multi-device.
5806 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
5807 Fix a cross-device check while on it.
5808 (arguments): Remove root_dev.
5809 (argp_parser): Remove -r.
5810 (main): Remove root_dev.
5812 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5814 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
5816 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5818 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
5820 Reported by: NODA, Kai <nodakai>.
5822 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5826 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
5828 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
5829 (grub_ehci_setup_qh): Likewise.
5830 (grub_ehci_find_qh): Likewise.
5831 (grub_ehci_transaction): Likewise.
5832 (grub_ehci_setup_transfer): Likewise.
5833 (grub_ehci_check_transfer): Likewise.
5834 (grub_ehci_portstatus): Likewise.
5835 (grub_ehci_detect_dev): Likewise.
5836 (grub_ehci_transfer_controller_data): New field td_last_phys.
5837 (grub_ehci_setup_transfer): Fill td_last_phys.
5838 (grub_ehci_check_transfer): Use td_last_phys.
5840 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
5842 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
5843 if no submenu is present.
5845 2012-02-01 Aleš Nesrsta <starous@volny.cz>
5849 * include/grub/usb.h (grub_usbms_protocol_t): New values
5850 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
5851 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
5852 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
5853 (grub_usbms_dev): Add subclass, protocol and intrpt.
5854 Remove in_maxsz and out_maxsz.
5855 (grub_usbms_reset): Rename to ...
5856 (grub_usbms_bo_reset): .. this.
5857 (grub_usbms_cbi_cmd): New function.
5858 (grub_usbms_cbi_reset): Likewise.
5859 (grub_usbms_reset): Likewise.
5860 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
5861 (grub_usbms_transfer): Rename to ...
5862 (grub_usbms_transfer_bo): ... this.
5863 (grub_usbms_transfer_cbi): Likewise.
5864 (grub_usbms_transfer): Likewise.
5866 2012-02-01 Aleš Nesrsta <starous@volny.cz>
5867 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5869 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
5870 the support for the CS5536 modification thereos and few bugfixes.
5872 * grub-core/Makefile.core.def (ehci): New module.
5873 * grub-core/bus/usb/ehci.c: New file.
5874 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
5875 port and hubaddr. All users updated.
5876 Save port and hubaddr into dev structure.
5877 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
5879 * include/grub/pci.h (grub_dma_phys2virt): New function.
5880 (grub_dma_virt2phys): Likewise.
5881 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
5883 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5885 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
5886 check as some mkfs implementations omit it.
5888 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5890 * docs/grub.texi (Unicode): Mention identifier and space limitations.
5892 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5894 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
5895 Add new member volname2.
5896 (grub_jfs_label): Use volname2 if available.
5898 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5900 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
5901 over last_mounted as seen in image generated by mkfs.nilfs2.
5902 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
5904 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5906 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
5907 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
5908 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
5910 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5912 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
5915 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5917 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
5918 subvolume name (by removing a bogus and useless check).
5920 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5922 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
5925 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5927 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
5928 (grub_scsi_read_capacity10): ... this.
5929 (grub_scsi_read_capacity16): New function.
5930 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
5932 Fix off-by-one error.
5933 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
5935 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
5936 (grub_scsi_read_capacity10): ... this.
5937 (grub_scsi_read_capacity_data): Rename to ...
5938 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
5939 (grub_scsi_read_capacity16): New struct.
5940 (grub_scsi_read_capacity16_data): Likewise.
5941 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
5942 grub_scsi_cmd_read_capacity10.
5943 New command grub_scsi_cmd_read_capacity16.
5945 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5949 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
5950 (grub_scsi_write16): Likewise.
5951 (grub_scsi_read): Use read16 when necessary.
5952 (grub_scsi_write): Likewise.
5953 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
5954 (grub_scsi_write16): Likewise.
5955 (grub_scsi_cmd_t): Add READ16 and WRITE16.
5957 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5959 SCSI write support (for usbms mainly).
5961 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
5963 (grub_scsi_write): Implement.
5964 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
5966 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5968 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
5971 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5973 * grub-core/lib/posix_wrap/string.h (memchr): New function.
5975 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5977 * po/POTFILES.in: Regenerate.
5979 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5981 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
5982 with grub_printf to avoid unnecessary fatal failure.
5984 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5986 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
5987 (INT_MAX): Likewise.
5988 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
5989 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
5990 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
5994 (strncpy): Likewise.
5996 (strncat): Likewise.
5997 (strcoll): Likewise.
5998 * include/grub/types.h (GRUB_SHRT_MAX): New define.
5999 (GRUB_INT_MAX): Likewise.
6001 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6003 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6005 (optimize_utf8): Likewise.
6006 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6008 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6010 * grub-core/boot/i386/pc/lnxboot.S: Use
6011 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6012 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6014 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6016 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6018 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6020 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6021 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6022 now to avoid double free.
6023 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6025 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6026 * util/grub-probe.c (escape_of_path): Always return a new copy.
6027 (print_full_name): Escape path.
6028 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6029 Fix hints on abstractions.
6031 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6033 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6034 Don't add "root" line if no compatibility hont is available.
6035 Suggested by: Seth Goldberg.
6037 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6039 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6040 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6041 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6042 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6044 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6046 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6048 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6050 * util/grub-pe2elf.c (ehdr): Make static.
6052 (num_sections): Likewise.
6055 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6057 Eliminate ofpath limits and possible overflows.
6059 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
6060 (OF_PATH_MAX): Removed.
6061 (MAX_DISK_CAT): New const.
6062 (find_obppath): Use allocated rather than preallocated buffer.
6063 Return result. Argument of_path removed. All users updated.
6065 (xrealpath): New function.
6066 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
6067 Allocate rather than use preallocated buffer. All users updated.
6068 (__of_path_common): Use allocated rather than preallocatecd buffer.
6069 Return result. Argument of_path removed. All users updated.
6070 (vendor_is_ATA): Read only needed part form the file.
6071 (check_sas): Allocate depending on contents rather than fixed.
6072 (main) [STANDALONE]: Handle NULL result.
6074 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6076 * grub-core/normal/completion.c (iterate_dev): Close the disk.
6078 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6080 Cryptodisk write support.
6082 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
6083 (grub_cryptodisk_decrypt): Moved logic to ...
6084 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
6085 (grub_cryptodisk_write): Implement.
6086 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
6087 (grub_util_fd_write): ... this. Make global.
6088 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
6090 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6092 * include/grub/list.h (grub_list_remove): Don't crash if element is
6095 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6097 Rename ofconsole to console.
6099 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
6100 as sysnonym to console.
6101 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
6102 * grub-core/term/ieee1275/console.c: ... this. All users updated.
6103 Rename grub_ofconsole_ to grub_console_. All users updated
6104 (grub_console_term_output): Rename "ofconsole" to "console".
6105 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
6108 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6110 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
6112 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
6113 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
6114 GRUB_DISK_DEVICE_FILE_ID.
6116 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6118 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
6119 and improve performance.
6121 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6123 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
6124 missing ieee1275/ prefix on whole disk.
6126 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6128 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
6129 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
6131 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6133 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
6135 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6137 Merge common RAID and LVM logic to an abstract diskfilter.
6138 Add LDM support using the same framework.
6140 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
6141 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
6142 (libgrubmods): Remove grub-core/disk/raid.c and
6143 grub-core/partmap/gpt.c.
6144 * grub-core/Makefile.core.def (ldm): New module.
6145 (raid): Renamed to diskfilter. All users updated.
6146 * grub-core/disk/raid.c: Moved to ...
6147 * grub-core/disk/diskfilter.c: ... here.
6148 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
6150 (find_array): Renamed to ...
6151 (find_lv): ... this. Support multi-LV. Skip nameless LVs
6152 (grub_is_array_readable): Renamed to ...
6153 (grub_is_lv_readable): ... this. Support multinode hierarchy.
6154 (insert_array): New argument id.
6155 (is_node_readable): New function.
6156 (scan_device): Rename to ...
6157 (scan_disk): .. this. Restrict to one disk.
6158 (scan_devices): New function.
6159 (grub_diskfilter_iterate): Support multi-LV.
6160 Skip invisible and nameless LVs.
6161 (grub_diskfilter_memberlist): Support multi-LV.
6162 (grub_diskfilter_read_node): New function.
6163 (grub_raid_read): Most of logic moved to ...
6164 (read_segment): ... here
6165 (read_lv): New function.
6166 (grub_diskfilter_get_vg_by_uuid): New function.
6167 (grub_diskfilter_make_raid): Likewise.
6168 * grub-core/disk/ldm.c: New file.
6169 * grub-core/disk/lvm.c (vg_list): Removed.
6170 (lv_count): Likewise.
6171 (scan_depth): Likewise.
6172 (is_lv_readable): Likewise.
6173 (grub_lvm_getvalue): Advance pointer past the number.
6175 (do_lvm_scan): Refactored into ...
6176 (grub_lvm_detect): ... this. Support raid.
6177 (grub_lvm_iterate): Removed.
6178 (grub_lvm_memberlist): Likewise.
6179 (grub_lvm_open): Likewise.
6180 (grub_lvm_close): Likewise.
6181 (read_lv): Likewise.
6182 (read_node): Likewise.
6183 (is_node_readable): Likewise.
6184 (is_lv_readable): Likewise.
6185 (grub_lvm_read): Likewise.
6186 (grub_lvm_write): Likewise.
6187 (grub_lvm_dev): Use diskfilter
6188 (GRUB_MOD_INIT): Likewise.
6189 (GRUB_MOD_FINI): Likewise.
6190 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
6192 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
6193 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6194 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
6195 grub_diskfilter_read_node.
6197 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
6198 grub_diskfilter_read_node.
6199 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
6200 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
6201 (grub_disk_dev_iterate): Move from here...
6202 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
6203 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6205 (grub_hostdisk_find_partition_start): Likewise.
6206 (grub_hostdisk_os_dev_to_grub_drive): New function.
6207 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
6208 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
6209 * util/getroot.c (make_device_name): ... here.
6210 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6212 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
6213 * grub-core/kern/emu/hostdisk.c
6214 (convert_system_partition_to_system_disk): Move to ...
6215 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
6216 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
6217 * util/getroot.c (device_is_wholedisk): ... here.
6218 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
6219 * util/getroot.c (find_system_device): ... here.
6220 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
6222 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
6223 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
6225 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
6227 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
6229 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
6230 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
6231 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
6233 * include/grub/raid.h: Renamed to ...
6234 * include/grub/diskfilter.h: ... this.
6235 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
6236 (GRUB_RAID_LAYOUT_*): Make into array.
6237 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
6238 (grub_diskfilter_vg): New struct.
6239 (grub_diskfilter_pv_id): Likewise.
6240 (grub_raid_member): Removed.
6241 (grub_raid_array): Likewise.
6242 (grub_diskfilter_pv): New struct.
6243 (grub_diskfilter_lv): Likewise.
6244 (grub_diskfilter_segment): Likewise.
6245 (grub_diskfilter_node): Likewise.
6246 (grub_diskfilter_get_vg_by_uuid): New proto.
6247 (grub_raid_register): Inline.
6248 (grub_diskfilter_unregister): Likewise.
6249 (grub_diskfilter_make_raid): New proto.
6250 (grub_diskfilter_vg_register): Likewise.
6251 (grub_diskfilter_read_node): Likewise.
6252 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
6253 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
6254 (grub_util_is_ldm): Likewise.
6255 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
6256 (grub_hostdisk_find_partition_start): Likewise.
6257 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
6258 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
6260 (grub_gpt_partition_map_iterate): New proto.
6261 * include/grub/lvm.h (grub_lvm_vg): Removed.
6262 (grub_lvm_pv): Likewise.
6263 (grub_lvm_lv): Likewise.
6264 (grub_lvm_segment): Likewise.
6265 (grub_lvm_node): Likewise.
6266 * util/getroot.c [...]
6267 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
6268 (probe_abstraction): Likewise.
6269 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
6270 (main): Remove dead logic.
6272 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
6274 Simplify root device discover and don't fail when trying to open
6277 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
6279 (get_diskname_from_path): Likewise.
6280 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
6283 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6285 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
6287 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6289 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
6292 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
6294 * util/grub-install.in: Add missing \.
6295 Reported by: gentoofan
6297 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6299 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
6300 (direct_read): Use correct compressed size.
6301 (grub_squash_read_data): Likewise.
6303 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
6305 * docs/grub.texi (Platform limitations): New section.
6306 (Platform-specific operations): Likewise.
6307 * docs/grub-dev.texi (Porting): Likewise.
6309 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6311 IEEE1275 disk write support.
6313 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
6315 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
6316 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
6317 and seek loginc to ...
6318 (grub_ofdisk_prepare): ... here.
6319 (grub_ofdisk_write): Implement.
6321 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6323 ARC disk write support.
6325 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
6326 (reopen): New argument writable. All users updated.
6327 Handle required access mode.
6328 (grub_arcdisk_write): Implement.
6329 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
6330 (grub_arc_firmware_vector): Make buffer to write a const buffer.
6332 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6334 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
6335 (read_sblock): Don't attempt to read superblocks outside the disk size.
6337 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6339 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
6340 first superblock to find the second one when possible.
6342 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6344 * util/grub-install.in: Fix an ARC bug.
6345 Print a warning if no platform-specific setup is available.
6347 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6349 Use static allocation rather than scratch pointer in reed_solomon.
6350 It decreases its size significantly and avoids a variable in .text.
6352 * grub-core/lib/reed_solomon.c (scratch): Removed.
6353 (chosenstat): New const or static array.
6359 (errvals): Likewise.
6361 (pol_evaluate): Replace x with log_x argument. All users updated.
6362 (syndroms): Removed.
6363 (gauss_solve): Use statically allocated arrays.
6364 (rs_recover): Likewise.
6365 Calculate syndroms directly.
6366 (decode_block): Use statically allocated arrays.
6367 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
6368 (main) [TEST]: Allow -DTEST -DSTANDALONE.
6370 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6372 Eliminate fixed limit on reed solomon decoder length.
6374 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
6375 rather than hardcoding the address.
6376 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
6377 no_reed_solomon_length.
6378 Move gate_a20 to no-reed-solomon part.
6379 Don't force a particular size of no reed-solomon part.
6380 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
6382 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
6383 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
6385 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6387 * grub-core/commands/wildcard.c (match_files): Handle filenames
6388 without explicit device.
6389 (wildcard_expand): Don't add explicit device if not already present.
6390 * tests/grub_script_echo1.in: Add a new expansion test.
6392 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6394 Replace single-linked with double-linked lists. It results in more
6395 compact and more efficient code.
6397 * grub-core/kern/list.c (grub_list_push): Moved from here ...
6398 * include/grub/list.h (grub_list_push): ... to here. Set prev.
6399 (grub_list_remove): Moved from here ...
6400 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
6401 (grub_prio_list_insert): Set prev.
6402 * include/grub/list.h (grub_list): Add prev. All users updated.
6404 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6406 Handle newer autotools. Add some missing quotes while on it.
6408 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
6409 (pkglib_DATA): Move grub-mkconfig_lib from here ...
6410 (pkgdata_DATA): ... here.
6411 * Makefile.util.def (update-grub_lib): Removed.
6412 * conf/Makefile.common (pkglib_DATA): Removed.
6413 (pkglib_SCRIPTS): Likewise.
6414 (pkgdata_DATA): New variable.
6415 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
6418 Remove unused variable while on it.
6419 * tests/util/grub-shell.in: Likewise.
6420 * util/grub-install.in: Likewise.
6421 * util/grub-mkconfig.in: Likewise.
6422 * util/grub-mknetdir.in: Likewise.
6423 * util/grub-mkrescue.in: Likewise.
6424 * util/grub-mkstandalone.in: Likewise.
6425 * util/grub.d/00_header.in: Likewise.
6426 * util/grub.d/10_hurd.in: Likewise.
6427 * util/grub.d/10_illumos.in: Likewise.
6428 * util/grub.d/10_kfreebsd.in: Likewise.
6429 * util/grub.d/10_linux.in: Likewise.
6430 * util/grub.d/10_netbsd.in: Likewise.
6431 * util/grub.d/10_windows.in: Likewise.
6432 * util/grub.d/20_linux_xen.in: Likewise.
6433 * util/grub.d/30_os-prober.in: Likewise.
6434 * util/update-grub_lib.in: Removed.
6436 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
6438 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
6439 a workaround for intel problem.
6441 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
6442 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6443 2012-01-23 pfsmorigo
6445 * util/grub-install.in: Support dd'in into PreP partition.
6446 * util/grub-probe.c (probe): Support discovering partition type.
6447 (main): Support -t msdos_parttype.
6449 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6451 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
6452 infinite recursion using counter.
6453 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
6454 init to skip it if the magic check fails.
6455 (dec_stream_header): Init s->crc32.
6457 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6458 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
6459 2012-01-22 Richard Laager <rlaager@wiktel.com>
6461 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
6463 (find_bestub): Determine correct size.
6464 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
6465 (scan_disk): Align the size down.
6466 Call check pool before find_bestub to have ashift.
6468 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6470 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
6471 dprintf in no-malloc zone.
6473 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
6475 * configure.ac: Add back in test for limits.h.
6477 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6479 Support 4K-sector NTFS.
6481 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
6482 (grub_ntfs_data): Remove blocksize.
6483 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
6484 Remove data argument. All users updated.
6486 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6488 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
6489 being in .text to avoid dprel references.
6490 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
6491 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
6492 (grub_arch_highmemsize): Likewise.
6493 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
6494 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
6495 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
6497 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6499 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
6501 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
6502 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
6504 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6506 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
6508 (grub_set_datetime_cmos): Likewise.
6510 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6512 Make XZ compression parameters dependent on target and not host CPU.
6514 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
6515 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
6517 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6519 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
6520 set but not used variable.
6522 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6524 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
6525 created when no uuid support is compiled into mkfs.reiser.
6527 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6529 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
6530 (utf8_to_macroman): Do the opposite.
6531 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
6533 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6535 * configure.ac: Refise build qemu_mips w/o unifont.
6537 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6539 Eliminate grub_min/grub_max prone to overflow usage.
6541 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
6542 (poll_nonroot_hub): Likewise.
6543 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
6544 (grub_affs_label): Likewise.
6545 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
6546 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
6547 (grub_hfs_label): Likewise.
6548 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
6549 * grub-core/fs/zfs/zfs.c (MIN): Remove.
6550 (zap_leaf_array_equal): Use grub_size. Remove MIN.
6551 (zap_leaf_array_get): Likewise.
6552 (dnode_get_path): Likewise.
6553 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
6554 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
6555 * grub-core/script/execute.c (grub_script_break): Likewise.
6556 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
6558 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
6559 * include/grub/misc.h (grub_min): Removed.
6560 (grub_max): Likewise.
6562 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6564 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
6567 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6569 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
6571 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6573 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
6575 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6577 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
6578 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
6580 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6582 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
6583 rather than a hack for grub_strncasemap.
6585 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6587 Support multiple initrds
6588 Note: part of this was accidently committed in r3739.
6590 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
6592 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
6593 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
6594 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6595 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6596 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6598 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6600 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
6601 disks with unknown size.
6602 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
6604 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6606 Remove defines pertaining to arbitrary limits not affecting GRUB
6609 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
6610 (EXT2_MAX_SYMLINKCNT): Likewise.
6611 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
6612 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
6613 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
6614 (GRUB_PXE_MAX_BLKSIZE): Likewise.
6615 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
6616 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
6617 (DN_MAX_OBJECT_SHIFT): Likewise.
6618 (DN_MAX_OFFSET_SHIFT): Likewise.
6619 (DN_MAX_OBJECT): Likewise.
6620 (DNODES_PER_LEVEL_SHIFT): Likewise.
6621 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
6622 (SPA_MAXBLOCKSIZE): Likewise.
6623 (SPA_BLOCKSIZES): Likewise.
6624 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
6625 (MZAP_MAX_BLKSZ): Likewise.
6627 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6629 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
6630 handle NULL appropriately.
6633 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6637 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
6639 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
6640 * configure.ac: Fix efiemu check.
6642 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6644 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
6646 Reported by: adamwill
6648 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
6650 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
6652 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6654 Fix handling of wide characters in gfxterm.
6656 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
6657 (clear_char): Likewise.
6658 (paint_char): Skip code == NULL chars.
6659 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
6661 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6663 * grub-core/normal/charset.c: Move comment to right place.
6665 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6667 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
6668 (GRUB_AFFS_FLAG_FFS): Put back where it was.
6669 (grub_affs_mount): Revert the correct version checking.
6671 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6673 * docs/grub.texi (Unicode): Mention several other unsupported features.
6675 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6677 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
6678 case statements as compile-time one.
6679 (direct_read): Prevent spurious warnings.
6680 (grub_squash_read_data): Likewise.
6682 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6684 Various squash4 fixes and LZO and XZ support.
6686 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
6687 Add xzembed source files.
6688 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
6689 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
6690 (grub_squash_inode): New subtype long_dir.
6691 (SQUASH_TYPE_LONG_DIR): New inode type.
6692 (COMPRESSION): New enum.
6693 (XZBUFSIZ): New const.
6694 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
6695 (read_chunk): Use data->decompress.
6696 (zlib_decompress): New function.
6697 (lzo_decompress): Likewise.
6698 (xz_decompress): Likewise.
6699 (squash_mount): Set new data fields.
6700 (grub_squash_iterate_dir): Handle long dir.
6701 (squash_unmount): Free xzdec and xzbuf.
6702 (grub_squash_open): Check ino type.
6703 (direct_read): Stylistic fixes. Use data->decompress.
6704 (grub_squash_read_data): Likewise.
6705 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
6706 (get_byte): Likewise.
6707 (grub_zlib_disk_read): Removed.
6708 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
6709 (GRUB_POSIX_BOOL_DEFINED): New define.
6710 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
6711 * grub-core/lib/xzembed/xz.h: Addmissing includes.
6712 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
6713 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
6715 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6717 Don't override more informative errors.
6719 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
6720 * grub-core/font/font.c (open_section): Likewise.
6721 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
6722 filename. Don't override errors.
6723 (grub_cmd_openbsd_ramdisk): Don't override errors.
6724 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
6725 (grub_cmd_initrd): Likewise.
6726 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6727 (grub_cmd_initrd): Likewise.
6728 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
6729 (grub_cmd_linux): Likewise.
6730 (grub_cmd_initrd): Likewise.
6731 (grub_cmd_payload): Likewise.
6732 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6733 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
6734 (grub_cmd_module): Likewise.
6735 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6736 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6737 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
6738 (grub_cmd_xnu_mkext): Likewise.
6739 (grub_cmd_xnu_ramdisk): Likewise.
6740 (grub_xnu_check_os_bundle_required): Likewise.
6741 (grub_xnu_load_kext_from_dir): Likewise.
6742 (grub_cmd_xnu_kextdir): Likewise.
6743 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
6745 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6747 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
6748 as 1024 in block size field. Found on one of my test images.
6749 Small optimisation while on it.
6751 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6753 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
6754 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
6755 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
6756 performance fixes while on it.
6757 (grub_sfs_close): Fix memory leak while on it.
6758 (grub_sfs_label): Convert Latin1 to UTF-8.
6760 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6762 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
6763 space to avoid overflows.
6764 (grub_hfs_label): Convert from macroman to UTF-8.
6766 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6768 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
6770 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6772 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
6774 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6776 * unicode: Import Unicode 6.0 data.
6778 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6780 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
6783 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6785 Avoid cutting in the middle of UTF-8 character.
6787 * include/grub/charset.h (grub_getend): New function.
6788 * grub-core/script/function.c (grub_script_function_find): Use
6790 * grub-core/normal/completion.c (add_completion): Likewise.
6792 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6794 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
6795 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
6796 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
6797 (GRUB_UNICODE_TAG_END): Likewise.
6798 (GRUB_UNICODE_LAST_VALID): Likewise.
6800 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6802 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
6803 len and make it smaller. All users updated.
6804 * util/import_unicode.py: Put length and not end character.
6807 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6809 Make better Unicode-compliant and unify some UTF-8 code pathes.
6811 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
6813 (grub_is_valid_utf8): Use grub_utf8_process.
6814 Check resulting code range.
6815 (grub_utf8_to_ucs4): Use grub_utf8_process.
6816 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
6819 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6821 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
6823 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6825 * docs/grub.texi (Filesystems): Mention AFS.
6827 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6829 * docs/grub.texi (Filesystems): Clarify restrictions.
6830 (Regexp): Mention non-Unicode regexp behaviour.
6831 (Other): Mention non-Unicode matching behaviour.
6833 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6835 Make HFS implementation use MacRoman.
6837 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
6838 (macroman): New const array.
6839 (macroman_to_utf8): New function.
6840 (utf8_to_macroman): Likewise.
6841 (grub_hfs_find_dir): Use utf8_to_macroman.
6842 (grub_hfs_dir): Use macroman_to_utf8.
6843 Set case_insensitive.
6845 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6847 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
6849 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6851 Integrate hints into autogeneration scripts.
6853 * docs/grub.texi (Filesystems): Add a hostdisk example.
6854 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
6855 (grub-probe): Add ofpath.
6856 * gentpl.py: Remove group nosparc64.
6857 * grub-core/commands/search.c (cache_entry): New struct.
6859 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
6860 * grub-core/commands/search_wrap.c (options): Add platform-specific
6862 (grub_cmd_search): Handle platform-specific hints.
6863 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
6864 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
6865 (grub_util_biosdisk_data): Likewise.
6866 (grub_util_biosdisk_open): Set device_map.
6867 (read_device_map): Handle "" as indication of no map.
6869 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
6870 (grub_util_biosdisk_get_compatibility_hint): New function.
6871 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
6872 * include/grub/emu/hostdisk.h
6873 (grub_util_biosdisk_get_compatibility_hint): New proto.
6874 * util/grub-install.in: Don't call grub-mkdevicemap.
6875 Add platform-specific hint to load.cfg.
6876 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
6877 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
6878 hints. Set root preliminary to compatibility hint, not to OS name.
6879 * util/grub-probe.c (PRINT_*): Add hints.
6880 (print): Make static.
6881 (escape_of_path): New function.
6882 (guess_bios_drive): Likewise.
6883 (guess_efi_drive): Likewise.
6884 (guess_baremetal_drive): Likewise.
6885 (print_full_name): Likewise.
6886 (probe): Handle hints.
6888 * util/ieee1275/devicemap.c: Removed.
6889 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
6891 (grub_util_devname_to_ofpath): Return NULL on failure.
6893 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
6895 * util/getroot.c (grub_util_pull_device): Fix memory leak.
6897 * po/POTFILES.in: Regenerated.
6899 Allow purely long options
6901 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
6902 (SHORT_ARG_USAGE): Likewise.
6903 (grub_arg_show_help): Compare opt with help_options.
6904 (parse_option): Receive opt as argument. If makes big simplificatons.
6907 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6909 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
6910 Restructure to avoid warning.
6912 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6914 * util/grub-install.in: Account for possible escaped comma in device
6917 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6919 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
6922 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6924 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
6925 allocation and zero-setting.
6926 (grub_ieee1275_get_devname): Check that alias is complete.
6928 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6930 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
6933 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6935 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
6937 (grub_ofdisk_open): Check and discard ieee1275 prefix.
6938 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
6939 Add ieee1275 prefix.
6941 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6943 * docs/grub.texi (Filesystems): Update.
6945 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6947 Support odc, newc and bigendian cpio formats.
6949 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
6950 * grub-core/Makefile.core.def (newc): New module.
6952 (cpio_be): Likewise.
6953 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
6956 (head) [MODE_ODC]: Adapt for the format.
6957 (head) [MODE_NEWC]: Likewise.
6958 (head) [!MODE_*]: Write fields of interest as arrays.
6959 (MAGIC_USTAR): Removed.
6960 (read_number) [MODE_NEWC]: Change to hex.
6961 (read_number) [!MODE_*]: Parse binary arrays.
6962 (grub_cpio_find_file): Factor out the code for better structure and
6963 always use read_number.
6964 (grub_cpio_mount): Use MAGIC and MAGIC2.
6965 (grub_cpio_dir): Exit on first hook non-0 return.
6966 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
6967 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
6968 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
6969 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
6970 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
6971 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
6972 * grub-core/fs/newc.c: New file.
6973 * grub-core/fs/odc.c: Likewise.
6974 * grub-core/fs/cpio_be.c: Likewise.
6976 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6978 Fix handling of tar numbers occupying the whole field.
6980 * grub-core/fs/cpio.c (read_number): New function.
6981 (grub_cpio_find_file): Use read_number instead of strtoull.
6983 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6985 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
6986 occupying the whole field size.
6988 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
6990 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
6992 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6994 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
6996 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
6998 * grub-core/Makefile.core.def (lzma_decompress): Add missing
7001 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7003 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7004 (mountinfo_entry): Increase the field size to take escaping into
7006 (find_root_device_from_libzfs): Add one byte to size of strings for
7009 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7011 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7013 * util/grub-setup.c (setup): Likewise.
7015 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7017 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7020 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7022 * docs/grub.texi (Internationalisation): New section.
7024 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7026 * docs/grub.texi (Loopback booting): New section.
7028 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
7030 * util/grub-mkstandalone.in: Fix minor typo errors.
7032 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7034 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7036 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7037 net/icmp.c and net/icmp6.c.
7039 (priority_queue): Likewise.
7040 * grub-core/io/bufio.c: Rewritten.
7041 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7042 TYPE_WITH_CONFIGFILE_OPTION.
7043 (legacy_commands): Add bootp and dhcp.
7044 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7045 (grub_legacy_parse): Likewise.
7046 * grub-core/lib/priority_queue.c: New file.
7047 * grub-core/net/arp.c: Add missing license header.
7048 (arp_find_entry): Removed.
7049 (arp_find_entry): Likewise.
7050 (grub_net_arp_resolve): Rename to ...
7051 (grub_net_arp_send_request): ...this.
7052 (grub_net_arp_receive): New card argument.
7053 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
7054 Set router and DNS server.
7055 (grub_net_configure_by_dhcp_ack): Handle routing information.
7056 (grub_cmd_bootp): Set checksum.
7057 (grub_bootp_init): Remove net_dhcp.
7058 * grub-core/net/dns.c: New file.
7059 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
7061 (get_card_packet): Handle allocation.
7062 (grub_efinet_findcards): Set mtu.
7063 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
7064 (get_card_packet): Handle allocation.
7066 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
7067 (GRUB_MOD_INIT): Set mtu.
7068 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
7070 (get_card_packet): Handle allocation.
7071 (grub_ofnet_findcards): Set mtu.
7072 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
7074 (grub_net_recv_ethernet_packet): Handle IPv6.
7075 * grub-core/net/http.c: New file.
7076 * grub-core/net/icmp.c: Likewise.
7077 * grub-core/net/icmp6.c: Likewise.
7078 * grub-core/net/ip.c (ip6addr): New type.
7080 (reassemble): Likewise.
7081 (cmp): New function.
7082 (reassembles): New variable.
7083 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
7085 (send_fragmented): New function.
7086 (grub_net_send_ip_packet): Rename to ...
7087 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
7089 (grub_net_recv_ip_packets): Rename to ...
7090 (handle_dgram): ... this. Check checksum. Handle non-UDP.
7091 (free_rsm): New function.
7092 (free_old_fragments): Likewise.
7093 (grub_net_recv_ip4_packets): New function.
7094 (grub_net_send_ip6_packet): Likewise.
7095 (grub_net_send_ip_packet): Likewise.
7096 (grub_net_recv_ip6_packets): Likewise.
7097 (grub_net_recv_ip_packets): Likewise.
7098 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
7099 (LINK_LAYER_CACHE_SIZE): New const.
7100 (link_layer_find_entry): New function.
7101 (grub_net_link_layer_add_address): Likewise.
7102 (grub_net_link_layer_resolve_check): Likewise.
7103 (grub_net_link_layer_resolve): Likewise.
7104 (grub_net_ipv6_get_slaac): Likewise.
7105 (grub_net_ipv6_get_link_local): Likewise.
7106 (grub_cmd_ipv6_autoconf): Likewise.
7107 (parse_ip): Handle one number representation.
7108 (parse_ip6): New functoion.
7109 (match_net): Handle IPv6.
7110 (grub_net_resolve_address): Handle IPv6 and DNS.
7111 (grub_net_resolve_net_address): Handle IPv6.
7112 (route_cmp): New function.
7113 (grub_net_route_address): Find best route.
7114 (grub_net_addr_to_str): Handle IPv6.
7115 (grub_net_addr_cmp): New function.
7116 (grub_net_add_addr): Register local route.
7117 (print_net_address): Handle net address.
7118 (grub_net_poll_cards): Retransmit TCP.
7119 (grub_net_poll_cards_idle_real): Likewise.
7120 (have_ahead): New function.
7121 (grub_net_seek_real): Use underlying seek.
7122 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
7123 * grub-core/net/tcp.c: New file.
7124 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
7125 (cmp): New function.
7127 (tftp_receive): Handle unordered input.
7128 (destroy_pq): New function.
7129 (tftp_close): Close pq.
7130 * grub-core/net/udp.c: Put missing license header.
7131 (grub_net_udp_socket): New function.
7132 (udp_socket_register): Likewise.
7133 (grub_net_udp_close): Likewise.
7134 (grub_net_recv_udp_packet): Check checksum.
7135 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
7136 * include/grub/misc.h (grub_memchr): New function.
7137 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
7138 (grub_net_card_driver): Return buf in recv.
7139 (grub_net_slaac_mac_list): New struct.
7140 (grub_network_level_protocol_id): Add ipv6.
7141 (grub_net_network_level_addr): Likewise.
7142 (grub_net_network_level_net_addr): Likewise.
7143 (grub_net_app_protocol): Add seek.
7144 (grub_net_socket): Removed.
7145 (grub_net_sockets): Likewise.
7146 (grub_net_socket_register): Likewise.
7147 (grub_net_socket_unregister): Likewise.
7148 (FOR_NET_SOCKETS): Likewise.
7149 (grub_net_add_addr): Add const.
7150 (GRUB_NET_BOOTP_*): New enum.
7151 (grub_net_addr_cmp): New proto.
7152 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
7153 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
7154 (grub_net_hwaddr_to_str): NEw proto.
7155 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
7156 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
7157 (grub_dns_init): New proto.
7158 (grub_dns_fini): Likewise.
7159 (grub_net_tcp_retransmit): Likewise.
7160 (grub_net_link_layer_add_address): Likewise.
7161 (grub_net_link_layer_resolve_check): Likewise.
7162 (grub_net_link_layer_resolve): Likewise.
7163 (grub_net_dns_lookup): Likewise.
7164 (grub_net_add_dns_server): Likewise.
7165 (grub_net_remove_dns_server): Likewise.
7166 (GRUB_NET_TRIES): New const.
7167 (GRUB_NET_INTERVAL): Likewise.
7168 * include/grub/net/arp.h: Mostly rewritten.
7169 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
7170 * include/grub/net/ip.h: Mostly rewritten.
7171 * include/grub/net/netbuff.h: Indent.
7172 * include/grub/net/tcp.h: New file.
7173 * include/grub/net/udp.h: Mostly rewritten.
7174 * include/grub/priority_queue.h: New file.
7175 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
7176 (grub_swap_bytes64_compile_time): Likewise.
7177 (grub_cpu_to_be16_compile_time): Likewise.
7178 (grub_cpu_to_be32_compile_time): Likewise.
7179 (grub_cpu_to_be64_compile_time): Likewise.
7180 (grub_be_to_cpu64_compile_time): Likewise.
7182 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
7184 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
7185 UINT_TO_PTR with cast.
7187 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7189 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
7192 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7194 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
7197 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7199 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
7202 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7204 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
7205 Add missing const attribute.
7206 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
7208 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
7211 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7213 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
7215 (serpent_setkey): Likewise.
7216 (serpent_encrypt_internal): Likewise.
7217 (serpent_decrypt_internal): Likewise.
7218 (serpent_encrypt): Don't put an alignment-increasing cast.
7219 (serpent_decrypt): Likewise.
7220 (serpent_test): Likewise.
7222 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7224 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
7226 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7228 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
7230 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
7232 (PTR_TO_UINT64): Likewise.
7233 (PTR_TO_UINT32): Likewise.
7235 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7237 * util/grub-mkimage.c (generate_image): Decrease the higher limit
7239 * util/grub-setup.c (setup): Don't add redundancy past the higher load
7242 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7244 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
7245 text_width > available width a bit more gracefully.
7247 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7249 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
7250 current address calculation.
7252 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7254 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
7256 (encode_block): Likewise.
7258 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7260 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
7263 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7265 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
7266 non-RS part to avoid RS messing with GDT.
7267 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7268 Increase to suit in realmode routines.
7270 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
7272 * grub-core/kern/i386/realmode.S: Increase alignment.
7273 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
7275 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7277 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
7279 (syndroms): Compute 0 syndrom.
7280 (rs_recover): Use 0 syndrom.
7282 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7284 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
7286 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7288 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
7291 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7293 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
7295 (get_top_pad): Likewise.
7296 (get_right_pad): Likewise.
7297 (get_bottom_pad): Likewise.
7299 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7301 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
7303 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7305 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
7306 attribute as the structure isn't guaranteed to be properly aligned.
7307 (grub_efi_pci_device_path): Likewise.
7308 (grub_efi_pccard_device_path): Likewise.
7309 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
7310 specify the size of `memory_type'.
7311 (grub_efi_vendor_device_path): Likewise.
7312 (grub_efi_controller_device_path): Likewise.
7313 (grub_efi_acpi_device_path): Likewise.
7314 (grub_efi_expanded_acpi_device_path): Likewise.
7315 (grub_efi_atapi_device_path): Likewise.
7316 (grub_efi_scsi_device_path): Likewise.
7317 (grub_efi_fibre_channel_device_path): Likewise.
7318 (grub_efi_1394_device_path): Likewise.
7319 (grub_efi_usb_device_path): Likewise.
7320 (grub_efi_usb_class_device_path): Likewise.
7321 (grub_efi_i2o_device_path): Likewise.
7322 (grub_efi_mac_address_device_path): Likewise.
7323 (grub_efi_ipv4_device_path): Likewise.
7324 (grub_efi_ipv6_device_path): Likewise.
7325 (grub_efi_infiniband_device_path): Likewise.
7326 (grub_efi_uart_device_path): Likewise.
7327 (grub_efi_vendor_messaging_device_path): Likewise.
7328 (grub_efi_hard_drive_device_path): Likewise.
7329 (grub_efi_cdrom_device_path): Likewise.
7330 (grub_efi_vendor_media_device_path): Likewise.
7331 (grub_efi_file_path_device_path): Likewise.
7332 (grub_efi_protocol_device_path): Likewise.
7333 (grub_efi_piwg_device_path): Likewise.
7334 (grub_efi_bios_device_path): Likewise.
7336 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7338 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
7339 (grub_ucs4_to_utf8_alloc): Likewise.
7340 (grub_ucs4_to_utf8): Likewise.
7341 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
7342 (grub_ucs4_to_utf8_alloc): Likewise.
7344 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7346 AFFS never uses unicode.
7348 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
7349 (grub_latin1_to_utf8): New inline function.
7350 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
7352 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7354 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
7357 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7359 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
7360 (grub_squash_dirent_header): Likewise.
7361 (read_chunk): Don't double swap.
7362 (grub_squash_iterate_dir): Fix swap sizes.
7364 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7366 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
7368 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7370 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
7371 (grub_hfs_iterate_dir): Likewise.
7373 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7375 Fix video on platforms where unaligned access is forbidden.
7376 Make several optimisations while on it.
7378 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
7379 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7380 (grub_video_fbblit_replace_32bit_1bit): Likewise.
7381 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7383 (grub_video_fbblit_replace_16bit_1bit):
7384 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7385 (grub_video_fbblit_replace_8bit_1bit): Likewise.
7386 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
7387 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
7388 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7389 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7390 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
7391 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
7392 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
7393 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
7394 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
7395 (grub_video_fbblit_replace_index_RGB888): Likewise.
7396 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
7397 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
7398 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
7399 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
7400 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
7401 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
7402 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7404 (grub_video_fbblit_blend_XXX565_1bit):
7405 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7406 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
7407 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
7409 * grub-core/video/fb/video_fb.c (common_blitter)
7410 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
7411 (grub_video_fb_create_render_target_from_pointer)
7412 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
7413 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
7414 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
7416 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
7418 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7420 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
7421 HH22 and HM10 relocations.
7423 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7425 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
7427 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7429 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
7430 allocation succeeded.
7432 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7434 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
7435 argument a u8 pointer. All users updated.
7436 Handle unaligned buffers.
7438 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7440 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
7441 add_part to workaround compiler bug.
7443 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7445 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
7447 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7449 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
7450 Reserve alignment invariants.
7451 (grub_multiboot_load): Likewise.
7452 (retrieve_video_parameters): Likewise.
7453 (grub_multiboot_make_mbi): Likewise.
7455 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7457 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
7460 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7462 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
7463 (grub_pata_pio_write): Likewise.
7465 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7467 Add noreturn attributes and remove unreachable code.
7469 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
7471 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
7472 code. Mark as noreturn.
7473 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
7474 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
7475 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
7477 * grub-core/kern/main.c (grub_main): Mark as noreturn.
7478 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
7479 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
7480 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
7481 * include/grub/kernel.h (grub_main): Mark as noreturn.
7482 * include/grub/reader.h (grub_rescue_run): Likewise.
7484 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7486 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
7487 redundant declaration.
7489 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7491 * include/grub/net.h (grub_net_network_level_interfaces): Remove
7492 redundant declaration.
7493 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
7495 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7497 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
7498 to ensure alignment.
7499 (grub_hdparm_print_identify): Make argument uint16 * to ensure
7500 alignment. Ensure tmp alignment.
7501 (grub_cmd_hdparm): Ensure buf alignment.
7502 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
7503 to ensure alignment.
7504 (grub_ata_dumpinfo): Ensure text alignment.
7505 (grub_atapi_identify): Preserve alignment invariant.
7506 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
7508 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7510 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
7511 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
7512 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
7513 * include/grub/misc.h (grub_reboot)
7514 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
7515 (grub_halt) [__mips__]: Likewise.
7517 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7519 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
7520 Remove redundant declaration.
7521 (grub_mmap_get_post64): Likewise.
7522 (grub_mmap_get_upper): Likewise.
7523 (grub_mmap_get_lower): Likewise.
7525 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7527 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
7528 uint32_t * to ensure alignment.
7529 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
7531 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7533 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
7534 uint16_t * to ensure alignment.
7535 (sun_pc_partition_map_iterate): Make `block' a union to ensure
7538 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7540 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
7541 to ensure alignment.
7542 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
7544 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7546 * grub-core/fs/ntfs.c (u16at): Make into inline function.
7547 Handle unaligned pointers.
7550 (fixup): Use byte access instead of v16at.
7551 (find_attr): Fix imporper usage of v32at.
7552 (read_data): Likewise.
7553 (list_file): Handle byte-swapping and unaligned strings.
7554 (grub_ntfs_label): Likewise.
7556 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7558 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
7559 as it's not necessarily aligned.
7561 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7563 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
7564 redundant declaration.
7565 (grub_serial_init): Likewise.
7566 (grub_terminfo_init): Likewise.
7568 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7570 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
7572 (ZAP_HASH_IDX): Likewise.
7573 (ZAP_LEAF_HASH_SHIFT): Likewise.
7574 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
7575 (LEAF_HASH): Likewise.
7576 (ZAP_LEAF_NUMCHUNKS): Likewise.
7577 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
7578 alignment invariants. Return pointer. All users updated.
7579 (ZAP_LEAF_ENTRY): Make into inline function.
7582 (xor_out): Use grub_crypto_xor.
7583 (dnode_get_path): Use grub_get_unaligned.
7584 (nvlist_find_value): Likewise.
7585 (grub_zfs_nvlist_lookup_uint64): Likewise.
7586 (grub_zfs_nvlist_lookup_string): Likewise.
7587 (get_nvlist_size): Likewise.
7588 (grub_zfs_open): Likewise.
7589 (fill_fs_info): Likewise.
7590 (grub_zfs_dir): Likewise.
7591 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
7592 alignment invariants.
7593 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
7594 necessarily aligned.
7596 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7598 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
7600 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7602 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
7603 arithmetic to conserve alignment invariants.
7605 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7607 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
7608 redundant declaration.
7609 (grub_efiemu_mm_obtain_request): Likewise.
7610 (grub_efiemu_prepare): Likewise.
7612 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7614 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
7617 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7619 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
7620 case of aunaligned recptr.
7621 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
7623 (grub_hfsplus_btree_search): Handle unaligned index.
7625 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7627 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
7628 to get freetag and skip.
7630 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7632 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
7634 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
7635 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
7637 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7639 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
7640 name for checksum and fix allocation algorithm.
7642 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7644 * include/grub/types.h (grub_properly_aligned_t): New type.
7645 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
7646 (grub_get_unaligned16): Add explicit casts.
7647 (grub_get_unaligned32): Likewise.
7648 (grub_get_unaligned64): Likewise.
7649 (grub_set_unaligned16): New function.
7650 (grub_set_unaligned32): Likewise.
7652 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7654 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
7656 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7658 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
7659 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
7660 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
7662 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7664 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
7667 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7669 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
7670 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
7672 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7674 Unify and improve RAID and crypto xor.
7676 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
7677 changed to grub_crypto_xor
7678 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
7679 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
7680 Use bigger types when possible.
7682 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7684 * grub-core/disk/raid.c (scan_devices): Fix condition.
7686 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7688 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
7689 Make name a const ptr.
7691 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7693 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
7694 first argument a const pointer.
7695 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
7696 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
7698 (grub_children_iterate): Likewise.
7699 (grub_machine_mmap_iterate): Remove redundant declaration.
7701 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7703 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
7704 (grub_cmd_acpi) [!x86]: Disable EBDA.
7706 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7708 Enable UTF8 in gnulib regexp.
7710 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
7711 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
7712 (isupper): Use grub_isupper.
7713 (isascii): New inline function.
7714 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
7715 * grub-core/lib/posix_wrap/wctype.h: Likewise.
7716 * grub-core/normal/charset.c (grub_utf8_process): New function.
7717 (grub_utf8_to_utf16): Use grub_utf8_process.
7718 (grub_encode_utf8_character): New function.
7719 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
7720 * include/grub/charset.h (grub_utf8_process): New declaration.
7721 (grub_encode_utf8_character): Likewise.
7722 * include/grub/misc.h (grub_islower): New inline function.
7723 (grub_isupper): Likewise.
7724 (grub_strchrsub): Moved down to fix the definitions.
7726 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7728 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
7731 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7733 * include/grub/loader.h (grub_loader_register_preboot_hook):
7734 Use struct preboot * and not void * for handle. All users updated.
7735 (grub_loader_unregister_preboot_hook): Likewise.
7737 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
7739 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
7740 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
7741 UTF-16-BE. All users updated.
7742 (grub_hfsplus_cmp_catkey): Fix unicode handling.
7743 (grub_hfsplus_iterate_dir): Likewise.
7744 (grub_hfsplus_label): Likewise.
7746 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
7748 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
7750 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
7752 Add missing const qualifiers.
7754 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
7755 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
7756 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
7757 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
7758 (grub_lvm_check_flag): Likewise.
7759 * grub-core/efiemu/i386/coredetect.c
7760 (grub_efiemu_get_default_core_name): Likewise
7761 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
7762 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
7763 * grub-core/fs/ntfs.c (fixup): Likewise.
7764 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
7765 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
7766 (fzap_lookup): Likewise.
7767 (zap_lookup): Likewise.
7768 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
7769 * grub-core/lib/legacy_parse.c (check_option): Likewise.
7770 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
7771 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
7772 (grub_freebsd_add_meta_module): Likewise.
7773 (grub_cmd_freebsd_module): Likewise.
7774 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
7775 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
7776 (grub_xnu_writetree_get_size): Likewise.
7777 (grub_xnu_writetree_toheap_real): Likewise.
7778 (grub_xnu_find_key): Likewise.
7779 (grub_xnu_create_key): Likewise.
7780 (grub_xnu_create_value): Likewise.
7781 (grub_xnu_register_memory): Likewise.
7782 (grub_xnu_check_os_bundle_required): Likewise.
7783 (grub_xnu_scan_dir_for_kexts): Likewise.
7784 (grub_xnu_load_kext_from_dir): Likewise.
7785 * grub-core/normal/color.c (color_list): Likewise.
7786 * grub-core/normal/completion.c (current_word): Likewise.
7787 * grub-core/normal/menu_entry.c (insert_string): Likewise.
7788 * grub-core/term/serial.c (grub_serial_find): Likewise.
7789 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
7790 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
7792 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
7793 (grub_freebsd_add_meta_module): Likewise.
7794 * include/grub/lib/arg.h (grub_arg_option): Likewise.
7795 * include/grub/net.h (grub_net_card_driver): Likewise.
7796 (grub_net_card): Likewise.
7797 (grub_net_app_protocol): Likewise.
7798 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
7799 * include/grub/serial.h (grub_serial_find): Likewise.
7800 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
7801 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
7802 (grub_xnu_create_value): Likewise.
7803 (grub_xnu_find_key): Likewise.
7804 (grub_xnu_scan_dir_for_kexts): Likewise.
7805 (grub_xnu_load_kext_from_dir): Likewise.
7807 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
7808 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
7809 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
7811 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
7813 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
7815 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
7817 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
7819 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
7820 (read_device): Fix size calculation.
7822 2011-11-25 Robert Millan <rmh@gnu.org>
7824 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
7825 (find_root_device_from_libzfs): Add zpool output parser to be used
7826 as fallback when libzfs isn't available.
7828 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
7830 * po/Makefile.in.in: Add missing escape-continuation.
7832 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
7834 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
7836 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7838 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
7840 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7842 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
7844 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7846 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
7848 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7850 * grub-core/lib/adler32.c: Add missing license specification.
7851 * grub-core/lib/crc64.c: Likewise.
7852 * grub-core/loader/i386/pc/plan9.c: Likewise.
7853 * grub-core/partmap/plan.c: Likewise.
7855 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
7857 Add facility to debug GRUB with gdb under qemu.
7859 * grub-core/gdb_grub.in: New file.
7860 * grub-core/gmodule.pl.in: Likewise.
7861 * grub-core/Makefile.core.def (gmodule.pl): New script.
7862 (gdb_grub): Likewise.
7864 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7866 * util/grub-mount.c (argp_parser): Accept relative pathes.
7867 * util/grub-fstest.c (argp_parser): Likewise.
7869 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7873 * Makefile.util.def (libgrubmods): Add
7874 grub-core/partmap/plan.c.
7875 * docs/grub.texi: Notice Plan9 support.
7876 * grub-core/Makefile.core.def (plan9): New module.
7877 (part_plan): Likewise.
7878 * grub-core/loader/i386/pc/plan9.c: New file.
7879 * grub-core/partmap/plan.c: Likewise.
7880 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
7882 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
7883 * include/grub/mm.h (grub_extend_alloc): New inline function.
7885 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7887 Make Reed-Solomon faster by using power of generator representation of
7890 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
7891 (gf_double_t): Likewise.
7892 (gf_invert): Removed.
7893 (gf_powx): New array.
7894 (gf_powx_inv): Likewise.
7895 (scratch): Move higher.
7896 (gf_reduce): Removed.
7898 (gf_invert): Likewise.
7899 (init_inverts): Replaced with ...
7900 (init_powx): ...this. All users updated.
7901 (pol_evaluate): Replace multiplications with additions.
7902 (rs_encode): Likewise.
7903 (gauss_eliminate): Call gf_invert.
7904 (grub_reed_solomon_add_redundancy): Call init_powx.
7905 (grub_reed_solomon_recover): Call init_powx unconditionally.
7907 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7909 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
7911 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7913 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
7914 disk->partiton for safety.
7916 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7918 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7920 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
7922 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7924 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
7926 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7928 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
7930 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7932 Fix spaces handling in proc/self/mountinfo.
7934 * util/getroot.c (unescape): New function.
7935 (grub_find_root_device_from_mountinfo): Use unescape.
7937 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7939 Support ZFS embedding.
7941 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
7942 (grub_zfs_fs): Register grub_zfs_embed.
7944 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7946 Fix MIPS compilation.
7948 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
7949 * include/grub/offsets.h: Rename decompressor fields from
7950 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
7951 * util/grub-mkimage.c (image_targets): Use new names.
7953 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7955 Defer multiboot device parsing until we're in compressed part.
7957 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
7958 bsd_part. setdevice has fallen into disuse.
7959 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
7960 (bsd_part): Likewise.
7961 (boot_dev): New variable.
7962 (multiboot_trampoline): Don't parse multiboot device.
7963 Pass multiboot device in %edx.
7964 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
7966 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
7968 * grub-core/kern/i386/pc/startup.S: Save edx.
7969 (grub_boot_drive): Removed.
7970 (grub_install_dos_part): Likewise.
7971 (grub_install_bsd_part): Likewise.
7972 (grub_boot_device): New variable.
7973 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
7974 (grub_install_bsd_part): Likewise.
7975 (grub_boot_drive): Likewise.
7976 (grub_boot_device): New variable.
7977 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
7979 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
7980 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
7981 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
7982 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
7983 * util/grub-install.in: Remove redundant condition.
7985 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7987 Fix bug introduced by previous commit.
7989 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
7991 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7993 Use decompressors framework on i386-pc. It increases core size
7994 by 46 bytes but improves compatibility and maintainability.
7996 * grub-core/Makefile.core.def (lzma_decompress): New image.
7997 (kernel): Add i386_pc_ldflags.
7998 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
7999 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8000 to real_to_prot, prot_to_real and device info.
8001 * include/grub/offsets.h: Renamed decompressor offsets.
8002 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8003 (image_target_desc): Remove raw_size and rename decompressor fields.
8004 (compress_kernel): Handle lzma.
8005 (generate_image): Handle decompressors on i386-pc.
8007 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8009 * configure.ac: Add -fno-asynchronous-unwind-tables.
8011 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8013 Move assembly code to C by using intwrap. It increases core size
8014 by 88 bytes but improves compatibility and maintainability.
8016 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8017 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8018 ... here. Translated to C.
8019 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8020 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8021 ... here. Translated to C.
8022 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8023 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8024 ... here. Translated to C.
8025 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8026 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8027 ... here. Translated to C.
8028 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8029 * grub-core/term/i386/pc/console.c (grub_console_cls):
8030 ... here. Translated to C.
8031 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8032 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8033 ... here. Translated to C.
8034 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8035 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8037 * grub-core/term/i386/pc/console.c (int10_9): New function.
8038 (grub_console_putchar): Likewise.
8039 * include/grub/i386/pc/console.h: Removed the not anymore shared
8042 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8044 Move grub_chainloader_real_boot out of the kernel.
8046 * grub-core/Makefile.am: Remove machine/loader.h.
8047 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8049 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8051 (grub_relocator16_keep_a20_enabled): Likewise.
8052 (grub_relocator16_boot): Fill new variables.
8053 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
8054 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
8056 (grub_chainloader_unload): Likewise.
8057 (grub_chainloader_cmd): Likewise.
8058 * include/grub/i386/pc/loader.h: Removed.
8059 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
8060 and esi. All initialisers updated.
8062 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8063 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
8065 * Makefile.util.def (grub-mount): New util.
8066 * .bzrignore: Add grub-mount.
8067 * configure.ac: Check for fuse and enable grub-mount if available.
8068 * docs/man/grub-mount.h2m: New file.
8069 * util/grub-mount.c: Likewise.
8071 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8073 * grub-core/commands/efi/fixvideo.c: Gettextize.
8074 * grub-core/commands/hashsum.c: Likewise.
8075 * grub-core/commands/i386/cmostest.c: Likewise.
8076 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8077 * grub-core/commands/i386/pc/lsapm.c: Likewise.
8078 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8079 * grub-core/commands/lsmmap.c: Likewise.
8080 * grub-core/commands/menuentry.c: Likewise.
8081 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8082 * grub-core/commands/setpci.c: Likewise.
8083 * grub-core/loader/i386/bsd.c: Likewise.
8084 * grub-core/loader/i386/linux.c: Likewise.
8085 * util/getroot.c: Likewise.
8086 * util/grub-editenv.c: Likewise.
8087 * util/grub-fstest.c: Likewise.
8088 * util/grub-mkfont.c: Likewise.
8089 * util/grub-mkimage.c: Likewise.
8090 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8091 * util/grub-pe2elf.c: Likewise.
8092 * util/grub-probe.c: Likewise.
8093 * util/grub-setup.c: Likewise.
8094 * util/ieee1275/ofpath.c: Likewise.
8095 * util/misc.c: Likewise.
8096 * util/raid.c: Likewise.
8098 2011-11-11 Robert Millan <rmh@gnu.org>
8100 * util/getroot.c (grub_util_get_geom_abstraction): Remove
8101 __attribute__((unused)) from `os_dev', which *is* being used.
8103 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8105 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
8107 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
8108 GRUB_IA64_DL_GOT_ALIGN.
8109 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
8110 GRUB_IA64_DL_TRAMP_ALIGN.
8112 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8114 Replace grub_fatal with normal errors in i386 linux loader.
8116 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
8117 (allocate_pages): Check find_efi_mmap_size return value.
8118 (grub_e820_add_region): Return error.
8119 (grub_linux_boot): Check mmap return value.
8121 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8123 * grub-core/commands/acpihalt.c: Gettextized.
8124 * grub-core/commands/cacheinfo.c: Likewise.
8125 * grub-core/commands/cmp.c: Likewise.
8126 * grub-core/commands/efi/loadbios.c: Likewise.
8127 * grub-core/commands/gptsync.c: Likewise.
8128 * grub-core/commands/ieee1275/suspend.c: Likewise.
8129 * grub-core/commands/legacycfg.c: Likewise.
8130 * grub-core/commands/memrw.c: Likewise.
8131 * grub-core/commands/minicmd.c: Likewise.
8132 * grub-core/commands/parttool.c: Likewise.
8133 * grub-core/commands/time.c: Likewise.
8134 * grub-core/commands/videoinfo.c: Likewise.
8135 * grub-core/disk/geli.c: Likewise.
8136 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
8137 * grub-core/disk/luks.c: Likewise.
8138 * grub-core/disk/lvm.c: Likewise.
8139 * grub-core/font/font_cmd.c: Likewise.
8140 * grub-core/fs/zfs/zfscrypt.c: Likewise.
8141 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8142 * grub-core/gfxmenu/view.c: Likewise.
8143 * grub-core/kern/emu/hostdisk.c: Likewise.
8144 * grub-core/kern/emu/main.c: Likewise.
8145 * grub-core/kern/emu/misc.c: Likewise.
8146 * grub-core/kern/emu/mm.c: Likewise.
8147 * grub-core/kern/mips/arc/init.c: Likewise.
8148 * grub-core/kern/mips/loongson/init.c: Likewise.
8149 * grub-core/kern/partition.c: Likewise.
8150 * grub-core/lib/i386/halt.c: Likewise.
8151 * grub-core/lib/mips/arc/reboot.c: Likewise.
8152 * grub-core/lib/mips/loongson/reboot.c: Likewise.
8153 * grub-core/loader/i386/pc/chainloader.c: Likewise.
8154 * grub-core/loader/i386/xnu.c: Likewise.
8155 * grub-core/loader/multiboot.c: Likewise.
8156 * grub-core/net/bootp.c: Likewise.
8157 * grub-core/net/net.c: Likewise.
8158 * grub-core/normal/term.c: Likewise.
8159 * grub-core/partmap/bsdlabel.c: Likewise.
8160 * grub-core/parttool/msdospart.c: Likewise.
8161 * grub-core/term/gfxterm.c: Likewise.
8162 * grub-core/term/terminfo.c: Likewise.
8163 * grub-core/video/i386/pc/vbe.c: Likewise.
8164 * util/grub-menulst2cfg.c: Likewise.
8165 * util/grub-mkdevicemap.c: Likewise.
8166 * util/grub-mklayout.c: Likewise.
8167 * util/grub-mkrelpath.c: Likewise.
8168 * util/grub-script-check.c: Likewise.
8169 * util/ieee1275/grub-ofpathname.c: Likewise.
8170 * util/resolve.c: Likewise.
8172 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8174 Support %1$d syntax.
8176 * tests/printf_unit_test.c: New file.
8177 * Makefile.util.def (printf_test): New test.
8178 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
8180 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8182 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
8185 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8187 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
8189 * grub-core/font/font.c (grub_font_load): Likewise.
8191 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8193 * util/grub-macho2img.c: Add comment concerning gettext.
8194 * grub-core/lib/legacy_parse.c: Likewise.
8196 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8198 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
8199 (grub_xvasprintf): Likewise.
8201 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8203 Add const keyword to grub_env_get and gettextize week days.
8205 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
8206 (grub_read_hook_datetime): Return const char *.
8207 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
8209 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8211 (grub_get_weekday_name): Return const char *. Call gettext.
8212 * grub-core/script/argv.c (grub_script_argv_append): Receive const
8213 char * and len as the argument. All users updated.
8214 (grub_script_argv_split_append): Receive const char *.
8215 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
8216 * include/grub/env.h (grub_env_get): Likewise.
8217 (grub_env_read_hook_t): Return const char *.
8218 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
8219 (grub_script_argv_split_append): Likewise.
8221 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8223 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
8225 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8227 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
8228 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
8230 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8232 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
8235 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8237 Fix mips compilation.
8239 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
8241 (hashes): Use in embed decoder as well (for sizes).
8242 (dec_stream_header): Fix embed decompressor logic.
8243 (dec_stream_footer): Likewise.
8245 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8247 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
8248 an error and not a fatal on unrecognised relocation types.
8250 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8252 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
8253 Issue error rather than printf on unknown arguments.
8255 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8257 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
8260 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8262 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
8265 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8267 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
8268 leftover debug printf.
8270 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8272 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
8274 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8276 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
8279 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8281 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
8283 2011-11-10 Shea Levy <slevy@tieronedesign.com>
8285 Allow all modules to perform serial IO
8287 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
8288 * include/grub/serial.h (grub_serial_port_configure): New inline
8290 (grub_serial_port_fetch): Likewise.
8291 (grub_serial_port_put): Likewise.
8292 (grub_serial_port_fini): Likewise.
8293 (grub_serial_find): New proto.
8295 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8297 Put symlink at the end of the node and fix a potential
8300 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
8301 Make symlink into an array.
8302 (set_rockridge): Set have_symlink and alloc_dirents.
8303 (grub_iso9660_read_symlink): Use new layout.
8304 (grub_iso9660_iterate_dir): Fix memory corruption.
8306 (grub_iso9660_dir): Set have_symlink.
8307 (grub_iso9660_open): Likewise.
8309 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8311 Remove local keyword.
8313 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
8314 (version_test_gt): Likewise.
8315 (version_find_latest): Likewise.
8316 (gettext_printf): Likewise.
8317 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
8319 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8321 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
8323 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8325 Fix ZFS memory and resource leaks.
8327 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
8330 (fill_vdev_info): New parameter inserted. All users updated.
8331 (check_pool_label): Likewise.
8332 (scan_disk): Likewise.
8333 (scan_devices): Close non-inserted disks.
8334 (fzap_iterate): Free l.
8335 (unmount_device): Free children descripto memory.
8337 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8339 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
8340 argument (access out of bounds).
8342 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8344 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
8347 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8349 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
8352 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8354 Fix several memory leaks.
8356 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
8357 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
8358 (grub_cpio_dir): Likewise.
8359 * grub-core/fs/fat.c (grub_fat_label): Likewise.
8360 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
8361 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
8362 (grub_romfs_label): Likewise.
8363 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
8364 (squash_unmount): New function.
8365 (grub_squash_dir): Fix memory leak.
8366 (grub_squash_open): Likewise.
8367 (grub_squash_read): Likewise.
8368 (grub_squash_mtime): Likewise.
8369 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
8370 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
8371 * util/grub-fstest.c (fstest): Likewise.
8373 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8375 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
8376 avoid accessing beyond the array.
8378 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8380 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
8382 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8386 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
8387 (GRUB_AFFS_FLAG_FFS): Removed.
8388 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
8389 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
8390 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
8391 (grub_fshelp_node): Make block 32-bit.
8392 Add block_cache and last_block_cache.
8393 (grub_affs_read_block): Fill and use block cache.
8394 (grub_affs_read_file): Removed.
8395 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
8397 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
8399 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
8401 (grub_affs_close): Free block cache.
8402 (grub_affs_read): Use grub_fshelp_read_file directly.
8404 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8406 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
8409 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8411 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
8413 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
8416 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8418 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
8420 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
8421 byteswap when needed.
8423 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8425 Fix FreeBSD compilation.
8427 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
8428 to avoid circular dependency.
8429 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
8430 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
8431 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
8433 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8435 Fix ZFS crypto error types.
8437 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
8438 (grub_gcm_decrypt): Likewise.
8439 (grub_zfs_load_key_real): Fix error code type. Handle possible error
8442 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8446 * Makefile.util.def (10_illumos): New script.
8447 * configure.ac: Set COND_HOST_ILLUMOS.
8448 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
8449 Support Illumos calls.
8450 (find_partition_start) [__sun__]: Likewise.
8451 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
8452 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
8453 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
8454 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
8456 * util/grub-probe.c (probe) [__sun__]: Do character check.
8457 * util/grub.d/10_illumos.in: New file.
8459 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8461 Support escaped commas in hostdisk.
8463 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
8464 (find_grub_drive): Use unescape_cmp.
8465 (make_device_name): Escape commas.
8467 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8469 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
8471 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8473 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
8476 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8478 Support trampoline jumps on powerpc.
8480 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
8482 (grub_dl_load_segments): Set mod->sz.
8483 (grub_dl_flush_cache): Flush whole space occupied by module, not just
8485 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
8487 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
8489 (trampoline): New struct.
8490 (trampoline_template): New const.
8491 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
8492 * include/grub/dl.h (grub_dl): Add sz element.
8493 [__powerpc__]: Follow __ia64__.
8494 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
8495 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
8496 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
8497 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
8499 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8503 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
8504 * grub-core/Makefile.core.def (zfscrypt): New module.
8505 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
8506 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
8507 it. All users updated.
8508 (grub_zfs_decrypt): New var.
8509 (grub_zfs_load_key): Likewise.
8510 (zio_checksum_functions): Add SHA256+MAC.
8511 (zio_checksum_verify): Handle incomplete comparison due to MAC.
8512 (zio_read): Handle encrypted blocks.
8513 (zap_verify): Remove incorrect check.
8514 (fzap_iterate): Handle non-standard fzap.
8515 (zap_iterate): Likewise.
8516 (zap_iterate_u64): New function.
8517 (dnode_get_fullpath): Load keys.
8518 * grub-core/fs/zfs/zfscrypt.c: New file.
8519 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
8520 (grub_crypto_ecb_encrypt): Make input const.
8521 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
8522 (grub_crypto_ecb_encrypt): Make input const.
8523 (GRUB_CIPHER_AES): New macro.
8524 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
8525 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
8526 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
8527 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
8528 prefix. All users updated.
8529 (grub_zfs_add_key): New proto.
8530 (grub_zfs_decrypt): Likewise.
8531 (grub_zfs_load_key): Likewise.
8532 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
8533 * util/grub-fstest.c (options): Add -K option.
8534 (argp_parser): Likewise.
8536 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8538 Support zle compression on ZFS.
8540 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
8541 (decomp_table): Add zle.
8542 * include/grub/zfs/zio.h (zio_compress): Add zle.
8544 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8546 Support BtrFS embedding.
8548 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
8549 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
8550 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
8551 * util/grub-setup.c (setup): Use fs embedding if available.
8552 Add additional sanity check.
8554 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8556 * util/grub-install.in: Fix condition for config_opt.
8558 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8560 Support third redundancy strip on raidz3.
8562 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
8563 Return error on singularity. All users updated.
8564 (read_device): Don't stop on 3rd failure on raidz3.
8566 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8568 Support case-insensitive ZFS subvolumes.
8570 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
8572 (zap_hash): Likewise.
8573 (name_cmp): New function.
8574 (zap_leaf_array_equal): New parameter case_insensitive.
8576 (zap_leaf_lookup): Likewise.
8577 (fzap_lookup): Likewise.
8578 (zap_lookup): Likewise.
8579 (dnode_get_path): New parameter case_insensitive. Retrieve case
8580 sensitiviness of a volume. All users updated.
8581 (dnode_get_fullpath): New parameter case_insensitive.
8583 (grub_zfs_dir): Set info.case_insensitiveness.
8585 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8587 Support second redundancy strip on raidz(2,3).
8589 * grub-core/fs/zfs/zfs.c (powx): New array.
8590 (powx_inv): Likewise.
8592 (xor_out): New function.
8594 (recovery): Likewise.
8595 (read_device): Use second redundancy strip.
8597 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8599 Use a power of generator representation of GF(256) multiplication group
8600 to save space time and complexity.
8602 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
8603 (raid6_table2): Likewise.
8605 (powx_inv): Likewise.
8607 (grub_raid_block_mul): Replace with ...
8608 (grub_raid_block_mulx): ...this.
8609 (grub_raid6_init_table): Rewritten.
8610 (grub_raid6_recover): Use power of generator representation.
8612 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8614 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
8615 for the right device.
8617 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8619 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
8620 expected by grub-mkimage and it's more clear since there is no implicit
8623 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8625 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
8627 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
8629 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
8631 * util/grub-mkrescue.in: Fix handling xorriso option.
8633 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8635 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
8638 2011-11-03 crocket <crockabiscuit@gmail.com>
8640 * util/grub.d/10_linux.in: Add Slackware initrd naming.
8642 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8644 XZ CRC64 and SHA256 support.
8646 * Makefile.util.def (libgrubmods): Add crc64.c.
8647 * grub-core/Makefile.core.def (crc64): New module.
8648 * grub-core/lib/crc64.c: New file.
8649 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
8650 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
8652 (MAX_HASH_SIZE): New define.
8653 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
8654 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
8655 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
8656 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
8657 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
8658 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
8659 Handle non-crc32 hashes.
8660 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
8661 (dec_stream_header): Handle non-crc32 hashes.
8662 (dec_stream_footer): Likewise.
8663 (dec_block_header): Likewise.
8664 (dec_main): Likewise.
8665 (xz_dec_init): Likewise.
8666 (xz_dec_reset): Likewise.
8667 (xz_dec_end): Likewise.
8668 * util/import_gcry.py: Add CRC64 line.
8670 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8672 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
8675 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8677 Make reiserfs label retrieval similar to other *_label functions.
8679 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
8680 (REISERFS_MAX_LABEL_LENGTH): Removed.
8681 (REISERFS_LABEL_OFFSET): Likewise.
8682 (grub_reiserfs_label): Rewritten.
8684 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8686 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
8689 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8691 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
8693 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
8695 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
8696 drive failure on both raidz and raidz2.
8698 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
8700 Fix RAIDZ(2) for >= 5 devices.
8702 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
8703 asize argument. All users updated.
8705 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8709 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
8710 (fill_vdev_info_real): Set ashift.
8711 (read_device): Rewrite RAIDZ part based on reverse engineering.
8713 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8715 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
8716 don't report potentially unavialiable fields in debug output.
8717 (find_path): Fix double-free and memory leak.
8719 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8723 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
8724 (grub_ufs_fs): Always set .label.
8726 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8730 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
8731 (grub_ufs_data): New field log2_blksz.
8732 (grub_ufs_read_file): Use shifts.
8733 (grub_ufs_mount): Check block size and logarithm it.
8735 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8737 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
8740 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8742 Handle symlinks and long names on tar and cpio.
8744 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
8745 (ATTR_FILE): Likewise.
8746 (ATTR_DIR): Likewise.
8747 (ATTR_LNK): Likewise.
8748 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
8749 (grub_cpio_find_file): Fill mode, handle linkname field as well as
8751 (grub_cpio_mount): Zero-fill data.
8752 (handle_symlink): New function.
8753 (grub_cpio_dir): Handle symlinks.
8754 (grub_cpio_open): Likewise.
8755 (grub_cpio_close) [MODE_USTAR]: Free linkname.
8757 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8759 Fix iso9660 filename limitations and fix memory leaks.
8761 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
8762 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
8764 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8766 Fix JFS file name length limitations.
8768 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
8769 (grub_jfs_diropen): Fix maximum filename length.
8770 (grub_jfs_getent): Fix filename length.
8771 (grub_jfs_lookup_symlink): Fix size checks.
8773 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8775 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
8778 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8780 Leverage BFS implementation to read AFS.
8782 * Makefile.util.def (libgrubmods): Add afs.c.
8783 * grub-core/Makefile.core.def (afs): New module
8784 * grub-core/fs/afs.c: New file.
8785 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
8787 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8789 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
8791 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8793 * grub-core/fs/bfs.c: Run indent.
8795 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8797 BFS implementation based on the specification.
8799 * grub-core/fs/bfs.c: New file.
8800 * Makefile.util.def (libgrubmods): Add bfs.c.
8801 * grub-core/Makefile.core.def (bfs): New module.
8803 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8805 * util/grub-fstest.c (cmd_cp): Clarify error message.
8806 (cmd_cmp): Likewise.
8808 2011-10-30 Yves Blusseau <blusseau@zetam.org>
8810 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
8813 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
8815 Remove afs and befs because of copyright problem.
8817 * grub-core/fs/afs.c: Removed.
8818 * grub-core/fs/afs_be.c: Removed.
8819 * grub-core/fs/befs.c: Removed.
8820 * grub-core/fs/befs_be.c: Removed.
8821 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
8822 * grub-core/Makefile.core.def (afs): Removed.
8825 (befs_be): Likewise.
8827 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8829 Prefer rockridge over Joliet.
8831 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
8833 (set_rockridge): ... here.
8834 (grub_iso9660_mount): Check rockridge on the primary label when
8835 discovering. Ignore Joliet if Rockridge is present.
8837 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8839 Use shifts in nilfs2.
8841 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
8842 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
8843 (grub_nilfs2_palloc_entries_per_group): Replace with ...
8844 (grub_nilfs2_log_palloc_entries_per_group): ... this.
8845 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
8846 (grub_nilfs2_entries_per_block): Replaced with ...
8847 (grub_nilfs2_log_entries_per_block_log): ... this.
8848 (grub_nilfs2_blocks_per_group): Replaced with ...
8849 (grub_nilfs2_blocks_per_group_log): ... this.
8850 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
8851 (grub_nilfs2_blocks_per_desc_block_log): ... this.
8852 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
8853 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
8854 (grub_nilfs2_palloc_entry_offset): Replaced ...
8855 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
8856 (grub_nilfs2_dat_translate): Use shifts.
8857 (grub_nilfs2_read_inode): Likewise.
8858 (GRUB_MOD_INIT): Ensure that logs are correct.
8860 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8862 Use shifts in minix filesystem.
8864 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
8865 (GRUB_MINIX_ZONE2SECT): Likewise.
8866 (grub_minix_data): Replace block_size with log_block_size.
8867 (grub_minix_read_file): Use shifts.
8868 (grub_minix_mount): Check block size and take a logarithm.
8870 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8872 Use shifts in squash4.
8874 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
8875 (squash_mount): Check block size and take logarithm.
8876 (direct_read): Use shifts.
8878 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8880 Correct befs block counting logic.
8882 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
8883 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
8884 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
8885 (grub_afs_read_inode): Use block_shift.
8886 (RANGE_SHIFT): New definition.
8887 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
8888 unexpected conditions, use shifts and appropriate types.
8889 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
8891 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8893 * grub-core/disk/raid.c (scan_devices): Check partition.
8894 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
8896 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
8898 Support BFS (befs) UUID.
8900 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
8901 (grub_afs_small_data_element_header): New struct.
8902 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
8903 (grub_afs_read_attribute) [MODE_BFS]: New function.
8904 (grub_afs_iterate_dir): Allocate for complete inode.
8905 (grub_afs_mount): Likewise.
8906 (grub_afs_uuid) [MODE_BFS]: New function.
8907 (grub_afs_fs) [MODE_BFS]: Add .uuid.
8909 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
8911 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
8912 (zfs_unmount): Fix memory leak.
8914 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8916 Support NTFS reparse points.
8918 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
8919 (symlink_descriptor): New struct.
8920 (grub_ntfs_read_symlink): New function.
8921 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
8922 (grub_ntfs_open): Likewise.
8924 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8926 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
8928 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8930 fstest xnu_uuid subcommand.
8932 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
8933 grub-core/commands/xnu_uuid.c.
8934 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
8935 (fstest): Handle xnu_uuid.
8936 (options): Document xnu_uuid.
8937 (argp_parser): Parse xnu_uuid.
8939 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8941 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
8942 -l argument. Add newline at the end if printing.
8943 (GRUB_MOD_INIT): Document -l.
8945 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8947 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
8949 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8951 ZFS multi-device and version 33 support.
8953 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
8954 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
8955 (grub_zfs_data): Add multidev-ice-related fields.
8956 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
8957 (dva_get_offset): Make dva const.
8958 (zfs_fetch_nvlist): New function.
8959 (fill_vdev_info_real): Likewise.
8960 (fill_vdev_info): Likewise.
8961 (check_pool_label): Likewise.
8962 (scan_disk): Likewise.
8963 (scan_devices): Likewise.
8964 (read_device): Likewise.
8965 (read_dva): Likewise.
8966 (zio_read_gang): Use read_dva.
8967 (zio_read_data): Likewise.
8968 (zap_leaf_lookup): Add missing endian conversion.
8969 (zap_verify): Add missing endian conversion. All users updated.
8970 (fzap_lookup): Likewise.
8971 (fzap_iterate): Likewise.
8972 (dnode_get_path): Handle SA bonus.
8973 (nvlist_find_value): Make input const. All users updated.
8974 (unmount_device): New function.
8975 (zfs_unmount): Use unmount_device.
8976 (zfs_mount): Use scan_disk.
8977 (zfs_mtime): New function.
8978 (grub_zfs_open): Handle system attributes.
8979 (fill_fs_info): Likewise.
8980 (grub_zfs_dir): Likewise.
8981 (grub_zfs_fs): Add mtime.
8982 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
8983 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
8984 (SA_MTIME_OFFSET): Likewise.
8985 (SA_SYMLINK_OFFSET): Likewise.
8986 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
8987 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
8988 (fstest): Support zfsinfo.
8989 (argp_parser): Likewise.
8991 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8993 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
8996 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9000 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9001 sharing the same block. Iterate over correct number of indices.
9002 (dnode_get_path): Handle symlinks correctly.
9004 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9006 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9008 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9012 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9013 (grub_hfsplus_btree_search): Fix types.
9014 (grub_hfsplus_label): Implement.
9016 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9018 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9020 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9022 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9024 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9026 Fix symlink handling on iso9660.
9028 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9030 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9031 (grub_iso9660_read_symlink): Moved most of code ...
9032 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9034 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9036 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9037 Use union to avoid breaking strict-aliasing rules.
9039 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9041 Support multi-extent iso files.
9043 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9045 (grub_fshelp_node): Revamp. All users updated.
9047 (read_node): New function.
9048 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9050 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9051 (get_node_size): New function.
9052 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
9054 Fix memory leak on . and ..
9055 (grub_iso9660_read): Use read_node.
9056 (grub_iso9660_close): Free node.
9058 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9060 Fix tar 4G limit and handle paths containing dot.
9062 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
9063 (canonicalize): New function.
9064 (grub_cpio_find_file): Use canonicalize. Store offs in
9066 (grub_cpio_dir): Use grub_disk_addr_t.
9067 (grub_cpio_open): Likewise.
9069 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9071 Fix handling of uncompressed blocks on squashfs and break 4G limit.
9073 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
9075 (grub_squash_inode): Add long_file and block_size.
9076 (grub_squash_cache_inode): New struct.
9077 (grub_squash_dirent): Make types into enum.
9078 (SQUASH_TYPE_LONG_REGULAR): New type.
9079 (grub_squash_frag_desc): Add field size.
9080 (SQUASH_BLOCK_FLAGS): New enum.
9081 (grub_squash_data): Use grub_squash_cache_inode.
9082 (grub_fshelp_node): Make ino_chunk 64-bit.
9083 (read_chunk): Minor argument change. All users updated.
9084 (squash_mount): Use correct le_to_cpu.
9085 (grub_squash_open): Handle LONG_REGULAR.
9086 (direct_read): New function.
9087 (grub_squash_read_data): Handle blocks correctly.
9089 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9091 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
9093 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9095 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
9097 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9099 Fix 2G limit on ZFS.
9101 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
9103 (uberblock_verify): Likewise.
9104 (dmu_read): Likewise.
9105 (grub_zfs_read): Likewise. Remove invalid cast.
9107 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9109 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
9110 (grub_jfs_blkno): Fix incorrect shift.
9111 (grub_jfs_read_file): Use more appropriate types.
9113 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9115 Support triple indirect on minix2 and minix3.
9117 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
9118 Declare triple_indir_zone.
9119 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
9122 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9126 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
9127 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
9128 Rename ctime to mtime. All users updated.
9129 (grub_minix_get_file_block): Fix types and double indirect computations.
9131 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9133 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
9134 if no label is found.
9135 (grub_fat_iterate_dir): Fix file size type.
9136 (grub_fat_iterate_dir): Likewise.
9138 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9140 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
9142 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9143 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9145 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9147 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
9149 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9151 * util/import_gcry.py: Accept space between # and include.
9153 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9155 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
9157 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9159 Fine grainely disable warnings on lexer. Remove Wno-error on it.
9161 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
9162 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
9164 * grub-core/script/yylex.l: Add fine-grained #pragma.
9166 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9168 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
9169 New inline function.
9170 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
9172 (memset) [GRUB_UTIL]: Likewise.
9173 (memcmp) [GRUB_UTIL]: Likewise.
9175 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9177 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
9178 inline function rather than a define.
9180 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9182 * util/grub-setup.c: Add missing include.
9184 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9186 * util/ieee1275/grub-ofpathname.c: Add missing include.
9188 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9190 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
9191 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
9194 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9196 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
9199 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9201 * util/grub-install.in: Add datarootdir as per automake manual
9203 * util/grub-mknetdir.in: Likewise.
9205 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9207 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
9209 * util/grub.d/10_kfreebsd.in: Likewise.
9210 * util/grub.d/10_linux.in: Likewise.
9211 * util/grub.d/10_netbsd.in: Likewise.
9212 * util/grub.d/10_windows.in: Likewise.
9213 * util/grub.d/20_linux_xen.in: Likewise.
9215 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
9217 Remove redundant grub_kernel_image_size.
9219 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
9221 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
9222 the small code. It moves it only by few bytes but simplifies the code.
9223 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
9225 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
9226 (grub_kernel_image_size): Removed.
9227 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
9228 (grub_kernel_image_size): Removed.
9229 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
9230 compiled with Apple toolchain.
9231 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
9232 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
9233 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
9234 (grub_total_module_size): Likewise.
9235 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
9237 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
9238 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
9239 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9240 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
9241 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
9242 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
9243 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
9244 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
9246 (grub_total_module_size): Removed.
9247 * util/grub-mkimage.c (image_target_desc): Remove image_size.
9248 (image_targets): Likewise.
9249 Set .compressed_size to no field on sparc.
9250 (generate_image): Remove kernel_image_size handling.
9252 2011-10-19 Szymon Janc <szymon@janc.net.pl>
9254 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
9255 NULL pointer dereference.
9257 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9259 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
9260 done with a dedicated section.
9262 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
9263 Ensure the correct position of boot_path.
9264 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
9265 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
9267 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
9268 * include/grub/boot.h: Removed. All references removed.
9269 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9271 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
9273 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9275 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
9278 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9280 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
9282 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9284 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9285 Don't add the bogus brackets.
9287 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9291 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
9292 * grub-core/Makefile.core.def (exfat): New module.
9293 * grub-core/fs/exfat.c: New file.
9294 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
9295 (GRUB_FAT_ATTR_*): Make into an enum.
9296 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
9297 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
9298 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
9299 (GRUB_FAT_MAXFILE): Removed.
9300 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
9301 (grub_current_fat_bpb_t): New type.
9302 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
9303 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
9304 (grub_fat_dir_node_t): New type.
9305 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
9306 (fat_log2) [MODE_EXFAT]: Removed.
9307 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
9308 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
9309 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
9310 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
9311 (grub_fat_label) [MODE_EXFAT]: New function.
9312 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
9313 reserved_first_sector to 0.
9315 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
9317 Move grub_reboot out of the kernel.
9319 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
9320 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
9321 * grub-core/lib/efi/reboot.c: ... here.
9322 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
9323 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
9324 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
9325 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
9326 * grub-core/lib/i386/reboot_trampoline.S: ... here.
9327 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
9328 * grub-core/lib/ieee1275/reboot.c: ... here.
9329 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
9330 * grub-core/lib/mips/arc/reboot.c: ... here.
9331 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
9332 * grub-core/lib/mips/loongson/reboot.c: ...here.
9333 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
9334 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
9335 * include/grub/emu/misc.h (grub_reboot): New function declaration.
9336 * include/grub/i386/reboot.h: New file.
9337 * include/grub/mips/loongson/ec.h: Fix includes.
9338 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
9339 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
9340 * grub-core/lib/i386/reboot.c: New file.
9342 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
9344 Make grub_prefix into module to fix the arbitrary limit and save
9347 * grub-core/kern/emu/main.c (grub_prefix): Removed.
9348 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
9349 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
9350 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
9351 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
9352 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
9353 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
9354 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
9355 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
9356 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
9357 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
9358 * include/grub/ia64/efi/kernel.h: Removed.
9359 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
9360 (grub_prefix): Removed.
9361 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
9362 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
9363 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
9364 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
9365 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
9366 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
9367 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
9368 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
9369 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
9370 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
9371 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
9372 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
9373 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
9374 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
9375 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
9376 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
9377 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
9378 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
9379 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
9380 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
9381 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
9382 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
9383 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
9384 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
9385 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
9386 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
9387 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
9388 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
9389 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
9391 * util/grub-mkimage.c (image_target_desc): Removed prefix and
9393 (image_targets): Likewise.
9394 (generate_image): Put prefix as a module.
9396 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9398 Replace grub_module_iterate with FOR_MODULES.
9400 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
9401 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
9402 (grub_efi_modules_addr): ...this.
9403 * grub-core/kern/efi/init.c (grub_modbase): New variable.
9404 (grub_efi_init): Set grub_modbase.
9405 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
9406 (grub_modbase): New variable.
9407 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
9408 (grub_modbase): New variable.
9409 (grub_machine_init): Set grub_modbase.
9410 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
9411 (grub_modbase): New variable.
9412 (grub_machine_init): Set grub_modbase.
9413 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
9414 (grub_modbase): New variable.
9415 (grub_machine_init): Set grub_modbase.
9416 * grub-core/kern/main.c (grub_module_iterate): Remove.
9417 (grub_modules_get_end): Use grub_modbase.
9418 (grub_load_modules): Use FOR_MODULES.
9419 (grub_load_config): Likewise.
9420 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
9421 (grub_modbase): New variable.
9422 (grub_machine_init): Set grub_modbase.
9423 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
9424 (grub_modbase): New variable.
9425 (grub_machine_init): Set grub_modbase.
9426 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
9428 (grub_modbase): New variable.
9429 (grub_machine_init): Set grub_modbase.
9430 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
9431 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
9432 (grub_module_iterate): Likewise.
9433 (grub_modbase): New variable declaration.
9434 (FOR_MODULES): New macro.
9436 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9438 * configure.ac: Check for __ctzdi2 and __ctzsi2.
9439 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
9441 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9443 Fix few obvious type discrepancies.
9445 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
9446 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
9447 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
9449 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
9450 and connected types.
9451 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
9453 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
9454 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
9455 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
9456 and connected types.
9458 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9460 Fix python 3.x incompatibilities.
9462 * gentpl.py: Put brackets around print strings.
9463 * util/import_gcry.py: Open explicitly as utf-8.
9464 Use in instead of has_key.
9466 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9468 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
9469 (GRUB_XFS_INO_AGBITS): Make into inline function.
9470 (GRUB_XFS_INO_INOINAG): Likewise.
9471 (GRUB_XFS_INO_AG): Likewise.
9472 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9473 (GRUB_XFS_EXTENT_OFFSET): Likewise.
9474 (GRUB_XFS_EXTENT_BLOCK): Likewise.
9475 (GRUB_XFS_EXTENT_SIZE): Likewise.
9476 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
9477 (GRUB_XFS_NEXT_DIRENT): Likewise.
9478 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
9479 (grub_xfs_read_file): Fix offset type.
9481 2011-10-15 Robert Millan <rmh@gnu.org>
9483 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
9485 2011-10-15 Robert Millan <rmh@gnu.org>
9487 Fix build problem on FreeBSD and GNU/kFreeBSD.
9489 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
9491 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9493 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
9495 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
9497 (grub_hfsplus_btree_recoffset): Likewise.
9498 (grub_hfsplus_btree_recptr): Likewise.
9499 (grub_hfsplus_find_block): Likewise.
9500 (grub_hfsplus_btree_search): Likewise.
9501 (grub_hfsplus_read_block): Likewise.
9502 (grub_hfsplus_read_file): Likewise.
9503 (grub_hfsplus_mount): Likewise.
9504 (grub_hfsplus_btree_iterate_node): Likewise.
9505 (grub_hfsplus_btree_search): Likewise.
9506 (grub_hfsplus_iterate_dir): Likewise.
9507 (grub_hfsplus_read): A small code simplification.
9509 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9511 * grub-core/kern/emu/hostdisk.c
9512 (convert_system_partition_to_system_disk): Don't assume that children
9513 of mapper nodes are mapper nodes.
9515 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9517 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
9518 * include/grub/misc.h (grub_isxdigit): New function.
9519 * grub-core/video/colors.c (my_isxdigit): Removed. All users
9520 switched to grub_isxdigit.
9521 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
9522 number starting with a letter.
9524 2011-10-09 Robert Millan <rmh@gnu.org>
9526 LVM support for FreeBSD and GNU/kFreeBSD.
9528 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
9530 (LVM_DEV_MAPPER_STRING): Move from here ...
9531 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
9532 * util/getroot.c: Include `<grub/util/lvm.h>'.
9533 (grub_util_get_dev_abstraction): Enable
9534 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
9535 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
9536 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
9537 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
9539 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
9541 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
9542 when LVM abstraction is required for ${GRUB_DEVICE}.
9544 2011-10-06 Szymon Janc <szymon@janc.net.pl>
9546 Add support for LZO compression in GRUB:
9547 - import of minilzo library,
9548 - LZO decompression for btrfs,
9549 - lzop files decompression.
9551 * grub-core/io/lzopio.c: New file.
9552 * grub-core/lib/adler32.c: Likewise.
9553 * grub-core/lib/minilzo/lzoconf.h: Likewise.
9554 * grub-core/lib/minilzo/lzodefs.h: Likewise.
9555 * grub-core/lib/minilzo/minilzo.c: Likewise.
9556 * grub-core/lib/minilzo/minilzo.h: Likewise.
9557 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
9558 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
9559 grub-core/lib/minilzo/minilzo.c to common.
9560 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
9562 * grub-core/Makefile.core.def (btrfs): Likewise.
9563 * grub-core/Makefile.core.def (lzopio): New module.
9564 (adler32): Likewise.
9565 * grub-core/fs/btrfs.c: Include minilzo.h.
9566 (GRUB_BTRFS_COMPRESSION_LZO): New define.
9567 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
9568 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
9569 (grub_btrfs_lzo_decompress): New function.
9570 (grub_btrfs_extent_read): Add support for LZO compression type.
9571 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
9572 (GRUB_USHRT_MAX): Likewise.
9573 (GRUB_UINT_MAX): Likewise.
9574 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
9575 (UINT_MAX): Likewise.
9576 (CHAR_BIT): Likewise.
9577 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
9578 grub-core/lib/posix_wrap/limits.h
9579 (UCHAR_MAX): Likewise.
9580 * include/grub/file.h (grub_file_filter_id): New compression filter
9581 GRUB_FILE_FILTER_LZOPIO.
9582 * include/grub/file.h (grub_file_filter_id): Set
9583 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
9584 * include/grub/types.h (grub_get_unaligned16): New function.
9585 (grub_get_unaligned32): Likewise.
9586 (grub_get_unaligned64): Likewise.
9587 * util/import_gcry.py (cryptolist): Add adler32.
9589 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
9591 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
9592 in perspective decreases the complexity of build system and fixes
9593 compilation right now.
9595 2011-10-01 Ales Nesrsta <starous@volny.cz>
9597 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
9598 (fixed problem related to using UHCI with coreboot).
9600 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
9602 * gentpl.py: Use Autogen macros so that the output template file
9603 (Makefile.tpl) size is reduced.
9605 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
9607 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
9610 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9612 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
9613 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
9615 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9617 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
9620 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9622 Remove extra declaration of sleep for mingw32.
9624 * util/misc.c (sleep) [__MINGW32__]: Removed.
9625 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
9627 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
9629 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
9631 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
9633 (NETBSD_BTINFO_BOOTWEDGE): New definition.
9634 (grub_netbsd_btinfo_bootwedge): New struct.
9635 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9637 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
9639 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
9641 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
9644 2011-09-28 Andreas Born <futur.andy@googlemail.com>
9646 Fix incorrect identifiers in bash-completion.
9648 * util/bash-completion.d/grub-completion.bash.in
9649 (_grub_mkpasswd-pbkdf2): Rename to ...
9650 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
9651 (_grub_script-check): Rename to ...
9652 (_grub_script_check): ... this. All users updated.
9654 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
9656 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
9657 Return 0 if disk isn't biosdisk.
9659 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
9661 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
9663 * Makefile.util.def (grub-fstest): Likewise.
9665 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
9667 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
9668 Get sector size from disk label.
9670 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
9672 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
9673 */README* as well as README*.
9674 Reported by: Axel Beckert.
9676 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9678 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
9679 case of less than 256 MiB of RAM.
9681 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9683 * grub-core/commands/wildcard.c (make_regex): Handle @.
9685 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9687 * util/grub-install.in: Move cryptodisk logic to appropriate place.
9689 2011-08-21 Szymon Janc <szymon@janc.net.pl>
9691 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
9692 AC_LANG_CONFTEST macros.
9694 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9696 Add grub-fstest option to uncompress data for commands.
9698 * util/grub-fstest.c (uncompress): New var.
9699 (options): New option -u.
9701 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9703 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
9704 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
9706 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9708 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
9709 file type was not recognized correctly (not gzip or corrupted).
9711 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9713 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
9714 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
9716 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9718 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
9720 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
9721 video_radeon_fuloong2e.
9722 * grub-core/video/radeon_fuloong2e.c: New file.
9723 * include/grub/video.h (grub_video_id_t): Add new ID
9724 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
9726 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9728 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
9730 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
9731 that PRID matches the detected subplatform and reset the subplatform
9734 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9736 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
9738 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9740 Fix PCI iterating on functions >= 4.
9742 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
9743 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
9745 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
9746 (grub_pci_read): Fix bitmask.
9747 (grub_pci_read_word): Likewise.
9748 (grub_pci_read_byte): Likewise.
9749 (grub_pci_write): Likewise.
9750 (grub_pci_write_word): Likewise.
9751 (grub_pci_write_byte): Likewise.
9753 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9755 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
9756 can still be specified in TARGET_CFLAGS)
9758 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9760 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
9762 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
9763 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
9764 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
9765 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
9766 (FULOONG): Rename to ...
9767 (FULOONG2F): ... this. All users updated.
9768 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
9769 (machtype_fuloong2f_str): ... this.
9770 (machtype_fuloong2e_str): New string.
9771 Check for machtype_fuloong2e_str.
9772 * grub-core/loader/mips/linux.c (loongson_machtypes)
9773 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
9774 * grub-core/term/serial.c (loongson_defserial)
9775 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
9776 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
9778 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
9780 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
9781 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
9782 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
9783 to IMAGE_FULOONG2F_FLASH. All users updated.
9784 (image_targets): Rename images.
9785 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
9787 2011-08-19 Szymon Janc <szymon@janc.net.pl>
9789 Make enable of disk cache statistics code configurable.
9791 * configure.ac: --enable-cache-stats added.
9792 * config.h.in (DISK_CACHE_STATS): New define.
9793 * grub-core/Makefile.core.def (cacheinfo): New command.
9794 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
9795 * grub-core/commands/cacheinfo.c: New file.
9796 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
9797 moved to cacheinfo.c.
9798 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
9800 * include/grub/disk.h: Likewise.
9802 2011-08-19 Szymon Janc <szymon@janc.net.pl>
9804 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
9805 * grub-core/Makefile.am: Likewise.
9807 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9809 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
9812 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9814 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
9816 (grub_jfs_lookup_symlink): Use correct starting inode.
9818 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9820 * util/grub-setup.c (main): Add missing gcry initialisation.
9822 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9824 Don't accept text modes on EFI when booting Linux.
9826 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
9827 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
9829 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
9830 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
9832 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
9833 use of "/path/.." as in grub-install for EFI as well as handling
9835 Fixes Debian bug #637768.
9837 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
9839 * util/grub-probe.c: Remove duplicate #include.
9841 2011-08-10 Robert Millan <rmh@gnu.org>
9843 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
9845 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
9847 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
9848 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
9850 2011-08-03 Robert Millan <rmh@gnu.org>
9852 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
9854 Reported by: Zachary Bedell
9856 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
9858 * configure.ac: The Loongson port requires grub-mkfont due to its
9859 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
9862 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
9864 * util/grub-install.in: Don't source grub-mkconfig_lib until after
9865 processing arguments (otherwise help2man fails when GRUB has not yet
9868 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9870 New script grub-mkstandalone.
9872 * Makefile.util.def (grub-mkstandalone): New script.
9873 * docs/man/grub-mkstandalone.h2m: New file.
9874 * util/grub-mkstandalone.in: Likewise.
9876 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9878 Support ATA disks with 4K sectors.
9880 * include/grub/ata.h (grub_ata): New member log_sector_size.
9881 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
9882 (grub_ata_identify): Read sector size.
9883 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
9885 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9887 * util/grub-install.in: Don't use uhci outside of x86.
9889 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9891 * util/grub-mkrescue.in: Add missing quotes.
9893 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9895 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
9898 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9900 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
9902 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9904 * include/grub/video.h: add missing EXPORT_FUND on
9905 grub_video_edid_checksum and grub_video_edid_preferred_mode.
9907 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9909 * include/grub/mips/kernel.h: Fix define conflict.
9911 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9913 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
9916 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
9918 Preferred resolution detection for VBE.
9920 * grub-core/video/video.c (grub_video_edid_checksum): New function.
9921 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
9922 the Flat Panel extension, in line with the X.org VESA driver.
9923 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
9925 (grub_vbe_bios_get_ddc_capabilities): Likewise.
9926 (grub_vbe_bios_read_edid): Likewise.
9927 (grub_vbe_get_preferred_mode): Likewise.
9928 (grub_video_vbe_setup): When the mode is "auto", try to get the
9929 preferred mode from VBE, and use the largest mode that is no larger
9930 than the preferred mode (some BIOSes expose a preferred mode that is
9931 not in their mode list!). If this fails, fall back to 640x480 as a
9932 safe conservative choice.
9933 (grub_video_vbe_get_edid): New function.
9934 (grub_video_vbe_adapter): Add get_edid.
9935 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
9936 (struct grub_video_adapter): Add get_edid.
9937 (grub_video_edid_checksum): Add prototype.
9938 (grub_video_edid_preferred_mode): Likewise.
9939 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
9942 * grub-core/commands/videoinfo.c (print_edid): New function.
9943 (grub_cmd_videoinfo): Print EDID if available.
9945 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
9946 is more appropriate on a wider range of platforms than 640x480.
9947 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
9950 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9952 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
9954 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9956 * po/POTFILES.in: Regenerate.
9958 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9960 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
9961 incorrect memory usage.
9963 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9965 * util/grub-install.in: Source grub-mkconfig_lib.
9967 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
9969 Remove getroot.c from core on emu platform.
9971 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
9973 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
9975 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
9976 * util/getroot.c (get_win32_path): ... here.
9977 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
9978 * util/getroot.c (fini_libzfs): ... here.
9979 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
9980 * util/getroot.c (grub_get_libzfs_handle): ... here.
9981 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
9983 * util/getroot.c (grub_find_zpool_from_dir): ... here.
9984 * grub-core/kern/emu/misc.c
9985 (grub_make_system_path_relative_to_its_root): Moved from here...
9986 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
9987 * grub-core/kern/emu/getroot.c: Moved from here ...
9988 * util/getroot.c: ... here. All users updated.
9989 * grub-core/kern/emu/raid.c: Moved from here ...
9990 * util/raid.c: ... here. All users updated.
9992 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
9994 * po/POTFILES.in: Regenerate.
9996 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
9998 Fix compilation on GNU/Linux.
10000 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10002 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10003 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10004 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10006 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10007 2011-07-07 Michael Gorven <michael@gorven.za.net>
10008 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10010 LUKS and GELI support.
10012 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10013 grub-core/disk/luks.c, grub-core/disk/geli.c,
10014 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10015 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10016 grub-core/lib/arg.c.
10017 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10018 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10019 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10020 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10021 (grub-bin2h): Add libgcry.a.
10022 (grub-mkimage): Likewise.
10023 (grub-mkrelpath): Likewise.
10024 (grub-script-check): Likewise.
10025 (grub-editenv): Likewise.
10026 (grub-mkpasswd-pbkdf2): Likewise.
10027 (grub-pe2elf): Likewise.
10028 (grub-fstest): Likewise.
10029 (grub-mkfont): Likewise.
10030 (grub-mkdevicemap): Likewise.
10031 (grub-probe): Likewise.
10032 (grub-ofpath): Likewise.
10033 (grub-mklayout): Likewise.
10034 (example_unit_test): Likewise.
10035 (grub-menulst2cfg): Likewise.
10036 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10037 * grub-core/Makefile.core.def (cryptodisk): New module.
10040 * grub-core/disk/AFSplitter.c: New file.
10041 * grub-core/disk/cryptodisk.c: Likewise.
10042 * grub-core/disk/geli.c: Likewise.
10043 * grub-core/disk/luks.c: Likewise.
10044 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10046 (grub_util_get_dm_abstraction): New function.
10047 (grub_util_follow_gpart_up): Likewise.
10048 (grub_util_get_geom_abstraction): Likewise.
10049 (grub_util_get_dev_abstraction): Use new functions.
10050 (grub_util_pull_device): Pull GELI and LUKS.
10051 (grub_util_get_grub_dev): Handle LUKS and GELI.
10052 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
10053 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
10054 (follow_geom_up): Removed.
10055 (grub_util_fd_seek): New function.
10056 (open_device): Use grub_util_fd_seek.
10057 (nread): Rename to ..
10058 (grub_util_fd_read): ... this. All users updated.
10059 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
10060 (grub_crypto_cbc_decrypt): Likewise.
10061 (grub_crypto_hmac_write): Likewise.
10062 (grub_crypto_hmac_buffer): Likewise.
10063 (grub_password_get): Extend to util.
10064 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
10065 New member modname.
10066 (gcry_md_spec) [GRUB_UTIL]: Likewise.
10067 * include/grub/cryptodisk.h: New file.
10068 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
10069 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
10071 (grub_util_follow_gpart_up): New proto.
10072 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
10073 (grub_util_fd_read): Likewise.
10074 (grub_cryptodisk_cheat_mount): Likewise.
10075 (grub_util_cryptodisk_print_uuid): Likewise.
10076 (grub_util_get_fd_sectors): Likewise.
10077 * util/grub-fstest.c (mount_crypt): New var.
10078 (fstest): Mount crypto if requested.
10079 (options): New option -C.
10080 (argp_parser): Parse -C.
10081 (main): Init and fini gcry.
10082 * util/grub-install.in: Support cryptodisk install.
10083 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
10084 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
10086 (prepare_grub_to_access_device): Likewise.
10087 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
10088 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
10089 (probe_cryptodisk_uuid): New function.
10090 (probe_abstraction): Likewise.
10091 (probe): Use new functions.
10092 * util/import_gcry.py: Create Makefile.utilgcry.def.
10093 Add modname member.
10095 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10097 Lazy device scanning.
10099 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
10100 (grub-setup): Remove util/raid.c.
10101 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
10102 * grub-core/disk/lvm.c (scan_depth): New variable.
10103 (grub_lvm_iterate): Rescan if necessary.
10104 (find_lv): New function based on grub_lvm_open.
10105 (grub_lvm_open): Use find_lv. Rescan on error.
10106 (is_node_readable): New function.
10107 (is_lv_readable): Likewise.
10108 (grub_lvm_scan_device): Skip already found disks.
10109 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
10110 Stop if searched device is found and readable.
10111 * grub-core/disk/raid.c (inscnt): New variable.
10112 (scan_depth): Likewise.
10113 (scan_devices): New function based on grub_raid_register. Abort if
10114 looked for device is found.
10115 (grub_raid_iterate): Rescan if needed.
10116 (find_array): NEw function based on -grub_raid_open.
10117 (grub_raid_open): Use find_array and rescan.
10118 (insert_array): Set became_readable_at.
10119 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
10120 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
10122 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
10123 (grub_util_pull_device): New function.
10124 (grub_util_get_grub_dev): Call grub_util_pull_device.
10125 * util/raid.c: Moved to ..
10126 * grub-core/kern/emu/raid.c: ... here.
10127 (grub_util_raid_getmembers): New parameter "bootable".
10128 All users updated. Support 1.x.
10129 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
10131 * include/grub/disk.h (grub_disk_pull_t): New enum.
10132 (grub_disk_dev): Change iterate prototype.
10134 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
10136 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
10137 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
10138 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
10139 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
10141 * include/grub/util/raid.h: Removed.
10143 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10145 * po/POTFILES.in: Regenerate.
10147 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10149 Unify sparc init with other ieee1275.
10151 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
10152 instead of kern/sparc64/ieee1275/init.c.
10153 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
10154 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
10155 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
10156 grub/machine/kernel.h.
10157 (grub_ieee1275_original_stack) [__sparc__]: New variable.
10158 (grub_claim_heap) [__sparc__]: Use sparc version.
10159 (grub_machine_init): Moved args parsing to
10160 (grub_parse_cmdline): ...this.
10161 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
10162 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
10164 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
10166 Move BOOTP to separate file.
10168 * grub-core/Makefile.core.def (net): Add net/bootp.c.
10169 * grub-core/net/net.c: Move all BOOTP functions to
10170 * grub-core/net/bootp.c: ... here.
10172 Use frame interface on PXE.
10174 * grub-core/Makefile.core.def (pxecmd): Removed.
10175 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
10176 * grub-core/commands/i386/pc/pxecmd.c: Removed.
10177 * grub-core/i386/pc/pxe.c: Moved from here ...
10178 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
10179 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
10180 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
10182 EFI network support.
10184 * grub-core/Makefile.core.def (efinet): New module.
10185 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
10187 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
10189 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
10190 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
10191 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
10192 * grub-core/net/drivers/efi/efinet.c: New file.
10193 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
10194 (grub_efi_net_config): New extern var.
10196 Various cleanups and bugfixes.
10198 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
10200 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
10201 disk declared as partition.
10202 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
10204 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
10205 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
10206 (grub_debug_zalloc): Likewise.
10207 (grub_debug_realloc): Likewise.
10208 (grub_debug_memalign): Likewise.
10209 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
10210 Check that target is IPv4.
10211 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
10212 local-mac-address as fallback.
10213 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
10215 * grub-core/net/ip.c (ipchksum): Rename to ...
10216 (grub_net_ip_chksum): ... this. All users updated.
10217 (grub_net_recv_ip_packets): Special handling for DHCP.
10218 * util/grub-mkimage.c (generate_image): Zero-out aout header.
10220 Unify prefix handling
10222 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
10223 (grub_machine_get_bootlocation): ... this.
10224 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
10225 (grub_machine_get_bootlocation): ... this.
10226 (grub_prefix): New variable.
10228 (root_dev): New variable.
10230 (main): Use new variables.
10231 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
10233 (grub_machine_get_bootlocation): ... this.
10234 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
10235 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
10236 (grub_machine_get_bootlocation): ... this.
10237 (grub_machine_set_prefix): Removed.
10238 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
10239 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
10241 (grub_machine_get_bootlocation): ... this.
10242 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
10243 (grub_set_prefix_and_root): ... this. All users updated.
10244 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
10246 (grub_machine_get_bootlocation): ... this.
10247 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
10248 (grub_machine_get_bootlocation): New proto.
10249 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
10251 Less intrusive and more reliable seek on network implementation.
10253 * grub-core/kern/file.c (grub_file_net_seek): Removed.
10254 (grub_file_seek): Don't call grub_file_net_seek.
10255 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
10256 (grub_net_fs_read_real): .. this.
10257 (grub_net_seek_real): Use net->offset.
10258 (grub_net_fs_read): Seek if necessary.
10260 Unify IEEE1275 netwotk config with the other platforms.
10262 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
10264 (grub_machine_get_bootlocation): Support network.
10265 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
10266 Support type and device parsing.
10267 (grub_ieee1275_get_device_type): New function.
10268 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
10270 (grub_ieee1275_net_config_real): ... this.
10271 (grub_ofnet_probecards): Removed.
10272 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
10273 * include/grub/ieee1275/ofnet.h: Removed.
10274 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
10276 (grub_ieee1275_get_device_type): New function.
10278 Unify network device closing across platforms and make more robust.
10280 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
10282 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
10284 * grub-core/net/net.c (grub_net_network_level_interface_register):
10286 (grub_net_card_unregister): Close all interfaces.
10287 (receive_packets): Don't poll if no iterfaces are registered.
10289 (grub_net_fini_hw): New function.
10290 (grub_net_restore_hw): Likewise.
10291 (fini_hnd): New variable.
10292 (GRUB_MOD_INIT): Register preboot hook.
10293 (GRUB_MOD_FINI): Run and unregister preboot hook.
10295 Poll network cards when idle.
10297 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
10298 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
10299 * grub-core/net/net.c (receive_packets): Save last poll time.
10300 (grub_net_poll_cards_idle_real): New function.
10301 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
10302 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
10303 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
10305 Rename ofnet interfaces.
10307 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
10308 (grub_ofnet_findcards): Use ofnet_%s names.
10310 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
10312 Cleanup socket opening.
10314 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
10315 (grub_net_fs_close): Likewise.
10316 (grub_net_fs_read_real): Use eof member.
10317 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
10318 (+grub_net_udp_close): New inline function.
10320 * include/grub/net/tftp.h: Moved to the top of ...
10321 * grub-core/net/tftp.c: ... here.
10322 * include/grub/net/ip.h: Moved mostly to the top of ...
10323 * grub-core/net/ip.c: ... here.
10324 * include/grub/net/ethernet.h: Moved mostly to the top of ...
10325 * grub-core/net/ethernet.c: ... here.
10327 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
10329 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
10332 * include/grub/net/ip.h (ipv4_ini): Removed.
10333 (ipv4_fini): Likewise.
10335 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
10336 (grub_net_send_ip_packets): Likewise.
10338 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10340 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
10341 grub_read_cmos prototype.
10343 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10345 VGA text support in qemu-mips
10347 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
10348 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
10349 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
10351 * grub-core/kern/i386/qemu/init.c: Renamed to ...
10352 * grub-core/kern/vga_init.c: ... this.
10353 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
10354 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
10355 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
10357 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
10358 GRUB_MACHINE_PCI_IO_BASE.
10360 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10362 MIPS qemu flash support.
10364 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
10366 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
10367 (grub_machine_init): Probe memory if its size isn't known.
10368 * util/grub-mkimage.c (image_targets): Add flash targets.
10369 (generate_image): Handle flash targets.
10371 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10373 MIPS qemu at_keyboard support.
10375 * gentpl.py (videoinkernel): Add qemu-mips.
10376 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
10377 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
10378 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
10380 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
10381 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
10382 * grub-core/term/serial.c (grub_serial_register)
10383 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
10385 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10387 CMOS support on sparc.
10389 * gentpl.py (cmos): Add powerpc and sparc.
10390 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
10392 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
10393 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
10394 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
10395 grub_set_datetime_cmos.
10396 * grub-core/lib/ieee1275/cmos.c: New file.
10397 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
10398 (find_rtc): Set no_ieee1275_rtc on error.
10399 (grub_get_datetime): Call grub_get_datetime_cmos on error.
10400 (grub_set_datetime): Call grub_set_datetime_cmos on error.
10401 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
10402 fail. Move value to argument. All users updated
10403 (grub_cmos_write): Likewise.
10404 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
10405 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
10406 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
10407 grub_get_datetime_cmos and grub_set_datetime_cmos.
10409 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
10411 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
10412 sourcing grub-mkconfig_lib.
10413 * util/update-grub_lib.in: Likewise.
10414 * util/grub.d/00_header.in: Likewise.
10415 * util/grub.d/10_hurd.in: Likewise.
10416 * util/grub.d/10_kfreebsd.in: Likewise.
10417 * util/grub.d/10_linux.in: Likewise.
10418 * util/grub.d/10_netbsd.in: Likewise.
10419 * util/grub.d/10_windows.in: Likewise.
10420 * util/grub.d/20_linux_xen.in: Likewise.
10421 * util/grub.d/30_os-prober.in: Likewise.
10423 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
10425 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
10426 default_bg_color rather than black.
10427 (grub_gfxterm_fullscreen): Likewise.
10428 (grub_gfxterm_background_color_cmd): Save new background color in
10431 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10433 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
10435 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10437 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
10440 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10442 Chainloading on coreboot support.
10444 * grub-core/Makefile.core.def (chain): Add coreboot.
10445 * grub-core/loader/i386/coreboot/chainloader.c: New file.
10447 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10449 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
10452 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10454 Implement time command.
10456 * grub-core/Makefile.core.def (time): New module.
10457 * grub-core/commands/time.c: New file.
10458 * grub-core/script/parser.y: Remove "time" keyword.
10459 * grub-core/script/yylex.l: Likewise.
10461 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10463 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
10465 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10467 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
10468 when handling leftovers.
10470 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10472 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
10473 so that help2man doesn't fail.
10475 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10477 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
10478 type in pointers on sparc64.
10479 (get_card_packet): Likewise.
10481 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
10483 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
10485 (grub_cmd_videoinfo): Fetch current video mode.
10487 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10489 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
10490 because of underlying system restrictions.
10492 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10494 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
10497 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10499 Coreboot video support.
10501 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
10503 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
10504 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
10506 * grub-core/kern/i386/int.S: ... here.
10507 * grub-core/video/i386/pc/vbe.c: Updated includes.
10508 * grub-core/video/i386/pc/vga.c: Likewise.
10509 * include/grub/i386/coreboot/memory.h
10510 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
10511 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
10512 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
10513 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
10514 Disable interrupts.
10515 * include/grub/i386/pc/vga.h: Removed. All users updated.
10517 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10519 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
10520 definitions for dprintf.
10521 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
10523 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10525 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
10527 (get_card_packet): Likewise.
10529 2011-06-26 Yves Blusseau <blusseau@zetam.org>
10531 Display the path of the file when file is not found
10533 * grub-core/fs/fat.c: Display the filename when file is not found.
10534 * grub-core/fs/fshelp.c: Likewise.
10535 * grub-core/fs/hfs.c: Likewise.
10536 * grub-core/fs/jfs.c: Likewise.
10537 * grub-core/fs/minix.c: Likewise.
10538 * grub-core/fs/ufs.c: Likewise.
10539 * grub-core/fs/btrfs.c: Likewise.
10540 * grub-core/commands/i386/pc/play.c: Likewise.
10542 2011-06-26 Szymon Janc <szymon@janc.net.pl>
10544 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
10545 pointer checks before calling grub_free().
10546 * grub-core/commands/wildcard.c (match_devices): Likewise.
10547 * grub-core/commands/wildcard.c (match_files): Likewise.
10548 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
10549 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
10550 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
10551 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
10552 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
10553 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
10554 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
10555 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
10556 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
10558 2011-06-25 Patrick <p55@mailinator.com>
10560 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
10562 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
10564 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
10565 (grub_pxe_send): Likewise.
10566 (GRUB_MOD_INIT): Fix types.
10568 2011-06-24 Szymon Janc <szymon@janc.net.pl>
10570 * grub-core/io/xzio.c: Fix code style issues
10572 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10573 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
10575 Network infrastructure.
10576 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
10578 * include/grub/net/arp.h: New file.
10579 * include/grub/net/device.h: Likewise.
10580 * include/grub/net/ethernet.h: Likewise.
10581 * include/grub/net/ip.h: Likewise.
10582 * include/grub/net/netbuff.h: Likewise.
10583 * include/grub/net/tftp.h: Likewise.
10584 * include/grub/net/udp.h: Likewise.
10585 * include/grub/ieee1275/ofnet.h: Likewise.
10586 * include/grub/emu/export.h: Likewise.
10587 * include/grub/net.h: Likewise.
10588 * grub-core/net/arp.c: Likewise.
10589 * grub-core/net/ethernet.c: Likewise.
10590 * grub-core/net/ip.c: Likewise.
10591 * grub-core/net/udp.c: Likewise.
10592 * grub-core/net/tftp.c: Likewise.
10593 * grub-core/net/netbuff.c: Likewise.
10594 * grub-core/net/net.c: Likewise.
10595 * grub-core/net/drivers/emu/emunet.c: Likewise.
10596 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
10597 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
10599 * grub-core/Makefile.core.def (net): New module.
10602 (emunet): Likewise.
10603 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
10605 * grub-core/kern/device.c (grub_net_open) : New variable.
10606 (grub_device_open): Handle network device.
10607 (grub_device_close): Likewise.
10608 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
10609 (grub_grubnet_fini): Likewise.
10610 (grub_file_seek): Seek in network device.
10611 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
10612 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
10614 (grub_machine_fini): Call grub_grubnet_fini.
10615 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
10617 (grub_ieee1275_get_aliasdevname): New function.
10618 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10619 Add unofficial Solaris network info.
10620 (grub_multiboot_make_mbi): Likewise.
10621 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
10622 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
10623 * include/grub/device.h (grub_fs): Removed.
10624 * include/grub/err.h (grub_err_t): Add network-related values.
10625 * include/grub/i386/pc/pxe.h: Removed bootp parts.
10626 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
10627 (grub_ieee1275_get_aliasdevname): New proto.
10628 * include/grub/net.h: Rewritten.
10630 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10632 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
10635 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10637 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
10638 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
10639 it truncates the output.
10640 Reported by: Ximin Luo.
10642 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10644 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
10646 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10648 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
10649 partmap before abstraction.
10651 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
10653 * util/grub-mkconfig_lib.in: Add missing quotes.
10655 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10657 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
10658 old method if mountinfo would return /dev/root and /dev/root doesn't
10661 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10665 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
10666 (decomp_table): Add zlib entries.
10667 (zio_read): USe 8 bits for compression function rather than 3.
10668 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
10670 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10672 * grub-core/disk/ahci.c: Add missing license statements.
10673 * grub-core/fs/romfs.c: Likewise.
10674 * grub-core/lib/ia64/setjmp.S: Likewise.
10675 * grub-core/loader/i386/pc/freedos.c: Likewise.
10676 * grub-core/loader/ia64/efi/linux.c: Likewise.
10677 * grub-core/video/colors.c: Likewise.
10678 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
10680 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10684 * grub-core/Makefile.core.def (ata_pthru): Removed.
10685 (ahci): New module.
10687 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
10689 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
10691 (grub_hdparm_do_check_powermode_cmd): Likewise.
10692 (grub_hdparm_do_smart_cmd): Likewise.
10693 (grub_hdparm_set_val_cmd): Likewise.
10694 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
10695 * grub-core/disk/ahci.c: New file.
10696 * grub-core/disk/ata.c: Factor out the low-level part into ...
10697 * grub-core/disk/pata.c: ... here.
10698 * grub-core/disk/ata_pthru.c: Contents moved to ...
10699 * grub-core/disk/pata.c: ... here.
10700 * grub-core/disk/scsi.c (grub_scsi_names): New array.
10701 (grub_scsi_iterate): Use grub_scsi_names.
10702 (grub_scsi_open): Likewise.
10703 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
10704 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
10705 (grub_ata_regs_t): New struct.
10706 (grub_disk_ata_pass_through_parms): Likewise.
10707 (grub_ata_device): Renamed to ...
10708 (grub_ata): ... this.
10709 (grub_ata_dev): New struct.
10710 Removed all low-level inline functions.
10711 * include/grub/scsi.h: Add PATA and AHCI subsystems.
10712 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
10713 iterate hooks and open. All users updated.
10714 * util/grub-install.in: Handle AHCI disk module.
10716 2011-06-23 Szymon Janc <szymon@janc.net.pl>
10718 Add support for DRI and RSTn markers in JPEG files.
10720 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
10721 (JPEG_MARKER_RST0): Likewise.
10722 (JPEG_MARKER_RST1): Likewise.
10723 (JPEG_MARKER_RST2): Likewise.
10724 (JPEG_MARKER_RST3): Likewise.
10725 (JPEG_MARKER_RST4): Likewise.
10726 (JPEG_MARKER_RST5): Likewise.
10727 (JPEG_MARKER_RST6): Likewise.
10728 (JPEG_MARKER_RST7): Likewise.
10729 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
10730 (grub_jpeg_decode_dri): New function.
10731 (grub_jpeg_decode_sos): Move image data related part into
10732 grub_jpeg_decode_data function.
10733 (grub_jpeg_decode_data): New function.
10734 (grub_jpeg_reset): New function.
10735 (grub_jpeg_decode_jpeg): Handle new markers.
10737 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10739 * util/ieee1275/ofpath.c (check_sas): Close fd.
10740 (main): Free of_path.
10741 Reported by: David Volgyes <dvolgyes>.
10743 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10745 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
10746 Reported by: David Volgyes <dvolgyes>.
10748 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10750 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
10752 Reported by: David Volgyes <dvolgyes>.
10754 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10756 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
10758 Reported by: David Volgyes <dvolgyes>.
10760 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10762 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
10763 Prevent memory leak.
10765 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10767 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
10768 (main): Close file.
10769 Reported by: David Volgyes <dvolgyes>.
10771 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10773 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
10774 to continue if allocation is failed.
10776 Reported by: David Volgyes <dvolgyes>.
10778 2011-06-23 David Volgyes <dvolgyes>
10780 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
10783 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10785 Fix spurious warning.
10787 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
10788 (acorn_partition_map_find): Use .bin member.
10790 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10792 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
10793 /dev/root as a valid device.
10795 2011-06-23 Jim Meyering <meyering@redhat.com>
10797 Avoid NULL deref in grub_device_open.
10799 * grub-core/kern/device.c (grub_device_open): Don't dereference
10800 a NULL pointer upon failed grub_env_get.
10802 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10804 Support non-512B sectors and agglomerate reads.
10806 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
10807 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
10808 (disk_io_guid): Removed.
10809 (make_devices): Locate solely by BlockIO.
10810 (grub_efidisk_open): Fill log_sector_size and total_sectors.
10811 (grub_efidisk_read): Use read_blocks.
10812 (grub_efidisk_write): Use write_blocks.
10813 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
10815 (get_safe_sectors): Handle non-512B sectors.
10816 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
10818 (grub_biosdisk_write): Handle non-512B sectors.
10819 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
10820 (grub_scsi_read): Remove special non-512B block handling (now handled
10822 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
10823 and do sanity checks.
10824 (grub_disk_adjust_range): Handle non-512B sectors.
10825 (transform_sector): New function.
10826 (grub_disk_read_small): Likewise.
10827 (grub_disk_read): Rewritten.
10828 (grub_disk_write): Handle non-512B sectors.
10829 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
10831 (open_device): Use log_sector_size.
10832 (grub_util_biosdisk_read): Likewise.
10833 (grub_util_biosdisk_write): Likewise.
10834 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
10836 (pc_partition_map_embed): Likewise.
10837 * include/grub/disk.h (grub_disk): New field log_sector_size.
10838 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
10839 (GRUB_DISK_CACHE_BITS): Increased to 6.
10840 * util/grub-fstest.c (fstest): New command testload.
10841 (argp_parser): Likewise.
10843 2011-06-16 Robert Millan <rmh@gnu.org>
10845 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
10846 `ata' driver on kernel of FreeBSD 9.
10848 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
10849 (get_ataraid_disk_name): New functions.
10850 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
10851 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
10852 get_ataraid_disk_name() and get_ada_disk_name().
10854 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
10856 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
10859 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
10861 * docs/grub.texi (Obtaining and Building GRUB): Substitute
10862 `ftp.gnu.org' for `alpha.gnu.org'.
10864 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
10866 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
10867 partitions under /dev/disk/by-id/.
10869 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
10871 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
10872 after ten consecutive open failures. Scanning all the way up to
10873 10000 is excessive and can cause serious performance problems in
10874 some configurations.
10875 Fixes Ubuntu bug #787461.
10877 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10879 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
10882 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
10883 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10885 Don't stat devices unless we have to.
10887 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
10888 dir == /dev/mapper.
10889 (grub_guess_root_device): Use already known os_dev if possible.
10890 * grub-core/kern/emu/hostdisk.c
10891 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
10892 if device is known to be a dm one.
10894 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
10896 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
10897 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
10898 Reported by: Pawel Tecza.
10900 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
10902 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
10903 (lsefisystab): Likewise.
10905 (lsefimmap): Likewise.
10906 (hdparm): Enable on qemu-mips.
10907 (setjmp): Add ia64 nodist.
10908 (serial): Simplify tags.
10910 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10912 * Makefile.util.def (grub-ofpathname): Install manual page.
10914 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10916 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
10918 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10920 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
10922 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10924 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
10927 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10929 Use full 64-bit division.
10931 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
10932 (grub_divmod64): ... this.
10933 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
10936 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10938 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
10941 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10943 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
10944 to avoid accidents when debugging with 'sh -x'.
10945 * grub-core/gensyminfo.sh.in: Likewise.
10946 * tests/example_scripted_test.in: Likewise.
10947 * tests/grub_cmd_regexp.in: Likewise.
10948 * tests/grub_script_blanklines.in: Likewise.
10949 * tests/grub_script_dollar.in: Likewise.
10950 * tests/grub_script_expansion.in: Likewise.
10951 * tests/grub_script_final_semicolon.in: Likewise.
10952 * tests/partmap_test.in: Likewise.
10953 * tests/util/grub-shell-tester.in: Likewise.
10954 * tests/util/grub-shell.in: Likewise.
10956 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10958 Move gfxmenu color handling to video, so that gfxterm can use it
10961 * grub-core/gfxmenu/named_colors.c: Move to ...
10962 * grub-core/video/colors.c: ... here. Rename
10963 grub_gui_get_named_color to grub_video_get_named_color.
10964 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
10965 * grub-core/video/colors.c (my_isxdigit): ... here.
10966 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
10968 * grub-core/video/colors.c (parse_hex_color_component): ... here.
10969 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
10971 * grub-core/video/colors.c (grub_video_parse_color): ... here.
10973 * include/grub/gui.h (grub_gui_color_t): Move to ...
10974 * include/grub/video.h (grub_video_rgba_color_t): ... here.
10975 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
10976 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
10977 * include/grub/gui.h (grub_gui_map_color): Move to ...
10978 * include/grub/video.h (grub_video_map_rgba_color): ... here.
10979 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
10981 * include/grub/video.h (grub_video_get_named_color): ... here.
10982 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
10983 * include/grub/video.h (grub_video_parse_color): ... here.
10985 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
10987 (gfxmenu): Remove gfxmenu/named_colors.c.
10988 (video) [videomodules]: Add video/colors.c.
10990 Add a background_color command.
10992 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
10994 (GRUB_MOD_INIT): Register background_color command.
10995 (GRUB_MOD_FINI): Unregister background_color command.
10996 (redraw_screen_rect): Allow blend/replace of text layer to be
10997 controlled independently from whether there is a background bitmap.
10998 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
11001 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11003 Patch BPB in ntldr and chainloader --bpb.
11005 * grub-core/fs/fat.c: Include grub/fat.h.
11006 (grub_fat_bpb): Moved to ...
11007 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11008 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11010 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11012 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11014 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11016 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11017 (GRUB_MOD_INIT): Show --bpb.
11018 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11019 * grub-core/normal/main.c (features): New variable.
11020 (GRUB_MOD_INIT): Set feature_* variables.
11021 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11023 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11025 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11027 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11030 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11032 FreeDOS direct loading support.
11034 * docs/grub.texi (Supported OS): Add FreeDOS.
11035 * grub-core/Makefile.core.def (freedos): New module.
11036 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11038 (grub_relocator16_boot): Handle %ebx.
11039 * grub-core/lib/i386/relocator16.S: Likewise.
11040 * grub-core/loader/i386/pc/freedos.c: New file.
11042 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11044 Long Linux command line support.
11046 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11047 (maximal_cmdline_size): New variable.
11048 (allocate_pages): Use maximal_cmdline_size.
11049 (grub_cmd_linux): Set and use maximal_cmdline_size.
11050 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11051 (allocate_pages): Use maximal_cmdline_size.
11052 (grub_cmd_linux): Set and use maximal_cmdline_size.
11053 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
11054 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
11057 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11058 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11060 Improve devmapper support
11062 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
11063 (grub_util_is_lvm): New function.
11064 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
11065 than lvm if not dmraid.
11066 Handle mapped md nodes.
11067 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
11068 (grub_util_device_is_mapped): ... this. Make always available. All users
11070 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
11071 (convert_system_partition_to_system_disk): Handle lvm, mpath and
11073 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
11075 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11077 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
11079 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
11080 * grub-core/modinfo.sh.in: New file.
11081 * grub-core/Makefile.core.def (modinfo.sh): New script.
11082 * util/grub-mknetdir.in: Use modinfo.sh.
11083 * util/grub-mkrescue.in: Likewise.
11085 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11087 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11088 Fix potential usage of Elf32 instead of Elf64 when compiling on
11089 32-bit architecture. Add endianness macros while on it.
11091 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11093 Use mipsel- rather than mips- in directories involving mipsel ports to
11094 allow both endiannesses coexist.
11096 * configure.ac: proparate target_cpu=mipsel rather than resetting to
11097 mips. All conditions adjusted.
11098 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
11100 * util/grub-install.in: Adjust conditions to take renaming into account.
11101 * util/grub-mkimage.c (image_targets): Likewise. New target
11102 mips-qemu_mips-elf for bigendian mips.
11104 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11106 Avoid unnecessary copying on MIPS.
11108 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
11109 early if src == dest.
11110 * util/grub-mkimage.c (generate_image): Arange for src == dest if
11111 compression is none.
11113 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11115 Reduce memory footprint on SGI by putting modules before the kernel
11116 as opposed to after.
11118 * grub-core/Makefile.core.def (kernel): Increase linking address.
11119 (none_decompress): Likewise.
11120 (xz_decompress): Likewise.
11121 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
11123 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
11125 (grub_arch_modules_addr): New function.
11126 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
11127 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
11128 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
11130 * grub-core/kern/mips/startup.S (total_size): Rename to ...
11131 (grub_total_modules_size): ... this. Make global.
11132 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
11133 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
11135 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
11136 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
11137 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
11138 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
11139 * util/grub-mkimage.c (image_target_desc): New flag
11140 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
11141 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
11142 (generate_image): Handle images with modules before kernel.
11144 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11146 Prevent potential loss of memory map by overwrite on qemu-mips.
11148 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11149 Save ram size in $s4.
11150 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
11151 All users changed to grub_arch_memsize.
11152 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
11154 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
11155 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
11156 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
11159 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11161 * .bzrignore: Remove grub-dumpbios.
11163 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11165 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
11166 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
11167 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
11168 existing options which append).
11169 * docs/grub.texi (Simple configuration): Document new options.
11170 Reported by: Ian Jackson. Fixes Debian bug #617538.
11172 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11174 * util/grub-fstest.c (cmd_cat): New function.
11175 (fstest): Handle CMD_CAT.
11176 (options): Add cat.
11177 (argp_parser): Handle cat.
11179 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
11181 * Makefile.util.def (grub-bin2h): Don't install.
11182 * docs/man/grub-bin2h.h2m: Remove.
11184 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11186 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
11189 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11191 Reenable qemu-mips port.
11193 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
11194 Fix small arc bug while on it.
11195 * gentpl.py: Handle qemu_mips.
11196 * grub-core/Makefile.am: Likewise.
11197 * grub-core/Makefile.core.def: Likewise.
11198 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
11199 inappropriate includes.
11200 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
11201 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
11202 * grub-core/kern/main.c (grub_modules_get_end)
11203 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
11204 * grub-core/kern/mips/qemu-mips: Moved to ..
11205 * grub-core/kern/mips/qemu_mips: ... this.
11206 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
11207 (grub_machine_init): Call terminfo_init and serial_init.
11208 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
11209 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11211 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
11213 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
11214 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
11215 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
11216 * include/grub/mips/qemu_mips/cmos.h: New file.
11217 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
11218 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
11220 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
11221 Use correct mips-style address.
11222 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
11223 (GRUB_TICKS_PER_SECOND): Removed.
11224 (grub_get_rtc): Likewise.
11225 (grub_cpu_idle): Likewise.
11226 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
11228 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
11229 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
11230 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
11231 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
11232 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
11233 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
11234 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
11235 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
11237 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11241 * Makefile.util.def (libgrubmods.a): Add dvh.c.
11242 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
11244 * configure.ac: New target mips-arc.
11245 * gentpl.py: Likewise.
11246 * grub-core/Makefile.am: Likewise.
11247 * grub-core/Makefile.core.def: Likewise.
11248 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
11249 (none_decompress): Likewise.
11250 (lsdev): New module.
11251 (datetime): Use lib/arc/datetime.c on ARC.
11252 (part_dvh): New module.
11253 * grub-core/commands/arc/lsdev.c: New file.
11254 * grub-core/disk/arc/arcdisk.c: Likewise.
11255 * grub-core/kern/mips/arc/init.c: Likewise.
11256 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
11258 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
11260 (grub_arch_dl_relocate_symbols): Likewise.
11261 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
11262 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
11263 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
11265 * grub-core/lib/arc/datetime.c: New file.
11266 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
11267 pci.h on non-loongson.
11268 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
11269 (grub_linux_boot): Set unused registers to 0.
11270 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
11271 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
11272 * grub-core/mmap/mips/uppermem.c: ...here.
11273 * grub-core/partmap/dvh.c: New file.
11274 * grub-core/term/arc/console.c: Likewise.
11275 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
11276 (grub_terminfo_set_current): Add terminal "arc".
11277 (grub_terminfo_readkey): Support ARC sequences.
11278 * include/grub/arc/arc.h: New file.
11279 * include/grub/arc/console.h: Likewise.
11280 * include/grub/disk.h (grub_disk_dev_id): Add
11281 GRUB_DISK_DEVICE_ARCDISK_ID.
11282 * include/grub/mips/arc/kernel.h: New file.
11283 * include/grub/mips/arc/memory.h: Likewise.
11284 * include/grub/mips/arc/time.h: Likewise.
11285 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
11286 * include/grub/mips/kernel.h (grub_halt): ... here.
11287 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
11289 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
11290 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
11291 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
11292 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
11294 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
11296 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
11297 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
11298 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
11299 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
11300 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
11301 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
11302 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
11303 (grub_phys_addr_t): Moved from here ...
11304 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
11305 (grub_vtop): Moved from here ...
11306 * include/grub/mips/memory.h (grub_vtop): ... here.
11307 (grub_map_memory): Moved from here ...
11308 * include/grub/mips/memory.h (grub_map_memory): ... here.
11309 (grub_unmap_memory): Moved from here ...
11310 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
11311 (grub_machine_mmap_iterate): Moved from here ...
11312 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
11313 (grub_mmap_get_lower): Moved from here ...
11314 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
11315 (grub_mmap_get_upper): Moved from here ...
11316 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
11317 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11319 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11320 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
11322 * include/grub/mips/time.h (grub_get_rtc): ... here.
11323 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
11325 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
11326 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
11328 * include/grub/mips/time.h (grub_cpu_idle): ... here.
11329 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
11331 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
11332 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
11333 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
11334 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
11335 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
11336 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
11337 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
11338 (GRUB_MACHINE_LINK_ADDR): Likewise.
11339 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
11341 * util/grub-install.in: Run dvhtool on ARC.
11342 * util/grub-mkimage.c (image_targets): Add mips-arc.
11343 (generate_image): Handle ECOFF output for mips-arc.
11345 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11347 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
11350 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11352 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
11353 after enabling port.
11355 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11357 Skip incorrect USB devices.
11359 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
11361 * include/grub/usb.h (grub_usb_err_t): New enum value
11362 GRUB_USB_ERR_BADDEVICE.
11364 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11366 Fuloong video init support.
11368 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
11370 (grub_vga_read_arx): New function.
11371 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
11373 (framebuffer): New members io, mmioptr and mmiobase.
11374 (read_sis_cmd): New function.
11375 (write_sis_cmd): Likewise.
11376 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
11377 rather than 640x400.
11378 * grub-core/video/sis315_init.c: New file.
11380 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11382 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
11384 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
11385 to grub_dl_register_symbol.
11387 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11389 Fix compilation errors.
11391 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
11392 potentially unused.
11393 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
11394 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
11395 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
11396 to loongson machines.
11398 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11400 Several FS mtime support.
11402 * grub-core/fs/affs.c (grub_affs_time): New struct.
11403 (grub_affs_file): New field mtime.
11404 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
11405 type. Removed 'size'. New field 'di'. All users updated.
11406 (grub_affs_mount): Simplify checsum checking.
11407 (grub_affs_iterate_dir): New helper grub_affs_create_node.
11408 (grub_affs_dir): Handle mtime.
11409 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
11410 (grub_cpio_dir): Likewise.
11411 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
11412 (grub_hfs_filerec): New field mtime.
11413 (grub_hfs_dir): Handle mtime.
11414 (grub_hfs_mtime): New function.
11415 (grub_hfs_fs): Register grub_hfs_mtime.
11416 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
11417 (grub_iso9660_dir): New field mtime.
11418 (grub_fshelp_node): New field dirent.
11419 (iso9660_to_unixtime): New function.
11420 (iso9660_to_unixtime2): Likewise.
11421 (grub_iso9660_read_symlink): Use node->dirent.
11422 (grub_iso9660_iterate_dir): Likewise.
11423 (grub_iso9660_dir): Set mtime.
11424 (grub_iso9660_mtime): New function.
11425 (grub_iso9660_fs): Register grub_iso9660_mtime.
11426 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
11427 (grub_jfs_inode): New fields atime, ctime and mtime.
11428 (grub_jfs_dir): Set mtime.
11429 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
11430 * grub-core/fs/ntfs.c (list_file): Set mtime.
11431 (grub_ntfs_dir): Likewise.
11432 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
11433 (grub_reiserfs_iterate_dir): Set mtime.
11434 (grub_reiserfs_dir): Likewise.
11435 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
11436 (grub_fshelp_node): Likewise.
11437 (grub_sfs_iterate_dir): Set mtime.
11438 (grub_sfs_dir): Likewise.
11439 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
11440 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
11441 (grub_xfs_inode): New fields atime, mtime, ctime.
11442 (grub_xfs_dir): Set mtime.
11443 * include/grub/datetime.h (grub_datetime2unixtime): New function.
11444 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
11445 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
11447 Support UDF symlinks.
11449 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
11450 (grub_ufs_read_symlink): New function. All users updated.
11452 Check amiga partmap checksum.
11454 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
11455 (grub_amiga_partition): Likewise.
11456 (amiga_partition_map_checksum): New function.
11457 (amiga_partition_map_iterate): Check checksum.
11459 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11463 * Makefile.util.def (libgrubmods.a): Add romfs.
11464 * grub-core/Makefile.core.def (romfs): New module.
11465 * grub-core/fs/romfs.c: New file.
11467 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11469 Squashfs v4 support.
11471 * Makefile.util.def (libgrubmods.a): Add squash4.
11472 * grub-core/Makefile.core.def (squash4): New module.
11473 * grub-core/fs/squash4.c: New file.
11474 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
11475 disk_input_start, disk_input.
11476 (get_byte): Handle disk_input.
11477 (grub_zlib_disk_read): New function.
11478 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
11480 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11481 2011-05-15 Feiran Zheng <famcool@gmail.com>
11483 * Makefile.util.def (libgrubmods.a): Add minix3.
11484 * grub-core/Makefile.core.def (minix3): New module.
11485 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
11486 (GRUB_MINIX_BSIZE): Removed.
11487 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
11488 (grub_minix_ino_t): New type.
11489 (grub_minix_le_to_cpu_ino): New macro.
11490 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
11491 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
11492 (grub_minix_data): New field block_size.
11493 (grub_minix_read_file): Handle 64-bit correctly.
11494 * grub-core/fs/minix3.c: New file.
11496 2011-05-15 Tristan Gingold <gingold@free.fr>
11497 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
11498 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11502 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
11503 * configure.ac: Add ia64-efi target.
11504 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
11505 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
11506 * gentpl.py: Add ia64_efi platform.
11507 Rename x86_efi to efi and Add ia64-efi. All users updated.
11508 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
11509 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
11510 Remove kern/generic/rtc_get_time_ms.c on EFI.
11511 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
11512 kern/ia64/dl_helper.c on ia64-efi.
11513 Add kern/emu/cache.c on emu.
11514 (linux): Use on loader/ia64/efi/linux.c on ia64.
11515 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
11516 whether symbol is a function.
11517 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
11518 (grub_symbol): New field 'isfunc'.
11519 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
11520 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
11521 (grub_dl_load_segments): Place all sections into the same region.
11522 [__ia64__]: Create trampolines and got.
11523 [GRUB_MACHINE_EMU]: Call mprotect.
11524 (grub_dl_resolve_symbols): Resolve symbol type as well.
11525 [__ia64__]: Create function descriptors.
11526 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
11527 (grub_rtc_get_time_ms): ... this. Expressions simplified.
11528 (grub_get_rtc): New function.
11529 * grub-core/kern/emu/cache.c [__ia64__]: New file.
11530 * grub-core/kern/emu/cache.S: Renamed to ...
11531 * grub-core/kern/emu/cache_s.S: ... this.
11532 [__ia64__]: Add a nop.
11533 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
11534 [__ia64__]: New function.
11535 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
11536 * grub-core/kern/ia64/dl.c: New file.
11537 * grub-core/kern/ia64/dl_helper.c: Likewise.
11538 * grub-core/kern/ia64/efi/init.c: New file.
11539 * grub-core/kern/ia64/efi/startup.S: Likewise.
11540 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
11541 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
11542 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
11543 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
11544 * grub-core/loader/ia64/efi/linux.c: New file.
11545 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
11546 (GRUB_MOD_DEP): Likewise.
11547 (grub_dl) [__ia64__]: New fields got and tramp.
11548 (grub_dl): New field 'base'.
11549 (grub_dl_register_symbol): New argument isfunc. All users updated.
11550 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
11551 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
11552 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
11553 (grub_ia64_dl_get_tramp_got_size): New proto.
11554 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
11555 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
11556 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
11557 * include/grub/efi/api.h: Skip call wrappers on ia64.
11558 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
11559 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
11560 * include/grub/elf.h (ELF_ST_INFO): New definition.
11561 * include/grub/ia64/efi/kernel.h: New file.
11562 * include/grub/ia64/efi/memory.h: Likewise.
11563 * include/grub/ia64/efi/time.h: Likewise.
11564 * include/grub/ia64/kernel.h: Likewise.
11565 * include/grub/ia64/setjmp.h: Likewise (from glibc).
11566 * include/grub/ia64/time.h: New file.
11567 * include/grub/ia64/types.h: Likewise.
11568 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
11569 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
11571 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
11572 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
11573 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
11574 * util/grub-mkimage.c (image_target_desc): New field pe_target.
11576 (EFI64_HEADER_SIZE): New definition. All users updated.
11577 (image_targets): Add ia64-efi.
11578 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
11579 jumpers_addr. All users updated.
11580 Create function descriptors.
11581 (count_funcs): New function.
11582 (unaligned_uint32): New struct.
11583 (MASK20): New definition.
11584 (MASK19): Likewise.
11585 (MASKF21): Likewise.
11586 (add_value_to_slot_20b): New function.
11587 (add_value_to_slot_21_real): Likewise.
11588 (add_value_to_slot_21): Likewise.
11589 (ia64_kernel_trampoline): New struct.
11590 (nopm): New variable.
11592 (make_trampoline): New function.
11593 (relocate_addresses): Handle ia64.
11594 (make_reloc_section): Likewise.
11595 (load_image): Likewise.
11597 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11599 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
11600 warning. Move variables before code while on it.
11602 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11606 * configure.ac: Rename yeeloong platform to loongson. All users updated.
11607 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
11608 * grub-core/boot/mips/loongson/fuloong.S: New file.
11609 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
11610 Explicitly init CS5536.
11611 [FULOONG]: Don't use serial until CS5536 is available.
11612 Set GPIO based on dumps.
11613 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
11614 [FULOONG]: Handle GPIO and memory controller differences.
11615 Parse machine type in $a2.
11616 * grub-core/boot/mips/startup_raw.S: Determine and save the
11618 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
11619 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
11620 init on architecture type.
11621 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
11622 SIS315E. Don't init at_keyboard on fuloong.
11623 (grub_halt): Support Fuloong.
11624 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
11625 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
11626 (loongson_machtypes): New array.
11627 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
11629 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
11630 config. All users updated. Handle CS5536 serial.
11631 * grub-core/term/serial.c (grub_serial_register): Conditionalise
11632 default port on machine type. Register serial as inactive.
11633 * grub-core/video/sis315pro.c: New file.
11634 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
11636 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
11637 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
11638 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
11639 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
11640 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
11641 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
11643 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
11644 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
11646 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
11647 (grub_arch_machine): New extern var.
11648 * include/grub/mips/loongson/serial.h
11649 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
11650 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
11651 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
11652 (GRUB_MACHINE_SERIAL_PORT0): ... this.
11653 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
11654 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
11655 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
11656 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
11657 * include/grub/term.h (grub_term_register_input_inactive): New inline
11659 (grub_term_register_output_inactive): Likewise.
11660 * include/grub/video.h (grub_video_driver_id): New value
11661 GRUB_VIDEO_DRIVER_SIS315PRO.
11662 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
11663 New field "names". All users updated.
11664 New field value IMAGE_FULOONG_FLASH.
11665 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
11667 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
11669 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
11670 and add some clarification.
11672 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11674 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
11675 platforms if kernel is compressed.
11677 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11679 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
11680 unused modules since currently referrence counter isn't reliable and
11681 there isn't much memory to recover there anyway.
11683 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11685 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
11686 rather than resetting it to allow modules to reference themselves
11689 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11691 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
11692 counter on dependencies since grub_dl_unref already handles this.
11694 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11696 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
11697 on error if not already done.
11699 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11701 Fix few potential memory misusage.
11703 * grub-core/font/font.c (load_font_index): Don't free char_index to
11705 (grub_font_load): Zero-fill font at alloc for safety.
11706 Close file on error.
11707 (free_font): Free bmp_idx.
11709 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11711 * docs/grub.texi (Installation): Fix several outdated claims.
11713 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11715 Handle module_license on windows.
11717 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
11719 (insert_string): Make argument const char * instead of char *.
11720 (write_section_data): Handle long section names.
11721 Handle module_license.
11723 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11725 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
11726 handle class-free menuentries.
11727 (grub_normal_add_menu_entry): Add a check to be sure.
11729 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11731 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
11734 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11736 * configure.ac: Bump version to 1.99.
11738 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11740 Give ATA device a bit more time on first try in order to allow disks
11743 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
11744 if dev->present is 1. Reset dev->present on failure.
11745 (grub_ata_device_initialize): Set dev->present to 1.
11746 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
11747 (grub_ata_device): New member 'present'.
11749 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11751 * util/grub-mkimage.c (generate_image): Update hash.
11753 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11755 Flush caches on DMA memory.
11757 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
11758 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
11759 (grub_dma_free): Likewise.
11760 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
11762 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11764 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
11765 to avoid asm treating ld and sd as macros.
11767 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11769 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
11772 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11774 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
11775 grub_decompress_core since later would fail if grub_decompress_core
11778 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11780 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
11781 R_MIPS_JALR since it's used by newer compiler.
11783 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
11785 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
11787 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11789 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
11790 file_path to 0 for surety.
11791 (grub_chainloader_boot): Set exit_data to NULL.
11792 Unset the loader once done.
11793 (grub_cmd_chainloader): Fix confusing error message if file is empty.
11795 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11797 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
11798 unknown key into a dprintf.
11800 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11802 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
11803 on first non-existant partition.
11805 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11807 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
11809 Reported by: Mark Korenberg.
11811 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11813 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
11816 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11818 * util/grub-mkimage.c (main): Explicitely flush and sync the output
11819 before closing to ensure that it will be readable by grub-setup.
11821 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11823 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
11824 (devpath_1): Use MAKE_PIWG_PATH.
11825 (devpath_2): Likewise.
11826 (devpath_3): Likewise.
11827 (devpath_4): Likewise.
11828 (devpath_5): Likewise.
11829 (devpath_6): Likewise.
11831 The appleldr.mod was checked that to be binary identical to previous
11834 2011-05-05 Zach <mikezackles>
11836 Support 2010 Macbooks.
11838 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
11839 (devs): Add devpath_6.
11841 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11843 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
11844 /dev/random. /dev/urandom is good enough for our purposes (salting).
11846 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11848 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
11850 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11852 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
11855 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11857 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
11858 and not 0 on failure.
11860 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
11862 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
11863 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
11864 disk; otherwise grub_fs_probe will not fall back to the next
11866 (grub_pxefs_open): Likewise, for consistency.
11867 Reported and tested by: Ezekiel Grave.
11869 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
11871 * tests/partmap_test.in: Don't hardcode path to parted.
11872 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
11874 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
11876 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
11877 of `ls' to find out which devices are available.
11879 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11881 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
11882 than source address for efi mmap buffer.
11884 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11886 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
11887 wrong action on non-detecting the magic.
11889 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11891 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
11892 already supplied by another part of the module (fixes compilation on
11895 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11897 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
11898 match the one used by mdadm.
11900 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11902 * po/README: Add instructions for creating po/LINGUAS.
11904 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11906 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
11909 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
11910 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
11911 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
11912 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
11913 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
11914 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
11915 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
11916 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
11917 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
11918 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
11919 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
11920 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
11921 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
11922 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
11923 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
11924 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
11925 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
11926 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
11927 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
11928 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
11929 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
11930 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
11932 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11934 * grub-core/kern/emu/getroot.c
11935 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
11936 test that was incorrectly reintroduced in r3214.
11937 Reported by: Ian Dall. Fixes Savannah bug #33133.
11939 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11941 Fix stack pointer handling in 16-bit relocator.
11943 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
11944 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
11945 Fixes Ubuntu bug #683904.
11947 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11949 * configure.ac: Bump version to 1.99~rc2.
11951 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11953 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
11954 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
11955 * grub-core/lib/x86_64/setjmp.S: Likewise.
11956 * grub-core/lib/mips/setjmp.S: Likewise.
11957 * grub-core/lib/powerpc/setjmp.S: Likewise.
11958 * grub-core/lib/sparc64/setjmp.S: Likewise.
11960 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11962 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
11963 * grub-core/lib/efi/datetime.c: Likewise.
11965 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11967 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
11969 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
11970 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
11971 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
11973 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11975 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
11977 (grub_gfxterm_term_init): Likewise.
11979 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11981 Take into account the decorations the computing menu entry width.
11983 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
11984 (grub_gfxmenu_create_box): Register get_border_width.
11985 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
11987 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
11990 2011-04-18 Endres Puschner <code@e7p.de>
11992 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
11993 Don't skip first class.
11995 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11997 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
11999 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12001 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12003 Complete 64-bit division support.
12005 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12006 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12007 * include/grub/misc.h (grub_divmod64): Rename to ...
12008 (grub_divmod64_full): ... this.
12009 (grub_divmod64): New inline function.
12011 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12013 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12015 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12017 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12018 performing the necessary test.
12020 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12022 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12023 (kfreebsd.elf): Likewise.
12024 (pc-chainloader.elf): Likewise.
12025 (ntldr.elf): Likewise.
12027 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12029 Identify RAID by its UUID rather than (guessed) name.
12031 * grub-core/disk/raid.c (ascii2hex): New function.
12032 (grub_raid_open): Accept mduuid/%s specification.
12033 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12034 (get_mdadm_uuid): ... this.
12035 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12037 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12039 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12042 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12044 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12046 * util/grub.d/20_linux_xen.in: Likewise.
12048 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12050 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12051 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
12053 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12054 Build a list of relevant visible mounts using the mnt_id and
12055 parent_mnt_id fields, and then scan that list at the end.
12057 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12059 * docs/grub.texi (normal): New section.
12060 (normal_exit): New section.
12061 (Embedded configuration): Add reference to normal.
12062 (GRUB only offers a rescue shell): Likewise.
12063 * docs/grub-dev.texi (Error Handling): Fix typo.
12065 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12067 * NEWS: Drop obsolete entry about probe-only btrfs support.
12069 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12071 * util/import_gcry.py: Fix typo.
12073 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12075 * NEWS: Add btrfs support.
12077 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12078 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12080 BtrFS support. Written by me (Vladimir) with important bugfixes and
12081 even more important testing by Colin.
12083 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
12084 * grub-core/Makefile.core.def (btrfs): Add crc.c.
12085 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
12086 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
12087 mem_input_off and mem_input. All users updated to accept in-RAM input.
12088 (gzio_seek): New function.
12089 (test_zlib_header): Likewise.
12090 (grub_gzio_read): Likewise.
12091 (grub_zlib_decompress): Likewise.
12092 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
12093 Accept partial and non-virtual mounts.
12094 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
12095 avoid receiving /dev/dm-X as device.
12096 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
12097 Handle bind and partial mounts.
12098 * grub-core/lib/crc.c: New file.
12099 * include/grub/deflate.h: Likewise.
12100 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
12102 * include/grub/lib/crc.h: New file.
12104 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12106 Implement automatic module license checking according to new GNU
12109 * grub-core/kern/dl.c (grub_dl_check_license): New function.
12110 (grub_dl_load_core): Use grub_dl_check_license.
12111 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
12112 (GRUB_MOD_LICENSE): Likewise.
12113 (GRUB_MOD_DUAL_LICENSE): Likewise.
12114 All modules updated.
12116 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12118 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
12119 reserved_first_sector to 1. btrfs reserves plenty of space for boot
12121 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
12123 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12125 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
12127 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12129 * util/grub-fstest.c (read_file): Report GRUB error if file opening
12132 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12134 * grub-core/kern/file.c (grub_file_open): Don't take into account the
12135 parenthesis in the middle of the filename.
12137 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12139 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
12140 rather than trying to put initrd way too high.
12141 Reported by: Ryan Lortie <desrt@desrt.ca>
12143 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12145 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
12146 improperly removed string.
12148 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12150 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
12152 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
12153 (open_device) Likewise.
12154 (grub_util_biosdisk_close): Likewise.
12155 Reported by: Mark Korenberg.
12157 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
12159 * util/grub-mkconfig_lib.in: Add missing quotes.
12161 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
12163 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
12166 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12168 Dynamically count the number of lines for the lower banner.
12170 * grub-core/normal/menu_entry.c (per_term_screen): New member
12172 (print_down): Use num_entries.
12173 (update_screen): Likewise.
12174 (grub_menu_entry_run): Set num_entries.
12175 * grub-core/normal/menu_text.c (menu_viewer_data): New member
12177 (grub_print_message_indented): Move real part to ...
12178 (grub_print_message_indented_real): ... here. Additional argument
12180 (draw_border): Additional argument num_entries.
12181 (print_message): Additional argument dry_run.
12182 (print_entries): Receive menu viewer data.
12183 (grub_menu_init_page): New argment num_entries.
12184 (menu_text_set_chosen_entry): Use num_entries.
12185 (grub_menu_try_text): Likewise.
12186 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
12188 (grub_ucs4_count_lines): New function.
12189 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
12190 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
12191 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
12192 (grub_term_border_height): Likewise.
12193 (grub_term_num_entries): Likewise.
12195 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12197 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
12198 Remove now unused string.
12200 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12202 * docs/grub-dev.texi (Finding your way around): Update for 1.99
12204 (Getting started): GRUB is developed in Bazaar now, not Subversion.
12206 (Comment): Fix typo.
12207 (Getting started): General copy-editing.
12208 (Typical Development Experience): Likewise.
12209 (Error Handling): Likewise.
12210 (Video API): Likewise.
12212 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
12214 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
12217 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12219 * util/grub-mkimage.c (main): Handle special naming of yeeloong
12222 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12224 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
12225 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
12228 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12230 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
12231 grub_strcpy since the lines aren't necessarily 0-terminated.
12233 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12235 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
12238 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12240 * grub-core/commands/probe.c (options): Argument to set isn't optional.
12241 (GRUB_MOD_INIT): DEVICE isn't optional.
12243 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12245 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
12246 word on new line if it's too long anyway. Fixes a hang.
12248 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12250 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
12252 * util/grub-setup.c (main): Reuse md device name if available.
12253 * util/raid.c (grub_util_raid_getmembers): Receive device name and
12254 not GRUB name as argument.
12255 Based on patch by: Florian Wagner <fwagner>.
12257 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12259 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
12260 Place mbi on low memory for better compatibility.
12262 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12264 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
12266 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12267 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
12269 * autogen.sh: Ensure that collate and ctype locale is C.
12270 * conf/Makefile.common: Likewise.
12272 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12274 * grub-core/normal/menu.c: Add missing include.
12276 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12278 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
12280 2011-04-08 Martin Zuther <mzuther@mzuther.de>
12282 * util/grub-mkconfig.in: Ignore emacsen backup.
12284 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12286 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
12288 (grub_util_biosdisk_close): Likewise.
12290 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
12292 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
12293 const attribute and use grub_isdigit.
12295 2011-04-06 Andrey <dev_null@ukr.net>
12297 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
12300 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12302 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
12303 useful grub_dprintf's.
12305 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12307 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
12309 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12311 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
12313 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12315 Output errors if theme loading failed.
12317 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
12318 grub_gfxterm_fullscreen on error paths to ...
12319 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
12320 theme loading error.
12322 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12324 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
12325 space for older compilers.
12326 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
12328 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12330 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
12331 and report them as not RAID members since they are useless for GRUB.
12332 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
12334 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12336 Increase LVM implementation robustness in order not to crash on
12337 configurations like pvmove. Previously code assumed that in some places
12338 only lvs or only pvs are used whereas it seems that they are used
12341 * grub-core/disk/lvm.c (read_node): New function.
12342 (read_lv): Use read_node.
12343 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
12344 Match volumes only at the end when all lvs are found. Take both
12345 pvs (first) and lvs (second) into account.
12346 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
12347 mirror_* into node_*. All users updated.
12348 (grub_lvm_stripe): Merge this ...
12349 (grub_lvm_mirror): ... and this ...
12350 (grub_lvm_node): ... into this. All users updated.
12352 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12354 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
12355 of function to allow further scanning for LVMs.
12357 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12359 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
12360 on failed seek as it breaks open fd reusage.
12362 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12364 * util/grub-install.in: Add a recommendation to use --recheck before
12367 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12369 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
12372 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12374 GRUB developper manual based on existing Internals section and
12375 contributions by the various authors with active copyright assignment.
12377 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
12378 * docs/font_char_metrics.png: New file.
12379 * docs/font_char_metrics.txt: Likewise.
12380 * docs/grub-dev.texi: Likewise.
12381 * docs/grub.texi (Internals): Move from here ...
12382 * docs/grub-dev.texi: ... here.
12384 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12386 Store the loopback device as data on loopback grub_disk structures,
12387 rather than the file it points to. This fixes use of freed memory
12388 if an existing loopback device is replaced.
12390 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
12391 disk->data, not dev->file.
12392 (grub_loopback_read): Adjust file assignment to match.
12393 Fixes Ubuntu bug #742967.
12395 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12397 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
12398 when replacing an existing device.
12400 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
12402 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
12403 memory corruptions.
12405 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
12407 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
12408 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
12409 (grub_jfs_read_inode): Likewise.
12410 (grub_jfs_opendir): Likewise. Remove now useless casts.
12411 (grub_jfs_getent): Likewise.
12412 Make ino a grub_uint32_t rather than int.
12413 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
12414 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
12415 division and module with bit operations.
12416 (grub_jfs_find_file): Make ino a grub_uint32_t.
12417 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
12419 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12421 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
12422 warning. (This was in fact always initialised before use, but GCC
12423 wasn't smart enough to prove that.)
12424 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12426 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12428 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
12430 (efi_wrap_1): Likewise.
12431 (efi_wrap_2): Likewise.
12432 (efi_wrap_3): Likewise.
12433 (efi_wrap_4): Likewise.
12434 (efi_wrap_5): Likewise.
12435 (efi_wrap_6): Likewise.
12436 (efi_wrap_10): Likewise.
12437 Based on information by: Red Hat/Peter Jones.
12439 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12441 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
12442 set-but-not-used variable.
12444 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12446 * docs/grub.texi (Simple configuration): Be more explicit about
12447 GRUB_DEFAULT, and add an example.
12448 Reported by: Leslie Rhorer.
12450 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12452 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
12455 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12457 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
12458 * util/grub.d/20_linux_xen.in: Likewise.
12460 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12462 * util/grub.d/10_linux.in: Try alternative config filenames where
12463 we parse config file.
12464 * util/grub.d/20_linux_xen.in: Likewise.
12466 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12468 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
12469 * util/grub.d/20_linux_xen.in: Likewise.
12471 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12473 * grub-core/disk/raid.c (insert_array): Add few potentially
12474 useful grub_util_info.
12475 (grub_raid_register): Likewise.
12477 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12479 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
12480 Preserve partition number in mdadm code path.
12482 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12484 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
12485 few potentially useful grub_util_info.
12487 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12489 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
12491 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12493 * docs/grub.texi (default): Use @example rather than nested
12494 itemized lists to avoid breaking gendocs.
12496 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12498 * docs/grub.texi (Future): Update.
12500 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12502 * docs/grub.texi (Environment): New chapter.
12503 (Changes from GRUB Legacy): Link to "Environment block" section for
12504 details of limitations.
12505 (Simple configuration): Likewise. Link to documentation of gfxmode
12506 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
12508 (Shell-like scripting): Note that normal variables are stored in the
12510 (gettext): Link to documentation of lang and locale_dir.
12511 (list_env): New section.
12512 (load_env): New section.
12513 (save_env): New section.
12515 (Reporting bugs): Fix typo.
12517 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12519 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
12522 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12524 * grub-core/term/at_keyboard.c (set_scancodes)
12525 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
12527 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12529 * docs/grub.texi (Menu-specific commands): Remove some semantics
12530 that were true in GRUB Legacy but not in GRUB 2.
12531 (submenu): New section.
12532 (false): New section.
12533 (read): New section.
12534 (true): New section.
12536 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12538 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
12540 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12542 * docs/grub.texi (Simple configuration): Explain some of the
12543 current limitations of grub-mkconfig.
12544 Reported by: Leslie Rhorer.
12546 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12548 Old macs search for boot.efi rather than for bootia32.efi.
12550 * util/grub-install.in: Copy bootia32.efi to boot.efi.
12551 * util/grub-mkrescue.in: Likewise.
12552 Suggested by: Peter Jones.
12554 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12556 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
12558 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12560 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
12561 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
12562 (grub_lvm_mirror): New struct.
12563 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
12564 (grub_lvm_iterate): Iterate only visible volumes.
12565 (grub_lvm_read): Factor out to ..
12566 (read_lv): ... this. Support mirrors.
12567 (grub_lvm_read): New wrapper function.
12568 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
12569 stripped or mirrored.
12571 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12573 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
12575 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12577 * docs/grub.texi (loopback): New section.
12579 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12581 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
12584 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12586 * docs/grub.texi (BIOS installation): New section, partly based on
12587 previous text in other sections.
12588 (Installing GRUB using grub-install): Replace BIOS discussion with a
12590 (Images): Likewise.
12592 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12594 * grub-core/kern/emu/hostdisk.c (find_partition_start)
12595 [HAVE_DIOCGDINFO]: Add safety checks.
12597 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12599 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
12600 per default compiled in kernel and prior to 8.0 isn't shipped at all.
12602 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12604 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
12605 real_sb->size is zero (e.g. RAID-0), get the disk size from
12606 real_sb->data_size instead.
12607 Fixes Ubuntu bug #743136.
12609 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12611 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
12612 printf clauses for printing size and start.
12614 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12616 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
12617 Reported and tested by: Timothy Nikkel.
12619 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12621 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
12622 (dirty_region_add_real): ... this.
12623 (dirty_region_add): Don't discard margin refresh when performing
12626 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12628 * grub-core/lib/relocator.c (allocate_regstart)
12629 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
12630 terminals are capabple of malloc-free operation.
12631 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
12632 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
12634 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
12636 * util/grub-setup.c: Copy the partition table zone if floppy support
12637 is disabled, even if no partition table is found.
12639 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
12640 during POST if an invalid partition table is contained in the PBR
12641 of the active partition when GRUB is installed to a partition.
12643 2011-03-28 Colin Watson <cjwatson@debian.org>
12645 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
12648 2011-03-28 Colin Watson <cjwatson@debian.org>
12650 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
12651 to be specific about what kind of RAID device we're scanning for.
12653 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
12655 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
12656 return freed string.
12658 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12660 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
12662 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12664 Use libgeom on FreeBSD to detect partitions.
12666 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
12667 (grub-mkrelpath): Likewise.
12668 (grub-script-check): Likewise.
12669 (grub-editenv): Likewise.
12670 (grub-mkpasswd-pbkdf2): Likewise.
12671 (grub-fstest): Likewise.
12672 (grub-mkfont): Likewise.
12673 (grub-mkdevicemap): Likewise.
12674 (grub-probe): Likewise.
12675 (grub-setup): Likewise.
12676 (grub-ofpathname): Likewise.
12677 (grub-mklayout): Likewise.
12678 (example_unit_test): Likewise.
12679 (grub-menulst2cfg): Likewise.
12680 * grub-core/Makefile.core.def (grub-emu): Likewise.
12681 (grub-emu-lite): Likewise.
12682 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
12683 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
12684 define HAVE_DIOCGDINFO.
12685 (follow_geom_up) [FreeBSD]: New function.
12686 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
12687 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
12688 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
12689 unconditionally of HAVE_DIOCGDINFO.
12691 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12693 Fix FreeBSD compilation problem.
12695 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
12696 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
12698 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
12700 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
12701 Switch back to page zero before loading a kernel, since some kernel
12702 drivers expect that.
12703 Thanks to: Felix Kuehling.
12705 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12707 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
12708 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
12709 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
12711 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12713 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
12714 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
12716 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12718 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
12719 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
12720 malloc is disabled.
12722 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12724 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
12725 for modules headers when counting the needed allocation size.
12727 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12729 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
12730 if no ASCII character is found to prevent crash.
12732 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
12734 * grub-core/video/bitmap.c (match_extension): Ignore case.
12736 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12738 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
12740 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12742 * grub-core/script/parser.y: Declare "time" as valid argument.
12744 2011-03-23 Peter Jones <pjones@redhat.com>
12746 Fix incorrect assert failure reporting.
12748 * grub-core/tests/example_functional_test.c (example_test): Add
12750 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
12751 (failure_start): ...this. Check that malloc succeeded.
12752 Don't call xvasprintf. Return failure struct.
12753 (failure_append_vtext): New function.
12754 (failure_append_text): Likewise.
12755 (add_failure): Likewise.
12756 (grub_test_assert_helper): Likewise.
12757 * include/grub/test.h (grub_test_assert_helper): New declaration.
12758 (grub_test_assert): Macro rewritten.
12760 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12762 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
12764 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12766 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
12768 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12770 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
12771 into GRUB-style one.
12773 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12775 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
12776 error and not grub_errno.
12777 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
12779 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12781 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
12782 GRUB_USB_SPEED_NONE in case of failure and not the error code.
12784 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12786 * grub-core/efiemu/i386/pc/cfgtables.c
12787 (grub_machine_efiemu_init_tables): Make declaration a prototype.
12788 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
12789 (grub_xnu_unlock): Likewise.
12790 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
12792 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12794 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
12795 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
12796 * grub-core/commands/hashsum.c (aliases): Likewise.
12797 * grub-core/commands/setpci.c (pci_registers): Likewise.
12798 * grub-core/disk/usbms.c (attach_hook): Likewise.
12799 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
12800 (zio_checksum_table): Likewise.
12801 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
12802 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
12803 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
12804 * grub-core/lib/relocator.c (leftovers): Likewise.
12805 (extra_blocks): Likewise.
12806 * grub-core/loader/i386/bsd.c (relocator): Likewise.
12807 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
12808 (modules_last): Likewise.
12809 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
12810 (devices): Likewise.
12811 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
12812 (modules_last): Likewise.
12813 * grub-core/normal/auth.c (users): Likewise.
12814 * grub-core/normal/context.c (initial_menu): Likewise.
12815 (current_menu): Likewise.
12816 * grub-core/normal/crypto.c (crypto_specs): Likewise.
12817 * grub-core/term/serial.c (grub_serial_ports): Likewise.
12818 (grub_serial_terminfo_input_template): Likewise.
12819 (grub_serial_terminfo_output_template): Likewise.
12820 (grub_serial_terminfo_input): Likewise.
12821 (grub_serial_terminfo_output): Likewise.
12822 (registered): Likewise.
12823 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
12825 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12827 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
12828 grub_video_mode_type_t.
12829 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
12830 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
12831 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
12833 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12835 * util/grub-install.in: Correct the x86-64 name as x86_64.
12837 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
12839 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
12840 initial chunk read from the kernel always includes GRUB's multiboot
12841 header, which is now outside the first sector.
12843 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
12845 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
12846 cached mmap_size, so that this works correctly when called multiple
12848 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
12850 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
12852 * docs/grub.texi (Simple configuration): Tidy up formatting.
12854 2011-03-07 Szymon Janc <szymon@janc.net.pl>
12856 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
12857 Set-but-not-used variable removed.
12859 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12861 Workaround yet another IEEE1275 bug.
12863 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
12864 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
12865 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
12866 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
12868 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12869 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
12871 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12873 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
12876 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
12878 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
12879 empty, since in that case we can only generate either nothing or a
12880 syntactically invalid configuration file.
12881 Reported by: Michal Suchanek. Fixes Debian bug #612898.
12883 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
12885 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
12886 (Making a GRUB bootable CD-ROM): Likewise.
12887 (Invoking grub-mkrescue): New section.
12888 Reported by: Yann Dirson. Fixes Debian bug #612585.
12890 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
12892 * util/grub-install.in: Remove unnecessary brackets from tr
12894 * util/grub.d/10_hurd.in: Likewise.
12895 * util/grub.d/10_kfreebsd.in: Likewise.
12896 * util/grub.d/10_linux.in: Likewise.
12897 * util/grub.d/20_linux_xen.in: Likewise.
12898 Reported by: Jamie Heilman. Fixes Debian bug #612564.
12900 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
12902 * include/grub/file.h (not_easly_seekable): Rename to ...
12903 (not_easily_seekable): ... this. Update all users.
12905 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
12907 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
12910 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
12912 * util/grub-mkimage.c (generate_image): Refuse to create the images
12913 bigger than the actual flash (512K) in Loongson machines. 512K is also
12914 the biggest chip supported by them.
12916 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12918 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
12920 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
12922 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
12923 super_offset field.
12925 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12927 * util/grub-install.in: Ignore install device on platforms
12928 where it doesn't make sense. Always use UUIDs except on pc, efi and
12930 Reported by: Daniel Kahn Gillmor.
12932 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12934 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
12936 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12938 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
12939 (iterate_real): Don't rely on partition being non-NULL.
12941 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12943 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
12944 supported platforms. Put a compile time assert for this rather than
12945 generate a warning with 32-bit shift.
12947 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12949 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
12950 logical expression more readable.
12952 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12954 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
12955 even if some elements have a name.
12956 Reported by: Alexander GQ Gerasiov.
12958 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
12960 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
12961 path unreadable if `grub-probe -t abstraction' fails, for example if
12962 memberlist fails on an LVM volume group.
12963 Reported by: Darius Jahandarie.
12965 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
12967 * docs/grub.texi (Simple configuration): Document
12968 GRUB_PRELOAD_MODULES.
12970 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
12972 * .bzrignore: Remove nonexistent grub-pbkdf2.
12974 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
12976 * configure.ac: Bump version to 1.99~rc1.
12978 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12980 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
12983 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12985 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
12988 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12990 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
12992 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12994 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
12997 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12999 Fix compilation on cygwin.
13001 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13002 -R .drectve on cygwin.
13003 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13004 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13005 (COND_CYGWIN): New condition.
13006 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13007 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13008 not @TARGET_OBJ2ELF@.
13009 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13010 type to determine whether aux is to be used.
13012 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13014 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13015 realpath'ed device string.
13016 Handle floppy (somewhat).
13017 Issue error in unknown case rather than garbage.
13018 Reported by: Axel Beckert.
13020 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13022 * util/grub.d/00_header.in (load_video): Handle the case when no video
13024 Thanks to: Axel Beckert.
13026 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13028 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13029 variable. Fixes problem on big endian platforms.
13031 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13033 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13034 It doesn't work well there.
13036 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13038 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13040 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13041 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13044 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13046 Use alias->path rather than buggy "canon".
13048 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13049 (ofdisk_hash_add): New argument curcan. All users updated.
13051 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13053 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
13055 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13057 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
13058 loadmask before doing any calculations. Use correct type for offset.
13059 (grub_linux_load64): Likewise.
13061 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13063 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
13065 (console_grub_equivalences_unshift): Likewise.
13066 Reported by: Daniel Dehennin.
13068 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13070 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
13071 (set_env_limn_ro): Likewise.
13072 (GRUB_MOD_INIT): Likewise.
13073 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
13074 ARRAY_SIZE while on it.
13075 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
13076 * grub-core/normal/context.c (grub_env_export): Move from here ...
13077 * grub-core/kern/env.c (grub_env_export): ... here.
13078 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
13080 * grub-core/kern/main.c (grub_main): Export root and prefix.
13081 * include/grub/env.h (grub_env_export): Export.
13082 Reported by: Seth Goldberg.
13084 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13086 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13087 Take into account space used by ELF sections and multiboot palette.
13088 Reported by: Grégoire Sutre.
13090 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13094 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13096 Pass more appropriate video id to Linux.
13098 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
13099 grub_video_get_driver_id and variable gfxpayloadforcelfb to
13101 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
13102 shift params->lfb_size.
13103 * include/grub/i386/linux.h: Make an enume out of have_vga values.
13105 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13107 * util/grub-menulst2cfg.c: Add missing include of misc.h.
13109 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13111 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
13112 separator and pass bootpath/devid even if only one of them is available.
13113 Reported by: Seth Goldberg.
13115 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13117 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
13118 implementations bug on them.
13120 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
13122 (filter_memory_map): Likewise.
13124 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13126 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
13127 Reported by: nebuchadnezzar.
13129 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13131 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
13132 Reported by: nebuchadnezzar.
13134 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13136 Submenu default support.
13138 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
13139 auto_boot. All users updated.
13141 Handle chosen and default with submenus.
13142 (grub_menu_execute_with_fallback): Declared static.
13143 Don't notify failure if autobooted. Upper level does it.
13144 (menuentry_eq): New function.
13145 (get_entry_number): Use menuentry_eq.
13146 (show_menu): New parameter "autobooted". All users updated.
13147 (grub_show_menu): Likewise.
13148 * include/grub/normal.h (grub_show_menu): Likewise.
13149 * include/grub/menu.h (grub_menu_execute_entry): Removed.
13150 (grub_menu_execute_with_fallback): Likewise.
13152 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13154 * util/grub-mklayout.c (usage): Update help text.
13156 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13158 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
13160 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13162 * util/grub-menulst2cfg.c (main): Trim the line.
13164 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13166 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
13167 (grub_machine_init): Don't check amount of low memory as reportedly
13168 INT 12h can be broken and if low memory is too low we wouldn't have
13169 gotten into grub_machine_init anyway.
13171 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13173 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
13174 (grub_machine_mmap_iterate): Take low memory into account
13176 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13178 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
13180 Reported by: TiCPU.
13182 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13184 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
13187 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13189 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
13190 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
13192 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
13194 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
13195 openbsd and netbsd types being in part_bsd module.
13197 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13199 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
13200 (_FILE_OFFSET_BITS): Likewise.
13201 Reported by: Seth Goldberg.
13203 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13205 * configure.ac: Check for libdevmapper header.
13207 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13209 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
13211 (fzap_lookup): Likewise.
13212 (dnode_get): Likewise.
13213 (make_mdn): Likewise.
13214 (zfs_mount): Likewise.
13215 (fzap_iterate): Use temporary pointer to avoid aliasing.
13216 (grub_zfs_read): Likewise.
13217 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
13218 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
13219 pointers to avoid aliasing.
13220 (grub_cmd_xnu_kernel64): Likewise.
13221 (grub_xnu_load_driver): Likewise.
13223 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13225 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
13227 (grub_cmd_terminal_output): Likewise.
13228 Reported and tested by: Grégoire Sutre.
13230 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13232 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
13234 Reported and tested by: Grégoire Sutre.
13236 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13238 * configure.ac: Do CPU substitution even if it's specified explicitly.
13239 Reported and tested by: Alain Greppin.
13241 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13243 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
13244 Reported and tested by: Alain Greppin.
13246 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13248 Satisfy some bison versions need for inttypes.h.
13250 * grub-core/lib/posix_wrap/inttypes.h: New file.
13251 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
13252 (int16_t): Likewise.
13253 (int32_t): Likewise.
13254 (int64_t): Likewise.
13255 Reported and tested by: Alain Greppin.
13257 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
13259 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
13260 Silence spurious warning.
13261 Reported and tested by: Alain Greppin.
13263 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13265 * docs/grub.texi (Support automatic decompression): Update with xz
13266 decompression support.
13268 2011-01-07 Szymon Janc <szymon@janc.net.pl>
13270 Improve loaders' kernel command line handling.
13272 * grub-core/lib/cmdline.c: New file.
13273 * include/grub/lib/cmdline.h: Likewise.
13274 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
13275 grub_create_loader_cmdline to create kernel command line.
13276 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13277 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
13278 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
13279 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
13280 (linux): Add lib/cmdline.c on common.
13282 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13284 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
13285 inopos might be unaligned.
13287 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13289 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
13290 endian transformations.
13291 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13292 Based on report by: Doug Nazar.
13294 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
13296 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
13297 array->members[i].start_sector.
13298 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
13300 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13302 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
13303 Reported and tested by: Grégoire Sutre.
13305 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13307 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
13308 avoid causing test failures by clearing the screen.
13310 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
13312 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13313 Fix prefix check to handle the case where dir ends with a slash
13314 (most significantly, "/" itself).
13315 Reported by: Michael Vogt.
13317 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13319 Run terminfo_cls on initing terminfo output to clear the screen and
13320 move the cursor to (0,0).
13322 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
13323 Call grub_terminfo_output_init.
13324 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
13325 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
13326 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
13328 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13330 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
13333 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13335 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
13338 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13340 The E820 type 5 is BADRAM, not EXEC_CODE.
13342 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13343 (GRUB_E820_BADRAM): New define.
13344 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
13345 into reserved. Propagate BADRAM.
13346 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13347 (GRUB_E820_BADRAM): New define.
13349 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13351 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
13352 Ignore the memory post-4G.
13353 (grub_relocator_firmware_alloc_region): Additional debug statement.
13355 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13357 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
13359 Reported by: David Pravec.
13361 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13363 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
13366 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13368 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
13370 (grub_reed_solomon_recover): Likewise.
13372 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13374 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
13376 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13378 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
13381 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
13383 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
13384 descriptions of extract_legacy_entries_source and
13385 extract_legacy_entries_configfile.
13386 Reported by: Seung Soo, Ha.
13388 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
13390 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
13391 on devices that do not implement function 0.
13393 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
13395 * grub-core/fs/hfsplus.c: Make parent unsigned.
13396 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
13398 (grub_hfsplus_cmp_extkey): Likewise
13400 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13402 * util/grub-install.in: Correctly use bootloader_id and not
13403 GRUB_DISTRIBUTOR on efibootmgr line.
13405 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13407 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
13409 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
13411 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
13412 Xen and reorder menu item wording to make it clearer that this entry
13413 will launch Xen. Print separate messages when loading Xen and
13416 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13418 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
13419 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
13420 loop in case of incorrect amiga partmap.
13422 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13424 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
13425 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
13428 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13430 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
13432 Reported by: crocket
13434 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13436 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
13438 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
13440 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13442 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
13444 (grub_cmd_xnu_kextdir): Likewise.
13445 (grub_cmd_xnu_splash): Likewise.
13447 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13449 Avoid using Reed-Solomon with 0 redundancy.
13451 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
13452 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
13454 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
13455 (grub_reed_solomon_recover): Likewise.
13457 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13459 Don't use disk subsystem in freebsd_boot.
13461 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
13462 (freebsd_biosdev): Likewise.
13463 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
13464 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
13466 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13468 Handling of files of unknown size is currently limited. They can't be
13469 used e.g. for initrd or modules. Moreover gzip handling of not
13470 easily seekable files is buggy. Disable unknown file size for now. May
13471 be inefficient but works.
13473 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
13474 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
13476 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
13478 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
13481 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
13483 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
13485 2010-12-25 Shea Levy <shlevy>
13487 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
13489 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13491 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
13492 Windows Server 2008.
13493 Reported by: Devin Giddings.
13495 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13497 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
13498 writing an error message because of async power management.
13499 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
13500 (grub_reboot): Likewise.
13502 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
13504 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
13505 keep unit tests from failing when they shouldn't.
13507 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13509 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
13510 previous patch increased the size of the RS code by 20 bytes (at
13511 least with gcc-4.4), so increase this by 20 bytes to match.
13512 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13514 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13516 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
13517 scratch area. Make sure to initialise chosen in standalone mode as
13518 well as non-standalone.
13519 Reported by: Robert Hooker and Andy Whitcroft.
13520 Tested by: Andy Whitcroft.
13522 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13524 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
13525 constructing a new unescaped string and passing it to grub_xputs in
13526 one go, rather than passing characters to grub_printf one at a time.
13528 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13530 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
13531 initialising utf16.
13533 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13535 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
13536 comment. Add an extra layer of quotation, requiring the output of
13537 this function to be used in a printf format string.
13538 (gettext_printf): New function.
13539 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
13540 Extract translatable strings from here-documents and use a temporary
13541 variable instead, so that xgettext can find them.
13542 * util/grub.d/10_kfreebsd.in: Likewise.
13543 * util/grub.d/10_linux.in: Likewise.
13544 * util/grub.d/20_linux_xen.in: Likewise.
13546 * po/grub.d.sed: New file.
13547 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
13548 arguments. Set c-format flags on all strings extracted from
13549 util/grub.d/ (xgettext refuses to include these itself for strings
13550 it extracted from a shell file, but these really are c-format).
13552 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
13554 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
13555 Avoid next pointing to nowhere.
13557 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13559 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
13560 rather than assuming than rootblock is exactly in the middle.
13561 (grub_affs_label): Likewise.
13563 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13565 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
13566 reserved_first_sector to 0.
13567 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
13568 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
13569 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
13571 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13573 Fix handling of UTF-16 UDF labels.
13575 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
13576 (read_string): .. here.
13577 (grub_udf_label): Use read_string.
13579 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
13581 * grub-core/normal/menu_entry.c (run): Execute commands from menu
13582 editor under argument scope.
13583 Reported by: Jordan Uggla
13585 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
13587 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
13589 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
13591 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
13592 line, and other keys scroll an entire page (previous handling was
13593 for \r and \n to scroll a page and other keys to scroll two lines).
13595 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
13597 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13598 Set ptrdest to correct get_physical_target_address rather than
13599 incorrect get_virtual_current_address.
13601 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
13603 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
13604 correct cat to grub_uint8_t * rather than grub_uint32_t *.
13606 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
13608 * .bzrignore: Ignore grub-core/rs_decoder.S.
13610 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
13612 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
13613 .mo/.mo.gz opening sequence to ...
13614 (grub_mofile_open_lang): ... here.
13615 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
13616 * util/grub.d/00_header.in (grub_lang): Include country part of
13618 Reported by: Mario Limonciello.
13620 2010-12-09 Robert Millan <rmh@gnu.org>
13622 * NEWS: Document addition of ZFS support.
13624 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
13626 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
13627 rather than `/ 2', as the latter requires -Wa,--divide which would
13628 require bumping our minimum binutils version.
13630 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
13632 * util/grub-script-check.c (main): Print script line number on
13635 2010-12-01 Robert Millan <rmh@gnu.org>
13637 * grub-core/fs/zfs/zfs.c: New file.
13638 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
13639 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
13640 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
13641 * grub-core/fs/zfs/zfsinfo.c: Likewise.
13643 * include/grub/zfs/dmu.h: Likewise.
13644 * include/grub/zfs/dmu_objset.h: Likewise.
13645 * include/grub/zfs/dnode.h: Likewise.
13646 * include/grub/zfs/dsl_dataset.h: Likewise.
13647 * include/grub/zfs/dsl_dir.h: Likewise.
13648 * include/grub/zfs/sa_impl.h: Likewise.
13649 * include/grub/zfs/spa.h: Likewise.
13650 * include/grub/zfs/uberblock_impl.h: Likewise.
13651 * include/grub/zfs/vdev_impl.h: Likewise.
13652 * include/grub/zfs/zap_impl.h: Likewise.
13653 * include/grub/zfs/zap_leaf.h: Likewise.
13654 * include/grub/zfs/zfs.h: Likewise.
13655 * include/grub/zfs/zfs_acl.h: Likewise.
13656 * include/grub/zfs/zfs_znode.h: Likewise.
13657 * include/grub/zfs/zil.h: Likewise.
13658 * include/grub/zfs/zio.h: Likewise.
13659 * include/grub/zfs/zio_checksum.h: Likewise.
13661 * Makefile.util.def: Build ZFS into libgrubmods.
13662 * grub-core/Makefile.core.def: Build zfs.mod.
13664 2010-11-30 Szymon Janc <szymon@janc.net.pl>
13666 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
13668 * grub-core/commands/wildcard.c (match_files): Likewise.
13670 2010-11-30 Robert Millan <rmh@gnu.org>
13672 * grub-core/loader/i386/bsd.c
13673 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
13674 whether kernel is loaded using grub_loader_is_loaded(), rather
13675 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
13676 certain error conditions.
13678 2010-11-30 Robert Millan <rmh@gnu.org>
13680 * grub-core/commands/echo.c: Include `<grub/term.h>'.
13681 (grub_cmd_echo): Call grub_refresh() after printing a message.
13683 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
13685 Avoid using tricks for initialising endian variables.
13687 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
13689 (GRUB_MOD_INIT): Don't byte-swap.
13690 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
13691 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
13692 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
13693 (grub_swap_bytes32_compile_time): Likewise.
13694 (grub_cpu_to_le32_compile_time): Likewise.
13695 (grub_cpu_to_le16_compile_time): Likewise.
13697 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
13699 * util/grub-setup.c (setup): Stop recommending --force. People who
13700 understand the dangers of blocklists are able to find this option
13701 anyway and the ones who don't shouldn't use it anyway.
13703 2010-11-26 Robert Millan <rmh@gnu.org>
13705 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
13708 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
13710 Fix LVM-on-RAID probing.
13712 * util/grub-probe.c (probe): Remember which disk was detected as
13713 RAID (perhaps an LVM physical volume). Use that disk's raidname
13714 rather than that of the top-level disk.
13716 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
13718 Fix cmdline argument quotes for setparams command of menuentry
13721 * grub-core/commands/menuentry.c (setparams_prefix): Use single
13722 quotes for arguments.
13723 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
13724 grub_strchrsub function instead.
13726 * include/grub/misc.h (grub_strchrsub): New function.
13728 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13730 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
13731 effort by skipping "." and ".." entries up-front.
13732 Suggested by: Michael Lazarev.
13734 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13736 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
13737 ldflags to ldadd, to fix link line ordering.
13738 (none_decompress): Likewise.
13740 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13742 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
13744 (grub-emu-lite): Remove kern/emu/cache.S.
13746 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13748 * util/deviceiter.c (compare_devices): If the by-id link for a
13749 device couldn't be resolved, fall back to sorting by the by-id link
13750 rather than segfaulting.
13751 Reported and tested by: Daniel Mierswa.
13753 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13755 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
13756 ldflags, to fix link line ordering.
13758 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13760 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
13761 linkers are picky about this.
13763 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13765 * grub-core/Makefile.am (command.lst): Adjust sed expression
13766 ordering so that extended and priority commands aren't treated as
13769 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13771 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
13772 Remove byte-swapping function calls, which are not valid in
13773 structure initialisers.
13774 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
13776 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
13777 grub_gpt_partition_type_bios_boot.
13779 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13781 Fix test program build on GNU/kFreeBSD.
13783 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
13784 $(LIBNVPAIR)' library dependencies.
13786 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13788 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
13790 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13792 * util/grub-install.in: Remove excessive quoting that broke
13793 installations to RAID devices.
13795 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13797 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
13798 bootloader version instead of 0.
13800 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13802 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
13805 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13807 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
13808 retrieve the metadat sector if size isn't known.
13809 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13811 2010-11-18 Robert Millan <rmh@gnu.org>
13813 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
13814 with grub_memcmp().
13816 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
13818 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
13820 Reported by: Jordan Uggla.
13822 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13824 Make better UTF compliant.
13826 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
13827 sequences as incorrect.
13828 (grub_is_valid_utf8): Likewise.
13829 (grub_utf8_to_ucs4): Likewise.
13830 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
13831 (grub_ucs4_to_utf8_alloc): Likewise.
13832 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
13834 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13836 Make legacy_source behave like source.
13838 * grub-core/commands/legacycfg.c (legacy_file): Don't call
13840 (grub_cmd_legacy_source): Call grub_show_menu if needed.
13842 2010-11-16 Colin Watson <cjwatson@debian.org>
13844 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
13845 (-Wunused implies -Wunused-parameter, but not vice versa).
13847 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
13849 * configure.ac: Make error messages less confusing by testing for
13850 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
13851 accepted, but produces a diagnostic if something else is wrong).
13853 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
13855 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
13856 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
13858 (grub_keyboard_controller_init)
13859 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
13860 read the initial state since controller isn't inited yet.
13862 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
13864 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
13865 allocate_regbeg may need to create new chunk header.
13867 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13869 Fix quoting in legacy parser.
13871 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
13873 (grub_legacy_parse): Likewise.
13874 Reported by: Jordan Uggla.
13875 Tested by: Jordan Uggla.
13877 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13879 Don't add -lgcc on i386 and x86_64.
13881 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
13882 * conf/Makefile.common (LDADD_KERNEL): Likewise.
13883 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
13885 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13887 * configure.ac: Add -Wno-trampolines when supported.
13889 2010-11-14 Modestas Vainius <modax@debian.org>
13891 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
13894 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13896 Add generic logical block size support for UDF.
13898 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
13899 (GRUB_UDF_BLKSZ): Removed.
13900 (struct grub_udf_data): New field "lbshift" to hold the logical block
13901 size of the file system in log2 format. All users updated.
13902 (sblocklist): Change type to unsigned.
13903 (grub_udf_mount): Change type of "sblklist" to unsigned.
13904 Move AVDP search before VRS recognition, because the latter requires
13905 knowledge of the logical block size, which is detected during the
13907 Detect and validate logical block size during AVDP search, adding
13908 support for block sizes 512, 1024 and 4096.
13909 Make VRS recognition independent of block size.
13911 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13913 Properly handle deleted files on UDF.
13915 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
13916 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
13919 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13921 Support reading files larger than 2 GiB.
13923 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
13924 "offset" to grub_off_t.
13925 (grub_udf_read_file): Likewise for parameter "pos".
13927 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13929 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
13931 (Simple configuration): Refer to Changes from GRUB Legacy about
13932 save_env availability.
13934 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13936 * util/grub-install.in: Ignore empty partition table detection
13937 instead of trying to include part_ module.
13939 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13941 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
13942 LVM on RAID support.
13944 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13946 Properly define WORDS_BIGENDIAN in wrapped environments.
13948 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
13950 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
13952 Reported by: Manoel Rebelo Abranches.
13953 Tested by: Manoel Rebelo Abranches.
13955 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13957 * util/grub-mkconfig.in: Fix quoting.
13959 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13961 Support big ext2 files.
13963 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
13964 (grub_ext2_read_block): Support triple indirect blocks.
13965 (grub_ext2_read_file): Use 64-bit types and read size_high.
13966 (grub_ext2_open): Read size_high.
13967 Reported by: Ximin Luo.
13968 Tested by: Manoel Rebelo Abranches.
13970 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13972 * util/grub-install.in: Handle filenames containing spaces.
13973 Reported by: Jordan Uggla.
13974 Tested by: Jordan Uggla.
13976 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13978 * util/grub-mkconfig.in (grub_script_check): New variable.
13979 Use grub_script_check instead of grub-script-check.
13980 Reported by: Barry Jackson.
13982 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13984 * docs/grub.texi (menu): Correct the order.
13985 Reported by: D. Hugh Redelmeier.
13987 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13989 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
13992 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
13994 * include/grub/elfload.h (grub_elf32_size): New parameter.
13996 Return maximum segments alignment.
13997 (grub_elf64_size): Likewise.
13998 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
13999 Return maximum segments alignment.
14000 (grub_elf64_size): Likewise.
14001 * grub-core/loader/powerpc/ieee1275/linux.c:
14002 (grub_linux_claimmap_iterate): New function. Uses the
14003 "available" property in the "memory" node for memory allocation
14004 for kernel in the PowerPC loader.
14005 (grub_linux_load32): Correctly find linux entry point offset.
14006 (grub_linux_load64): Likewise.
14008 2010-11-07 Robert Millan <rmh@gnu.org>
14010 On mips-yeeloong, build with -march=loongson2f when this flag is
14011 available (GCC >= 4.4).
14012 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14014 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14015 or otherwise add -march=mips3.
14017 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14019 Suppress shell expansion on echo '*' and echo "*" like cases.
14020 Reported by: Jordan Uggla.
14022 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14023 string arguments before shell expansion.
14024 * tests/grub_cmd_echo.in: New testcases.
14026 2010-11-07 Robert Millan <rmh@gnu.org>
14028 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14031 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14033 * grub-core/kern/emu/hostdisk.c
14034 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14036 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14038 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14039 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14040 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14042 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14044 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14046 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14048 * util/grub-install.in: Replace useless recomendation to pass
14049 --modules with a recomendation to report a bug.
14051 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14053 Properly register serial terminfo.
14054 Reported by: Jordan Uggla
14056 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
14058 (grub_serial_terminfo_output_template): Likewise.
14059 (grub_cmd_serial): Register "serial" with terminfo.
14060 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
14061 grub_serial_terminfo_output.
14063 2010-11-05 Robert Millan <rmh@gnu.org>
14065 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
14068 2010-11-05 Robert Millan <rmh@gnu.org>
14070 On Yeeloong, pass machine type information to Linux.
14072 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
14073 (LOONGSON_MACHTYPE): New macro, set to
14074 "machtype=lemote-yeeloong-2f-8.9inches".
14075 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
14076 additional argument to Linux.
14078 2010-11-04 Robert Millan <rmh@gnu.org>
14080 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
14081 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
14082 (its SATA disks are detected as slaveless IDE master drives on
14084 Reported by Carsten Aulbert.
14086 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
14088 * util/bin2h.c (main): Fix spelling error in generated output.
14090 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
14092 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
14094 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14096 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
14097 vga= option is supplied.
14099 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14101 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
14102 * util/grub.d/10_kfreebsd.in: Likewise.
14103 * util/grub.d/10_linux.in: Likewise.
14104 * util/grub.d/20_linux_xen.in: Likewise.
14106 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14108 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
14109 argument as an argument to no-argument option.
14111 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14113 * util/grub.d/10_linux.in: Add missing load_video with explicit
14114 GRUB_GFXPAYLOAD_LINUX.
14116 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14118 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
14120 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14122 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
14123 elements with invlid index.
14124 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14125 * grub-core/disk/raid.c (insert_array): Automatically reallocate
14127 * include/grub/raid.h (grub_raid_member): New struct.
14128 (grub_raid_array): Transform devices and start_sector into usage of
14129 grub_raid_member. All users updated
14130 (allocated_devs): New member.
14132 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14134 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
14137 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
14139 NetBSD build fix for getline function conflict from gnulib.
14141 * Makefile.util.def (libgrubkern.a): New library for grub kernel
14142 components that depend on gnulib headers.
14143 (libgrubmods.a): Renamed from earlier libgrub.a.
14144 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
14146 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14148 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
14149 install rather than creating a broken install.
14151 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14153 * util/grub-setup.c (argp): Remove misleading example of installing to
14156 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14158 * util/grub-setup.c (setup): Clarify the error message.
14160 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14162 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
14164 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14166 * grub-core/kern/emu/misc.c
14167 (grub_make_system_path_relative_to_its_root)
14168 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
14170 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14172 * grub-core/kern/emu/misc.c
14173 (grub_make_system_path_relative_to_its_root): Revert r2882.
14175 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
14177 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
14178 useless field head. All users updated.
14179 (free_subchunk): Correct handling of IN_REGION subchunk.
14181 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
14183 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
14184 (Supported kernels): Likewise.
14186 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14188 Make mktemp invocations portable.
14190 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
14191 exit if mktemp fails.
14192 * tests/grub_script_blockarg.in: Likewise.
14193 * tests/partmap_test.in: Likewise.
14194 * tests/util/grub-shell-tester.in: Likewise.
14195 * tests/util/grub-shell.in: Likewise.
14196 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14197 * Makefile.am: Likewise, and chain shell commands with `&&'
14199 * util/grub-mkrescue.in: Use the same explicit template as above, and
14200 exit if mktemp fails.
14202 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
14204 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
14205 Linux kernel, reported by Dennis Schridde.
14207 2010-10-17 Szymon Janc <szymon@janc.net.pl>
14209 * grub-core/normal/auth.c (grub_auth_check_authentication):
14210 Set-but-not-used variable removed.
14212 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14214 * docs/grub.texi (GNU/Linux): Document APM unavailability with
14215 32-bit linux protocol.
14217 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14219 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
14220 cursor shape for sanity.
14222 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14224 * docs/grub.texi (Installation): Document buggy BIOS install.
14226 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14228 * docs/grub.texi (Installation): Indent.
14230 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14232 * util/grub-setup.c (setup): New parameter allow_floppy.
14233 (arguments): New member allow_floppy.
14234 (argp_parser): Handle --allow-floppy.
14235 (main): Pass allow_floppy.
14236 * util/grub-install.in: New option --allow-floppy passed though to
14239 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14241 * util/grub-install.in: Handle partitionless disks.
14243 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
14245 * util/grub-setup.c (setup): Don't clean blocklists before readability
14248 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14250 * docs/grub.texi (Installation): Document embedding zone. Remove
14251 obsolete grub-install example.
14253 2010-10-16 Szymon Janc <szymon@janc.net.pl>
14255 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
14256 Set-but-not-used variable ifdef'ed.
14257 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
14258 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
14260 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
14261 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
14262 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
14263 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
14264 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
14265 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
14266 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
14267 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
14268 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
14269 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
14270 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
14273 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14275 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
14276 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
14279 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14281 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
14282 synonym to _S5_. Needed for some DSDTs.
14284 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14286 Userspace ACPI parser debugging.
14288 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
14289 headers and add relevant defines. Don't include standard headers.
14290 (main) [GRUB_DSDT_TEST]: New function.
14291 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
14292 Don't declare functions.
14294 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14296 Remove dead grub_efi_mm_fini.
14298 * grub-core/kern/efi/mm.c (allocated_page): Removed.
14299 (ALLOCATED_PAGES_SIZE): Likewise.
14300 (MAX_ALLOCATED_PAGES): Likewise.
14301 (allocated_pages): Likewise.
14302 (grub_efi_allocate_pages): Don't record allocated pages.
14303 (grub_efi_free_pages): Likewise.
14304 (grub_efi_mm_init): Likewise.
14305 (grub_efi_mm_fini): Removed.
14307 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14309 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
14310 (grub_efi_mm_init): Take into account the memory map size increase.
14312 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14314 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
14315 (serial_hw_put): Wait based on real time rather than port reads. Don't
14317 * include/grub/serial.h (grub_serial_port): New field broken.
14319 2010-10-16 Robert Millan <rmh@gnu.org>
14321 * grub-core/kern/emu/misc.c
14322 (grub_make_system_path_relative_to_its_root): Fix premature return
14323 when processing non-root ZFS filesystems.
14324 Reported by Sergio Talens-Oliag.
14326 2010-10-15 Robert Millan <rmh@gnu.org>
14328 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
14329 guarantee compressed ones are processed first.
14331 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14333 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
14334 grub_efiemu_autocore.
14336 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14338 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
14340 (grub_console_getkey): Use correct jae opcode rather than ja.
14342 2010-10-12 Robert Millan <rmh@gnu.org>
14344 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
14345 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
14346 variable. All references updated.
14348 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
14350 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
14352 Correctly distinguish mdraid flavours.
14354 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
14355 (insert_array): New argument raid.
14356 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
14357 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
14358 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
14360 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
14362 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
14363 handling of special keys.
14365 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14367 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
14368 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
14370 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14372 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
14373 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
14375 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
14376 Use right endpoint when querying descriptor.
14378 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14380 Clear out 0x80 color bit on EFI.
14382 Reported by: decoder and meta tech.
14384 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
14385 (grub_console_setcolorstate): Clear out 0x80 bit.
14386 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
14387 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
14388 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
14390 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14392 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
14395 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14397 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
14398 mo_file after freeing.
14400 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14402 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
14404 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14406 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
14409 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14411 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
14414 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14416 Put terminfo into core on ieee1275 and yeeloong (needed for console).
14418 * gentpl.py: New groups terminfoinkernel and terminfomodule.
14419 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
14420 and terminfo.h when needed.
14421 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
14422 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
14423 (terminfo): Enable only on terminfokernel.
14424 (extcmd): Likewise.
14425 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
14426 * include/grub/lib/arg.h: Likewise.
14427 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
14428 incorrect usage of ->.
14430 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14432 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
14433 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
14435 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14437 Fix coreboot compilation.
14439 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14440 Take VBE info into account even if only text is supported.
14441 (fill_vbe_info): Take into account the case when only VGA text
14443 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
14444 on coreboot, multiboot and qemu.
14446 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14448 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
14450 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
14452 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14454 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
14457 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14459 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
14460 if they were BSD-style.
14462 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14464 * grub-core/boot/i386/pc/lnxboot.S: Replace
14465 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
14466 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
14468 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14470 Write embedding zone using Reed-Solomon.
14472 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
14473 * grub-core/Makefile.am (rs_decoder.S): New target.
14474 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
14475 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
14476 (multiboot): Move to RS part.
14477 (post_reed_solomon): New label.
14478 (grub_boot_drive): Move to non-RS part since it's modified in memory
14480 Include rs_decoder.S.
14481 * grub-core/lib/reed_solomon.c: New file.
14482 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
14484 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
14485 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
14486 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
14487 * include/grub/partition.h (grub_partition_map): Change prototype of
14488 embed to allow returning additional sectors.
14489 * include/grub/reed_solomon.h: New file.
14490 * util/grub-setup.c (setup): Handle Reed-Solomon.
14492 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
14494 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
14495 i386 and x86-64 definedness tests.
14497 2010-09-27 Yves Blusseau <blusseau@zetam.org>
14499 Fix generation of kernel_syms.lst
14501 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
14504 2010-09-26 Robert Millan <rmh@gnu.org>
14506 Support degraded ZFS arrays in "grub-probe -t device" resolution.
14508 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
14509 the pool is an array of devices, iterate through it and return the
14510 first device that passes a stat() test (instead of blindly returning
14513 2010-09-26 Robert Millan <rmh@gnu.org>
14515 Build fixes for GNU/kFreeBSD.
14517 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
14518 to programs that require ZFS conversion.
14519 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
14520 kernels that don't have FLOPPY_MAJOR.
14522 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14524 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
14526 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14528 Fix grub-emu build.
14530 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
14531 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
14532 mdraid09 and mdraid1x.
14534 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
14536 Re-enable grub-extras.
14538 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
14539 avoid confusing Automake. Run autogen only twice, once for the top
14540 level and once for grub-core. Add Makefile.util.def and
14541 Makefile.core.def from extra modules to the appropriate autogen
14542 invocations. If Makefile.common exists in an extra module, include
14543 it in both Makefile.util.am and grub-core/Makefile.core.am;
14544 similarly, include any Makefile.util.common file in Makefile.util.am
14545 and any Makefile.core.common file in grub-core/Makefile.core.am.
14546 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
14547 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
14548 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
14549 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
14551 * gentpl.py (gvar_add): Turn GVARS into a set.
14552 (global_variable_initializers): Sort global variables on output.
14553 (vars_init): New function.
14554 (first_time): Likewise.
14555 (library): Ensure that non-global variable initialisations are
14556 emitted before the first time we emit code for a library block.
14557 Append to variables rather than setting them. Only emit
14558 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
14559 each conditional path.
14560 (program): installdir() emits an Autogen macro, so must be passed to
14561 var_add rather than gvar_add.
14563 (script): Likewise.
14564 (rules): New function, centralising handling for different target
14565 types. Set up Guile association lists for first_time and vars_init,
14566 and send most output to a diversion so that variable initialisations
14567 can be emitted first.
14568 (module_rules): Use new rules function.
14569 (kernel_rules): Likewise.
14570 (image_rules): Likewise.
14571 (library_rules): Likewise.
14572 (program_rules): Likewise.
14573 (script_rules): Likewise.
14574 (data_rules): Likewise.
14576 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
14578 * .bzrignore: Add contrib and grub-core/contrib. Remove
14579 grub-core/Makefile.gcry.am.
14581 2010-09-24 Yves Blusseau <blusseau@zetam.org>
14583 * grub-core/lib/LzFind.c: Add missing include.
14584 * grub-core/lib/LzmaEnc.c: Likewise.
14585 * grub-core/script/lexer.c: Likewise.
14586 * grub-core/script/yylex.l: Likewise.
14587 * util/grub-macho2img.c: Likewise.
14588 * util/grub-menulst2cfg.c: Likewise.
14589 * util/grub-mklayout.c: Likewise.
14590 * util/grub-mkpasswd-pbkdf2.c
14591 * util/grub-mkrelpath.c: Likewise.
14592 * util/resolve.c: Likewise.
14594 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
14596 * Makefile.util.def (example_unit_test): Add
14597 grub-core/gnulib/libgnu.a.
14599 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
14601 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
14603 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
14605 Support xz compression on yeeloong.
14607 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
14608 * configure.ac: Check for LZMA.
14609 * grub-core/Makefile.core.def (xz_decompress): New target.
14610 (none_decompress): Likewise.
14611 * grub-core/boot/decompressor/minilib.c: New file.
14612 * grub-core/boot/decompressor/none.c: Likewise.
14613 * grub-core/boot/decompressor/xz.c: Likewise.
14614 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
14615 * grub-core/kern/mips/cache_flush.S: Likewise.
14616 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
14617 * grub-core/kern/mips/startup.S: Move first stage to ...
14618 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
14620 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
14621 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
14622 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
14623 Allocate statically.
14624 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
14625 Allocate statically or use scratch. Don't check CRC32.
14626 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
14627 Allocate statically. Don't check CRC32.
14628 * include/grub/decompressor.h: New file.
14629 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
14631 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
14632 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
14633 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
14634 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
14635 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
14636 * util/grub-mkimage.c (grub_compression_t): New type.
14637 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
14638 (image_target_desc): New field default_compression.
14639 (image_targets): Adjust yeeloong targets.
14640 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
14641 (compress_kernel): New parameter comp.
14642 (generate_image): Likewise. Handle new compression case.
14643 (options): New option --compression
14645 (main): Handle new option.
14647 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
14649 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
14651 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
14653 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
14654 typo in __i386__ conditional.
14656 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
14658 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
14661 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
14663 Implement EFI and ACPI multiboot2 extensions.
14665 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
14666 new tags as supported.
14667 (acpiv2_size): New function.
14668 (grub_multiboot_get_mbi_size): Take new tags into account.
14669 (grub_multiboot_make_mbi): Add new tags.
14670 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
14672 2010-09-21 Aleš Nesrsta <starous@volny.cz>
14674 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
14675 Added missing configuration of USB device.
14677 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14679 * grub-core/normal/menu_entry.c (run): Make sure we always return
14682 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14684 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
14685 NumberOfPages is UINT64 according to the UEFI specification, not
14686 UINTN. Fix printf format.
14688 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14690 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
14691 `err' to grub_usb_err_t.
14692 Reported and tested by: KESHAV P.R.
14694 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14696 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
14697 tpart non-const, so that we can assign to it. (Since this is a
14698 typedef, the constness refers to the pointer rather than what it
14701 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14703 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
14704 $(top_srcdir)/grub-core/gnulib as well as
14705 $(top_builddir)/grub-core/gnulib.
14706 Reported by: KESHAV P.R.
14708 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14710 * util/grub-install.in: Fix the bootloader ID option to be
14711 consistently --bootloader-id, not --bootloader_id.
14712 Reported by: KESHAV P.R.
14714 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14716 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
14717 check hash checksum." consistently translatable.
14719 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14721 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
14724 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14726 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
14727 (GRUB_MOD_INIT): Register sha1sum command.
14728 (GRUB_MOD_FINI): Unregister sha1sum command.
14730 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14732 Keep boot and grub directory names in sync with utils scripts
14734 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
14735 * config.h.in: Add previous macros.
14736 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
14737 * util/grub-install.in: Use $bootdir and $grubdir variables.
14739 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14741 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
14742 convert partition names to disk names if the new `convert' parameter
14744 (grub_util_biosdisk_get_grub_dev): If opening the disk device
14745 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
14746 disk in its own right. This can happen with Xen disk images.
14748 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14750 * util/grub-editenv.c: Update strings to avoid warnings when generating
14752 * util/grub-setup.c: Likewise.
14754 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
14756 * configure.ac: Change version to 1.99~beta0.
14758 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
14760 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
14762 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
14764 * include/multiboot.h: Resynced with specification.
14765 * include/multiboot2.h: Likewise.
14767 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14769 Fix po directory handling.
14771 * configure.ac: Create po/Makefile.in rather than po/Makefile.
14772 * grub-core/gnulib/Makefile.am: Import gettext module.
14773 * m4/gnulib-cache.m4: Likewise.
14774 * m4/gnulib-comp.m4: Likewise.
14775 * m4/gettext.m4: New file, from gnulib.
14776 * m4/glibc2.m4: Likewise.
14777 * m4/iconv.m4: Likewise.
14778 * m4/intdiv0.m4: Likewise.
14779 * m4/intl.m4: Likewise.
14780 * m4/intldir.m4: Likewise.
14781 * m4/intlmacosx.m4: Likewise.
14782 * m4/intmax.m4: Likewise.
14783 * m4/inttypes-pri.m4: Likewise.
14784 * m4/lcmessage.m4: Likewise.
14785 * m4/lib-ld.m4: Likewise.
14786 * m4/lib-link.m4: Likewise.
14787 * m4/lib-prefix.m4: Likewise.
14788 * m4/lock.m4: Likewise.
14789 * m4/nls.m4: Likewise.
14790 * m4/po.m4: Likewise.
14791 * m4/printf-posix.m4: Likewise.
14792 * m4/progtest.m4: Likewise.
14793 * m4/threadlib.m4: Likewise.
14794 * m4/uintmax_t.m4: Likewise.
14795 * m4/visibility.m4: Likewise.
14796 * po/Makefile.am: Remove.
14797 * po/Makefile.in.in: New file, from gettext.
14798 ($(DOMAIN).pot-update): Support POTFILES-shell.
14799 * po/Makevars: New file.
14800 * po/POTFILES-shell: Rename to ...
14801 * po/POTFILES-shell.in: ... this. Update.
14802 * po/POTFILES: Rename to ...
14803 * po/POTFILES.in: ... this. Update.
14804 * po/Rules-quot: New file, from gettext.
14805 * po/boldquot.sed: Likewise.
14806 * po/en@boldquot.header: Likewise.
14807 * po/en@quot.header: Likewise.
14808 * po/insert-header.sin: Likewise.
14809 * po/quot.sed: Likewise.
14810 * po/remove-potcdate.sin: Likewise.
14812 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14814 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
14816 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14818 * util/grub.d/20_linux_xen.in: Use submenus.
14820 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14824 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
14825 parameter submenu. All users updated.
14826 * grub-core/normal/main.c (free_menu): Rename to ...
14827 (grub_normal_free_menu): ... this. Made global.
14828 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
14830 * grub-core/normal/menu_entry.c (screen): New field submenu.
14831 (make_screen): Set submenu.
14832 (run): Open new context if requested.
14833 * include/grub/menu.h (grub_menu_entry): New field submenu.
14834 * include/grub/normal.h (grub_normal_free_menu): New proto.
14836 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14838 Menu entries extractor.
14840 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
14842 (GRUB_MOD_INIT): Register new variants.
14843 (GRUB_MOD_FINI): Unregister new variants.
14844 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
14845 into grub_cmd_legacy_source.
14846 (grub_cmd_legacy_source): Implement extractor variants.
14847 (GRUB_MOD_INIT): Register new variants.
14848 (GRUB_MOD_FINI): Unregister new variants.
14849 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
14851 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
14852 search as an extractor.
14853 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
14854 test as an extractor.
14855 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
14857 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
14858 (grub_env_new_context): New function.
14859 (grub_env_context_open): Likewise.
14860 (grub_env_extractor_open): Likewise.
14861 (grub_env_extractor_close): Likewise.
14862 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
14863 grub_extractor_level.
14864 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
14865 * include/grub/env.h (grub_env_extractor_open): New proto.
14866 (grub_env_extractor_close): Likewise.
14867 * include/grub/normal.h (grub_extractor_level): New external variable.
14869 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14871 Make cutmem accept a region specification.
14872 Suggested by: Samuel Thibault
14874 * grub-core/mmap/mmap.c (parsemem): New function.
14875 (grub_cmd_cutmem): Handle new arguments.
14877 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14879 New command cutmem.
14881 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
14882 (GRUB_MOD_INIT): Register new command.
14883 (GRUB_MOD_FINI): Unregister new command.
14885 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14887 Support some annoying BSD and Minix subpartitions.
14889 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
14890 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
14891 Properly handle concatenation.
14892 * grub-core/kern/device.c (grub_device_iterate): Likewise.
14893 * grub-core/normal/completion.c (iterate_partition): Likewise.
14894 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
14895 contain partition. All users updated.
14896 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
14898 (grub_openbsdlabel_partition_map): Likewise.
14899 (bsdlabel_partition_map_iterate): Rename to ..
14900 (iterate_real): ... this. New arguments sector, freebsd and pmap.
14901 (bsdlabel_partition_map_iterate): New function.
14902 (netopenbsdlabel_partition_map_iterate): Likewise.
14903 (netbsdlabel_partition_map_iterate): Likewise.
14904 (openbsdlabel_partition_map_iterate): Likewise.
14905 (GRUB_MOD_INIT): Register new partmaps.
14906 (GRUB_MOD_FINI): Unregister new partmaps.
14907 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
14908 (grub_partition_msdos_iterate): ... this. All users updated.
14909 Don't support embedding other than in a minix partition.
14910 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
14912 * include/grub/partition.h (grub_partition): New field msdostype.
14913 * util/grub-install.in: Handle openbsd and netbsd types being in
14916 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14918 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
14920 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
14921 * grub-core/Makefile.core.def (mdraid): Renamed to ...
14922 (mdraid09): ... this.
14923 (mdraid1x): New module.
14924 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
14925 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
14927 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14929 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
14932 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14934 * grub-core/commands/efi/lsefimmap.c: Correct header.
14937 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14939 * util/grub-editenv.c (argp_parser): Don't pass translated strings
14940 as printf format strings; the translations might contain '%' which
14941 could cause a crash.
14943 * util/grub-fstest.c (argp_parser): Likewise.
14944 * util/grub-setup.c (argp_parser): Likewise.
14947 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14949 Use argp in grub-fstest.
14951 * util/grub-fstest.c: Don't include getopt.h.
14953 (root): New variable.
14954 (args_count): Likewise.
14956 (num_disks): Likewise.
14957 (images): Likewise.
14959 (debug_str): Likewise.
14961 (options): Transformed to argp.
14963 (main): Split argument parsing into ...
14964 (argp_parser): ... this. Changed to argp format.
14965 (argp): New variable.
14966 (main): Use argp_parse.
14968 2010-09-20 Tristan Gingold <gingold@free.fr>
14969 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
14970 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14972 * grub-core/commands/efi/lsefimmap.c: New file.
14973 * grub-core/Makefile.core.def (lsefimmap): New module.
14974 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
14976 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14978 Pause the execution (10s max) if any errors are displayed so the user
14979 has a chance to see them.
14981 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
14982 (grub_print_error): Increment grub_err_printed_errors.
14983 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
14984 execution if any errors were displayed.
14985 (show_menu): Remove old code for pause.
14986 * grub-core/normal/menu_entry.c (run): Likewise.
14987 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
14989 (grub_normal_get_char_counter): Likewise.
14990 * include/grub/err.h (grub_err_printed_errors): New external variable.
14991 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
14993 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14995 Support multiboot VBE info.
14997 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14998 Take VBE info into account.
14999 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15000 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15001 Call fill_vbe_info when appropriate.
15002 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15003 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15005 (grub_multiboot_get_mbi_size): Take new tags into account.
15006 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15007 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15008 Call fill_vbe_tag when appropriate.
15009 (grub_multiboot_make_mbi): Properly align tags.
15010 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15012 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15014 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15016 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15018 Suport manual terminal geometry specification.
15020 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15021 Save state in grub_ofconsole_terminfo_output.
15022 (grub_ofconsole_term): Use grub_terminfo_getwh.
15023 (grub_ofconsole_getwh): Removed.
15024 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15025 (grub_serial_term): Use grub_terminfo_getwh.
15026 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15027 (options): New struct.
15028 (OPTION_*): New enum.
15029 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15030 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15032 (grub_terminfo_getwh): New proto.
15033 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15035 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15037 Handle legacy "terminal" command.
15039 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15041 (legacy_commands): Add terminal and title.
15042 (grub_legacy_parse): Handle terminal. Simplify title handling.
15044 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15046 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15047 parameters overflow.
15049 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15051 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
15054 * docs/grub.texi (Shell-like scripting): Document `!'.
15055 (Network): Simplify using new i386-pc-pxe format. Mention
15060 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15062 * Makefile.am (SUBDIRS): Restore "."; it's important to force
15063 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
15066 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15068 * grub-core/commands/efi/lsefisystab.c: Correct header.
15069 * grub-core/commands/efi/lssal.c: Likewise.
15070 * grub-core/commands/testload.c: Likewise.
15072 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15074 * util/grub-mkrescue.in: Add explicit root argument to --set to
15075 prevent the UUID being interpreted as an argument to --set (matches
15076 previous change to prepare_grub_to_access_device).
15078 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15080 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
15081 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
15082 the verbosity of later #ifs.
15083 (find_partition_start): Define this function on FreeBSD too.
15084 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
15086 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
15089 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15091 * util/grub-editenv.c: Use argp instead of getopt.
15093 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15095 * util/grub-setup.c: Use argp instead of getopt.
15097 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15099 Use gnulib-tool to create gnulib source files.
15101 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
15102 grub-core/gnulib directories
15103 * .bzignore: Add **/.deps and autogenerated gnulib files
15104 * configure.ac: Assign auxiliary directory to build-aux, add invocation
15105 of gnulib macros, add grub-core/gnulib/Makefile
15106 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
15107 include m4 directory to aclocal.
15108 * Makefile.util.def: Remove direct compilation of gnulib source files
15109 and use the new grub-core/gnulib/libgnu.a.
15110 * build-aux/config.rpath: move config.rpath from top directory to
15112 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
15114 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
15115 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
15116 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
15118 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
15121 2010-09-20 Yves Blusseau <blusseau@zetam.org>
15123 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
15124 grub-core/genmod.sh and grub-core/gensyminfo.sh
15126 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
15128 Add a test for echo command options.
15130 * tests/grub_cmd_echo.in: New test.
15131 * Makefile.util.def: Rules for new test.
15133 2010-09-20 Szymon Janc <szymon@janc.net.pl>
15135 Remove crc.mod and move crc command to hashsum.mod.
15136 Remove lib/crc.c - users updated to use gcrypt implementation.
15138 * grub-core/commands/crc.c: Removed.
15139 * grub-core/Makefile.core.def (crc): Module removed.
15140 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
15141 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
15142 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
15143 * grub-core/lib/crc.c: Removed.
15144 * include/grub/lib/crc.h: Removed.
15145 * Makefile.util.def (crc): Remove lib/crc.c
15146 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
15147 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
15148 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
15149 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
15150 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
15151 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
15153 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15155 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
15157 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15159 Split config.h for util and core.
15161 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
15162 (ADDR32): Likewise.
15163 (DATA32): Likewise.
15164 (BSS_START_SYMBOL): Likewise.
15165 (END_SYMBOL): Likewise.
15166 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
15167 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
15168 * config.h.in: New file.
15169 * configure.ac: Use config-util.h as config define file.
15170 Rename MACHINE into GRUB_MACHINE. All users updated.
15171 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
15173 (NESTED_FUNC_ATTR): Likewise.
15174 Substitue new variables.
15175 (COND_HAVE_ASM_USCORE): New conditional.
15176 * grub-core/Makefile.am (ASM_PREFIX): New variable.
15177 (kernel_syms.lst): Use ASM_PREFIX.
15178 * grub-core/kern/emu/console.c: Include config-util.h.
15179 * grub-core/kern/emu/misc.c: Likewise.
15180 * grub-core/kern/emu/mm.c: Likewise.
15181 * include/grub/emu/misc.h: Likewise.
15182 * include/grub/libgcc.h: Likewise.
15184 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15186 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
15188 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
15189 Fix GRUB_TERM_KEY_* constants usage.
15190 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
15192 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15194 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
15196 * grub-core/bus/usb/uhci.c: Remove empty define.
15197 (grub_uhci_check_transfer): Add missing cast.
15198 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
15200 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
15202 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
15204 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15206 * grub-core/Makefile.core.def (legacycfg): Add
15207 lib/i386/pc/vesa_modes_table.c on emu.
15209 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15211 Reduce number of temporary files generated by build system.
15213 * grub-core/gencmdlist.sh: Removed.
15214 * grub-core/genfslist.sh: Removed.
15215 * grub-core/genhandlerlist.sh: Removed.
15216 * grub-core/genmodsrc.sh: Removed.
15217 * grub-core/genpartmaplist.sh: Removed.
15218 * grub-core/genparttoollist.sh: Removed.
15219 * grub-core/gentermiinallist.sh: Removed.
15220 * grub-core/genvideolist.sh: Removed.
15222 * grub-core/genmod.sh.in: New file.
15223 * grub-core/gensyminfo.sh.in: New file.
15225 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
15226 * conf/Makefile.extra-dist: Update with new files.
15227 * gentpl.py: Remove rules related to unnecessary temporary files.
15228 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
15230 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
15232 * grub-core/bus/usb/uhci.c: Remove empty #define.
15233 * grub-core/genmoddep.awk: Updated with new syminfo format.
15234 * util/bash-completion.d/Makefile.am: Add config.log to
15237 2010-09-19 Yves Blusseau <blusseau@zetam.org>
15239 * Makefile.util.def: Add forgotten $(LIBINTL) library.
15241 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
15243 * util/grub-mkconfig.in: Check the config script for syntax errors
15246 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
15247 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15249 * Makefile.util.def (grub-install): Use util/grub-install.in on all
15251 * util/grub-install.in: Add EFI and IEEE1275 support.
15252 * util/i386/efi/grub-install.in: Removed.
15253 * util/ieee1275/grub-install.in: Likewise.
15255 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15257 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
15258 (grub_cmd_cmosclean): Likewise.
15259 (GRUB_MOD_INIT): Register command cmosclean.
15260 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
15261 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
15263 2010-09-18 Carles Pina i Estany <carles@pina.cat>
15264 2010-09-18 Aleš Nesrsta <starous@volny.cz>
15265 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15267 Add keyboard layouts support.
15269 * Makefile.util.def (grub-mklayout): New file.
15270 (grub-kbdcomp): New script.
15271 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
15272 Add keyboard_layouts.h.
15273 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
15274 commands/boot.c on yeeloong.
15275 (keylayouts): New module.
15276 * grub-core/bus/usb/ohci.c
15277 * grub-core/bus/usb/uhci.c
15278 * grub-core/bus/usb/usbhub.c (rescan): New variable.
15279 (grub_usb_add_hub): Poll interrupt pipe for device handling.
15280 (attach_root_port): Likewise.
15281 (poll_nonroot_hub): Likewise.
15282 (grub_usb_poll_devices): Likewise.
15283 (detach_device): Close transfer.
15284 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
15286 (grub_usb_bulk_setup_readwrite): Likewise.
15287 (grub_usb_bulk_finish_readwrite): Likewise.
15288 * grub-core/commands/keylayouts.c: New file.
15289 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
15290 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
15292 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
15293 support scancode 2.
15294 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
15295 * include/grub/keyboard_layouts.h: New file.
15296 * util/grub-mklayout.c: New file.
15297 * util/grub-kbdcomp.in: Likewise.
15299 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15301 Unify memory types.
15303 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
15304 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
15306 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
15307 (grub_upper_mem): Likewise.
15308 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
15309 * include/grub/memory.h (grub_memory_type_t): New enum.
15312 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15314 * grub-core/Makefile.core.def (lsapm): New module.
15315 * grub-core/commands/i386/pc/lsapm.c: New file.
15316 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
15317 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
15319 * include/grub/i386/pc/apm.h: New file.
15320 * include/multiboot.h (multiboot_apm_info): New struct.
15322 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
15324 GRUB-legacy configuration file support.
15326 * Makefile.util.def (grub-menulst2cfg): New util.
15327 * docs/man/grub-menulst2cfg.h2m: New file.
15328 * grub-core/Makefile.core.def (legacycfg): New module.
15329 * grub-core/commands/legacycfg.c: New file.
15330 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
15331 (grub_normal_add_menu_entry): ... this.
15332 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
15333 (grub_normal_set_password): ...this.
15334 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
15335 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
15336 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
15337 * grub-core/lib/legacy_parse.c: New file.
15338 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
15339 * include/grub/i386/pc/vesa_modes_table.h: New file.
15340 * include/grub/legacy_parse.h: Likewise.
15341 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
15342 * util/grub-menulst2cfg.c: New file.
15344 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15346 * grub-core/kern/emu/hostdisk.c
15347 (convert_system_partition_to_system_disk): Initialise node.
15349 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15351 * grub-core/kern/emu/hostdisk.c
15352 (convert_system_partition_to_system_disk): Fix devmapper memory pool
15354 Reported and based on patch by: Modestas Vainius.
15356 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15358 Fix DM-RAID probing with recent versions of device-mapper udev
15361 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
15362 canonicalise device paths under /dev/mapper/.
15363 (convert_system_partition_to_system_disk): Compare the
15364 uncanonicalised path to /dev/mapper/ rather than the canonicalised
15365 path, since device nodes under /dev/mapper/ are often symlinks.
15367 2010-09-17 Yves Blusseau <blusseau@zetam.org>
15369 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
15371 2010-09-16 Yves Blusseau <blusseau@zetam.org>
15373 * configure.ac: Avoid some annoying error messages if freetype-config
15374 program is not found.
15376 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15378 Support RAID on virtio devices, and others.
15380 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
15382 [__MINGW32__] (grub_find_device): ... this.
15383 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
15384 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
15385 reasonable default if dir is NULL.
15386 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
15388 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
15389 (grub_guess_root_device): Update callers.
15390 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
15392 * util/raid.c (grub_util_getdiskname): Remove.
15393 (grub_util_raid_getmembers): Use grub_find_device rather than
15394 grub_util_getdiskname.
15396 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15398 * docs/grub.texi (serial): Remove obsolete comment about GRUB
15399 needing to be compiled with serial support.
15400 (ls): Indicate that multiple files are accepted.
15401 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
15402 indicate that multiple files are accepted.
15404 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15406 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
15407 libgrub_a_init.c, and util/bash-completion.d/grub.
15409 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15411 * util/grub-setup.c (setup): Fix incorrect container semantics.
15413 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15415 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
15417 Reported by: J. Nick Terry
15419 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15421 Move embedding routines to partmap sources files.
15423 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
15424 [GRUB_UTIL]: New variable.
15425 (gpt_partition_map_iterate): Set part.parent.
15426 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
15427 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
15428 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
15430 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
15431 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
15432 (grub_partition_map) [GRUB_UTIL]: New field embed.
15433 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
15434 (setup): Use ->embed.
15436 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15438 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
15440 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
15441 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
15443 2010-09-15 Yves Blusseau <blusseau@zetam.org>
15445 Add function to get completions from usage.
15447 * util/bash-completion.d/grub-completion.bash.in: Add function to get
15448 completions from usage. Use LC_ALL=C to get options properly.
15450 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15452 * grub-core/gnulib/basename-lgpl.c: Imported.
15453 * grub-core/gnulib/basename.c: Likewise.
15454 * grub-core/gnulib/dirname-lgpl.c: Likewise.
15455 * grub-core/gnulib/dirname.c: Likewise.
15456 * grub-core/gnulib/dirname.h: Likewise.
15457 * grub-core/gnulib/stripslash.c: Likewise.
15459 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15461 * grub-core/gnulib/error.c: Resynced.
15462 * grub-core/gnulib/getopt.c: Likewise.
15463 * grub-core/gnulib/getopt_int.h: Likewise.
15464 * grub-core/gnulib/regex.h: Likewise.
15465 * grub-core/gnulib/regex_internal.c: Likewise.
15466 * grub-core/gnulib/regex_internal.h: Likewise.
15468 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15470 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
15471 CRC calculations and validity checks.
15472 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
15475 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15477 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
15479 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15481 Fix incorrect echo options handling.
15482 Reported by: Yves Blusseau.
15484 * include/grub/command.h (grub_command_flags_t): New flags
15485 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
15486 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
15487 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
15489 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15491 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
15493 (GRUB_COMMAND_FLAG_MENU): Likewise.
15494 (GRUB_COMMAND_FLAG_BOTH): Likewise.
15495 (GRUB_COMMAND_FLAG_TITLE): Removed.
15496 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
15497 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
15498 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
15499 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
15500 (grub_command_flags_t): New enum. All users updated.
15502 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
15504 Fix solaris compilation.
15506 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
15507 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
15508 (grub-emu-list): Likewise.
15510 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15512 Remove deprecated root command.
15514 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
15517 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15519 * util/i386/pc/grub-setup.c: Merge this ...
15520 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
15521 * util/grub-setup.c: ... into this.
15522 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
15525 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15527 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
15530 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15532 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
15535 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15537 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15538 explicit root argument to set to prevent UUID to be interpreted as
15541 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15543 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
15545 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15547 Don't export grub_gate_a20.
15549 * grub-core/kern/i386/pc/init.c: Remove leftovers.
15550 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
15552 (grub_gate_a20): ... this. All users updated.
15553 * include/grub/i386/pc/init.h: Removed. All users updated.
15555 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15557 Create euro.pf2 which supports most European languages.
15559 * Makefile.am (grubdata_DATA): Add euro.pf2.
15560 (euro.pf2): New target.
15561 (CLEANFILES): Add euro.pf2.
15563 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15565 * configure.ac: Disable emu-usb by default to prevent inadvertent
15568 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15570 Disable usbserial on grub-emu since our libusb code isn't good enough
15573 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
15574 (usbserial_pl2303): Likewise.
15575 (usbserial_ftdi): Likewise.
15577 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15579 * include/grub/disk.h (grub_disk): Remove has_partitions.
15581 * disk/loopback.c (grub_loopback): Remove has_partitions.
15583 (options): Remove partitions. All users updated.
15584 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
15585 * util/i386/pc/grub-setup.c (setup): copy partition table only when
15586 actual partition table is found.
15588 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15590 Remove readability checks (too many false negatives).
15592 * util/grub-install.in: Remove readability checks.
15593 * util/grub-mkconfig.in: Likewise.
15594 * util/grub.d/10_hurd.in: Likewise.
15595 * util/grub.d/10_kfreebsd.in: Likewise.
15596 * util/grub.d/10_linux.in: Likewise.
15597 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
15600 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15602 Enable acpi shutdown on all ACPI platforms.
15604 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
15605 on coreboo, multiboot and EFI.
15606 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
15607 (grub_acpi_halt): Likewise.
15608 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
15609 (grub_cmd_halt): Don't call grub_acpi_halt directly.
15610 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
15611 * grub-core/lib/i386/halt.c (grub_halt)
15612 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
15614 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15616 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
15619 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15621 * grub-core/video/efi_gop.c: Fix over-80-chars line.
15622 * grub-core/video/efi_uga.c: Likewise.
15624 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15626 Filter devaliases and never open same device twice.
15628 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
15629 (last_ihandle): Likewise.
15630 (ofdisk_hash_ent): New member shortest.
15631 (ofdisk_hash_add): Add canonical path too.
15632 (scan): New function.
15633 (grub_ofdisk_iterate): Iterate over hashed entries.
15634 (compute_dev_path): Don't add :0.
15635 (grub_ofdisk_open): Don't really open the disk.
15636 (grub_ofdisk_close): Avoid closing unrelated disk.
15637 (grub_ofdisk_read): Implement reopen logic.
15638 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
15640 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
15643 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15647 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
15648 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
15649 right address. Add sparc64_ieee1275_ldflags.
15650 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
15651 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
15652 to grub_host_to_target_addr
15653 (load_image): Likewise.
15655 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15657 * grub-core/normal/completion.c (complete_file): Handle device
15659 Fix based on patch by Doug Nazar.
15661 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15663 grub-mknetdir script.
15665 * Makefile.util.def (grub-mknetdir): New module.
15666 * tests/util/grub-shell.in: Support boot=net
15667 * util/grub-mknetdir.in: New file.
15669 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15671 videoinfo on non-vbe.
15673 * grub-core/Makefile.core.def (vbeinfo): Removed.
15674 (vbetest): Removed.
15675 (videoinfo): New module.
15676 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
15677 * grub-core/commands/i386/pc/vbetest.c: Removed.
15678 * grub-core/commands/videoinfo.c: New file.
15679 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
15681 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
15683 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
15684 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
15685 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
15686 mode_number. New parameter mode. All users updated.
15687 (grub_video_gop_iterate): New function.
15688 (grub_video_efi_gop): New member iterate.
15689 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
15690 (grub_vbe_set_video_mode): Remove setting useless fields.
15691 (vbe2videoinfo): New function.
15692 (grub_video_vbe_iterate): Likewise.
15693 (grub_video_vbe_setup): Use vbe2videoinfo.
15694 (grub_video_vbe_print_adapter_specific_info): New function.
15695 (grub_video_vbe_adapter): New fields iterate and
15696 print_adapter_specific_info.
15697 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
15699 (grub_video_mode_info): New field mode_number.
15700 (grub_video_adapter): New fields iterate and
15701 print_adapter_specific_info.
15703 2010-09-13 Tristan Gingold <gingold@free.fr>
15704 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
15705 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15707 * grub-core/commands/efi/lsefisystab.c: New file.
15708 * grub-core/commands/efi/lssal.c: Likewise.
15709 * grub-core/Makefile.core.def (lsacpi): New module.
15710 (lsefisystab): Likewise.
15711 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
15712 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
15713 (grub_efi_sal_system_table): New struct.
15714 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
15715 (grub_efi_sal_system_table_memory_descriptor): Likewise.
15716 (grub_efi_sal_system_table_platform_features): Likewise.
15717 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
15718 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
15719 (grub_efi_sal_system_table_ap_wakeup): Likewise.
15720 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
15722 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15724 Support explicit user claim that a device is BIOS-visible.
15726 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
15727 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
15728 * grub-core/kern/emu/hostdisk.c
15729 (convert_system_partition_to_system_disk): Support mdX.
15730 (find_system_device): New parameter add. All users updated.
15731 (grub_util_biosdisk_is_present): New function.
15732 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
15735 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15737 Search hints support.
15739 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
15742 2010-09-13 Yves Blusseau <blusseau@zetam.org>
15744 Bash completion script for util commands
15746 * Makefile.am: Add util/bash-completion.d directory
15747 * configure.ac: Likewise.
15748 * util/bash-completion.d/Makefile.am: New file.
15749 * util/bash-completion.d/grub-completion.bash.in: Likewise.
15751 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15753 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
15754 (print_backlog): set backlog_ucs4 and backlog_glyphs.
15755 Reported by: Yves Blusseau.
15757 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15759 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
15760 partition size and offset.
15762 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15764 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
15766 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15768 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
15770 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15772 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
15773 (grub_xvasprintf): Likewise.
15775 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15777 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
15779 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15781 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
15782 args ending with NULL.
15784 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15786 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
15789 2010-09-11 Szymon Janc <szymon@janc.net.pl>
15791 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
15793 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15795 Shutdown using ACPI.
15797 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
15798 * grub-core/commands/acpihalt.c: New file.
15799 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
15800 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
15801 (grub_acpi_halt): New proto.
15802 (GRUB_ACPI_SLP_EN): New const.
15803 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
15804 (GRUB_ACPI_OPCODE_*): New enum.
15805 (GRUB_ACPI_EXTOPCODE_*): Likewise.
15807 2010-09-11 Tristan Gingold <gingold@free.fr>
15808 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
15809 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15811 * commands/lsacpi.c: New file.
15812 * grub-core/Makefile.core.def (lsacpi): New module.
15813 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
15814 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
15815 (grub_acpi_madt_entry_header): New struct.
15816 (grub_acpi_madt): Likewise.
15817 (grub_acpi_madt_entry_interrupt_override): Likewise.
15818 (grub_acpi_madt_entry_sapic): Likewise.
15819 (grub_acpi_madt_entry_lsapic): Likewise.
15820 (grub_acpi_madt_entry_platform_int_source): Likewise.
15821 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
15822 (PRIuGRUB_UINT32_T): Likewise.
15823 (PRIxGRUB_UINT64_T): Likewise.
15825 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15827 Implement loading palette on ieee1275_fb.
15829 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
15830 (have_setcolors): Likewise.
15831 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
15832 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
15833 (grub_video_ieee1275_set_palette): Implement.
15835 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15836 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
15838 * util/grub-install.in (grub_partition): New variable.
15839 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
15840 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
15841 Fixes a bug reported by Yves Blusseau.
15843 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15847 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
15848 =grub_cpu_flush_cache on all mips and not only yeeloong.
15849 * configure.ac (COND_mips): New conditional.
15850 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
15852 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
15853 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
15854 [GRUB_LINKER_HAVE_INIT]: New function.
15855 (grub_emu_post_init): Likewise.
15856 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
15857 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
15858 * include/grub/cache.h (_mips): Include mips/cache.h.
15859 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
15860 LVM and RAID prototypes.
15861 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
15862 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
15865 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15867 * util/grub-install.in: Don't try to verify core.img until after
15868 running grub-mkimage to create it.
15870 2010-09-10 Robert Millan <rmh@gnu.org>
15872 * util/grub.d/10_hurd.in: Add misc readability checks.
15873 * util/grub.d/10_kfreebsd.in: Likewise.
15874 * util/grub.d/10_linux.in: Likewise.
15876 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15878 * util/grub-install.in: ${imgext} won't be defined here until the
15879 install branch is merged. For the meantime, only verify core.img on
15880 i386-pc and sparc64-ieee1275 platforms.
15882 2010-09-10 Robert Millan <rmh@gnu.org>
15884 Solaris support in grub_find_zpool_from_dir(). Thanks
15885 Seth Goldberg for referring to getextmntent() facility.
15887 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
15889 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
15891 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
15892 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
15893 method for finding zpool name.
15895 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15897 grub-fstest needs the host and hostfs modules while other utilities
15898 actively require those modules to be absent, so grub-fstest needs
15899 its own initialisation and finalisation code.
15901 * Makefile.am (grub_fstest.pp): New target.
15902 (grub_fstest_init.lst): Likewise.
15903 (grub_fstest_init.c): Likewise.
15904 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
15906 2010-09-10 Robert Millan <rmh@gnu.org>
15908 * configure.ac: Check for `struct statfs.f_fstypename' and
15909 `struct statfs.f_mntfromname'.
15911 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
15912 kFreeBSD-specific code.
15914 2010-09-10 Robert Millan <rmh@gnu.org>
15916 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
15917 on ZFS. Now non-main filesystems are supported as / too.
15919 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
15921 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
15922 and grub-core/disk/host.c to ...
15923 (grub-fstest): ... here. Having the host disk implementation
15924 present confuses grub-probe and other utility programs.
15926 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
15927 when writing to a file, not when writing to stdout.
15929 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
15931 * tests/partmap_test.in: New test for partitions.
15932 * Makefile.util.def: Rules for new test.
15934 2010-09-09 Robert Millan <rmh@gnu.org>
15936 * util/grub-probe.c (probe): Fix a pair of unhandled error
15939 2010-09-09 Robert Millan <rmh@gnu.org>
15941 Basic Btrfs support (detection and UUID).
15943 * grub-core/fs/btrfs.c: New file.
15944 * Makefile.util.def (library): Register btrfs.c.
15945 * grub-core/Makefile.core.def: Likewise.
15947 2010-09-08 Robert Millan <rmh@gnu.org>
15949 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
15950 with (optional) parameters to specify device and relative path.
15951 * util/grub-install.in: Use is_path_readable_by_grub() to
15952 verify readability of a few critical files.
15953 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
15954 verify readability of grub.cfg.new.
15956 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
15958 Split minix.mod into minix.mod and minix2.mod.
15960 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
15961 * grub-core/Makefile.core.def (minix2): New module.
15962 * grub-core/fs/minix.c: Use definitions instead of runtime version
15964 * grub-core/fs/minix2.c: New file.
15966 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15968 Add new --boot-directory option to replace --root-directory
15970 * util/grub-install.in: Add new --boot-directory option
15971 * util/grub-reboot.in: Likewise.
15972 * util/grub-set-default.in: Likewise.
15974 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15976 * util/grub-mkconfig.in: Use new variable.
15978 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15980 * configure.ac: Define some useful variables.
15982 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
15984 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
15985 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
15986 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
15987 Use terminfo and don't use cursor-on/cursor-off unless it's known
15989 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
15990 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
15992 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
15994 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
15995 starts with "(,", fill the drive containing the loaded image in
15996 between those two characters, but expect that a full partition
15997 specification including partition map names will follow.
15999 2010-09-08 Robert Millan <rmh@gnu.org>
16001 * configure.ac: Remove `--enable-grub-fstest' option.
16002 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16004 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16005 `grub-fstest' instead of `grub-probe' for readability verification.
16006 * util/grub-probe.c (probe): Remove readability verification kludge.
16008 2010-09-08 Robert Millan <rmh@gnu.org>
16010 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16011 initializing `GRUB_FS'.
16013 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16015 Not command (!) support to GRUB script.
16017 * tests/grub_script_not.in: New test.
16018 * Makefile.util.def: Rules for new test.
16020 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16021 ! command as a special case.
16022 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16024 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16026 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16029 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16031 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16033 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16035 * docs/grub.texi (Shell-like scripting): Documentation for break,
16036 continue, shift and return commands.
16038 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16040 Rename CD-ROM to cd on BIOS.
16042 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16044 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16046 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16048 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16049 * util/grub-probe.c (main): Likewise.
16050 * util/i386/pc/grub-setup.c (main): Likewise.
16051 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16052 Reported and debugged by: alexxy
16054 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16056 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
16059 2010-09-05 Jo Shields <directhex@apebox.org>
16061 * util/grub.d/30_os-prober.in: Add missing classes.
16063 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16065 * docs/grub.texi (Theme file format): Document new position format.
16067 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16069 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
16070 a table. Use @code instead of @verbatim.
16072 2010-09-05 Colin D Bennett <colin@gibibit.com>
16074 Gfxmenu documentation.
16076 * docs/grub.texi (Theme file format): New chapter.
16078 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16080 * grub-core/Makefile.core.def (xzio): New module.
16081 * grub-core/io/xzio.c: New file.
16082 * grub-core/lib/xzembed/xz.h: New file (from xembed).
16083 * grub-core/lib/xzembed/xz_config.h: Likewise.
16084 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
16085 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
16086 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
16087 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
16088 * grub-core/lib/xzembed/xz_private.h: Likewise.
16089 * grub-core/lib/xzembed/xz_stream.h: Likewise.
16090 * include/grub/file.h (grub_file_filter_id): New compression filter
16091 GRUB_FILE_FILTER_XZIO.
16093 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16095 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
16096 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
16099 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16101 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
16102 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
16104 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16106 Uncompressed checksum support.
16108 * grub-core/commands/hashsum.c (options): Add option --uncompress.
16109 (check_list): New parameter uncompress.
16110 (grub_cmd_hashsum): Handle --uncompress.
16112 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16114 Reintroduce testload.
16116 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
16118 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
16119 (GRUB_MOD_INIT): New function.
16120 (GRUB_MOD_FINI): Likewise.
16121 * grub-core/Makefile.core.def (testload): New module.
16123 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16125 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
16126 (uint8_t): New type.
16127 (uint16_t): Likewise.
16128 (uint32_t): Likewise.
16129 (uint64_t): Likewise.
16131 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16133 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
16135 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16137 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
16139 (grub_gzfile_open): Removed. All users updated.
16140 (GRUB_MOD_INIT): New function.
16141 (GRUB_MOD_FINI): Likewise.
16142 * grub-core/kern/file.c (grub_file_filters_all): New variable.
16143 (grub_file_filters_enabled): Likewise.
16144 (grub_file_open): Handle filters.
16145 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
16146 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
16147 * include/grub/file.h (grub_file_filter_id_t): New type.
16148 (grub_file_filter_t): Likewise.
16149 (grub_file_filters_all): New extern variable.
16150 (grub_file_filters_enabled): Likewise.
16151 (grub_file_filter_register): New inline function.
16152 (grub_file_filter_unregister): Likewise.
16153 (grub_file_filter_disable): Likewise.
16154 (grub_file_filter_disable_compression): Likewise.
16155 * include/grub/gzio.h: Removed.
16157 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16159 Filename expansion support for wildcards in GRUB script.
16161 * tests/grub_script_expansion.in: New test.
16162 * Makefile.util.def: Rule for new test.
16164 * grub-core/commands/wildcard.c: New file, implements filename
16165 expansion support for GRUB script.
16166 * grub-core/Makefile.core.def: Rule update for regexp.mod.
16167 * grub-core/script/argv.c: Cosmetic changes.
16168 * grub-core/script/execute.c (grub_script_arglist_to_argv):
16169 Refactored to perform wildcard expansion on arguments.
16170 * include/grub/script_sh.h (grub_script_wildcard_translator): New
16173 * tests/util/grub-shell.in: Fix quoting for read input.
16175 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16177 Support for updating environment variables with matched substrings
16180 * tests/grub_cmd_regexp.in: New test.
16181 * Makefile.util.def: Rule for new test.
16183 * grub-core/commands/regexp.c: New option -s to update environment
16184 variables with regexp matches.
16186 2010-09-04 Szymon Janc <szymon@janc.net.pl>
16188 * include/grub/file.h (grub_file): New member not_easly_seekable.
16189 (grub_file_seekable): New inline function.
16190 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
16192 (grub_gzio_open): Set not_easly_seekable.
16193 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
16194 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
16196 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16198 Support for options to appear multiple times on cmdline.
16200 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
16201 * grub-core/commands/extcmd.c: Support for repeatable option.
16202 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
16203 repeatable option support.
16205 Refactor menuentry into a regular command.
16207 * grub-core/commands/menuentry.c: New file, menuentry command
16209 * grub-core/Makefile.core.def: Rule update for normal.mod.
16210 * grub-core/normal/main.c: Moved menuentry creation to
16211 grub-core/commands/menuentry.c.
16212 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
16213 (grub_menu_execute_entry_real): Removed.
16214 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
16216 (grub_script_execute_menuentry): Removed.
16217 * grub-core/script/parser.y (menuentry): Removed.
16218 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
16219 * grub-core/script/yylex.l (menuentry): Removed.
16220 * include/grub/menu.h (grub_menu_init): New prototype.
16221 (grub_menu_fini): New prototype.
16222 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
16223 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
16224 (grub_script_execute_sourcecode): New prototype.
16226 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16228 "return" command for GRUB script functions.
16230 * tests/grub_script_return.in: New test.
16231 * Makefile.util.def: Rules for new test.
16233 * grub-core/script/execute.c (grub_script_return): New function.
16234 * grub-core/script/main.c: Register/unregister return commaond.
16235 * include/grub/script_sh.h (grub_script_return): New prototype.
16237 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16239 "setparams" command to update positional parameters.
16241 * tests/grub_script_setparams.in: New test.
16242 * Makefile.util.def: Rules for new test.
16244 * grub-core/script/argv.c (grub_script_argv_make): New function.
16245 * grub-core/script/execute.c (replace_scope): New function.
16246 (grub_script_setparams): New function.
16247 * grub-core/script/lexer.c: Remove unused variables.
16248 * grub-core/script/main.c: Register/unregister setparams command.
16249 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
16250 (grub_script_setparams): New prototype.
16252 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16254 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
16257 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16259 Support for passing block of commands as an argument to extcmds.
16261 * Makefile.util.def: Rules for new test.
16262 * tests/grub_script_blockarg.in: New test.
16263 * grub-core/tests/test_blockarg.c: New file, block argument
16264 command used in the test.
16266 * include/grub/extcmd.h (grub_extcmd_context): New struct.
16267 (grub_register_extcmd_prio): New function prototype.
16268 (grub_extcmd_dispatcher): New function prototype.
16269 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
16271 * include/grub/script_sh.h (struct grub_script): New members
16272 `children', `next_siblings' and `refcnt' for block arguments and
16273 reference counting.
16274 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
16275 (grub_script_arg): New member `script' for block argument.
16276 (grub_script_argv): New member `script' for block argument.
16277 (grub_parser_param): New member `scripts' for block argument.
16278 (grub_script_mem_free): New extern function prototype.
16279 (grub_script_ref): New function prototype.
16280 (grub_script_unref): New function prototype.
16282 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
16283 extcmd form to support block arguments.
16284 * grub-core/script/argv.c: Block arguments support.
16285 * grub-core/script/execute.c: Likewise.
16286 * grub-core/script/lexer.c: Likewise.
16287 * grub-core/script/main.c: Likewise.
16288 * grub-core/script/script.c: Likewise.
16289 * grub-core/script/parser.y: Likewise. New `block' and `block0'
16292 * grub-core/commands/acpi.c: Update extcmd implementations with
16293 grub_extcmd_context_t.
16294 * grub-core/commands/cat.c: Likewise.
16295 * grub-core/commands/echo.c: Likewise.
16296 * grub-core/commands/extcmd.c: Likewise.
16297 * grub-core/commands/hashsum.c: Likewise.
16298 * grub-core/commands/hdparm.c: Likewise.
16299 * grub-core/commands/help.c: Likewise.
16300 * grub-core/commands/hexdump.c: Likewise.
16301 * grub-core/commands/i386/cpuid.c: Likewise.
16302 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16303 * grub-core/commands/i386/pc/halt.c: Likewise.
16304 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16305 * grub-core/commands/iorw.c: Likewise.
16306 * grub-core/commands/keystatus.c: Likewise.
16307 * grub-core/commands/loadenv.c: Likewise.
16308 * grub-core/commands/ls.c: Likewise.
16309 * grub-core/commands/lspci.c: Likewise.
16310 * grub-core/commands/memrw.c: Likewise.
16311 * grub-core/commands/probe.c: Likewise.
16312 * grub-core/commands/search_wrap.c: Likewise.
16313 * grub-core/commands/setpci.c: Likewise.
16314 * grub-core/commands/sleep.c: Likewise.
16315 * grub-core/disk/loopback.c: Likewise.
16316 * grub-core/hello/hello.c: Likewise.
16317 * grub-core/loader/i386/bsd.c: Likewise.
16318 * grub-core/loader/xnu.c: Likewise.
16319 * grub-core/term/gfxterm.c: Likewise.
16320 * grub-core/term/serial.c: Likewise.
16321 * grub-core/tests/lib/functional_test.c: Likewise.
16323 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16325 Multi-line quoted strings support.
16327 * grub-core/script/lexer.c (append_newline): Removed.
16328 (grub_script_lexer_yywrap): Refactored.
16329 (grub_script_lexer_init): Refactored.
16330 * grub-core/script/yylex.l (yywrap): New function.
16331 (grub_lexer_resplit): New function.
16332 (grub_lexer_unput): New function.
16333 * include/grub/script_sh.h (grub_lexer_param): New members, unput
16335 * tests/grub_script_echo1.in: Added few more testcases.
16337 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16339 * grub-core/kern/misc.c: Don't add abort alias in utils.
16340 Reported by: echoline.
16342 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
16344 Add missing files into "make dist" tarball for other platforms.
16346 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
16347 * conf/Makefile.common (dist_noinst_DATA): New variable.
16348 * conf/Makefile.extra-dist: Added missing make dist files.
16349 * grub-core/Makefile.core.def: Likewise.
16351 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16353 Compress grub_prefix.
16355 * grub-core/boot/i386/pc/lnxboot.S: Use
16356 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
16357 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
16358 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
16359 GRUB_MACHINE_PREFIX_END. All users updated.
16360 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
16361 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
16363 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16364 * util/grub-mkimage.c (image_target_desc): Change data_end to
16365 prefix_end. All users updated.
16367 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16369 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
16371 (grub_openbsd_boot): Likewise.
16372 (grub_netbsd_boot): Likewise.
16373 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
16374 (grub_xnu_boot): Likewise.
16376 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16378 * configure.ac: Clean LIBS variable after tests.
16380 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16382 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
16384 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16386 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
16387 echo if libdevmapper will be used.
16389 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
16391 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
16392 constant for the same file.
16394 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16396 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
16398 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16400 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
16403 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16405 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
16406 required by the boot protocol.
16408 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
16409 ebp and edi members.
16410 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
16411 state.ebp and state.edi.
16412 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
16413 %ebp and %edi according to grub_relocator32_ebp and
16414 grub_relocator32_edi respectively.
16415 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
16418 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16420 Add i386-pc-pxe image target.
16422 * util/grub-mkimage.c (image_target_desc): New enum value
16424 (image_targets): New target i386-pc-pxe.
16425 (generate_image): Handle i386-pc-pxe image.
16427 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16431 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
16432 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
16434 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
16435 (grub_pxe_pxenv): Correct type.
16437 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16439 * NEWS: Document most of the important changes since 1.98.
16441 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16443 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
16444 generated manual page) a little.
16446 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16448 * docs/grub.texi: Add myself as an author.
16450 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16452 * Makefile.util.def (libgrub.a): Add missing sunpc.
16453 Reported by: Seth Goldberg.
16455 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16457 Interrupt wrapping and code simplifications.
16459 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
16460 x86_noieee1275 which are functionaly equivalent in this case.
16461 (grub-install): Make source on each platform explicit. Enable on
16463 * gentpl.py (x86_efi_pc): Removed group.
16464 (x86_noefi): Likewise.
16465 (i386_noefi): Likewise.
16466 (x86_noieee1275): Likewise.
16467 (i386_noieee1275): Likewise.
16468 (i386_noefi_noieee1275): Likewise.
16469 (i386_pc_qemu_coreboot): Likewise.
16470 (i386_coreboot_multiboot): Likewise.
16471 (i386_pc_coreboot_multiboot_qemu): Likewise.
16472 (x86_noefi_mips): Likewise.
16473 (noieee1275): Likewise.
16474 (ieee1275_mips): Likewise.
16475 (noemu_noieee1275): Likewise.
16478 (videoinkernel): Likewise.
16479 (videomodules): Likewise.
16480 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
16481 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
16482 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
16483 include/grub/loader.h, include/grub/msdos_partition.h,
16484 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
16485 include/grub/machine/console.h, include/grub/machine/vga.h,
16486 include/grub/machine/vbe.h, include/grub/machine/init.h,
16487 include/grub/machine/kernel.h, include/grub/cpu/time.h,
16488 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
16489 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
16490 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
16491 * grub-core/Makefile.core.def (kernel): Explicit the source for
16492 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
16493 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
16494 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
16495 Use videoinkernel tag.
16496 (usb): Enable on all usb.
16497 (usbserial_common): Likewise.
16498 (usbserial_pl2303): Likewise.
16499 (usbserial_ftdi): Likewise.
16500 (uhci): Enable on all x86.
16501 (ohci): Enable on all pci.
16502 (cmostest): Enable on all CMOS.
16503 (acpi): Include commands/acpi.c on all platforms.
16504 (halt): Add relevant lib/*/halt.c.
16505 (hdparm): Enable on all pci.
16507 (usbtest): Enable on all usb.
16508 (ata): Enable on all pci.
16509 (ata_pthru): Likewise.
16510 (usbms): Enable on all usb.
16511 (usb_keyboard): Likewise.
16512 (font): Use tag videomodules.
16514 (datetime): Use tag cmos. Enable on all noemu.
16515 (mmap): Use tags common and x86.
16516 (gfxterm): Use tag videomodules.
16517 (bitmap): Likewise.
16518 (bitmap_scale): Likewise.
16519 (video_fb): Likewise.
16521 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
16522 adjust padding accordingly. All users updated.
16523 (grub_ohci_transaction): Fix bad format specification.
16524 (GRUB_MOD_INIT): Add asserts for struct size.
16525 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
16526 (grub_alloc_td): Likewise.
16527 (grub_free_queue): Likewise.
16528 (grub_uhci_transfer): Likewise.
16529 (grub_uhci_transaction): Fix bad format specification.
16530 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
16531 (grub_usb_bulk_readwrite): Likewise.
16532 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
16533 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
16535 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
16537 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
16538 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
16539 Transformed into C.
16540 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
16541 Moved from here ...
16542 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
16543 ... here. Transformed into C. Made static.
16544 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
16545 Moved from here ...
16546 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
16547 ... here. Transformed into C. Made static.
16548 * grub-core/kern/i386/pc/startup.S
16549 (grub_biosdisk_check_int13_extensions): Moved from here ...
16550 * grub-core/disk/i386/pc/biosdisk.c
16551 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
16553 * grub-core/kern/i386/pc/startup.S
16554 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
16555 * grub-core/disk/i386/pc/biosdisk.c
16556 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
16557 Transformed into C. Made static.
16558 * grub-core/kern/i386/pc/startup.S
16559 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
16560 * grub-core/disk/i386/pc/biosdisk.c
16561 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
16562 Transformed into C. Made static.
16563 * grub-core/kern/i386/pc/startup.S
16564 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
16565 * grub-core/disk/i386/pc/biosdisk.c
16566 (grub_biosdisk_get_diskinfo_standard): ... here.
16567 Transformed into C. Made static.
16568 * grub-core/kern/i386/pc/startup.S
16569 (grub_biosdisk_get_num_floppies): Moved from here ...
16570 * grub-core/disk/i386/pc/biosdisk.c
16571 (grub_biosdisk_get_num_floppies): ... here.
16572 Transformed into C. Made static.
16573 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
16575 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
16576 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
16577 Transformed into C. Made static.
16578 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
16579 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
16580 Transformed into C. Made static.
16581 * grub-core/kern/i386/ieee1275/init.c: Removed.
16582 * grub-core/kern/i386/misc.S: Likewise.
16583 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
16584 Splitted from here ...
16585 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
16586 Transformed into C. Made static. All users updated.
16587 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
16588 Transformed into C. Made static. All users updated.
16589 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
16591 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
16592 Transformed into C. Made static. All users updated.
16593 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
16595 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
16596 Transformed into C. Made static. All users updated.
16597 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
16598 Removed (replaced by C version).
16599 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
16601 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
16602 Transformed into C. Made static.
16603 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
16605 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
16606 ... here. Transformed into C.
16607 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
16609 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
16610 ... here. Transformed into C.
16611 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
16613 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
16614 ... here. Transformed into C. Made static.
16615 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
16617 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
16618 ... here. Transformed into C.
16619 * grub-core/kern/i386/pc/startup.S
16620 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
16621 * grub-core/video/i386/pc/vbe.c
16622 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
16623 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
16625 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
16626 ... here. Transformed into C.
16627 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
16629 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
16630 ... here. Transformed into C.
16631 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
16633 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
16634 ... here. Transformed into C.
16635 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
16637 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
16638 ... here. Transformed into C.
16639 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
16641 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
16642 ... here. Transformed into C. Made static.
16643 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
16645 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
16646 ... here. Transformed into C. Made static.
16647 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
16649 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
16650 ... here. Transformed into C. Made static.
16651 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
16652 pxe_rm_entry as third argument.
16653 (grub_bios_interrupt): New function.
16654 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
16655 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
16656 of calling grub_stop.
16657 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
16658 * grub-core/lib/efi/halt.c (grub_halt): ...here.
16659 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
16660 * grub-core/lib/emu/halt.c (grub_halt): ... here.
16661 * grub-core/lib/i386/halt.c: Moved from here ...
16662 * grub-core/lib/i386/halt.c: ... here.
16663 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
16664 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
16665 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
16667 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
16668 * include/grub/i386/coreboot/init.h: Removed.
16669 * include/grub/i386/multiboot/init.h: Likewise.
16670 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
16671 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
16672 * include/grub/i386/pc/int.h: New file.
16673 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
16674 (grub_pxe_scan): Removed.
16675 (grub_pxe_call): Update prototype.
16676 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
16678 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
16679 * include/grub/i386/qemu/init.h: Removed.
16680 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
16682 (grub_halt): Likewise.
16683 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
16684 (grub_reboot): Likewise.
16685 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
16686 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
16687 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
16689 2010-08-30 Robert Millan <rmh@gnu.org>
16691 * NEWS: Document addition of ZFS support in `grub-install' and
16694 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
16696 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
16699 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16701 Remove leftover embedding of font objects.
16703 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
16704 * util/grub-install.in (font): Removed.
16705 * util/grub-mkimage.c (generate_image): Remove font support. All users
16708 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16710 Remove leftover embedding of font objects.
16712 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
16713 * util/grub-install.in (font): Removed.
16714 * util/grub-mkimage.c (generate_image): Remove font support. All users
16717 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16719 * docs/grub.texi (Network): Fix reference to pxe_blksize.
16720 Reported by: Ian Turner
16722 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16724 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
16725 timeout to avoid indefinite boot stalling.
16727 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16729 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
16730 (grub_env_write_color_highlight): Likewise.
16732 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16734 * grub-core/normal/term.c (print_more): Return to normal and not
16735 to standard state after printing "---MORE---".
16737 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16739 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
16740 Mask out the bit 0x80 since it has other meaning that specifiing color.
16742 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16744 New relocator. Allows for more kernel support and more straightforward
16747 * Makefile.am (BOOTTARGET): New variable.
16748 (QEMU32): Likewise.
16749 (linux.init.x86_64): New target.
16750 (linux.init.i386): Likewise.
16751 (multiboot.elf): Likewise.
16752 (kfreebsd.elf): Likewise.
16753 (kfreebsd.aout): Likewise.
16754 (pc-chainloader.elf): Likewise.
16755 (pc-chainloader.bin): Likewise.
16756 (ntldr.elf): Likewise.
16757 (ntldr.bin): Likewise.
16758 (multiboot2.elf): Likewise.
16759 (kfreebsd.init.x86_64): Likewise.
16760 (kfreebsd.init.i386): Likewise.
16761 (knetbsd.init.i386): Likewise.
16762 (kopenbsd.init.i386): Likewise.
16763 (knetbsd.init.x86_64): Likewise.
16764 (kopenbsd.init.x86_64): Likewise.
16765 (linux-initramfs.i386): Likewise.
16766 (linux-initramfs.x86_64): Likewise.
16767 (kfreebsd-mfsroot.i386.img): Likewise.
16768 (knetbsd.image.i386): Likewise.
16769 (kopenbsd.image.i386): Likewise.
16770 (kopenbsd.image.x86_64): Likewise.
16771 (knetbsd.miniroot-image.i386.img): Likewise.
16772 (kfreebsd-mfsroot.x86_64.img): Likewise.
16773 (knetbsd.image.x86_64): Likewise.
16774 (knetbsd.miniroot-image.x86_64.img): Likewise.
16775 (kfreebsd-mfsroot.i386.gz): Likewise.
16776 (bootcheck-kfreebsd-i386): Likewise.
16777 (kfreebsd-mfsroot.x86_64.gz): Likewise.
16778 (bootcheck-kfreebsd-x86_64): Likewise.
16779 (knetbsd.miniroot-image.i386.gz): Likewise.
16780 (bootcheck-knetbsd-i386): Likewise.
16781 (bootcheck-kopenbsd-i386): Likewise.
16782 (bootcheck-kopenbsd-x86_64): Likewise.
16783 (knetbsd.miniroot-image.x86_64.gz): Likewise.
16784 (bootcheck-knetbsd-x86_64): Likewise.
16785 (bootcheck-linux-i386): Likewise.
16786 (bootcheck-linux-x86_64): Likewise.
16787 (bootcheck-linux16-i386): Likewise.
16788 (bootcheck-linux16-x86_64): Likewise.
16789 (bootcheck-multiboot): Likewise.
16790 (bootcheck-multiboot2): Likewise.
16791 (bootcheck-kfreebsd-aout): Likewise.
16792 (bootcheck-pc-chainloader): Likewise.
16793 (bootcheck-ntldr): Likewise.
16794 (CLEANFILES): Add new targets.
16795 (BOOTCHECKS): New variable.
16796 (.PHONY): Add bootchecks.
16797 (SUCCESSFUL_BOOT_STRING): New variable.
16798 (BOOTCHECK_TIMEOUT): Likewise.
16799 (bootcheck): New target
16800 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
16801 * configure.ac: Correct efiemu excuse.
16802 * docs/grub.texi (Supported kernels): New chapter.
16803 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
16804 include/grub/mm_private.h. Simplify inclusion of
16805 include/grub/boot.h, include/grub/loader.h
16806 and include/grub/msdos_partition.h
16807 (KERNEL_HEADER_FILES) [i386_coreboot]:
16808 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
16809 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
16810 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
16811 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
16812 include/grub/machine/loader.h.
16813 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
16814 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
16816 (pci.mod): Enable on i386-multiboot.
16817 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
16818 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
16820 (relocator.mod): Rewritten.
16821 (aout.mod): Enable on all x86.
16822 (bsd.mod): Likewise.
16823 (ntldr.mod): New module.
16824 (linux.mod): Use loader/i386/linux.c on all x86.
16825 (xnu.mod): Enable on all x86.
16826 (vga_text.mod): disable on EFI and QEMU.
16827 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
16828 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
16829 * grub-core/efiemu/loadcore.c: Likewise.
16830 * grub-core/efiemu/main.c: Likewise.
16831 (grub_efiemu_exit_boot_services): Removed.
16832 (grub_efiemu_finish_boot_services): Likewise.
16833 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
16835 * grub-core/efiemu/i386/nocfgtables.c: New file.
16836 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
16837 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
16838 (grub_efi_finish_boot_services): Moved from here ...
16839 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
16840 Fille finish memory map and related data.
16841 (finish_mmap_buf): New variable.
16842 (grub_efi_uintn_t finish_mmap_size): Likewise.
16843 (grub_efi_uintn_t finish_key): Likewise.
16844 (grub_efi_uintn_t finish_desc_size): Likewise.
16845 (grub_efi_uint32_t finish_desc_version): Likewise.
16846 (grub_efi_is_finished): Likewise.
16847 (grub_efi_get_memory_map): Use saved memory map if EFI is already
16849 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
16850 (grub_elf64_phdr_iterate): Likewise.
16851 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
16852 (grub_os_area_size): Likewise.
16853 (grub_machine_init): Don't reserve os area.
16854 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
16855 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
16856 * grub-core/kern/i386/loader.S: Removed.
16857 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
16858 (grub_os_area_size): Likewise.
16859 (grub_machine_init): Don't reserve os area.
16860 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16861 Don't call grub_dl_unload_all.
16862 Don't include loader.S.
16863 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
16864 Declare the memory after _end as available.
16865 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
16866 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
16867 (GRUB_MM_ALLOC_MAGIC): Moved from here...
16868 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
16869 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
16870 * include/grub/mm_private.h (grub_mm_header): ... here.
16871 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
16872 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
16873 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
16874 (grub_mm_region): ..here. Removed addr. Added pre_size.
16876 * grub-core/kern/mm.c (base): Renamed to ...
16877 (grub_mm_base): ... this. Made global.
16878 (grub_real_malloc): Alloc from end of region.
16879 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
16880 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
16881 * grub-core/kern/powerpc/cache_flush.S: ... here.
16882 * grub-core/lib/efi/relocator.c: New file.
16883 * grub-core/lib/i386/relocator.c: Rewritten.
16884 * grub-core/lib/i386/relocator16.S: New file.
16885 * grub-core/lib/i386/relocator32.S: Likewise.
16886 * grub-core/lib/i386/relocator64.S: Likewise.
16887 * grub-core/lib/i386/relocator_asm.S: Rewritten.
16888 * grub-core/lib/i386/relocator_common.S: New file.
16889 * grub-core/lib/ieee1275/relocator.c: Likewise.
16890 * grub-core/lib/mips/relocator.c: Rewritten.
16891 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
16892 stylistic adjustments.
16893 * grub-core/lib/powerpc/relocator.c: New file.
16894 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
16895 * grub-core/lib/relocator.c: Rewritten.
16896 * grub-core/lib/x86_64/relocator_asm.S: New file.
16897 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
16898 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
16899 (bsd_tag): New struct.
16900 (tags): New variable.
16901 (tags_last): Likewise.
16902 (netbsd_module): New struct.
16903 (netbsd_mods): New variable.
16904 (netbsd_mods_last): Likewise.
16905 (openbsd_opts): New parameter "serial".
16906 (OPENBSD_SERIAL_ARG): New definition.
16907 (netbsd_opts): New parameter "serial".
16908 (NETBSD_SERIAL_ARG): New definition.
16909 (grub_freebsd_add_meta): Reorganised into ...
16910 (grub_bsd_add_meta): ...this. All users updated.
16911 (grub_freebsd_add_mmap): Reorganised into ...
16912 (generate_e820_mmap): ...this...
16913 (grub_bsd_add_mmap): ...and this. All users updated.
16914 (grub_freebsd_list_modules): Use tags.
16915 (grub_netbsd_add_meta_module): New function.
16916 (grub_netbsd_list_modules): Likewise.
16917 (grub_freebsd_boot): Use relocator and finish EFI.
16918 (grub_openbsd_boot): Likewise.
16919 (grub_netbsd_setup_video): New function.
16920 (grub_netbsd_add_modules): Likewise.
16921 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
16923 (grub_bsd_unload): Unload tags.
16924 (grub_bsd_load_aout): Use relocator.
16925 (grub_bsd_elf32_size_hook): New function.
16926 (grub_bsd_elf32_hook): Use relocator.
16927 (grub_bsd_elf64_size_hook): New function.
16928 (grub_bsd_elf64_hook): Use relocator.
16929 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
16930 (grub_bsd_load): Zero-out openbsd_ramdisk.
16931 (grub_bsd_load): Use relocator.
16932 (grub_cmd_openbsd): Support serial.
16933 (grub_cmd_netbsd): Support modules.
16934 (grub_cmd_freebsd_module): Use relocator.
16935 (grub_netbsd_module_load): New function.
16936 (grub_cmd_netbsd_module): Likewise.
16937 (grub_cmd_openbsd_ramdisk): Likewise.
16938 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
16940 (GRUB_MOD_FINI): Unregister new commands.
16941 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
16942 (grub_freebsd_load_elfmodule_obj): Use relocator.
16943 (grub_freebsd_load_elfmodule): Likewise.
16944 (grub_freebsd_load_elf_meta): Likewise.
16945 (grub_netbsd_load_elf_meta): New function.
16946 (grub_openbsd_find_ramdisk): Likewise.
16947 * grub-core/loader/i386/bsd_helper.S: Removed.
16948 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
16949 * grub-core/loader/i386/bsd_trampoline.S: Removed.
16950 * grub-core/loader/i386/efi/linux.c: Likewise.
16951 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
16952 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
16953 (DEFAULT_VIDEO_MODE): Likewise.
16954 (real_mode_target): New variable.
16955 (prot_mode_target): Likewise.
16956 (initrd_mem_target): Likewise.
16957 (relocator): Likewise.
16958 (efi_mmap_buf): Likewise.
16959 (efi_mmap_size): Likewise.
16960 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
16961 (free_pages): Use relocator.
16962 (allocate_pages): Account for efi_mmap and use relocator. Return error.
16963 (grub_linux_setup_video): Return error.
16964 (grub_linux_trampoline_start): Removed.
16965 (grub_linux_trampoline_end): Likewise.
16966 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
16967 andd video parameters depending on firmware.
16968 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
16969 [GRUB_MACHINE_EFI]: Pass EFI parameters.
16970 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
16971 (grub_cmd_initrd): Use relocator.
16972 * grub-core/loader/i386/linux_trampoline.S: Removed.
16973 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
16974 (elf_sec_entsize): Likewise.
16975 (elf_sec_shstrndx): Likewise.
16976 (elf_sections): Likewise.
16977 (grub_multiboot_load): Use relocator.
16978 (grub_multiboot_get_mbi_size): Account for sections.
16979 (grub_multiboot_make_mbi): Use relocator and support sections.
16980 (grub_multiboot_add_elfsyms): New function.
16981 (grub_multiboot_free_mbi): Free sections.
16982 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
16983 (grub_linux_real_target): Likewise.
16984 (grub_linux_real_chunk): Likewise.
16985 (grub_linux16_prot_size): Likewise.
16986 (grub_linux16_boot): Use relocator.
16987 (grub_linux_unload): Unload relocator.
16988 (grub_cmd_linux): Use relocator.
16989 (grub_cmd_initrd): Likewise.
16990 * grub-core/loader/i386/pc/ntldr.c: New file.
16991 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
16992 Don't try to guess CPU frequency.
16993 (grub_xnu_set_video): Stretch bitmap.
16994 (grub_xnu_boot): Use relocator.
16995 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
16996 (grub_linux_unload): Free relocator.
16997 (grub_linux_load32): Use relocator.
16998 (grub_linux_load64): Likewise.
16999 (grub_cmd_initrd): Likewise.
17000 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17001 (grub_multiboot_unload): Unload relocator.
17002 (grub_cmd_multiboot): Use relocator.
17003 (grub_cmd_module): Likewise.
17004 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17005 Use relocator and support sections.
17006 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17007 (elf_sec_entsize): Likewise.
17008 (elf_sec_shstrndx): Likewise.
17009 (elf_sections): Likewise.
17010 (grub_multiboot_load): Use relocator.
17011 (grub_multiboot_get_mbi_size): Account for sections.
17012 (grub_multiboot_make_mbi): Use relocator and support sections.
17013 (grub_multiboot_add_elfsyms): New function.
17014 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17015 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17016 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17017 Prototype changed. All users updated.
17018 (grub_xnu_align_heap): Simplified.
17019 (grub_xnu_writetree_toheap): Likewise.
17020 (grub_xnu_unload): Unload relocator.
17021 (grub_cmd_xnu_kernel): Use relocator.
17022 (grub_cmd_xnu_kernel64): Likewise.
17023 (grub_xnu_register_memory): Simplified.
17024 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
17025 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17027 (grub_console_checkkey): Likewise.
17028 (grub_console_getkey): Likewise.
17029 (grub_console_getwh): Likewise.
17030 (grub_console_getxy): Likewise.
17031 (grub_console_gotoxy): Likewise.
17032 (grub_console_cls): Likewise.
17033 (grub_console_setcolorstate): Likewise.
17034 (grub_console_setcursor): Likewise.
17035 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17036 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17037 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17038 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17039 * grub-core/tests/boot/kernel-8086.S: Likewise.
17040 * grub-core/tests/boot/kernel-i386.S: Likewise.
17041 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17042 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17043 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17044 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17045 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17046 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17047 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17048 * grub-core/tests/boot/linux.cfg: Likewise.
17049 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17050 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17051 * grub-core/tests/boot/linux16.cfg: Likewise.
17052 * grub-core/tests/boot/multiboot.cfg: Likewise.
17053 * grub-core/tests/boot/multiboot2.cfg: Likewise.
17054 * grub-core/tests/boot/ntldr.cfg: Likewise.
17055 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
17056 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
17057 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
17059 * include/grub/dl.h (grub_dl_unload_all): Removed.
17060 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
17061 (grub_efi_finish_boot_services): Change prototype.
17062 (grub_efi_is_finished): New variable.
17063 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
17065 (grub_efiemu_finish_boot_services): Removed.
17066 (grub_machine_efiemu_init_tables): New prototype.
17067 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
17068 (grub_elf64_phdr_iterate): Likewise.
17069 * include/grub/i386/bsd.h: Include relocator.h.
17070 (freebsd_tag_header): New struct.
17071 (grub_openbsd_bios_mmap): Removed.
17072 (grub_unix_real_boot): Removed.
17073 (grub_freebsd_load_elfmodule32): Changed prototype.
17074 (grub_freebsd_load_elfmodule_obj64): Likewise.
17075 (grub_freebsd_load_elf_meta32): Likewise.
17076 (grub_freebsd_load_elf_meta64): Likewise.
17077 (grub_freebsd_add_meta): Removed.
17078 (grub_netbsd_load_elf_meta32): New prototype.
17079 (grub_netbsd_load_elf_meta64): Likewise.
17080 (grub_bsd_add_meta): Likewise.
17081 (grub_openbsd_ramdisk_descriptor): New struct.
17082 (grub_openbsd_find_ramdisk32): New prototype.
17083 (grub_openbsd_find_ramdisk64): Likewise.
17084 * include/grub/i386/coreboot/loader.h: Removed.
17085 * include/grub/i386/efi/loader.h: Likewise.
17086 * include/grub/i386/ieee1275/loader.h: Likewise.
17087 * include/grub/i386/linux.h (linux_kernel_header): Change void *
17089 * include/grub/i386/loader.h: Removed.
17090 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
17092 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
17093 (grub_phys_addr_t): New type.
17094 (grub_vtop): New inline function.
17095 (grub_map_memory): Likewise.
17096 (grub_unmap_memory): Likewise.
17097 * include/grub/i386/multiboot/loader.h: Removed.
17098 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
17099 (NETBSD_BTINFO_CONSOLE): New definition.
17100 (NETBSD_BTINFO_SYMTAB): Likewise.
17101 (NETBSD_BTINFO_MODULES): Likewise.
17102 (NETBSD_BTINFO_FRAMEBUF): Likewise.
17103 (grub_netbsd_bootinfo): New struct.
17104 (grub_netbsd_btinfo_common): Use explicit bitsize.
17105 (grub_netbsd_btinfo_mmap_entry): Removed.
17106 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
17107 (grub_netbsd_btinfo_bootdisk): New struct.
17108 (grub_netbsd_btinfo_symtab): Likewise.
17109 (grub_netbsd_btinfo_serial): Likewise.
17110 (grub_netbsd_btinfo_modules): Likewise.
17111 (grub_netbsd_btinfo_framebuf): Likewise.
17112 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
17113 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
17115 (grub_openbsd_bootargs): Use explicit bitsize.
17116 (grub_openbsd_bootarg_console): New struct.
17117 (GRUB_OPENBSD_COM_MAJOR): New definition.
17118 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
17119 * include/grub/i386/pc/efiemu.h: Removed.
17120 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
17121 * include/grub/i386/qemu/loader.h: Removed.
17122 * include/grub/i386/relocator.h: Rewritten.
17123 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
17124 * include/grub/mips/memory.h: New file.
17125 * include/grub/mips/multiboot.h: Rewritten.
17126 * include/grub/mips/relocator.h: Rewritten.
17127 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
17128 (grub_vtop): New function.
17129 (grub_map_memory): Likewise.
17130 (grub_unmap_memory): Likewise.
17131 * include/grub/misc.h (ALIGN_DOWN): New definition.
17132 * include/grub/mm.h (grub_mm_check_real): New proto.
17133 (GRUB_MM_CHECK): New definition.
17134 * include/grub/mm_private.h: New file.
17135 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
17136 (grub_multiboot_get_mbi_size): Removed.
17137 (grub_multiboot_make_mbi): Change prottype.
17138 (grub_multiboot_set_accepts_video): New proto.
17139 (grub_multiboot_add_elfsyms): Likewise.
17140 (grub_multiboot_payload_eip): New variable.
17141 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
17143 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
17145 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
17146 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
17147 * include/grub/powerpc/ieee1275/loader.h: Removed.
17148 * include/grub/powerpc/memory.h: New file.
17149 * include/grub/powerpc/relocator.h: Likewise.
17150 * include/grub/relocator.h: Likewise.
17151 * include/grub/relocator_private.h: Likewise.
17152 * include/grub/sparc64/ieee1275/loader.h: Removed.
17153 * include/grub/x86_64/memory.h: New file.
17154 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
17155 (grub_xnu_heap_malloc): Likewise.
17156 (grub_xnu_heap_real_start): Removed.
17157 (grub_xnu_heap_start): Likewise.
17158 (grub_xnu_relocator): New variable.
17159 (grub_xnu_heap_target_start): Likewise.
17160 * tests/util/grub-shell.in: Support non-pc.
17161 * util/grub-mkimage.c (image_targets): Fix multiboot target.
17163 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17165 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
17167 (grub_bidi_logical_to_visual): Check that malloc succeded.
17168 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
17170 (grub_xputs_normal): Likewise.
17172 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17174 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
17177 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17179 * grub-core/efiemu/runtime/efiemu.sh: Removed.
17181 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17183 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
17185 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17187 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
17190 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
17192 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
17194 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17196 * grub-core/normal/term.c (print_more): Fix a memory leak.
17197 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
17198 (grub_xputs_normal): Likewise.
17200 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17202 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
17203 the begining of the string
17205 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17207 * grub-core/script/script.c (grub_script_parse): Free parsed on
17210 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17212 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
17215 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17217 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
17220 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17222 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
17223 (scroll_up): Fix a memory leak.
17225 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
17227 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
17230 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
17232 Handle USB pendrives exposed as floppies.
17234 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
17236 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17237 Check for partitions on all devices.
17239 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
17241 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
17242 (readkey): Likewise.
17244 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17246 Multiple variable names support to "export" command.
17248 * normal/context.c (grub_cmd_export): "export" command supports
17249 multiple variable names.
17251 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
17253 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
17254 --target=drive output to Mach device name.
17256 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17258 New Automake based build system for GRUB.
17260 * ABOUT-NLS: New file.
17261 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
17262 in Makefile.util.def file.
17263 * Makefile.util.def: New file. Autogen build definitions file for
17265 * conf/Makefile.common: New file. Common variables for GRUB host
17266 utils and target modules.
17267 * conf/Makefile.extra-dist: New file. Extra files for make dist.
17268 * docs/Makefile.am: New file. Automake file for docs.
17269 * gentpl.py: New file. Python script to generate Autogen
17271 * grub-core/Makefile.am: New file. GRUB target modules' rules
17272 that doesn't fit in Makefile.core.def file.
17273 * grub-core/Makefile.core.def: New file. Autogen build
17274 definitions file for GRUB target modules.
17275 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
17276 specific setjmp.S file.
17277 * po/Makefile.am: New file.
17279 * .bzrignore: New ignores.
17280 * INSTALL: New requirements, without Ruby.
17281 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
17282 * autogen.sh: Updated to invoke autogen as necessary.
17283 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
17284 and defines for Automake conditionals.
17285 * geninit.sh: Refactoring.
17287 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
17289 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
17292 * include/grub/test.h: Fix functional test modules' naming.
17293 * grub-core/tests/example_functional_test.c: Fix test module name.
17295 * util/misc.c: Hosted versions' of grub functions for libgrub.a
17296 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
17297 * util/grub-editenv.c: Likewise.
17298 * util/grub-fstest.c: Likewise.
17299 * util/grub-mkdevicemap.c: Likewise.
17300 * util/grub-mkfont.c: Likewise.
17301 * util/grub-mkimage.c: Likewise.
17302 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17303 * util/grub-probe.c: Likewise.
17304 * util/grub-script-check.c: Likewise.
17305 * util/i386/pc/grub-setup.c: Likewise.
17306 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17308 * tests/util/grub-shell.in: Fix override directory path.
17309 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
17310 * util/import_gcry.py: Create Makefile.gcry.def file instead.
17312 * util/lvm.c: Update #includes.
17313 * util/raid.c: Likewise.
17314 * util/resolve.c: Likewise.
17315 * grub-core/bus/emu/pci.c: Likewise.
17316 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
17317 * grub-core/lib/posix_wrap/string.h: Likewise.
17318 * grub-core/kern/emu/main.c: Likewise.
17320 * grub-core/gensymlist.sh: New file. Script for generating kernel
17322 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
17324 * grub-core/gentrigtables.c: Fix unused variable warnings.
17326 * Makefile.in: Removed.
17327 * conf/any-emu.rmk: Removed.
17328 * conf/common.rmk: Removed.
17329 * conf/i386-coreboot.rmk: Removed.
17330 * conf/i386-efi.rmk: Removed.
17331 * conf/i386-ieee1275.rmk: Removed.
17332 * conf/i386-multiboot.rmk: Removed.
17333 * conf/i386-pc.rmk: Removed.
17334 * conf/i386-qemu.rmk: Removed.
17335 * conf/i386.rmk: Removed.
17336 * conf/mips-yeeloong.rmk: Removed.
17337 * conf/mips.rmk: Removed.
17338 * conf/powerpc-ieee1275.rmk: Removed.
17339 * conf/sparc64-ieee1275.rmk: Removed.
17340 * conf/tests.rmk: Removed.
17341 * conf/x86-efi.rmk: Removed.
17342 * conf/x86_64-efi.rmk: Removed.
17343 * gendistlist.sh: Removed.
17344 * geninitheader.sh: Removed.
17345 * genkernsyms.sh.in: Removed.
17346 * genmk.rb: Removed.
17347 * gensymlist.sh.in: Removed.
17348 * mkinstalldirs: Removed.
17350 * grub-core/boot: ... to here.
17352 * grub-core/bus: ... to here.
17353 * commands: Moved ...
17354 * grub-core/commands: ... to here.
17356 * grub-core/disk: ... to here.
17357 * efiemu: Moved ...
17358 * grub-core/efiemu: ... to here.
17360 * grub-core/font: ... to here.
17362 * grub-core/fs: ... to here.
17363 * gencmdlist.sh: Moved ...
17364 * grub-core/gencmdlist.sh: ... to here.
17365 * genemuinit.sh: Moved ...
17366 * grub-core/genemuinit.sh: ... to here.
17367 * genemuinitheader.sh: Moved ...
17368 * grub-core/genemuinitheader.sh: ... to here.
17369 * genfslist.sh: Moved ...
17370 * grub-core/genfslist.sh: ... to here.
17371 * genhandlerlist.sh: Moved ...
17372 * grub-core/genhandlerlist.sh: ... to here.
17373 * genmoddep.awk: Moved ...
17374 * grub-core/genmoddep.awk: ... to here.
17375 * genmodsrc.sh: Moved ...
17376 * grub-core/genmodsrc.sh: ... to here.
17377 * genpartmaplist.sh: Moved ...
17378 * grub-core/genpartmaplist.sh: ... to here.
17379 * genparttoollist.sh: Moved ...
17380 * grub-core/genparttoollist.sh: ... to here.
17381 * genterminallist.sh: Moved ...
17382 * grub-core/genterminallist.sh: ... to here.
17383 * gentrigtables.c: Moved ...
17384 * grub-core/gentrigtables.c: ... to here.
17385 * genvideolist.sh: Moved ...
17386 * grub-core/genvideolist.sh: ... to here.
17387 * gettext: Moved ...
17388 * grub-core/gettext: ... to here.
17389 * gfxmenu: Moved ...
17390 * grub-core/gfxmenu: ... to here.
17391 * gnulib: Moved ...
17392 * grub-core/gnulib: ... to here.
17394 * grub-core/hello: ... to here.
17396 * grub-core/hook: ... to here.
17398 * grub-core/io: ... to here.
17400 * grub-core/kern: ... to here.
17402 * grub-core/lib: ... to here.
17403 * loader: Moved ...
17404 * grub-core/loader: ... to here.
17406 * grub-core/mmap: ... to here.
17407 * normal: Moved ...
17408 * grub-core/normal: ... to here.
17409 * partmap: Moved ...
17410 * grub-core/partmap: ... to here.
17411 * parttool: Moved ...
17412 * grub-core/parttool: ... to here.
17413 * script: Moved ...
17414 * grub-core/script: ... to here.
17416 * grub-core/term: ... to here
17417 * tests/example_functional_test.c: Moved ...
17418 * grub-core/tests/example_functional_test.c: ... to here.
17419 * tests/lib/functional_test.c: Moved ...
17420 * grub-core/tests/lib/functional_test.c: ... to here.
17421 * tests/lib/test.c: Moved ...
17422 * grub-core/tests/lib/test.c: ... to here.
17424 * grub-core/video: ... to here.
17426 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17428 Replace --enable-grub-emu-modules with grub-emu-lite.
17430 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
17433 * include/grub/emu/misc.h (grub_emu_init): New prototype.
17434 * kern/emu/full.c: New file. For grub-emu specific initialization.
17435 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
17436 * kern/emu/main.c: Call initialization function grub_emu_init.
17438 * Makefile.in: Include grub-emu-lite in install.
17439 * commands/parttool.c: Use grub_no_autoload to differentiate
17440 between grub-emu and grub-emu-lite.
17441 * include/grub/misc.h: New variable grub_no_autoload.
17443 * conf/any-emu.rmk: New rules for grub-emu-lite.
17444 * configure.ac: Remove --enable-grub-emu-modules.
17445 * genmk.rb: Cleanup unnecessary rules.
17446 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
17448 * normal/main.c: Don't load list files on grub-emu-lite.
17449 * util/misc.c (grub_arch_sync_caches): Removed.
17451 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
17453 * kern/mips/startup.S (grub_prefix): Update comment to refer to
17454 grub-mkimage rather than grub-mkelfimage.
17455 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17457 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
17459 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
17460 a key after CapsLock or NumLock. It's just a qemu bug.
17462 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17464 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
17465 needed by libusb wrapper.
17467 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17469 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
17471 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17473 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
17474 --nounzip is passed.
17476 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
17478 USB hotunplugging and USB serial support.
17480 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
17481 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
17482 (grub_uhci_transfer): Respect timeout and set *actual.
17483 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
17484 non-standard length.
17485 (grub_usb_device_attach): Autoload modules.
17486 (GRUB_MOD_INIT): Set grub_term_poll_usb.
17487 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
17488 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
17490 (grub_usb_add_hub): Fill nports and children.
17491 (attach_root_port): Receive hub instead of controller.
17492 All users updated. Fill hub->devices.
17493 (grub_usb_root_hub): Allocate hub->devices.
17494 (detach_device): New function.
17495 (poll_nonroot_hub): Fill children and detach devices.
17496 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
17497 actual arguments. All users updated.
17498 (grub_usb_bulk_read_extended): New function.
17499 * bus/usb/serial/common.c: New file.
17500 * bus/usb/serial/ftdi.c: Likewise.
17501 * bus/usb/serial/pl2303.c: Likewise.
17502 * commands/terminal.c (handle_command): Support wildcard.
17503 * commands/usbtest.c: Output "Unknown" instead of empty string.
17504 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
17505 (usbserial_common_mod_SOURCES): New variable.
17506 (usbserial_common_mod_CFLAGS): Likewise.
17507 (usbserial_common_mod_LDFLAGS): Likewise.
17508 (pkglib_MODULES): Add usbserial_pl2303.mod.
17509 (usbserial_pl2303_mod_SOURCES): New variable.
17510 (usbserial_pl2303_mod_CFLAGS): Likewise.
17511 (usbserial_pl2303_mod_LDFLAGS): Likewise.
17512 (pkglib_MODULES): Add usbserial_ftdi.mod.
17513 (usbserial_ftdi_mod_SOURCES): New variable.
17514 (usbserial_ftdi_mod_CFLAGS): Likewise.
17515 (usbserial_ftdi_mod_LDFLAGS): Likewise.
17516 (pkglib_MODULES): Add serial.mod.
17517 (serial_mod_SOURCES): New variable.
17518 (serial_mod_CFLAGS): Likewise.
17519 (serial_mod_LDFLAGS): Likewise.
17520 * conf/i386-pc.rmk: Likewise.
17521 * conf/mips-yeeloong.rmk: Likewise.
17522 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
17523 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
17524 * disk/usbms.c (first_available_slot): New variable.
17525 (grub_usbms_attach): Don't reuse free slots due to potential cache
17527 * include/grub/serial.h: Moved to ..
17528 * include/grub/ns8250.h: ...this.
17529 * include/grub/serial.h: New file.
17530 * include/grub/term.h (grub_term_poll_usb): New variable.
17531 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
17532 readkey. All users updated.
17533 (grub_terminfo_output_state): Pass term to put.
17534 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
17535 (grub_usb_controller_dev): Add timeout and actual arguments to
17536 transfer. All users updated.
17537 (grub_usb_interface): New field detach_data.
17538 (grub_usb_device): New fields children and nports.
17539 (grub_usb_ep_type_t): New type.
17540 (grub_usb_get_ep_type): New function.
17541 (grub_usb_bulk_read_extended): Likewise.
17542 * include/grub/usbdesc.h (grub_usb_desc): New type.
17543 * include/grub/usbserial.h: New file.
17544 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
17545 * kern/term.c (grub_term_poll_usb): New variable.
17546 (grub_getkey): Call grub_term_poll_usb if set.
17547 (grub_checkkey): Likewise.
17548 (grub_getkeystatus): Likewise.
17549 * term/serial.c: Moved controller-specific parts to ...
17550 * term/ns8250.c: ... here.
17551 * term/serial.c: Mostly rewritten.
17552 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
17555 2010-08-20 Robert Millan <rmh@gnu.org>
17557 Make kFreeBSD code more generic to support ext2fs as root, ufs as
17558 a separate module and maybe other interesting combinations.
17560 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
17561 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
17562 (kfreebsd_entry): Add generic filesystem module load routine.
17563 Map GRUB `ext2' to kFreeBSD `ext2fs'.
17565 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
17567 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
17568 "numcenter" (I misunderstood the purpose of this entry).
17569 * docs/grub.texi (sendkey): Likewise.
17571 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
17573 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
17574 status flag options; simply omitting the option is equivalent and
17575 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
17576 (keysym_table): Rename "num5numlock" to "numlock".
17577 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
17578 can uniformly say that only the last of multiple `sendkey'
17579 invocations has any effect.
17580 * docs/grub.texi (sendkey): New section.
17582 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
17584 * commands/i386/pc/sendkey.c (options): Fix three typos.
17586 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17588 Implement sendkey support.
17590 * commands/i386/pc/sendkey.c: New file.
17591 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
17592 (sendkey_mod_SOURCES): New variable.
17593 (sendkey_mod_CFLAGS): Likewise.
17594 (sendkey_mod_LDFLAGS): Likewise.
17596 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
17598 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
17599 fix warnings from Autoconf.
17601 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
17603 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
17604 to avoid false positives with some assemblers that output things
17605 like "someprefix_func" as part of their output.
17607 2010-08-15 Robert Millan <rmh@gnu.org>
17609 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
17611 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
17612 grub_get_libzfs_handle() errors.
17614 2010-08-14 Robert Millan <rmh@gnu.org>
17616 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
17617 filesystem is not ZFS.
17619 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17621 Fix for misspelled color names defaulting to black/black (bug
17622 reported by Doug Nazar)
17624 * include/grub/normal.h (grub_parse_color_name_pair): Add return
17625 status to prototype.
17626 * normal/color.c (grub_parse_color_name_pair): Return failure
17628 (grub_env_write_color_normal): Ignore bad color names.
17629 (grub_env_write_color_highlight): Likewise.
17630 * normal/main.c (GRUB_MOD_INIT): Set default color names.
17632 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17634 "shift" command support to GRUB script.
17636 * include/grub/script_sh.h (grub_script_shift): New prototype.
17637 * script/execute.c (grub_script_shift): New function.
17638 * script/main.c (grub_script_init): Register shift command.
17639 (grub_script_fini): Unregister shift command.
17640 * util/grub-script-check.c (grub_script_cmd_shift): New function.
17642 * tests/grub_script_shift.in: New testcase.
17643 * conf/tests.rmk: Rules for new testcase.
17645 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17647 "continue" command support to GRUB script.
17649 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
17650 (grub_script_break): Continue support.
17651 * script/main.c (grub_script_init): Register continue command.
17652 (grub_script_fini): Unregister continue command.
17654 * tests/grub_script_continue.in: New testcase.
17655 * conf/tests.rmk: Rules for new testcase.
17657 2010-08-12 BVK Chaitanya <bvk@dbook>
17659 "break" command support to GRUB script.
17661 * conf/common.rmk: Rule updates to grub-script-check.
17662 * include/grub/misc.h (grub_min): New function.
17663 * include/grub/script_sh.h (grub_script_init): New prototype.
17664 (grub_script_fini): New prototype.
17665 (grub_script_break): New prototype.
17666 * script/main.c (grub_script_init): New function.
17667 (grub_script_fini): New function.
17668 * script/execute.c (grub_script_break): New function.
17669 * normal/main.c: Calls to grub_script_{init,fini}.
17670 * util/grub-script-check.c (grub_script_break): New function.
17672 * tests/grub_script_break.in: New testcase.
17673 * conf/tests.rmk: Rules for new test case.
17675 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17677 Function parameters support to GRUB script.
17679 * script/yylex.l (VARIABLE): Regular expression update.
17680 * script/function.c (grub_script_function_call): Moved ...
17681 * script/execute.c (grub_script_function_call): ... to here.
17682 (grub_script_execute_arglist_to_argv): Removed.
17683 (grub_script_arglist_to_argv): New function.
17684 * script/argv.c: New file.
17685 (grub_script_argv_free): New function.
17686 (grub_script_argv_next): Likewise.
17687 (grub_script_argv_append): Likewise.
17688 (grub_script_argv_split_append): Likewise.
17689 * include/grub/script_sh.h (grub_script_argv): New struct.
17690 (grub_script_argv_free): New function.
17691 (grub_script_argv_next): Likewise.
17692 (grub_script_argv_append): Likewise.
17693 (grub_script_argv_split_append): Likewise.
17695 * conf/common.rmk (normal.mod): New source script/argv.c.
17697 * tests/grub_script_echo1.in: More tests.
17698 * tests/grub_script_vars1.in: Likewise.
17699 * tests/grub_script_functions.in: New test case.
17700 * conf/tests.rmk: Rules for new testcase.
17702 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17704 Remove grub_script_cmdblock struct.
17706 * include/grub/script_sh.h: Remove grub_script_cmdblock.
17707 * script/parser.y: Likewise.
17708 * script/execute.c: Rename cmdblock suffix to cmdlist.
17709 * script/script.c: Likewise.
17710 * util/grub-script-check.c: Likewise.
17712 2010-08-11 Yves Blusseau <blusseau@zetam.org>
17714 * .bzrignore: add grub-macho2img
17716 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
17718 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
17720 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
17722 Remove the dump of sm712 initialisation sequence.
17724 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
17725 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
17726 (GRUB_VGA_IO_MISC_WRITE): Likewise.
17727 (GRUB_VGA_CR_*): Added many registers.
17728 (GRUB_VGA_SR_*): Likewise.
17729 (GRUB_VGA_GR_*): Likewise.
17730 (grub_vga_write_arx): New function.
17731 (grub_video_hw_config): New struct.
17732 (grub_vga_set_geometry): New function.
17733 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
17734 GRUB_PCI_CLASS_SUBCLASS_VGA.
17735 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
17736 * video/sm712.c (grub_sm712_write_reg): New function
17737 (grub_sm712_read_reg): Likewise.
17738 (grub_sm712_sr_write): Likewise.
17739 (grub_sm712_gr_write): Likewise.
17740 (grub_sm712_cr_write): Likewise.
17741 (grub_sm712_write_arx): Likewise.
17742 (grub_sm712_cr_shadow_write): Likewise.
17743 (grub_sm712_write_dda_lookup): Likewise.
17744 (grub_video_sm712_setup): Initialise the video rather then
17745 blindly replay the dump.
17746 (main) [TEST]: Add a routine to be able to compile as standalone for
17748 * video/sm712_init.c (sm712_init): Removed.
17749 (sm712_sr_seq1): New array.
17750 (sm712_sr_seq2): Likewise.
17752 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
17754 * include/grub/vga.h: Add missing grub/pci.h include.
17756 2010-08-10 Yves Blusseau <blusseau@zetam.org>
17758 * util/grub-macho2img.c (main): fix typo
17760 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
17762 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
17763 (grub_vga_gr_read): Likewise.
17764 (grub_vga_cr_write): Likewise.
17765 (grub_vga_cr_read): Likewise.
17766 (grub_vga_sr_write): Likewise.
17767 (grub_vga_sr_read): Likewise.
17768 (grub_vga_palette_read): Likewise.
17769 (grub_vga_palette_write): Likewise.
17770 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
17771 (grub_sm712_sr_read): New function.
17772 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
17773 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
17775 2010-08-09 Robert Millan <rmh@gnu.org>
17777 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
17778 out unused variables on non-ZFS build.
17780 2010-08-08 Robert Millan <rmh@gnu.org>
17782 Fix path generation for sub-filesystems in ZFS.
17784 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
17787 2010-08-08 Robert Millan <rmh@gnu.org>
17789 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
17791 2010-08-08 Robert Millan <rmh@gnu.org>
17793 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
17794 exist, issue a proper error message (rely on `ls' for translated
17797 2010-08-08 Robert Millan <rmh@gnu.org>
17799 Fix grub-probe invocation.
17801 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
17803 2010-08-04 Robert Millan <rmh@gnu.org>
17805 * configure.ac: Remove checks for getfsstat() and getmntany().
17806 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
17807 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
17808 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
17809 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
17810 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
17812 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
17813 via find_mount_point_from_dir() and getfsstat() / getmntany().
17815 2010-08-04 Robert Millan <rmh@gnu.org>
17817 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17818 (grub_find_zpool_from_mount_point): Merge into ...
17819 (grub_find_zpool_from_dir): ... this.
17820 * kern/emu/misc.c: Likewise.
17823 (grub_make_system_path_relative_to_its_root): Replace
17824 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
17825 with grub_find_zpool_from_dir().
17826 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
17828 2010-08-04 Robert Millan <rmh@gnu.org>
17830 Support OpenSolaris in ZFS device resolution.
17832 * configure.ac: Check for getmntany().
17833 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
17834 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
17837 2010-08-03 Robert Millan <rmh@gnu.org>
17839 Fix grub-emu build.
17841 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
17842 * include/grub/emu/misc.h: ... here.
17844 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
17845 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
17847 * util/misc.c: Remove `<grub/util/libzfs.h>'.
17848 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
17849 (grub_get_libzfs_handle): Move to ...
17850 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
17851 (grub_get_libzfs_handle): ... here.
17853 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
17855 * script/execute.c (grub_script_execute_cmdline): Check for NULL
17856 as command name case.
17858 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
17860 * disk/raid.c (insert_array): Select unique numbers for named arrays
17861 as well, for use as keys in the disk cache.
17863 2010-08-01 Robert Millan <rmh@gnu.org>
17865 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
17866 kFreeBSD device name, except on ZFS where the filesystem label is
17868 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
17869 `/boot/zfs/zpool.cache'.
17870 Set mountfrom kernel variable using ${kfreebsd_device}.
17872 2010-08-01 Robert Millan <rmh@gnu.org>
17874 Make it even harder to use uninitialized `libzfs_handle' (and
17875 make the interface a bit simpler).
17877 * include/grub/util/misc.h (grub_util_init_libzfs)
17878 (libzfs_handle): Remove.
17879 (grub_get_libzfs_handle): New prototype.
17881 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
17883 (grub_util_init_libzfs): Remove.
17884 (grub_get_libzfs_handle): New function.
17886 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
17887 grub_get_libzfs_handle() to obtain a libzfs handle instead of
17888 accessing `libzfs_handle' directly.
17890 2010-08-01 Robert Millan <rmh@gnu.org>
17892 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17893 (grub_find_zpool_from_mount_point): New function prototypes.
17895 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
17896 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
17898 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
17899 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
17900 `static' attribute.
17902 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
17903 finding zpool from mount point into ...
17904 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
17906 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
17907 requested path is part of a ZFS pool, use
17908 grub_find_zpool_from_mount_point() to detect its filesystem name,
17909 and generate a path with `/fsname@path' syntax.
17911 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17913 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
17914 (void) rather than () so that this is a proper prototype.
17916 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17918 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
17920 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17922 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
17923 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
17925 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17927 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
17929 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17931 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
17933 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17935 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
17936 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
17937 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
17938 disable gfxpayload.
17939 (Shell-like scripting): Add real content.
17940 (Serial terminal): Suggest `terminal_input serial; terminal_output
17941 serial' rather than putting the two commands on separate lines,
17942 since console input will be inoperative after the first command.
17943 (menuentry): Document --class, --users, and --hotkey options.
17944 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
17945 Vladimir Serbinenko).
17947 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17948 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17950 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
17952 2010-08-01 Robert Millan <rmh@gnu.org>
17954 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17955 (grub_find_zpool_from_mount_point): New function prototypes.
17957 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
17958 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
17960 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
17961 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
17962 `static' attribute.
17964 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
17965 finding zpool from mount point into ...
17966 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
17968 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
17969 requested path is part of a ZFS pool, use
17970 grub_find_zpool_from_mount_point() to detect its filesystem name,
17971 and generate a path with `/fsname@path' syntax.
17973 2010-08-01 Robert Millan <rmh@gnu.org>
17975 Prevent accidental use of uninitialized libzfs_handle.
17977 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
17978 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
17979 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
17981 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17983 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
17984 util/grub.d/10_linux.in). Fixes Debian bug #591093.
17986 2010-08-01 Robert Millan <rmh@gnu.org>
17988 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
17990 2010-07-31 Robert Millan <rmh@gnu.org>
17992 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
17994 2010-07-31 Robert Millan <rmh@gnu.org>
17996 * kern/emu/misc.c: Add missing license header.
17998 2010-07-31 Robert Millan <rmh@gnu.org>
18000 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18002 * include/grub/util/libnvpair.h: Include `<config.h>'.
18003 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18004 declaring libnvpair prototypes ourselves.
18005 * include/grub/util/libzfs.h: Include `<config.h>'.
18006 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18007 declaring libzfs prototypes ourselves.
18009 (libzfs_handle): Moved to ...
18010 * include/grub/util/misc.h (libzfs_handle): ... here.
18011 Include `<grub/util/libzfs.h>'.
18013 2010-07-30 Robert Millan <rmh@gnu.org>
18015 * include/grub/emu/misc.h: Add missing license header.
18017 2010-07-30 Robert Millan <rmh@gnu.org>
18019 Enable `grub-probe -t device' resolution on ZFS.
18021 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18022 * include/grub/util/libnvpair.h: New file.
18023 * include/grub/util/libzfs.h: New file.
18025 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18026 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18027 `<grub/util/libnvpair.h>'.
18028 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18030 (find_mount_point_from_dir): New static function.
18031 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18033 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18034 find_root_device_from_libzfs() before ressorting to find_root_device().
18036 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18038 * util/misc.c: Include `<grub/util/libzfs.h>'.
18039 (grub_util_init_libzfs): New function.
18040 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18041 [HAVE_LIBZFS] (fini_libzfs): New static function.
18042 (grub_util_init_libzfs): New function.
18043 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18045 2010-07-30 Robert Millan <rmh@gnu.org>
18047 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18048 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18049 `warn_unused_result' attribute.
18050 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18051 (grub_xasprintf, grub_xvasprintf): Likewise.
18052 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
18054 2010-07-29 Robert Millan <rmh@gnu.org>
18056 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
18057 (probe): Handle `PRINT_FS_LABEL'.
18058 (main): Handle `-t fs_label'.
18060 2010-07-29 Robert Millan <rmh@gnu.org>
18062 * configure.ac: Remove grub-mkisofs checks.
18064 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18066 * util/ieee1275/grub-install.in: Don't use empty grub_device.
18067 Reported by: Lennart Sorensen.
18069 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18071 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
18072 prior to terminal_input/terminal_output separation. It's been over 1.5
18073 years and those versions weren't widely deployed.
18075 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
18077 * disk/raid.c (insert_array): Don't count named arrays when looking
18078 for unused array numbers.
18079 Reported and tested by: Michael Guntsche.
18081 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18083 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
18084 implementation of this so that grub-emu links again, with a note
18085 that this should support hotplugging in the future.
18087 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18089 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18091 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18093 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
18095 (grub_loopback_close): Remove empty function.
18096 (grub_loopback_dev): Remove close method.
18098 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18100 Disable EFI cursor when the EFI console becomes inactive.
18102 * term/efi/console.c (grub_efi_console_init): New function.
18103 (grub_efi_console_fini): New function.
18104 (grub_console_term_output): Register init and fini methods.
18106 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18108 * tests/util/grub-shell-tester.in: Remove bashism and declare as
18111 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18113 * disk/loopback.c (grub_loopback): Replace filename with file.
18114 (delete_loopback): Handle new semantics.
18115 (grub_cmd_loopback): Likewise.
18116 (grub_loopback_iterate): Likewise.
18117 (grub_loopback_close): Likewise.
18119 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18121 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
18123 Reported by: Tito Keitel.
18125 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18127 * docs/grub.texi (Naming convention): Document new naming convention.
18129 2010-07-20 Vadim Solomin <vadic052@gmail.com>
18130 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18132 Generate device.map in something closer to the old ordering.
18134 * util/deviceiter.c (struct device): New declaration.
18135 (compare_file_names): Rename to ...
18136 (compare_devices): ... this. Sort by kernel name in preference to
18137 the stable by-id name, but keep the latter as a fallback comparison.
18138 Update header comment.
18139 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
18140 of `struct device' rather than of plain file names.
18142 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
18144 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
18147 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18149 * commands/acpi.c (setup_common_tables): Use sizeof instead of
18151 (setv1table): Likewise.
18153 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18155 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
18156 removing the homehost if present.
18157 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
18158 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
18159 removing the homehost if present.
18160 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
18162 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
18164 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
18165 parameter. Set its pointer target to 0.
18166 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
18167 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
18168 `data_offset' value from the superblock for 1.x metadata.
18169 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
18170 data on the device.
18171 (insert_array): Record the start sector of data on the device.
18172 (grub_raid_register): Pass start_sector parameters to
18173 grub_raid_list->detect and insert_array.
18174 * include/grub/raid.h (struct grub_raid_array): Add start_sector
18176 (struct grub_raid): Add start_sector parameter to `detect'.
18178 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
18179 __attribute__ ((packed)), leaving a comment.
18180 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
18181 (grub_mdraid_detect_09): ... here and ...
18182 (grub_mdraid_detect_1x): ... here.
18184 2010-07-20 Peter Henn <peter.henn@web.de>
18186 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
18187 chunk size and disk size, which are already given as sector counts
18188 as distinct from the 0.90 units. Fetch the correct device number
18189 from the role table instead of using the table index.
18191 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
18193 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
18194 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
18195 (WriteMostly1): New macro.
18196 Set array->name to NULL for metadata format 0.90. Add support for
18197 metadata 1.x. Fix some comments.
18198 * disk/raid.c (): Add support for name based RAID arrays. Fix a
18200 * util/getroot.c (grub_util_get_grub_dev): Add support for
18201 /dev/md/name style devices.
18203 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
18205 * .bzrignore: Ignore 20_linux_xen.
18207 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
18209 * util/import_unicode.py: Remove unnecessary imports.
18211 2010-07-17 Aleš Nesrsta <starous@volny.cz>
18213 Hotplugging and USB hub support.
18215 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
18216 (grub_ohci): Likewise.
18217 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
18218 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
18219 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
18220 (GRUB_OHCI_CTRL_EDS): Likewise.
18221 (GRUB_OHCI_BULK_EDS): Likewise.
18222 (GRUB_OHCI_TDS): Likewise.
18223 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
18224 (grub_ohci_ed_phys2virt): New function.
18225 (grub_ohci_virt_to_phys): Likewise.
18226 (grub_ohci_td_phys2virt): Likewise.
18227 (grub_ohci_td_virt2phys): Likewise.
18228 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
18230 (grub_ohci_find_ed): New function.
18231 (grub_ohci_alloc_td): Likewise.
18232 (grub_ohci_free_td): Likewise.
18233 (grub_ohci_free_tds): Likewise.
18234 (grub_ohci_transfer): Use previously allocated memory.
18235 (grub_ohci_portstatus): Reset status changed bit.
18236 (grub_ohci_detect_dev): Supply status changed.
18237 (grub_ohci_fini_hw): Free memory.
18238 (grub_ohci_restore_hw): Reallocate memory.
18239 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
18240 Reset status change.
18241 (grub_uhci_detect_dev): Supply status_change.
18242 * bus/usb/usb.c (attach_hooks): New var.
18243 (grub_usb_device_attach): New function.
18244 (grub_usb_register_attach_hook_class): Likewise.
18245 (grub_usb_unregister_attach_hook_class): Likewise.
18246 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
18247 (grub_usb_add_hub): Reset connection changed bit.
18248 (attach_root_port): New function.
18249 (grub_usb_root_hub): Likewise.
18250 (poll_nonroot_hub): Likewise.
18251 (grub_usb_poll_devices): Likewise.
18252 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
18253 * disk/usbms.c (grub_usbms_open): Use device hooks.
18254 (grub_usbms_iterate) :Poll devices.
18255 (grub_usbms_finddevs): Split into ...
18256 (grub_usbms_attach): ... this ...
18257 (grub_usbms_attach): ... and this.
18258 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
18260 (grub_usb_interface): New fields attached and detach_hook.
18261 (grub_usb_attach_hook_class): New type.
18262 (grub_usb_attach_desc): New struct.
18263 (grub_usb_register_attach_hook_class): New function.
18264 (grub_usb_unregister_attach_hook_class): Likewise.
18265 (grub_usb_poll_devices): Likewise.
18266 (grub_usb_device_attach): Likewise.
18267 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
18268 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
18270 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18272 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
18273 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
18274 delta determination style. Works with most NetBSD partitions too.
18276 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18278 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
18279 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
18281 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
18283 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
18285 2010-07-14 Anton Blanchard <anton@samba.org>
18287 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
18290 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18292 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
18294 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18296 * kern/partition.c (grub_partition_check_containment): New function to
18297 check that a partition is physically contained in a parent. Since
18298 offsets are relative (and non-negative), this reduces to checking that
18299 the partition ends before its parent.
18300 (grub_partition_map_probe): Discard out-of-range sub-partitions.
18301 (grub_partition_iterate): Likewise.
18302 * include/grub/partition.h (grub_partition_map): Slightly more detailed
18304 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
18305 partitions that start before their parent, and add debug printfs.
18307 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18309 * Makefile.in (.SUFFIX): Spell correctly, as ...
18310 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
18311 bare module name without `.mod', e.g. `test') tried to invoke a
18314 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
18316 * README: Point to the Info manual.
18318 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
18320 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
18321 2nd superblock position from partition size.
18323 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
18325 * Makefile.in (MAINTAINER_CLEANFILES): Remove
18326 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
18327 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
18330 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18332 Restructure SCSI .id handling.
18333 Reported and tested by: Aleš Nesrsta.
18335 * disk/ata.c (grub_atapi_close): Removed. All users updated.
18336 (grub_atapi_dev): Changed .name to "ata". New field .id.
18337 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
18338 (grub_usbms_dev): New field .id.
18339 * disk/scsi.c (grub_scsi_iterate): Generate name.
18340 (grub_scsi_open): Parse name.
18341 * include/grub/scsi.h (grub_make_scsi_id): New function.
18342 (grub_scsi_dev): Change iterate and open to number instead of naming
18343 busses. All users updated.
18344 (grub_scsi): Remove name. Add .bus.
18346 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18348 * commands/help.c (grub_cmd_help): Fix a typo.
18350 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18352 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
18353 Reported and tested by: Colin Watson.
18355 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18357 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
18360 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18362 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
18364 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
18366 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
18369 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18371 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
18372 and disk/raid6_recover.c.
18373 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18374 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
18376 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18378 * term/gfxterm.c (repaint_schedulded): Rename to ...
18379 (repaint_scheduled): ... this. Update all callers.
18380 (repaint_was_schedulded): Rename to ...
18381 (repaint_was_scheduled): ... this. Update all callers.
18383 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18385 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
18386 which we expect to be handled by upper layers.
18388 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
18390 * bus/usb/usbhub.c: #include time.h header.
18392 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18394 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
18395 entry_name also for entries without stat blocks (e.g. ".."); fixes
18396 corruption of the first entry in a directory.
18398 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18400 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
18401 after setting gfxterm as the active terminal. GRUB_BACKGROUND
18402 doesn't work otherwise.
18404 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18406 * docs/grub.texi (Features): Update list of supported file systems.
18407 (GNU/Linux): Update for GRUB 2.
18408 (Serial terminal): Remove mention of --disable-serial, which was a
18409 GRUB Legacy configure option. Update instructions to use
18410 `terminal_input' and `terminal_output' rather than `terminal'.
18411 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
18412 configuration' and `Installing GRUB using grub-install'.
18413 (Menu entry editor): Update for GRUB 2.
18414 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
18415 Document new -a, -u, and -v options.
18416 (initrd): New section.
18417 (initrd16): New section.
18418 (linux): New section.
18419 (linux16): New section.
18420 (search): The `var' argument to `--set' is optional.
18421 (GRUB only offers a rescue shell): Go into a little more detail on
18424 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18426 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
18428 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18430 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
18431 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
18433 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18435 * util/i386/pc/grub-setup.c (setup): Rename prefix to
18436 install_prefix, in line with install_dos_part and install_bsd_part.
18437 Add new prefix variable, which is copied to install_prefix after
18438 comparing core.img in memory with the one read from disk in the
18439 no-embedding case, and use that rather than overwriting
18440 install_prefix immediately when installing to a partition.
18441 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
18444 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18446 * configure.ac: Avoid == in test command, it's not portable.
18447 * util/grub.d/30_os-prober.in: Likewise.
18449 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
18451 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
18453 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18455 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
18456 multiple (top-level) partmaps.
18458 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18460 * util/i386/efi/grub-install.in: Don't use empty grub_device.
18461 Reported by: Tino Keitel.
18463 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18465 Bidi and diacritics support.
18467 * Makefile.in (widthspec.bin): New target.
18468 (widthspec.h): Likewise.
18469 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
18470 * autogen.sh: Generate unidata.c.
18471 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
18472 * commands/ls.c (grub_ls_list_devices): Likewise.
18473 (grub_ls_list_files): Likewise.
18474 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
18475 (grub_mini_cmd_lsmod): Likewise.
18476 * commands/read.c: Likewise.
18477 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
18478 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
18479 * lib/arg.c (grub_arg_show_help): Likewise.
18480 * lib/crypto.c (grub_password_get): Likewise.
18481 * normal/auth.c (grub_username_get): Likewise.
18482 * normal/misc.c (grub_normal_print_device_info): Likewise.
18483 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
18484 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
18485 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
18486 (normal/charset.c_DEPENDENCIES): New variable.
18487 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
18488 (pkglib_MODULES): Remove charset.mod.
18489 (charset_mod_SOURCES): Removed.
18490 (charset_mod_CFLAGS): Likewise.
18491 (charset_mod_LDFLAGS): Likewise.
18492 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
18493 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
18495 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18496 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18497 (kernel_img_HEADERS): Add terminfo.h.
18498 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
18499 Fill ->font. Reverse ascii bitmaps.
18500 (grub_font_get_xheight): New function.
18501 * font/font.c (grub_font_get_string_width): Moved from here ...
18502 * gfxmenu/font.c (grub_font_get_string_width): ... here.
18503 * font/font.c (grub_font_draw_string): Moved from here ...
18504 * gfxmenu/font.c (grub_font_draw_string): ... here.
18505 * font/font.c (grub_font_dup_glyph): New function.
18506 (grub_font_blit_glyph): Likewise.
18507 (grub_font_blit_glyph_mirror): Likewise.
18508 (blit_comb): Likewise.
18509 (grub_font_construct_dry_run): Likewise.
18510 (grub_font_get_constructed_device_width): Likewise.
18511 (grub_font_construct_glyph): Likewise.
18512 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
18513 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
18514 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
18515 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
18516 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
18517 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
18518 (grub_font_get_xheight): New proto.
18519 (grub_font_get_constructed_device_width): Likewise.
18520 (grub_font_construct_glyph): Likewise.
18521 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
18522 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
18523 * include/grub/font.h (grub_font_draw_string): Moved from here ...
18524 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
18525 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
18526 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
18527 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
18528 (grub_console_getcharwidth): Likewise.
18529 * include/grub/misc.h (grub_xputs): New proto.
18530 (grub_puts): Inlined.
18531 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
18532 (grub_normal_get_line_counter): Removed.
18533 (grub_install_newline_hook): Likewise.
18534 (grub_normal_get_char_counter): New proto.
18535 (grub_normal_reset_more): Likewise.
18536 (grub_xputs_normal): Likewise.
18537 * include/grub/powerpc/ieee1275/console.h: Removed.
18538 * include/grub/sparc64/ieee1275/console.h: Likewise.
18539 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
18540 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
18541 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
18542 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
18543 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
18544 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
18545 (grub_term_input): Pass reference to self. All users updated.
18546 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
18547 Pass reference to self. New fields normal_color, highlight_color and
18548 data. All users updated.
18549 (grub_putchar): Removed.
18550 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
18551 (grub_unicode_estimate_width): New function.
18552 (grub_term_getcharwidth): Add defaults.
18553 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
18554 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
18555 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
18556 (grub_cls): Remove EXPORT_FUNC.
18557 (grub_setcolorstate): Inline.
18558 (grub_newline_hook): Removed.
18559 * include/grub/terminfo.h: Rewritten. All users updated.
18560 * include/grub/unicode.h: New file.
18561 * include/grub/video.h (grub_video_signed_rect): New type.
18562 * kern/emu/console.c (grub_console_highlight_color): Removed.
18563 (grub_console_normal_color): Likewise.
18564 (grub_console_standard_color): Made static.
18565 (grub_ncurses_putchar): Remove mapping.
18566 (grub_ncurses_getcharwidth): Removed.
18567 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
18568 (grub_ncurses_setcolor): Removed.
18569 (grub_ncurses_getcolor): Likewise.
18570 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
18571 (grub_console_putchar): ... this.
18572 (grub_console_putchar): Handle argument difference.
18573 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
18574 console_init_early and console_init_lately.
18575 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
18576 * kern/misc.c (grub_puts): Removed.
18577 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
18578 (grub_vsnprintf_real): Remove str = NULL support.
18579 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
18580 * normal/charset.c (grub_utf8_to_ucs4): ... here.
18581 * kern/term.c (grub_putcode): Renamed to ...
18582 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
18583 (grub_putchar): Removed.
18584 (grub_xputs_dumb): New function.
18585 (grub_xputs): New variable.
18586 * lib/charset.c: Move from here ...
18587 * normal/charset.c: ... to here.
18588 (grub_ucs4_to_utf8): New function.
18589 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
18590 (join_types): New variable.
18591 (unpack_join): New function.
18592 (bidi_types): New variable.
18593 (unpack_bidi): New function.
18594 (get_bidi_type): Likewise.
18595 (get_join_type): Likewise.
18596 (is_mirrored): Likewise.
18597 (grub_unicode_get_comb_type): Likewise.
18598 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
18599 (is_type_after): Likewise.
18600 (grub_unicode_aglomerate_comb): Likewise.
18601 (bidi_line_wrap): Likewise.
18602 (grub_bidi_line_logical_to_visual): Likewise.
18603 (grub_bidi_logical_to_visual): Likewise.
18604 (grub_unicode_mirror_code): Likewise.
18605 (grub_unicode_shape_code): Likewise.
18606 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
18607 Don't use grub_putchar.
18608 * normal/main.c (grub_normal_init_page): Use grub_putcode.
18609 (grub_normal_reader_init): Likewise.
18610 (grub_xputs_saved): New variable.
18611 (GRUB_MOD_INIT): Set grub_xputs.
18612 (GRUB_MOD_FINI): Restore grub_xputs.
18613 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
18614 (menu_init): Avoid printing gfxmenu error.
18615 (show_menu): Use grub_normal_get_char_counter.
18616 * normal/menu_entry.c (update_screen): Fix out-of-array.
18617 (complete): Avoid NULL dereferencing.
18618 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
18619 * normal/menu_text.c (print_spaces): Removed.
18620 (grub_print_ucs4): Likewise.
18621 (grub_print_message_indented): Use grub_print_ucs4.
18622 (print_message): Use grub_putcode.
18623 (print_entry): Hanlde diacritics.
18624 * normal/term.c (term_state): New type.
18625 (grub_more_lines): Removed.
18626 (term_states): New variable.
18627 (grub_normal_line_counter): Renamed to ..
18628 (grub_normal_char_counter): ...this. All users updated.
18629 (grub_normal_get_line_counter): Renamed to ...
18630 (grub_normal_get_char_counter): ... this.
18631 (grub_normal_reset_more): New function.
18632 (process_newline): Removed.
18633 (print_more): New function.
18634 (grub_install_newline_hook): Removed.
18635 (map_code): New function.
18636 (grub_puts_terminal): Use grub_print_ucs4.
18637 (putglyph): New function.
18638 (putcode_real): Likewise.
18639 (grub_putcode): Use putcode_real.
18640 (get_maxwidth): New function.
18641 (get_startwidth): Likewise.
18642 (print_ucs4_terminal): Likewise.
18643 (find_term_state): Likewise.
18644 (put_glyphs_terminal): Likewise.
18645 (print_backlog): Likewise.
18646 (print_ucs4_real): Likewise.
18647 (grub_print_ucs4): Likewise.
18648 (grub_xputs_normal): Likewise.
18649 * term/efi/console.c (grub_console_putchar): Output diacritics.
18650 (grub_console_getcharwidth): Removed.
18651 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
18652 * term/gfxterm.c (clear_char): Free chars.
18653 (scroll_up): Avoid leaking memory.
18654 (grub_gfxterm_putchar): Support diacritics.
18655 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
18656 * term/i386/pc/console.c (grub_console_term_output): Declare as
18657 GRUB_TERM_CODE_TYPE_VGA.
18658 * term/i386/pc/vga.c (grub_vga_term): Declare as
18659 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
18660 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
18661 GRUB_TERM_CODE_TYPE_VGA.
18662 * term/i386/vga_common.c (map_char): Removed.
18663 (grub_console_putchar): Likewise.
18664 (grub_console_getcharwidth): Likewise.
18665 * term/ieee1275/ofconsole.c: Simplify using terminfo.
18666 (colors): Reordered to match terminfo.
18667 (grub_ofconsole_normal_color): Removed.
18668 (grub_ofconsole_writeesc): Likewise.
18669 (grub_ofconsole_highlight_color): Likewise.
18670 (grub_ofconsole_getcharwidth): Likewise.
18671 (grub_ofconsole_setcolorstate): Likewise.
18672 (grub_ofconsole_setcolor): Likewise.
18673 (grub_ofconsole_getcolor): Likewise.
18674 (grub_ofconsole_readkey): Renamed to ...
18675 (readkey): ... this. Remove escape sequence handling. Return -1 on no
18677 (grub_ofconsole_checkkey): Removed.
18678 (grub_ofconsole_getkey): Likewise.
18679 (grub_ofconsole_getxy): Likewise.
18680 (grub_ofconsole_gotoxy): Likewise.
18681 (grub_ofconsole_cls): Likewise.
18682 (grub_ofconsole_refresh): Likewise.
18683 (grub_ofconsole_terminfo_input): New struct.
18684 (grub_ofconsole_terminfo_output): Likewise.
18685 (grub_ofconsole_term_input): Use terminfo.
18686 (grub_ofconsole_term_output): Likewise.
18687 (grub_console_init): Split into ...
18688 (grub_console_init_early): ...this and ...
18689 (grub_console_init_lately): ...this. Use terminfo.
18690 (grub_ofconsole_putchar): Renamed to ...
18691 (put): ... this. Remove mapping.
18692 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
18693 * term/serial.c: Simplify using terminfo.
18696 (keep_track): Likewise.
18697 (registered): Likewise.
18698 (input_buf): Likewise.
18699 (npending): Likewise.
18700 (serial_translate_key_sequence): Likewise.
18701 (fill_input_buf): Likewise.
18702 (grub_serial_checkkey): Likewise.
18703 (grub_serial_getkey): Likewise.
18704 (grub_serial_getxy): Likewise.
18705 (grub_serial_gotoxy): Likewise.
18706 (grub_serial_putchar): Likewise.
18707 (grub_serial_cls): Likewise.
18708 (grub_serial_setcolorstate): Likewise.
18709 (grub_serial_setcursor): Likewise.
18710 (serial_hw_init): Use serial_hw_fetch.
18711 (grub_serial_terminfo_input): New variable.
18712 (grub_serial_terminfo_output): Likewise.
18713 (grub_serial_term_input): Use terminfo.
18714 (grub_serial_term_output): Likewise.
18715 * term/terminfo.c (putstr): Use put.
18716 (grub_terminfo_all_free): New function
18717 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
18718 (grub_terminfo_output_register): New function.
18719 (grub_terminfo_output_unregister): Likewise.
18720 (grub_terminfo_getxy): Likewise.
18721 (grub_terminfo_readkey): Likewise.
18722 (grub_terminfo_checkkey): Likewise.
18723 (grub_terminfo_getkey): Likewise.
18724 (grub_terminfo_input_init): Likewise.
18725 (print_terminfo): Likewise.
18726 (grub_cmd_terminfo): Handle encoding.
18727 (grub_terminfo_gotoxy): Track position.
18728 (grub_terminfo_cls): Likewise.
18729 (grub_terminfo_putchar): Likewise.
18730 (grub_terminfo_setcolorstate): Handle colors
18731 (grub_terminfo_cursor_on): This ...
18732 (grub_terminfo_cursor_off): ... and this merged into ...
18733 (grub_terminfo_setcursor): ... this.
18734 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
18735 * unicode/ArabicShaping.txt: New file (imported from Unicode).
18736 * unicode/BidiMirroring.txt: Likewise.
18737 * unicode/UnicodeData.txt: Likewise.
18738 * unicode/COPYING: Likewise.
18739 * util/grub-editenv.c (grub_putchar): Removed.
18740 (grub_xputs_real): New function.
18741 (grub_xputs): New variable.
18742 * util/grub-fstest.c (grub_putchar): Removed.
18743 (grub_xputs_real): New function.
18744 (grub_xputs): New variable.
18745 * util/grub-mkdevicemap.c (grub_putchar): Removed.
18746 (grub_xputs_real): New function.
18747 (grub_xputs): New variable.
18748 * util/grub-probe.c (grub_putchar): Removed.
18749 (grub_xputs_real): New function.
18750 (grub_xputs): New variable.
18751 * util/grub-script-check.c (grub_putchar): Removed.
18752 (grub_xputs_real): New function.
18753 (grub_xputs): New variable.
18754 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
18755 (grub_xputs_real): New function.
18756 (grub_xputs): New variable.
18757 * util/import_unicode.py: New file.
18758 * util/grub-mkfont.c (ft_errmsgs): New array.
18759 (grub_glyph_info): Make bitmap a pointer.
18760 (file_formats): New type WIDTH_SPEC.
18761 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
18762 (options): Add width-spec.
18764 (add_char): Renamed to ...
18765 (add_glyph): ... this.
18766 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
18767 (glyph_replace): New type.
18768 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
18769 (add_char): New function.
18770 (add_subst): Likewise.
18771 (process_cursive): Likewise.
18772 (add_font): Handle GSUB.
18773 (write_font_width_spec): New function.
18774 (main): Sort glyphs.
18775 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
18776 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
18777 * kern/term.c (grub_cls): Moved from here...
18778 * normal/term.c (grub_cls): ... here.
18780 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18782 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
18783 suitable for using within the format argument of printf when
18784 converting grub_size_t.
18785 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
18786 "x" to convert grub_size_t arguments.
18788 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18790 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
18792 (list_get_minimal_size): Take selection box into account.
18794 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18796 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
18799 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18801 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
18802 devices when iterating over /dev/disk/by-id; they will be handled
18803 later if appropriate, which they aren't always (e.g. LVM).
18805 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18807 * include/grub/misc.h (grub_reboot): Declare as noreturn.
18808 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
18810 (grub_halt): Likewise.
18811 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
18813 (grub_halt): Don't return, even if all of shut-down, power-off, and
18816 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18818 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
18819 arguments, not three.
18821 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18823 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
18824 * util/grub.d/10_linux.in: Use it to check for LVM, so that
18825 LVM-on-RAID is handled correctly.
18827 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18829 * docs/grub.texi (Changes from GRUB Legacy): New section.
18830 (Future): Fix typo.
18832 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18834 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
18835 grub.d/README accidentally ends up executable for one reason or
18836 another. Ignore it.
18838 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18840 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
18841 (gpt_partition_map_iterate): Support non-512B sectors.
18843 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18845 * kern/efi/init.c (grub_efi_init): Disable watchdog.
18846 Tested by: Seth Goldberg.
18848 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18850 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
18851 Properly align mbi.
18852 Reported by: Seth Goldberg.
18854 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18856 * util/grub-mkrescue.in: Avoid module duplication.
18858 2010-07-01 Sean Finney <seanius@seanius.net>
18860 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
18862 2010-07-01 Sean Finney <seanius@seanius.net>
18864 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
18866 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18868 * disk/lvm.c (grub_lvm_checkvalue): New function.
18869 (grub_lvm_check_flag): Likewise.
18871 2010-07-01 Robert Millan <rmh@gnu.org>
18873 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
18874 Support 'p' as partition separator on kernel of FreeBSD (used
18876 (grub_util_biosdisk_get_grub_dev): Likewise.
18878 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18880 Yeeloong firmware port.
18882 * boot/mips/yeeloong/fwstart.S: New file.
18883 * bus/cs5536.c (gpiodump): New const.
18884 (set_io_space): New function.
18885 (set_iod): Likewise.
18886 (set_p2d): Likewise.
18887 (grub_cs5536_init_geode): Likewise.
18888 * commands/mips/yeeloong/lsspd.c: New file.
18889 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
18890 (serial_mod_SOURCES): New variable.
18891 (serial_mod_CFLAGS): Likewise.
18892 (serial_mod_LDFLAGS): Likewise.
18893 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
18894 term/terminfo.c and term/tparm.c.
18895 (pkglib_IMAGES): Add fwstart.img.
18896 (fwstart_img_SOURCES): New variable.
18897 (fwstart_img_CFLAGS): Likewise.
18898 (fwstart_img_ASFLAGS): Likewise.
18899 (fwstart_img_LDFLAGS): Likewise.
18900 (fwstart_img_FORMAT): Likewise.
18901 (pkglib_MODULES): Add lsspd.mod.
18902 (lsspd_mod_SOURCES): New variable.
18903 (lsspd_mod_CFLAGS): Likewise.
18904 (lsspd_mod_LDFLAGS): Likewise.
18905 (pkglib_MODULES): Add halt.mod.
18906 (halt_mod_SOURCES): New variable.
18907 (halt_mod_CFLAGS): Likewise.
18908 (halt_mod_LDFLAGS): Likewise.
18909 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
18910 (serial_mod_SOURCES): Removed.
18911 (serial_mod_CFLAGS): Likewise.
18912 (serial_mod_LDFLAGS): Likewise.
18913 * disk/ata.c (check_device): New function.
18914 (grub_ata_device_initialize): Use check_device.
18915 (grub_ata_iterate): Recheck devices.
18916 (grub_ata_open): Likewise.
18917 (grub_atapi_iterate): Likewise.
18918 (grub_atapi_open): Likewise.
18919 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
18920 (GRUB_ATA_CH1_PORT1): Likewise.
18921 (GRUB_ATA_CH0_PORT2): Likewise.
18922 (GRUB_ATA_CH1_PORT2): Likewise.
18923 * include/grub/mips/loongson.h: New file.
18924 * include/grub/mips/yeeloong/ec.h: Likewise.
18925 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
18926 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
18927 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
18928 * include/grub/misc.h (grub_halt): Declare as noreturn.
18929 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
18930 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
18931 (UART_ENABLE_FIFO_TRIGGER1): New definition.
18932 (UART_ENABLE_DTRRTS): Likewise.
18933 (UART_ENABLE_MODEM): Removed.
18934 (UART_ENABLE_OUT2): New const.
18935 * include/grub/term.h (grub_term_register_input_active): New function.
18936 (grub_term_register_output_active): Likewise.
18937 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
18939 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
18940 (init_pci): New function.
18941 (grub_machine_init): Execute platform init when firmware. Init serial.
18942 (grub_halt): Implement.
18943 (grub_exit): Likewise.
18944 (grub_reboot): Likewise.
18945 * term/serial.c (serial_hw_init): Update macros.
18946 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
18947 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
18948 (image_targets): New target mipsel-yeeloong-flash.
18949 (generate_image): Support IMAGE_YEELOONG_FLASH.
18950 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
18951 (grub_video_sm712_setup): Init card.
18952 (grub_video_sm712_set_palette): Removed.
18953 * video/sm712_init.c: New file.
18955 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
18957 * Makefile.in (install-local): Temporarily prepend $(builddir) to
18958 PATH when running help2man and then run it on the unadorned
18959 executable names, rather than passing $(builddir)/* paths to
18960 help2man. This avoids the build directory ending up in generated
18963 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
18965 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
18966 to avoid accidents when debugging with 'sh -x'.
18967 * util/grub-mkrescue.in: Likewise.
18968 * util/grub.d/00_header.in: Likewise.
18969 * util/grub.d/10_hurd.in: Likewise.
18970 * util/grub.d/10_kfreebsd.in: Likewise.
18971 * util/grub.d/10_linux.in: Likewise.
18972 * util/grub.d/10_netbsd.in: Likewise.
18973 * util/grub.d/10_windows.in: Likewise.
18974 * util/grub.d/20_linux_xen.in: Likewise.
18975 * util/grub.d/30_os-prober.in: Likewise.
18976 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
18978 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
18980 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
18981 last character in the buffer.
18982 Reported by: Vladimir Serbinenko.
18984 2010-06-29 Robert Millan <rmh@gnu.org>
18986 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
18987 (Command-line and menu entry commands): Document `badram' command.
18989 2010-06-28 Robert Millan <rmh@gnu.org>
18991 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
18992 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
18993 command using ${GRUB_BADRAM} as parameter.
18995 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18997 * docs/grub.texi (Device map): New section.
18998 (Themes): New section (stub).
18999 * Makefile.in (docs/grub.info): The info documentation now builds
19000 without errors. Make sure it stays that way.
19002 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19004 Use normal parser for menu entries.
19005 Reported by: Thomas Frauendorfer
19007 * include/grub/parser.h (grub_parser_execute): Don't export.
19008 * normal/menu.c (grub_menu_execute_entry_real): New function.
19009 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19011 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19013 * docs/grub.texi (Embedded configuration): New section (replacing
19014 old "Preset Menu" stub).
19015 (Images): New section.
19016 (configfile): Note that any menu entries defined in `file' are shown
19019 2010-06-28 Josh Triplett <josh@joshtriplett.org>
19021 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19023 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19025 * util/grub-install.in: Add --debug-image= option.
19027 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19029 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19032 * util/deviceiter.c (check_device): Rename to ...
19033 (check_device_readable_unique): ... this. Update all callers.
19034 Maintain and check a list of which devices (by canonicalized name)
19035 have already been seen.
19036 (clear_seen_devices): New function.
19037 (compare_file_names) [__linux__]: New function.
19038 (grub_util_iterate_devices): Clear the list of seen devices on exit
19039 and (just in case) on entry.
19040 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19041 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19042 seen-devices list, superseded by general code in check_device.
19044 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19046 * commands/cat.c (options): New variable.
19047 (grub_cmd_cat): Parse options. If the --dos option is given, print
19048 DOS-style "\r\n" line endings as simple newlines (Debian bug
19050 (GRUB_MOD_INIT): Use extcmd.
19051 (GRUB_MOD_FINI): Likewise.
19052 * docs/grub.texi (cat): Document --dos.
19054 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19056 XEN with Linux grub-mkconfig support.
19058 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
19059 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
19060 GRUB_CMDLINE_XEN_DEFAULT.
19061 * util/grub.d/20_linux_xen.in: New file.
19063 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19065 Initialise VGA video on qemu ourselves.
19067 * boot/i386/qemu/boot.S: Don't call 0xc000.
19068 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
19069 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
19070 (kernel_img_HEADERS): Add pci.h.
19071 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19072 * configure.ac: Force unifont on qemu and yeeloong.
19073 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
19074 (grub_vga_palette_write): Use correct register.
19075 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
19076 Call grub_qemu_init_cirrus.
19077 * kern/i386/qemu/init.c: New file.
19078 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
19080 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
19082 2010-06-26 Pavel Roskin <proski@gnu.org>
19084 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
19087 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19089 * docs/grub.texi (Simple configuration): Explain that
19090 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
19091 set to `true' to disable their respective recovery entries, not
19094 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
19096 Make the `source' command slightly faster.
19098 * normal/main.c (grub_normal_execute): Don't re-read list files when
19101 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19103 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
19104 field position and mask size to red fields from mode_info, not
19106 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
19107 Remove redundant tag->common.framebuffer_type assignment.
19108 Reported by: Seth Goldberg.
19110 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
19112 Sync up other versions of the Linux loader with Robert Millan's
19113 change of 2010-01-09, "Make loader output a bit more user-friendly".
19115 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
19117 (grub_cmd_linux): Likewise.
19118 (grub_cmd_initrd): Likewise.
19119 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
19120 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
19122 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
19124 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
19125 larger than MEMORY_MAP_SIZE.
19127 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
19129 Fix parallel build.
19131 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
19133 * script/parser.y: #include grub_script.tab.h header.
19135 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19137 Support >3GiB and <16MiB RAM in i386-qemu.
19139 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
19140 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
19141 (grub_lower_mem): Removed.
19142 (grub_upper_mem): Likewise.
19143 (mem_size): Made static.
19144 (above_4g): New variable.
19145 (grub_machine_mmap_init): Detect small mem_size and above_4g.
19146 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
19149 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19151 Cirrus 5446 and Bochs video cards support.
19153 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
19155 (video_cirrus_mod_SOURCES): New variable.
19156 (video_cirrus_mod_CFLAGS): Likewise.
19157 (video_cirrus_mod_LDFLAGS): Likewise.
19158 (video_bochs_mod_SOURCES): Likewise.
19159 (video_bochs_mod_CFLAGS): Likewise.
19160 (video_bochs_mod_LDFLAGS): Likewise.
19161 * include/grub/vga.h: New file.
19162 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
19163 (grub_video_fb_set_page_t): New type.
19164 (grub_video_fb_setup): New prototype.
19165 (grub_video_fb_swap_buffers): Likewise.
19166 (grub_video_fb_get_info_and_fini): Likewise.
19167 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
19168 (CRTC_DATA_PORT): Likewise.
19169 (CRTC_CURSOR): Likewise.
19170 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19171 (CRTC_CURSOR_ADDR_LOW): Likewise.
19172 (CRTC_CURSOR_DISABLE): Likewise.
19173 (update_cursor): Use grub_vga_cr_write.
19174 (grub_vga_text_setcursor): Likewise.
19175 * video/bochs.c: New file.
19176 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
19177 (palette): Likewise.
19178 (palette_size): Likewise.
19179 (framebuffer): New variable.
19180 (grub_video_fb_init): Use 'framebuffer'.
19181 (grub_video_fb_fini): Likewise.
19182 (grub_video_fb_get_info): Likewise.
19183 (grub_video_fb_get_palette): Likewise.
19184 (grub_video_fb_set_palette): Likewise.
19185 (grub_video_fb_set_viewport): Likewise.
19186 (grub_video_fb_get_viewport): Likewise.
19187 (grub_video_fb_map_color): Likewise.
19188 (grub_video_fb_map_rgb): Likewise.
19189 (grub_video_fb_map_rgba): Likewise.
19190 (grub_video_fb_unmap_color): Likewise.
19191 (grub_video_fb_unmap_color_int): Likewise.
19192 (grub_video_fb_fill_rect): Likewise.
19193 (grub_video_fb_blit_bitmap): Likewise.
19194 (grub_video_fb_blit_render_target): Likewise.
19195 (grub_video_fb_scroll): Likewise.
19196 (grub_video_fb_create_render_target): Likewise.
19197 (grub_video_fb_doublebuf_blit_init): Likewise.
19198 (grub_video_fb_set_active_render_target): Handle doublebuffering.
19199 (doublebuf_pageflipping_update_screen): New function.
19200 (doublebuf_pageflipping_init): Likewise.
19201 (grub_video_fb_setup): Likewise.
19202 (grub_video_fb_swap_buffers): Likewise.
19203 (grub_video_fb_get_info_and_fini): Likewise.
19204 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
19206 (doublebuf_pageflipping_commit): Restructured into ...
19207 (doublebuf_pageflipping_set_page): ... this.
19208 (doublebuf_pageflipping_update_screen): Removed.
19209 (doublebuf_pageflipping_init): Likewise.
19210 (double_buffering_init): Likewise.
19211 (grub_video_vbe_setup): Use grub_video_fb_setup.
19212 (grub_video_vbe_swap_buffers): Removed.
19213 (grub_video_vbe_set_active_render_target): Likewise.
19214 (grub_video_vbe_get_active_render_target): Likewise.
19215 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
19216 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
19217 grub_video_fb_set_active_render_target and
19218 grub_video_fb_get_active_render_target.
19219 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
19220 (SEQUENCER_DATA_PORT): Likewise.
19221 (MAP_MASK_REGISTER): Likewise.
19222 (CRTC_ADDR_PORT): Likewise.
19223 (CRTC_DATA_PORT): Likewise.
19224 (START_ADDR_HIGH_REGISTER): Likewise.
19225 (START_ADDR_LOW_REGISTER): Likewise.
19226 (GRAPHICS_ADDR_PORT): Likewise.
19227 (GRAPHICS_DATA_PORT): Likewise.
19228 (READ_MAP_REGISTER): Likewise.
19229 (INPUT_STATUS1_REGISTER): Likewise.
19230 (INPUT_STATUS1_VERTR_BIT): Likewise.
19231 (get_map_mask): Use grub_vga_sr_read.
19232 (set_map_mask): Use grub_vga_sr_write.
19233 (set_read_map): Use grub_vga_gr_write.
19234 (set_start_address): Use grub_vga_cr_write.
19235 * video/sm712.c (framebuffer): Remove leftover fields.
19237 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
19239 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
19240 setting GRUB_VIDEO_BACKEND. Make it available as a user override
19241 instead. Replace the gfxterm backend check with a check that
19242 ${GRUB_PREFIX}/video.lst is non-empty.
19243 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
19245 (load_video): New generated function. Call it before loading
19246 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
19247 * util/grub.d/10_linux.in (linux_entry): Call load_video.
19248 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
19249 * docs/grub.texi (Simple configuration): Document
19250 GRUB_VIDEO_BACKEND.
19252 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19254 Use video functions in linux and xnu loaders.
19256 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
19257 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
19258 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
19259 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
19260 loader/i386/pc/linux.c.
19261 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
19262 (find_line_len): Removed.
19263 (find_framebuf): Likewise.
19264 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
19265 * loader/i386/efi/xnu.c: Removed.
19266 * loader/i386/pc/xnu.c: Moved from here...
19267 * loader/i386/xnu.c: ...here.
19269 Enable priorities in video drivers.
19271 * include/grub/video.h (grub_video_adapter_prio_t): New type.
19272 (grub_video_adapter): New field prio.
19273 (grub_video_register): Respect prio when inserting.
19274 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
19275 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
19276 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
19277 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
19278 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
19279 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
19280 * video/sm712.c (grub_video_sm712_adapter): Likewise.
19284 * include/grub/video.h (grub_video_driver_id_t): New value
19285 GRUB_VIDEO_DRIVER_SDL.
19286 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
19288 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19290 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
19291 argument to printf.
19292 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19294 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19296 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
19297 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19299 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19301 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
19302 directly, and recommend grub-install instead.
19303 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
19305 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
19307 Fix i386-pc prefix handling with nested partitions (Debian bug
19308 #585068). Note that the case where the core image is booted using
19309 multiboot and relocated from its original location still requires
19312 * kern/i386/pc/init.c (make_install_device): If the prefix starts
19313 with "(,", fill the boot drive in between those two characters, but
19314 expect that a full partition specification including partition map
19316 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
19317 specified, write a prefix without the drive name but including a
19318 full partition specification.
19320 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
19322 * util/grub-mkconfig.in: Ignore non-option arguments, for
19323 compatibility with older versions (before 2010-06-12) which did the
19324 same. In particular, this makes it easier to ship an update-grub
19325 wrapper which is compatible with that used with GRUB Legacy (Debian
19328 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19330 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
19331 for manual page generation.
19333 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19335 * po/POTFILES: Remove leftover commands/handler.c.
19337 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19339 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
19340 left this script non-functional.
19342 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19344 * docs/man/grub-emu.h2m: New file.
19346 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
19348 * docs/grub.texi (Commands): Document reduced command set in rescue
19350 (cpuid): New section.
19352 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
19354 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
19355 new partition naming style.
19356 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
19358 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
19360 Add "-o grub.iso" like cmdline options support.
19362 * util/grub-install.in: Improve cmdline option parsing.
19363 * util/grub-mkconfig.in: Likewise.
19364 * util/grub-mkrescue.in: Likewise.
19365 * util/grub-reboot.in: Likewise.
19366 * util/grub-set-default.in: Likewise.
19367 * util/i386/efi/grub-install.in: Likewise.
19368 * util/ieee1275/grub-install.in: Likewise.
19369 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19371 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19373 * .bzrignore: Ignore 41_custom.
19375 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19377 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
19379 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19381 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
19382 prototype declarations.
19384 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
19385 generating fs, partmap, and video lists.
19386 * include/grub/fs.h (grub_fs_register): Omit prototype if
19387 GRUB_LST_GENERATOR is defined.
19388 * include/grub/partition.h (grub_partition_map_register): Likewise.
19389 * include/grub/video.h (grub_video_register): Likewise.
19391 2010-06-12 Javier Martín <lordhabbit@gmail.com>
19393 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
19395 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19397 * util/grub-mkrescue.in: Support --xorriso argument.
19399 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19401 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
19402 Suggested by: Thomas Schmitt.
19404 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19406 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
19407 Suggested by: Thomas Schmitt.
19409 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19411 custom.cfg support.
19413 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
19414 * util/grub.d/41_custom.in: New file.
19416 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19418 * util/grub-mkrescue.in (make_image): Remove sh module, which has
19419 been merged back into normal.
19421 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19423 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
19424 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
19426 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19428 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
19429 when generating manual pages.
19430 * docs/man/grub-bin2h.h2m: New file.
19431 * docs/man/grub-editenv.h2m: New file.
19432 * docs/man/grub-fstest.h2m: New file.
19433 * docs/man/grub-install.h2m: New file.
19434 * docs/man/grub-macho2img.h2m: New file.
19435 * docs/man/grub-mkconfig.h2m: New file.
19436 * docs/man/grub-mkdevicemap.h2m: New file.
19437 * docs/man/grub-mkfont.h2m: New file.
19438 * docs/man/grub-mkimage.h2m: New file.
19439 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
19440 * docs/man/grub-mkrelpath.h2m: New file.
19441 * docs/man/grub-mkrescue.h2m: New file.
19442 * docs/man/grub-ofpathname.h2m: New file.
19443 * docs/man/grub-pe2elf.h2m: New file.
19444 * docs/man/grub-probe.h2m: New file.
19445 * docs/man/grub-reboot.h2m: New file.
19446 * docs/man/grub-script-check.h2m: New file.
19447 * docs/man/grub-set-default.h2m: New file.
19448 * docs/man/grub-setup.h2m: New file.
19450 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
19452 Use FOR_* macros instead of *_iterate whenever possible.
19454 * commands/handler.c: Removed.
19455 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
19456 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
19457 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19458 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
19459 (grub_probe_SOURCES): Remove kern/parser.c.
19460 (util/grub-script-check.c_DEPENDENCIES): Removed.
19461 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
19462 and grub_script_check_init.c.
19463 (grub_script_check_init.lst): Removed.
19464 (grub_script_check_init.h): Likewise.
19465 (grub_script_check_init.c): Likewise.
19466 (pkglib_MODULES): Remove handler.mod and sh.mod.
19467 (handler_mod_SOURCES): Removed.
19468 (handler_mod_CFLAGS): Likewise.
19469 (handler_mod_LDFLAGS): Likewise.
19470 (normal_mod_SOURCES): Remove normal/handler.c.
19471 Add script/main.c, script/script.c, script/execute.c,
19472 script/function.c, script/lexer.c, grub_script.tab.c
19473 and grub_script.yy.c.
19474 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19475 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19476 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
19477 (grub_setup_SOURCES): Remove kern/parser.c.
19478 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19479 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
19480 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19481 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19482 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19483 (grub_setup_SOURCES): Remove kern/parser.c.
19484 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19485 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
19486 * include/grub/command.h (grub_command_iterate): Removed.
19487 (FOR_COMMANDS): New macro.
19488 * include/grub/dl.h (grub_dl): New member next.
19489 (grub_dl_iterate): Removed.
19490 (grub_dl_head): New variable declaration.
19491 (FOR_DL_MODULES): New macro.
19492 * include/grub/fs.h: Include list.h.
19493 (grub_fs): Make next first element.
19494 (grub_fs_list): New variable declaration.
19495 (grub_fs_register): Make inline.
19496 (grub_fs_unregister): Likewise.
19497 (grub_fs_iterate): Removed.
19498 (FOR_FILESYSTEMS): New macro.
19499 * include/grub/handler.h: Removed.
19500 * include/grub/list.h (grub_list_hook_t): Removed.
19501 (grub_list_test_t): Likewise.
19502 (grub_list_pop): Likewise.
19503 (grub_list_iterate): Likewise.
19504 (grub_list_insert): Likewise.
19505 (FOR_LIST_ELEMENTS): New macro.
19506 * include/grub/parser.h (grub_parser_class): Removed.
19507 (grub_parser_register): Likewise.
19508 (grub_parser_unregister): Likewise.
19509 (grub_parser_get_current): Likewise.
19510 (grub_parser_set_current): Likewise.
19511 (grub_register_rescue_parser): Likewise.
19512 (grub_rescue_parse_line): New function.
19513 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
19514 * include/grub/script_sh.h (grub_script_function_list): New variable
19516 (FOR_SCRIPT_FUNCTIONS): New macro.
19517 (grub_script_function_iterate): Removed.
19518 (grub_normal_parse_line): New prototype.
19519 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
19520 (FOR_DISABLED_TERM_INPUTS): Likewise.
19521 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19522 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19523 * include/grub/video.h (grub_video_adapter): Move 'next' to first
19525 (grub_video_register): Inline.
19526 (grub_video_unregister): Likewise.
19527 (grub_video_adapter_list): New variable declaration.
19528 (grub_video_iterate): Removed.
19529 (FOR_VIDEO_ADAPTERS): New macro.
19530 * kern/dl.c (grub_dl_list): Removed. All users updated.
19531 (grub_dl_iterate): Removed.
19532 * kern/fs.c (grub_fs_list): Make global.
19533 (grub_fs_register): Removed.
19534 (grub_fs_unregister): Likewise.
19535 (grub_fs_iterate): Likewise.
19536 * kern/handler.c: Removed.
19537 * kern/list.c (grub_list_pop): Removed.
19538 (grub_list_iterate): Likewise.
19539 (grub_list_insert): Likewise.
19540 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
19541 (grub_prio_list_insert): Don't use grub_list_insert.
19542 * kern/main.c (grub_register_rescue_parser): Don't call
19543 grub_register_rescue_parser.
19544 * kern/parser.c (grub_parser_class): Removed.
19545 (grub_parser_execute): Use grub_rescue_parse_line.
19546 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
19547 (grub_rescue_parser): Removed.
19548 (grub_register_rescue_parser): Likewise.
19549 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
19550 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
19551 (grub_auth_check_authentication): Likewise.
19552 * normal/completion.c (iterate_command): Removed.
19553 (grub_normal_do_completion): Use FOR_COMMANDS.
19554 * normal/handler.c: Removed.
19555 * normal/main.c (read_config_file): Remove parser changing.
19556 (grub_normal_execute): Don't call read_handler_list.
19557 (grub_normal_read_line_real): Statically allocate prompt.
19558 (grub_cmdline_run): Use grub_normal_parse_line.
19559 (GRUB_MOD_FINI): Don't call free_handler_list.
19560 * normal/menu_entry.c (run): Likewise.
19561 * script/function.c (grub_script_function_list): Make global.
19562 (grub_script_function_iterate): Removed.
19563 * script/main.c (grub_normal_parse_line): Make global.
19564 (grub_sh_parser): Removed.
19565 (GRUB_MOD_INIT): Likewise.
19566 (GRUB_MOD_FINI): Likewise.
19567 * tests/lib/functional_test.c (grub_functional_test): Use
19569 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
19570 (grub_test_run): Use FOR_LIST_ELEMENTS.
19571 * tests/lib/unit_test.c (main): Likewise.
19572 * util/deviceiter.c (grub_util_iterate_devices): Don't use
19574 * util/grub-fstest.c (grub_term_input_class): Removed.
19575 (grub_term_output_class): Likewise.
19576 * util/grub-probe.c: Likewise.
19577 * util/i386/pc/grub-setup.c: Likewise.
19578 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19579 * util/grub-script-check.c (main): Don't call grub_init_all and
19581 * video/video.c (grub_video_adapter_list): Make global.
19582 (grub_video_register): Removed.
19583 (grub_video_unregister): Likewise.
19584 (grub_video_iterate): Likewise.
19586 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
19588 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
19589 reported by Henrique Ferreiro.
19591 2010-06-09 Robert Millan <rmh@gnu.org>
19593 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
19594 ones, when both are available.
19596 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19598 Make --version uniform and avoid hard-coded program name.
19600 * util/grub-mkimage.c (main): Use `program_name' instead of
19602 * util/i386/pc/grub-setup.c (main): Likewise.
19603 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
19604 * util/grub-install.in: Save the basename of $0 in $self, and use the
19605 latter in informational messages. Use the same format for --version
19606 as the binary programs.
19607 * util/grub-mkconfig.in: Likewise.
19608 * util/grub-mkrescue.in: Likewise.
19609 * util/grub-reboot.in: Likewise.
19610 * util/grub-set-default.in: Likewise.
19611 * util/i386/efi/grub-install.in: Likewise.
19612 * util/ieee1275/grub-install.in: Likewise.
19613 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19615 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19617 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
19618 embedding area. Use <= instead of == when checking for non-emptiness.
19620 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19622 * configure.ac: Add `.' to the directories searched for unifont.
19624 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19626 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
19629 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19631 * docs/grub.texi (History): Expand to cover GRUB 2.
19632 (Serial terminal): Refer to `terminal_input' and `terminal_output'
19633 commands, not `terminal'.
19634 (serial): Likewise.
19635 (terminal_input): New section.
19636 (terminal_output): New section.
19637 (uppermem): New section (stub).
19638 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
19640 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19642 * docs/grub.texi (Security): Menu entries are unrestricted by
19643 default, not restricted to superusers as I had previously thought.
19644 Reword to account for this.
19646 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19648 * kern/emu/misc.c (device_mapper_null_log): New function.
19649 (grub_device_mapper_supported): New function.
19650 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
19652 * kern/emu/hostdisk.c (find_partition_start): Check whether
19653 device-mapper is supported before trying to use it.
19654 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
19656 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19658 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
19659 (File name syntax): Likewise.
19660 (help): --all is no longer supported in GRUB 2. Be more precise
19661 about pattern matching.
19663 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19665 * normal/completion.c (grub_normal_do_completion): When completing
19666 arguments to "set" and the current word contains an equals sign,
19667 skip to after the equals sign before starting completion.
19669 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19671 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
19673 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19675 * docs/grub.texi (Network): New section.
19676 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
19677 `(nd)' as in GRUB Legacy.
19678 (pxe_unload): New section.
19680 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19682 * docs/grub.texi (Troubleshooting): `echo' is not usually available
19683 in the rescue shell, so recommend using `set' instead. Thanks,
19686 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19688 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
19689 (password): New section.
19690 (password_pbkdf2): New section.
19691 (search): New section.
19692 (Security): New section.
19693 (Troubleshooting): New section, currently very incomplete.
19694 (Invoking grub-mkpasswd-pbkdf2): New section.
19695 (Internals): New section, currently very incomplete.
19697 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19699 * util/grub.d/00_header.in: Add some more quoting (of
19700 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
19702 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
19704 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19706 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
19707 to `count', fixing variable shadowing that broke the -c option.
19709 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
19711 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
19712 in case they contain spaces.
19714 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
19716 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
19717 "part_" to partmap module names, in line with grub-install.
19718 Reported by: Jindřich Makovička (Debian bug #584426).
19720 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
19722 * util/grub-mkimage.c: Make target-related error messages slightly
19723 more helpful; -O talks about "format". Explicitly point to the use
19724 of -O if no target is specified.
19725 Reported by: Didier Raboud (Debian bug #584415).
19727 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
19729 * INSTALL: Document several build requirements for optional features
19730 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
19732 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
19734 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
19735 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
19736 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
19738 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19740 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
19741 Thanks to Jordan Uggla for spotting this.
19743 2010-06-02 Aleš Nesrsta <starous@volny.cz>
19745 Finally make USB usable.
19747 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
19748 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
19749 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
19750 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
19751 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
19752 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
19753 (GRUB_OHCI_FSMPS): Likewise.
19754 (GRUB_OHCI_PERIODIC_START): Likewise.
19755 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
19756 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
19757 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
19758 (GRUB_OHCI_SET_PORT_RESET): Likewise.
19759 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
19760 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
19761 (grub_ohci_transaction): Likewise.
19762 (grub_ohci_transfer): Improve condition detection algorithms.
19763 Handle toggle property. Program the transactions correctly.
19764 Improve error handling. Various important fixups.
19765 (grub_ohci_portstatus): Put register writes in right order.
19766 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
19767 (grub_uhci_transfer): Don't show "failed" message on success.
19768 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
19770 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
19771 determine its size.
19772 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
19773 before initialization is completed. Use IN direction for empty
19774 transfers. Use last_trans and compute toggle.
19775 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
19776 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
19777 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
19778 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
19779 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
19780 (grub_usb_device): Increase toggle to 256.
19781 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
19782 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
19783 GRUB_USBMS_SUBCLASS_SFF8070.
19784 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
19785 (grub_scsi_inquiry): New member page and alloc_length.
19786 (grub_scsi_request_sense): New structure.
19787 (grub_scsi_request_sense_data): Likewise.
19788 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
19790 * disk/scsi.c (grub_scsi_request_sense): New function.
19791 (grub_scsi_test_unit_ready): Likewise.
19792 (grub_scsi_inquiry): Fill new fields.
19793 (grub_scsi_read_capacity): Likewise.
19794 (grub_scsi_read10): Add request sense at the end.
19795 (grub_scsi_read12): Likewise.
19796 (grub_scsi_write10): Likewise.
19797 (grub_scsi_write12): Likewise.
19798 (grub_scsi_open): Add Test Unit Ready.
19799 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
19800 Support additional subclasses. Con't clear halt yet. Activate the
19801 proper config. Calculate LUNs correctly.
19802 (grub_usbms_transfer): Various important fixups.
19804 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19806 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
19807 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
19808 (grub_ohci_fini_hw): New function.
19809 (grub_ohci_restore_hw): Likewise.
19810 (GRUB_MOD_INIT(ohci)): Register preboot hook.
19811 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
19812 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
19814 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19816 Dedicated DMA allocations.
19818 * bus/pci.c (grub_memalign_dma32): New function
19819 (grub_dma_free): Likewise.
19820 (grub_dma_get_virt): Likewise.
19821 (grub_dma_get_phys): Likewise.
19822 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
19823 (grub_ohci_pci_iter): Use dma32_alloc.
19824 (grub_ohci_transfer): Likewise.
19825 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
19826 (grub_usb_bulk_readwrite): Likewise.
19827 * include/grub/pci.h: Add declarations.
19829 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19833 * bus/cs5536.c: New file.
19834 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
19835 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
19836 (cs5536_mod_SOURCES): New variable.
19837 (cs5536_mod_CFLAGS): Likewise.
19838 (cs5536_mod_LDFLAGS): Likewise.
19839 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
19841 (kernel_img_SOURCES): Add bus/cs5536.c.
19842 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
19844 (usb_mod_SOURCES): New variable.
19845 (usb_mod_CFLAGS): New variable.
19846 (usb_mod_LDFLAGS): New variable.
19847 (usbtest_mod_SOURCES): New variable.
19848 (usbtest_mod_CFLAGS): New variable.
19849 (usbtest_mod_LDFLAGS): New variable.
19850 (ohci_mod_SOURCES): New variable.
19851 (ohci_mod_CFLAGS): New variable.
19852 (ohci_mod_LDFLAGS): New variable.
19853 (usbms_mod_SOURCES): New variable.
19854 (usbms_mod_CFLAGS): New variable.
19855 (usbms_mod_LDFLAGS): New variable.
19856 (usb_keyboard_mod_SOURCES): New variable.
19857 (usb_keyboard_mod_CFLAGS): New variable.
19858 (usb_keyboard_mod_LDFLAGS): New variable.
19859 * include/grub/smbus.h: New file.
19860 * include/grub/cs5536.h: New file.
19862 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19864 * util/grub.d/00_header.in: Add safety check to make sure that
19865 ${locale_dir} exists before trying to probe it.
19867 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19869 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
19870 per the GNU Coding Standards; this is now too obscure to be worth
19873 (chainloader): Remove cross-reference to `SCO UnixWare'.
19875 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19877 * docs/grub.texi (Chain-loading): New section.
19878 (DOS/Windows): New section, borrowed from GRUB Legacy with details
19879 adjusted for GRUB 2.
19880 (SCO UnixWare): Likewise.
19882 (chainloader): Add reference to `Block list syntax'.
19883 (drivemap): New section.
19884 (parttool): New section.
19886 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19888 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
19890 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
19891 (Installing GRUB using grub-install): Remove reference to the grub
19892 shell; mention `grub-mkimage' and `grub-setup' instead.
19893 (Invoking grub-install): Likewise.
19894 (Interface): Add reference to `Menu entry editor'.
19895 (serial): Remove `--device' option.
19897 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19899 * docs/grub.texi (Configuration): New section, documenting
19900 configuration file generation using grub-mkconfig. I've left a slot
19901 for documenting the full shell scripting format but have not yet
19902 started on writing that up.
19903 (Invoking grub-mkconfig): New section.
19905 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19907 * docs/grub.texi (direntry): Remove grub-terminfo reference.
19908 (GNU GRUB manual): Likewise.
19909 (General commands): Update description of `terminfo' for GRUB 2.
19911 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19913 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
19914 (GRUB_MOD_INIT): Fix capitalisation.
19915 * docs/grub.texi (Command-line and menu entry commands): Document
19916 gettext and gptsync commands.
19918 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19920 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
19921 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
19923 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
19925 Add btrfs probing support, currently only in the single-device case.
19927 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
19929 (grub_guess_root_device): Call find_root_device_from_mountinfo
19930 before looking in /dev.
19932 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19934 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
19935 GRUB_DISK_SIZE_UNKNOWN.
19936 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
19938 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
19940 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
19941 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
19942 corrupted or not synced properly.
19944 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19946 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
19947 Reported by: Seth Goldberg.
19949 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19951 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
19953 Reported by: Seth Goldberg.
19955 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19957 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
19958 Reported by: Seth Goldberg.
19960 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19962 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
19963 64-bit address as signed on MIPS.
19965 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
19967 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
19968 to the empty string.
19970 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
19972 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
19974 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
19975 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
19976 * kern/misc.c (__enable_execute_stack): Disable on
19979 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
19981 Make grub-probe work with symbolic links under /dev/mapper as well
19982 as with real block devices. The Linux world seems to be (at best)
19983 in transition here, and GRUB shouldn't get caught in the middle.
19985 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
19988 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
19990 * util/grub-script-check.c (main): Ensure defined behaviour on empty
19991 input files (in which case exit zero).
19993 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
19995 * kern/emu/misc.c (canonicalize_file_name): realpath can still
19996 return NULL for various reasons even if it has a maximum-length
19997 buffer: for example, there might be a symlink loop, or the path
19998 might exceed PATH_MAX. If this happens, return NULL.
20000 2010-05-27 Robert Millan <rmh@gnu.org>
20002 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20003 partmap module to handle cross-partmap setups.
20004 Reported by Orestes Mas. Gràcies!
20006 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20008 * util/grub-mkrescue.in: Initialise override_dir rather than
20009 assuming that it's unset or empty in the environment.
20011 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20013 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20014 variable index into p_index to suppress a warning with -Wshadow.
20016 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20018 * INSTALL: Added flex >= 2.5.35 requirement.
20020 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20022 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20024 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20028 * commands/i386/cmostest.c: New file.
20029 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20030 (cmostest_mod_SOURCES): New variable.
20031 (cmostest_mod_CFLAGS): Likewise.
20032 (cmostest_mod_LDFLAGS): Likewise.
20033 * conf/i386-pc.rmk: Likewise.
20034 * docs/grub.texi (Vendor power-on keys): New section.
20035 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20036 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20037 and GRUB_BUTTON_CMOS_ADDRESS.
20038 * util/grub.d/00_header.in: Handle powering-on by separate button.
20040 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20042 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20043 Removed drawing_scrollbar argument. All users updated
20045 Reported by Jo Shields
20047 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20049 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20050 buffer since gfxterm handles double repaint.
20052 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20054 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
20055 * term/gfxterm.c (real_scroll): Likewise.
20057 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20059 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
20060 before calling BIOS.
20062 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20064 * include/grub/i18n.h: Always enable grub_gettext.
20066 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20068 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
20069 partition naming style.
20071 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
20073 * util/grub-mkconfig.in: Fix handling of -o so that it works when
20074 not the first option.
20076 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20078 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
20080 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20082 * util/misc.c: Move inclusion of <limits.h> to ...
20083 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
20085 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
20087 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
20088 Fix merge error in NetBSD code.
20089 (find_partition_start) [__NetBSD__]: Likewise.
20091 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
20093 Fix grub-mkrescue usage unit testing.
20095 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
20097 2010-05-18 Christian Franke <franke@computer.org>
20099 * util/grub.d/10_windows.in: Use path names instead of
20100 drive letters to prevent warning from Cygwin 1.7.
20101 Add drivemap command to menuentry if needed.
20103 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
20105 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
20106 gnumach and gnumach.gz.
20108 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20110 * include/grub/i18n.h (gettext): Inline instead of using #define.
20111 (grub_gettext): Likewise.
20114 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20116 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
20117 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
20118 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
20119 (main): Add a slash after pkglibdirroot.
20121 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20123 * util/grub-install.in: Add missing "in" keyword.
20125 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20127 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
20128 Reported by: Seth Goldberg.
20130 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20132 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
20134 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20136 * configure.ac: Check for Linux device-mapper support.
20138 * util/hostdisk.c (device_is_mapped): New function.
20139 (find_partition_start): New function, partly broken out from
20140 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
20141 device-mapper support added.
20142 (linux_find_partition): Use find_partition_start.
20143 (convert_system_partition_to_system_disk): Add `st' argument.
20144 Support Linux /dev/mapper/* devices if device-mapper support is
20145 available; only DM-RAID devices are understood at present.
20146 (find_system_device): Add `st' argument. Pass it to
20147 convert_system_partition_to_system_disk.
20148 (grub_util_biosdisk_get_grub_dev): Pass stat result to
20149 find_system_device and convert_system_partition_to_system_disk. Use
20150 find_partition_start.
20152 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
20153 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
20154 * util/deviceiter.c [__linux__]: Define MINOR.
20155 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
20156 * util/mkdevicemap.c (grub_putchar): New function.
20157 (grub_getkey): New function.
20158 (grub_refresh): New function.
20159 (main): Set debug=all if -v -v is used.
20161 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20163 Fix build with non-GNU libcs.
20165 * util/misc.c (canonicalize_file_name): Move to ...
20166 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
20167 grub_make_system_path_relative_to_its_root.
20169 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
20171 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
20172 we handle finding grub-mkimage. Default to finding grub-mkimage in
20173 ${bindir} with program_transform_name applied, and provide a
20174 --grub-mkimage option to override this.
20176 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20178 Remove grub-mkisofs.
20180 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
20181 (grub_mkisofs_SOURCES): Removed.
20182 (grub_mkisofs_CFLAGS): Removed.
20183 * util/mkisofs/defaults.h: Removed.
20184 * util/mkisofs/eltorito.c: Likewise.
20185 * util/mkisofs/exclude.h: Likewise.
20186 * util/mkisofs/hash.c: Likewise.
20187 * util/mkisofs/include/: Likewise.
20188 * util/mkisofs/include/fctldefs.h: Likewise.
20189 * util/mkisofs/include/mconfig.h: Likewise.
20190 * util/mkisofs/include/prototyp.h: Likewise.
20191 * util/mkisofs/include/statdefs.h: Likewise.
20192 * util/mkisofs/iso9660.h: Likewise.
20193 * util/mkisofs/joliet.c: Likewise.
20194 * util/mkisofs/match.c: Likewise.
20195 * util/mkisofs/match.h: Likewise.
20196 * util/mkisofs/mkisofs.c: Likewise.
20197 * util/mkisofs/mkisofs.h: Likewise.
20198 * util/mkisofs/msdos_partition.h: Likewise.
20199 * util/mkisofs/multi.c: Likewise.
20200 * util/mkisofs/name.c: Likewise.
20201 * util/mkisofs/rock.c: Likewise.
20202 * util/mkisofs/tree.c: Likewise.
20203 * util/mkisofs/write.c: Likewise.
20205 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
20207 Unify grub-mkimage accross platforms.
20209 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
20210 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
20211 (grub_mkelfimage_SOURCES): Removed.
20212 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
20213 (util/grub-mkimage.c_DEPENDENCIES): .. this.
20214 (bin_UTILITIES): Add grub-mkimage.
20215 (grub_mkimage_SOURCES): New variable.
20216 (kernel_img_HEADERS): Remove machine/kernel.h.
20217 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
20218 (pkglib_PROGRAMS): Add kernel.img.
20219 (kernel_img_HEADERS): Add machine/kernel.h.
20220 (kernel_img_FORMAT): Removed.
20221 (bin_UTILITIES): Remove grub-mkimage.
20222 (grub_mkimage_SOURCES): Removed.
20223 (grub_mkimage_CFLAGS): Likewise.
20224 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20225 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
20226 (pkglib_PROGRAMS): Add kernel.img.
20227 (bin_UTILITIES): Remove grub-mkimage.
20228 (grub_mkimage_SOURCES): Removed.
20229 (grub_mkimage_CFLAGS): Likewise.
20230 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20231 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
20232 (pkglib_PROGRAMS): Add kernel.img.
20233 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
20234 (pkglib_PROGRAMS): Add kernel.img.
20235 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
20236 (grub_mkimage_SOURCES): Removed.
20237 (grub_mkimage_CFLAGS): Likewise.
20238 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20239 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
20240 (pkglib_PROGRAMS): Add kernel.img.
20241 (bin_UTILITIES): Remove grub-mkimage.
20242 (grub_mkimage_SOURCES): Removed.
20243 (grub_mkimage_CFLAGS): Likewise.
20244 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20245 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
20246 (grub_mkimage_SOURCES): Removed.
20247 (grub_mkimage_CFLAGS): Likewise.
20248 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
20249 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
20250 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
20251 (grub_pe32_optional_header): ... this.
20252 (grub_pe64_optional_header): ... and this. All users updated.
20253 (GRUB_PE32_PE32_MAGIC): Split into ..
20254 (GRUB_PE32_PE32_MAGIC): .. this.
20255 (GRUB_PE32_PE64_MAGIC): .. and this.
20256 (GRUB_PE32_SIGNATURE_SIZE): New definition.
20257 * include/grub/elf.h (PT_GNU_STACK): New definition.
20258 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
20259 * include/grub/i386/efi/kernel.h: Likewise.
20260 * include/grub/i386/kernel.h: Likewise.
20261 * include/grub/i386/pc/kernel.h: Likewise.
20262 * include/grub/i386/qemu/boot.h: Likewise.
20263 * include/grub/mips/kernel.h: Likewise.
20264 * include/grub/mips/qemu-mips/kernel.h: Likewise.
20265 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20266 * include/grub/powerpc/kernel.h: Likewise.
20267 * include/grub/sparc64/ieee1275/boot.h: Likewise.
20268 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20269 * include/grub/sparc64/kernel.h: Likewise.
20270 * include/grub/x86_64/efi/kernel.h: Likewise.
20271 * include/grub/x86_64/kernel.h: Likewise.
20272 * include/grub/offsets.h: New file.
20273 * include/grub/kernel.h (grub_module_info): Split into ...
20274 (grub_module_info32): ... this.
20275 (grub_module_info64): ... and this.
20276 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
20277 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
20278 (grub_boot_blocklist): Moved from here ...
20279 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
20280 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
20281 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
20282 * include/grub/types.h (grub_target_to_host16): Removed.
20283 (grub_target_to_host32): Likewise.
20284 (grub_target_to_host64): Likewise.
20285 (grub_host_to_target16): Likewise.
20286 (grub_host_to_target32): Likewise.
20287 (grub_host_to_target64): Likewise.
20288 (grub_host_to_target_addr): Likewise.
20290 Support grub-mkrescue for efi, coreboot and qemu.
20292 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
20293 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
20294 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
20295 * util/grub-mkrawimage.c: Moved from here ...
20296 * util/grub-mkimage.c: ... here. All users updated.
20297 (ALIGN_ADDR): Use image_target.
20298 (TARGET_NO_FIELD): New const.
20299 (image_target_desc): New type.
20300 (image_targets): New array.
20301 (grub_target_to_host64): Use image_target.
20302 (grub_target_to_host32): Likewise.
20303 (grub_target_to_host16): Likewise.
20304 (grub_host_to_target64): Likewise.
20305 (grub_host_to_target32): Likewise.
20306 (grub_host_to_target16): Likewise.
20307 (grub_host_to_target_addr): Likewise.
20308 (generate_image): Handle multiimage.
20309 (main): Require -O parameter. All users updated.
20310 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
20311 util/efi/grub-mkimage.c
20312 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
20313 New option --rom-directory.
20315 * util/i386/efi/grub-mkimage.c: Removed.
20316 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
20317 (grub_target_to_host32): Likewise.
20318 (grub_target_to_host64): Likewise.
20319 (grub_host_to_target16): Likewise.
20320 (grub_host_to_target32): Likewise.
20321 (grub_host_to_target64): Likewise.
20322 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
20323 (grub_target_to_host32): Likewise.
20324 (grub_target_to_host64): Likewise.
20325 (grub_host_to_target16): Likewise.
20326 (grub_host_to_target32): Likewise.
20327 (grub_host_to_target64): Likewise.
20329 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
20331 Source tree is reorganized for emu build.
20333 * include/grub/util/console.h: Move from here...
20334 * include/grub/emu/console.h: ...to here.
20335 * include/grub/util/getroot.h: Move from here...
20336 * include/grub/emu/getroot.h: ...to here.
20337 * include/grub/util/hostdisk.h: Move from here...
20338 * include/grub/emu/hostdisk.h: ...to here.
20339 * util/console.c: Move from here...
20340 * kern/emu/console.c: ...to here.
20341 * util/getroot.c: Move from here...
20342 * kern/emu/getroot.c: ...to here.
20343 * util/grub-emu.c: Move from here...
20344 * kern/emu/main.c: ...to here.
20345 * util/hostdisk.c: Move from here...
20346 * kern/emu/hostdisk.c: ...to here.
20347 * util/hostfs.c: Move from here...
20348 * kern/emu/hostfs.c: ...to here.
20349 * util/mm.c: Move from here...
20350 * kern/emu/mm.c: ...to here.
20351 * util/pci.c: Move from here...
20352 * bus/emu/pci.c: ...to here.
20353 * util/sdl.c: Move from here...
20354 * video/emu/sdl.c: ...to here.
20355 * util/time.c: Move from here...
20356 * kern/emu/time.c: ...to here.
20357 * util/usb.c: Move from here...
20358 * bus/usb/emu/usb.c: ...to here.
20360 * include/grub/emu/misc.h: New header for grub-emu functions.
20361 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
20363 * conf/any-emu.rmk: Rule updates for above renames.
20364 * conf/common.rmk: Likewise.
20365 * conf/i386-pc.rmk: Likewise.
20366 * conf/i386-qemu.rmk: Likewise.
20367 * conf/mips.rmk: Likewise.
20368 * conf/sparc64-ieee1275.rmk: Likewise.
20369 * conf/x86-efi.rmk: Likewise.
20371 * disk/lvm.h: #include updates for above renames.
20372 * util/grub-mkrelpath.c: Likewise.
20373 * util/grub-probe.c: Likewise.
20374 * util/i386/pc/grub-setup.c: Likewise.
20375 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20376 * kern/emu/console.c: Likewise.
20377 * kern/emu/getroot.c: Likewise.
20378 * kern/emu/hostdisk.c: Likewise.
20379 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
20381 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
20382 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
20383 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
20384 * util/misc.c: Remove grub-emu functions.
20386 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20389 Reported by: Thorsten Grützmacher.
20391 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
20393 (circprog_set_property): Register and unregister timeout hook.
20394 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
20395 (label_destroy): Free template. and unregister hook.
20396 (label_set_state): New function.
20397 (label_set_property): Handle templates and hooks.
20398 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
20400 (progress_bar_set_property): Register and unregister timeout hook.
20401 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
20402 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
20403 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
20404 (update_timeout_visit): Removed.
20405 (update_timeouts): New function.
20406 (redraw_timeouts): Likewise.
20407 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
20408 (grub_gfxmenu_clear_timeout): Likewise.
20409 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
20410 (grub_gfxmenu_timeout_notify): Likewise.
20411 (grub_gfxmenu_timeout_notifications): New external variable.
20412 (grub_gfxmenu_timeout_register): New function.
20413 (grub_gfxmenu_timeout_unregister): Likewise.
20415 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20417 Transform (broken) vga terminal into (working) vga video driver.
20419 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
20420 video/i386/pc/vga.c.
20421 * include/grub/video.h (grub_video_driver_id):
20422 Add GRUB_VIDEO_DRIVER_VGA.
20423 * term/i386/pc/vga.c: Renamed to ...
20424 * video/i386/pc/vga.c: ...this
20425 (DEBUG_VGA): Removed.
20426 (CHAR_WIDTH): Likewise.
20427 (CHAR_HEIGHT): Likewise.
20428 (TEXT_WIDTH): Likewise.
20429 (TEXT_HEIGHT): Likewise.
20430 (DEFAULT_FG_COLOR): Likewise.
20431 (DEFAULT_BG_COLOR): Likewise.
20432 (colored_char): Likewise.
20435 (cursor_state): Likewise.
20436 (fg_color): Likewise.
20437 (bg_color): Likewise.
20438 (text_buf): Likewise.
20441 (framebuffer): New variable.
20442 (set_read_map): Disabled.
20443 (setup): New variable.
20444 (is_target): Likewise.
20445 (grub_vga_mod_init): Likewise.
20446 (grub_vga_mod_fini): Likewise.
20447 (check_vga_mem): Likewise.
20448 (write_char): Likewise.
20449 (write_cursor): Likewise.
20450 (scroll_up): Likewise.
20451 (grub_vga_putchar): Likewise.
20452 (grub_vga_getcharwidth): Likewise.
20453 (grub_vga_getwh): Likewise.
20454 (grub_vga_getxy): Likewise.
20455 (grub_vga_gotoxy): Likewise.
20456 (grub_vga_cls): Likewise.
20457 (grub_vga_setcolorstate): Likewise.
20458 (grub_vga_setcursor): Likewise.
20459 (grub_video_vga_init): New function.
20460 (grub_video_vga_setup): Likewise.
20461 (grub_video_vga_fini): Likewise.
20462 (update_target): Likewise.
20463 (grub_video_vga_blit_bitmap): Likewise.
20464 (grub_video_vga_blit_render_target): Likewise.
20465 (grub_video_vga_set_active_render_target): Likewise.
20466 (grub_video_vga_get_active_render_target): Likewise.
20467 (grub_video_vga_swap_buffers): Likewise.
20468 (grub_video_vga_set_palette): Likewise.
20469 (grub_video_vga_get_info_and_fini): Likewise.
20470 (grub_vga_term): Removed.
20471 (grub_video_vga_adapter): New variable.
20472 (GRUB_MOD_INIT): Register a video driver instead of terminal.
20473 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
20475 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20477 * video/readers/jpeg.c: Indented.
20479 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20481 Various jpeg cleanups.
20483 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
20484 (grub_jpeg_decode_quan_table): Use sizeof.
20485 (grub_jpeg_decode_du): Use ARRAY_SIZE.
20487 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
20489 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
20490 tables. Ignore non-last ac bit.
20491 (grub_jpeg_decode_quan_table): Likewise.
20493 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20495 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
20496 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
20497 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20498 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
20499 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
20500 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
20502 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20504 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
20507 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20509 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
20511 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20513 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
20516 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20518 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
20521 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20523 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
20526 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20528 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
20530 2010-05-01 Christian Franke <franke@computer.org>
20532 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
20533 Remove broken Cygwin path conversion.
20534 * util/misc.c: [__CYGWIN__] Add include and define.
20535 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
20537 (make_system_path_relative_to_its_root): Simplify loop, replace early
20539 [__CYGWIN__] Add conversion to win32 path.
20540 Include "/" case in trailing slash removal.
20542 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20544 * kern/main.c (grub_load_config): Fix copy-pasted comment.
20545 Reported by: Seth Goldberg
20547 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20549 * commands/help.c (grub_cmd_help): Fix a typo.
20550 Reported by: Seth Goldberg
20552 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20554 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
20556 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
20557 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
20558 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
20559 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
20560 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
20561 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
20562 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
20563 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
20564 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
20565 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20566 * normal/context.c (GRUB_MOD_INIT): Likewise.
20567 * normal/main.c (GRUB_MOD_INIT): Likewise.
20568 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
20569 * term/serial.c (GRUB_MOD_INIT): Likewise.
20570 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
20572 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20574 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
20577 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20579 * commands/iorw.c: New file.
20580 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
20581 (iorw_mod_SOURCES): New variable.
20582 (iorw_mod_CFLAGS): Likewise.
20583 (iorw_mod_LDFLAGS): Likewise.
20585 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20589 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
20590 * normal/main.c (hotkey_aliases): New variable.
20591 (grub_normal_add_menu_entry): Parse "--hotkey".
20592 * normal/menu_text.c (run_menu): Handle hotkeys.
20594 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20596 * kern/i386/coreboot/init.c (grub_machine_init): Call
20597 grub_machine_mmap_init on qemu.
20599 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20601 * boot/i386/qemu/boot.S: Add a missing .code16.
20603 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20605 Use LBIO on coreboot.
20607 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
20608 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
20609 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
20611 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
20612 grub_machine_mmap_init on coreboot.
20613 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
20614 GRUB_LINUXBIOS_MEMBER_LINK.
20615 (grub_machine_mmap_iterate): Fix declaration.
20616 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
20618 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20620 Split coreboot and multiboot ports.
20622 * conf/i386-multiboot.rmk: New file.
20623 * configure.ac: Add multiboot port.
20624 * include/grub/i386/multiboot/boot.h: New file.
20625 * include/grub/i386/multiboot/console.h: Likewise.
20626 * include/grub/i386/multiboot/init.h: Likewise.
20627 * include/grub/i386/multiboot/kernel.h: Likewise.
20628 * include/grub/i386/multiboot/loader.h: Likewise.
20629 * include/grub/i386/multiboot/memory.h: Likewise.
20630 * include/grub/i386/multiboot/serial.h: Likewise.
20631 * include/grub/i386/multiboot/time.h: Likewise.
20632 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
20633 * loader/multiboot.c: Likewise.
20634 * loader/multiboot_mbi2.c: Likewise.
20635 * util/grub-mkrescue.in: Generate multiboot rescue.
20637 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20639 * kern/parser.c (grub_parser_execute): Cope with read-only config.
20641 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20643 Merge handling of input and output terminals. Fix a hang.
20645 * commands/terminal.c (abstract_terminal): New struct.
20646 (handle_command): New function. Based on grub_cmd_terminal_input.
20647 (grub_cmd_terminal_input): Use handle_command.
20648 (grub_cmd_terminal_output): Use handle_command.
20650 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
20652 Fix comment handling.
20654 * tests/grub_script_comments.in: New testcase.
20655 * conf/tests.rmk: Rules for new testcase.
20656 * script/yylex.l: Updated flex rules.
20658 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
20660 * docs/grub.texi (play): Document that zero pitches produce rests.
20661 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
20664 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20666 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
20669 2010-04-26 Christian Franke <franke@computer.org>
20671 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
20672 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
20673 (grub_get_prefix): Remove function.
20674 * util/grub-emu.c (main): Replace grub_get_prefix () call by
20675 make_system_path_relative_to_its_root ().
20676 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
20678 2010-04-24 Christian Franke <franke@computer.org>
20680 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
20681 (kernel_img_LDFLAGS): Remove -static-libgcc.
20683 2010-04-24 Christian Franke <franke@computer.org>
20685 * configure.ac: Do not CHECK_BSS_START_SYMBOL
20686 and CHECK_END_SYMBOL if grub-emu is built.
20687 Unset TARGET_OBJ2ELF if grub-emu is built
20688 without module support.
20690 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
20694 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
20695 (grub_fstest_SOURCES): Likewise.
20696 (pkglib_MODULES): Add nilfs2.mod.
20697 (nilfs2_mod_SOURCES): New variable.
20698 (nilfs2_mod_CFLAGS): Likewise.
20699 (nilfs2_mod_LDFLAGS): Likewise.
20700 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
20701 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
20702 * fs/nilfs2.c: New file.
20704 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
20706 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
20709 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
20711 Add grub-mkconfig support for NetBSD.
20713 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
20714 * util/grub-mkconfig.in: export new NetBSD specific variables.
20715 * po/POTFILES-shell: added 10_netbsd.in.
20716 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
20718 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
20720 Fix emu build with grub-emu-pci and grub-emu-modules.
20722 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
20724 * include/grub/libpciaccess.h: New file.
20725 * conf/any-emu.rmk: Update kernel headers for emu build.
20727 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20729 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
20731 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20733 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
20735 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20737 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
20738 Retrieve chosen/bootpath if bootpath isn't hardcoded.
20739 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
20740 util/ieee1275/ofpath.c.
20741 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
20742 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
20743 * include/grub/sparc64/ieee1275/boot.h
20744 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
20745 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
20746 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
20747 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
20749 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
20750 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
20751 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
20754 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
20756 * util/grub-mkconfig.in: Corrected two == equality tests.
20757 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
20758 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
20759 expect a number appended to it.
20760 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
20761 expects a number appended to it.
20763 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20765 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
20767 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20769 * util/hostdisk.c (make_device_name): Change to new partition naming.
20771 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20773 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
20775 2010-04-17 Christian Franke <franke@computer.org>
20777 * Makefile.in: Add missing localedir setting.
20779 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
20781 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
20782 mistake in r2156. Noticed by Anthony Fok.
20784 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
20786 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
20788 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
20790 Fix a spurious, uninitialized variable warning.
20792 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
20793 Initialize variable, shdr.
20794 (grub_freebsd_load_elfmodule): Likewise.
20795 (grub_freebsd_load_elf_meta): Likewise.
20797 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
20799 Fix for escaped dollar in double quoted strings.
20801 * script/yylex.l: Updated flex rules.
20802 * conf/tests.rmk: Rule for new testcase.
20803 * tests/grub_script_dollar.in: New testcase.
20805 2010-04-13 Carles Pina i Estany <carles@pina.cat>
20806 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
20808 Enclose all translated strings in grub.cfg in single quotes, and
20809 escape them appropriately (Ubuntu bug #552921).
20811 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
20812 * util/grub.d/10_hurd.in: Use it.
20813 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
20814 * util/grub.d/10_linux.in (linux_entry): Likewise.
20816 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20818 Fix cygwin compilation.
20820 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
20821 * include/grub/misc.h (__register_frame_info)
20822 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
20823 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
20824 * kern/misc.c (__register_frame_info)
20825 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
20826 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
20828 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20830 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
20832 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20834 Unify libgcc processing.
20836 * Makefile.in (kernel_img_LDFLAGS): New variable.
20837 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
20838 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
20840 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
20841 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
20842 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
20843 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
20844 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
20845 overwriting. Remove -lgcc and -static-libgcc
20846 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
20847 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
20848 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
20849 (kernel_img_LDFLAGS): Append instead of overwriting.
20850 Remove -lgcc and -static-libgcc
20851 * conf/sparc64-ieee1275.rmk: Likewise.
20852 * include/grub/powerpc/libgcc.h: Move to ...
20853 * include/grub/libgcc.h: .. this.
20854 * include/grub/libgcc.h: Don't export most of the function on x86.
20855 (__bswapsi2): New export.
20856 (__bswapdi2): Likewise.
20857 * include/grub/mips/libgcc.h: Removed.
20858 * include/grub/sparc64/libgcc.h: Likewise.
20860 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20862 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
20863 disk_info_msg (conflicts with gettexting into languages with cases).
20865 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
20867 Add grub-probe support for NetBSD.
20869 * util/getroot.c (find_root_device): Convert block device to
20870 character device on NetBSD.
20871 * util/probe.c (probe): Require character device on NetBSD.
20872 * util/hostdisk.c: NetBSD specific headers.
20873 (configure_device_driver): new function to tune device driver
20874 parameters (currently only for NetBSD floppy driver).
20875 (grub_util_biosdisk_open): NetBSD specific code (get disk size
20876 via disklabel ioctl).
20877 (open_device): call configure_device_driver on NetBSD.
20878 (convert_system_partition_to_system_disk): NetBSD specific code.
20879 (device_is_wholedisk): Likewise.
20880 (grub_util_biosdisk_get_grub_dev): Likewise.
20881 (make_device_name): Fixed a typo in bsd_part_str.
20882 * configure.ac: check for opendisk() and getrawpartition() on
20883 NetBSD and set LIBUTIL.
20884 * Makefile.in: add LIBUTIL to LIBS.
20886 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
20890 * util/grub-script-check.c: Better help message.
20892 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
20896 * configure.ac: Flex version check.
20897 * conf/common.rmk: Add -Wno-error to sh.mod.
20898 * script/yylex.l: Remove all #pragma.
20900 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20902 * include/grub/util/misc.h (canonicalise_file_name): Add missing
20904 Reported by: Seth Goldberg.
20906 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20908 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
20909 Rename "module" to "module2".
20910 Reported by: Seth Goldberg.
20912 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20914 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
20916 Reported by: Seth Goldberg.
20918 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20920 * lib/posix_wrap/locale.h: Add missing file.
20921 Reported by: Seth Goldberg.
20923 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20925 grub-emu module load support.
20927 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
20928 NO_DYNAMIC_MODULES switched to this.
20929 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
20930 (CFLAGS): Likewise.
20931 * conf/any-emu.rmk: Generate symlist.
20932 (kernel_img_HEADERS): Add util/datetime.h.
20933 (kernel_img_HEADERS) [sdl]: Add sdl.h.
20934 (kernel_img_HEADERS) [libusb]: Add libusb.h.
20935 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
20936 kern/$(target_cpu)/cache.S.
20937 * configure.ac (grub-emu-modules): New option.
20938 * genmk.rb: Handle multiple source lists.
20939 * include/grub/sdl.h: New file.
20940 * include/grub/libusb.h: Likewise.
20941 * util/grub-emu.c (main): Hanle (host) root.
20942 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
20943 GRUB_ERR_UNKNOWN_DEVICE.
20944 * util/misc.c: Move mm functions to ...
20945 * util/mm.c: ... here. All users updated.
20947 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20949 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
20950 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
20952 (maintainer-clean): Remove libgcrypt-grub.
20954 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20956 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
20958 2010-04-09 EFI Coder <eficoder@hotmail.com>
20960 * normal/menu_text.c (print_message): Clean up the message and show
20961 the Fn information when on EFI
20962 * term/efi/console.c (grub_console_checkkey): Add F4 support.
20964 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20966 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
20968 * normal/crypto.c (read_crypto_list): Likewise.
20969 * normal/dyncmd.c (read_command_list): Likewise.
20970 * normal/term.c (read_terminal_list): Likewise.
20971 * normal/main.c (read_lists): Use explicit prefix.
20972 (read_lists_hook): Use read_lists.
20973 (grub_normal_execute): Likewise.
20975 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20977 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
20978 Reported by: Thomas Schmitt.
20979 Add -no-emul-boot to grub-mkisofs parameters.
20981 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20983 * font/font.c: Indented.
20985 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
20987 Elif support to GRUB script (by Deepak Vankadaru).
20989 * tests/grub_script_if.in: New testcase.
20990 * conf/tests.rmk: Rule for new testcase.
20991 * script/parser.y: Grammar rules for elif.
20993 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
20995 While and until loops support to GRUB script.
20997 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
20998 (grub_script_create_cmdwhile): New function prototype.
20999 (grub_script_execute_cmdwhile): New function prototype.
21000 * script/execute.c (grub_script_execute_cmdwhile): New function.
21001 * script/parser.y (command): New commands.
21002 (whilecmd): New grammar rule.
21003 (untilcmd): New grammar rule.
21004 * script/script.c (grub_script_create_cmdwhile): New function.
21005 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21008 * tests/grub_script_while1.in: New testcase.
21009 * conf/tests.rmk: Rule for new testcase.
21011 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21013 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21016 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
21018 GRUB_BACKGROUND support.
21020 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21021 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21023 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21025 Load fonts and modules for gfxmenu in grub-mkconfig.
21026 Idea by: Mario Vazquez
21028 * util/grub.d/00_header.in: Load pf2 and image modules.
21030 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21032 grub-mkconfig multiple terminal support.
21034 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21035 * util/grub.d/00_header.in: Likewise.
21037 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21039 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21040 we use cd $(srcdir).
21042 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
21044 * util/grub.d/10_linux.in: Only use the first word of
21045 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21046 spaces in GRUB_DISTRIBUTOR.
21047 * util/grub.d/10_kfreebsd.in: Likewise.
21048 * util/grub.d/10_hurd.in: Likewise.
21050 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
21052 Fix unit testing framework for Qemu 0.12.
21054 * tests/util/grub-shell.in: Remove -serial stdio option.
21056 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21058 POSIX header file wrappers.
21060 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
21062 * lib/posix_wrap/ctype.h: Likewise.
21063 * lib/posix_wrap/errno.h: Likewise.
21064 * lib/posix_wrap/langinfo.h: Likewise.
21065 * lib/posix_wrap/limits.h: Likewise.
21066 * lib/posix_wrap/localcharset.h: Likewise.
21067 * lib/posix_wrap/stdint.h: Likewise.
21068 * lib/posix_wrap/stdio.h: Likewise.
21069 * lib/posix_wrap/stdlib.h: Likewise.
21070 * lib/posix_wrap/string.h: Likewise.
21071 * lib/posix_wrap/sys/types.h: Likewise.
21072 * lib/posix_wrap/unistd.h: Likewise.
21073 * lib/posix_wrap/wchar.h: Likewise.
21074 * lib/posix_wrap/wctype.h: Likewise.
21075 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
21076 (grub_script.yy.h): Likewise.
21077 * script/yylex.l: Remove POSIX emulation #defines.
21078 * Makefile.in (POSIX_CFLAGS): New variable.
21079 (GNULIB_UTIL_CFLAGS): Likewise.
21083 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
21084 (regexp_mod_SOURCES): New variable.
21085 (regexp_mod_CFLAGS): Likewise.
21086 (regexp_mod_LDFLAGS): Likewise.
21087 * commands/regexp.c: New file.
21088 * gnulib/regcomp.c: New file. Imported from gnulib.
21089 * gnulib/regex.c: Likewise.
21090 * gnulib/regex_internal.c: Likewise.
21091 * gnulib/regex_internal.h: Likewise.
21092 * gnulib/regexec.c: Likewise.
21093 * gnulib/regex.h: Likewise.
21095 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21097 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
21098 unsupported video mode types.
21100 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21102 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
21104 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21106 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
21107 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
21109 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21111 Remove unused grub_vga_get_font.
21113 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
21114 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
21116 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21118 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
21119 * include/grub/misc.h: Likewise.
21121 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21123 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
21124 for which failure is fatal.
21126 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21128 * util/grub-install.in: Use mkdir -p to create grub directory.
21129 * util/i386/efi/grub-install.in: Likewise.
21130 * util/ieee1275/grub-install.in: Likewise.
21132 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21134 * Makefile.in (LEX): new variable.
21136 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21138 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
21139 `=' and added double quotes on operands of this equality test.
21141 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21143 * Makefile.in (uninstall): Remove a leftover debug echo.
21144 Reported by: Grégoire Sutre
21146 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21148 MIPS multiboot2 support.
21150 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
21151 (multiboot2_mod_SOURCES): New variable.
21152 (multiboot2_mod_CFLAGS): Likewise.
21153 (multiboot2_mod_LDFLAGS): Likewise.
21154 (multiboot2_mod_ASFLAGS): Likewise.
21155 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
21157 (MULTIBOOT_ENTRY_REGISTER): Likewise.
21158 (MULTIBOOT_MBI_REGISTER): Likewise.
21159 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
21160 (MULTIBOOT_ELF32_MACHINE): Likewise.
21161 (MULTIBOOT_ELF64_MACHINE): Likewise.
21162 * include/grub/mips/multiboot.h: New file.
21163 * include/grub/video.h (grub_video_driver_id): New type
21164 GRUB_VIDEO_DRIVER_SM712.
21165 (grub_video_get_info_and_fini): Export.
21166 (grub_video_get_palette): Likewise.
21167 (grub_video_get_driver_id): Likewise.
21168 * include/multiboot2.h: Resynced with spec.
21169 * loader/i386/multiboot.c: Moved from here ...
21170 * loader/multiboot.c: ... here. All users updated.
21171 (grub_multiboot_boot): Use platform-specific macros.
21172 * loader/i386/multiboot_elfxx.c: Moved from here ...
21173 * loader/multiboot_elfxx.c: ... here. All users updated.
21174 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
21175 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
21176 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
21178 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
21180 Import gnulib argp module.
21182 * gnulib/argp-ba.c: New file.
21183 * gnulib/argp-eexst.c: Likewise.
21184 * gnulib/argp-fmtstream.c: Likewise.
21185 * gnulib/argp-fmtstream.h: Likewise.
21186 * gnulib/argp-fs-xinl.c: Likewise.
21187 * gnulib/argp-help.c: Likewise.
21188 * gnulib/argp-namefrob.h: Likewise.
21189 * gnulib/argp-parse.c: Likewise.
21190 * gnulib/argp-pin.c: Likewise.
21191 * gnulib/argp-pv.c: Likewise.
21192 * gnulib/argp-pvh.c: Likewise.
21193 * gnulib/argp-version-etc.c: Likewise.
21194 * gnulib/argp-version-etc.h: Likewise.
21195 * gnulib/argp-xinl.c: Likewise.
21196 * gnulib/argp.h: Likewise.
21198 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21200 * kern/device.c (grub_device_iterate): Clear errors after failed
21203 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
21205 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
21206 returned by firmware.
21208 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
21210 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
21211 compilation on coreboot and qemu
21213 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21215 * include/multiboot2.h: Resync with spec.
21217 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
21219 Multiboot2 tag support
21221 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
21222 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
21223 Remove loader/multiboot_loader.c.
21224 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
21225 (grub_multiboot2_real_boot): Likewise.
21226 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
21227 (grub_get_multiboot_mmap_count): New proto.
21228 (grub_fill_multiboot_mmap): Likewise.
21229 (grub_multiboot_set_video_mode): Likewise.
21230 (grub_multiboot_set_console): Likewise.
21231 (grub_multiboot_load): Likewise.
21232 (grub_multiboot_load_elf): Likewise.
21233 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
21234 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
21235 * include/multiboot.h: Resynced with specification.
21236 * include/multiboot2.h: Resynced with specification.
21237 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
21238 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
21239 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
21240 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
21242 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
21243 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
21244 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
21246 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
21248 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
21249 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
21251 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
21252 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
21253 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
21255 * loader/i386/multiboot_mbi2.c: New file.
21257 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21259 Resync with gnulib.
21261 * Makefile.in (GNULIB_CFLAGS): New variable.
21262 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
21263 (grub_script_check_CFLAGS): New variable.
21264 * gnulib/alloca.h: Resync with gnulib.
21265 * gnulib/error.c: Likewise.
21266 * gnulib/error.h: Likewise.
21267 * gnulib/fnmatch.c: Likewise.
21268 * gnulib/fnmatch_loop.c: Likewise.
21269 * gnulib/getdelim.c: Likewise.
21270 * gnulib/getline.c: Likewise.
21271 * gnulib/getopt.c: Likewise.
21272 * gnulib/getopt1.c: Likewise.
21273 * gnulib/getopt_int.h: Likewise.
21274 * gnulib/gettext.h: Likewise.
21275 * gnulib/progname.c: Likewise.
21276 * gnulib/progname.h: Likewise.
21278 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
21280 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
21281 which is the case with --disabled-nls.
21283 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
21284 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
21285 * util/misc.c: Likewise.
21286 * util/mkisofs/mkisofs.c: Likewise.
21287 * util/mkisofs/mkisofs.h: Likewise.
21289 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
21291 Simplify Apple CC support.
21293 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
21294 Add 0 byte at the end not to have a symbol with empty target.
21295 * mmap/i386/pc/mmap_helper.S: Likewise.
21296 * genmk.rb: Ignore errors 2030 and 2050.
21297 * kern/i386/pc/startup.S: Use LOCAL when possible.
21299 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
21301 Testcase and the fix for final semicolon on cmdline.
21303 * tests/grub_script_final_semicolon.in: New testcase.
21304 * conf/tests.rmk: Rules for the new testcase.
21305 * script/parser.y: Grammar fix.
21307 2010-03-26 BVK Chaitanya <bvk@localhost>
21309 Blank lines testcase for GRUB script.
21311 * tests/grub_script_blanklines.in: New testcase.
21312 * conf/tests.rmk: Rules for the new testcase.
21314 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21316 Don't use __FILE__.
21318 * genmk.rb: Add -DGRUB_FILE to all C targets.
21319 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
21320 * include/grub/list.h: Likewise.
21321 * include/grub/misc.h: Likewise.
21322 * include/grub/mm.h: Likewise.
21323 * include/grub/test.h: Likewise.
21324 * kern/mm.c: Likewise.
21325 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
21327 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21329 Sunpc partitions support.
21331 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
21332 (grub_fstest_SOURCES): Likewise.
21333 (pkglib_MODULES): Add part_sunpc.mod.
21334 (part_sunpc_mod_SOURCES): New variable.
21335 (part_sunpc_mod_CFLAGS): Likewise.
21336 (part_sunpc_mod_LDFLAGS): Likewise.
21337 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
21338 * partmap/sunpc.c: New file.
21340 2010-03-26 BVK Chaitanya <bvk@localhost>
21342 For loop support to GRUB script.
21344 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
21345 (grub_script_create_cmdfor): New function prototype.
21346 (grub_script_execute_cmdfor): New function prototype.
21347 * script/execute.c (grub_script_execute_cmdfor): New function.
21348 * script/parser.y (command): New for command.
21349 (forcmd): New grammar rule.
21350 * script/script.c (grub_script_create_cmdfor): New function.
21351 * util/grub-script-check.c (grub_script_execute_cmdfor): New
21353 * tests/grub_script_for1.in: New testcase.
21354 * conf/tests.rmk: Rules for new testcase.
21356 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21360 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
21361 'partition' is NULL, grub_partition_get_start already does that.
21362 * commands/loadenv.c (check_blocklists): Likewise.
21363 (write_blocklists): Likewise.
21364 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
21365 (grub_fstest_SOURCES): Likewise.
21366 (pkglib_MODULES): Add part_bsd.mod.
21367 (part_bsd_mod_SOURCES): New variable.
21368 (part_bsd_mod_CFLAGS): Likewise.
21369 (part_bsd_mod_LDFLAGS): Likewise.
21370 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
21371 (grub_emu_SOURCES): Likewise.
21372 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21373 * include/grub/bsdlabel.h: New file.
21374 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
21376 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
21377 (grub_partition_map_list): New variable.
21378 (grub_partition_map_register): Inline.
21379 (grub_partition_map_unregister): Likewise.
21380 (FOR_PARTITION_MAPS): New macro.
21381 (grub_partition_map_iterate): Removed.
21382 (grub_partition_get_start): Handle nested partitions.
21383 * include/grub/msdos_partition.h: Remove bsd-related entries.
21384 (grub_pc_partition): Remove.
21385 * kern/disk.c (grub_disk_close): Free partition data.
21386 (grub_disk_adjust_range): Handle nested partitions.
21387 * kern/partition.c (grub_partition_map_probe): New function.
21388 (grub_partition_probe): Parse name to number, handle subpartitions.
21389 (get_partmap): New function.
21390 (grub_partition_iterate): Handle subpartitions.
21391 (grub_partition_get_name): Likewise.
21392 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
21393 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
21394 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
21395 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
21397 (acorn_partition_map_probe): Remove.
21398 (acorn_partition_map_get_name): Likewise.
21399 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
21401 Set 'index' to 0 since there can be only one partition entry per sector.
21402 (amiga_partition_map_probe): Remove.
21403 (amiga_partition_map_get_name): Likewise.
21404 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
21406 Set 'offset' and 'index' to real positions of partitions.
21407 (apple_partition_map_probe): Remove.
21408 (apple_partition_map_get_name): Likewise.
21409 * partmap/bsdlabel.c: New file.
21410 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
21412 Allocate 'data' so it can be correctly freed.
21413 Set 'index' to offset inside sector.
21414 (gpt_partition_map_probe): Remove.
21415 (gpt_partition_map_get_name): Likewise.
21416 * partmap/msdos.c (grub_partition_parse): Remove.
21417 (pc_partition_map_iterate): Don't force raw access.
21419 Make 'ext_offset' a local variable.
21420 (pc_partition_map_probe): Remove.
21421 (pc_partition_map_get_name): Remove.
21422 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
21424 (sun_partition_map_probe): Remove.
21425 (sun_partition_map_get_name): Likewise.
21426 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
21427 (grub_pcpart_type): Likewise.
21428 * util/hostdisk.c (open_device): Handle new numbering scheme.
21429 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
21430 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
21431 * util/grub-probe.c (probe_partmap): Handle nested paritions.
21432 * util/grub-install.in: Insert all subpartition modules.
21433 * util/ieee1275/grub-install.in: Likewise.
21435 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
21437 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
21440 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
21442 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
21444 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
21446 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
21447 match where 'make install' puts them.
21448 * util/i386/efi/grub-install.in: Likewise.
21450 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
21452 * .bzrignore: Add gentrigtables, grub-script-check,
21453 grub_script_check_init.c, grub_script_check_init.h, and
21456 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
21458 * kern/parser.c: Indented.
21460 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21462 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
21464 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21466 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
21467 alpha_mask_size == 0 case.
21469 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
21471 GRUB shell lexer and parser improvements.
21473 * conf/any-emu.rmk: Build rule updates.
21474 * conf/common.rmk: Likewise.
21475 * conf/i386-coreboot.rmk: Likewise.
21476 * conf/i386-efi.rmk: Likewise.
21477 * conf/i386-ieee1275.rmk: Likewise.
21478 * conf/i386-pc.rmk: Likewise.
21479 * conf/powerpc-ieee1275.rmk: Likewise.
21480 * conf/x86_64-efi.rmk: Likewise.
21482 * configure.ac: Configure check for flex.
21484 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
21486 (grub_lexer_param): Struct member updates.
21487 (grub_parser_param): Likewise.
21488 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
21489 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
21490 (grub_script_lexer_init): Prototype update.
21491 (grub_script_lexer_record_start): Likewise.
21492 (grub_script_lexer_record_stop): Likewise.
21493 (grub_script_lexer_yywrap): New function prototype.
21494 (grub_script_lexer_fini): Likewise.
21495 (grub_script_execute_argument_to_string): Removed by...
21496 (grub_script_execute_argument_to_argv): ...better version.
21498 * script/execute.c (ROUND_UPTO): New macro.
21499 (grub_script_execute_cmdline): Out of memory fixes.
21500 (grub_script_execute_menuentry): Likewise.
21501 (grub_script_execute_argument_to_string): Removed. Update all
21503 (grub_script_execute_argument_to_argv): ...better version.
21504 * script/function.c (grub_script_function_create): Use
21505 grub_script_execute_argument_to_argv instead of
21506 grub_script_execute_argument_to_string.
21508 * script/lexer.c (check_varstate): Removed.
21509 (check_textstate): Removed.
21510 (grub_script_lexer_record_start): Likewise.
21511 (grub_script_lexer_record_stop): Likewise.
21512 (recordchar): Replaced with...
21513 (grub_script_lexer_record): ...new function.
21514 (nextchar): Removed.
21515 (grub_script_lexer_init): Rewritten.
21516 (grub_script_yylex): Rewritten.
21517 (append_newline): New function.
21518 (grub_script_lexer_yywrap): New function.
21519 (grub_script_lexer_fini): New function.
21520 (grub_script_yyerror): Sets error flag.
21522 * script/yylex.l: New file.
21523 (grub_lexer_yyfree): Wrapper for flex yyffre.
21524 (grub_lexer_yyalloc): Likewise.
21525 (grub_lexer_yyrealloc): Likewise.
21526 * script/parser.y: Refactored.
21528 * script/script.c (grub_script_arg_add): Out of memory fixes.
21529 (grub_script_add_arglist): Likewise.
21530 (grub_script_create_cmdline): Likewise.
21531 (grub_script_create_cmdmenu): Likewise.
21532 (grub_script_add_cmd): Likewise.
21533 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
21534 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
21537 * tests/grub_script_echo1.in: New testcase.
21538 * tests/grub_script_vars1.in: New testcase.
21539 * tests/grub_script_echo_keywords.in: New testcase.
21541 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21543 Remove some redundancy in build system.
21545 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
21546 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
21547 (TARGET_LDFLAGS): Add -nostdlib.
21548 (TARGET_IMG_LDFLAGS): Likewise.
21549 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
21550 anything since mmap isn't available.
21551 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
21553 (pkglib_MODULES): Remove reboot.mod.
21554 (reboot_mod_SOURCES): Removed.
21555 (reboot_mod_CFLAGS): Likewise.
21556 (reboot_mod_LDFLAGS): Likewise.
21557 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
21558 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
21559 (DEFSYMFILES): Add kernel_syms.lst.
21560 (kernel_img_HEADERS): Add common headers.
21561 (symlist.c): New target.
21562 (kernel_syms.lst): Likewise.
21563 (pkglib_MODULES): Add memdisk.mod.
21564 (memdisk_mod_SOURCES): New variable.
21565 (memdisk_mod_CFLAGS): Likewise.
21566 (memdisk_mod_LDFLAGS): Likewise.
21567 (pkglib_MODULES): Add reboot.mod.
21568 (reboot_mod_SOURCES): New variable.
21569 (reboot_mod_CFLAGS): Likewise.
21570 (reboot_mod_LDFLAGS): Likewise.
21571 (pkglib_MODULES): Add date.mod.
21572 (date_mod_SOURCES): New variable.
21573 (date_mod_CFLAGS): Likewise.
21574 (date_mod_LDFLAGS): Likewise.
21575 (pkglib_MODULES): Add datehook.mod.
21576 (datehook_mod_SOURCES): New variable.
21577 (datehook_mod_CFLAGS): Likewise.
21578 (datehook_mod_LDFLAGS): Likewise.
21579 (pkglib_MODULES): Add lsmmap.mod.
21580 (lsmmap_mod_SOURCES): New variable.
21581 (lsmmap_mod_CFLAGS): Likewise.
21582 (lsmmap_mod_LDFLAGS): Likewise.
21583 (pkglib_MODULES): Add boot.mod.
21584 (boot_mod_SOURCES): New variable.
21585 (boot_mod_CFLAGS): Likewise.
21586 (boot_mod_LDFLAGS): Likewise.
21587 * conf/i386-coreboot.rmk: Removed redundant parts.
21588 * conf/i386-ieee1275.rmk: Likewise.
21589 * conf/i386-pc.rmk: Likewise.
21590 * conf/mips-yeeloong.rmk: Likewise.
21591 * conf/mips.rmk: Likewise.
21592 * conf/powerpc-ieee1275.rmk: Likewise.
21593 * conf/sparc64-ieee1275.rmk: Likewise.
21594 * conf/x86_64-efi.rmk: Likewise.
21595 * conf/i386-coreboot.rmk: Moved qemu parts ..
21596 * conf/i386-qemu.rmk: ... here
21597 * conf/i386-efi.rmk: Moved common parts to...
21598 * conf/x86-efi.rmk: ... here.
21599 * conf/i386.rmk: Added modules common to all x86 variants.
21600 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
21601 * disk/memdisk.c: Remove grub/machine/kernel.h.
21602 * gensymlist.sh.in: Include symbol.h.
21603 * hook/datehook.c: Correct module name.
21604 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
21605 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
21606 * include/grub/i386/efi/serial.h: New file.
21607 * include/grub/x86_64/efi/serial.h: Likewise.
21608 * util/time.c: Likewise.
21609 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
21611 2010-03-14 Colin King <colin.king@ubuntu.com>
21612 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
21614 Shrink the pre-partition-table part of boot.img by eight bytes.
21616 * boot/i386/pc/boot.S (ERR): New macro.
21617 (chs_mode): Use ERR.
21618 (geometry_error): Likewise.
21619 (hd_probe_error): Remove. This is only used once, so we wrwite
21621 (read_error): Instead of printing read_error_string, just set up
21622 %si and fall through to ...
21623 (error_message): ... this new function, also used by ERR.
21625 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
21627 Speed up consecutive hostdisk operations on the same device.
21629 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
21630 (grub_util_biosdisk_open): Initialise disk->data.
21631 (struct linux_partition_cache): New structure.
21632 (linux_find_partition): Cache partition start positions; these are
21633 expensive to compute on every read and write.
21634 (open_device): Cache open file descriptor in disk->data, so that we
21635 don't have to reopen it and flush the buffer cache for consecutive
21636 operations on the same device.
21637 (grub_util_biosdisk_close): New function.
21638 (grub_util_biosdisk_dev): Set `close' member.
21640 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
21641 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
21642 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21643 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
21644 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
21646 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21648 Compile parts of grub-emu as modules.
21650 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
21651 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
21652 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
21653 (all-local): Add $(GRUB_EMU).
21654 (install-local): Install $(GRUB_EMU).
21655 (uninstall): Uninstall $(GRUB_EMU).
21656 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
21657 * kern/dl.c: Likewise.
21658 * commands/sleep.c: Not include machine/time.h.
21659 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
21660 (COMMON_CFLAGS): Likewise.
21661 (sbin_UTILITIES): Remove grub-emu.
21662 (grub_emu_SOURCES): Removed.
21663 (kernel_img_RELOCATABLE): New variable.
21664 (pkglib_PROGRAMS): Add kernel.img.
21665 (kernel_img_SOURCES): New variable
21666 (kernel_img_CFLAGS): Likewise.
21667 (kernel_img_LDFLAGS): Likewise.
21668 (TARGET_NO_STRIP): Likewise.
21669 (TARGET_NO_DYNAMIC_MODULES): Likewise.
21670 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
21671 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
21672 (grub-emu): New target.
21673 (GRUB_EMU): New variable.
21674 * configure.ac: Whitelist -emu as possible x86_64 architecture.
21675 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
21676 * loader/xnu.c: Likewise.
21677 * include/grub/pci.h: Likewise.
21678 * genemuinit.sh: New file.
21679 * genemuinitheader.sh: Likewise.
21680 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
21681 Support TARGET_NO_DYNAMIC_MODULES.
21682 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
21683 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
21684 * disk/loopback.c: Likewise.
21685 * font/font_cmd.c: Likewise.
21686 * partmap/acorn.c: Likewise.
21687 * partmap/amiga.c: Likewise.
21688 * partmap/apple.c: Likewise.
21689 * partmap/gpt.c: Likewise.
21690 * partmap/msdos.c: Likewise.
21691 * partmap/sun.c: Likewise.
21692 * parttool/msdospart.c: Likewise.
21693 * term/gfxterm.c: Likewise.
21694 * video/bitmap.c: Likewise.
21695 * video/readers/jpeg.c: Likewise.
21696 * video/readers/png.c: Likewise.
21697 * video/readers/tga.c: Likewise.
21698 * video/video.c: Likewise.
21699 * util/grub-emu.c (read_command_list): Removed.
21700 (main): Don't call util_init_nls.
21701 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
21702 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
21704 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21706 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
21707 date.mod, datehook.mod.
21708 (datetime_mod_SOURCES): New variable.
21709 (datetime_mod_CFLAGS): Likewise.
21710 (datetime_mod_LDFLAGS): Likewise.
21711 (date_mod_SOURCES): Likewise.
21712 (date_mod_CFLAGS): Likewise.
21713 (date_mod_LDFLAGS): Likewise.
21714 (datehook_mod_SOURCES): Likewise.
21715 (datehook_mod_CFLAGS): Likewise.
21716 (datehook_mod_LDFLAGS): Likewise.
21717 * conf/sparc64-ieee1275.rmk: Likewise.
21718 * lib/ieee1275/datetime.c: New file.
21720 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21722 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
21723 (ieee1275_fb_mod_SOURCES): New variable.
21724 (ieee1275_fb_mod_CFLAGS): Likewise.
21725 (ieee1275_fb_mod_LDFLAGS): Likewise.
21726 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
21728 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
21729 (HEAP_MAX_ADDR): Likewise.
21730 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
21732 Correct stop condition.
21733 (grub_ieee1275_devices_iterate): New function.
21734 * video/ieee1275.c: New file.
21736 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21738 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
21740 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
21742 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
21743 SCRATCH_PAD_DISKBOOT as scratch.
21744 (bootit): Pass Openfirmware pointer in %o4.
21745 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
21747 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
21748 with util/grub-mkrawimage.c.
21749 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
21750 * include/grub/aout.h (AOUT_MID_SUN): New definition.
21751 (grub_aout_get_type) [GRUB_UTIL]: Removed.
21752 (grub_aout_load) [GRUB_UTIL]: Likewise.
21753 * include/grub/kernel.h (grub_modules_get_end): New proto.
21754 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
21755 (SCRATCH_PAD_BOOT): New definition.
21756 (SCRATCH_PAD_DISKBOOT): Likewise.
21757 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
21758 * include/grub/sparc64/ieee1275/ieee1275.h
21759 (grub_ieee1275_original_stack): New variable
21760 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
21762 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
21763 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
21764 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
21765 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
21766 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
21767 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
21768 (grub_platform_image_format_t): New type.
21769 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
21770 * kern/main.c (grub_modules_get_end)
21771 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
21772 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
21773 (codestart): Switch stacks.
21774 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
21776 (grub_heap_init): Use grub_modules_get_end.
21777 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
21779 * util/grub-mkrawimage.c (generate_image): Support sparc64.
21781 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
21783 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
21785 * util/grub-mkrescue.in: Base ISO UUID on UTC.
21787 2010-03-08 Matt Kraai <kraai@ftbfs.org>
21789 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
21792 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
21794 * genmoddep.awk: Output all missing symbols and not only first.
21796 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21798 * NEWS: Put the date of 1.98 release.
21800 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21802 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
21805 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21807 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
21808 completition in the middle of string.
21810 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21812 * util/grub-mkrescue.in: Use mktemp with explicit template.
21814 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21816 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
21818 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21820 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
21823 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
21825 Fix FreeBSD compilation.
21827 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
21828 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
21830 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
21832 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
21834 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21836 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
21838 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21840 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
21842 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
21844 Support relative image path in theme file.
21846 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
21847 (image_set_property): Handle theme_dir and relative path.
21849 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21851 * configure.ac: Alias amd64 to x86_64.
21853 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21855 * NEWS: mention multiboot on EFI.
21857 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21859 * kern/main.c (grub_load_modules): Handle errors from init functions of
21862 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21864 * normal/autofs.c (autoload_fs_module): Handle errors.
21866 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21868 Disable linux.mod on qemu-mips since it's not functional and leads
21869 to compilation failure.
21871 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
21872 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
21873 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
21874 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
21875 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
21876 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
21877 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
21878 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
21879 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
21880 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
21881 Reported by: BVK Chaitanya
21883 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
21885 * INSTALL: Add gettext as a dependency and add qemu to a new section
21886 "Prerequisites for make-check".
21888 2010-03-04 Christian Franke <franke@computer.org>
21890 * util/grub-pe2elf.c: Add missing include "progname.h".
21892 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21894 * normal/crypto.c (read_crypto_list): Fix a typo.
21895 Reported by: Seth Goldberg.
21897 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21899 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
21900 Reported by: Seth Goldberg.
21902 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21904 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
21907 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21909 * genmk.rb: Remove terminal*.lst in make clean.
21910 Reported by: Seth Goldberg.
21912 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21914 * util/i386/efi/grub-install.in: Copy gettext files.
21916 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21918 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
21920 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21922 Wait for user entry basing on presence of output rather than on errors.
21924 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
21925 (grub_install_newline_hook): Likewise.
21926 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
21927 * normal/menu.c (show_menu): Check line_counter to determine presence
21929 * normal/term.c (grub_normal_line_counter): New variable.
21930 (grub_normal_get_line_counter): New function.
21931 (grub_install_newline_hook): Likewise.
21933 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21935 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
21937 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21939 * configure.ac: Update version to 1.98.
21941 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
21943 * util/grub.d/10_linux.in (linux_entry): Don't default to
21944 gfxpayload=keep if Linux doesn't support video handover.
21946 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
21948 Don't compile video modules on yeeloong since video subsystem is part
21951 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
21952 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
21953 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
21954 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
21955 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
21956 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
21957 * include/grub/bitmap_scale.h: Likewise.
21958 * include/grub/bufio.h: Likewise.
21959 * include/grub/font.h: Likewise.
21960 * include/grub/gfxterm.h: Likewise.
21961 * include/grub/video.h: Likewise.
21962 * include/grub/vbe.h: Don't include video_fb.h.
21963 * video/i386/pc/vbe.c: Include video_fb.h.
21964 * commands/i386/pc/vbetest.c: Include video.h.
21966 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
21968 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
21969 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
21970 default entry if GRUB_SAVEDEFAULT=true. This allows using
21971 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
21972 saving a new default on every boot.
21974 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
21976 * normal/crypto.c (read_crypto_list): Fix a memory leak.
21977 * normal/term.c (read_terminal_list): Likewise.
21978 * normal/main.c (grub_normal_init_page): Likewise.
21979 (grub_normal_read_line_real): Likewise.
21981 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
21983 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
21985 Reported by: Seth Goldberg.
21987 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
21989 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
21990 duplicate declaration of `start'.
21992 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
21994 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
21996 Reported by: Georgy Buranov
21998 2010-02-20 Carles Pina i Estany <carles@pina.cat>
22000 * util/grub-mkrawimage.c (usage): Change string formatting to
22003 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22005 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22008 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22010 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22011 Reported by: Michael Suchanek.
22013 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
22015 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22016 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22018 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22020 Remove any reference to non-free fonts.
22022 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22023 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22024 uses non-free components.
22025 * font/font.c (grub_font_get_name): Remove example name.
22026 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22027 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22028 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22029 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22031 2010-02-16 Georgy Buranov <gburanov@gmail.com>
22033 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22035 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22037 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22039 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22041 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22043 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22045 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22047 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22049 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22050 * docs/grub.texi (Command-line and menu entry commands): Document play
22053 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22055 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
22056 parse arguments as inline tempo and notes. Move code for playing notes
22058 (play): ... new function.
22060 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22062 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
22063 grub_uint16_t instead of short.
22064 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
22065 disk from little endian to cpu endianness.
22067 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
22069 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
22070 GRUB_TICKS_PER_SECOND instead of 120.
22072 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22074 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
22075 escape sequence after \e.
22077 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22079 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
22080 non-ASCII characters.
22082 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22084 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
22085 set root in single quotes to prevent \, from being unescaped.
22087 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22089 Prevent unknown commands from stopping menuentry execution.
22091 * script/execute.c (grub_script_execute_cmdline): Print error after
22094 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22096 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
22097 Reported by: Pavel Pisa.
22099 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22101 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
22103 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22105 Merge grub_ieee1275_map_physical into grub_map and rename to
22108 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
22109 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
22111 * kern/ieee1275/openfw.c (grub_map): Rename to ...
22112 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
22114 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
22116 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22118 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
22119 opening and not after.
22121 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22123 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
22126 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22128 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
22129 (alloc_phys): Use ALIGN_UP instead of align_addr.
22131 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22133 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
22135 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22137 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
22139 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22141 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
22144 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22146 Fix over-4GiB seek on sparc64.
22148 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
22149 Replace pos_i and pos_lo with pos. All users updated.
22150 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22152 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22154 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
22157 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22159 * util/grub-mkrawimage.c (main): Call set_program_name.
22161 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22163 Properly align 64-bit targets.
22165 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
22166 (generate_image): Use ALIGN_ADDR.
22168 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22170 Properly create cross-endian images.
22172 * include/grub/types.h (grub_host_to_target_addr): New macro
22173 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
22175 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22177 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
22179 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22181 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
22183 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
22184 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
22185 (grub_linux_boot): Divide by 64K when on VESA.
22187 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22189 Support GRUB_GFXPAYLOAD_LINUX.
22191 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
22192 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
22194 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
22196 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
22197 to show messages instead of discarding them.
22198 Process errors after executing command and not before. Keep old method
22201 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
22203 * configure.ac: Check for ft2build.h.
22205 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22207 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
22209 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22211 * genkernsyms.sh.in: Use TARGET_CC.
22213 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
22217 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22219 * include/grub/multiboot2.h: Remove leftover file.
22220 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
22221 * include/grub/partition.h [GRUB_UTIL]: Likewise.
22223 2010-02-07 Yves Blusseau <blusseau@zetam.org>
22225 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
22227 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22229 Fix warnings in grub-emu when compiling with maximum warning options.
22231 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
22232 (grub_arch_modules_addr): Return 0 and not NULL.
22233 * util/misc.c (ENABLE_RELOCATABLE): New definition.
22234 (xstrdup): Use newstr instead of dup.
22235 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
22236 of disk to dsk to avoid shadowing.
22237 (find_free_slot): Fix prototype.
22238 * util/getroot.c (grub_util_is_dmraid): Make static.
22239 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
22240 Add missing prototype.
22241 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
22243 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22245 * loader/i386/linux.c (grub_linux_setup_video): Handle error
22248 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22250 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
22253 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22255 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
22256 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
22257 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
22258 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
22259 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
22260 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
22262 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22264 * include/grub/err.h (grub_err_printf): Don't export.
22266 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22268 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
22270 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
22272 * include/grub/i18n.h (grub_gettext_dummy): Removed.
22273 * kern/misc.c (grub_gettext_dummy): Make static.
22275 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22277 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
22279 * kern/term.c (grub_putchar): Likewise.
22281 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22283 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
22284 buggy hook call and memory leak.
22286 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22288 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
22290 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22292 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
22294 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22296 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
22298 Return grub_errno on allocation error.
22300 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22302 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
22304 2010-02-06 Yves Blusseau <blusseau@zetam.org>
22306 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
22307 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
22309 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22311 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
22313 (grub_pxefs_open): Likewise.
22315 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22317 * util/grub.d/10_hurd.in: Add --class information to menuentries.
22318 * util/grub.d/10_kfreebsd.in: Likewise.
22319 * util/grub.d/10_linux.in: Likewise.
22321 2010-02-06 Colin D Bennett <colin@gibibit.com>
22323 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
22324 (gfxmenu_mod_SOURCES): New variable.
22325 (gfxmenu_mod_CFLAGS): Likewise.
22326 (gfxmenu_mod_LDFLAGS): Likewise.
22327 * include/grub/term.h (grub_term_set_current_output): Declare
22329 * docs/gfxmenu-theme-example.txt: New file.
22330 * gfxmenu/gfxmenu.c: Likewise.
22331 * gfxmenu/gui_box.c: Likewise.
22332 * gfxmenu/gui_canvas.c: Likewise.
22333 * gfxmenu/gui_circular_progress.c: Likewise.
22334 * gfxmenu/gui_image.c: Likewise.
22335 * gfxmenu/gui_label.c: Likewise.
22336 * gfxmenu/gui_list.c: Likewise.
22337 * gfxmenu/gui_progress_bar.c: Likewise.
22338 * gfxmenu/gui_string_util.c: Likewise.
22339 * gfxmenu/gui_util.c: Likewise.
22340 * gfxmenu/icon_manager.c: Likewise.
22341 * gfxmenu/model.c: Likewise.
22342 * gfxmenu/named_colors.c: Likewise.
22343 * gfxmenu/theme_loader.c: Likewise.
22344 * gfxmenu/view.c: Likewise.
22345 * gfxmenu/widget-box.c: Likewise.
22346 * include/grub/gfxmenu_model.h: Likewise.
22347 * include/grub/gfxmenu_view.h: Likewise.
22348 * include/grub/gfxwidgets.h: Likewise.
22349 * include/grub/gui.h: Likewise.
22350 * include/grub/gui_string_util.h: Likewise.
22351 * include/grub/icon_manager.h: Likewise.
22353 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22355 Agglomerate scrolling in gfxterm.
22357 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
22358 (grub_virtual_screen_setup): Initialise 'total_screen'.
22359 (write_char): Split to ...
22360 (paint_char): ... this ...
22361 (write_char): ... and this.
22362 (paint_char): Handle delayed scrolling.
22363 (draw_cursor): Likewise.
22364 (scroll_up): Split to ...
22365 (real_scroll): ... this ...
22366 (scroll_up): ... and this.
22367 (real_scroll): Handle multi-line scroll and draw below-the-bottom
22369 (grub_gfxterm_refresh): Call real_scroll.
22371 2010-02-06 Colin D Bennett <colin@gibibit.com>
22373 * include/grub/misc.h (grub_iscntrl): New inline function.
22374 (grub_isalnum): Likewise.
22375 (grub_strtol): Likewise.
22377 2010-02-06 Colin D Bennett <colin@gibibit.com>
22379 * normal/menu_text.c (get_entry_number): Move from here ...
22380 * normal/menu.c (get_entry_number): ... moved here.
22381 * include/grub/menu.h (grub_menu_get_default_entry_index):
22383 * normal/menu.c (grub_menu_get_default_entry_index): New function.
22384 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
22385 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
22386 (grub_menu_viewer_should_return): Likewise.
22387 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
22388 * normal/menu_text.c (run_menu): Enable menu switching.
22389 * normal/menu_viewer.c (should_return): New variable.
22390 (menu_viewer_changed): Likewise.
22391 (grub_menu_viewer_show_menu): Handle menu viewer changes.
22392 (grub_menu_viewer_should_return): New function.
22393 (menuviewer_write_hook): Likewise.
22394 (grub_menu_viewer_init): Likewise.
22396 2010-02-06 Colin D Bennet <colin@gibibit.com>
22397 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22399 Support for gfxterm in a window.
22401 * include/grub/gfxterm.h: New file.
22402 * include/grub/video.h (struct grub_video_rect): New declaration.
22403 (grub_video_rect_t): Likewise.
22404 * term/gfxterm.c (struct grub_gfxterm_window): New type.
22405 (refcount): New variable.
22406 (render_target): Likewise.
22407 (window): Likewise.
22408 (repaint_callback): Likewise.
22409 (grub_virtual_screen_setup): Use 'render_target'.
22410 (init_window): New function.
22411 (grub_gfxterm_init_window): Likewise.
22412 (grub_gfxterm_init): Check reference counter.
22414 (destroy_window): New function.
22415 (grub_gfxterm_destroy_window): Likewise.
22416 (grub_gfxterm_fini): Check reference counter.
22417 Use destroy_window.
22418 (redraw_screen_rect): Restore viewport.
22419 Use 'render_target' and 'window'.
22420 Call 'repaint_callback'.
22421 (write_char): Use 'render_target'.
22422 (draw_cursor): Likewise.
22423 (scroll_up): Restore viewport.
22424 Use 'render_target' and 'window'.
22425 Call 'repaint_callback'.
22426 (grub_gfxterm_cls): Likewise.
22427 (grub_gfxterm_refresh): Use 'window'.
22428 (grub_gfxterm_set_repaint_callback): New function.
22429 (grub_gfxterm_background_image_cmd): Use 'window'.
22430 (grub_gfxterm_get_term): New function.
22431 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
22433 2010-02-06 Colin D Bennett <colin@gibibit.com>
22435 Bitmap scaling support.
22437 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
22438 (bitmap_scale_mod_SOURCES): New variable.
22439 (bitmap_scale_mod_CFLAGS): Likewise.
22440 (bitmap_scale_mod_LDFLAGS): Likewise.
22441 * include/grub/bitmap_scale.h: New file.
22442 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
22443 (background_image_cmd_options): New variable.
22444 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
22445 (cmd): Rename and change type to ...
22446 (background_image_cmd_handle): ... this. All users updated.
22447 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
22448 * video/bitmap_scale.c: New file.
22450 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22454 * Makefile.in (LIBSDL): New variable.
22455 (enable_grub_emu_sdl): Likewise.
22456 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
22457 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
22458 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
22459 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
22460 * util/sdl.c: New file.
22462 2010-02-06 Colin D Bennett <colin@gibibit.com>
22463 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22465 Double buffering support.
22467 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
22468 * include/grub/video.h: Update comment.
22469 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
22471 (grub_video_fb_doublebuf_blit_init): New prototype.
22472 * term/gfxterm.c (scroll_up): Support double buffering.
22473 (grub_gfxterm_refresh): Likewise.
22474 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
22475 (grub_video_fb_doublebuf_blit_init): Likewise.
22476 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
22477 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
22478 'displayed_page', 'render_page' and 'update_screen'.
22479 (grub_video_vbe_fini): Free offscreen buffer.
22480 (doublebuf_pageflipping_commit): New function.
22481 (doublebuf_pageflipping_update_screen): Likewise.
22482 (doublebuf_pageflipping_init): Likewise.
22483 (double_buffering_init): Likewise.
22484 (grub_video_vbe_setup): Enable doublebuffering.
22485 (grub_video_vbe_swap_buffers): Implement.
22486 (grub_video_vbe_set_active_render_target): Handle double buffering.
22487 (grub_video_vbe_get_active_render_target): Likewise.
22488 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
22489 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
22490 (grub_video_vbe_enable_double_buffering): Likewise.
22491 (grub_video_vbe_swap_buffers): Use update_screen.
22492 (grub_video_set_mode): Use double buffering.
22494 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22496 * maintainance/gentrigtables.py: Remove.
22497 * lib/trig.c: Likewise.
22499 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
22501 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
22503 (trigtables.c): New rule.
22504 (gentrigtables): Likewise.
22505 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
22507 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22509 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
22512 2010-02-06 Colin D Bennet <colin@gibibit.com>
22514 Trigonometry support.
22516 * include/grub/trig.h: New file.
22517 * lib/trig.c: Likewise.
22518 * maintainance/gentrigtables.py: Likewise.
22519 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
22520 (trig_mod_SOURCES): New variable.
22521 (trig_mod_CFLAGS): Likewise.
22522 (trig_mod_LDFLAGS): Likewise.
22524 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22526 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
22529 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22531 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
22534 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
22536 * util/hostdisk.c (open_device): Don't use partition device when reading
22537 before the partition.
22538 (grub_util_biosdisk_read): Don't read from partition and before the
22539 partition in single operation.
22540 (grub_util_biosdisk_write): Don't write to partition and before the
22541 partition in single operation.
22543 2010-02-03 Torsten Landschoff <torsten@debian.org>
22545 * kern/disk.c (grub_disk_read): Fix offset computation when reading
22548 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
22550 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
22552 (grub_biosdisk_write): Refuse to write to CDROM.
22554 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
22556 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
22558 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
22560 * font/font.c (find_glyph): Check that bmp_idx is available before
22562 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
22563 with (font == NULL).
22565 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
22567 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
22569 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
22571 * include/grub/script_sh.h (sourcecode): Add const qualifier.
22572 * util/grub-script-check.c (getline): Fix empty lines case.
22574 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
22576 * Makefile.in (check): Exit with fail status when one of the tests
22578 * tests/example_functional_test.c (example_test): Fix reversed assert.
22579 * tests/example_unit_test.c (example_test): Likewise.
22581 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
22583 * util/grub.d/10_linux.in: This script does not use any of the
22584 contents of gettext.sh, only the external command `gettext', so stop
22585 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
22586 the same prefix as GRUB.)
22587 * util/grub.d/10_kfreebsd.in: Likewise.
22589 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22591 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
22594 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22596 * kern/disk.c (grub_disk_read): Fix offset computation when reading
22599 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22601 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
22602 having a 4KiB and not 32KiB buffer size.
22604 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22606 * util/hostfs.c: Include `<errno.h>'.
22607 (grub_hostfs_read): Handle errors from fseeko() and fread().
22609 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22611 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
22612 loop when using read hooks on files whose size isn't sector-aligned.
22614 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22616 Remove unused parameter.
22618 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
22619 (grub_iso9660_open): Remove initialization of `data->length'.
22621 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22623 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
22624 memleak conditions.
22626 2010-01-27 Carles Pina i Estany <carles@pina.cat>
22628 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
22629 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
22631 2010-01-26 Carles Pina i Estany <carles@pina.cat>
22633 * util/bin2h.c (usage): Fix warning (space after backslash).
22635 2010-01-26 Carles Pina i Estany <carles@pina.cat>
22637 * font/font.c: Include `grub/fontformat.h.
22638 Remove font file format constants.
22639 (grub_font_load): Use the new macros.
22640 * include/grub/fontformat.h: New file.
22641 * util/grub-mkfont.c: Include `grub/fontformat.c'.
22642 (write_font_pf2): Use the new macros.
22644 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
22646 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
22649 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
22651 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
22653 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
22654 (_start): Macroify `0x7F'.
22656 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
22657 (make_install_device): Use "(pxe)" as fallback prefix when booting
22660 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
22662 * configure.ac: Reset LIBS after check for libgcc symbols.
22664 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
22666 * util/hostdisk.c (open_device): Add trailing newline to debug
22669 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
22671 * configure.ac: Check for `limits.h'.
22672 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
22674 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
22676 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
22677 capitalize error strings.
22679 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
22681 * util/grub.d/10_hurd.in: Add a recovery mode.
22683 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
22685 * configure.ac: Check for libgcc symbols with -nostdlib.
22687 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
22689 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
22691 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22693 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
22694 stack since heap may be unavailable at that point.
22695 (grub_ofconsole_gotoxy): Likewise.
22697 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22699 * configure.ac: Check for _restgpr_14_x.
22700 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
22701 and _savegpr_* prototypes.
22703 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
22705 Use generic grub_reboot() for i386-efi.
22707 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
22708 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
22709 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
22711 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22713 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
22714 presence of "prefix" variable as it breaks when normal.mod is
22717 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22719 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
22720 stack since heap is unavailable at that point.
22722 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22724 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
22725 (grub_freebsd_bootinfo): Rewritten.
22726 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
22728 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22730 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
22732 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
22734 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
22737 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
22739 * util/misc.c (make_system_path_relative_to_its_root): Change the work
22740 around for handling "/" to the correct fix. Fix a memory leak. Use
22741 xstrdup instead of strdup.
22743 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22745 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
22747 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22749 Optimise glyph lookup by Basic Multilingual Plane lookup array.
22751 * font/font.c (struct grub_font): New member 'bmp_idx'.
22752 (font_init): Initialise 'bmp_idx'.
22753 (load_font_index): Fill 'bmp_idx'.
22754 (find_glyph): Make inline. Use bmp_idx for BMP characters.
22756 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22758 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
22761 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22763 Move context handling out of the kernel.
22765 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
22766 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
22767 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
22768 * conf/i386-efi.rmk: Likewise.
22769 * conf/i386-ieee1275.rmk: Likewise.
22770 * conf/i386-pc.rmk: Likewise.
22771 * conf/powerpc-ieee1275.rmk: Likewise.
22772 * conf/sparc64-ieee1275.rmk: Likewise.
22773 * conf/x86_64-efi.rmk: Likewise.
22774 * include/grub/env.h: Include grub/menu.h.
22775 (grub_env_var_type): Removed.
22776 (grub_env_var): Replaced field 'type' with 'global'.
22777 (grub_env_find): New prototype.
22778 (grub_env_context_open): Remove EXPORT_FUNC.
22779 (grub_env_context_close): Likewise.
22780 (grub_env_export): Likewise.
22781 (grub_env_set_data_slot): Removed.
22782 (grub_env_get_data_slot): Likewise.
22783 (grub_env_unset_data_slot): Likewise.
22784 (grub_env_unset_menu): New prototype.
22785 (grub_env_set_menu): Likewise.
22786 (grub_env_get_menu): Likewise.
22787 * include/grub/env_private.h: New file.
22788 * include/grub/normal.h (grub_context_init): New prototype.
22789 (grub_context_fini): Likewise.
22790 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
22791 * normal/context.c (grub_cmd_export): ... to here.
22792 * kern/env.c: Include env_private.h.
22793 (HASHSZ): Moved to include/grub/env_private.h.
22794 (grub_env_context): Likewise.
22795 (grub_env_sorted_var): Likewise.
22796 (current_context): Renamed from this ...
22797 (grub_current_context): ...to this. 'static' removed. All users updated.
22798 (grub_env_find): Removed 'static'.
22799 (grub_env_context_open): Moved to normal/context.c.
22800 (grub_env_context_close): Likewise.
22801 (grub_env_export): Likewise.
22802 (mangle_data_slot_name): Removed.
22803 (grub_env_set_data_slot): Likewise.
22804 (grub_env_get_data_slot): Likewise.
22805 (grub_env_unset_data_slot): Likewise.
22806 * kern/main.c (grub_set_root_dev): Don't export root.
22807 It will be done later.
22808 (grub_main): Don't export prefix.
22809 It will be done later.
22810 * normal/context.c: New file.
22811 * normal/main.c (free_menu): Use grub_env_unset_menu.
22812 (grub_normal_add_menu_entry): Use grub_env_get_menu.
22813 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
22814 (GRUB_MOD_INIT(normal)): Call grub_context_init.
22815 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
22817 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22821 * commands/setpci.c: New file.
22822 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
22823 (setpci_mod_SOURCES): New variable.
22824 (setpci_mod_CFLAGS): Likewise.
22825 (setpci_mod_LDFLAGS): Likewise.
22827 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22829 Byte-addressable PCI configuration space.
22831 * bus/pci.c (grub_pci_make_address): Use byte address instead of
22833 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
22834 GRUB_PCI_REG_CACHELINE.
22835 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
22836 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
22837 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
22838 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
22839 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
22840 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
22841 grub_pci_make_address.
22842 (lock_rom_area): Likewise.
22843 * commands/lspci.c (grub_lspci_iter): Use macroses
22844 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
22845 of grub_pci_make_address.
22846 * disk/ata.c (grub_ata_pciinit): Likewise.
22847 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
22848 (GRUB_PCI_REG_VENDOR): Likewise.
22849 (GRUB_PCI_REG_DEVICE): Likewise.
22850 (GRUB_PCI_REG_COMMAND): Likewise.
22851 (GRUB_PCI_REG_STATUS): Likewise.
22852 (GRUB_PCI_REG_REVISION): Likewise.
22853 (GRUB_PCI_REG_CLASS): Likewise.
22854 (GRUB_PCI_REG_CACHELINE): Likewise.
22855 (GRUB_PCI_REG_LAT_TIMER): Likewise.
22856 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
22857 (GRUB_PCI_REG_BIST): Likewise.
22858 (GRUB_PCI_REG_ADDRESSES): Likewise.
22859 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22860 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22861 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22862 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22863 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22864 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22865 (GRUB_PCI_REG_CIS_POINTER): Likewise.
22866 (GRUB_PCI_REG_SUBVENDOR): Likewise.
22867 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
22868 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
22869 (GRUB_PCI_REG_CAP_POINTER): Likewise.
22870 (GRUB_PCI_REG_IRQ_LINE): Likewise.
22871 (GRUB_PCI_REG_IRQ_PIN): Likewise.
22872 (GRUB_PCI_REG_MIN_GNT): Likewise.
22873 (GRUB_PCI_REG_MAX_LAT): Likewise.
22874 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
22875 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
22876 * video/efi_uga.c (find_framebuf): Likewise.
22877 * video/sm712.c (grub_video_sm712_setup): Likewise.
22878 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
22881 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22883 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
22884 can be reliably determined to be supported.
22886 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22888 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
22889 that VESA is supported.
22890 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
22893 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22895 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
22897 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22899 * util/misc.c (make_system_path_relative_to_its_root): Work around
22900 special-casing of "/", as previous incarnation of this routine did.
22902 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22904 Fix any-emu compilation.
22906 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
22907 * grub_bin2h_SOURCES: New variable.
22909 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22911 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
22913 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22915 * util/grub.d/00_header.in: Fix handling of locale_dir.
22917 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22919 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
22920 as possible unifont location (Gentoo).
22921 Reported by: Alexander Brüning
22923 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22925 Don't try to generate lists for kernel.img.
22927 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
22928 (pkglib_MODULES): Remove kernel.img.
22929 (kernel_img_EXPORTS): Removed.
22930 (kernel_img_RELOCATABLE): New variable.
22931 * conf/x86_64-efi.rmk: Likewise.
22932 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
22934 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22936 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
22937 grub_xasprintf or grub_snprintf.
22938 (grub_vsprintf): Likewise.
22939 (grub_snprintf): New proto.
22940 (grub_vsnprintf): Likewise.
22941 (grub_xasprintf): Likewise.
22942 (grub_xvasprintf): Likewise.
22943 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
22944 (grub_sprintf): Removed.
22945 (grub_vsnprintf): New function.
22946 (grub_snprintf): Likewise.
22947 (grub_xvasprintf): Likewise.
22948 (grub_xasprintf): Likewise.
22949 (grub_vsprintf): Renamed to ...
22950 (grub_vsnprintf_real): ...this. New argument max_len.
22952 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
22954 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
22955 fix grub-script-check warning.
22957 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22959 * include/grub/font.h (grub_font_load): Fix prototype.
22961 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22963 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
22965 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22967 * include/grub/x86_64/at_keyboard.h: New file.
22969 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22971 * loader/mips/linux.c: Include missing grub/i18n.h.
22973 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22975 * normal/menu.c (notify_execution_failure): Clarify error message.
22977 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22979 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
22980 return value (and revert all return statements). Update users.
22982 2010-01-20 Dan Merillat <debian@dan.merillat.org>
22984 * kern/device.c (grub_device_iterate): Allocate new part_ent
22985 structure based on sizeof (*p) rather than sizeof (p->next), to
22986 account for structure padding.
22988 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
22989 disk is NULL, which might happen for LVM physical volumes with no
22992 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22994 * loader/mips/linux.c (grub_cmd_initrd)
22995 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
22997 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22999 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23000 (grub_video_video_init, grub_video_bitmap_init)
23001 (grub_font_manager_init, grub_term_gfxterm_init)
23002 (grub_at_keyboard_init): New extern declarations.
23003 (grub_machine_init): Initialize gfxterm and at_keyboard.
23005 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23007 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23008 `gfxterm.mod' into core image.
23010 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23011 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23012 (kernel_img_FORMAT): Copy to ...
23014 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23015 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23016 (kernel_img_FORMAT): ... here, and ...
23018 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23019 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23020 (kernel_img_FORMAT): ... here.
23022 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23023 and input (at_keyboard) terminals in kernel.
23024 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23026 (pkglib_MODULES): Remove `pci.mod'.
23027 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23028 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23029 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23030 (at_keyboard_mod_LDFLAGS): Remove variables.
23032 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
23034 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23036 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23038 * include/grub/mips/libgcc.h: Only export symbols for functions
23039 that libgcc provides.
23041 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23045 * bus/bonito.c: New file.
23046 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23047 GRUB_PCI_NUM_DEVICES.
23048 * term/i386/pc/serial.c: Move to ...
23049 * term/serial.c: ... here. All users updated.
23050 * util/i386/pc/grub-mkimage.c: Move to ...
23051 * util/grub-mkrawimage.c: ... here. All users updated.
23052 * term/i386/pc/at_keyboard.c: Move to ...
23053 * term/at_keyboard.c: ... here. All users updated.
23054 * conf/mips-qemu-mips.rmk: New file.
23055 * conf/mips-yeeloong.rmk: Likewise.
23056 * conf/mips.rmk: Likewise.
23057 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
23059 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
23061 (grub_ata_pciinit): Support CS5536.
23062 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
23063 * font/font_cmd.c (loadfont_command): Open file before passing it to
23065 (pseudo_file_read): New function.
23066 (pseudo_file_close): Likewise.
23067 (pseudo_fs): New structure.
23068 (load_font_module): New function.
23069 (GRUB_MOD_INIT(font_manager)): Load embedded font.
23070 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
23071 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
23072 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
23073 * include/grub/i386/at_keyboard.h: Split into ...
23074 * include/grub/at_keyboard.h: ... this ...
23075 * include/grub/i386/at_keyboard.h: ... and this.
23076 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
23078 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
23080 (grub_elf64_size): Likewise.
23081 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
23083 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
23084 * include/grub/i386/coreboot/serial.h: Rewritten.
23085 * include/grub/i386/ieee1275/serial.h: Include
23086 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
23087 * include/grub/i386/pc/serial.h: Moved from here ...
23088 * include/grub/serial.h: ... to here. All users updated.
23089 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
23090 (GRUB_PCI_NUM_BUS): Likewise.
23091 (GRUB_PCI_NUM_DEVICES): Likewise.
23092 (grub_pci_device_map_range): Add missing volatile keyword.
23093 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
23094 * include/grub/mips/at_keyboard.h: New file.
23095 * include/grub/mips/cache.h: Likewise.
23096 * include/grub/mips/io.h: Likewise.
23097 * include/grub/mips/kernel.h: Likewise.
23098 * include/grub/mips/libgcc.h: Likewise.
23099 * include/grub/mips/pci.h: Likewise.
23100 * include/grub/mips/qemu-mips/boot.h: Likewise.
23101 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23102 * include/grub/mips/qemu-mips/loader.h: Likewise.
23103 * include/grub/mips/qemu-mips/memory.h: Likewise.
23104 * include/grub/mips/qemu-mips/serial.h: Likewise.
23105 * include/grub/mips/qemu-mips/time.h: Likewise.
23106 * include/grub/mips/relocator.h: Likewise.
23107 * include/grub/mips/time.h: Likewise.
23108 * include/grub/mips/types.h: Likewise.
23109 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
23110 * include/grub/mips/yeeloong/boot.h: Likewise.
23111 * include/grub/mips/yeeloong/kernel.h: Likewise.
23112 * include/grub/mips/yeeloong/loader.h: Likewise.
23113 * include/grub/mips/yeeloong/memory.h: Likewise.
23114 * include/grub/mips/yeeloong/pci.h: Likewise.
23115 * include/grub/mips/yeeloong/serial.h: Likewise.
23116 * include/grub/mips/yeeloong/time.h: Likewise.
23117 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
23118 * kern/elf.c (grub_elf32_size): New parameter. All users
23120 (grub_elf64_size): Likewise.
23121 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
23122 Load modules before saying "Welcome to GRUB!".
23123 Call grub_refresh after saying "Welcome to GRUB!".
23124 * kern/mips/cache.S: New file.
23125 * kern/mips/cache_flush.S: Likewise.
23126 * kern/mips/dl.c: Likewise.
23127 * kern/mips/init.c: Likewise.
23128 * kern/mips/qemu-mips/init.c: Likewise.
23129 * kern/mips/startup.S: Likewise.
23130 * kern/mips/yeeloong/init.c: Likewise.
23131 * kern/term.c (grub_putcode): Handle NULL terminal.
23132 (grub_getcharwidth): Likewise.
23133 (grub_getkey): Likewise.
23134 (grub_checkkey): Likewise.
23135 (grub_getkeystatus): Likewise.
23136 (grub_getxy): Likewise.
23137 (grub_getwh): Likewise.
23138 (grub_gotoxy): Likewise.
23139 (grub_cls): Likewise.
23140 (grub_setcolorstate): Likewise.
23141 (grub_setcolor): Likewise.
23142 (grub_getcolor): Likewise.
23143 (grub_refresh): Likewise.
23144 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
23145 (write_jump): Add hatch nop.
23146 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
23147 * lib/mips/setjmp.S: New file.
23148 * loader/mips/linux.c: Likewise.
23149 * term/i386/pc/at_keyboard.c: Move from here ...
23150 * term/at_keyboard.c: ... to here.
23151 * term/i386/pc/serial.c: Moved from here ...
23152 * term/serial.c: ... to here. All users updated.
23153 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
23154 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
23155 (serial_translate_key_sequence): Avoid deadlock.
23156 (grub_serial_getkey): Handle backspace.
23157 (grub_serial_putchar): Fix newline handling.
23158 * util/i386/pc/grub-mkimage.c: Move from here ...
23159 * util/grub-mkrawimage.c: ... to here. All users updated.
23160 (generate_image): New parameters 'font_path' and 'format'.
23161 Support embedding font.
23162 Use grub_host_to_target* instead of grub_cpu_to_le*.
23163 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
23164 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
23165 (options): New option "--font".
23167 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
23168 (main): Handle "--font".
23169 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
23170 (grub_virtual_screen_setup): Set bg_color_display.
23171 (redraw_screen_rect): Use bg_color_display instead of incorrect
23173 (grub_gfxterm_cls): Likewise.
23174 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
23175 Support embedding config file.
23176 (add_segments): Likewise.
23177 (options): New option "--config".
23178 (main): Handle "--config".
23179 * video/sm712.c: New file.
23181 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23183 Fix parallel builds.
23185 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
23186 font.c depend on ascii.h).
23188 2010-01-12 Carles Pina i Estany <carles@pina.cat>
23190 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
23192 2010-01-11 Carles Pina i Estany <carles@pina.cat>
23194 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
23195 By default: disabled.
23196 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
23199 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23201 * font/font.c: Update copyright years.
23202 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
23204 2010-01-10 Carles Pina i Estany <carles@pina.cat>
23206 * font/font.c: Include `ascii.h'.
23207 (ASCII_BITMAP_SIZE): New macro.
23208 (ascii_font_glyph): Define.
23209 (ascii_glyph_lookup): New function.
23210 (grub_font_get_string_width): Change comment. If glyph not found, use
23211 ascii_glyph_lookup.
23212 (grub_font_get_glyph_with_fallback): If glyph not available returns
23213 ascii_glyph_lookup.
23214 * util/grub-mkfont.c (file_formats): New enum.
23215 (options): Add `ascii-bitmaps' new option.
23216 (usage): Add `asii-bitmaps' new option.
23217 (write_font_ascii_bitmap): New function.
23218 (write_font): Rename to ...
23219 (write_font_p2): ... this. Remove print_glyphs call.
23220 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
23221 used. Call print_glyphs.
23222 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
23224 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23226 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
23227 (grub_bin2h_SOURCES): New variable.
23228 * util/bin2h.c: New file.
23230 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23232 * include/multiboot.h: Resynced with spec.
23233 * include/multiboot2.h: Likewise.
23234 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
23235 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
23237 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23239 * include/grub/term.h (grub_term_register_input,
23240 grub_term_register_output): Check return of terminal init()
23241 routines, and abort if errors are raised.
23243 * commands/terminal.c: Update copyright year.
23245 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23247 * commands/terminal.c (grub_cmd_terminal_input)
23248 (grub_cmd_terminal_output): Check return of terminal init()
23249 routines, and abort if errors are raised.
23251 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23253 * include/grub/i386/bsd.h: Fix include pathes.
23255 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
23257 Add missing *BSD copyright headers.
23259 * include/grub/aout.h: Add BSD licence.
23260 * include/grub/i386/bsd.h: Parts under different licences moved to ...
23261 * include/grub/i386/freebsd_linker.h: ... here,
23262 * include/grub/i386/freebsd_reboot.h: ... here,
23263 * include/grub/i386/netbsd_bootinfo.h: ... here,
23264 * include/grub/i386/netbsd_reboot.h: ... here,
23265 * include/grub/i386/openbsd_bootarg.h: ... here,
23266 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
23267 licence to each file.
23269 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23271 * acinclude.m4: Remove `nop' assembly instruction; it's not
23272 implemented by all architectures.
23274 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23276 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
23277 ELILO. This is no longer necessary.
23279 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
23281 Added new tool, grub-scrit-check to verify grub.cfg syntax.
23283 * util/grub-script-check.c: grub-script-check tool.
23284 * conf/common.rmk: Make rules for grub-script-check.
23286 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23288 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
23289 spotting it back in 2008. Shame on me for forgetting he did.
23291 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
23293 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
23295 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
23296 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
23297 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
23298 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
23299 (GRUB_VIDEO_TYPE_EFI): Rename to ...
23300 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
23302 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
23304 * include/grub/test.h: Add license header.
23305 * tests/example_functional_test.c: Likewise.
23306 * tests/example_unit_test.c: Likewise.
23307 * tests/lib/functional_test.c: Likewise.
23308 * tests/lib/test.c: Likewise.
23309 * tests/lib/unit_test.c: Likewise.
23311 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
23313 Use flag-based instead of hook-based video mode selection and "auto"
23316 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
23317 (grub_video_set_mode): Changed prototype. All users updated.
23318 (grub_video_check_mode_flag): New inline function.
23319 * video/video.c (parse_modespec): New function.
23320 (grub_video_set_mode): Parse flags and keywords.
23322 2010-01-17 Carles Pina i Estany <carles@pina.cat>
23324 * util/misc.c (grub_util_info): Fix the order of the parameters in a
23327 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
23329 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
23331 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23333 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
23335 * util/grub-emu.c (usage): Likewise.
23336 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
23337 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23338 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23339 * util/i386/pc/grub-setup.c (usage): Likewise.
23341 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23343 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
23345 (grub_util_info): Likewise.
23346 (grub_util_error): Likewise.
23347 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
23348 and/or new lines in `grub_util_warna', `grub_util_info',
23349 `grub_util_error' calls.
23350 * util/getroot.c: Likewise.
23351 * util/grub-editenv.c: Likewise.
23352 * util/grub-emu.c: Likewise.
23353 * util/grub-fstest.c: Likewise.
23354 * util/grub-mkdevicemap.c: Likewise.
23355 * util/grub-mkfont.c: Likewise.
23356 * util/grub-mkpasswd-pbkdf2.c: Likewise.
23357 * util/grub-mkrelpath.c: Likewise.
23358 * util/grub-pe2elf.c: Likewise.
23359 * util/grub-probe.c: Likewise.
23360 * util/hostdisk.c: Likewise.
23361 * util/i386/efi/grub-mkimage.c: Likewise.
23362 * util/i386/pc/grub-mkimage.c: Likewise.
23363 * util/i386/pc/grub-setup.c: Likewise.
23364 * util/ieee1275/ofpath.c: Likewise.
23365 * util/mkisofs/eltorito.c: Likewise.
23366 * util/mkisofs/rock.c: Likewise.
23367 * util/mkisofs/write.c: Likewise.
23368 * util/raid.c: Likewise.
23369 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
23370 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23372 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23374 Enable multiboot on non-pc.
23376 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
23377 multiboot.mod and multiboot2.mod to ...
23378 * conf/i386.rmk (pkglib_MODULES): ... here.
23379 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
23381 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
23382 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
23384 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
23385 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
23387 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
23388 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
23390 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
23391 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
23393 (ata_mod_SOURCES): Removed.
23394 (ata_mod_CFLAGS): Likewise.
23395 (ata_mod_LDFLAGS): Likewise.
23396 (relocator_mod_SOURCES): Removed.
23397 (relocator_mod_CFLAGS): Likewise.
23398 (relocator_mod_ASFLAGS): Likewise.
23399 (relocator_mod_LDFLAGS): Likewise.
23401 * include/grub/x86_64/multiboot.h: New file.
23402 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
23405 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23407 Video multiboot support.
23409 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
23411 * include/multiboot.h: Resynced with multiboot specification.
23412 * include/multiboot2.h: Likewise.
23413 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
23414 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
23415 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
23416 (HAS_VGA_TEXT): Likewise.
23417 (accepts_video): New variable.
23418 (grub_multiboot_set_accepts_video): New function.
23419 (grub_multiboot_get_mbi_size): Account for video structures.
23420 (set_video_mode): New function.
23421 (retrieve_video_parameters): Likewise.
23422 (grub_multiboot_make_mbi): Fill video fields.
23424 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23428 * include/grub/video.h (grub_video_driver_id): New type.
23429 (grub_video_adapter): New member 'id'. All users updated.
23430 (grub_video_get_driver_id): New proto.
23431 * video/video.c (grub_video_get_driver_id): New function.
23433 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23435 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
23438 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23440 * normal/cmdline.c (print_completion): Gettextizze.
23442 2001-01-14 Carles Pina i Estany <carles@pina.cat>
23444 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
23446 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23448 * gettext/gettext.c (grub_gettext_translate): Push and pop
23450 (grub_gettext_delete_list): Change comment style.
23451 * kern/err.c (grub_error): Gettextizze.
23452 (grub_fatal): Gettextizze.
23454 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23456 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
23457 (grub_linux16_real_boot): ... this.
23458 * kern/i386/loader.S: Likewise.
23459 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
23460 (grub_linux16_boot): New function. Switches to text mode and calls
23461 grub_linux16_real_boot().
23463 * loader/i386/bsd.c: Include `<grub/video.h>'.
23464 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
23465 text mode before calling grub_unix_real_boot().
23467 * loader/i386/multiboot.c: Include `<grub/video.h>'.
23468 (grub_multiboot_boot): Switch to text mode before calling
23469 grub_relocator32_boot().
23471 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
23472 (grub_chainloader_boot): Switch to text mode before calling
23473 grub_chainloader_real_boot().
23475 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23476 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23478 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
23481 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23482 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23484 * util/grub.d/00_header.in: Define a "savedefault" function for use
23486 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
23488 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23489 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23491 * util/grub-mkconfig_lib.in (save_default_entry): Only set
23492 saved_entry if boot_once is unset.
23493 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
23494 previous saved entry (i.e. grub-reboot).
23496 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23498 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
23500 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23502 * util/grub.d/00_header.in: Use `set var=val' rather than plain
23504 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
23506 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23508 * util/grub-reboot.in: Fix --version output.
23509 * util/grub-set-default.in: Likewise.
23511 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23513 * util/grub.d/00_header.in: Silently ignore zero-sized environment
23516 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23518 * util/grub.d/00_header.in: Quote the value assigned to `default',
23519 in case it contains spaces.
23521 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23523 * util/grub.d/30_os-prober.in: Fix merge error that moved a
23524 `save_default_entry' call from the macosx case to the linux case.
23526 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
23527 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
23529 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
23530 in `chosen' environment variable.
23531 * normal/menu_text.c (get_entry_number): Check if the variable
23532 matches the title of a menu entry.
23533 (run_menu): Pass menu to get_entry_number.
23535 * util/grub-reboot.in: New file.
23536 * util/grub-set-default.in: New file.
23537 * conf/common.rmk (grub-reboot): New utility.
23538 (grub-set-default): New utility.
23540 * util/grub-mkconfig_lib.in (save_default_entry): New function.
23541 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
23542 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
23543 move it to `saved_entry' for the next boot. Load environment on
23545 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
23546 * util/grub.d/10_hurd.in: Likewise.
23547 * util/grub.d/10_linux.in (linux_entry): Likewise.
23548 * util/grub.d/10_windows.in: Likewise.
23549 * util/grub.d/30_os-prober.in: Likewise.
23551 * util/grub-install.in: Create environment block.
23552 * util/i386/efi/grub-install.in: Likewise.
23553 * util/ieee1275/grub-install.in: Likewise.
23554 * util/sparc64/ieee1275/grub-install.in: Likewise.
23556 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
23558 Unit testing framework for GRUB.
23560 * Makefile.in: Test framework build rules for 'make check'.
23561 * conf/tests.rmk: Build rules for individual tests and framework.
23563 * include/grub/test.h: Header file for whitebox tests.
23564 * tests/lib/functional_test.c: Framework support for whitebox
23566 * tests/lib/test.c: Common whitebox testing code for unit and
23568 * tests/lib/unit_test.c: Framework support for whitebox unit
23571 * tests/util/grub-shell-tester.in: Support utility for grub-script
23573 * tests/util/grub-shell.in: Utility to execute grub-script
23574 commands in a Qemu instance.
23576 * tests/example_functional_test.c: Example whitebox functional
23578 * tests/example_grub_script_test.in: Example grub-script test.
23579 * tests/example_scripted_test.in: Example scripted test.
23580 * tests/example_unit_test.c: Example whitebox unit test.
23582 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
23584 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
23585 Add loader/i386/multiboot_mbi.c.
23586 (multiboot2_mod_SOURCES): Likewise.
23587 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
23588 (multiboot2_mod_SOURCES): Likewise.
23589 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
23590 (grub_multiboot_make_mbi): Likewise.
23591 (grub_multiboot_free_mbi): Likewise.
23592 (grub_multiboot_init_mbi): Likewise.
23593 (grub_multiboot_add_module): Likewise.
23594 (grub_multiboot_set_bootdev): Likewise.
23595 * loader/i386/multiboot.c (mbi): Removed.
23596 (mbi_dest): Likewise.
23597 (alloc_mbi): New variable.
23598 (grub_multiboot_payload_size): Removed. All users updated.
23599 (grub_multiboot_pure_size): New variable.
23600 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
23601 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
23602 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
23603 (grub_fill_multiboot_mmap): Likewise.
23604 (grub_multiboot_get_bootdev): Likewise.
23605 (grub_multiboot): Use multiboot_mbi functions.
23606 * loader/i386/multiboot_mbi.c: New file.
23608 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
23610 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
23611 it would result in module crash.
23613 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
23615 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
23616 (grub_ofconsole_getwh): Split to ...
23617 (grub_ofconsole_getwh): ... this.
23618 (grub_ofconsole_dimensions): ...and this.
23619 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
23621 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
23623 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
23625 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
23627 * loader/i386/pc/multiboot2.c: Removed stalled file.
23629 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
23631 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
23632 Reported by: Grégoire Sutre
23634 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
23636 * util/misc.c (canonicalize_file_name): New function.
23637 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
23638 instead of realpath().
23640 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
23642 * util/grub-install.in (usage): Clarify meaning of --root-directory,
23643 and make it clearer that it's optional. Based on confusion
23646 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
23648 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
23649 in premature implicit newline.
23651 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
23653 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
23654 which resulted in garbled command line at the end of screen.
23656 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23658 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
23659 initialization with similar approach as with other Linux loaders.
23661 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23663 Fix i386-ieee1275 build.
23665 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
23666 and grub_term_height() for video_{width,height} initialization.
23668 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23670 Fix grub-emu build.
23672 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
23674 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23675 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
23677 Support for multiple terminals.
23679 * Makefile.in (pkglib_DATA): terminal.lst.
23680 (terminal.lst): New target.
23681 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
23682 (GRUB_MOD_INIT(handler)): Likewise.
23683 (GRUB_MOD_FINI(handler)): Likewise.
23684 * commands/help.c (grub_cmd_help): Handle multiple terminals.
23685 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
23686 * commands/sleep.c (do_print): Use grub_term_restore_pos.
23687 (grub_cmd_sleep): Use grub_term_save_pos.
23688 * commands/terminal.c: New file.
23689 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
23690 commands/terminal.c and lib/charset.c.
23691 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
23692 (pkglib_MODULES): Add terminal.mod.
23693 (terminal_mod_SOURCES): New variable.
23694 (terminal_mod_CFLAGS): Likewise.
23695 (terminal_mod_LDFLAGS): Likewise.
23696 * genhandlerlist.sh: Don't handle terminals.
23697 * genmk.rb: Generate terminal-*.lst.
23698 * genterminallist.sh: New file.
23699 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
23700 (grub_is_valid_utf8): Likewise.
23701 (grub_utf8_to_ucs4_alloc): Likewise.
23702 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
23703 (grub_menu_register_viewer): Changed argument.
23704 (grub_menu_try_text): New proto.
23705 (grub_gfxmenu_try_hook): New declaration.
23706 * include/grub/normal.h (grub_normal_exit_level): New declaration.
23707 (grub_menu_init_page): Additional argument term.
23708 (grub_normal_init_page): Likewise.
23709 (grub_cmdline_get): Arguments simplified.
23710 (grub_utf8_to_ucs4_alloc): Removed.
23711 (grub_print_ucs4): Additional argument term.
23712 (grub_getstringwidth): Likewise.
23713 (grub_print_message_indented): Likewise.
23714 (grub_menu_text_register_instances): New proto.
23715 (grub_show_menu): Likewise.
23716 (read_terminal_list): Likewise.
23717 (grub_set_more): Likewise.
23718 * include/grub/parser.h: Include handler.h.
23719 * include/grub/reader.h: Rewritten.
23720 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
23721 (GRUB_TERM_WIDTH): Changed to function.
23722 (GRUB_TERM_HEIGHT): Likewise.
23723 (GRUB_TERM_BORDER_WIDTH): Likewise.
23724 (GRUB_TERM_BORDER_HEIGHT): Likewise.
23725 (GRUB_TERM_NUM_ENTRIES): Likewise.
23726 (GRUB_TERM_ENTRY_WIDTH): Likewise.
23727 (GRUB_TERM_CURSOR_X): Likewise.
23728 (grub_term_input_class): Likewise.
23729 (grub_term_output_class): Likewise.
23730 (grub_term_outputs_disabled): New declaration.
23731 (grub_term_inputs_disabled): Likewise.
23732 (grub_term_outputs): Likewise.
23733 (grub_term_inputs): Likewise.
23734 (grub_term_register_input): Rewritten.
23735 (grub_term_register_output): Likewise.
23736 (grub_term_unregister_input): Likewise.
23737 (grub_term_unregister_output): Likewise.
23738 (FOR_ACTIVE_TERM_INPUTS): New macro.
23739 (FOR_DISABLED_TERM_INPUTS): Likewise.
23740 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
23741 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
23742 * include/grub/terminfo.h: Add oterm argument to all protypes.
23743 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
23744 Use grub_rescue_run.
23745 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
23747 * kern/reader.c: Removed. All users updated.
23748 * kern/rescue_reader.c (grub_rescue_init): Removed.
23749 (grub_rescue_reader): Likewise.
23750 (grub_register_rescue_reader): Likewise.
23751 (grub_rescue_run): New function based on kern/reader.c.
23752 * kern/term.c: Adapted for multiterm.
23753 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
23754 (grub_is_valid_utf8): Likewise.
23755 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
23756 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
23758 * loader/i386/linux.c (grub_linux_boot): Likewise.
23759 * normal/auth.c (grub_username_get): New function.
23760 (grub_auth_check_authentication): Use grub_username_get.
23761 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
23762 * normal/color.c: Adapt for multiterm.
23763 * normal/main.c (read_config_file): Don't use grub_reader_loop.
23764 (grub_normal_init_page): Additional argument term.
23765 (read_lists): Call read_terminal_lists.
23766 (grub_enter_normal_mode): Call grub_cmdline_run.
23767 Handle grub_normal_exit_level.
23768 (grub_cmd_normal): Make reentrant.
23769 (grub_cmd_normal_exit): New function.
23770 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
23771 * normal/menu.c: Adapt for multiterm.
23772 * normal/menu_entry.c: Likewise.
23773 * normal/menu_text.c: Likewise.
23774 * normal/menu_viewer.c: Removed. All users updated.
23775 * normal/term.c: New file.
23776 * util/console.c: Change order of includes to workaround a bug in
23778 * term/terminfo.c: New argument oterm on all exported functions.
23780 * util/grub-editenv.c (grub_term_input_class): Removed.
23781 (grub_term_output_class): Likewise.
23783 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
23785 Make loader output a bit more user-friendly.
23787 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
23788 is being loaded. Likewise for the Hurd.
23790 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
23791 that kernel of FreeBSD ${version} is being loaded.
23793 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
23795 (grub_cmd_initrd): Likewise.
23796 * util/grub.d/10_linux.in (linux_entry): Print message indicating
23797 that Linux ${version} is being loaded. Likewise for initrd.
23799 2010-01-09 Carles Pina i Estany <carles@pina.cat>
23801 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
23803 2010-01-08 Carles Pina i Estany <carles@pina.cat>
23805 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
23806 (GRUB_MOD_INIT): Gettextizze.
23807 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
23808 (GRUB_MOD_INIT): Gettextizze.
23809 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
23810 (grub_cmd_linux): Capitalise Linux.
23811 (GRUB_MOD_INIT): Gettextizze.
23812 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
23813 (grub_cmd_linux): Capitalise Linux.
23814 (GRUB_MOD_INIT): Gettextizze.
23815 * loader/i386/linux.c: Include `<grub/i18n.h>'.
23816 (grub_cmd_linux): Capitalise Linux.
23817 (GRUB_MOD_INIT): Gettextizze.
23818 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
23819 (GRUB_MOD_INIT): Gettextizze.
23820 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
23821 (grub_cmd_linux): Capitalise Linux.
23822 (GRUB_MOD_INIT): Gettextizze.
23823 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
23824 (grub_cpu_xnu_init): Gettextizze.
23825 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
23826 (GRUB_MOD_INIT): Gettextizze.
23827 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
23828 (GRUB_MOD_INIT): Gettextizze.
23829 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
23830 (grub_linux_load64): Capitalise Linux.
23831 (GRUB_MOD_INIT): Gettextizze.
23832 * loader/xnu.c: Include `<grub/i18n.h>'.
23833 (GRUB_MOD_INIT): Gettextizze.
23834 * po/POTFILES: Add `loader/efi/appleloader.c',
23835 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
23836 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
23837 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
23838 `loader/i386/xnu.c', `loader/multiboot_loader.c',
23839 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
23840 and `loader/xnu.c'.
23842 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
23844 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
23846 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
23848 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
23849 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
23850 * util/mkisofs/mkisofs.c (main): Readjust --version output.
23852 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23854 Reset Multiboot 2 support. New loader implements the draft in
23855 /branches/multiboot2 and shares as much code as possible with the
23856 production Multiboot 1 implementation.
23858 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
23859 * loader/multiboot2.c: Likewise.
23860 * loader/i386/multiboot_helper.S: Likewise.
23861 * include/multiboot2.h: Replace with latest version from the draft
23862 in /branches/multiboot2.
23864 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
23865 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
23866 and `loader/multiboot2.c'.
23867 (pkglib_MODULES): Add `multiboot2.mod'.
23868 (multiboot2_mod_SOURCES): New variable.
23869 (multiboot2_mod_LDFLAGS): Likewise.
23870 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
23872 * conf/i386-pc.rmk: Likewise.
23874 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
23875 (multiboot_mod_SOURCES): Remove variable.
23876 (multiboot_mod_LDFLAGS): Likewise.
23877 (multiboot_mod_CFLAGS): Likewise.
23879 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
23880 `<multiboot2.h>' instead of `<multiboot.h>'.
23881 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
23882 (MULTIBOOT_HEADER_MAGIC): New macros.
23884 * loader/multiboot_loader.c (module_version_status): Remove variable.
23885 (find_multi_boot2_header): Remove function.
23886 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
23887 logic. Always check for the Multiboot version we're compiling for.
23888 (grub_cmd_module_loader): Likewise.
23889 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
23890 command instead of `multiboot'.
23892 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23894 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
23895 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
23898 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23899 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23901 Fix breakage introduced with previous commit.
23903 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
23905 * normal/handler.c (read_handler_list): Revert part of previous commit
23906 affecting this file.
23907 * normal/main.c (read_lists): Move read_handler_list() call back to ...
23908 (grub_normal_execute): ... here.
23910 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23912 Merge prefix-redefinition-fix branch.
23914 * normal/autofs.c (read_fs_list): Make function capable of being
23915 run multiple times, gracefuly replacing the previous data
23917 * normal/dyncmd.c (read_command_list): Likewise.
23918 * normal/handler.c (read_handler_list): Likewise.
23919 * normal/main.c (read_lists): New function. Calls all the
23920 list reading functions.
23921 (grub_normal_execute): Use read_lists() instead of calling all
23922 list reading functions explicitly. Register read_lists() as a
23923 variable hook attached to ${prefix}.
23925 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23927 Merge crypto branch.
23929 * Makefile.in (pkglib_DATA): Add crypto.lst.
23930 (crypto.lst): New target.
23931 * commands/hashsum.c: New file.
23932 * commands/password.c (check_password): Use grub_crypto_memcmp.
23933 * commands/password_pbkdf2.c: New file.
23934 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
23935 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
23936 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
23937 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
23938 -I$(srcdir)/lib/libgcrypt_wrap.
23939 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
23940 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
23941 password_pbkdf2.mod.
23942 (crypto_mod_SOURCES): New variable.
23943 (crypto_mod_CFLAGS): Likewise.
23944 (crypto_mod_LDFLAGS): Likewise.
23945 (hashsum_mod_SOURCES): New variable.
23946 (hashsum_mod_CFLAGS): Likewise.
23947 (hashsum_mod_LDFLAGS): Likewise.
23948 (pbkdf2_mod_SOURCES): New variable.
23949 (pbkdf2_mod_CFLAGS): Likewise.
23950 (pbkdf2_mod_LDFLAGS): Likewise.
23951 (password_pbkdf2_mod_SOURCES): New variable.
23952 (password_pbkdf2_mod_CFLAGS): Likewise.
23953 (password_pbkdf2_mod_LDFLAGS): Likewise.
23954 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
23955 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
23956 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
23957 Include conf/gcry.rmk.
23958 * include/grub/auth.h: Rewritten.
23959 * include/grub/crypto.h: New file.
23960 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
23961 * include/grub/normal.h (read_crypto_list): New prototype.
23962 * lib/crypto.c: New file.
23963 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
23964 * lib/pbkdf2.c: Likewise.
23965 * normal/auth.c (grub_auth_strcmp): Removed.
23966 (grub_iswordseparator): Likewise.
23967 (grub_auth_strword): Likewise.
23968 (is_authenticated): Use grub_strword.
23969 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
23970 and grub_strword. Pass entered password to authentication callback.
23971 * normal/crypto.c: New file.
23972 * normal/main.c: Call read_crypto_list.
23973 * util/grub-mkpasswd-pbkdf2.c: New file.
23974 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
23976 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
23978 Fix descent and ascent calculation.
23980 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
23981 (options): New option "asce".
23983 (add_char): Ignore invalid glyphs for descent calculation.
23984 Calculate ascent from actual content.
23985 (print_glyphs): Use 'asce'.
23986 (write_font): Likewise. Allow ascent override.
23987 (main): Handle "asce" option.
23989 2010-01-06 Carles Pina i Estany <carles@pina.cat>
23991 * kern/err.c: Include `<grub/i18n.h>'.
23992 (grub_print_error): Add full stop. Gettextizze.
23993 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
23994 (grub_bsd_load_elf): Capitalise ELF.
23995 (grub_cmd_freebsd_loadenv): Add `s' in error string.
23996 (grub_cmd_freebsd_module): Likewise.
23997 (grub_cmd_freebsd_module_elf): Likewise.
23998 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
24000 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24002 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24003 * commands/search_file.c (HELP_MESSAGE): New macro.
24004 * commands/search_label.c (HELP_MESSAGE): Likewise.
24005 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24006 * po/POTFILES: Add `commands/search_file.c',
24007 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24008 `commands/search.c'.
24010 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24012 * config.rpath: Update from Gnulib.
24014 2010-01-05 Yves Blusseau <blusseau@zetam.org>
24016 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24018 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24020 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24022 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24024 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24025 arguments to fread so that we get a return value in bytes, rather
24026 than something that will normally be rounded down to 0.
24027 Adjust error handling to avoid producing garbage when size_t is not
24028 the same size as long long.
24030 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24032 * util/mkisofs/write.c (padblock_write): Check return value of
24035 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24037 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24040 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24042 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24044 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24045 instead of manual alignment.
24046 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24047 verbose). Avoid attempts to read past end of the device
24048 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24049 but GRUB_DISK_CACHE_SIZE may exceed that).
24051 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24053 * commands/crc.c (grub_cmd_crc): Abort on read errors.
24054 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
24057 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24059 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
24061 (grub_efi_piwg_device_path): New structure
24062 (grub_efi_piwg_device_path_t): New type.
24063 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
24064 (devpath_1): Transform to a structure. All users updated.
24065 (devpath_2): Likewise.
24066 (devpath_3): Likewise.
24067 (devpath_4): Likewise.
24068 (devpath_5): Likewise.
24070 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24072 * loader/efi/appleloader.c: Restored. Update all users.
24074 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24076 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
24078 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
24079 (struct boot_blocklist): Move from here ...
24080 * include/grub/i386/pc/boot.h [ASM_FILE]
24081 (struct grub_boot_blocklist): ... to here. Update all users.
24082 (setup): Only initialize `start' member of `first_block'
24083 structure. Add assert() calls to verify the other members.
24085 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
24086 (generate_image): Fix broken blocklist length initialization.
24087 Add assert() call to verify blocklist `segment' field.
24089 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24091 * loader/efi/appleloader.c: Remove. Update all users.
24093 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24095 * boot/i386/pc/boot.S: Update copyright year.
24096 * boot/i386/pc/cdboot.S: Likewise.
24097 * boot/i386/pc/diskboot.S: Likewise.
24098 * boot/i386/pc/lnxboot.S: Likewise.
24099 * boot/i386/pc/pxeboot.S: Likewise.
24100 * bus/pci.c: Likewise.
24101 * commands/cmp.c: Likewise.
24102 * commands/help.c: Likewise.
24103 * commands/hexdump.c: Likewise.
24104 * commands/i386/pc/halt.c: Likewise.
24105 * commands/i386/pc/play.c: Likewise.
24106 * commands/i386/pc/vbeinfo.c: Likewise.
24107 * commands/ls.c: Likewise.
24108 * commands/test.c: Likewise.
24109 * disk/dmraid_nvidia.c: Likewise.
24110 * disk/i386/pc/biosdisk.c: Likewise.
24111 * disk/ieee1275/nand.c: Likewise.
24112 * disk/ieee1275/ofdisk.c: Likewise.
24113 * disk/lvm.c: Likewise.
24114 * disk/raid.c: Likewise.
24115 * disk/raid6_recover.c: Likewise.
24116 * disk/scsi.c: Likewise.
24117 * fs/affs.c: Likewise.
24118 * fs/cpio.c: Likewise.
24119 * fs/ext2.c: Likewise.
24120 * fs/hfs.c: Likewise.
24121 * fs/iso9660.c: Likewise.
24122 * fs/ntfs.c: Likewise.
24123 * fs/sfs.c: Likewise.
24124 * fs/udf.c: Likewise.
24125 * fs/ufs.c: Likewise.
24126 * fs/xfs.c: Likewise.
24127 * gencmdlist.sh: Likewise.
24128 * genmk.rb: Likewise.
24129 * include/grub/disk.h: Likewise.
24130 * include/grub/efi/api.h: Likewise.
24131 * include/grub/efi/efi.h: Likewise.
24132 * include/grub/efi/pe32.h: Likewise.
24133 * include/grub/elf.h: Likewise.
24134 * include/grub/fs.h: Likewise.
24135 * include/grub/i386/at_keyboard.h: Likewise.
24136 * include/grub/i386/pc/memory.h: Likewise.
24137 * include/grub/i386/pc/vbe.h: Likewise.
24138 * include/grub/i386/pci.h: Likewise.
24139 * include/grub/i386/tsc.h: Likewise.
24140 * include/grub/ieee1275/ieee1275.h: Likewise.
24141 * include/grub/ntfs.h: Likewise.
24142 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24143 * include/grub/sparc64/libgcc.h: Likewise.
24144 * include/grub/symbol.h: Likewise.
24145 * include/grub/types.h: Likewise.
24146 * include/multiboot2.h: Likewise.
24147 * io/gzio.c: Likewise.
24148 * kern/device.c: Likewise.
24149 * kern/disk.c: Likewise.
24150 * kern/efi/efi.c: Likewise.
24151 * kern/efi/mm.c: Likewise.
24152 * kern/elf.c: Likewise.
24153 * kern/file.c: Likewise.
24154 * kern/i386/dl.c: Likewise.
24155 * kern/i386/pc/init.c: Likewise.
24156 * kern/i386/pc/startup.S: Likewise.
24157 * kern/ieee1275/ieee1275.c: Likewise.
24158 * kern/ieee1275/init.c: Likewise.
24159 * kern/main.c: Likewise.
24160 * kern/mm.c: Likewise.
24161 * kern/powerpc/dl.c: Likewise.
24162 * kern/sparc64/dl.c: Likewise.
24163 * kern/x86_64/dl.c: Likewise.
24164 * lib/hexdump.c: Likewise.
24165 * loader/efi/appleloader.c: Likewise.
24166 * loader/i386/ieee1275/linux.c: Likewise.
24167 * loader/i386/pc/chainloader.c: Likewise.
24168 * loader/i386/pc/linux.c: Likewise.
24169 * loader/i386/pc/multiboot2.c: Likewise.
24170 * loader/ieee1275/multiboot2.c: Likewise.
24171 * loader/multiboot2.c: Likewise.
24172 * loader/multiboot_loader.c: Likewise.
24173 * loader/powerpc/ieee1275/linux.c: Likewise.
24174 * normal/completion.c: Likewise.
24175 * normal/menu_entry.c: Likewise.
24176 * partmap/apple.c: Likewise.
24177 * util/grub.d/10_hurd.in: Likewise.
24178 * util/hostfs.c: Likewise.
24179 * video/readers/png.c: Likewise.
24181 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
24183 * include/grub/misc.h (GNUC_PREREQ): New macro.
24184 (ATTRIBUTE_ERROR): New macro.
24185 * include/grub/list.h (grub_bad_type_cast_real): Use
24188 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24190 * normal/menu_text.c (print_message): Change messages.
24192 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24194 * normal/menu_entry.c (store_completion): Gettextizze.
24196 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24198 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
24200 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24202 * po/POTFILES: Sort correctly.
24204 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24206 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
24207 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
24208 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
24210 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
24211 summary. Gettextizze the strings.
24212 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
24213 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
24214 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
24216 (GRUB_MOD_INIT): Remove command name from summary.
24217 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
24219 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
24220 * term/i386/pc/serial.c (options): Add full stops.
24221 (GRUB_MOD_INIT): Remove command name from the summary.
24223 2010-01-03 Carles Pina i Estany <carles@pina.cat>
24225 * commands/acpi.c: Gettextizze help strings and/or options. Include
24226 `grub/i18n.h' if needed.
24227 * commands/blocklist.c: Likewise.
24228 * commands/boot.c: Likewise.
24229 * commands/cat.c: Likewise.
24230 * commands/cmp.c: Likewise.
24231 * commands/configfile.c: Likewise.
24232 * commands/crc.c: Likewise.
24233 * commands/date.c: Likewise.
24234 * commands/echo.c: Likewise.
24235 * commands/efi/fixvideo.c: Likewise.
24236 * commands/efi/loadbios.c: Likewise.
24237 * commands/gptsync.c: Likewise.
24238 * commands/halt.c: Likewise.
24239 * commands/handler.c: Likewise.
24240 * commands/hdparm.c: Likewise.
24241 * commands/hexdump.c: Likewise.
24242 * commands/i386/cpuid.c: Likewise.
24243 * commands/i386/pc/drivemap.c: Likewise.
24244 * commands/i386/pc/halt.c: Likewise.
24245 * commands/i386/pc/pxecmd.c: Likewise.
24246 * commands/i386/pc/vbeinfo.c: Likewise.
24247 * commands/i386/pc/vbetest.c: Likewise.
24248 * commands/ieee1275/suspend.c: Likewise.
24249 * commands/keystatus.c: Likewise.
24250 * commands/loadenv.c: Likewise.
24251 * commands/ls.c: Likewise.
24252 * commands/lsmmap.c: Likewise.
24253 * commands/lspci.c: Likewise.
24254 * commands/memrw.c: Likewise.
24255 * commands/minicmd.c: Likewise.
24256 * commands/parttool.c: Likewise.
24257 * commands/password.c: Likewise.
24258 * commands/probe.c: Likewise.
24259 * commands/read.c: Likewise.
24260 * commands/reboot.c: Likewise.
24261 * commands/search.c: Likewise.
24262 * commands/sleep.c: Likewise.
24263 * commands/test.c: Likewise.
24264 * commands/true.c: Likewise.
24265 * commands/usbtest.c: Likewise.
24266 * commands/videotest.c: Likewise.
24267 * commands/xnu_uuid.c: Likewise.
24268 * disk/loopback.c: Likewise.
24269 * hello/hello.c: Likewise.
24270 * loader/i386/bsd.c: Likewise.
24271 * term/i386/pc/serial.c: Likewise.
24272 * po/POTFILES: Add new files.
24274 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
24276 * term/i386/pc/at_keyboard.c
24277 (keyboard_controller_wait_untill_ready): Rename to ...
24278 (keyboard_controller_wait_until_ready): ... this. Update all users.
24280 2010-01-01 Carles Pina i Estany <carles@pina.cat>
24282 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
24283 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
24284 string using string width.
24285 * normal/menu_text.c (grub_print_message_indented): Use
24286 grub_print_spaces and not print_spaces.
24287 (print_timeout): Likewise.
24288 (print_spaces): Move to...
24289 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
24291 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
24293 Import from Gnulib.
24295 * gnulib/getdelim.c: New file.
24296 * gnulib/getline.c: Likewise.
24298 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
24300 * include/grub/list.h (grub_assert_fail): Removed.
24301 (grub_bad_type_cast_real): New function.
24302 (grub_bad_type_cast): New macro.
24303 (GRUB_AS_LIST): Use grub_bad_type_cast.
24304 (GRUB_AS_LIST_P): Likewise.
24305 (GRUB_AS_NAMED_LIST): Likewise.
24306 (GRUB_AS_NAMED_LIST_P): Likewise.
24307 (GRUB_AS_PRIO_LIST): Likewise.
24308 (GRUB_AS_PRIO_LIST_P): Likewise.
24309 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
24311 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
24313 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
24316 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
24318 * configure.ac: Check for TARGET_CFLAGS initialization before we
24319 initialize it ourselves (sigh).
24320 Move a few modifications to TARGET_CFLAGS to be unconditional
24321 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
24324 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
24325 * term/i386/pc/at_keyboard.c
24326 (keyboard_controller_wait_untill_ready): Likewise.
24327 (keyboard_controller_led): Rename `led_status' paramter to avoid
24330 2009-12-28 Carles Pina i Estany <carles@pina.cat>
24332 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
24335 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24337 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
24339 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24341 * normal/menu_text.c (grub_print_message_indented): Prevent
24342 past-the-end-of-array dereference.
24344 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24346 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
24347 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
24349 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24351 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
24352 * normal/main.c (grub_normal_read_line): Remove a space from the
24355 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24357 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
24358 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24359 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24360 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24361 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24362 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24363 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24365 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24367 * video/readers/jpeg.c (cmd): Declare.
24368 (grub_cmd_jpegtest): Use `grub_command_t' type.
24369 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24371 (GRUB_MOD_FINI): Use `cmd' to unregister.
24372 * video/readers/png.c (cmd): Declare.
24373 (grub_cmd_pngtest): Use `grub_command_t' type.
24374 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24376 (GRUB_MOD_FINI): Use `cmd' to unregister.
24377 * video/readers/tga.c (cmd): Declare.
24378 (grub_cmd_tgatest): Use `grub_command_t' type.
24379 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24381 (GRUB_MOD_FINI): Use `cmd' to unregister.
24383 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24385 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
24387 * kern/corecmd.c (grub_register_core_commands): Likewise.
24388 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
24389 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24390 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
24391 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24392 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24393 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
24394 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24395 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
24396 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24397 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24398 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24399 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24400 * normal/handler.c (insert_handler): Likewise.
24401 * normal/main.c (GRUB_MOD_INIT): Likewise.
24402 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
24404 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24406 * commands/help.c (grub_cmd_help): Print the command name before the
24408 (GRUB_MOD_INIT): Remove command name from the summary.
24409 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
24411 * lib/arg.c (find_long): Print the command name before the summary.
24412 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
24414 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
24415 * commands/cat.c (GRUB_MOD_INIT): Likewise.
24416 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
24417 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
24418 * commands/crc.c (GRUB_MOD_INIT): Likewise.
24419 * commands/date.c (GRUB_MOD_INIT): Likewise.
24420 * commands/echo.c (GRUB_MOD_INIT): Likewise.
24421 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
24422 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
24423 * commands/handler.c (GRUB_MOD_INIT): Likewise.
24424 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
24425 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
24426 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
24427 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
24428 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
24429 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
24430 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
24431 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
24432 * commands/ls.c (GRUB_MOD_INIT): Likewise.
24433 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
24434 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
24435 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
24436 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
24437 * commands/password.c (GRUB_MOD_INIT): Likewise.
24438 * commands/probe.c (GRUB_MOD_INIT): Likewise.
24439 * commands/read.c (GRUB_MOD_INIT): Likewise.
24440 * commands/search.c (GRUB_MOD_INIT): Likewise.
24441 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
24442 * commands/test.c (GRUB_MOD_INIT): Likewise.
24443 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
24444 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
24445 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
24446 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
24447 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
24448 * lib/arg.c (GRUB_MOD_INIT): Likewise.
24449 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
24450 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24451 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24452 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24453 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
24454 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
24455 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
24456 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
24458 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24460 Use search command for preliminar UUID search.
24462 * commands/search.c: Split into ...
24463 * commands/search_wrap.c: ...this
24464 * commands/search.c: ...and this.
24465 * commands/search_file.c: New file.
24466 * commands/search_label.c: New file.
24467 * commands/search_uuid.c: New file.
24468 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
24469 Add commands/search_wrap.c, commands/search_file.c,
24470 commands/search_label.c and commands/search_uuid.c.
24471 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
24472 (search_mod_SOURCES): Set to commands/search_wrap.c.
24473 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
24475 (search_fs_file_mod_SOURCES): New variable.
24476 (search_fs_file_mod_CFLAGS): Likewise.
24477 (search_fs_file_mod_LDFLAGS): Likewise.
24478 (search_label_mod_SOURCES): Likewise.
24479 (search_label_mod_CFLAGS): Likewise.
24480 (search_label_mod_LDFLAGS): Likewise.
24481 (search_fs_uuid_mod_SOURCES): New variable.
24482 (search_fs_uuid_mod_CFLAGS): Likewise.
24483 (search_fs_uuid_mod_LDFLAGS): Likewise.
24484 (fs_file_mod_SOURCES): Removed.
24485 (fs_file_mod_CFLAGS): Likewise.
24486 (fs_file_mod_LDFLAGS): Likewise.
24487 (fs_uuid_mod_SOURCES): Removed.
24488 (fs_uuid_mod_CFLAGS): Likewise.
24489 (fs_uuid_mod_LDFLAGS): Likewise.
24490 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
24491 Set to util/grub-install.in.
24492 * disk/fs_file.c: Removed.
24493 * disk/fs_uuid.c: Likewise.
24494 * include/grub/search.h: New file.
24495 * util/grub-install.in: Handle sparc64.
24496 Create and use load.cfg.
24497 * util/sparc64/ieee1275/grub-install.in: Removed.
24499 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24501 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
24502 Ignore return status if CF is cleared.
24503 (grub_biosdisk_get_diskinfo_standard): Likewise.
24505 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
24507 * term/i386/pc/at_keyboard.c
24508 (keyboard_controller_wait_untill_ready): New function.
24509 (grub_keyboard_controller_write, grub_keyboard_controller_read)
24510 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
24511 for keyboard polling, rather than duplicate the same loop. This
24512 saves a few bytes in code size.
24514 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24516 Support for (pxe[:server[:gateway]]) syntax and
24517 use environment variable for PXE.
24519 * commands/i386/pc/pxecmd.c (options): Removed.
24520 (print_ip): Removed.
24521 (grub_cmd_pxe): Removed
24522 (grub_cmd_pxe_unload): New function.
24523 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
24524 (grub_pxe_your_ip): Made static.
24525 (grub_pxe_default_server_ip): Likewise.
24526 (grub_pxe_default_gateway_ip): Likewise.
24527 (grub_pxe_blksize): Likewise.
24528 (parse_ip): New function.
24529 (grub_pxe_open): Support server and gateway specification.
24530 (grub_pxe_close): Free disk->data.
24531 (grub_pxefs_open): Use disk->data.
24532 (grub_pxefs_read): Likewise.
24533 (grub_env_write_readonly): New function.
24534 (set_mac_env): Likewise.
24535 (set_env_limn_ro): Likewise.
24536 (parse_dhcp_vendor): Likewise.
24537 (grub_pxe_detect): Set the environment variables.
24538 (set_ip_env): New function.
24539 (write_ip_env): Likewise.
24540 (grub_env_write_pxe_default_server): Likewise.
24541 (grub_env_write_pxe_default_gateway): Likewise.
24542 (grub_env_write_pxe_blocksize): Likewise.
24543 (GRUB_MOD_INIT(pxe)): Set environment variables.
24544 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
24545 (grub_pxe_mac_addr_t): ... this. All users updated.
24546 (grub_pxe_your_ip): Removed.
24547 (grub_pxe_server_ip): Likewise.
24548 (grub_pxe_gateway_ip): Likewise.
24549 (grub_pxe_blksize): Likewise.
24551 2009-12-25 Carles Pina i Estany <carles@pina.cat>
24553 * commands/help.c: Include `<grub/i18n.h>'.
24554 (grub_cmd_help): Gettextizze.
24555 (GRUB_MOD_INIT): Likewise.
24556 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
24557 (GRUB_MOD_INIT): Gettextizze.
24558 * commands/search.c: Include `<grub/i18n.h>'.
24559 (options): Gettextizze.
24560 (GRUB_MOD_INIT): Gettextizze.
24561 * lib/arg.c: Include `<grub/i18n.h>'.
24562 (help_options): Gettextizze.
24563 (find_long): Likewise.
24564 (grub_arg_show_help): Likewise.
24565 * normal/dyncmd.c: Include `<grub/i18n.h>'.
24566 (read_command_list): Gettextizze.
24567 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
24568 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
24570 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
24572 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
24573 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
24574 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
24575 (led_status): New variable.
24576 (keyboard_controller_led): New function.
24577 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
24578 update led status for caps lock, num lock and scroll lock.
24580 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
24582 * util/hostdisk.c (open_device): Fix a comment.
24584 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24586 * util/grub-install.in (host_os): New variable.
24587 * util/i386/efi/grub-install.in (host_os): Likewise.
24589 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24591 * util/mkisofs/write.c (padblock_write): Abort when given an
24592 excedingly large embed image, instead of silently truncating it.
24594 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24596 * include/multiboot.h: Indentation fixes.
24598 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24600 * include/multiboot.h (struct multiboot_aout_symbol_table)
24601 (struct multiboot_elf_section_header_table): New structure
24602 declarations (stolen from GRUB Legacy).
24603 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
24606 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
24607 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
24610 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24612 * include/multiboot.h: Make comments src2texi-friendly.
24614 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24616 For consistency with [multiboot]/docs/boot.S.
24618 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
24619 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
24620 (MULTIBOOT_MAGIC2): Rename from this ...
24621 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
24623 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24625 * include/multiboot.h: Remove `<grub/types.h>'.
24626 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
24627 types. Update all users.
24629 2009-12-25 Carles Pina i Estany <carles@pina.cat>
24631 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
24632 `couldn't' and `can not' by `cannot'.
24633 * commands/i386/pc/drivemap.c: Likewise.
24634 * disk/ata.c: Likewise.
24635 * disk/ieee1275/nand.c: Likewise.
24636 * fs/affs.c: Likewise.
24637 * fs/fat.c: Likewise.
24638 * fs/hfs.c: Likewise.
24639 * fs/hfsplus.c: Likewise.
24640 * fs/iso9660.c: Likewise.
24641 * fs/jfs.c: Likewise.
24642 * fs/minix.c: Likewise.
24643 * fs/reiserfs.c: Likewise.
24644 * fs/sfs.c: Likewise.
24645 * fs/udf.c: Likewise.
24646 * fs/ufs.c: Likewise.
24647 * fs/xfs.c: Likewise.
24648 * loader/powerpc/ieee1275/linux.c: Likewise.
24649 * loader/sparc64/ieee1275/linux.c: Likewise.
24650 * util/grub-probe.c: Likewise.
24651 * util/misc.c: Likewise.
24653 2009-12-24 Carles Pina i Estany <carles@pina.cat>
24655 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
24657 * commands/acpi.c: Likewise.
24658 * commands/blocklist.c: Likewise.
24659 * commands/efi/loadbios.c: Likewise.
24660 * commands/i386/pc/drivemap.c: Likewise.
24661 * commands/loadenv.c: Likewise.
24662 * commands/memrw.c: Likewise.
24663 * commands/password.c: Likewise.
24664 * commands/videotest.c: Likewise.
24665 * disk/ata.c: Likewise.
24666 * disk/ata_pthru.c: Likewise.
24667 * disk/dmraid_nvidia.c: Likewise.
24668 * disk/ieee1275/nand.c: Likewise.
24669 * disk/ieee1275/ofdisk.c: Likewise.
24670 * disk/loopback.c: Likewise.
24671 * disk/lvm.c: Likewise.
24672 * disk/mdraid_linux.c: Likewise.
24673 * disk/raid.c: Likewise.
24674 * disk/raid6_recover.c: Likewise.
24675 * disk/scsi.c: Likewise.
24676 * efiemu/main.c: Likewise.
24677 * efiemu/mm.c: Likewise.
24678 * efiemu/pnvram.c: Likewise.
24679 * efiemu/symbols.c: Likewise.
24680 * font/font.c: Likewise.
24681 * fs/cpio.c: Likewise.
24682 * fs/hfsplus.c: Likewise.
24683 * fs/iso9660.c: Likewise.
24684 * fs/jfs.c: Likewise.
24685 * fs/minix.c: Likewise.
24686 * fs/ntfs.c: Likewise.
24687 * fs/ntfscomp.c: Likewise.
24688 * fs/reiserfs.c: Likewise.
24689 * fs/ufs.c: Likewise.
24690 * fs/xfs.c: Likewise.
24691 * gettext/gettext.c: Likewise.
24692 * include/grub/auth.h: Likewise.
24693 * kern/elf.c: Likewise.
24694 * kern/file.c: Likewise.
24695 * kern/ieee1275/init.c: Likewise.
24696 * kern/ieee1275/mmap.c: Likewise.
24697 * kern/ieee1275/openfw.c: Likewise.
24698 * kern/powerpc/dl.c: Likewise.
24699 * kern/sparc64/dl.c: Likewise.
24700 * lib/arg.c: Likewise.
24701 * loader/i386/bsd.c: Likewise.
24702 * loader/i386/bsdXX.c: Likewise.
24703 * loader/i386/efi/linux.c: Likewise.
24704 * loader/i386/efi/xnu.c: Likewise.
24705 * loader/i386/ieee1275/linux.c: Likewise.
24706 * loader/i386/linux.c: Likewise.
24707 * loader/i386/multiboot.c: Likewise.
24708 * loader/i386/pc/linux.c: Likewise.
24709 * loader/i386/pc/multiboot2.c: Likewise.
24710 * loader/i386/xnu.c: Likewise.
24711 * loader/ieee1275/multiboot2.c: Likewise.
24712 * loader/macho.c: Likewise.
24713 * loader/machoXX.c: Likewise.
24714 * loader/multiboot2.c: Likewise.
24715 * loader/multiboot_loader.c: Likewise.
24716 * loader/powerpc/ieee1275/linux.c: Likewise.
24717 * loader/sparc64/ieee1275/linux.c: Likewise.
24718 * loader/xnu.c: Likewise.
24719 * loader/xnu_resume.c: Likewise.
24720 * mmap/i386/pc/mmap.c: Likewise.
24721 * normal/menu_viewer.c: Likewise.
24722 * partmap/acorn.c: Likewise.
24723 * partmap/amiga.c: Likewise.
24724 * partmap/apple.c: Likewise.
24725 * script/lexer.c: Likewise.
24726 * term/gfxterm.c: Likewise.
24727 * term/i386/pc/serial.c: Likewise.
24728 * term/i386/pc/vga.c: Likewise.
24729 * term/ieee1275/ofconsole.c: Likewise.
24730 * term/terminfo.c: Likewise.
24731 * video/bitmap.c: Likewise.
24732 * video/efi_gop.c: Likewise.
24733 * video/efi_uga.c: Likewise.
24734 * video/fb/video_fb.c: Likewise.
24735 * video/i386/pc/vbe.c: Likewise.
24736 * video/readers/tga.c: Likewise.
24737 * video/video.c: Likewise.
24739 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
24741 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
24742 * commands/lspci.c: Likewise.
24743 * commands/probe.c: Likewise.
24744 * commands/xnu_uuid.c: Likewise.
24745 * conf/i386-coreboot.rmk: Likewise.
24746 * conf/i386-efi.rmk: Likewise.
24747 * conf/i386-ieee1275.rmk: Likewise.
24748 * conf/i386-pc.rmk: Likewise.
24749 * conf/powerpc-ieee1275.rmk: Likewise.
24750 * conf/sparc64-ieee1275.rmk: Likewise.
24751 * conf/x86_64-efi.rmk: Likewise.
24752 * fs/i386/pc/pxe.c: Likewise.
24753 * gettext/gettext.c: Likewise.
24754 * include/grub/efi/graphics_output.h: Likewise.
24755 * include/grub/i386/pc/memory.h: Likewise.
24756 * kern/env.c: Likewise.
24757 * kern/i386/qemu/startup.S: Likewise.
24758 * lib/i386/pc/biosnum.c: Likewise.
24759 * lib/i386/relocator.c: Likewise.
24760 * lib/i386/relocator_asm.S: Likewise.
24761 * lib/relocator.c: Likewise.
24762 * loader/i386/bsd.c: Likewise.
24763 * loader/i386/multiboot.c: Likewise.
24764 * loader/i386/pc/chainloader.c: Likewise.
24765 * loader/i386/xnu.c: Likewise.
24766 * loader/xnu.c: Likewise.
24767 * normal/main.c: Likewise.
24768 * normal/menu_text.c: Likewise.
24769 * util/getroot.c: Likewise.
24770 * util/grub-mkconfig_lib.in: Likewise.
24771 * util/grub.d/00_header.in: Likewise.
24772 * util/i386/pc/grub-mkimage.c: Likewise.
24773 * util/mkisofs/eltorito.c: Likewise.
24774 * util/mkisofs/exclude.h: Likewise.
24775 * util/mkisofs/hash.c: Likewise.
24776 * util/mkisofs/iso9660.h: Likewise.
24777 * util/mkisofs/joliet.c: Likewise.
24778 * util/mkisofs/mkisofs.c: Likewise.
24779 * util/mkisofs/mkisofs.h: Likewise.
24780 * util/mkisofs/multi.c: Likewise.
24781 * util/mkisofs/name.c: Likewise.
24782 * util/mkisofs/rock.c: Likewise.
24783 * util/mkisofs/tree.c: Likewise.
24784 * util/mkisofs/write.c: Likewise.
24785 * video/efi_gop.c: Likewise.
24787 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
24789 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
24792 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24794 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
24795 * genmk.rb (class SCRIPT): Modify the target file instead of source.
24797 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24799 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
24800 (GRUB_MOD_INIT(memrw)): Update help line.
24802 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24804 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
24805 Use grub_extcmd_t. All users updated.
24806 (options): New variable.
24807 (grub_cmd_read): Restructure for readability. Support "-v" option.
24808 (grub_cmd_write): Restructure for readability.
24810 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24812 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
24814 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24816 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
24817 with the actual contents of the correspondending make variable.
24818 * util/grub-mkrescue.in (pkglib_DATA): New variable.
24819 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
24820 specifying `*.lst' and `efiemu??.o'
24822 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24824 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
24825 after function name.
24826 Noticed by Rene Engelhard <rene@debian.org>.
24828 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24830 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
24831 (options): New variable.
24832 (iospace): Likewise.
24833 (grub_lspci_iter): List IO spaces if "-i" was given.
24834 (grub_cmd_lspci): Parse options.
24835 (GRUB_MOD_INIT(lspci)): Use extcmd.
24836 (GRUB_MOD_FINI(lspci)): Likewise.
24838 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24840 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
24841 `function' keyword.
24842 Patch by Tony Mancill <tmancill@debian.org>.
24844 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24846 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
24847 (grub_uhci_portstatus): Likewise.
24848 (grub_uhci_portstatus): Add necessary delay.
24849 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
24851 2009-12-21 Carles Pina i Estany <carles@pina.cat>
24853 * commands/acpi.c (options): Fix capitalizations and/or full stops.
24854 (GRUB_MOD_INIT): Likewise.
24855 * commands/boot.c (GRUB_MOD_INIT): Likewise.
24856 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
24857 * commands/echo.c (options): Fix capitalizations and/or full stops.
24858 * commands/efi/loadbios.c (enable_rom_area): Likewise.
24859 (enable_rom_area): Likewise.
24860 (GRUB_MOD_INIT): Likewise.
24861 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
24862 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
24863 * commands/handler.c (GRUB_MOD_INIT): Likewise.
24864 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
24865 * commands/hexdump.c (options): Likewise.
24866 * commands/i386/cpuid.c (options): Likewise.
24867 (GRUB_MOD_INIT): Likewise.
24868 * commands/i386/pc/drivemap.c (options): Likewise.
24869 (GRUB_MOD_INIT): Likewise.
24870 * commands/i386/pc/halt (options): Likewise.
24871 (GRUB_MOD_INIT): Likewise.
24872 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
24873 * commands/i386/pc/pxecmd.c (options): Likewise.
24874 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
24875 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
24876 * commands/keystatus.c (options): Likewise.
24877 (GRUB_MOD_INIT): Likewise.
24878 * commands/loadenv.c (options): Likewise.
24879 * commands/ls.c (options): Likewise.
24880 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
24881 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
24882 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
24883 * commands/parttool.c (helpmsg): Likewise.
24884 * commands/probe.c (options): Likewise.
24885 * commands/read.c (GRUB_MOD_INIT): Likewise.
24886 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
24887 * commands/search.c (options): Likewise.
24888 * commands/sleep.c (options): Likewise.
24889 * commands/test.c (GRUB_MOD_INIT): Likewise.
24890 * commands/true.c (GRUB_MOD_INIT): Likewise.
24891 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
24892 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
24893 * lib/arg.c (help_options): Likewise.
24894 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
24896 * po/POTFILES: Add `commands/loadenv.c'.
24898 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
24900 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
24901 instead of specifying them explicit.
24903 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24905 * NEWS: Add grub-probe support for GNU/Hurd.
24907 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24909 * NEWS: gettext was added after 1.97.
24911 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24913 * util/mkisofs/msdos_partition.h: New file (based on
24914 include/grub/msdos_partition.h).
24915 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
24916 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
24917 (ld_options, main): Recognize --protective-msdos-label.
24918 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
24919 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
24920 (padblock_write): If `use_protective_msdos_label' is set, patch a
24921 protective DOS-style label in the output image.
24923 * util/grub-mkrescue.in: Use --protective-msdos-label.
24925 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24927 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
24930 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24932 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
24934 (ld_options, main): Recognize `--embedded-boot'.
24935 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
24937 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
24938 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
24939 (padblock_write): Likewise. Rewrite to support embedded boot image.
24941 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
24942 for BIOS-based disk boot instead of only ElTorito.
24944 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24946 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
24947 build (not needed for bootstrap).
24949 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24951 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
24952 from i386-pc build (not needed for bootstrap).
24953 Rewrite a pair of strings.
24955 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24957 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
24959 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
24961 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
24963 2009-12-21 Andreas Born <futur.andy@googlemail.com>
24965 * kern/env.c (grub_env_context_open): Mark exported variable for
24968 2009-12-21 Andreas Born <futur.andy@googlemail.com>
24970 * kern/env.c (grub_env_export): Create nonexistent variables before
24973 2009-12-20 Carles Pina i Estany <carles@pina.cat>
24975 * include/grub/auth.h: Include `<grub/i18n.h>'.
24976 (GRUB_GET_PASSWORD): Gettextizze string.
24977 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
24979 (grub_utf8_to_ucs4_alloc): Fix indentation.
24980 (grub_print_ucs4): Likewise.
24981 (grub_getstringwidth): Likewise.
24982 (print_message_indented): New declaration.
24983 * normal/auth.c: Include `<grub/i18n.h>'.
24984 (grub_auth_check_authentication): Gettexttize string.
24985 * normal/cmdline.c: Include `<grub/i18n.h>'.
24986 (grub_cmdline_get): Gettextizze.
24987 * normal/color.c: Include `<grub/i18n.h>'.
24988 (grub_parse_color_name_pair): Gettexttize strings.
24989 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
24990 string (use `print_message_indented').
24991 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
24992 `include/grub/normal.h'.
24993 (print_message_indented): Renamed to ...
24994 (grub_print_message_indented): ... this. Remove `static' qualifer (now
24995 used in normal/main.c).
24996 (print_message): Use `grub_print_message_indented' instead of
24997 `print_message_indented'.
24998 (print_timeout): Likewise.
24999 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25000 (grub_normal_print_device_info): Gettexttize strings.
25001 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25003 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25005 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25006 of arguments. Return number of tokens and not arguments. All users
25009 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25011 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25012 non-MSDOS paritions.
25014 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25016 * include/grub/types.h (UNUSED): Removed since it conflicts with
25017 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25018 Reported by Grégoire Sutre.
25020 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25022 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25023 (grub_print_ucs4_alloc): Likewise.
25024 (grub_getstringwidth): Likewise.
25025 * normal/main.c (grub_normal_init_page): Gettextize version string.
25026 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25027 (getstringwidth): Renamed to ...
25028 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25029 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25030 (grub_print_ucs4): Remove `static' qualifer (now used in
25032 * po/POTFILES: Add normal/main.c.
25034 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25036 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25037 (print_message_indented): Add `margin_left' and `margin_right'
25039 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25041 (print_timeout): Use `print_message_indented' to print the message.
25042 Deletes `second_stage' parameter.
25043 (run_menu): Update `print_timeout' calls.
25045 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25047 Fix console palette on OpenFirmware.
25049 * term/ieee1275/ofconsole.c (MAX): Removed.
25050 (colors): Redone based on VGA palette.
25051 (grub_ofconsole_setcolor): Discard brightness bit since only 8
25052 colors are supported.
25053 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
25055 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25057 Fix potential EfiEmu double prepare.
25059 * efiemu/main.c (prepared): New variable
25060 (grub_efiemu_unload): Set prepare to '0'.
25061 (grub_efiemu_prepare): Return if already prepared. Set prepared.
25063 set_virtual_address_map support.
25065 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
25067 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
25069 (grub_efiemu_crc32): Likewise.
25070 (grub_efiemu_crc64): Likewise.
25071 (grub_efiemu_set_virtual_address_map): Likewise.
25072 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
25074 (grub_autoefi_set_virtual_address_map): Likewise.
25075 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
25076 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
25077 Restructure flow to accomodate it.
25078 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
25079 (grub_efiemu_crc): Recompute CRC32.
25080 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
25081 (efiemu_ptv_relocated): ... this. Made global. All users updated.
25082 * efiemu/symbols.c (relocated_handle): New variable.
25083 (grub_efiemu_free_syms): Free relocated_handle.
25084 (grub_efiemu_alloc_syms): Allocate relocated_handle.
25085 (grub_efiemu_write_sym_markers): New function.
25086 (grub_efiemu_set_virtual_address_map): Likewise.
25088 Newer XNU parameters.
25090 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
25091 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
25092 (grub_xnu_fill_devicetree): New prototype.
25093 (grub_xnu_heap_real_start): New variable.
25094 * loader/xnu.c (get_name_ptr): New function.
25095 (grub_xnu_load_driver): Fill namelen and name.
25097 64-bit xnu support.
25099 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
25100 and 'loader/macho64.c'.
25101 * conf/i386-pc.rmk: Likewise.
25102 * conf/x86_64-efi.rmk: Likewise.
25103 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
25104 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
25105 * include/grub/macho.h (grub_macho_segment64): New structure.
25106 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
25107 (grub_macho_size32): ... to this.
25108 (grub_macho32_get_entry_point): Renamed from ...
25109 (grub_macho_get_entry_point32): ... to this.
25110 (grub_macho_contains_macho64): New prototype.
25111 (grub_macho_size64): Likewise.
25112 (grub_macho_get_entry_point64): Likewise.
25113 (grub_macho32_load): Renamed from ...
25114 (grub_macho_load32): ... to this.
25115 (grub_macho32_filesize): Renamed from ...
25116 (grub_macho_filesize32): ... to this.
25117 (grub_macho32_readfile): Renamed from ...
25118 (grub_macho_readfile32): ... to this.
25119 (grub_macho_filesize64): New prototype.
25120 (grub_macho_readfile64): Likewise.
25121 (grub_macho_parse32): Likewise.
25122 (grub_macho_parse64): Likewise.
25123 * loader/macho.c: Split into ...
25124 * loader/machoXX.c: ... and this. Replace 32 with XX.
25125 * loader/macho32.c: New file.
25126 * loader/macho64.c: Likewise.
25127 * loader/xnu.c (grub_xnu_is_64bit): New variable.
25128 (grub_cmd_xnu_kernel): Make 32-bit only.
25129 (grub_cmd_xnu_kernel64): New function.
25130 (grub_xnu_load_driver): Support Mach-O 64.
25131 (grub_cmd_xnu_mkext): Likewise.
25132 * util/grub.d/30_os-prober.in (osx_entry): New function.
25133 Generate entries for 64-bit boot too.
25135 Eliminate ad-hoc tree format in XNU and EfiEmu.
25137 * efiemu/main.c (grub_efiemu_prepare): Update comment.
25138 * efiemu/pnvram.c: Rewritten to use environment variables.
25141 Inline utf16_to_utf8.
25143 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
25144 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
25146 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
25148 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
25149 * commands/usbtest.c (grub_usb_get_string): ... move here.
25150 (usb_print_str): Fix error handling.
25151 * include/grub/usb.h (grub_usb_get_string): Remove.
25153 UTF-8 to UTF-16 transformation.
25155 * conf/common.rmk (pkglib_MODULES): Add charset.mod
25156 (charset_mod_SOURCES): New variable.
25157 (charset_mod_CFLAGS): Likewise.
25158 (charset_mod_LDFLAGS): Likewise.
25159 * include/grub/utf.h: New file.
25160 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
25162 Support for device properties.
25164 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
25165 (grub_xnu_devprop_device_header): Likewise.
25166 (grub_xnu_devprop_device_descriptor): Likewise.
25167 (grub_xnu_devprop_add_device): New prototype.
25168 (grub_xnu_devprop_remove_device): Likewise.
25169 (grub_xnu_devprop_remove_property): Likewise.
25170 (grub_xnu_devprop_add_property_utf8): Likewise.
25171 (grub_xnu_devprop_add_property_utf16): Likewise.
25172 (grub_cpu_xnu_init): Likewise.
25173 (grub_cpu_xnu_fini): Likewise.
25174 (grub_cpu_xnu_unload): Likewise.
25175 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
25176 (property_descriptor): Likewise.
25177 (devices): New variable.
25178 (grub_xnu_devprop_remove_property): New function.
25179 (grub_xnu_devprop_add_device): Likewise.
25180 (grub_xnu_devprop_remove_device): Likewise.
25181 (grub_xnu_devprop_add_property): Likewise.
25182 (grub_xnu_devprop_add_property_utf8): Likewise.
25183 (grub_xnu_devprop_add_property_utf16): Likewise.
25184 (hextoval): Likewise.
25185 (grub_cpu_xnu_fill_devprop): Likewise.
25186 (grub_cmd_devprop_load): Likewise.
25187 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
25188 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
25189 (cmd_devprop_load): New variable.
25190 (grub_cpu_xnu_init): New function.
25191 (grub_cpu_xnu_fini): Likewise.
25192 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
25193 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
25194 (grub_cmd_xnu_devtree): Likewise.
25195 (hextoval): New function.
25196 (unescape): Likewise.
25197 (grub_xnu_fill_devicetree): Likewise.
25199 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
25200 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
25202 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25204 Workaround for broken ATI VBE.
25206 * video/i386/pc/vbe.c (last_set_mode): New variable.
25207 (grub_vbe_set_video_mode): Set 'last_set_mode'.
25208 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
25209 (grub_video_vbe_setup): Don't check for reserved flag.
25211 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
25213 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
25214 the `find' command.
25216 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
25218 UUID support for HFS.
25220 * fs/hfs.c (grub_hfs_uuid): New function.
25221 (grub_hfs_fs): New value .uuid.
25222 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
25224 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
25226 Fix a segfault with parsing unknown long options.
25228 * util/grub-mkrelpath.c (options): Zero terminate it.
25230 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25232 * include/grub/misc.h (grub_puts): New declaration.
25233 (grub_puts_): Likewise.
25234 * kern/misc.c (grub_puts): New definition.
25235 (grub_puts_): Likewise.
25237 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25239 * util/grub-probe.c (probe): Improve error message.
25241 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
25243 * loader/i386/multiboot_elfxx.c
25244 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
25247 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25249 Relocator framework
25251 * loader/i386/xnu_helper.S: Removed. All users updated.
25252 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
25253 (relocator_mod_SOURCES): New variable.
25254 (relocator_mod_CFLAGS): Likewise.
25255 (relocator_mod_LDFLAGS): Likewise.
25256 (relocator_mod_ASFLAGS): Likewise.
25257 * conf/x86_64.rmk: Likewise.
25258 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
25259 (grub_multiboot_payload_entry_offset): Likewise.
25260 (grub_multiboot_forward_relocator): Likewise.
25261 (grub_multiboot_forward_relocator_end): Likewise.
25262 (grub_multiboot_backward_relocator): Likewise.
25263 (grub_multiboot_backward_relocator_end): Likewise.
25264 (grub_multiboot_payload_eip): New variable.
25265 (grub_multiboot_payload_orig): Likewise.
25266 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
25267 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
25268 * include/grub/i386/memory.h
25269 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
25270 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
25271 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
25272 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
25273 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
25274 * include/grub/i386/relocator.h: New file.
25275 * include/grub/x86_64/relocator.h: Likewise.
25276 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
25277 (XNU_RELOCATOR): New macro.
25278 (grub_xnu_launcher_start): Remove.
25279 (grub_xnu_launcher_end): Likewise.
25280 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
25281 (grub_xnu_heap_real_start): Remove.
25282 (grub_xnu_heap_start): Change to void *. All users updated.
25283 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
25284 * lib/i386/relocator.c: New file.
25285 * lib/i386/relocator_asm.S: Likewise.
25286 * lib/i386/relocator_backward.S: Likewise.
25287 * lib/mips/relocator.c: Likewise.
25288 * lib/mips/relocator_asm.S: Likewise.
25289 * lib/relocator.c: Likewise.
25290 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
25292 (playground): Likewise.
25293 (grub_multiboot_payload_orig): New variable.
25294 (grub_multiboot_payload_dest): Likewise.
25295 (grub_multiboot_payload_size): Likewise.
25296 (grub_multiboot_payload_eip): Likewise.
25297 (grub_multiboot_payload_esp): Likewise.
25298 (grub_multiboot_boot): Use grub_relocator32_boot.
25299 (grub_multiboot_unload): Free relocators.
25300 (grub_multiboot): Setup stack. Use relocators.
25301 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
25302 (grub_multiboot_load_elfXX): Use relocators.
25303 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
25304 (grub_multiboot_payload_size): Likewise.
25305 (grub_multiboot_payload_dest): Likewise.
25306 (grub_multiboot_payload_entry_offset): Likewise.
25307 (grub_multiboot_forward_relocator): Likewise.
25308 (grub_multiboot_backward_relocator): Likewise.
25309 (grub_multiboot_real_boot): Likewise.
25310 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
25311 (grub_xnu_entry_point): Likewise.
25312 (grub_xnu_arg1): Likewise.
25313 (grub_xnu_stack): Likewise.
25314 (grub_xnu_launch): Removed.
25315 (grub_xnu_boot_resume): New function.
25316 (grub_xnu_boot): Use relocators.
25317 * loader/i386/xnu_helper.S: Removed.
25318 * loader/xnu.c (grub_xnu_heap_start): New variable.
25319 (grub_xnu_heap_size): Likewise.
25320 (grub_xnu_heap_malloc): Use relocators.
25321 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
25323 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
25325 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
25328 2009-12-13 Carles Pina i Estany <carles@pina.cat>
25330 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
25331 GRUB_ERR_NONE before calling grub_env_set.
25333 2009-12-12 Robert Millan <rmh@aybabtu.com>
25335 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
25336 * genmk.rb (video): New variable.
25337 (CLEANFILES, VIDEOFILES): Add #{video}.
25338 (#{video}): New target rule.
25339 * genvideolist.sh: New file.
25340 * Makefile.in (pkglib_DATA): Add video.lst.
25341 (video.lst): New target rule.
25342 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
25344 * util/grub.d/30_os-prober.in: Replace `vbe' with
25345 ${GRUB_VIDEO_BACKEND}.
25347 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
25349 * THANKS: Add David Miller.
25351 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
25353 libpciaccess support.
25355 * Makefile.in (LIBPCIACCESS): New variable.
25356 (enable_grub_emu_pci): Likewise.
25357 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
25358 util/pci.c and commands/lspci.c.
25359 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
25360 * configure.ac (grub-emu-pci): New option.
25361 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
25362 (grub_pci_device_unmap_range): Likewise.
25363 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
25364 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
25365 (grub_pci_address_t) [!GRUB_UTIL]: New type.
25366 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
25367 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
25368 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
25369 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
25370 * include/grub/pciutils.h: New file.
25371 * util/pci.c: Likewise.
25373 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
25375 * util/misc.c: Don't include <errno.h> twice.
25377 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
25379 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
25380 name in an error message.
25381 (grub_biosdisk_rw): Likewise.
25383 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25385 Eliminate NTFS 4Gib barrier.
25387 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
25388 (read_run_data): Likewise.
25389 (grub_ntfs_read_run_list): Likewise.
25390 (grub_ntfs_read_block): Likewise.
25391 (grub_ntfs_iterate_dir): Likewise.
25392 (read_mft): Likewise.
25393 (read_data): Likewise.
25395 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
25396 to avoid 64-bit division
25397 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
25398 (grub_ntfs_rlst): Use grub_disk_addr_t.
25400 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25402 Eliminate grub-fstest 4Gib barrier.
25404 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
25405 (read_file): Fix error reporting.
25407 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25409 Eliminate hexdump 4Gib barrier.
25411 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
25412 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
25414 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25416 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
25419 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
25421 Remove miscellaneous files in distclean target.
25423 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
25425 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
25427 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
25428 if they're already set. This resolves the conflict between my
25429 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
25430 fixing the --grub-probe option again.
25431 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
25432 change on 2009-10-06, so that we now once again source
25433 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
25435 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
25437 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
25438 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
25439 `util/devicemap.c'.
25441 2009-12-08 Carles Pina i Estany <carles@pina.cat>
25443 * include/grub/misc.h (grub_printf_): New declaration.
25444 * kern/misc.c (grub_printf_): New definition.
25445 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
25446 instead of `grub_printf' and `_'.
25447 * normal/menu_entry.c (store_completion): Likewise.
25449 (grub_menu_entry_run): Likewise.
25450 * normal/menu_text.c (grub_wait_after_message): Likewise.
25451 (notify_booting): Likewise.
25452 (notify_fallback): Likewise.
25453 (notify_execution_failure): Likewise.
25455 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
25457 * configure.ac: Check for vasprintf.
25458 * util/misc.c (asprintf): Move allocation from here ...
25459 (vasprintf): ... to here. New function.
25460 (xasprintf): New function.
25461 * include/grub/util/misc.h (vasprintf, xasprintf): Add
25463 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25464 * util/grub-mkfont.c (write_font): Likewise.
25465 * util/grub-probe.c (probe): Likewise.
25466 * util/hostdisk.c (make_device_name): Likewise.
25468 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
25470 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
25471 anything even prefixed with 'cdrom' as a cdrom.
25473 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
25475 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
25478 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25480 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
25481 grub_gettext_msg_list.
25482 (grub_gettext_gettranslation_from_position): Return const char *
25484 (grub_gettext_translate): Add the translated strings into a list,
25485 returns from the list if existing there.
25486 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
25487 (grub_gettext_delete_list): Delete the list.
25488 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
25489 lang environment variable is changed.
25490 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
25492 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25494 Rename kernel.mod to kernel.img.
25496 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
25497 (kernel_mod_EXPORTS): Rename to ...
25498 (kernel_img_EXPORTS): ... this.
25499 (kernel_mod_SOURCES): Rename to ...
25500 (kernel_img_SOURCES): ... this.
25501 (kernel_mod_HEADERS): Rename to ...
25502 (kernel_img_HEADERS): ... this. All users updated.
25503 (kernel_mod_CFLAGS): Rename to ...
25504 (kernel_img_CFLAGS): ... this.
25505 (kernel_mod_ASFLAGS): Rename to ...
25506 (kernel_img_ASFLAGS): ... this.
25507 (kernel_mod_LDFLAGS): Rename to ...
25508 (kernel_img_LDFLAGS): ... this.
25509 * conf/x86_64-efi.rmk: Likewise.
25510 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
25511 (read_kernel_image): ... this. All users updated.
25512 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
25514 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25516 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
25517 (print_spaces): New function.
25518 (grub_print_ucs4): New function.
25519 (getstringwidth): New function.
25520 (print_message_indented): New function.
25521 (print_message): Gettexttize strings using print_message_indented.
25522 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
25524 (get_entry_number): Gettextize and uses dynamic terminal width.
25525 (notify_booting, notify_fallback, notify_execution_failure):
25527 * normal/menu_entry.c (store_completion): Cleanup the gettextized
25530 (grub_menu_entry_run): Likewise.
25531 * PO/POTFILES: Add normal/menu_entry.c.
25533 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25535 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
25537 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25539 * util/grub-install.in: Install gettext .mo files.
25540 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
25542 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25544 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
25547 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
25549 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
25550 non-firmware-dependant one in realmode.S takes precedence.
25552 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
25554 * commands/halt.c: Replace misc arch-specific headers with
25556 * commands/reboot.c: Likewise.
25557 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
25559 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
25560 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
25561 (kernel_img_SOURCES): ... to here.
25563 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
25564 * include/grub/i386/pc/init.h: Likewise.
25565 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25566 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25568 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
25570 * include/grub/i386/halt.h: Remove.
25571 * include/grub/i386/reboot.h: Likewise.
25573 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
25575 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
25577 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
25578 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
25579 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
25581 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
25582 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25583 (usage): Add missing comma in printf.
25585 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
25587 Use the same reboot approach on i386 coreboot and qemu as we do on
25590 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
25591 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
25592 * kern/i386/reboot.c: Remove.
25593 * include/grub/i386/reboot.h (grub_reboot): Export function.
25594 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
25595 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
25596 0xf000:0xfff0 instead of 0xffff:0x0000.
25597 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
25598 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
25600 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
25602 Fix $srcdir != $objdir build.
25604 * Makefile.in (po/%.po): Rewrite as ...
25605 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
25607 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
25609 Fix GNU/Hurd grub-install crash.
25610 * util/grub-probe.c (probe): Try to access `path' only when it is not
25613 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25615 Correct module naming.
25617 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
25618 (GRUB_MOD_INIT(efi_uga)): ... to this
25619 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
25620 (GRUB_MOD_FINI(efi_uga)): ... to this
25621 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
25622 (GRUB_MOD_INIT(efi_gop)): ... to this
25623 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
25624 (GRUB_MOD_FINI(efi_gop)): ... to this
25626 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
25628 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
25630 (usage): Translate `arg' strings using gettext().
25631 Thanks to Jordi Mallach for the suggestion.
25633 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25635 GOP support. Based on patch from Bean
25636 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
25638 * video/efi_gop.c: New file.
25639 * include/grub/efi/graphics_output.h: Likewise.
25640 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
25641 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
25643 * conf/x86_64-efi.rmk: Likewise.
25645 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25647 Rename efi_fb to efi_uga.
25649 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
25651 (efi_fb_mod_SOURCES): Rename this ...
25652 (efi_uga_mod_SOURCES): ... to this.
25653 (efi_fb_mod_CFLAGS): Rename this ...
25654 (efi_uga_mod_CFLAGS): ... to this.
25655 (efi_fb_mod_LDFLAGS): Rename this ...
25656 (efi_uga_mod_LDFLAGS): ... to this.
25657 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
25659 (efi_fb_mod_SOURCES): Rename this ...
25660 (efi_uga_mod_SOURCES): ... to this.
25661 (efi_fb_mod_CFLAGS): Rename this ...
25662 (efi_uga_mod_CFLAGS): ... to this.
25663 (efi_fb_mod_LDFLAGS): Rename this ...
25664 (efi_uga_mod_LDFLAGS): ... to this.
25665 * video/efi_fb.c: Move this ...
25666 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
25668 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25670 * po/README: New file. Explain our PO file workflow.
25672 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25674 * po/ChangeLog: Remove. Move relevant entries back to ...
25675 * ChangeLog: ... here.
25676 * po/ca.po: Remove (now handled by TLP).
25677 * po/id.po: Likewise.
25678 * po/zh_CN.po: Likewise.
25679 * Makefile.in (LINGUAS): Initialize in a way that supports
25682 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25684 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
25685 reliing on po/LINGUAS.
25686 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
25687 (po/%.po): ... this.
25689 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25691 * util/i386/efi/grub-mkimage.c: Include "progname.h".
25692 (main): Use `program_name' instead of nonexistent `progname'.
25694 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25696 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
25697 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
25699 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
25701 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
25703 * conf/i386-efi.rmk: Likewise.
25704 * conf/i386-ieee1275.rmk: Likewise.
25705 * conf/powerpc-ieee1275.rmk: Likewise.
25706 * conf/sparc64-ieee1275.rmk: Likewise.
25707 * conf/x86_64-efi.rmk: Likewise.
25709 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25711 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
25713 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25715 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
25717 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
25719 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
25720 (grub_mkdevicemap_SOURCES): New variable.
25721 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
25722 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
25723 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
25724 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
25725 (grub_mkdevicemap_SOURCES): Remove.
25726 * conf/i386-efi.rmk: Likewise.
25727 * conf/i386-ieee1275.rmk: Likewise.
25728 * conf/i386-pc.rmk: Likewise.
25729 * conf/powerpc-ieee1275.rmk: Likewise.
25730 * conf/sparc64-ieee1275.rmk: Likewise.
25731 * conf/x86_64-efi.rmk: Likewise.
25732 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
25733 (usage): Fix strings to use `program_name'.
25734 (main): Initialize gettext.
25735 * util/grub-editenv.c: Likewise.
25736 * util/grub-emu.c: Likewise.
25737 * util/grub-fstest.c: Likewise.
25738 * util/grub-mkdevicemap.c: Likewise.
25739 * util/grub-mkfont.c: Likewise.
25740 * util/grub-mkrelpath.c: Likewise.
25741 * util/grub-pe2elf.c: Likewise.
25742 * util/grub-probe.c: Likewise.
25743 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
25744 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
25745 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25747 * util/misc.c: Include `"progname.h"'.
25748 (progname): Remove variable.
25749 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
25751 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
25753 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
25754 printf and print a newline after the menuentry header line.
25755 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
25757 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
25759 autoconf >= 2.60 support $(localedir).
25761 * INSTALL: Note that autoconf 2.60 is required.
25762 * configure.ac (AC_PREREQ): Bump to 2.60.
25763 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
25764 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
25766 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
25768 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
25771 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
25773 * normal/main.c (grub_normal_read_line): Fix off-by-one
25776 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
25778 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
25779 "parser.grub" in grub_command_execute() call.
25781 2009-11-24 Carles Pina i Estany <carles@pina.cat>
25783 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
25784 * conf/i386-efi.rmk: Likewise.
25785 * conf/i386-ieee1275.rmk: Likewise.
25786 * conf/i386-pc.rmk: Likewise.
25787 * conf/powerpc-ieee1275.rmk: Likewise.
25788 * conf/sparc64-ieee1275.rmk: Likewise.
25789 * conf/x86_64-efi.rmk: Likewise.
25790 * gettext/gettex.c: Include <grub/i18n.h>.
25791 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
25793 * include/grub/i18n.h: ... to here
25794 * include/grub/i18n.h: ... to here.
25795 * kern/misc.c: Include <grub/i18n.h>
25796 (grub_gettext_dummy): Move above user.
25798 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25800 * util/Makefile.in (install-local): Convert a `for' into a normal
25803 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
25805 * autogen.sh: Add automake call.
25806 * config.guess: Remove.
25807 * config.sub: Likewise.
25808 * install-sh: Likewise.
25810 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25812 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
25814 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25816 * util/Makefile.in (install-local): Convert a make `$(foreach)'
25817 function to a normal shell `for'.
25819 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25821 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
25823 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25825 * util/grub-mkrelpath.c: New file.
25826 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
25827 (grub_mkrelpath_SOURCES): New variable.
25828 * include/grub/util/misc.h: New function prototype.
25829 * util/misc.c (make_system_path_relative_to_its_root): New function.
25831 * util/grub-mkconfig_lib.in (bindir): New variable.
25832 (grub_mkrelpath): Likewise.
25833 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
25835 * util/probe.c (probe): Make the file path relative to its root.
25836 Change a info message to use the GRUB path. Enable again the
25837 check if we can read the file with GRUB facilities.
25839 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
25842 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25844 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
25847 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25849 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
25852 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25854 * util/getroot.c (grub_util_is_dmraid): New function.
25855 (grub_util_get_dev_abstraction): Treat dmraid and multipath
25856 devices as normal ones, not as LVM.
25858 2009-11-23 Carles Pina i Estany <carles@pina.cat>
25860 * conf/common.rmk: Add grub-gettext_lib target and updates
25861 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
25863 * gettext/gettext.c: New file. (Reads mo files).
25864 * include/grub/file.h (grub_file_pread): New prototype.
25865 * include/grub/i18n.h (_): New prototype.
25866 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
25868 * kern/misc.c (grub_gettext_dummy): New function.
25869 * normal/menu_text.c: Include <grub/i18n.h>.
25870 * normal/menu_text.c (print_timeout): Gettexttize string.
25871 * normal/menu_text.c (print_message): Gettexttize string.
25872 * po/POTFILES: Add `normal/menu_text.c'.
25873 * po/ca.po: Add new translations.
25874 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
25875 gettext module and defines locale_dir and lang in grub.cfg.
25876 * NEWS: Add gettext support.
25878 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25880 * util/hostdisk.c: Include `<grub/i18n.h>'.
25881 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
25882 (make_device_name): Rewrite using asprintf.
25883 (convert_system_partition_to_system_disk): Replace 0 with NULL.
25884 (find_system_device): If a device is not found, generate one just
25885 by reusing the OS path name.
25886 (read_device_map): Make it permissible for device.map not to exist.
25888 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25890 * script/sh/execute.c: Move from here ...
25891 * script/execute.c: ... to here. Update all users.
25892 * script/sh/function.c: Move from here ...
25893 * script/function.c: ... to here. Update all users.
25894 * script/sh/lexer.c: Move from here ...
25895 * script/lexer.c: ... to here. Update all users.
25896 * script/sh/main.c: Move from here ...
25897 * script/main.c: ... to here. Update all users.
25898 * script/sh/parser.y: Move from here ...
25899 * script/parser.y: ... to here. Update all users.
25900 * script/sh/script.c: Move from here ...
25901 * script/script.c: ... to here. Update all users.
25903 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25905 * configure.ac: Detect all `emu' platforms. Define
25906 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
25907 --enable-grub-emu logic. Disable include/grub/machine
25908 symlink on `emu' platforms.
25910 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
25911 * gensymlist.sh.in: Likewise.
25913 * include/grub/i386/coreboot/machine.h: Remove file.
25914 * include/grub/i386/efi/machine.h: Likewise.
25915 * include/grub/i386/ieee1275/machine.h: Likewise.
25916 * include/grub/i386/pc/machine.h: Likewise.
25917 * include/grub/i386/qemu/machine.h: Likewise.
25918 * include/grub/powerpc/ieee1275/machine.h: Likewise.
25919 * include/grub/sparc64/ieee1275/machine.h: Likewise.
25920 * include/grub/x86_64/efi/machine.h: Likewise.
25922 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
25923 * commands/halt.c: Likewise.
25924 * commands/reboot.c: Likewise.
25925 * include/grub/autoefi.h: Likewise.
25926 * include/grub/i386/at_keyboard.h: Likewise.
25927 * include/grub/i386/kernel.h: Likewise.
25928 * include/grub/i386/loader.h: Likewise.
25929 * include/grub/i386/pc/memory.h: Likewise.
25930 * kern/dl.c: Likewise.
25931 * kern/i386/coreboot/init.c: Likewise.
25932 * loader/i386/bsd.c: Likewise.
25933 * loader/i386/linux.c: Likewise.
25934 * loader/multiboot_loader.c: Likewise.
25935 * term/i386/pc/serial.c: Likewise.
25936 * term/usb_keyboard.c: Likewise.
25938 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
25939 `<grub/machine/machine.h>'
25940 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
25941 * util/misc.c: Remove `<grub/machine/machine.h>' and
25942 `<grub/machine/time.h>'.
25944 * Makefile.in (enable_grub_emu): Remove variable.
25945 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
25947 * conf/any-emu.rmk: New file.
25948 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
25949 (grub_emu_init.c): Move from here ...
25950 * conf/any-emu.rmk: ... to here.
25952 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
25953 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
25954 * conf/any-emu.rmk: ... to here.
25956 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25958 * include/grub/parser.h (grub_parser_register): Document need
25959 of `name' parameter.
25960 * normal/main.c (grub_normal_read_line): Simplify prompt string.
25961 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
25964 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25966 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
25968 * include/grub/i18n.h (N_): New macro.
25969 * util/mkisofs/mkisofs.h: Likewise.
25970 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
25972 (usage): Use gettext() to translate help strings when printing them.
25974 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25976 Based on patch from Bean
25977 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
25979 * video/efi_fb.c: New file.
25980 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
25981 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
25983 * conf/x86_64-efi.rmk: Likewise.
25985 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
25987 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
25988 * util/i386/pc/grub-setup.c: Likewise.
25990 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25992 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
25994 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
25995 file_get_storage_info to implement grub_guess_root_device.
25997 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
25999 * Makefile.in (target): Use make's builtin $(shell) function
26000 instead of calling directly $(SHELL) to create the locale directories,
26001 inside the $(foreach) function.
26003 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26005 * util/grub-mkrescue.in: Print an error and usage if output option
26006 has not been given.
26008 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26010 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26011 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26012 root and /boot are on different devices.
26014 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26016 Fix build for srcdir != objdir.
26018 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26019 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26021 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26022 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26023 reference for input.
26025 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26027 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26028 or hardlinking it). Remove -J option, Joliet is not compatible with
26029 multiple source directories.
26031 2009-11-21 Carles Pina i Estany <carles@pina.cat>
26032 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26034 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26035 (process_input_dir): New function. Process an arbitrary input
26037 Misc adjustments to support both "override mode" and system-wide mode.
26039 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26041 * configure.ac (UNIFONT_BDF): Rename to ...
26042 (FONT_SOURCE): ... this. Update all users.
26044 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26046 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26047 to the list of unifont files to look for.
26049 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26051 Patch from Joe Auricchio <jauricchio@gmail.com>
26052 * commands/minicmd.c (grub_mini_cmd_clear): New function.
26053 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
26054 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
26056 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26058 * Makefile.in (install-local): Add a missing backslash.
26060 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26062 * include/grub/x86_64/io.h: New file.
26064 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26066 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
26067 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
26068 Include `"progname.h"'.
26069 (main): Initialize gettext.
26070 * util/i386/pc/grub-setup.c: Gettexttize.
26071 * util/i386/pc/grub-mkimage.c: Likewise.
26073 * Makefile.in (po/*.po): Redefine as ...
26074 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
26076 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
26078 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26080 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
26081 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
26082 (program_name): Remove.
26083 (main): Initialize gettext support.
26084 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
26085 Include `<libintl.h>'.
26088 * util/mkisofs/eltorito.c: Gettexttize.
26089 * util/mkisofs/joliet.c: Likewise.
26090 * util/mkisofs/mkisofs.c: Likewise.
26091 * util/mkisofs/multi.c: Likewise.
26092 * util/mkisofs/rock.c: Likewise.
26093 * util/mkisofs/tree.c: Likewise.
26094 * util/mkisofs/write.c: Likewise.
26096 * po/POTFILES: Update with new files.
26098 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26100 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
26101 * util/mkisofs/iso9660.h: Likewise.
26102 * util/mkisofs/joliet.c: Likewise.
26103 * util/mkisofs/mkisofs.c: Likewise.
26104 * util/mkisofs/mkisofs.h: Likewise.
26105 * util/mkisofs/rock.c: Likewise.
26106 * util/mkisofs/tree.c: Likewise.
26107 * util/mkisofs/write.c: Likewise.
26109 * util/mkisofs/eltorito.c (rcsid): Remove.
26110 * util/mkisofs/hash.c: Likewise.
26111 * util/mkisofs/joliet.c: Likewise.
26112 * util/mkisofs/name.c: Likewise.
26113 * util/mkisofs/rock.c: Likewise.
26114 * util/mkisofs/tree.c: Likewise.
26115 * util/mkisofs/write.c: Likewise.
26117 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26119 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
26120 instead of static allocation.
26121 * util/mkisofs/match.h: Likewise.
26123 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26125 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
26126 and `util/grub.d/10_linux.in'.
26127 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
26128 translatable Shell files.
26130 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26132 * Makefile.in ($(srcdir)/aclocal.m4): New target.
26134 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26136 * INSTALL: Document Automake is needed for bootstrap.
26137 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
26138 * util/grub.d/10_kfreebsd.in (bindir): New variable.
26139 Add gettext initialization.
26140 (kfreebsd_entry): Make menuentry output translatable.
26142 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26144 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
26145 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
26146 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
26147 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
26148 (LINGUAS): Auto-generate using `po/LINGUAS'.
26149 * po/LINGUAS: New file.
26151 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26153 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
26155 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
26156 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
26157 bindtextdomain() calls for gettext initialization.
26159 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26161 * gnulib/progname.c: New file (imported from Gnulib).
26162 * gnulib/progname.h: Likewise.
26163 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26164 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
26165 (usage): Replace `progname' with `program_name'.
26166 (main): Use set_program_name() for program name initialization.
26168 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26170 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
26172 * Makefile.in (CPPFLAGS): ... to here.
26174 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26176 * aclocal.m4: Move from here ...
26177 * acinclude.m4: ... to here.
26178 * autogen.sh: Add call to `aclocal'.
26179 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
26181 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26183 * Makefile.in (CLEANFILES): Add `po/*.mo'.
26184 (LINGUAS): New variable.
26185 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
26186 (install-local): Install MO files.
26187 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
26188 * include/grub/i18n.h: New file.
26189 * po/POTFILES: New file.
26190 * po/ca.po: New file.
26191 * util/grub.d/10_linux.in (bindir): New variable.
26192 Add gettext initialization.
26193 (linux_entry): Make menuentry output translatable.
26194 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
26195 (usage): Make --help output translatable.
26196 (main): Initialize gettext.
26198 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26200 * import_gcry.py: New file (written by Vladimir with minor
26202 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
26204 * INSTALL: Document that Python is required for bootstrap.
26206 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26208 Import ciphers from libgcrypt 1.4.4.
26210 * lib/libgcrypt/cipher/ChangeLog
26211 * lib/libgcrypt/cipher/ac.c
26212 * lib/libgcrypt/cipher/arcfour.c
26213 * lib/libgcrypt/cipher/bithelp.h
26214 * lib/libgcrypt/cipher/blowfish.c
26215 * lib/libgcrypt/cipher/camellia-glue.c
26216 * lib/libgcrypt/cipher/camellia.c
26217 * lib/libgcrypt/cipher/camellia.h
26218 * lib/libgcrypt/cipher/cast5.c
26219 * lib/libgcrypt/cipher/cipher.c
26220 * lib/libgcrypt/cipher/crc.c
26221 * lib/libgcrypt/cipher/des.c
26222 * lib/libgcrypt/cipher/dsa.c
26223 * lib/libgcrypt/cipher/ecc.c
26224 * lib/libgcrypt/cipher/elgamal.c
26225 * lib/libgcrypt/cipher/hash-common.c
26226 * lib/libgcrypt/cipher/hash-common.h
26227 * lib/libgcrypt/cipher/hmac-tests.c
26228 * lib/libgcrypt/cipher/md.c
26229 * lib/libgcrypt/cipher/md4.c
26230 * lib/libgcrypt/cipher/md5.c
26231 * lib/libgcrypt/cipher/primegen.c
26232 * lib/libgcrypt/cipher/pubkey.c
26233 * lib/libgcrypt/cipher/rfc2268.c
26234 * lib/libgcrypt/cipher/rijndael-tables.h
26235 * lib/libgcrypt/cipher/rijndael.c
26236 * lib/libgcrypt/cipher/rmd.h
26237 * lib/libgcrypt/cipher/rmd160.c
26238 * lib/libgcrypt/cipher/rsa.c
26239 * lib/libgcrypt/cipher/seed.c
26240 * lib/libgcrypt/cipher/serpent.c
26241 * lib/libgcrypt/cipher/sha1.c
26242 * lib/libgcrypt/cipher/sha256.c
26243 * lib/libgcrypt/cipher/sha512.c
26244 * lib/libgcrypt/cipher/tiger.c
26245 * lib/libgcrypt/cipher/twofish.c
26246 * lib/libgcrypt/cipher/whirlpool.c
26248 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26250 Fix build for systems without error().
26252 * gnulib/error.c: New file (imported from Gnulib).
26253 * gnulib/error.h: Likewise.
26254 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
26255 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
26256 (this variable is now used by error()).
26258 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26260 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
26261 instead of relying that char is signed.
26263 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
26265 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
26266 blocksize different from specified.
26267 (grub_pxefs_read): Likewise.
26269 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
26271 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
26273 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
26274 (grub_ata_readwrite): Likewise. Update 2 format strings.
26275 (grub_atapi_read): Likewise.
26277 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
26278 * conf/i386.rmk (pkglib_MODULES): ... to here ...
26279 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
26280 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
26281 (ata_mod_LDFLAGS): Move from here ...
26282 * conf/i386.rmk: ... to here ...
26283 * conf/x86_64-efi.rmk: ... and here.
26284 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
26285 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
26287 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
26289 Relicense multiboot.h, with RMS' blessing.
26291 * include/multiboot.h: Change to X11 license.
26293 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
26295 Support --version in grub-mkisofs.
26297 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
26298 (OPTION_VERSION): New macro.
26299 (ld_options): Recognize --version.
26300 (usage): Move `program_name' from here ...
26301 (program_name): ... to here. Add `static' qualifier.
26302 (main): Recognize `OPTION_VERSION'.
26304 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
26306 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
26307 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
26309 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26311 Fix help2man generation for mkisofs.
26313 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
26314 (usage): Send output to stdout (rather than stderr).
26316 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
26318 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
26319 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26320 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
26321 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
26322 (bin_SCRIPTS): Add `grub-mkfloppy'.
26323 (grub_mkfloppy_SOURCES): New variable.
26325 * util/grub-mkrescue.in: New file.
26326 * util/i386/pc/grub-mkfloppy.in: New file.
26328 * util/i386/coreboot/grub-mkrescue.in: Remove.
26329 * util/i386/pc/grub-mkrescue.in: Remove.
26331 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26333 * include/grub/multiboot.h (struct grub_multiboot_header): Move
26335 * include/multiboot.h (struct multiboot_header): ... to here. Update
26337 * include/grub/multiboot.h (struct grub_multiboot_info): Move
26339 * include/multiboot.h (struct multiboot_info): ... to here. Update
26341 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
26343 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
26345 * include/grub/multiboot.h (struct grub_mod_list): Move
26347 * include/multiboot.h (struct multiboot_mod_list): ... to here.
26350 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26352 * include/multiboot2.h (multiboot_word): Rename from this ...
26353 (multiboot2_word): ... to this. Update all users.
26354 (multiboot_header): Rename from this ...
26355 (multiboot2_header): ... to this. Update all users.
26356 (multiboot_tag_header): Rename from this ...
26357 (multiboot2_tag_header): ... to this. Update all users.
26358 (multiboot_tag_start): Rename from this ...
26359 (multiboot2_tag_start): ... to this. Update all users.
26360 (multiboot_tag_name): Rename from this ...
26361 (multiboot2_tag_name): ... to this. Update all users.
26362 (multiboot_tag_module): Rename from this ...
26363 (multiboot2_tag_module): ... to this. Update all users.
26364 (multiboot_tag_memory): Rename from this ...
26365 (multiboot2_tag_memory): ... to this. Update all users.
26366 (multiboot_tag_unused): Rename from this ...
26367 (multiboot2_tag_unused): ... to this. Update all users.
26368 (multiboot_tag_end): Rename from this ...
26369 (multiboot2_tag_end): ... to this. Update all users.
26371 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26373 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
26374 this platform we should support Multiboot1 first.
26376 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26377 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
26378 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
26380 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26382 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
26383 of write calls (converting them to fwrite() if they aren't already).
26384 (get_torito_desc): Likewise.
26385 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
26387 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26389 * util/i386/pc/grub-install.in: Move from here ...
26390 * util/grub-install.in: ... to here. Update all users.
26392 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
26394 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
26396 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26398 Support for El Torito without floppy emulation.
26400 * util/mkisofs/eltorito.c: Include `<errno.h>'.
26401 (init_boot_catalog): Improve error handling.
26402 (get_torito_desc): Don't use floppy emulation unless requested by
26403 user. Patch boot information table when requested via
26404 `-boot-info-table'.
26405 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
26406 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
26407 (use_boot_info_table): New variables.
26408 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
26409 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
26410 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
26411 `--eltorito-emul-floppy'.
26412 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
26413 and `OPTION_ELTORITO_EMUL_FLOPPY'.
26414 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
26415 (use_boot_info_table, get_731): New prototypes.
26416 * util/mkisofs/write.c (get_731): New function.
26418 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
26420 Fix the generation of the man page.
26422 * util/pc/i386/grub-install.in: Source
26423 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26425 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26427 Large file support for grub-mkisofs.
26429 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
26430 * util/mkisofs/mkisofs.c (next_extent, last_extent)
26431 (session_start): Upgrade type to `uint64_t'. Update all users.
26432 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
26433 (struct directory_entry): Upgrade type of `starting_block' and
26434 `size' to `uint64_t'. Update all users.
26435 (struct deferred): Remove unused structure.
26436 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
26438 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
26439 file is larger than `UINT32_MAX'.
26440 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
26441 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
26443 (struct deferred_write): Upgrade type of `extent' and `size' to
26444 `uint64_t'. Update all users.
26445 (last_extent_written): Upgrade type to `uint64_t'. Update all
26447 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
26448 Update all users. Upgrade type of `remain' to `int64_t' and
26449 `use' to `size_t'. Use error() to handle fread() errors.
26450 (write_files): Rely on write_one_file() rather than calling
26451 xfwrite() directly.
26453 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
26455 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
26457 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26459 * util/mkisofs/fnmatch.c: Remove.
26460 * util/mkisofs/getopt1.c: Likewise.
26461 * util/mkisofs/getopt.c: Likewise.
26462 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
26463 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
26464 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
26465 `gnulib/getopt1.c' and `gnulib/getopt.c'.
26466 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
26468 * configure.ac: Detect `mingw32msvc' host_os.
26469 Check for lstat(), getuid() and getgid().
26471 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
26472 instances of `u_char' with `uint8_t'.
26474 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
26475 [!HAVE_GETUID] (getuid): New function (stub).
26476 [!HAVE_GETGID] (getgid): Likewise.
26477 [!HAVE_LSTAT] (lstat): Likewise.
26478 [!S_IROTH] (S_IROTH): New macro (dummy).
26479 [!S_IRGRP] (S_IRGRP): Likewise.
26481 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26483 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
26484 conditional expression).
26486 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26488 Import from Gnulib.
26490 * gnulib/fnmatch.c: New file.
26491 * gnulib/fnmatch.h: Likewise.
26492 * gnulib/fnmatch_loop.c: Likewise.
26493 * gnulib/getopt.c: Likewise.
26494 * gnulib/getopt.h: Likewise.
26495 * gnulib/getopt1.c: Likewise.
26496 * gnulib/getopt_int.h: Likewise.
26497 * gnulib/gettext.h: Likewise.
26499 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26501 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
26502 * normal/handler.c (read_handler_list): Likewise.
26504 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26508 * kern/command.c (grub_register_command_prio): Use
26509 grub_zalloc() instead of explicitly zeroing data.
26510 * kern/list.c: Include `<grub/mm.h>'.
26511 (grub_named_list_find): Replace `0' with `NULL'.
26512 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
26513 (fs_module_list): Change type to `grub_named_list_t'. Update all
26515 * normal/dyncmd.c (read_command_list): Add space between function
26516 call and parenthesis.
26517 * normal/handler.c (read_handler_list): Likewise.
26519 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26521 * normal/auth.c (punishment_delay): Moved from here ...
26522 (grub_auth_strcmp): ... to here (inside function).
26524 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26526 * include/grub/list.h (struct grub_named_list): Remove `const'
26527 qualifier from `name'.
26528 (struct grub_prio_list): Likewise.
26530 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26532 * normal/auth.c: Include `<grub/time.h>'.
26533 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
26535 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26537 * normal/auth.c (punishment_delay): New variable.
26538 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
26539 (grub_auth_check_authentication): Punish failed login attempts with
26540 an incremental (2^N) delay.
26542 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26544 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
26545 path with $(srcdir).
26547 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
26549 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
26551 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26553 * util/i386/coreboot/grub-mkrescue.in: New file.
26554 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
26557 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
26558 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
26559 * configure.ac: Add header and function checks to satisfy grub-mkisofs
26561 * util/mkisofs/defaults.h: New file.
26562 * util/mkisofs/eltorito.c: Likewise.
26563 * util/mkisofs/exclude.h: Likewise.
26564 * util/mkisofs/fnmatch.c: Likewise.
26565 * util/mkisofs/getopt.c: Likewise.
26566 * util/mkisofs/getopt1.c: Likewise.
26567 * util/mkisofs/hash.c: Likewise.
26568 * util/mkisofs/include/fctldefs.h: Likewise.
26569 * util/mkisofs/include/mconfig.h: Likewise.
26570 * util/mkisofs/include/prototyp.h: Likewise.
26571 * util/mkisofs/include/statdefs.h: Likewise.
26572 * util/mkisofs/iso9660.h: Likewise.
26573 * util/mkisofs/joliet.c: Likewise.
26574 * util/mkisofs/match.c: Likewise.
26575 * util/mkisofs/match.h: Likewise.
26576 * util/mkisofs/mkisofs.c: Likewise.
26577 * util/mkisofs/mkisofs.h: Likewise.
26578 * util/mkisofs/multi.c: Likewise.
26579 * util/mkisofs/name.c: Likewise.
26580 * util/mkisofs/rock.c: Likewise.
26581 * util/mkisofs/tree.c: Likewise.
26582 * util/mkisofs/write.c: Likewise.
26584 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
26586 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
26589 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26591 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
26592 `grub-mkimage' (and use $0 when possible).
26594 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26596 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
26597 error message for excessively large memory map.
26599 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26601 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
26604 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26606 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
26607 message for coreboot users.
26609 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
26611 Fix build with GNU gold.
26613 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
26614 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
26615 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
26617 * aclocal.m4: Likewise.
26619 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
26621 * configure.ac (AC_PREREQ): Bump to 2.59d.
26622 * INSTALL: Make it more clear when Autoconf and Ruby are
26623 needed and when to run `./autogen.sh'.
26625 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26627 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
26630 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26632 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
26634 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26636 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
26637 giving it to GNU Mach.
26639 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26641 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
26642 GNU partition number to get internal GRUB partition number.
26644 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26646 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
26647 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
26649 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
26651 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
26652 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
26655 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
26657 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
26659 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
26663 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
26664 `-isystem=$(srcdir)/include'.
26666 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
26668 * util/i386/pc/grub-install.in: Remove hint that device.map should be
26669 checked (grub-install doesn't currently rely on it).
26671 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
26675 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
26676 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
26677 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
26678 * conf/i386-ieee1275.rmk: Likewise.
26679 * conf/i386-pc.rmk: Likewise.
26680 * conf/powerpc-ieee1275.rmk: Likewise.
26681 * conf/sparc64-ieee1275.rmk: Likewise.
26682 * conf/x86_64-efi.rmk: Likewise.
26684 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26686 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
26688 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26690 * include/grub/misc.h: Stop checking for APPLE_CC.
26692 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26694 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
26695 doesn't cause an infinite call loop.
26697 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
26699 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
26702 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26704 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
26706 * Makefile.in: Likewise.
26708 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26710 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
26712 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26714 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
26716 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26718 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
26720 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26722 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
26724 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
26726 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26728 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
26729 in $(MAKEINFO) invocation. This makes it clear in output that
26730 errors are being ignored.
26732 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26734 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
26736 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
26737 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
26738 * conf/i386-ieee1275.rmk: Likewise.
26739 * conf/i386-pc.rmk: Likewise.
26740 * conf/powerpc-ieee1275.rmk: Likewise.
26741 * conf/sparc64-ieee1275.rmk: Likewise.
26742 * conf/x86_64-efi.rmk: Likewise.
26744 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
26746 * util/grub-editenv.c (main): If only a command is given, use
26747 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
26748 (usage): FILENAME is now optional and has a default.
26750 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
26752 Improve grub-mkconfig performance when there are several menu
26753 entries on a single filesystem.
26755 * util/grub.d/10_linux.in (linux_entry): Cache the output of
26756 prepare_grub_to_access_device.
26757 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26758 * util/grub.d/30_os-prober.in: Likewise.
26760 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26762 * util/grub.d/10_freebsd.in: Remove.
26763 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
26764 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
26766 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26768 * docs/grub.cfg: Fix example usage of *BSD loaders.
26770 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26772 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
26773 grub_util_error() call.
26775 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26777 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
26778 `reserved_first_sector' member.
26779 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
26780 `reserved_first_sector' to 1.
26781 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
26782 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
26783 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
26784 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
26785 filesystems which begin at first sector.
26786 (options): New option --skip-fs-probe.
26787 (main): Handle --skip-fs-probe and pass it to setup().
26789 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26791 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
26792 (memset): Fix function prototype.
26794 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26795 2009-10-25 Vasily Averin <vvs@parallels.com>
26797 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
26798 `dirent.direntlen == 0'.
26800 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26802 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
26804 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
26806 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26808 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
26809 `__trampoline_setup' and `__ucmpdi2'.
26810 * include/grub/powerpc/libgcc.h: Only export symbols for functions
26811 that libgcc provides.
26813 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26815 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
26816 * include/grub/sparc64/libgcc.h (memset): Likewise.
26817 * include/grub/misc.h (memset, memcmp): New function prototypes.
26819 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26821 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
26823 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
26825 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26827 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
26828 * docs/grub.cfg: Compensate for recent change in multiboot
26829 loader (since 2009-08-14 it won't pass filename to payload).
26830 * util/grub.d/10_hurd.in: Likewise.
26832 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
26834 * config.guess: Update to latest version from config git
26836 * config.sub: Likewise.
26838 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
26840 Fix build on sparc64.
26842 * configure.ac: Perform checks for libgcc symbols before
26843 adding `-nostdlib' to LDFLAGS.
26845 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
26847 Let user specify OpenBSD root device.
26849 * loader/i386/bsd.c (openbsd_root): New variable.
26850 (openbsd_opts): New option 'root'.
26851 (OPENBSD_ROOT_ARG): New macro.
26852 (grub_openbsd_boot): Use 'openbsd_root'.
26853 (grub_cmd_openbsd): Fill 'openbsd_root'.
26855 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
26857 * NEWS: Misc adjustments.
26859 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
26861 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
26863 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
26865 * configure.ac: Bump version to 1.97.
26867 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
26869 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
26870 -mno-3dnow on x86 architectures. Some toolchains enable these
26871 features by default, but they rely on registers that aren't enabled
26872 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
26874 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
26876 Make entry text a bit more readable.
26878 * util/grub.d/10_linux.in: Add `with' before `Linux'.
26880 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26882 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
26884 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26886 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
26889 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26891 * configure.ac: Add missing dollar.
26893 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26895 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
26897 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
26898 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
26900 * include/grub/sparc64/libgcc.h: Likewise. Use
26901 preprocessor conditionals.
26903 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
26905 * conf/common.rmk (grub-dumpbios): Remove rule.
26906 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
26907 * util/grub-dumpbios.in: Remove file.
26909 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
26911 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
26912 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
26914 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
26915 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
26918 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
26919 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
26920 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
26921 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
26924 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
26926 * term/tparm.c: Switch to GPLv3.
26928 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
26930 * include/grub/i386/cpuid.h: Add header protection.
26932 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
26934 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
26936 * include/grub/i386/cpuid.h: New file.
26937 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
26938 (has_longmode): Rename to ...
26939 (grub_cpuid_has_longmode): ... this. Update all users. Remove
26940 `static' attribute.
26941 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
26942 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
26943 on a CPU that doesn't implement AMD64 instruction set.
26945 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26947 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
26948 that version.texi is rebuilt on version number changes.
26950 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26952 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
26955 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26957 * util/i386/pc/grub-install.in: Source
26958 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
26959 that the --grub-probe option will work.
26960 * util/sparc64/ieee1275/grub-install.in: Likewise.
26962 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
26964 * configure.ac: Bump version to 1.97~beta4.
26966 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
26968 Resync grub-mkdevicemap in x86_64-efi.
26970 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
26971 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
26972 `util/devicemap.c'.
26974 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
26976 * util/grub-editenv.c (create_envblk_file): Write new block with a
26977 .new suffix and then rename it into place, to ensure atomic
26980 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
26982 Do not automatically install headers.
26984 * Makefile.in (include_DATA): Remove. Update all users.
26986 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
26988 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
26989 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
26991 * util/osdetect.lua: Remove.
26992 * script/lua/lauxlib.c: Likewise.
26993 * script/lua/ldebug.c: Likewise.
26994 * script/lua/grub_main.c: Likewise.
26995 * script/lua/lauxlib.h: Likewise.
26996 * script/lua/ldebug.h: Likewise.
26997 * script/lua/ltablib.c: Likewise.
26998 * script/lua/liolib.c: Likewise.
26999 * script/lua/lstrlib.c: Likewise.
27000 * script/lua/lualib.h: Likewise.
27001 * script/lua/ldo.c: Likewise.
27002 * script/lua/ldump.c: Likewise.
27003 * script/lua/ldo.h: Likewise.
27004 * script/lua/loslib.c: Likewise.
27005 * script/lua/lundump.c: Likewise.
27006 * script/lua/grub_lib.c: Likewise.
27007 * script/lua/ldblib.c: Likewise.
27008 * script/lua/lundump.h: Likewise.
27009 * script/lua/lmem.c: Likewise.
27010 * script/lua/grub_lib.h: Likewise.
27011 * script/lua/lmathlib.c: Likewise.
27012 * script/lua/lstate.c: Likewise.
27013 * script/lua/ltm.c: Likewise.
27014 * script/lua/lvm.c: Likewise.
27015 * script/lua/lmem.h: Likewise.
27016 * script/lua/lstate.h: Likewise.
27017 * script/lua/ltm.h: Likewise.
27018 * script/lua/ltable.c: Likewise.
27019 * script/lua/lvm.h: Likewise.
27020 * script/lua/llex.c: Likewise.
27021 * script/lua/lgc.c: Likewise.
27022 * script/lua/grub_lua.h: Likewise.
27023 * script/lua/loadlib.c: Likewise.
27024 * script/lua/lfunc.c: Likewise.
27025 * script/lua/lopcodes.c: Likewise.
27026 * script/lua/lparser.c: Likewise.
27027 * script/lua/ltable.h: Likewise.
27028 * script/lua/llex.h: Likewise.
27029 * script/lua/lgc.h: Likewise.
27030 * script/lua/lfunc.h: Likewise.
27031 * script/lua/lbaselib.c: Likewise.
27032 * script/lua/lopcodes.h: Likewise.
27033 * script/lua/lparser.h: Likewise.
27034 * script/lua/lzio.c: Likewise.
27035 * script/lua/linit.c: Likewise.
27036 * script/lua/lobject.c: Likewise.
27037 * script/lua/llimits.h: Likewise.
27038 * script/lua/lstring.c: Likewise.
27039 * script/lua/lzio.h: Likewise.
27040 * script/lua/lapi.c: Likewise.
27041 * script/lua/lcode.c: Likewise.
27042 * script/lua/lua.h: Likewise.
27043 * script/lua/lobject.h: Likewise.
27044 * script/lua/lstring.h: Likewise.
27045 * script/lua/lapi.h: Likewise.
27046 * script/lua/lcode.h: Likewise.
27047 * script/lua/luaconf.h: Likewise.
27049 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
27051 * docs/grub.texi (Command-line and menu entry commands): Document
27052 date and echo commands.
27054 2009-09-24 Pavel Roskin <proski@gnu.org>
27056 * include/grub/kernel.h (struct grub_module_header): Remove
27057 `grub_module_header_types'. Make `type' unsigned. Make `size'
27058 32-bit on all platforms.
27059 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
27060 8-bit field. Use grub_host_to_target32() for `size'.
27061 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
27062 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
27063 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
27065 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27067 Fix "lost keypress" bug in at_keyboard.
27069 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
27070 Checks for readyness of input buffer (without flushing it).
27071 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
27072 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
27074 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27076 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
27077 size check within GRUB_MACHINE_PCBIOS section.
27079 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27081 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
27083 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
27084 KEYBOARD_ISREADY check.
27085 (grub_at_keyboard_checkkey): Rename to ...
27086 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
27087 Remove gratuitous cast.
27089 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
27091 * configure.ac: Call AC_PROG_MKDIR_P.
27092 * Makefile.in (docs/stamp-vti): Create docs directory. Create
27093 version.texi in $(builddir) rather than $(srcdir).
27094 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
27095 to makeinfo's @include search path.
27097 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27099 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
27101 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
27103 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
27106 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
27108 Build info documentation. Some code borrowed from Automake.
27110 * configure.ac: Check for makeinfo.
27111 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
27112 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
27114 (MOSTLYCLEANFILES): Add vti.tmp.
27115 (docs/version.texi, docs/stamp-vti): Update automatically.
27116 (docs/grub.info): Build info documentation. Use --force and ignore
27118 (all-local): Add $(INFOS).
27119 (install-local): Install info files.
27120 (uninstall): Uninstall info files.
27121 * docs/version.texi: Remove from revision control. This file is
27122 automatically generated on build now.
27123 * gendistlist.sh: Add `*.info'.
27125 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27127 * kern/term.c: Fix indentation.
27129 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
27131 * util/hostdisk.c: Fix a comment.
27133 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
27135 Fix regression introduced in r2539.
27137 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
27140 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
27142 * util/grub.d/30_os-prober.in: Don't throw away stderr from
27143 os-prober. Under normal operation, it does not print anything to
27144 stderr; if it does, we need to debug it, and throwing away stderr
27145 makes that excessively difficult.
27147 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
27149 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
27151 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27153 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
27154 AC_LANG_PROGRAM from autoconf.
27155 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
27156 prototypes (fixes warning).
27158 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
27159 `--disable-werror' was used.
27161 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27163 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
27164 uninitialized `lastaddr'.
27166 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
27168 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
27170 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27172 * commands/test.c (get_fileinfo): Return immediately if
27173 grub_fs_probe fails.
27175 2009-09-14 José Martínez <xosemp@gmail.com>
27177 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
27179 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
27181 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
27184 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
27186 * configure.ac: Remove --enable-grub-pe2elf. Only build
27187 grub-pe2elf when needed by the build system itself.
27188 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
27190 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27192 * configure.ac: Bump version to 1.97~beta3.
27193 * docs/version.texi: Likewise.
27195 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27197 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
27198 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
27200 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
27201 (grub_linux_setup_video): ... to here (with some adjustments).
27203 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
27205 Fix memory corruption issue (spotted by Colin Watson).
27207 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
27208 causing returned size to be stored in an incorrect memory location.
27209 Fix use of uninitialized value when storing the returned size.
27211 2009-09-12 Yves Blusseau <blusseau@zetam.org>
27213 Change clean rules to properly remove files
27215 * genmk.rb: add new clean rules
27216 * Makefile.in (clean): add the new targets
27217 (mostlyclean): likewise
27219 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27221 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
27223 * fs/ntfs.c (init_file): Understand 64-bit sizes for
27224 non-resident files.
27226 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
27228 * configure.ac: Don't look for help2man when cross-compiling. Fixes
27229 part of bug #27349.
27231 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27233 * util/grub-mkconfig.in: Make the created config mode 400 and
27234 print a warning if it fails.
27236 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
27238 * util/grub.d/40_custom.in: Ask user to type custom entries below
27239 comment, rather than below 'exec tail' line.
27241 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27243 * util/grub.d/40_custom.in: Make sure that the explanatory text is
27244 visible in grub.cfg.
27246 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
27248 * util/grub.d/40_custom.in: Make it a little clearer how to use this
27251 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
27253 * docs/grub.cfg: Add an example menu entry for memtest86+.
27255 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
27257 * config.guess: Update to latest version from config git.
27258 * config.sub: Likewise.
27260 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
27262 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
27263 unknown-command case. Fixes bug #27320.
27265 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
27267 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
27268 `help' if the command exists.
27270 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
27272 * INSTALL: Require GCC 4.1.3 or later.
27274 2009-09-06 Yves Blusseau <blusseau@zetam.org>
27276 * Makefile.in (RMKFILES): add i386-qemu.rmk
27277 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
27278 $(srcdir)/stamp-h.in
27280 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
27282 * util/grub-probe.c (probe): Comment out buggy codepath, which
27283 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
27284 should be re-enabled after 1.97.
27286 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
27288 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
27291 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
27293 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
27294 unnecessary calls to grub_error.
27296 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
27298 * NEWS: Mention `keystatus' and Unicode fonts.
27300 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
27302 * configure.ac: Bump version to 1.97~beta2.
27303 * docs/version.texi: Likewise.
27305 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27307 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
27308 containing unwind information in some cases where it previously did
27309 not. Use -fno-dwarf2-cfi-asm if available to restore the old
27310 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
27313 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
27315 Embedding loadenv module into grub-emu
27317 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
27319 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
27320 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
27321 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
27322 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
27323 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
27324 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
27326 2009-09-03 Magnus Granberg <zorry@ume.nu>
27328 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
27329 include -fPIE in the default specs.
27330 * configure.ac: Check if pie_possible is yes and add -fno-PIE
27333 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
27335 * INSTALL: Note that GNU Bison 2.3 or later is required.
27337 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27339 * kern/i386/pc/startup.S: Fix typo.
27341 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
27343 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
27346 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27348 * docs/grub.texi (Naming convention): Describe one-based partition
27350 (Device syntax): Likewise.
27351 (File name syntax): Likewise.
27352 (Block list syntax): Likewise.
27353 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
27355 (File name syntax): Likewise.
27356 (Command-line and menu entry commands): Document acpi, blocklist,
27357 crc, export, insmod, keystatus, ls, set, and unset commands.
27359 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27361 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
27362 to avoid implying that only one of --shift, --ctrl, or --alt may be
27365 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27367 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
27368 rather than comparing against S_IFREG, which will almost never work.
27370 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
27372 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
27373 (write_blocklists): Likewise.
27375 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
27377 * script/lua/grub_lua.h (fputs): Supply a format string as the first
27378 argument to grub_printf.
27380 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
27382 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
27385 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27387 * kern/file.c (grub_file_read): Spelling fix
27389 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27391 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
27392 loading of headers in some cases.
27394 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
27396 * configure.ac: Bump version to 1.97~beta1.
27397 * docs/version.texi: Likewise.
27399 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
27401 * include/grub/i386/xnu.h: Add license header.
27402 include grub/err.h explicitly.
27404 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27406 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
27407 to `ufs' in the vfs.root.mountfrom kernel parameter.
27409 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27411 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
27413 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
27414 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
27416 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
27417 `ARRAY_SIZE' macro.
27419 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27421 * kern/file.c (grub_file_read): Check offset.
27422 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
27423 * fs/jfs.c (grub_jfs_read_file): Likewise.
27424 * fs/ntfs.c (grub_ntfs_read): Likewise.
27425 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
27426 * fs/minix.c (grub_minix_read_file): Correct offset check.
27427 * fs/ufs.c (grub_ufs_read_file): Likewise.
27429 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27431 * term/i386/pc/console.c (bios_data_area): Cast
27432 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
27434 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27436 1-bit optimised blitters.
27438 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
27440 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27441 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27442 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27443 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27444 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27445 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27446 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
27448 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27449 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27450 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27451 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27452 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27453 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27454 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
27456 * video/video.c (grub_video_get_blit_format): Return
27457 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
27459 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27461 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
27462 the first argument to grub_printf.
27464 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27465 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
27467 Add `getkeystatus' terminal method. Add a new `keystatus' command
27470 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
27471 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
27472 modifier key bitmasks.
27473 (struct grub_term_input): Add `getkeystatus' member.
27474 (grub_getkeystatus): Add prototype.
27475 * kern/term.c (grub_getkeystatus): New function.
27477 * include/grub/i386/pc/memory.h
27478 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
27479 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
27481 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
27482 (grub_console_term_input): Set `getkeystatus' member.
27483 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
27485 (grub_usb_keyboard_getreport): Likewise.
27486 (grub_usb_keyboard_checkkey): Likewise.
27487 (grub_usb_keyboard_getkeystatus): New function.
27488 (grub_usb_keyboard_term): Set `getkeystatus' member.
27490 * commands/keystatus.c: New file.
27491 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
27492 (keystatus_mod_SOURCES): New variable.
27493 (keystatus_mod_CFLAGS): Likewise.
27494 (keystatus_mod_LDFLAGS): Likewise.
27495 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
27496 commands/keystatus.c.
27497 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27498 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27499 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27500 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27501 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27502 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27504 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27506 Split befs.mod and afs.mod into *_be.mod and *.mod
27508 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
27509 (grub_fstest_SOURCES): Likewise.
27510 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
27511 (afs_be_mod_SOURCES): New variable.
27512 (afs_be_mod_CFLAGS): Likewise.
27513 (afs_be_mod_LDFLAGS): Likewise.
27514 (befs_be_mod_SOURCES): Likewise.
27515 (befs_be_mod_CFLAGS): Likewise.
27516 (befs_be_mod_LDFLAGS): Likewise.
27517 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
27518 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27519 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27520 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
27521 (grub_emu_SOURCES): Likewise.
27522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27523 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27524 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27525 * fs/afs_be.c: New file.
27526 * fs/befs_be.c: New file.
27527 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
27528 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
27529 (U16): Replaced with ...
27530 (grub_afs_to_cpu16): ...this. All users updated.
27531 (U32): Replaced with ...
27532 (grub_afs_to_cpu32): ...this. All users updated.
27533 (U64): Replaced with ...
27534 (grub_afs_to_cpu64): ...this. All users updated.
27535 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
27536 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
27537 (grub_afs_validate_sblock): Check only one endianness.
27538 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27539 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27540 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27541 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27542 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27543 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27544 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27545 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27547 2009-08-26 Bean <bean123ch@gmail.com>
27549 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
27551 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
27552 (grub_xfs_inode_block): Change return type to grub_uint64_t.
27553 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
27555 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27557 NetBSD memory map support.
27559 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
27560 (grub_netbsd_btinfo_mmap_header): New structure.
27561 (grub_netbsd_btinfo_mmap_entry): Likewise.
27562 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
27564 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27566 Enable bsd.mod on coreboot.
27568 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
27569 (bsd_mod_SOURCES): New variable.
27570 (bsd_mod_CFLAGS): Likewise.
27571 (bsd_mod_LDFLAGS): Likewise.
27572 (bsd_mod_ASFLAGS): Likewise.
27573 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
27574 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
27576 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27578 Cleanup NetBSD root support.
27580 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
27581 grub_bsd_get_device.
27584 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
27586 * util/grub.d/00_header.in: Move check for the video backend of
27587 gfxterm from here ...
27588 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
27589 a suitable video backend.
27591 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27593 Fix breakage in grub-setup.
27595 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
27596 "msdos_partition_map".
27598 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27600 Fix breakage in normal/auth.c.
27602 * normal/auth.c (grub_iswordseparator): New function.
27604 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27606 Authentication support.
27608 * commands/password.c: New file.
27609 * conf/common.rmk (pkglib_MODULES): Add password.mod.
27610 (password_mod_SOURCES): New variable.
27611 (password_mod_CFLAGS): Likewise.
27612 (password_mod_LDFLAGS): Likewise.
27613 (normal_mod_SOURCES): Add normal/auth.c.
27614 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
27616 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27617 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27618 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27620 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27621 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27622 * include/grub/auth.h: New file.
27623 * include/grub/err.h (grub_err_t): New enum value
27624 GRUB_ERR_ACCESS_DENIED.
27625 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
27627 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
27628 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
27630 * normal/auth.c: New file.
27631 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
27632 (grub_cmdline_run): Don't allow to go to command line without
27634 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
27635 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
27636 menuentry without superuser rights.
27637 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
27638 user isn't a superuser.
27640 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27642 Save space by inlining misc.c functions.
27644 * kern/misc.c (grub_iswordseparator): Made static.
27645 * kern/misc.c (grub_strcat): Moved from here ...
27646 * include/grub/misc.h (grub_strcat): ... here. Inlined.
27647 * kern/misc.c (grub_strncat): Moved from here ...
27648 * include/grub/misc.h (grub_strncat): ... here. Inlined.
27649 * kern/misc.c (grub_strcasecmp): Moved from here ...
27650 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
27651 * kern/misc.c (grub_strncasecmp): Moved from here ...
27652 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
27653 * kern/misc.c (grub_isalpha): Moved from here ...
27654 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
27655 * kern/misc.c (grub_isdigit): Moved from here ...
27656 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
27657 * kern/misc.c (grub_isgraph): Moved from here ...
27658 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
27659 * kern/misc.c (grub_tolower): Moved from here ...
27660 * include/grub/misc.h (grub_tolower): ... here. Inlined.
27662 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27664 * script/sh/function.c (grub_script_function_find): Cut error message
27665 not to flood terminal.
27666 * script/sh/lexer.c (grub_script_yylex): Remove command line length
27668 * script/sh/script.c (grub_script_arg_add): Duplicate string.
27670 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
27672 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
27673 `report' grub_uint8_t *.
27674 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
27675 Use a 50-millisecond timeout rather than just repeating
27676 grub_usb_keyboard_getreport 50 times.
27677 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
27679 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27681 Rename *_partition_map to part_*
27683 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
27684 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
27685 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
27686 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
27688 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
27690 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
27691 * util/grub-probe.c (probe_partmap): Don't transform partition name
27692 to get module name.
27694 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27696 Fix OpenBSD and NetBSD support.
27698 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
27699 memory address conflict.
27700 (OPENBSD_MMAP_ACPI): New definition.
27701 (OPENBSD_MMAP_NVS): Likewise.
27702 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
27703 and OPENBSD_MMAP_NVS.
27704 Add memory map terminator
27705 Explicit cast when calling grub_unix_real_boot.
27706 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
27708 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27710 Let user specify NetBSD root device.
27712 * loader/i386/bsd.c (netbsd_root): New variable.
27713 (netbsd_opts): New option 'root'.
27714 (NETBSD_ROOT_ARG): New macro.
27715 (grub_netbsd_boot): Use 'netbsd_root'.
27716 (grub_bsd_unload): Free 'netbsd_root'.
27717 (grub_cmd_netbsd): Fill 'netbsd_root'.
27719 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27721 Support for 64-bit NetBSD.
27723 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
27724 point when booting non-FreeBSD.
27726 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27728 Support --no-smp and --no-acpi for NetBSD.
27730 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
27731 (NETBSD_AB_NOACPI): Likewise.
27732 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
27733 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
27735 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27737 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
27739 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
27740 errors. Call grub_error when needed.
27742 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27744 * commands/search.c (search_fs): Try searching without autoload first.
27745 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
27746 filesystem module explicitly for faster booting.
27748 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
27750 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
27752 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
27754 * util/grub.d/30_os-prober.in: Disable os-prober if
27755 `GRUB_DISABLE_OS_PROBER' was set to true.
27757 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
27759 * partmap/pc.c: Rename to ...
27760 * partmap/msdos.c: ... this. Update all users.
27761 (grub_pc_partition_map): Rename to ...
27762 (grub_msdos_partition_map): ... this. Update all users.
27764 * parttool/pcpart.c: Rename to ...
27765 * parttool/msdospart.c: ... this. Update all users.
27767 * include/grub/pc_partition.h: Rename to ...
27768 * include/grub/msdos_partition.h: ... this. Update all users.
27769 (grub_pc_partition_bsd_entry): Rename to ...
27770 (grub_msdos_partition_bsd_entry): ... this. Update all users.
27771 (grub_pc_partition_disk_label): Rename to ...
27772 (grub_msdos_partition_disk_label): ... this. Update all users.
27773 (grub_pc_partition_entry): Rename to ...
27774 (grub_msdos_partition_entry): ... this. Update all users.
27775 (grub_pc_partition_mbr): Rename to ...
27776 (grub_msdos_partition_mbr): ... this. Update all users.
27777 (grub_pc_partition): Rename to ...
27778 (grub_msdos_partition): ... this. Update all users.
27779 (grub_pc_partition_is_empty): Rename to ...
27780 (grub_msdos_partition_is_empty): ... this. Update all users.
27781 (grub_pc_partition_is_extended): Rename to ...
27782 (grub_msdos_partition_is_extended): ... this. Update all users.
27783 (grub_pc_partition_is_bsd): Rename to ...
27784 (grub_msdos_partition_is_bsd): ... this. Update all users.
27786 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
27787 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
27788 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
27789 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
27790 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
27791 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
27792 (gpt_mod_LDFLAGS): Rename to ...
27793 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
27794 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
27795 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
27796 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
27797 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
27798 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
27799 (part_gpt_mod_LDFLAGS): ... this.
27800 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
27801 `pcpart.mod' to `msdospart.mod'.
27802 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
27804 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
27805 (msdospart_mod_LDFLAGS): ... this.
27807 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27809 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
27810 (openbsd_opts): Likewise.
27811 (netbsd_opts): Likewise.
27812 (freebsd_flags): Added 0 terminator.
27813 (openbsd_flags): Likewise.
27814 (netbsd_flags): Likewise.
27815 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
27816 (grub_cmd_freebsd): Transformed into extended command.
27817 (grub_cmd_openbsd): Likewise.
27818 (grub_cmd_netbsd): Likewise.
27819 (cmd_freebsd): Changed type to grub_extcmd_t.
27820 (cmd_openbsd): Likewise.
27821 (cmd_netbsd): Likewise.
27822 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
27823 grub_cmd_openbsd as extended commands.
27824 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
27825 cmd_netbsd and cmd_openbsd
27827 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
27829 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
27831 2009-08-21 Pavel Roskin <proski@gnu.org>
27833 * Makefile.in (install-local): When checking if a file is in the
27834 build directory, use "test -e" to detect symlinks.
27836 * Makefile.in (install-local): Remove all files in
27837 $(DESTDIR)$(pkglibdir) before installing new files there.
27839 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
27841 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
27844 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
27846 * util/grub-mkconfig.in: Don't use gfxterm by default if not
27847 explicitly specified by the user.
27849 2009-08-18 Pavel Roskin <proski@gnu.org>
27851 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
27852 grub_uint8_t pointer for data.
27853 * include/grub/fbutil.h (struct grub_video_fbblit_info):
27855 * video/fb/fbutil.c: Remove unnecessary casts.
27857 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27861 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
27862 (grub_vbe_set_video_mode): Save active mode info
27863 only after setting the mode.
27864 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
27867 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27869 Rename variables for clarity.
27871 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
27872 (active_vbe_mode_info): ... this. All users updated.
27873 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
27875 (initial_mode): Rename to ...
27876 (initial_vbe_mode): ... this. All users updated.
27877 (mode_in_use): Rename to ..
27878 (vbe_mode_in_use): ... this. All users updated.
27879 (mode_list): Rename to ..
27880 (vbe_mode_list): ... this. All users updated.
27881 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
27882 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
27883 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
27884 'mode_list_size' to 'vbe_mode_list_size'.
27885 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
27886 'best_mode_info' to 'best_vbe_mode_info' and
27887 'best_mode' to 'best_vbe_mode'
27889 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27891 Remove duplicate grub_video_fb_get_video_ptr.
27893 * include/grub/fbutil.h (get_data_ptr): Rename to ...
27894 (grub_video_fb_get_video_ptr): ... this.
27895 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
27896 * video/fb/fbutil.c: Add comment about addressing.
27897 (get_data_ptr): Rename to ...
27898 (grub_video_fb_get_video_ptr): ... this. All users updated.
27899 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
27901 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
27903 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
27904 grub_dprintf() that was just added.
27906 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
27908 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
27909 (DEFAULT_VIDEO_MODE): Remove macros.
27910 (grub_linux_boot): Remove assumption that Linux has FB support,
27911 and use "text" as default video mode.
27913 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
27915 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
27917 * fs/fat.c (grub_fat_read_data): Likewise.
27919 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27921 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
27923 (grub_module): Likewise.
27925 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27927 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
27928 mbi->cmdline but free playground.
27930 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27932 Handle group offset on UFS1.
27934 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
27935 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
27937 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27939 Split ufs.mod into ufs1.mod and ufs2.mod.
27941 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
27942 (grub_fstest_SOURCES): Likewise.
27943 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
27944 (ufs_mod_SOURCES): Remove.
27945 (ufs_mod_CFLAGS): Likewise.
27946 (ufs_mod_LDFLAGS): Likewise.
27947 (ufs1_mod_SOURCES): New variable.
27948 (ufs1_mod_CFLAGS): Likewise.
27949 (ufs1_mod_LDFLAGS): Likewise.
27950 (ufs2_mod_SOURCES): New variable.
27951 (ufs2_mod_CFLAGS): Likewise.
27952 (ufs2_mod_LDFLAGS): Likewise.
27953 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
27954 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
27956 (grub_emu_SOURCES): Likewise.
27957 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27958 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27959 (grub_setup_SOURCES): Likewise.
27960 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27961 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
27962 (grub_setup_SOURCES): Likewise.
27963 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
27965 * fs/ufs2.c: New file.
27966 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
27968 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27972 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
27973 subsystem at the end.
27974 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
27975 (video_fb_mod_SOURCES): New variable.
27976 (video_fb_mod_CFLAGS): Likewise.
27977 (video_fb_mod_LDFLAGS): Likewise.
27978 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
27979 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
27980 * video/i386/pc/vbeblit.c: Moved from here ...
27981 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
27982 * video/i386/pc/vbefill.c: Moved from here ...
27983 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
27984 * video/i386/pc/vbeutil.c: Moved from here ...
27985 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
27986 * include/grub/i386/pc/vbeblit.h: Moved from here ...
27987 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
27988 * include/grub/i386/pc/vbefill.h: Moved from here ...
27989 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
27990 * include/grub/i386/pc/vbeutil.h: Moved from here ...
27991 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
27992 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
27993 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
27994 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
27995 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
27996 (grub_video_adapter): Added 'get_info_and_fini'.
27997 (grub_video_get_info_and_fini): New prototype.
27998 (grub_video_set_mode): make modestring const char *.
27999 * loader/i386/linux.c (grub_linux_setup_video): Use
28000 grub_video_get_info_and_fini.
28001 (grub_linux_boot): Move modesetting just before booting.
28002 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28003 grub_video_get_info_and_fini.
28004 * video/i386/pc/vbe.c: Moved framebuffer part ...
28005 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28006 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28007 grub_video_fbstd_colors and grub_video_fb_set_palette.
28008 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28009 grub_video_fb_init.
28010 (grub_video_vbe_fini): Use grub_video_fb_fini.
28011 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28012 render_target and use grub_video_fb_set_active_render_target and
28013 grub_video_fb_set_palette.
28014 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28015 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28016 (grub_video_vbe_adapter): Use framebuffer.
28017 * video/video.c (grub_video_get_info_and_fini): New function.
28018 (grub_video_set_mode): Make modestring const char *.
28019 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28020 values are already initialised.
28022 2009-08-14 Pavel Roskin <proski@gnu.org>
28024 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28026 * boot/i386/pc/diskboot.S: Likewise.
28027 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28028 sectors allow compilation on MacOSX.
28029 * conf/i386-pc.rmk: Enable unconditional compilation of
28032 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
28034 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28035 * util/grub.d/00_header.in: Enter interruptible sleep if
28036 GRUB_HIDDEN_TIMEOUT is set.
28038 2009-08-13 Yves Blusseau <blusseau@zetam.org>
28040 * include/grub/symbol.h: Add the LOCAL macro.
28041 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28042 starting with "L_".
28044 2009-08-13 Pavel Roskin <proski@gnu.org>
28046 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28047 any modern compilers we support.
28049 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28050 Use local labels starting with "L_" so that Apple assembler
28051 knows they are local.
28053 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
28055 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
28056 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
28057 (bsd_kernel_types): ... this enum.
28059 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
28060 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
28061 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
28063 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
28064 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
28065 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
28068 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28070 * util/grub-dumpdevtree: Moved from here ...
28071 * util/i386/efi/grub-dumpdevtree: ... to here.
28072 (hexify): New function. Converts a string to its hex version.
28073 Generate hex versions of "efi" and "device-properties" by calling
28074 hexify() on the ASCII strings rather than by hardcoding numbers.
28076 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28078 * fs/jfs.c: Update copyright year.
28080 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28082 * util/grub.d/00_header.in: Fix a comment.
28083 * util/grub.d/10_linux.in: Likewise.
28084 * util/grub.d/10_windows.in: Likewise.
28085 * util/grub.d/10_hurd.in: Likewise.
28087 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
28089 * util/grub-mkconfig.in: Allow the user to specify the used font
28092 2009-08-08 Pavel Roskin <proski@gnu.org>
28094 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
28095 available, xfs.mod needs it now.
28097 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
28098 the "g" modifier in sed when the intention is to strip something
28099 once. This fixes comparison of kernels with multiple dashes.
28101 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
28102 on it. Add missing space before closing bracket. Fix
28103 misleading formatting.
28105 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28107 * docs/grub.texi: Major overhaul. Remove all sections that are
28108 specific to GRUB Legacy, or mostly composed of Legacy-specific
28111 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28113 * docs/version.texi: New file. Provides version information for
28116 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28118 * docs/grub.texi: Update CVS information to SVN.
28119 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
28121 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28123 * util/grub-mkconfig.in: Remove a wrong `fi'.
28125 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28127 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
28128 (grub_jfs_uuid): New function.
28129 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
28131 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
28133 * util/grub-mkconfig_lib.in (font_path): Move the functionality
28135 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
28136 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
28138 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28140 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
28141 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
28144 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
28145 not just "vmlinu[zx]".
28146 Moved from here ...
28147 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
28150 * util/grub.d/10_linux.in (find_latest): Moved from here ...
28151 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
28154 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28156 * util/grub.d/10_freebsd.in: Use an absolute device path for
28157 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
28159 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
28161 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
28162 handling of multiple abstraction modules.
28164 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
28166 Fix a bug resulting in black screen when loading Linux using a
28169 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
28172 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
28173 (grub_vbe_bios_getset_dac_palette_width): New function.
28174 (grub_vbe_bios_get_dac_palette_width)
28175 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
28176 grub_vbe_bios_getset_dac_palette_width()).
28178 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
28179 check for return status.
28180 (grub_vbe_get_video_mode_info): When getting information for a packed
28181 mode (<= 8 bpp), obtain DAC palette width using
28182 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
28183 {red,green,blue}_mark_size.
28185 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
28187 * commands/search.c (options): Fix help output to match actual code.
28189 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
28191 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
28194 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28196 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
28197 on XFS or ReiserFS.
28199 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28201 Support Apple partition map with sector size different from 512 bytes.
28203 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
28204 (apple_partition_map_iterate): Respect 'aheader.blocksize'
28205 and 'apart.partmap_size'.
28207 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28208 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
28212 * commands/i386/cpuid.c (options): New variable.
28213 (grub_cmd_cpuid): Return real error.
28214 (GRUB_MOD_INIT(cpuid)): Declare options.
28216 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
28218 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
28221 2009-07-31 Bean <bean123ch@gmail.com>
28223 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
28225 (grub_fshelp_node): Move inode field to the end.
28226 (grub_xfs_data): Remove inode field.
28227 (grub_xfs_inode_block): Calculate inode size using sblock.
28228 (grub_xfs_inode_offset): Likewise.
28229 (grub_xfs_read_inode): Calculate inode size using sblock.
28230 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
28231 (grub_xfs_iterate_dir): Calculate inode size using sblock.
28232 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
28233 to match inode size.
28234 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
28235 not accessible when data is null.
28236 (grub_xfs_open): Likewise.
28238 2009-07-31 Bean <bean123ch@gmail.com>
28240 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
28241 Don't change pv->disk if it's already set.
28243 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
28244 (grub_raid_register): ... here.
28245 (grub_raid_rescan): Removed.
28247 * include/grub/raid.h (grub_raid_rescan): Removed.
28249 * util/grub-fstest.c: Remove include file <grub/raid.h>.
28250 (fstest): Replace grub_raid_rescan with module fini function followed
28253 * util/grub-probe.c: Add include file <grub/raid.h>.
28254 (probe_raid_level): New function.
28255 (probe): Detect abstraction by walking the disk device, support two
28256 level of abstraction (LVM on RAID) when detecting partition map.
28258 2009-07-31 Pavel Roskin <proski@gnu.org>
28260 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
28261 to grub_zalloc(), it was erroneous.
28262 Reported by Bean <bean123ch@gmail.com>
28264 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
28266 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
28267 embedding zone, not only the first one.
28269 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
28271 * term/gfxterm.c (clear_char): New function.
28272 (grub_virtual_screen_setup): Use clear_char.
28273 (scroll_up): Likewise.
28274 (grub_virtual_screen_cls): Likewise.
28276 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
28278 * util/deviceiter.c (get_acceleraid_disk_name): New static
28280 (grub_util_iterate_devices): Handle Accelraid devices.
28281 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
28283 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
28285 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
28286 separator for the suggested gfxpayload string (';' collides with the
28287 parser and needs escaping).
28289 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
28291 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
28292 Clear direction flag before jumping to OS.
28293 (grub_multiboot2_real_boot): Likewise.
28295 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28297 * util/i386/pc/grub-install: Fix parsing of --disk-module
28300 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
28302 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
28305 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
28307 * util/grub-mkconfig.in (package_version): New variable.
28308 Use it do display the version.
28310 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28312 * kern/file.c (grub_file_open): Revert to previous check with
28315 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28317 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
28318 from help line. It's out of sync with code.
28320 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
28322 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
28323 entries on failed boot.
28325 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
28327 * kern/file.c (grub_file_open): Fix an error check.
28329 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
28331 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
28332 partition map couldn't be identified.
28334 2009-07-23 Pavel Roskin <proski@gnu.org>
28336 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
28337 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
28338 case of little endian words becomes just an optimization.
28339 Respect const modifier.
28340 (md5_final): Use code that doesn't depend on endianness.
28342 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
28343 to avoid loss of upper bits if align is unsigned and shorter
28346 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28348 UUID support for UFS
28350 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
28351 (grub_ufs_uuid): New function.
28352 (grub_ufs_fs): add .uuid
28354 2009-07-21 Pavel Roskin <proski@gnu.org>
28356 * kern/dl.c (grub_dl_check_header): Make static.
28358 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
28360 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
28361 add drivemap for Vista. It breaks Windows 7.
28363 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28365 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
28368 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28372 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
28373 (grub_fstest_SOURCES): Likewise.
28374 (pkglib_MODULES): Add befs.mod.
28375 (befs_mod_SOURCES): New variable.
28376 (befs_mod_CFLAGS): Likewise.
28377 (befs_mod_LDFLAGS): Likewise.
28378 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28379 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28380 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28381 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28382 (grub_setup_SOURCES): Likewise.
28383 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28384 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28385 (grub_setup_SOURCES): Likewise.
28386 * fs/befs.c: New file.
28387 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
28388 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
28389 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
28390 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
28391 (B_KEY_INDEX_ALIGN): New declaration.
28392 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
28393 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
28394 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
28395 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
28396 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
28397 (grub_afs_mount) [MODE_BFS]: Likewise.
28398 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
28399 (grub_afs_fs): Use GRUB_AFS_FSNAME
28400 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
28401 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
28402 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
28403 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
28405 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
28407 * util/getroot.c (find_root_device): Add support for MacOSX.
28408 * util/hostdisk.c: Likewise.
28410 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28412 * font/font.c (find_glyph): Check whether a font is present to avoid
28413 segmentation fault.
28415 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
28417 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
28419 2009-07-20 Pavel Roskin <proski@gnu.org>
28421 * configure.ac: Trim excessively wordy excuses.
28423 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28425 Add symlink, mtime and label support to AtheFS.
28427 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
28428 (grub_afs_iterate_dir): Handle symlinks.
28429 (grub_afs_open): Use grub_afs_read_symlink.
28430 (grub_afs_dir): Likewise.
28432 (grub_afs_label): New function.
28433 (grub_afs_fs): Add grub_afs_label.
28434 (grub_afs_read_symlink): New function.
28436 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28438 Fix AtheFS support.
28440 * fs/afs.c: Fix comments style.
28441 (grub_afs_blockrun): Declare as packed.
28442 (grub_afs_datastream): Likewise.
28443 (grub_afs_bnode): Likewise.
28444 (grub_afs_btree): Likewise.
28445 (grub_afs_sblock): Likewise.
28446 Declare `name' as char.
28447 (grub_afs_inode): Declare as packed.
28448 Change void *vnode to grub_uint32_t unused.
28449 (grub_afs_iterate_dir): Check that key_size is positive.
28450 (grub_afs_mount): Don't read superblock twice.
28451 (grub_afs_dir): Don't free node in case of error,
28452 grub_fshelp_find_file already handles this.
28453 (grub_afs_open): Likewise.
28455 2009-07-19 Pavel Roskin <proski@gnu.org>
28457 * Makefile.in: Remove LIBLZO and enable_lzo.
28458 * conf/i386-pc.rmk: Remove lzo support.
28459 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
28460 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
28462 * kern/i386/pc/lzo1x.S: Remove.
28463 * kern/i386/pc/startup.S: Remove lzo support.
28464 * util/i386/pc/grub-mkimage.c: Likewise.
28466 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
28468 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
28469 * fs/xfs.c (grub_xfs_dir): Likewise.
28470 * fs/afs.c (grub_afs_dir): Likewise.
28471 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
28472 (grub_iso9660_open): Likewise.
28473 * fs/jfs.c (grub_jfs_open): Likewise.
28474 * fs/ext2.c (grub_ext2_dir): Likewise.
28475 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
28476 * script/sh/lexer.c (grub_script_yylex): Likewise.
28478 2009-07-16 Pavel Roskin <proski@gnu.org>
28480 * configure.ac: Never add "-c" to CFLAGS.
28482 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
28484 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
28485 grub_cv_cc_efiemu should be used.
28487 * configure.ac: Typo fixes.
28489 * kern/mm.c (grub_zalloc): New function.
28490 (grub_debug_zalloc): Likewise.
28491 * include/grub/mm.h: Declare grub_zalloc() and
28492 grub_debug_zalloc().
28493 * util/misc.c (grub_zalloc): New function.
28494 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
28495 instead of grub_malloc(), remove unneeded initializations.
28496 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
28497 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
28498 * commands/parttool.c (grub_cmd_parttool): Likewise.
28499 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
28500 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
28501 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
28502 * disk/usbms.c (grub_usbms_finddevs): Likewise.
28503 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
28504 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
28505 (grub_cmd_efiemu_pnvram): Likewise.
28506 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
28507 * fs/iso9660.c (grub_iso9660_mount): Likewise.
28508 (grub_iso9660_iterate_dir): Likewise.
28509 * fs/jfs.c (grub_jfs_opendir): Likewise.
28510 * fs/ntfs.c (list_file): Likewise.
28511 (grub_ntfs_mount): Likewise.
28512 * kern/disk.c (grub_disk_open): Likewise.
28513 * kern/dl.c (grub_dl_load_core): Likewise.
28514 * kern/elf.c (grub_elf_file): Likewise.
28515 * kern/env.c (grub_env_context_open): Likewise.
28516 (grub_env_set): Likewise.
28517 (grub_env_set_data_slot): Likewise.
28518 * kern/file.c (grub_file_open): Likewise.
28519 * kern/fs.c (grub_fs_blocklist_open): Likewise.
28520 * loader/i386/multiboot.c (grub_module): Likewise.
28521 * loader/xnu.c (grub_xnu_create_key): Likewise.
28522 (grub_xnu_create_value): Likewise.
28523 * normal/main.c (grub_normal_add_menu_entry): Likewise.
28524 (read_config_file): Likewise.
28525 * normal/menu_entry.c (make_screen): Likewise.
28526 * partmap/sun.c (sun_partition_map_iterate): Likewise.
28527 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
28528 * script/sh/script.c (grub_script_parse): Likewise.
28529 * video/bitmap.c (grub_video_bitmap_create): Likewise.
28530 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
28531 * video/readers/png.c (grub_png_output_byte): Likewise.
28532 (grub_video_reader_png): Likewise.
28534 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28536 Enable all targets that can be built by default
28538 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
28539 grub-mkfont and grub-fstest if they can be built
28541 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28543 Fix hang and segmentation fault in grub-emu-usb
28545 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
28546 * util/usb.c (grub_libusb_devices): likewise
28547 (grub_libusb_init): rename to ...
28548 (GRUB_MOD_INIT (libusb)):...this
28549 (grub_libusb_fini): rename to ..
28550 (GRUB_MOD_FINI (libusb)):...this
28551 * disk/usbms.c (grub_usbms_transfer): fix retry logic
28552 * include/grub/disk.h (grub_raid_init): removed, it's useless
28553 (grub_raid_fini): likewise
28554 (grub_lvm_init): likewise
28555 (grub_lvm_fini): likewise
28556 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
28559 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28563 * Makefile.in (LIBUSB): new macro
28564 * genmk.rb (Utility/print_tail): new method
28565 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
28566 (top level): call util.print_tail at the end.
28568 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28570 Make FreeBSD accept zpool.cache
28572 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
28573 type is /boot/zfs/zpool.cache
28575 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28579 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
28580 correct wrong typedef
28581 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
28583 2009-07-15 Pavel Roskin <proski@gnu.org>
28585 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
28586 * kern/disk.c (struct grub_disk_cache): Likewise.
28588 * commands/probe.c (options): Typo fix.
28590 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
28591 Increase to 0x5a to accommodate FAT32. Adjust other offsets
28593 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
28595 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
28596 the end of "Error" to make the message more readable.
28598 * boot/i386/pc/boot.S (kernel_segment): Remove.
28599 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
28602 * boot/i386/pc/boot.S (boot_version): Remove.
28603 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
28606 * include/grub/i386/pc/boot.h: Sort all offsets.
28607 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
28608 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
28609 * boot/i386/pc/boot.S: Assert location of every offset listed in
28610 include/grub/i386/pc/boot.h.
28612 2009-07-13 Pavel Roskin <proski@gnu.org>
28614 * include/grub/i386/coreboot/machine.h: Rename
28615 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
28616 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
28617 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
28619 * kern/dl.c: Force native word size to suppress warnings when
28620 compiling grub-emu.
28622 * kern/device.c (grub_device_iterate): Change struct part_ent to
28623 hold the name, not a pointer to it. Use one grub_malloc() per
28624 partition, not two. Free partition_name if grub_malloc() fails.
28625 Set ents to NULL only before grub_partition_iterate() is called.
28627 2009-07-11 Bean <bean123ch@gmail.com>
28629 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
28632 2009-07-10 Bean <bean123ch@gmail.com>
28633 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
28635 * kern/ieee1275/openfw.c (grub_children_iterate)
28636 (grub_devalias_iterate): Fix size evaluation for property or path
28637 strings, which was broken since r2132.
28639 2009-07-07 Pavel Roskin <proski@gnu.org>
28641 * commands/search.c (search_file): Merge into ...
28642 (search_fs): ... this. Accept search type as argument.
28643 (grub_cmd_search): Pass search type to search_fs().
28645 * include/grub/util/console.h: New file.
28646 * util/console.c: Use it instead of grub/machine/console.h.
28647 * util/grub-emu.c: Likewise.
28649 * lib/arg.c (find_long_option): Remove.
28650 (find_long): Add `len' argument, make `s' const char *.
28651 (grub_arg_parse): Parse long options in place, not in a
28654 2009-07-06 Pavel Roskin <proski@gnu.org>
28656 * commands/search.c (search_fs): Fix potential NULL pointer
28659 * commands/search.c (search_fs): Replace QUID macro with quid_fn
28662 2009-07-06 Daniel Mierswa <impulze@impulze.org>
28664 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
28667 2009-07-05 Pavel Roskin <proski@gnu.org>
28669 * include/grub/i386/linux.h (struct linux_kernel_params):
28670 Restore padding3, it's still needed.
28672 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
28674 * util/osdetect.lua: Likewise.
28676 2009-07-05 Bean <bean123ch@gmail.com>
28678 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
28680 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
28681 (grub_lua_getenv): Likewise.
28682 (grub_lua_setenv): Likewise.
28683 (save_errno): New function.
28684 (push_result): Likewise.
28685 (grub_lua_enum_device): Likewise.
28686 (grub_lua_enum_file): Likewise.
28687 (grub_lua_file_open): Likewise.
28688 (grub_lua_file_close): Likewise.
28689 (grub_lua_file_seek): Likewise.
28690 (grub_lua_file_read): Likewise.
28691 (grub_lua_file_getline): Likewise.
28692 (grub_lua_file_getsize): Likewise.
28693 (grub_lua_file_getpos): Likewise.
28694 (grub_lua_file_eof): Likewise.
28695 (grub_lua_file_exist): Likewise.
28696 (grub_lua_add_menu): Likewise.
28698 * script/lua/grub_lua.h (isupper): New inline function.
28699 (islower): Likewise.
28700 (ispunct): Likewise.
28701 (isxdigit): Likewise.
28702 (strcspn): Change to normal function.
28703 (strpbkr): New function declaration.
28704 (memchr): Likewise.
28706 * script/lua/grub_main.c (scan_str): New function.
28707 (strcspn): Likewise.
28708 (strpbrk): Likewise.
28709 (memchr): Likewise.
28711 * script/lua/linit.c (lualibs): Enable the string library.
28713 * util/osdetect.lua: New file.
28715 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
28717 * include/grub/i386/linux.h (struct linux_kernel_params): Add
28718 `capabilities' member.
28720 2009-07-02 Pavel Roskin <proski@gnu.org>
28722 * genparttoollist.sh: Add missing newline at the end.
28724 2009-07-01 Pavel Roskin <proski@gnu.org>
28726 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
28728 * util/hostdisk.c (open_device): Remove `const' from
28729 `sysctl_size', as sysctlbyname() can change it (in this case it
28730 doesn't actually happen).
28732 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
28733 using signed long int constants.
28735 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
28736 constant to avoid a warning on FreeBSD.
28738 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
28741 * Makefile.in: Install include/grub/machine symlink.
28743 * Makefile.in: When installing symlinks, use "cp -fR", which
28744 works on FreeBSD and MacOSX.
28745 From Yves Blusseau <cl7m42e02@sneakemail.com>
28747 * kern/dl.c (grub_dl_resolve_symbol): Make static.
28748 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
28750 * util/misc.c: Move grub_reboot() and grub_halt() ...
28751 * util/grub-emu.c: ... here. Make main_env static.
28752 * include/grub/util/misc.h: Remove main_env.
28754 * kern/mm.c: Use correct format to print size_t.
28756 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
28757 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
28758 * kern/powerpc/dl.c: Likewise.
28759 * kern/sparc64/dl.c: Likewise.
28760 * kern/x86_64/dl.c: Likewise.
28762 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28764 Fix grub-emu build on sparc64-ieee1275.
28766 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
28767 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
28769 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28771 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
28772 (grub_reboot, grub_halt): New functions.
28774 * util/i386/pc/misc.c: Delete. Update all users.
28775 * util/sparc64/ieee1275/misc.c: Likewise.
28776 * util/powerpc/ieee1275/misc.c: Likewise.
28778 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28780 * conf/i386.rmk (setjmp_mod_SOURCES)
28781 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
28782 * conf/common.rmk (setjmp_mod_SOURCES)
28783 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
28784 to use $(target_cpu).
28785 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
28786 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
28787 * conf/powerpc-ieee1275.rmk: Likewise.
28788 * conf/sparc64-ieee1275.rmk: Likewise.
28790 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
28791 $(target_cpu) for kern/$(target_cpu)/dl.c.
28792 * conf/i386-efi.rmk: Likewise.
28793 * conf/i386-ieee1275.rmk: Likewise.
28794 * conf/x86_64-efi.rmk: Likewise.
28795 * conf/i386-coreboot.rmk: Likewise.
28796 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
28797 $(target_cpu) for kern/$(target_cpu)/dl.c and for
28798 kern/$(target_cpu)/cache.S.
28799 * conf/sparc64-ieee1275.rmk: Likewise.
28801 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28803 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
28804 type to `grub_uint8_t', and adjust `padding9' accordingly.
28806 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28808 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
28810 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
28811 assembly in final jump, using register constraints.
28813 (grub_linux_boot): For text mode, initialize `have_vga' using
28814 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
28816 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
28817 right before the final jump.
28819 Set `video_mode' to 0x3.
28821 Document initialization of `video_page', `video_mode' and
28824 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28826 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
28827 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
28828 and set GRUB_LINUX_FLAG_QUIET appropriately.
28830 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28832 Fix build on Debian / sparc.
28834 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
28836 2009-06-28 Pavel Roskin <proski@gnu.org>
28838 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
28841 * util/grub.d/10_linux.in: Match SUSE style initrd names.
28843 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28845 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
28848 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28852 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
28853 file can't be opened. grub_file_open() is already supposed to set
28854 grub_errno / grub_errmsg appropriately.
28855 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
28857 2009-06-27 Pavel Roskin <proski@gnu.org>
28858 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28860 * include/grub/dl.h: Include grub/elf.h.
28861 (struct grub_dl): Add symtab field.
28862 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
28863 GRUB_MODULES_MACHINE_READONLY.
28864 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
28865 of the header for read-only modules.
28866 (grub_dl_unload): Free mod->symtab for read-only modules.
28867 * kern/i386/dl.c: Use mod->symtab.
28868 * kern/powerpc/dl.c: Likewise.
28869 * kern/sparc64/dl.c: Likewise.
28870 * kern/x86_64/dl.c: Likewise.
28872 * conf/i386-qemu.rmk: New file.
28873 * kern/i386/qemu/startup.S: Likewise.
28874 * kern/i386/qemu/mmap.c: Likewise.
28875 * boot/i386/qemu/boot.S: Likewise.
28876 * include/grub/i386/qemu/time.h: Likewise.
28877 * include/grub/i386/qemu/serial.h: Likewise.
28878 * include/grub/i386/qemu/kernel.h: Likewise.
28879 * include/grub/i386/qemu/console.h: Likewise.
28880 * include/grub/i386/qemu/boot.h: Likewise.
28881 * include/grub/i386/qemu/init.h: Likewise.
28882 * include/grub/i386/qemu/machine.h: Likewise.
28883 * include/grub/i386/qemu/loader.h: Likewise.
28884 * include/grub/i386/qemu/memory.h: Likewise.
28886 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
28887 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
28888 [qemu] (pkglib_IMAGES): Add `boot.img'.
28889 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
28890 [qemu] (boot_img_FORMAT): New variables.
28891 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
28892 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
28893 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
28894 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28895 [qemu] (kernel_img_FORMAT): New variables.
28897 * configure.ac: Recognise `i386-qemu'.
28899 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
28900 (for no compression).
28901 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
28902 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
28903 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
28904 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
28907 2009-06-27 Pavel Roskin <proski@gnu.org>
28909 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
28911 * efiemu/prepare32.c: Likewise.
28912 * efiemu/prepare64.c: Likewise.
28914 2009-06-26 Pavel Roskin <proski@gnu.org>
28916 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
28917 * include/grub/elf.h: Define symbols without "32" or "64" based
28918 on GRUB_TARGET_WORDSIZE.
28919 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
28920 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
28922 * efiemu/loadcore64.c: Likewise.
28923 * loader/i386/bsd32.c: Likewise.
28924 * loader/i386/bsd64.c: Likewise.
28925 * kern/dl.c: Remove own ELF definitions.
28926 * util/i386/efi/grub-mkimage.c: Likewise.
28928 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
28930 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
28931 segment 0x0 unconditionally, because the reference generated by
28932 GAS is an absolute address.
28934 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28936 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
28937 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
28939 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28941 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
28942 indexes. Check for -f explicitly.
28943 (search_file): Improve error message.
28944 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
28946 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28948 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
28949 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
28951 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28953 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
28954 * conf/i386-ieee1275.rmk: Likewise.
28955 * conf/i386-coreboot.rmk: Likewise.
28957 * kern/i386/pc/startup.S (grub_stop): Remove function.
28958 * kern/i386/ieee1275/startup.S: Likewise.
28959 * kern/i386/coreboot/startup.S: Likewise.
28960 * kern/i386/misc.S (grub_stop): New function.
28962 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28964 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
28965 * kern/i386/realmode.S (real_to_prot): ... to here.
28967 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28969 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
28971 (kernel_elf_SOURCES): Rename to ...
28972 (kernel_img_SOURCES): ... this.
28973 (kernel_elf_HEADERS): Rename to ...
28974 (kernel_img_HEADERS): ... this. Update all users.
28975 (kernel_elf_ASFLAGS): Rename to ...
28976 (kernel_img_ASFLAGS): ... this.
28977 (kernel_elf_CFLAGS): Rename to ...
28978 (kernel_img_CFLAGS): ... this.
28979 (kernel_elf_LDFLAGS): Rename to ...
28980 (kernel_img_LDFLAGS): ... this.
28981 * conf/i386-coreboot.rmk: Likewise.
28982 * conf/powerpc-ieee1275.rmk: Likewise.
28984 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
28987 2009-06-21 Pavel Roskin <proski@gnu.org>
28989 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
28990 to match nested functions.
28991 * loader/sparc64/ieee1275/linux.c: Likewise.
28993 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
28995 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
28997 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
28998 all i386 platforms.
29000 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29002 Fix asm file handling on ELF, and remove workarounds.
29004 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
29005 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
29006 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29007 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29009 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29011 Load BSD ELF modules
29013 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29014 and loader/i386/bsd64.c
29015 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29016 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29017 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29018 (grub_freebsd_load_elfmodule32): New declaration
29019 (grub_freebsd_load_elfmoduleobj64): Likewise
29020 (grub_freebsd_load_elf_meta32): Likewise
29021 (grub_freebsd_load_elf_meta64): Likewise
29022 (grub_freebsd_add_meta): Likewise
29023 (grub_freebsd_add_meta_module): Likewise
29024 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29025 (grub_freebsd_add_meta_module): Likewise and move module-specific
29026 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29027 (grub_cmd_freebsd): Add elf-kernel specific parts
29028 based on grub_freebsd_add_meta_module
29029 (grub_cmd_freebsd_module): Add type parsing moved from
29030 grub_freebsd_add_meta_module
29031 (grub_cmd_freebsd_module_elf): New function
29032 (cmd_freebsd_module_elf): New variable
29033 (GRUB_MOD_INIT): Register freebsd_module_elf
29034 * loader/i386/bsd32.c: New file
29035 * loader/i386/bsd64.c: Likewise
29036 * loader/i386/bsdXX.c: Likewise
29037 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29038 (grub_elf64_load): Likewise
29039 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29041 (grub_elf64_load_hook_t): Likewise
29043 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
29045 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29047 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29048 don't write a menu entry for recovery mode.
29050 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29052 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
29053 after it's no longer needed.
29055 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29057 * include/grub/i386/loader.h (grub_linux_prot_size)
29058 (grub_linux_tmp_addr, grub_linux_real_addr)
29059 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
29060 GRUB_MACHINE_PCBIOS.
29061 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
29062 common grub_util_info() call to ...
29063 (generate_image): ... here.
29064 Fix use of uninitialized memory, comparison of signed with
29065 unsigned integers and memory leak.
29066 Remove bogus module address message.
29068 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
29070 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
29072 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
29074 2009-06-19 Pavel Roskin <proski@gnu.org>
29076 * configure.ac: Remove stray AC_MSG_CHECKING.
29078 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
29080 * disk/scsi.c (grub_scsi_open): use continue instead of big if
29082 2009-06-18 Pavel Roskin <proski@gnu.org>
29084 * conf/common.rmk: Add fs_file.mod.
29085 * disk/fs_file.c: New file.
29086 * include/grub/disk.h (enum grub_disk_dev_id): Add
29087 GRUB_DISK_DEVICE_FILE_ID.
29089 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29091 Fix build with Apple's toolchain. Part 2
29093 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
29096 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29098 Fix build with Apple's toolchain. Part 1
29100 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
29102 * configure.ac: remove a leftover AC_MSG_RESULT
29103 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
29106 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29110 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
29111 (decomp_block): initialize ch
29112 use grub_memcpy instead of memcpy
29114 2009-06-17 Pavel Roskin <proski@gnu.org>
29116 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
29117 version, use declarations needed to use vga_text as the startup
29120 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
29121 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
29123 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
29124 and grub_at_keyboard_fini(), it's done on module load and
29127 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
29129 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
29130 file can't be found.
29131 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29133 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29135 Fix newline handling
29137 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
29138 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
29139 (grub_script_yylex): don't segfault on unterminated script
29140 newline terminates command and variable
29142 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29144 avoid double grub_adjust_range call. Bug reported by David Simner
29146 * kern/disk.c (grub_disk_write): change to raw disk access before
29149 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
29151 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
29152 spaces, for the benefit of help2man.
29153 * util/i386/efi/grub-mkimage.c (usage): Likewise.
29155 2009-06-16 Pavel Roskin <proski@gnu.org>
29157 * kern/i386/halt.c: Include grub/machine/init.h.
29158 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
29160 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
29162 * util/grub.d/30_os-prober.in: Use ${root} in the generated
29163 drivemap menuentry.
29165 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
29167 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
29170 2009-06-16 Pavel Roskin <proski@gnu.org>
29172 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
29173 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
29174 save %dx, we only need %dl and we never change it.
29175 * boot/i386/pc/cdboot.S: Don't set the root drive.
29176 * boot/i386/pc/pxeboot.S: Likewise.
29177 * include/grub/i386/pc/boot.h: Remove
29178 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
29179 GRUB_BOOT_MACHINE_DRIVE_CHECK.
29180 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
29181 * kern/i386/pc/init.c (make_install_device): Remove references
29182 to grub_root_drive.
29183 * kern/i386/pc/startup.S: Likewise.
29184 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
29186 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29190 * commands/xnu_uuid.c: new file
29191 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
29192 (xnu_uuid_mod_SOURCES): new variable
29193 (xnu_uuid_mod_CFLAGS): likewise
29194 (xnu_uuid_mod_LDFLAGS): likewise
29195 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29196 * conf/i386-ieee1275.rmk: likewise
29197 * conf/i386-pc.rmk: likewise
29198 * conf/powerpc-ieee1275.rmk: likewise
29199 * conf/sparc64-ieee1275.rmk: likewise
29200 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
29202 2009-06-16 Pavel Roskin <proski@gnu.org>
29204 * configure.ac: Avoid '==' in test command, it's not portable.
29206 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
29210 * commands/probe.c: new file
29211 * conf/common.rmk (pkglib_MODULES): add probe.mod
29212 (probe_mod_SOURCES): new variable
29213 (probe_mod_CFLAGS): likewise
29214 (probe_mod_LDFLAGS): likewise
29215 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
29216 * conf/i386-ieee1275.rmk: likewise
29217 * conf/i386-pc.rmk: likewise
29218 * conf/powerpc-ieee1275.rmk: likewise
29219 * conf/sparc64-ieee1275.rmk: likewise
29221 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
29223 Fix handling of string like \"hello\" and "a
29226 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
29227 (grub_script_yylex): fix parsing of quoting, escaping and newline
29229 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
29231 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
29234 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
29236 * util/grub-mkconfig.in: Fix parsing of --output option.
29238 2009-06-12 Pavel Roskin <proski@gnu.org>
29240 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
29241 genmk.rb don't need to be generated or installed.
29243 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
29245 * commands/i386/pc/drivemap_int13h.S: add more comments
29247 2009-06-11 Pavel Roskin <proski@gnu.org>
29249 * Makefile.in (uninstall): Uninstall manuals.
29251 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
29252 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
29253 and update-grub_lib in two places.
29254 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
29256 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
29257 a compiler warning.
29259 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
29260 `entry_lo' to fix variable shadowing.
29262 2009-06-11 Christian Franke <franke@computer.org>
29264 * kern/misc.c (__enable_execute_stack): Add missing return type
29265 to prevent gcc warning.
29267 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29269 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
29271 2009-06-11 Pavel Roskin <proski@gnu.org>
29273 * Makefile.in: Don't rely on any scripts being executable.
29274 Always use $(SHELL) to run shell scripts.
29276 * configure.ac: Always define ___main if using -nostdlib. This
29277 fixes tests on Cygwin.
29279 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
29283 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
29284 is in bytes and not in blocks
29286 2009-06-11 Pavel Roskin <proski@gnu.org>
29288 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
29291 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
29293 * util/grub.d/30_os-prober.in: Fix a comment. Source
29294 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
29295 to set the root device. Place drivemap command in the generated
29298 2009-06-11 Pavel Roskin <proski@gnu.org>
29300 * configure.ac: Remove host_m32. Issues with 64-bit utilities
29301 have long been resolved.
29303 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
29305 * util/grub.d/10_linux.in: Capitalise "Linux".
29307 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
29309 2009-06-11 Pavel Roskin <proski@gnu.org>
29311 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
29312 fix a gcc warning and ensure that the function won't ever exit.
29314 * kern/i386/ieee1275/init.c: Add missing prototype for
29315 grub_stop_floppy().
29317 * loader/ieee1275/multiboot2.c [__i386__]: Include
29318 grub/cpu/multiboot.h.
29320 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
29321 casts to short - they are not portable and cause warnings. Fix
29322 use of uninitialized values in input_buf. Use ARRAY_SIZE.
29324 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
29328 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
29330 (grub_get_root_biosnumber_saved): new variable
29331 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
29332 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
29333 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
29334 %dx after the call if necessary
29335 * conf/common.rmk (pkglib_MODULES): remove boot.mod
29336 (boot_mod_SOURCES): remove
29337 (boot_mod_CFLAGS): remove
29338 (boot_mod_LDFLAGS): remove
29339 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
29340 (boot_mod_SOURCES): new variable
29341 (boot_mod_CFLAGS): likewise
29342 (boot_mod_LDFLAGS): likewise
29343 * conf/i386-efi.rmk: likewise
29344 * conf/i386-ieee1275.rmk: likewise
29345 * conf/i386-pc.rmk: likewise
29346 * conf/powerpc-ieee1275.rmk: likewise
29347 * conf/sparc64-ieee1275.rmk: likewise
29348 * conf/x86_64-efi.rmk: likewise
29349 * include/grub/i386/pc/biosnum.h: new file
29350 * lib/i386/pc/biosnum.c: likewise
29351 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
29352 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
29353 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
29355 2009-06-10 Pavel Roskin <proski@gnu.org>
29357 * io/gzio.c (test_header): Don't reuse one buffer for all data.
29358 Use separate variables. Read only the file size at the end, but
29359 not the checksum that we don't use.
29361 * kern/file.c (grub_file_read): Use void pointer for the buffer.
29362 Adjust all callers.
29364 * kern/ieee1275/openfw.c: Remove libc includes.
29365 * kern/ieee1275/cmain.c: Likewise.
29366 * include/grub/ieee1275/ieee1275.h: Likewise.
29368 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
29371 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
29373 * Makefile.in: Remove all trailing whitespace.
29374 * conf/i386-pc.rmk: Likewise.
29375 * conf/powerpc-ieee1275.rmk: Likewise.
29376 * conf/sparc64-ieee1275.rmk: Likewise.
29377 * docs/grub.texi: Likewise.
29378 * docs/texinfo.tex: Likewise.
29379 * disk/fs_uuid.c: Likewise.
29380 * disk/lvm.c: Likewise.
29381 * disk/scsi.c: Likewise.
29382 * disk/ata.c: Likewise.
29383 * disk/ieee1275/ofdisk.c: Likewise.
29384 * disk/i386/pc/biosdisk.c: Likewise.
29385 * disk/host.c: Likewise.
29386 * disk/raid.c: Likewise.
29387 * disk/efi/efidisk.c: Likewise.
29388 * disk/usbms.c: Likewise.
29389 * disk/memdisk.c: Likewise.
29390 * disk/loopback.c: Likewise.
29391 * kern/powerpc/dl.c: Likewise.
29392 * kern/device.c: Likewise.
29393 * kern/dl.c: Likewise.
29394 * kern/sparc64/dl.c: Likewise.
29395 * kern/ieee1275/ieee1275.c: Likewise.
29396 * kern/term.c: Likewise.
29397 * kern/fs.c: Likewise.
29398 * kern/i386/dl.c: Likewise.
29399 * kern/i386/pc/startup.S: Likewise.
29400 * kern/i386/pc/init.c: Likewise.
29401 * kern/i386/pc/mmap.c: Likewise.
29402 * kern/i386/pc/lzo1x.S: Likewise.
29403 * kern/i386/ieee1275/init.c: Likewise.
29404 * kern/i386/realmode.S: Likewise.
29405 * kern/i386/tsc.c: Likewise.
29406 * kern/partition.c: Likewise.
29407 * kern/corecmd.c: Likewise.
29408 * kern/file.c: Likewise.
29409 * kern/efi/efi.c: Likewise.
29410 * kern/efi/init.c: Likewise.
29411 * kern/efi/mm.c: Likewise.
29412 * kern/main.c: Likewise.
29413 * kern/err.c: Likewise.
29414 * kern/env.c: Likewise.
29415 * kern/disk.c: Likewise.
29416 * kern/generic/millisleep.c: Likewise.
29417 * kern/generic/rtc_get_time_ms.c: Likewise.
29418 * kern/misc.c: Likewise.
29419 * kern/parser.c: Likewise.
29420 * genmk.rb: Likewise.
29421 * configure.ac: Likewise.
29422 * boot/i386/pc/diskboot.S: Likewise.
29423 * boot/i386/pc/pxeboot.S: Likewise.
29424 * boot/i386/pc/boot.S: Likewise.
29425 * boot/i386/pc/lnxboot.S: Likewise.
29426 * boot/i386/pc/cdboot.S: Likewise.
29427 * parttool/pcpart.c: Likewise.
29428 * video/readers/tga.c: Likewise.
29429 * video/video.c: Likewise.
29430 * video/bitmap.c: Likewise.
29431 * lib/envblk.c: Likewise.
29432 * lib/i386/setjmp.S: Likewise.
29433 * fs/xfs.c: Likewise.
29434 * fs/afs.c: Likewise.
29435 * fs/fat.c: Likewise.
29436 * fs/ntfs.c: Likewise.
29437 * fs/udf.c: Likewise.
29438 * fs/affs.c: Likewise.
29439 * fs/iso9660.c: Likewise.
29440 * fs/hfs.c: Likewise.
29441 * fs/fshelp.c: Likewise.
29442 * fs/ext2.c: Likewise.
29443 * fs/jfs.c: Likewise.
29444 * fs/reiserfs.c: Likewise.
29445 * fs/hfsplus.c: Likewise.
29446 * fs/minix.c: Likewise.
29447 * fs/cpio.c: Likewise.
29448 * fs/sfs.c: Likewise.
29449 * fs/ufs.c: Likewise.
29450 * efiemu/prepare.c: Likewise.
29451 * efiemu/loadcore_common.c: Likewise.
29452 * efiemu/runtime/efiemu.sh: Likewise.
29453 * efiemu/runtime/efiemu.S: Likewise.
29454 * efiemu/runtime/efiemu.c: Likewise.
29455 * efiemu/pnvram.c: Likewise.
29456 * efiemu/main.c: Likewise.
29457 * efiemu/i386/pc/cfgtables.c: Likewise.
29458 * efiemu/i386/loadcore64.c: Likewise.
29459 * efiemu/i386/loadcore32.c: Likewise.
29460 * efiemu/loadcore.c: Likewise.
29461 * efiemu/symbols.c: Likewise.
29462 * efiemu/mm.c: Likewise.
29463 * include/grub/autoefi.h: Likewise.
29464 * include/grub/datetime.h: Likewise.
29465 * include/grub/term.h: Likewise.
29466 * include/grub/hfs.h: Likewise.
29467 * include/grub/lvm.h: Likewise.
29468 * include/grub/i386/tsc.h: Likewise.
29469 * include/grub/i386/linux.h: Likewise.
29470 * include/grub/i386/xnu.h: Likewise.
29471 * include/grub/i386/efiemu.h: Likewise.
29472 * include/grub/i386/pc/biosdisk.h: Likewise.
29473 * include/grub/i386/pc/memory.h: Likewise.
29474 * include/grub/i386/pc/vbe.h: Likewise.
29475 * include/grub/parttool.h: Likewise.
29476 * include/grub/video.h: Likewise.
29477 * include/grub/memory.h: Likewise.
29478 * include/grub/fs.h: Likewise.
29479 * include/grub/partition.h: Likewise.
29480 * include/grub/xnu.h: Likewise.
29481 * include/grub/efi/api.h: Likewise.
29482 * include/grub/efi/pe32.h: Likewise.
29483 * include/grub/efi/memory.h: Likewise.
29484 * include/grub/multiboot.h: Likewise.
29485 * include/grub/usbdesc.h: Likewise.
29486 * include/grub/multiboot2.h: Likewise.
29487 * include/grub/acpi.h: Likewise.
29488 * include/grub/efiemu/efiemu.h: Likewise.
29489 * include/grub/disk.h: Likewise.
29490 * include/grub/ieee1275/ieee1275.h: Likewise.
29491 * include/grub/net.h: Likewise.
29492 * include/grub/machoload.h: Likewise.
29493 * include/grub/macho.h: Likewise.
29494 * include/multiboot.h: Likewise.
29495 * genmoddep.awk: Likewise.
29496 * normal/main.c: Likewise.
29497 * normal/menu_entry.c: Likewise.
29498 * normal/menu_viewer.c: Likewise.
29499 * normal/completion.c: Likewise.
29500 * normal/cmdline.c: Likewise.
29501 * normal/misc.c: Likewise.
29502 * normal/datetime.c: Likewise.
29503 * bus/usb/usbtrans.c: Likewise.
29504 * bus/usb/ohci.c: Likewise.
29505 * bus/usb/uhci.c: Likewise.
29506 * bus/usb/usb.c: Likewise.
29507 * mmap/efi/mmap.c: Likewise.
29508 * mmap/i386/pc/mmap_helper.S: Likewise.
29509 * mmap/i386/pc/mmap.c: Likewise.
29510 * mmap/i386/mmap.c: Likewise.
29511 * mmap/i386/uppermem.c: Likewise.
29512 * mmap/mmap.c: Likewise.
29513 * commands/acpi.c: Likewise.
29514 * commands/echo.c: Likewise.
29515 * commands/blocklist.c: Likewise.
29516 * commands/loadenv.c: Likewise.
29517 * commands/usbtest.c: Likewise.
29518 * commands/boot.c: Likewise.
29519 * commands/parttool.c: Likewise.
29520 * commands/search.c: Likewise.
29521 * commands/cat.c: Likewise.
29522 * commands/i386/pc/play.c: Likewise.
29523 * commands/i386/pc/drivemap.c: Likewise.
29524 * commands/i386/pc/vbeinfo.c: Likewise.
29525 * commands/i386/pc/acpi.c: Likewise.
29526 * commands/i386/pc/vbetest.c: Likewise.
29527 * commands/ls.c: Likewise.
29528 * commands/cmp.c: Likewise.
29529 * commands/test.c: Likewise.
29530 * commands/efi/acpi.c: Likewise.
29531 * commands/gptsync.c: Likewise.
29532 * commands/help.c: Likewise.
29533 * partmap/amiga.c: Likewise.
29534 * partmap/apple.c: Likewise.
29535 * partmap/acorn.c: Likewise.
29536 * partmap/pc.c: Likewise.
29537 * partmap/sun.c: Likewise.
29538 * partmap/gpt.c: Likewise.
29539 * script/sh/lexer.c: Likewise.
29540 * script/sh/function.c: Likewise.
29541 * font/font.c: Likewise.
29542 * font/font_cmd.c: Likewise.
29543 * loader/powerpc/ieee1275/linux.c: Likewise.
29544 * loader/efi/chainloader.c: Likewise.
29545 * loader/multiboot_loader.c: Likewise.
29546 * loader/macho.c: Likewise.
29547 * loader/i386/multiboot.c: Likewise.
29548 * loader/i386/linux.c: Likewise.
29549 * loader/i386/pc/linux.c: Likewise.
29550 * loader/i386/pc/multiboot2.c: Likewise.
29551 * loader/i386/pc/chainloader.c: Likewise.
29552 * loader/i386/pc/xnu.c: Likewise.
29553 * loader/i386/bsd_trampoline.S: Likewise.
29554 * loader/i386/efi/linux.c: Likewise.
29555 * loader/i386/multiboot_elfxx.c: Likewise.
29556 * loader/i386/bsd_helper.S: Likewise.
29557 * loader/i386/bsd.c: Likewise.
29558 * loader/i386/linux_trampoline.S: Likewise.
29559 * loader/i386/xnu_helper.S: Likewise.
29560 * loader/i386/xnu.c: Likewise.
29561 * loader/i386/bsd_pagetable.c: Likewise.
29562 * loader/i386/multiboot_helper.S: Likewise.
29563 * loader/xnu.c: Likewise.
29564 * loader/xnu_resume.c: Likewise.
29565 * io/gzio.c: Likewise.
29566 * term/efi/console.c: Likewise.
29567 * term/terminfo.c: Likewise.
29568 * term/ieee1275/ofconsole.c: Likewise.
29569 * term/i386/pc/serial.c: Likewise.
29570 * term/i386/pc/vesafb.c: Likewise.
29571 * term/i386/pc/vga.c: Likewise.
29572 * term/usb_keyboard.c: Likewise.
29573 * term/gfxterm.c: Likewise.
29574 * aclocal.m4: Likewise.
29575 * util/lvm.c: Likewise.
29576 * util/grub.d/30_os-prober.in: Likewise.
29577 * util/grub.d/10_hurd.in: Likewise.
29578 * util/console.c: Likewise.
29579 * util/grub-macho2img.c: Likewise.
29580 * util/grub-probe.c: Likewise.
29581 * util/hostfs.c: Likewise.
29582 * util/i386/pc/grub-mkimage.c: Likewise.
29583 * util/i386/pc/grub-setup.c: Likewise.
29584 * util/i386/efi/grub-mkimage.c: Likewise.
29585 * util/grub-mkconfig.in: Likewise.
29586 * util/raid.c: Likewise.
29587 * util/resolve.c: Likewise.
29588 * util/grub-mkdevicemap.c: Likewise.
29589 * util/grub-emu.c: Likewise.
29590 * util/getroot.c: Likewise.
29591 * util/hostdisk.c: Likewise.
29592 * util/usb.c: Likewise.
29593 * util/grub-editenv.c: Likewise.
29594 * util/misc.c: Likewise.
29596 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
29598 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
29599 `genparttoollist.sh'.
29600 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
29601 Add `*.sh' to the list find searches for and change `mdate.sh'
29604 2009-06-10 Pavel Roskin <proski@gnu.org>
29606 * include/grub/multiboot2.h: Provide compatibility defines for
29608 * include/multiboot2.h: Include stdint.h only if needed, using
29610 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
29612 * loader/ieee1275/multiboot2.c: Likewise.
29613 * loader/multiboot2.c: Likewise.
29614 * loader/multiboot_loader.c: Likewise.
29616 * configure.ac: Use -nostdlib when probing for the target. It
29617 should not be required to have libc for the target.
29619 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
29620 they fail without libc headers for the target.
29621 * include/grub/powerpc/libgcc.h: Use weak attribute for all
29623 * include/grub/sparc64/libgcc.h: Likewise. Don't use
29624 preprocessor conditionals.
29626 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
29627 build system doesn't need to be aware of the tar.c internals.
29629 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
29631 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
29633 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
29635 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
29636 disk limit to 26 for IDE, Virtio, Xen and SCSI.
29638 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
29640 * util/i386/pc/grub-install.in: Change the error message if UUIDs
29641 aren't available if ata.mod gets used.
29643 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
29645 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
29646 initialising controller.
29647 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
29649 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29651 * util/i386/pc/grub-install.in: Add a parameter --disk-module
29652 to choose between ata and biosdisk module on i386-pc.
29654 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
29656 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
29657 Subclass and Programming Interface fields in terms of the 3 byte
29658 Class Code register.
29659 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
29661 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
29662 interface is OHCI. Add grub_dprintf for symmetry with
29664 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
29665 interface is UHCI. Add interf variable for programming
29666 interface. Print interface with class/subclass.
29668 * bus/usb/ohci.c: Set interf with correct field.
29670 * bus/usb/uhci.c: Remove unneeded doubled lines.
29671 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
29672 Remove whitespace inside comment.
29674 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
29676 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
29677 as fallback an equivalent option without depth.
29679 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
29681 Not fail if unable to retrieve C/H/S on LBA disks
29683 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
29684 if unable to retrieve C/H/S on LBA disks
29686 2009-06-08 Pavel Roskin <proski@gnu.org>
29688 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
29691 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29693 * Makefile.in (uninstall): Remove all $lib_DATA files.
29695 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
29697 Bugfix: install on partitionless device
29699 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
29702 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29704 * Makefile.in (uninstall): Remove all $include_DATA files.
29706 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29708 * commands/true.c: New file. Implement the true and false commands.
29709 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
29710 (true_mod_SOURCES): New variable.
29711 (true_mod_CFLAGS): Likewise.
29712 (true_mod_LDFLAGS): Likewise.
29714 2009-06-05 Colin D Bennett <colin@gibibit.com>
29716 Optimized font character lookup using binary search instead of linear
29717 search. Fonts now are required to have the character index ordered by
29720 * font/font.c (load_font_index): Verify that fonts have ordered
29722 (find_glyph): Use binary search instead of linear search to find a
29723 character in a font.
29725 2009-06-05 Michael Scherer <misc@mandriva.org>
29727 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
29728 uses case sensitive btree.
29729 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
29730 only for case insensitive filesystems.
29732 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
29734 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
29735 * conf/common.rmk (search_mod_CFLAGS): likewise
29737 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29739 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
29740 compensate a compiler bug
29742 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29744 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
29747 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29749 Definitions for creating asm symbols with Apple's CC
29751 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
29752 [APPLE_CC] (VARIABLE): likewise
29754 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29756 Disable lnxboot.img when compiled
29759 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
29760 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
29761 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
29762 [! APPLE_CC] (CODE_LENG): skip
29763 [! APPLE_CC] (setup_sects): likewise
29764 [! APPLE_CC]: skip filling
29766 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29768 Address in trampolines based on 32-bit registers when compiled
29771 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
29773 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
29775 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29777 Avoid aliases when compiling with Apple's CC for PCBIOS machine
29779 * kern/misc.c [APPLE_CC] (memcpy): new function
29780 [APPLE_CC] (memmove): likewise
29781 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
29782 (memcpy): define alias conditionally on !APPLE_CC
29785 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
29786 APPLE_CC are defined
29787 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
29788 (grub_assert_fail): make prototype conditional
29790 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29792 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
29794 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
29796 (CLEANFILES): add grub-macho2img
29797 (grub_macho2img_SOURCES): new variable
29798 * kern/i386/pc/startup.S (bss_start): new variable
29799 (bss_end): likewise
29800 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
29801 * util/grub-macho2img.c: new file
29803 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29805 Use objconv when compiling with Apple's CC
29807 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
29808 (efiemu64.o): likewise
29809 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
29810 when compiling with Apple's CC
29811 (efiemu64_s.o): likewise
29812 * configure.ac: check for objconv when compiling with Apple's CC
29813 * genmk.rb: use objconv for modules when compiled with Apple's CC
29815 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29817 Define segment as well as section when compiling with
29820 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
29821 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
29822 (efiemu_convert_pointer): likewise
29823 (efiemu_set_virtual_address_map): likewise
29824 (efiemu_convert_pointer): likewise
29825 (efiemu_getcrc32): likewise
29826 (init_crc32_table): likewise
29827 (reflect): likewise
29828 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
29829 (GRUB_MOD_DEP): likewise
29831 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29833 Allow a compilation without -mcmodel=large
29835 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
29836 when compiled without -mcmodel=large
29837 (filter_memory_map): remove memory post 4 GiB when compiled
29838 without -mcmodel=large
29839 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
29840 TARGET_CFLAGS when -mcmodel=large isn't supported
29842 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29844 Remove nested functions in efiemu core
29846 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
29848 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29850 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
29852 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
29854 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
29856 (grub_cpu_is_tsc_supported): likewise
29857 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
29859 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29861 Absolute addressing through constant with Apple's cc
29863 * kern/i386/pc/startup.S: Define necessary constants
29864 and address through it when using ABS with Apple's CC
29865 * boot/i386/pc/diskboot.S: likewise
29866 * boot/i386/pc/boot.S: likewise
29867 * boot/i386/pc/lnxboot.S: likewise
29868 * boot/i386/pc/cdboot.S: likewise
29869 * mmap/i386/pc/mmap_helper.S: likewise
29870 * commands/i386/pc/drivemap_int13h.S: likewise
29872 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29874 Check if compiler is apple cc
29876 * Makefile.in (ASFLAGS): new variable
29877 (TARGET_ASFLAGS): likewise
29878 (TARGET_MODULE_FORMAT): likewise
29879 (TARGET_APPLE_CC): likewise
29880 (OBJCONV): likewise
29881 (TARGET_IMG_CFLAGS): likewise
29882 (TARGET_CPPFLAGS): add includedir
29883 * configure.ac: call grub_apple_cc and grub_apple_target_cc
29884 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
29885 Check for linker script only if compiler isn't Apple's CC
29886 (TARGET_MODULE_FORMAT): set
29887 (TARGET_APPLE_CC): likewise
29888 (TARGET_ASFLAGS): likewise
29889 (ASFLAGS): likewise
29890 Check for objcopy only if compiler isn't Apple's CC
29891 Check for BSS symbol only if compiler isn't Apple's CC
29892 * genmk.rb: adapt nm options if we use Apple's utils
29893 * aclocal.m4 (grub_apple_cc): new test
29894 (grub_apple_target_cc): likewise
29896 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29898 Simplify sed expressions and improve awk
29900 * Makefile.in (install-local): simplify sed expression
29901 * gencmdlist.sh: likewise
29902 * genmoddep.awk: avoid adding module as a dependency of itself
29904 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29906 Add missing start symbols
29908 * boot/i386/pc/boot.S: add start
29909 * boot/i386/pc/pxeboot.S: likewise
29911 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29913 Fix wrong assumptions with grub-mkimage on EFI
29915 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
29916 (relocate_addresses): consider both r_addend and value at offset
29917 (make_mods_section): zerofill modinfo and header
29918 (convert_elf): write prefix here
29920 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29922 Use .asciz instead of .string
29924 * i386/pc/diskboot.S: use .asciz instead of .string
29925 * i386/pc/boot.S: likewise
29926 * include/grub/dl.h (GRUB_MOD_DEP): likewise
29927 (GRUB_MOD_NAME): likewise
29929 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29933 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
29934 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
29935 (grub_video_setup): remove
29936 (grub_video_set_mode): new prototype
29937 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
29939 (linux_vesafb_res): compile only on PCBIOS
29940 (grub_linux_boot): support gfxpayload
29941 * loader/i386/pc/xnu.c (video_hook): new function
29942 (grub_xnu_set_video): support gfxpayload
29943 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
29944 (DEFAULT_VIDEO_HEIGHT): likewise
29945 (DEFAULT_VIDEO_FLAGS): likewise
29946 (DEFAULT_VIDEO_MODE): new definition
29947 (video_hook): new function
29948 (grub_gfxterm_init): use grub_video_set_mode
29949 * util/grub.d/30_os-prober.in: remove explicit modesetting before
29951 * video/video.c (grub_video_setup): removed
29952 (grub_video_set_mode): new function based on grub_gfxterm_init and
29955 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29957 Avoid calling biosdisk in drivemap
29959 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
29960 (revparse_biosdisk): likewise
29961 (list_mappings): derive name from id directly
29962 (grub_cmd_drivemap): use tryparse_diskstring
29964 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29968 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
29969 (grub_lexer_param): add tokenonhold
29970 (grub_script_create_cmdline): remove cmdline. All callers updated
29971 (grub_script_function_create): make functionname
29972 grub_script_arg. All callers updated
29973 (grub_script_execute_argument_to_string): new prototype
29974 * kern/parser.c (state_transitions): reorder
29975 (grub_parser_cmdline_state): fix a bug and make more compact
29976 * script/sh/execute.c (grub_script_execute_argument_to_string):
29978 (grub_script_execute_cmdline): use new format
29979 * script/sh/function.c (grub_script_function_create): make functionname
29980 grub_script_arg. All callers updated
29981 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
29982 (grub_script_yylex): remove
29983 (grub_script_yylex2): renamed to ...
29984 (grub_script_yylex): ...renamed
29985 parse the expressions like a${b}c
29986 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
29987 (GRUB_PARSER_TOKEN_VAR): remove
29988 (GRUB_PARSER_TOKEN_NAME): likewise
29989 ("if"): declare as typeless
29990 ("while"): likewise
29991 ("function"): likewise
29996 (argument): likewise
29997 (script): accept empty scripts and make exit on error
29998 (arguments): use GRUB_PARSER_TOKEN_ARG
29999 (function): likewise
30000 (command): move error handling to script
30001 (menuentry): move grub_script_lexer_ref before
30002 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
30003 argument. All callers updated
30005 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30007 Prevent GRUB from probing floppies during boot.
30009 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30010 * commands/search.c (options): Add --no-floppy.
30011 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30012 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30013 --no-floppy when searching for UUIDs.
30015 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30017 Simplify the code duplication in commands/search.c.
30019 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30020 (search_fs): ... this. Update all users.
30022 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
30024 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30026 2009-05-28 Pavel Roskin <proski@gnu.org>
30028 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30029 Remove the original symlink explicitly.
30031 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30032 just one slash. That's how grub_fshelp_find_file() does it.
30034 2009-05-26 Pavel Roskin <proski@gnu.org>
30036 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30039 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30042 2009-05-25 Christian Franke <franke@computer.org>
30044 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30046 (grub_atapi_identify): Add wait after drive select.
30047 (grub_ata_identify): Do more strict status register check before
30048 calling grub_atapi_identify (). Suppress error message if status
30049 register is 0x00 after command failure. Add status register
30050 check after PIO read to avoid bogus identify due to stuck DRQ.
30051 Thanks to Pavel Roskin for testing.
30052 (grub_device_initialize): Remove unsafe status register check.
30053 Thanks to 'phcoder' for problem report and patch.
30054 Prevent sign extension in debug message.
30056 2009-05-23 Colin D Bennett <colin@gibibit.com>
30058 Cleaned up `include/grub/normal.h'. Grouped prototypes by
30059 definition file, and functions defined in `normal/menu.c' have had
30060 their prototypes moved to `include/grub/menu.h' for consistency.
30062 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
30064 (grub_menu_get_entry): Likewise.
30065 (grub_menu_get_timeout): Likewise.
30066 (grub_menu_set_timeout): Likewise.
30067 (grub_menu_execute_entry): Likewise.
30068 (grub_menu_execute_with_fallback): Likewise.
30069 (grub_menu_entry_run): Likewise.
30071 * include/grub/normal.h: Re-ordered and grouped function
30072 prototypes by file that the function is defined in.
30073 (grub_menu_execute_callback): Removed; moved to menu.h.
30074 (grub_menu_get_entry): Likewise.
30075 (grub_menu_get_timeout): Likewise.
30076 (grub_menu_set_timeout): Likewise.
30077 (grub_menu_execute_entry): Likewise.
30078 (grub_menu_execute_with_fallback): Likewise.
30079 (grub_menu_entry_run): Likewise.
30080 (grub_menu_addentry): Renamed from this ...
30081 (grub_normal_add_menu_entry): ... to this.
30083 * normal/main.c (grub_menu_addentry): Renamed from this ...
30084 (grub_normal_add_menu_entry): ... to this.
30086 * script/sh/execute.c (grub_script_execute_menuentry): Update
30087 reference to renamed grub_menu_addentry function.
30089 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
30091 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
30093 2009-05-22 Pavel Roskin <proski@gnu.org>
30095 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
30096 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
30097 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
30098 compiling for the i386 targets, but not for the utilities.
30100 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
30102 (grub_root_drive): Likewise.
30103 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
30105 (grub_root_drive): Change size to byte.
30106 (grub_start_addr): Remove.
30107 (grub_end_addr): Likewise.
30108 (grub_apm_bios_info): Likewise.
30110 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
30112 * normal/i386: Remove.
30113 * normal/powerpc: Likewise.
30114 * normal/sparc64: Likewise.
30115 * normal/x86_64: Likewise.
30117 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
30119 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
30120 * loader/i386/linux_trampoline.S: Fix indentation
30121 * loader/i386/xnu_helper.S: Likewise
30123 2009-05-18 Colin D Bennett <colin@gibibit.com>
30125 Display error messages when parsing a Lua statement fails.
30126 Previously, executing a syntactically invalid statement like
30127 ")foo" or "bar;" would silently fail.
30129 * script/lua/grub_main.c (handle_lua_error): New function.
30130 (grub_lua_parse_line): Improved reporting of Lua parser and
30133 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30135 Remove -Werror which causes build to fail on some systems
30137 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
30138 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
30139 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
30141 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30143 trampoline for linux on 64-bit platform
30145 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
30146 loader/i386/efi/linux_trampoline.S
30147 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
30149 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
30151 * loader/i386/linux_trampoline.S: moved here
30152 * loader/i386/efi/linux.c (allocate_pages): reserve space for
30154 (jumpvector): removed
30155 (grub_linux_trampoline_start): new declaration
30156 (grub_linux_trampoline_end): likewise
30157 (grub_linux_boot): use trampoline when on 64-bit platform
30158 * loader/i386/linux.c: likewise
30160 2009-05-16 Pavel Roskin <proski@gnu.org>
30162 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
30163 const to avoid a warning.
30164 (grub_lua_setenv): Likewise.
30165 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
30166 lmsg to fix a warning.
30168 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30170 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
30171 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30172 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
30173 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30174 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30175 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30176 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
30177 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
30179 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
30181 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
30183 2009-05-16 Bean <bean123ch@gmail.com>
30185 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
30186 (lua_mod_SOURCES): New variable.
30187 (lua_mod_CFLAGS): Likewise.
30188 (lua_mod_LDFLAGS): Likewise.
30190 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
30191 (setjmp_mod_SOURCES): New variable.
30192 (setjmp_mod_CFLAGS): Likewise.
30193 (setjmp_LDFLAGS): Likewise.
30195 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
30196 (setjmp_mod_SOURCES): New variable.
30197 (setjmp_mod_CFLAGS): Likewise.
30198 (setjmp_LDFLAGS): Likewise.
30200 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30201 (setjmp_mod_SOURCES): New variable.
30202 (setjmp_mod_CFLAGS): Likewise.
30203 (setjmp_LDFLAGS): Likewise.
30205 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
30206 (setjmp_mod_SOURCES): New variable.
30207 (setjmp_mod_CFLAGS): Likewise.
30208 (setjmp_LDFLAGS): Likewise.
30210 * normal/i386/setjmp.S: Moved from here ...
30211 * lib/i386/setjmp.S: ... Moved here
30212 * normal/x86_64/setjmp.S: Moved from here ...
30213 * lib/x86_64/setjmp.S: ... Moved here
30214 * normal/powerpc/setjmp.S: Moved from here ...
30215 * lib/powerpc/setjmp.S: ... Moved here
30216 * normal/sparc64/setjmp.S: Moved from here ...
30217 * lib/sparc64/setjmp.S: ... Moved here
30219 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
30220 returns_twice in mingw.
30222 * script/lua/grub_lib.c: New file.
30223 * script/lua/grub_lib.h: Likewise.
30224 * script/lua/grub_lua.h: Likewise.
30225 * script/lua/grub_main.c: Likewise.
30226 * script/lua/lapi.c: Likewise.
30227 * script/lua/lapi.h: Likewise.
30228 * script/lua/lauxlib.c: Likewise.
30229 * script/lua/lauxlib.h: Likewise.
30230 * script/lua/lbaselib.c: Likewise.
30231 * script/lua/lcode.c: Likewise.
30232 * script/lua/lcode.h: Likewise.
30233 * script/lua/ldblib.c: Likewise.
30234 * script/lua/ldebug.c: Likewise.
30235 * script/lua/ldebug.h: Likewise.
30236 * script/lua/ldo.c: Likewise.
30237 * script/lua/ldo.h: Likewise.
30238 * script/lua/ldump.c: Likewise.
30239 * script/lua/lfunc.c: Likewise.
30240 * script/lua/lfunc.h: Likewise.
30241 * script/lua/lgc.c: Likewise.
30242 * script/lua/lgc.h: Likewise.
30243 * script/lua/linit.c: Likewise.
30244 * script/lua/liolib.c: Likewise.
30245 * script/lua/llex.c: Likewise.
30246 * script/lua/llex.h: Likewise.
30247 * script/lua/llimits.h: Likewise.
30248 * script/lua/lmathlib.c: Likewise.
30249 * script/lua/lmem.c: Likewise.
30250 * script/lua/lmem.h: Likewise.
30251 * script/lua/loadlib.c: Likewise.
30252 * script/lua/lobject.c: Likewise.
30253 * script/lua/lobject.h: Likewise.
30254 * script/lua/lopcodes.c: Likewise.
30255 * script/lua/lopcodes.h: Likewise.
30256 * script/lua/loslib.c: Likewise.
30257 * script/lua/lparser.c: Likewise.
30258 * script/lua/lparser.h: Likewise.
30259 * script/lua/lstate.c: Likewise.
30260 * script/lua/lstate.h: Likewise.
30261 * script/lua/lstring.c: Likewise.
30262 * script/lua/lstring.h: Likewise.
30263 * script/lua/lstrlib.c: Likewise.
30264 * script/lua/ltable.c: Likewise.
30265 * script/lua/ltable.h: Likewise.
30266 * script/lua/ltablib.c: Likewise.
30267 * script/lua/ltm.c: Likewise.
30268 * script/lua/ltm.h: Likewise.
30269 * script/lua/lua.h: Likewise.
30270 * script/lua/luaconf.h: Likewise.
30271 * script/lua/lualib.h: Likewise.
30272 * script/lua/lundump.c: Likewise.
30273 * script/lua/lundump.h: Likewise.
30274 * script/lua/lvm.c: Likewise.
30275 * script/lua/lvm.h: Likewise.
30276 * script/lua/lzio.c: Likewise.
30277 * script/lua/lzio.h: Likewise.
30279 2009-05-16 Bean <bean123ch@gmail.com>
30281 * include/grub/kernel.h (grub_module_header_types): Add type
30284 * kern/main.c (grub_load_config): New function.
30285 (grub_main): Call grub_load_config to read boot config.
30287 * grub-mkimage (generate_image): New parameter config_path.
30288 (options): New option --config.
30289 (main): Parse --config option, and pass it to generate_image.
30291 2009-05-14 Christian Franke <franke@computer.org>
30293 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
30294 This fixes build on Cygwin.
30296 2009-05-14 Pavel Roskin <proski@gnu.org>
30298 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
30299 jump. This saves two bytes, so the typical case of 2 swapped
30300 drives would fit 32 bytes.
30302 2009-05-13 Pavel Roskin <proski@gnu.org>
30304 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
30305 grub_uint32_t to avoid a warning.
30307 * loader/i386/linux.c (allocate_pages): When assigning
30308 real_mode_mem, cast through grub_size_t to fix a warning. The
30309 code already makes sure that the value would fit a pointer.
30310 (grub_linux_setup_video): Cast render_target->data to
30311 grub_size_t to fix a warning.
30313 2009-05-13 Javier Martín <lordhabbit@gmail.com>
30315 * commands/i386/pc/drivemap.c: New file - implement drivemap
30317 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
30318 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
30320 2009-05-13 Pavel Roskin <proski@gnu.org>
30322 * util/i386/pc/grub-setup.c (setup): Remove unused variable
30323 embedding_area_exists.
30325 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
30327 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
30328 it easier to understand / work with.
30329 Improve warning messages for cases where there's no embedding area,
30330 or when it is too small (or core.img too large).
30332 2009-05-13 Pavel Roskin <proski@gnu.org>
30334 * loader/i386/pc/multiboot2.c: Add necessary includes for
30335 grub_multiboot2_real_boot().
30337 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
30338 PX record is always little-endian. We only need the lower 2
30341 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
30342 facilitate code reuse.
30343 (grub_cpio_mount): Use "struct head", not a char buffer. This
30344 fixes a warning reported by gcc 4.4.
30346 * kernel/disk.c (grub_disk_read): Use void pointer for the
30348 (grub_disk_write): Use const void pointer for the buffer.
30349 Adjust all callers. Remove unnecessary casts.
30351 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
30353 * util/i386/pc/grub-install.in: Update copyright year.
30355 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30359 * commands/gptsync.c: new file
30360 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
30361 (gptsync_mod_SOURCES): new variable
30362 (gptsync_mod_CFLAGS): likewise
30363 (gptsync_mod_LDFLAGS): likewise
30364 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
30366 (GRUB_PC_PARTITION_TYPE_HFS): likewise
30367 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
30368 * conf/i386-ieee1275.rmk: likewise
30369 * conf/i386-pc.rmk: likewise
30370 * conf/powerpc-ieee1275.rmk: likewise
30372 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30376 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
30377 (grub_dl_ref): likewise
30379 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
30381 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
30382 split in two functions (one for msdos and one for gpt).
30384 2009-05-08 Pavel Roskin <proski@gnu.org>
30386 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
30389 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
30390 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
30391 Initialize them with -1. Add sanity check for bad1. Eliminate
30394 2009-05-08 David S. Miller <davem@davemloft.net>
30396 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
30398 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
30400 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
30403 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
30405 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30406 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
30408 2009-05-05 David S. Miller <davem@davemloft.net>
30410 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
30412 2009-05-05 Pavel Roskin <proski@gnu.org>
30414 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
30415 of grub_dl_ref() and grub_dl_unref().
30416 * commands/parttool.c: Remove preprocessor conditionals around
30417 grub_dl_ref() and grub_dl_unref().
30418 * fs/affs.c: Likewise.
30419 * fs/afs.c: Likewise.
30420 * fs/cpio.c: Likewise.
30421 * fs/ext2.c: Likewise.
30422 * fs/fat.c: Likewise.
30423 * fs/hfs.c: Likewise.
30424 * fs/hfsplus.c: Likewise.
30425 * fs/iso9660.c: Likewise.
30426 * fs/jfs.c: Likewise.
30427 * fs/minix.c: Likewise.
30428 * fs/ntfs.c: Likewise.
30429 * fs/reiserfs.c: Likewise.
30430 * fs/sfs.c: Likewise.
30431 * fs/udf.c: Likewise.
30432 * fs/ufs.c: Likewise.
30433 * fs/xfs.c: Likewise.
30434 * include/grub/dl.h: Likewise.
30435 * loader/xnu.c: Likewise.
30437 2009-05-04 Pavel Roskin <proski@gnu.org>
30439 * commands/acpi.c: Remove unused variable my_mod.
30440 * partmap/amiga.c: Likewise.
30441 * partmap/apple.c: Likewise.
30442 * partmap/gpt.c: Likewise.
30443 * partmap/pc.c: Likewise.
30444 * partmap/sun.c: Likewise.
30445 * term/gfxterm.c: Likewise.
30446 * term/i386/pc/vesafb.c: Likewise.
30447 * term/i386/pc/vga.c: Likewise.
30449 2009-05-04 David S. Miller <davem@davemloft.net>
30451 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
30452 pointer args to grub_ieee1275_get_property().
30454 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
30456 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
30457 devices, and do not traverse down under controller nodes.
30459 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
30460 (grub_ofdisk_open): Use it to un-escape "," characters.
30461 * kern/disk.c (find_part_sep): New.
30462 (grub_disk_open): Use it to find the first non-escaped ','
30463 character in the disk name.
30464 * util/ieee1275/devicemap.c (escape_of_path): New.
30465 (grub_util_emit_devicemap_entry): Use it.
30466 * util/sparc64/ieee1275/grub-install.in: Update script to
30467 strip partition specifiers properly by not triggering on
30468 '\' escaped ',' characters.
30470 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30472 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
30474 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
30476 (linux_vesafb_modes): Add a lot of additional modes to the list (based
30477 on documentation from Wikipedia).
30479 2009-05-04 Pavel Roskin <proski@gnu.org>
30481 * disk/ata.c: Spelling fixes.
30482 * disk/raid.c: Likewise.
30483 * disk/usbms.c: Likewise.
30484 * disk/dmraid_nvidia.c: Likewise.
30485 * kern/ieee1275/openfw.c: Likewise.
30486 * kern/ieee1275/init.c: Likewise.
30487 * kern/ieee1275/cmain.c: Likewise.
30488 * boot/i386/pc/cdboot.S: Likewise.
30489 * video/readers/png.c: Likewise.
30490 * video/i386/pc/vbe.c: Likewise.
30491 * fs/udf.c: Likewise.
30492 * fs/hfs.c: Likewise.
30493 * fs/reiserfs.c: Likewise.
30494 * efiemu/runtime/efiemu.c: Likewise.
30495 * efiemu/main.c: Likewise.
30496 * efiemu/mm.c: Likewise.
30497 * include/grub/elf.h: Likewise.
30498 * include/grub/xnu.h: Likewise.
30499 * include/grub/usbdesc.h: Likewise.
30500 * include/grub/usb.h: Likewise.
30501 * include/grub/script_sh.h: Likewise.
30502 * include/grub/lib/LzmaEnc.h: Likewise.
30503 * include/grub/efiemu/efiemu.h: Likewise.
30504 * include/grub/command.h: Likewise.
30505 * normal/menu.c: Likewise.
30506 * normal/main.c: Likewise.
30507 * normal/datetime.c: Likewise.
30508 * bus/usb/uhci.c: Likewise.
30509 * mmap/i386/uppermem.c: Likewise.
30510 * mmap/mmap.c: Likewise.
30511 * commands/acpi.c: Likewise.
30512 * commands/test.c: Likewise.
30513 * partmap/apple.c: Likewise.
30514 * font/font.c: Likewise.
30515 * loader/sparc64/ieee1275/linux.c: Likewise.
30516 * loader/macho.c: Likewise.
30517 * loader/i386/bsd_trampoline.S: Likewise.
30518 * loader/i386/bsd.c: Likewise.
30519 * loader/xnu.c: Likewise.
30520 * term/i386/pc/vesafb.c: Likewise.
30521 * term/usb_keyboard.c: Likewise.
30522 * util/resolve.c: Likewise.
30523 * util/getroot.c: Likewise.
30525 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
30527 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
30529 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30531 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
30534 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30536 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
30537 parameter only available on BIOS.
30539 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30541 Removed wrong semicolon in declaration
30543 * grub/misc.h (grub_dprintf): remove semicolon
30545 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30547 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
30548 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
30549 is done by grub_cmd_linux() now).
30550 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
30551 restore video to text mode.
30552 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
30553 indicates lack of "vga=" parameter. "vga=0" is mapped to
30554 `GRUB_LINUX_VID_MODE_NORMAL'.
30556 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
30558 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
30559 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
30560 and `normal/script.c'. Add `kern/rescue_reader.c',
30561 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
30562 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
30563 `grub_script.tab.c'.
30565 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30566 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30568 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
30569 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30571 * Makefile.in: Remove duplicated 2008 in Copyright line.
30573 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30575 * util/misc.c (grub_util_warn): New function. Emits a warning
30577 * include/grub/util/misc.h (grub_util_warn): New declaration.
30579 * util/i386/pc/grub-install.in: Understand --force and pass it down
30582 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
30584 (setup): Improve error messages and add warnings when requested to
30585 install in odd layouts. Refuse to install using blocklists unless
30588 2009-05-04 martin f. krafft <madduck@madduck.net>
30590 * disk/raid.c (grub_raid_scan_device): Improve debug message.
30592 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30594 Updated copyright year
30596 * fs/hfsplus.c: updated copyright year
30598 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30602 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
30603 in the space previously used by unused3
30604 (grub_hfsplus_uuid): new function
30605 (grub_hfsplus_fs): added uuid field
30607 2009-05-03 Pavel Roskin <proski@gnu.org>
30609 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
30610 suppress warnings. It's no longer needed.
30611 * disk/host.c: Likewise.
30612 * disk/ata_pthru.c: Likewise.
30613 * disk/loopback.c: Likewise.
30614 * hook/datehook.c: Likewise.
30615 * parttool/pcpart.c: Likewise.
30616 * fs/i386/pc/pxe.c: Likewise.
30617 * fs/ntfscomp.c: Likewise.
30618 * efiemu/main.c: Likewise.
30619 * mmap/mmap.c: Likewise.
30620 * commands/crc.c: Likewise.
30621 * commands/hexdump.c: Likewise.
30622 * commands/hdparm.c: Likewise.
30623 * commands/acpi.c: Likewise.
30624 * commands/echo.c: Likewise.
30625 * commands/minicmd.c: Likewise.
30626 * commands/blocklist.c: Likewise.
30627 * commands/memrw.c: Likewise.
30628 * commands/loadenv.c: Likewise.
30629 * commands/usbtest.c: Likewise.
30630 * commands/lsmmap.c: Likewise.
30631 * commands/boot.c: Likewise.
30632 * commands/parttool.c: Likewise.
30633 * commands/configfile.c: Likewise.
30634 * commands/search.c: Likewise.
30635 * commands/ieee1275/suspend.c: Likewise.
30636 * commands/cat.c: Likewise.
30637 * commands/i386/pc/pxecmd.c: Likewise.
30638 * commands/i386/pc/play.c: Likewise.
30639 * commands/i386/pc/halt.c: Likewise.
30640 * commands/i386/pc/vbeinfo.c: Likewise.
30641 * commands/i386/pc/vbetest.c: Likewise.
30642 * commands/lspci.c: Likewise.
30643 * commands/date.c: Likewise.
30644 * commands/handler.c: Likewise.
30645 * commands/ls.c: Likewise.
30646 * commands/test.c: Likewise.
30647 * commands/cmp.c: Likewise.
30648 * commands/efi/loadbios.c: Likewise.
30649 * commands/efi/fixvideo.c: Likewise.
30650 * commands/halt.c: Likewise.
30651 * commands/help.c: Likewise.
30652 * commands/reboot.c: Likewise.
30653 * hello/hello.c: Likewise.
30654 * script/sh/main.c: Likewise.
30655 * loader/xnu.c: Likewise.
30656 * term/terminfo.c: Likewise.
30657 * term/i386/pc/serial.c: Likewise.
30658 * term/usb_keyboard.c: Likewise.
30660 2009-05-03 David S. Miller <davem@davemloft.net>
30662 * normal/menu.c: Include grub/parser.h
30664 2009-05-03 Pavel Roskin <proski@gnu.org>
30666 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
30668 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
30669 Suggested by Javier Martín <lordhabbit@gmail.com>
30671 * util/i386/pc/grub-mkrescue.in: Allow for the case when
30672 efiemu??.o doesn't exist.
30673 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
30676 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
30678 FreeBSD 64-bit support
30680 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
30681 and loader/i386/bsd_trampoline.S
30682 (bsd_mod_ASFLAGS): new variable
30683 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
30684 (FREEBSD_MODTYPE_KERNEL64): likewise
30685 (grub_bsd64_trampoline_start): likewise
30686 (grub_bsd64_trampoline_end): likewise
30687 (grub_bsd64_trampoline_selfjump): likewise
30688 (grub_bsd64_trampoline_gdt): likewise
30689 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
30690 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
30691 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
30692 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
30693 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
30695 * loader/i386/bsd_pagetable.c: new file
30696 * loader/i386/bsd_trampoline.S: likewise
30697 * loader/i386/bsd.c (ALIGN_QWORD): new macro
30698 (ALIGN_VAR): likewise
30699 (entry_hi): new variable
30700 (kern_end_mdofs): likewise
30701 (is_64bit): likewise
30702 (grub_freebsd_add_meta): use ALIGN_VAR
30703 (grub_e820_mmap): new declaration
30704 (grub_freebsd_add_mmap): new function
30705 (grub_freebsd_add_meta_module): support 64 bit kernels
30706 (grub_freebsd_list_modules): use ALIGN_VAR
30707 (gdt_descriptor): new declaration
30708 (grub_freebsd_boot): support 64 bit kernels
30709 (grub_bsd_elf64_hook): new function
30710 (grub_bsd_load_elf): support elf64
30712 2009-05-03 Bean <bean123ch@gmail.com>
30714 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
30715 after we get the result of if statement.
30717 2009-05-03 Bean <bean123ch@gmail.com>
30719 * Makefile.in (enable_efiemu): New variable.
30721 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
30723 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
30725 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
30726 path, add -mno-red-zone option.
30727 (efiemu64_s.o): Likewise.
30728 (efiemu64.o): Use macro $^ for source file.
30730 * configure.ac (--enable-efiemu): New option.
30732 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
30736 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
30737 (pkglib_MODULES): add xnu.mod
30738 (xnu_mod_SOURCES): new variable
30739 (xnu_mod_CFLAGS): likewise
30740 (xnu_mod_LDFLAGS): likewise
30741 (xnu_mod_ASFLAGS): likewise
30742 * conf/i386-pc.rmk: likewise
30743 * conf/x86_64-efi.rmk: likewise
30744 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
30746 * include/grub/i386/macho.h: new file
30747 * include/grub/i386/xnu.h: likewise
30748 * include/grub/macho.h: likewise
30749 * include/grub/machoload.h: likewise
30750 * include/grub/x86_64/macho.h: likewise
30751 * include/grub/x86_64/xnu.h: likewise
30752 * include/grub/xnu.h: likewise
30753 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
30754 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
30755 * loader/i386/efi/xnu.c: new file
30756 * loader/i386/pc/xnu.c: likewise
30757 * loader/i386/xnu.c: likewise
30758 * loader/i386/xnu_helper.S: likewise
30759 * loader/macho.c: likewise
30760 * loader/xnu.c: likewise
30761 * loader/xnu_resume.c: likewise
30762 * util/grub-dumpdevtree: likewise
30763 * include/grub/i386/pit.h: include grub/err.h
30764 (grub_pit_wait): export
30765 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
30767 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30771 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
30772 _linux_efi, linux_efi.
30773 new files in grub-emu
30774 new targets efiemu32.o and efiemu64.o
30775 * loader/linux_normal_efiemu.c: likewise
30776 * loader/i386/efi/linux.c: added preliminary efiemu support
30777 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
30779 * include/grub/autoefi.h: new file
30780 * include/grub/i386/efiemu.h: likewise
30781 * include/grub/i386/pc/efiemu.h: likewise
30782 * include/grub/efi/api.h: add LL suffix when necessary
30783 new definitions relating to tables
30784 * include/grub/efiemu/efiemu.h: new file
30785 * include/grub/efiemu/runtime.h: likewise
30786 * efiemu/prepare.c: likewise
30787 * efiemu/loadcore_common.c: likewise
30788 * efiemu/loadcore64.c: likewise
30789 * efiemu/runtime/efiemu.sh: likewise
30790 * efiemu/runtime/efiemu.S: likewise
30791 * efiemu/runtime/efiemu.c: likewise
30792 * efiemu/runtime/config.h: likewise
30793 * efiemu/prepare32.c: likewise
30794 * efiemu/main.c: likewise
30795 * efiemu/modules/pnvram.c: likewise
30796 * efiemu/modules/i386: likewise
30797 * efiemu/modules/i386/pc: likewise
30798 * efiemu/modules/acpi.c: likewise
30799 * efiemu/i386/pc/cfgtables.c: likewise
30800 * efiemu/i386/loadcore64.c: likewise
30801 * efiemu/i386/loadcore32.c: likewise
30802 * efiemu/prepare64.c: likewise
30803 * efiemu/loadcore.c: likewise
30804 * efiemu/symbols.c: likewise
30805 * efiemu/mm.c: likewise
30806 * efiemu/loadcore32.c: likewise
30808 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30812 * commands/acpi.c: new file
30813 * commands/i386/pc/acpi.c: likewise
30814 * commands/efi/acpi.c: likewise
30815 * include/grub/acpi.h: likewise
30816 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
30817 (acpi_mod_SOURCES): new variable
30818 (acpi_mod_CFLAGS): likewise
30819 (acpi_mod_LDFLAGS): likewise
30820 * conf/i386-efi.rmk: likewise
30821 * conf/x86_64-efi.rmk: likewise
30823 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30825 Missing part from mmap patch
30827 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
30828 (grub_mmap_unregister)
30829 (grub_mmap_free_and_unregister): use grub_mmap_register
30831 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30835 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
30836 * loader/i386/linux.c (find_mmap_size): likewise
30837 (allocate_pages): likewise
30838 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
30839 (grub_fill_multiboot_mmap): likewise
30840 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
30841 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
30842 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
30843 (OPENBSD_MMAP_RESERVED): likewise
30844 * include/grub/i386/pc/memory.h: include grub/memory.h
30845 (grub_lower_mem): removed
30846 (grub_upper_mem): likewise
30847 (GRUB_MACHINE_MEMORY_ACPI): new definition
30848 (GRUB_MACHINE_MEMORY_NVS): likewise
30849 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
30850 (GRUB_MACHINE_MEMORY_HOLE): likewise
30851 (grub_machine_mmap_register): likewise
30852 (grub_machine_mmap_unregister): likewise
30853 (grub_machine_get_upper): likewise
30854 (grub_machine_get_lower): likewise
30855 (grub_machine_get_post64): likewise
30856 * include/grub/i386/efi/memory.h: new file
30857 * include/grub/x86_64/efi/memory.h: likewise
30858 * include/grub/efi/memory.h: likewise
30859 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
30860 (mmap_mod_SOURCES): new variable
30861 (mmap_mod_LDFLAGS): likewise
30862 (mmap_mod_ASFLAGS): likewise
30863 * conf/i386-coreboot.rmk: likewise
30864 * conf/i386-ieee1275.rmk: likewise
30865 * conf/i386-efi.rmk: likewise
30866 * conf/x86_64-efi.rmk: likewise
30867 * include/grub/types.h (UINT_TO_PTR): new macro
30868 (PTR_TO_UINT32): likewise
30869 (PTR_TO_UINT64): likewise
30870 * include/grub/memory.h: new file
30871 * mmap/i386/pc/mmap.c: likewise
30872 * mmap/i386/pc/mmap_helper.S: likewise
30873 * mmap/i386/uppermem.c: likewise
30874 * mmap/mmap.c: likewise
30875 * mmap/efi/mmap.c: likewise
30876 * kern/i386/coreboot/init.c (grub_machine_init): don't use
30878 * kern/i386/pc/init.c (grub_lower_mem): removed variable
30879 (grub_upper_mem): likewise
30880 (grub_machine_init): don't use grub_upper_mem,
30881 make grub_lower_mem local
30882 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
30883 grub_mmap_iterate and grub_mmap_get_upper
30884 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
30886 2009-05-02 Bean <bean123ch@gmail.com>
30888 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
30889 script/sh/parser.y.
30890 (pkglib_MODULES): Add normal.mod and sh.mod.
30891 (normal_SOURCES): New variable.
30892 (normal_mod_CFLAGS): Likewise.
30893 (normal_mod_LDFLAGS): Likewise.
30894 (sh_mod_SOURCES): Likewise.
30895 (sh_mod_CFLAGS): Likewise.
30896 (sh_mod_LDFLAGS): Likewise.
30898 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
30899 script/sh/lexer.c_DEPENDENCIES.
30900 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
30901 kern/rescue_reader.c and kern/rescue_parser.c.
30902 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
30903 (grub_emu_SOURCES): Change source files.
30904 (pkglib_MODULES): Remove normal.mod.
30905 (normal_SOURCES): Removed.
30906 (normal_mod_CFLAGS): Likewise.
30907 (normal_mod_LDFLAGS): Likewise.
30908 * conf/i386-coreboot.rmk: Likewise.
30909 * conf/i386-efi.rmk: Likewise.
30910 * conf/i386-ieee1276.rmk: Likewise.
30911 * conf/powerpc-ieee1275.rmk: Likewise.
30912 * conf/sparc64-ieee1275.rmk: Likewise.
30913 * conf/x86_64-efi.rmk: Likewise.
30915 * include/grub/command.h (grub_command_execute): New inline function.
30917 * include/grub/menu.h (grub_menu_entry): Removed commands field.
30919 * include/grub/normal.h: Remove <grub/setjmp.h>.
30920 (grub_fs_module_list): Moved to normal/autofs.c.
30921 (grub_exit_env): Removed.
30922 (grub_command_execute): Likewise.
30923 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
30925 (read_command_list): New function declaration.
30926 (read_fs_list): Likewise.
30928 * include/parser.h: Include <grub/reader.h>.
30929 (grub_parser_split_cmdline): Change type of getline parameter.
30930 (grub_parser): New structure.
30931 (grub_parser_class): New variable.
30932 (grub_parser_execute): New function declaration.
30933 (grub_register_rescue_parser): Likewise.
30934 (grub_parser_register): New inline function.
30935 (grub_parser_unregister): Likewise.
30936 (grub_parser_get_current): Likewise.
30937 (grub_parser_set_current): Likewise.
30939 * include/grub/reader.h: New file.
30940 * kern/reader.c: Likewise.
30941 * kern/rescue_parser.c: Likewise.
30942 * kern/rescue_reader.c: Likewise.
30943 * normal/autofs.c: Likewise.
30944 * normal/dyncmd.c: Likewise.
30946 * include/grub/rescue.h: Removed.
30947 * normal/command.h: Likewise.
30949 * include/grub/script.h: Moved to ...
30950 * include/grub/script_sh.h: ... Moved here.
30951 * normal/execute.c: Moved to ...
30952 * script/sh/execute.c: ... Moved here.
30953 * normal/function.c: Moved to ...
30954 * script/sh/function.c: ... Moved here.
30955 * normal/lexer.c: Moved to ...
30956 * script/sh/lexer.c: ... Moved here.
30957 * normal/parser.y: Moved to ...
30958 * script/sh/parser.y: ... Moved here.
30959 * normal/script.c: Moved to ...
30960 * script/sh/script.c: ... Moved here.
30962 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
30964 (grub_exit_env): Removed.
30965 (fs_module_list): Moved to normal/autofs.c.
30966 (grub_file_getline): Don't handle comment here.
30967 (free_menu): Skip removed field entry->commands.
30968 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
30970 (read_config_file): Removed nested parameter, change getline function.
30971 (grub_enter_normal_mode): Removed.
30972 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
30973 (read_command_list): Likewise.
30974 (autoload_fs_module): Moved to normal/autofs.c.
30975 (read_fs_list): Likewise.
30976 (reader_nested): New variable.
30977 (grub_normal_execute): Run parser.sh to switch to sh parser.
30978 (grub_cmd_rescue): Removed.
30979 (cmd_normal): Removed.
30980 (grub_cmd_normal): Unregister itself at the beginning. Don't register
30982 (grub_cmdline_run): New function.
30983 (grub_normal_reader_init): Likewise.
30984 (grub_normal_read_line): Likewise.
30985 (grub_env_write_pager): Likewise.
30986 (cmdline): New variable.
30987 (grub_normal_reader): Likewise.
30988 (GRUB_MOD_INIT): Register normal reader and set as current, register
30989 pager hook, register normal command with grub_register_command_prio,
30990 so that it won't show up in command.lst.
30991 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
30992 grub_fs_autoload_hook.
30994 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
30995 (grub_menu_execute_entry): Replace grub_script_execute with
30996 grub_parser_execute, change parameter to grub_command_execute.
30998 * normal/menu_text.c: Remove <grub/script.h>.
31000 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31001 and <grub/parser.h>.
31002 (run): Change editor_getline to use new parser interface. Change
31003 parameter to grub_command_execute.
31005 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31006 <grub/reader.h> and <grub/parser.h>.
31007 (grub_load_normal_mode): Execute normal command.
31008 (grub_main): Call grub_register_core_commands,
31009 grub_register_rescue_parser and grub_register_rescue_reader, use
31010 grub_reader_loop to enter input loop.
31012 * kern/parser.c (grub_parser_split_cmdline): Change type of
31014 (grub_parser_class): New variable.
31015 (grub_parser_execute): New function.
31017 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31018 * loader/multiboot2.c: Likewise.
31019 * loader/sparc64/ieee1275/linux.c: Likewise.
31021 * util/grub-emu.c (read_command_list): New dummy function.
31023 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31025 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31026 count to 16 for CCISS and IDA.
31028 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31030 * normal/menu_text.c (grub_wait_after_message): Print a newline
31031 after waiting for user input.
31033 * loader/i386/linux.c: Include `<grub/normal.h>'.
31034 (grub_cmd_linux): Improve the error message about `ask' mode, by
31035 waiting for user input so it's not missed (we can do this, since
31036 user requested interaction).
31038 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31040 Added missing lst to grub-mkrescue
31042 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31043 and ${input_dir}/parttool.lst
31045 2009-04-30 David S. Miller <davem@davemloft.net>
31047 * util/hostdisk.c (device_is_wholedisk): New function.
31048 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31049 zero only if device_is_wholedisk() returns true.
31051 * util/hostdisk.c (convert_system_partition_to_system_disk):
31052 Handle virtual disk devices named /dev/vdiskX as found on sparc
31055 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
31056 lettered partition specifier is found, convert to numbered.
31058 2009-04-29 David S. Miller <davem@davemloft.net>
31060 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
31061 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31063 * normal/command.c: Add missing newline at end of file.
31065 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
31067 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
31068 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
31069 grub_ofdisk_read): Likewise, and deal similarly with the fact that
31070 ihandles have a 32-bit type but need to be stored in a "void *".
31072 2009-04-28 Pavel Roskin <proski@gnu.org>
31074 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
31075 not disk. Adjust all dependencies.
31076 (grub_fs_uuid_close): Use grub_device_close(), not
31079 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
31080 parent's partition, don't copy it by reference, as it gets freed
31083 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31085 Preboot hooks support
31087 * commands/boot.c (struct grub_preboot_t): new declaration
31088 (preboots_head): new variable
31089 (preboots_tail): likewise
31090 (grub_loader_register_preboot_hook): new function
31091 (grub_loader_unregister_preboot_hook): likewise
31092 (grub_loader_set): launch preboot hooks
31093 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
31094 (grub_loader_register_preboot_hook): new declaration
31095 (grub_loader_unregister_preboot_hook): likewise
31097 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31101 * disk/scsi.c (grub_scsi_open): added missing cast when
31102 calling grub_dprintf
31104 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
31106 Bug and warning fixes
31108 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
31110 * commands/test.c (test_parse): fixed bug with file tests and corrected
31111 declaration of find_file
31113 2009-04-26 Pavel Roskin <proski@gnu.org>
31115 * Makefile.in: Don't install empty manual pages if help2man is
31116 missing. Use help2man option for output, not shell redirection.
31118 2009-04-26 David S. Miller <davem@davemloft.net>
31120 * util/grub-mkdevicemap.c (make_device_map): Add missing
31121 NESTED_FUNC_ATTR to process_device().
31123 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31127 * commands/test.c: rewritten to use bash-like test
31129 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31131 Parttool autoloading and improvements
31133 * Makefile.in (pkglib_DATA): add parttool.lst
31134 (parttool.lst): new target
31135 * genmk.rb: generate parttool-*
31136 (CLEANFILES): add #{parttool}
31137 (PARTTOOLFILES): new variable
31138 * genparttoollist.sh: new file
31139 * parttool/pcpart.c (grub_pcpart_boot): more feedback
31140 (grub_pcpart_type): likewise
31141 * commands/parttool.c (helpmsg): new variable
31142 (grub_cmd_parttool): output help if not enough arguments are supplied
31144 (GRUB_MOD_INIT(parttool)): use helpmsg
31146 2009-04-24 David S. Miller <davem@davemloft.net>
31148 Avoiding opening same device multiple times in device iterator.
31150 * kern/device.c: (grub_device_iterate): Define struct part_ent,
31151 and use it to build a list of partitions in iterate_disk() and
31152 iterate_partition().
31154 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
31157 * disk/ieee1275/nand.c (grub_nand_iterate): Return
31158 grub_devalias_iterate() result instead of unconditional 0.
31159 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
31160 Also, capture hook return value, either directly or via
31161 grub_children_iterate(), and propagate to caller.
31162 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
31163 grub_children_iterate): Return value is now 'int' instead of
31165 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
31166 like a proper iterator, stopping when hooks return non-zero.
31167 (grub_devalias_iterate): Likewise.
31169 2009-04-23 David S. Miller <davem@davemloft.net>
31171 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
31173 2009-04-22 David S. Miller <davem@davemloft.net>
31175 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
31176 is larger than address_cells, use that value for address_cells too.
31178 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
31179 IEEE1275_MAX_PATH_LEN): Define.
31180 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
31181 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
31182 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
31183 'devtype'. Explicitly NULL terminate devalias expansion.
31185 * util/sparc64/ieee1275/misc.c: New file.
31186 * util/sparc64/ieee1275/grub-setup.c: New file.
31187 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
31188 * util/sparc64/ieee1275/grub-mkimage.c: New file.
31189 * util/sparc64/ieee1275/grub-install.in: New file.
31190 * util/ieee1275/ofpath.c: New file.
31191 * util/ieee1275/devicemap.c: New file.
31192 * util/devicemap.c: New file.
31193 * util/deviceiter.c: New file.
31194 * kern/sparc64/ieee1275/init.c: New file.
31195 * include/grub/util/ofpath.h: New file.
31196 * include/grub/util/deviceiter.h: New file.
31197 * util/grub-mkdevicemap.c: Include deviceiter.h.
31198 Implement using grub_util_emit_devicemap_entry and
31199 grub_util_iterate_devices.
31200 * conf/i386-corebook.rmk: Build util/deviceiter.c and
31201 util/devicemap.c into grub-mkdevicemap
31202 * conf/i386-efi.rmk: Likewise.
31203 * conf/i386-ieee1275.rmk: Likewise.
31204 * conf/i386-pc.rmk: Likewise.
31205 * conf/powerpc-ieee1275.rmk: Likewise.
31206 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
31207 images and installation utilities. Build kernel as image
31208 instead of as elf binary. Use common rules as much as possible.
31210 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
31212 Correct GPT definition
31214 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31217 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
31219 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
31221 2009-04-19 David S. Miller <davem@davemloft.net>
31223 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
31224 (grub_rescue_cmd_linux): Rename to...
31225 (grub_cmd_linux): and fix prototype.
31226 (grub_rescue_cmd_initrd): Rename to...
31227 (grub_cmd_initrd): and fix prototype.
31228 (cmd_linux, cmd_initrd): New.
31229 (GRUB_MOD_INIT(linux)): Use grub_register_command().
31230 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
31232 2009-04-17 Pavel Roskin <proski@gnu.org>
31234 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
31236 (grub_ohci_transfer): Likewise.
31238 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
31240 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
31241 return without a value. Fix inconsistent indentation.
31243 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
31244 match struct grub_fs.
31246 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
31247 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
31248 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31249 * commands/lspci.c (grub_lspci_iter): Likewise.
31251 2009-04-16 Bean <bean123ch@gmail.com>
31253 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
31256 2009-04-15 Pavel Roskin <proski@gnu.org>
31258 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
31259 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
31260 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
31263 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31265 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
31266 that no multiple data or metadata areas are supported and `Unknown
31269 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31271 Move loader out of the kernel
31273 * kern/loader.c: moved to ...
31274 * commands/boot.c: ... moved here
31275 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
31276 * commands/boot.c (grub_cmd_boot): moved here. All users updated
31277 * include/grub/kernel.h (grub_machine_fini): export
31278 * include/grub/loader.h (grub_loader_is_loaded): update declaration
31279 (grub_loader_set): likewise
31280 (grub_loader_unset): likewise
31281 (grub_loader_boot): likewise
31282 * conf/common.rmk: new module boot.mod
31283 (pkglib_MODULES): add boot.mod
31284 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
31285 (grub_emu_SOURCES): likewise
31286 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
31287 (grub_emu_SOURCES): likewise
31288 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
31289 (grub_emu_SOURCES): likewise
31290 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
31291 (grub_emu_SOURCES): likewise
31292 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
31293 (grub_emu_SOURCES): likewise
31294 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
31295 (grub_emu_SOURCES): likewise
31296 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
31297 (grub_emu_SOURCES): likewise
31299 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31301 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
31303 * kern/misc.c (grub_itoa): Removed function
31304 (grub_ltoa): likewise
31305 (grub_vsprintf): use grub_lltoa
31307 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
31311 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
31312 * conf/i386-coreboot.rmk: likewise
31313 * conf/i386-ieee1275.rmk: likewise
31314 * conf/powerpc-ieee1275.rmk: likewise
31316 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
31318 * INSTALL: Add that `./autogen.sh' needs to be run before
31321 2009-04-14 Bean <bean123ch@gmail.com>
31323 * Makefile.in (pkglib_DATA): Add handler.lst.
31324 (handler.lst): New rule.
31326 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
31327 * conf/i386-coreboot.rmk: Likewise.
31328 * conf/i386-ieee1275.rmk: Likewise.
31329 * conf/i386-efi.rmk: Likewise.
31330 * conf/x86_64-efi.rmk: Likewise.
31331 * conf/powerpc-ieee1275.rmk: Likewise.
31332 * conf/sparc64-ieee1275.rmk: Likewise.
31334 * genhandlerlist.sh: New file.
31336 * genmk.rb: Add rules to generate handler.lst.
31338 * include/grub/normal.h (grub_file_getline): New function definition.
31339 (read_handler_list): Likewise.
31340 (free_handler_list): Likewise.
31342 * include/grub/term.h (grub_term_register_input): Add name parameter
31343 for auto generation of handler.lst.
31344 (grub_term_register_output): Likewise.
31346 * normal/handler.c: New file.
31348 * normal/main.c (get_line): Renamed to grub_file_getline.
31349 (read_config_file): Use the newly renamed grub_file_getline.
31350 (read_command_list): Likewise.
31351 (read_fs_list): Likewise.
31352 (grub_normal_execute): Call read_handler_list to parse handler.lst.
31353 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
31355 * term/efi/console.c (grub_console_init): Add name parameter for auto
31356 generation of handler.lst.
31357 * term/gfxterm.c: Likewise.
31358 * term/i386/pc/at_keyboard.c: Likewise.
31359 * term/i386/pc/console.c: Likewise.
31360 * term/i386/pc/serial.c: Likewise.
31361 * term/i386/pc/vesafb.c: Likewise.
31362 * term/i386/pc/vga.c: Likewise.
31363 * term/i386/pc/vga_text.c: Likewise.
31364 * term/ieee1275/ofconsole.c: Likewise.
31365 * term/usb_keyboard.c: Likewise.
31367 2009-04-14 Bean <bean123ch@gmail.com>
31369 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
31370 properly with null character.
31372 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31374 * configure: Remove.
31375 * config.h.in: Likewise.
31376 * stamp-h.in: Likewise.
31377 * DISTLIST: Likewise.
31378 * conf/common.mk: Likewise.
31379 * conf/i386-coreboot.mk: Likewise.
31380 * conf/i386-efi.mk: Likewise.
31381 * conf/i386-ieee1275.mk: Likewise.
31382 * conf/i386.mk: Likewise.
31383 * conf/i386-pc.mk: Likewise.
31384 * conf/powerpc-ieee1275.mk: Likewise.
31385 * conf/sparc64-ieee1275.mk: Likewise.
31386 * conf/x86_64-efi.mk: Likewise.
31388 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
31391 2009-04-14 John Stanley <jpsinthemix@verizon.net>
31392 David S. Miller <davem@davemloft.net>
31394 * util/hostdisk.c (make_device_name): Fix buffer length
31397 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31399 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
31400 <sys/param.h> and <sys/sysctl.h>.
31401 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
31402 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
31403 opening the device and reset them afterwards.
31405 2009-04-13 Pavel Roskin <proski@gnu.org>
31407 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
31408 Reported by John Stanley <jpsinthemix@verizon.net>
31410 2009-04-13 Robert Millan <rmh@aybabtu.com>
31412 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
31413 that name for menuentries when appropriate.
31415 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31417 * util/grub.d/10_freebsd.in: Add a missing `fi'.
31419 2009-04-13 Robert Millan <rmh@aybabtu.com>
31421 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
31422 to Linux, simply abort telling the user it's no longer supported.
31424 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31426 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
31427 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
31428 `freebsd_loadenv' only when devices.hints exist.
31430 2009-04-13 Pavel Roskin <proski@gnu.org>
31432 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
31434 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31436 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
31438 (grub_drive): Likewise.
31440 2009-04-13 David S. Miller <davem@davemloft.net>
31442 * kern/sparc64/ieee1275/ieee1275.c: New file.
31443 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
31444 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
31445 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
31446 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
31447 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
31448 grub_ieee1275_alloc_physmem): Declare new exported functions.
31450 * include/grub/sparc64/ieee1275/loader.h: New file.
31451 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31452 * include/grub/sparc64/kernel.h: Likewise.
31453 * loader/sparc64/ieee1275/linux.c: Likewise.
31455 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
31456 (grub_fstest_SOURCES): Likewise.
31458 * util/hostdisk.c (make_device_name): Do not make any assumptions
31459 about the length of drive names.
31461 * kern/dl.c (grub_dl_load_file): Close file immediately when
31462 we are done using it.
31464 2009-04-12 David S. Miller <davem@davemloft.net>
31466 * kern/misc.c (grub_ltoa): Fix cast when handling negative
31467 values. Noticed by Pavel Roskin.
31469 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
31472 * genmk.rb: Add more flexible image type specification, also
31473 pass --strip-unneeded to objcopy.
31474 * conf/i386-pc.rmk: Use *_FORMAT.
31475 * conf/i386-pc.mk: Rebuilt.
31477 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
31478 (OFDISK_HASH_SZ): Define.
31479 (ofdisk_hash): New hash table.
31480 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
31481 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
31482 instead of device phandle which is not unique.
31484 * kern/sparc64/ieee1275/init.c: Delete, replace with...
31485 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
31486 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
31487 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
31488 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
31489 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
31490 GRUB_KERNEL_MACHINE_DATA_END): Define.
31491 (grub_kernel_image_size, grub_total_module_size): Declare.
31493 2009-04-12 Pavel Roskin <proski@gnu.org>
31495 * configure.ac: Change the logic when we check for target tools.
31496 Do it when the target is specified and it's different from the
31497 specified value of the host.
31499 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
31501 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
31502 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
31503 GNU/kFreeBSD. Check if a device is a character device. Use
31504 DIOCGMEDIASIZE to get the size.
31505 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
31506 support for GNU/kFreeBSD.
31507 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
31508 is a character device instead of a block device. Add support for
31509 FreeBSD device names.
31511 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
31512 is a character device instead of a block device.
31514 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
31515 is a character device instead of a block device.
31517 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
31519 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
31520 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
31521 FreeBSD. Check if a device is a character device. Use
31522 DIOCGMEDIASIZE to get the size.
31523 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
31524 support for FreeBSD.
31525 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
31526 is a character device instead of a block device. Add support for
31527 FreeBSD device names.
31529 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
31530 a character device instead of a block device.
31531 (grub_util_check_char_device): New function.
31533 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
31534 a character device instead of a block device.
31536 * include/grub/util/getroot.h (grub_util_check_char_device): New
31539 2009-04-11 David S. Miller <davem@davemloft.net>
31541 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
31543 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
31544 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
31545 function, if present.
31546 (__bswapdi2): Likewise.
31548 * include/grub/sparc64/ieee1275/boot.h: New file.
31549 * boot/sparc64/ieee1275/boot.S: Likewise.
31550 * boot/sparc64/ieee1275/diskboot.S: Likewise.
31552 * kern/misc.c (grub_ltoa): New function.
31553 (grub_vsprintf): Use it to format 'long' integers.
31555 2009-04-10 David S. Miller <davem@davemloft.net>
31557 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
31558 slots are of type grub_ieee1275_cell_t.
31559 (grub_nand_read): Likewise.
31560 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
31561 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
31562 macros are used to compare values in arg/ret block of the call.
31563 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
31564 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
31565 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
31566 grub_ieee1275_instance_to_path, grub_ieee1275_write,
31567 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
31568 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
31569 grub_ieee1275_close, grub_ieee1275_set_property,
31570 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
31571 grub_ieee1275_cell_t.
31572 * kern/ieee1275/openfw.c (grub_map): Likewise.
31573 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
31574 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
31576 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
31577 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
31578 (grub_devalias_iterate): Likewise.
31580 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
31584 * fs/ufs.c (INODE_NBLOCKS): new definition
31585 (struct grub_ufs_dirent): added fields for non-BSD dirents
31586 (grub_ufs_get_file_block): fixed double indirect handling
31587 (grub_ufs_lookup_symlink): use more robust way to determine whether
31589 (grub_ufs_find_file): support for non-BSD dirents
31590 (grub_ufs_dir): support for non-BSD dirents
31592 2009-04-10 Bean <bean123ch@gnail.com>
31594 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
31595 attribute, otherwise the size would be wrong for i386 platform.
31597 * include/grub/pci.h (grub_pci_read_word): New inline function.
31598 (grub_pci_read_byte): Likewise.
31599 (grub_pci_write): Likewise.
31600 (grub_pci_write_word): Likewise.
31601 (grub_pci_write_byte): Likewise.
31603 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
31605 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
31606 (find_framebuf): Scan pci to locate the frame buffer address.
31608 * commands/efi/fixvideo.c: New file.
31610 * commands/efi/loadbios.c: Likewise.
31612 * commands/memrw.c: Likewise.
31614 * util/grub-dumpbios.in: Likewise.
31616 * conf/common.rmk (grub-dumpbios): New utility.
31617 (pkglib_MODULES): New module memrw.mod.
31618 (memrw_mod_SOURCE): New macro.
31619 (memrw_mod_CFLAGS): Likewise.
31620 (memrw_mod_LDFLAGS): Likewise.
31622 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
31624 (loadbios_mod_SOURCE): New macro.
31625 (loadbios_mod_CFLAGS): Likewise.
31626 (loadbios_mod_LDFLAGS): Likewise.
31627 (fixvideo_mod_SOURCE): Likewise.
31628 (fixvideo_mod_CFLAGS): Likewise.
31629 (fixvideo_mod_LDFLAGS): Likewise.
31631 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
31633 (loadbios_mod_SOURCE): New macro.
31634 (loadbios_mod_CFLAGS): Likewise.
31635 (loadbios_mod_LDFLAGS): Likewise.
31636 (fixvideo_mod_SOURCE): Likewise.
31637 (fixvideo_mod_CFLAGS): Likewise.
31638 (fixvideo_mod_LDFLAGS): Likewise.
31640 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
31642 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
31644 2009-04-07 David S. Miller <davem@davemloft.net>
31646 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
31647 support for R_SPARC_OLO10 relocations. Fix compile warning for
31648 R_SPARC_WDISP30 case.
31649 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
31651 2009-04-06 Pavel Roskin <proski@gnu.org>
31653 * include/grub/misc.h (ARRAY_SIZE): New macro.
31654 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
31656 * loader/i386/linux.c (allocate_pages): Use free_pages().
31657 (grub_linux_unload): Don't use free_pages().
31658 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
31659 wrong index. Treat all other modes as text modes.
31660 (grub_cmd_linux): Initialize vid_mode unconditionally to
31661 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
31663 * commands/help.c (print_command_help): Use cmd->prio, not
31664 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
31666 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
31670 * parttool/pcpart.c: new file
31671 * commands/parttool.c: likewise
31672 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
31673 (parttool_mod_SOURCES): new variable
31674 (parttool_mod_CFLAGS): likewise
31675 (parttool_mod_LDFLAGS): likewise
31676 (pcpart_mod_SOURCES): likewise
31677 (pcpart_mod_CFLAGS): likewise
31678 (pcpart_mod_LDFLAGS): likewise
31679 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
31680 and parttool/pcpart.c
31681 * conf/i386-efi.rmk: likewise
31682 * conf/i386-ieee1275.rmk: likewise
31683 * conf/i386-pc.rmk: likewise
31684 * conf/powerpc-ieee1275.rmk: likewise
31685 * conf/sparc64-ieee1275.rmk: likewise
31686 * conf/x86_64-ieee1275.rmk: likewise
31688 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
31690 Support for mtime and further expandability of dir command
31692 * include/grub/lib/datetime.h: moved to ...
31693 * include/grub/datetime.h: ... moved here and added
31694 declaration of grub_unixtime2datetime. All users updated
31695 * include/grub/fs.h: new syntax for dir and mtime functions in
31697 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
31698 and GRUB_FSHELP_FLAGS_MASK
31699 * commands/ls.c (grub_ls_list_files): Write mtime in long format
31700 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
31701 (grub_ext2_mtime): new function
31702 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
31703 (grub_hfsplus_mtime): new function
31704 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
31705 (GRUB_UFS_ATTR_FILE): likewise
31706 (GRUB_UFS_ATTR_LNK): likewise
31707 (struct grub_ufs_sblock): new fields mtime
31708 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
31710 (grub_ufs_dir): mtime support
31711 (grub_ufs_mtime): new function
31712 * fs/affs.c (grub_affs_dir): use new dir syntax
31713 * fs/afs.c (grub_afs_dir): likewise
31714 * fs/cpio.c (grub_cpio_dir): likewise
31715 * fs/fat.c (grub_fat_find_dir): likewise
31716 * fs/hfs.c (grub_hfs_dir): likewise
31717 * fs/iso9660.c (grub_iso9660_dir): likewise
31718 * fs/jfs.c (grub_jfs_dir): likewise
31719 * fs/minix.c (grub_minix_dir): likewise
31720 * fs/ntfs.c (grub_ntfs_dir): likewise
31721 * fs/reiserfs.c (grub_reiserfs_dir): likewise
31722 * fs/sfs.c (grub_sfs_dir): likewise
31723 * fs/xfs.c (grub_xfs_dir): likewise
31724 * util/hostfs.c (grub_hostfs_dir): likewise
31725 * lib/datetime.c: moved to ...
31726 * normal/datetime.c: ... moved here
31727 (grub_unixtime2datetime): new function
31728 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
31729 * normal/completion.c (iterate_dir): use new dir syntax
31730 * normal/misc.c (grub_normal_print_device_info): tell the
31731 last modification time of a volume
31732 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
31733 * conf/common.rmk: added lib/datetime.c to ls.mod
31734 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
31735 (normal_mod_SOURCES): likewise
31736 (datetime_mod_SOURCES): Removed lib/datetime.c
31737 * conf/i386-efi.rmk: likewise
31738 * conf/i386-ieee1275.rmk: likewise
31739 * conf/i386-pc.rmk: likewise
31740 * conf/powerpc-ieee1275.rmk: likewise
31741 * conf/sparc64-ieee1275.rmk: likewise
31742 * conf/x86_64-efi.rmk: likewise
31744 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
31746 Trim trailing spaces in FAT label and support mtools-like labels
31748 * fs/fat.c (grub_fat_iterate_dir): New function based
31749 on grub_fat_find_dir
31750 (grub_fat_find_dir): use grub_fat_iterate_dir
31751 (grub_fat_label): likewise
31753 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
31755 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
31757 remove extraneous kernel_elf_HEADERS
31759 2009-04-04 Bean <bean123ch@gnail.com>
31761 * include/grub/util/misc.h: Add dummy function fsync for mingw.
31763 * util/misc.c: Likewise.
31765 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
31767 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
31768 instead of grub_printf.
31770 2009-04-03 Robert Millan <rmh@aybabtu.com>
31772 * loader/i386/linux.c (grub_linux_setup_video): Fill
31773 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
31774 values from `mode info' structure instead of hardcoded
31777 2009-04-01 Pavel Roskin <proski@gnu.org>
31779 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
31781 * genmk.rb: Likewise.
31782 * configure.ac: Likewise.
31784 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
31786 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
31787 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
31789 2009-04-01 David S. Miller <davem@davemloft.net>
31791 * normal/sparc64/setjmp.S: Fix setjmp implementation.
31792 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
31793 (grub_setjmp): Mark with 'returns_twice' attribute.
31794 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
31795 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
31796 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
31798 2009-04-01 Robert Millan <rmh@aybabtu.com>
31800 Reapply fix from 2008-07-28 which was accidentally reverted; also
31801 perform the same fix to a similar check in same function.
31803 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
31804 with the same number are found, just use issue a warning with
31805 grub_dprintf(), as this error has been reported to be non-fatal.
31807 2009-03-31 Pavel Roskin <proski@gnu.org>
31809 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
31810 for cross-compilation.
31812 2009-03-30 Robert Millan <rmh@aybabtu.com>
31814 Fix i386-ieee1275 build.
31816 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
31817 Remove declaration.
31819 2009-03-30 Pavel Roskin <proski@gnu.org>
31821 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
31822 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
31823 zero-terminated, rely only on the strlen value. Fix comparison
31824 of strings differing in length.
31826 2009-03-30 Robert Millan <rmh@aybabtu.com>
31828 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
31829 checking for abi version. Improve error messages on BIOS to notify
31830 user about `linux16' command.
31832 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
31836 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
31837 in case of collision
31838 * disk/scsi.c (grub_scsi_open): free scsi in case of error
31840 2009-03-29 Robert Millan <rmh@aybabtu.com>
31842 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
31843 set `vid_mode' accordingly.
31844 (grub_linux_boot): Process `vid_mode' and set video mode.
31846 2009-03-29 Robert Millan <rmh@aybabtu.com>
31848 * util/grub.d/10_linux.in (linux_entry): New function.
31849 Factorize generation of Linux boot entries.
31851 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
31853 Make the format of Environment Block plain text. The boot loader
31854 part is not tested well yet.
31856 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
31858 (envblk): Likewise.
31859 (usage): Remove "info" and "clear". Add "unset". Update the
31860 description of "set", as this does not delete variables any
31862 (create_envblk_file): Complete rewrite.
31863 (open_envblk_file): Likewise.
31864 (cmd_info): Removed.
31865 (cmd_list): Likewise.
31866 (cmd_set): Likewise.
31867 (cmd_clear): Likewise.
31868 (list_variables): New function.
31869 (write_envblk): Likewise.
31870 (set_variables): Likewise.
31871 (unset_variables): Likewise.
31872 (main): Complete rewrite.
31874 * commands/loadenv.c (buffer): Removed.
31875 (envblk): Likewise.
31876 (open_envblk_file): New function.
31877 (read_envblk_file): Complete rewrite.
31878 (grub_cmd_load_env): Likewise.
31879 (grub_cmd_list_env): Likewise.
31880 (struct blocklist): New struct.
31881 (free_blocklists): New function.
31882 (check_blocklists): Likewise.
31883 (write_blocklists): Likewise.
31884 (grub_cmd_save_env): Complete rewrite.
31886 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
31887 a plain text signature.
31888 (GRUB_ENVBLK_MAXLEN): Removed.
31889 (struct grub_envblk): Complete rewrite.
31890 (grub_envblk_find): Removed.
31891 (grub_envblk_insert): Likewise.
31892 (grub_envblk_open): New prototype.
31893 (grub_envblk_set): Likewise.
31894 (grub_envblk_delete): Put const to VALUE.
31895 (grub_envblk_iterate): Put const to NAME and VALUE.
31896 (grub_envblk_close): New prototype.
31897 (grub_envblk_buffer): New inline function.
31898 (grub_envblk_size): Likewise.
31900 * lib/envblk.c: Include grub/mm.h.
31901 (grub_env_find): Removed.
31902 (grub_envblk_open): New function.
31903 (grub_envblk_close): Likewise.
31904 (escaped_value_len): Likewise.
31905 (find_next_line): Likewise.
31906 (grub_envblk_insert): Removed.
31907 (grub_envblk_set): New function.
31908 (grub_envblk_delete): Complete rewrite.
31909 (grub_envblk_iterate): Likewise.
31911 2009-03-28 Robert Millan <rmh@aybabtu.com>
31913 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
31914 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
31915 variables. Use 16-bit loader.
31916 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
31918 * kern/i386/loader.S (grub_linux_boot): Rename to ...
31919 (grub_linux16_boot): ... this. Update all users.
31920 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
31921 (grub_linux_boot): ... this. Update all users.
31923 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
31924 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
31925 commands to `linux16' and `initrd16'.
31926 (GRUB_MOD_FINI(linux)): Rename to ...
31927 (GRUB_MOD_FINI(linux16)): ... this.
31929 2009-03-24 Pavel Roskin <proski@gnu.org>
31931 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
31932 not just for compilation.
31934 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
31936 Move multiboot helper out of kernel
31938 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
31939 `loader/i386/multiboot_helper.S'.
31940 * conf/i386-coreboot.rmk: Likewise
31941 * conf/i386-ieee1275.rmk: Likewise
31943 * kern/i386/loader.S: Move multiboot helpers from here...
31944 * loader/i386/multiboot_helper.S: ...moved here
31945 * include/grub/i386/loader.h: Move declarations of multiboot
31946 helpers from here...
31947 * include/grub/i386/multiboot.h: ...moved here
31948 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
31950 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31952 * kern/env.c (grub_env_context_open): Added an argument to specify
31953 whether a new context inherits exported variables from current
31954 one. This is useful when making a sandbox to interpret a config
31956 All callers updated.
31958 * include/grub/env.h (grub_env_context_open): Updated the prototype.
31960 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31962 * kern/env.c (grub_env_context_close): Fix memory leaks.
31964 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31966 * normal/main.c (grub_normal_execute): Added an argument
31967 BATCH to specify if an interactive interface should be provided
31968 after reading a config file.
31969 All callers updated.
31970 (read_command_list): Prevent being executed twice.
31971 (read_fs_list): Likewise.
31973 * include/grub/normal.h (grub_normal_execute): Updated the
31976 2009-03-22 Pavel Roskin <proski@gno.org>
31978 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
31980 * kern/i386/pc/startup.S: Likewise.
31981 * kern/i386/efi/startup.S: Likewise.
31982 * kern/i386/ieee1275/startup.S: Likewise.
31983 * kern/i386/coreboot/startup.S: Likewise.
31984 * kern/x86_64/efi/startup.S: Likewise.
31986 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
31987 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
31988 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
31990 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
31992 Bugfixes in multiboot for bugs uncovered by solaris kernel.
31994 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
31996 Use vaddr of correct segment for entry_point.
31998 2009-03-21 Bean <bean123ch@gmail.com>
32000 * commands/blocklist.c: Add include file <grub/command.h>, remove
32001 <grub/normal.h> and <grub/arg.h>.
32002 (grub_cmd_blocklist): Use the new command interface.
32003 (GRUB_MOD_INIT): Likewise.
32004 (GRUB_MOD_FINI): Likewise.
32005 * commands/boot.c: Likewise.
32006 * commands/cat.c: Likewise.
32007 * commands/cmp.c: Likewise.
32008 * commands/configfile.c: Likewise.
32009 * commands/crc.c: Likewise.
32010 * commands/echo.c: Likewise.
32011 * commands/halt.c: Likewise.
32012 * commands/handler.c: Likewise.
32013 * commands/hdparm.c: Likewise.
32014 * commands/help.c: Likewise.
32015 * commands/hexdump.c: Likewise.
32016 * commands/loadenv.c: Likewise.
32017 * commands/ls.c: Likewise.
32018 * commands/lsmmap.c: Likewise.
32019 * commands/lspci.c: Likewise.
32020 * commands/loadenv.c: Likewise.
32021 * commands/read.c: Likewise.
32022 * commands/reboot.c: Likewise.
32023 * commands/search.c: Likewise.
32024 * commands/sleep.c: Likewise.
32025 * commands/test.c: Likewise.
32026 * commands/usbtest.c: Likewise.
32027 * commands/videotest.c: Likewise.
32028 * commands/i386/cpuid.c: Likewise.
32029 * commands/i386/pc/halt.c: Likewise.
32030 * commands/i386/pc/play.c: Likewise.
32031 * commands/i386/pc/pxecmd.c: Likewise.
32032 * commands/i386/pc/vbeinfo.c: Likewise.
32033 * commands/i386/pc/vbetest.c: Likewise.
32034 * commands/ieee1275/suspend.c: Likewise.
32035 * disk/loopback.c: Likewise.
32036 * font/font_cmd.c: Likewise.
32037 * hello/hello.c: Likewise.
32038 * loader/efi/appleloader.c: Likewise.
32039 * loader/efi/chainloader.c: Likewise.
32040 * loader/i386/bsd.c: Likewise.
32041 * loader/i386/efi/linux.c: Likewise.
32042 * loader/i386/ieee1275/linux.c: Likewise.
32043 * loader/i386/linux.c: Likewise.
32044 * loader/i386/pc/chainloader.c: Likewise.
32045 * loader/i386/pc/linux.c: Likewise.
32046 * loader/powerpc/ieee1275/linux.c: Likewise.
32047 * loader/multiboot_loader.c: Likewise.
32048 * term/gfxterm.c: Likewise.
32049 * term/i386/pc/serial.c: Likewise.
32050 * term/terminfo.c: Likewise.
32052 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
32053 * term/i386/pc/vga.c: Likewise.
32054 * video/readers/jpeg.c: Likewise.
32055 * video/readers/png.c: Likewise.
32056 * video/readers/tga.c: Likewise.
32058 * util/grub-fstest (cmd_loopback): Removed.
32059 (cmd_blocklist): Likewise.
32060 (cmd_ls): Likewise.
32061 (grub_register_command): Likewise.
32062 (grub_unregister_command): Likewise.
32063 (execute_command): Use grub_command_find to locate command and execute
32066 * include/grub/efi/chainloader.h: Removed.
32067 * loader/efi/chainloader_normal.c: Likewise.
32068 * loader/i386/bsd_normal.c: Likewise.
32069 * loader/i386/pc/chainloader_normal.c: Likewise.
32070 * loader/i386/pc/multiboot_normal.c: Likewise.
32071 * loader/linux_normal.c: Likewise.
32072 * loader/multiboot_loader_normal.c: Likewise.
32073 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32075 * gencmdlist.sh: Scan new registration command grub_register_extcmd
32076 and grub_register_command_p1.
32078 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
32079 kern/command.c, lib/arg.c and commands/extcmd.c.
32080 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
32081 (minicmd_mod_SOURCES): New variable.
32082 (minicmd_mod_CFLAGS): Likewise.
32083 (minicmd_mod_LDFLAGS): Likewise.
32084 (extcmd_mod_SOURCES): Likewise.
32085 (extcmd_mod_CFLAGS): Likewise.
32086 (extcmd_mod_LDFLAGS): Likewise.
32087 (boot_mod_SOURCES): Removed.
32088 (boot_mod_CFLAGS): Likewise.
32089 (boot_mod_LDFLAGS): Likewise.
32091 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
32093 (kernel_img_HEADERS): Add command.h.
32094 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
32095 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
32097 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
32098 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
32099 remove the corresponding normal mode command.
32100 (normal_mod_SOURCES): Remove normal/arg.c.
32101 * conf/i386-coreboot.rmk: Likewise.
32102 * conf/i386-efi.rmk: Likewise.
32103 * conf/i386-ieee1275.rmk: Likewise.
32104 * conf/powerpc-ieee1275.rmk: Likewise.
32105 * conf/x86_64-efi.rmk: Likewise.
32107 * include/grub/arg.h: Move from here ...
32108 * include/grub/lib/arg.h: ... to here.
32110 * normal/arg.c: Move from here ...
32111 * lib/arg.c: ... to here.
32113 * commands/extcmd.c: New file.
32114 * commands/minicmd.c: Likewise.
32115 * include/grub/command.h: Likewise.
32116 * include/grub/extcmd.h: Likewise.
32117 * kern/command.c: Likewise.
32118 * kern/corecmd.c: Likewise.
32120 * kern/list.c (grub_list_iterate): Return int instead of void.
32121 (grub_list_insert): New function.
32122 (grub_prio_list_insert): Likewise.
32124 * kern/rescue.c (grub_rescue_command): Removed.
32125 (grub_rescue_command_list): Likewise.
32126 (grub_rescue_register_command): Likewise.
32127 (grub_rescue_unregister_command): Likewise.
32128 (grub_rescue_cmd_boot): Move to minicmd.c
32129 (grub_rescue_cmd_help): Likewise.
32130 (grub_rescue_cmd_info): Likewise.
32131 (grub_rescue_cmd_boot): Likewise.
32132 (grub_rescue_cmd_testload): Likewise.
32133 (grub_rescue_cmd_dump): Likewise.
32134 (grub_rescue_cmd_rmmod): Likewise.
32135 (grub_rescue_cmd_lsmod): Likewise.
32136 (grub_rescue_cmd_exit): Likewise.
32137 (grub_rescue_print_devices): Moved to corecmd.c.
32138 (grub_rescue_print_files): Likewise.
32139 (grub_rescue_cmd_ls): Likewise.
32140 (grub_rescue_cmd_insmod): Likewise.
32141 (grub_rescue_cmd_set): Likewise.
32142 (grub_rescue_cmd_unset): Likewise.
32143 (attempt_normal_mode): Use grub_command_find to get normal module.
32144 (grub_enter_rescue_mode): Use grub_register_core_commands to register
32145 commands, remove grub_rescue_register_command calls.
32147 * normal/command.c (grub_register_command): Removed.
32148 (grub_unregister_command): Likewise.
32149 (grub_command_find): Likewise.
32150 (grub_iterate_commands): Likewise.
32151 (rescue_command): Likewise.
32152 (export_command): Moved to corecmd.c.
32153 (set_command): Removed.
32154 (unset_command): Likewise.
32155 (insmod_command): Likewise.
32156 (rmmod_command): Likewise.
32157 (lsmod_command): Likewise.
32158 (grub_command_init): Likewise.
32160 * normal/completion.c (iterate_command): Use cmd->prio to check for
32162 (complete_arguments): Use grub_extcmd_t structure to find options.
32163 (grub_normal_do_completion): Change function grub_iterate_commands to
32164 grub_command_iterate.
32166 * normal/execute.c (grub_script_execute_cmd): No need to parse
32169 * normal/main.c (grub_dyncmd_dispatcher): New function.
32170 (read_command_list): Register unload commands as dyncmd.
32171 (grub_cmd_normal): Use new command interface, register rescue,
32172 unregister normal at entry, register normal, unregister rescue at exit.
32174 * include/grub/list.h (grub_list_test_t): New type.
32175 (grub_list_iterate): Return int instead of void.
32176 (grub_list_insert): New function.
32177 (GRUB_AS_NAMED_LIST_P): New macro.
32178 (GRUB_AS_PRIO_LIST): Likewise.
32179 (GRUB_AS_PRIO_LIST_P): Likewise.
32180 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
32181 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
32182 (grub_prio_list): New structure.
32183 (grub_prio_list_insert): New function.
32184 (grub_prio_list_remove): New inline function.
32186 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
32187 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
32188 (GRUB_COMMAND_FLAG_MENU): Likewise.
32189 (GRUB_COMMAND_FLAG_BOTH): Likewise.
32190 (GRUB_COMMAND_FLAG_TITLE): Likewise.
32191 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
32192 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
32193 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
32194 (grub_command): Likewise.
32195 (grub_register_command): Likewise.
32196 (grub_command_find): Likewise.
32197 (grub_iterate_commands): Likewise.
32198 (grub_command_init): Likewise.
32199 (grub_arg_parse): Likewise.
32200 (grub_arg_show_help): Likewise.
32202 * include/grub/rescue.h (grub_rescue_register_command): Removed.
32203 (grub_rescue_unregister_command): Likewise.
32205 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
32206 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
32207 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
32209 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
32210 grub_rescue_cmd_initrd.
32211 * include/grub/i386/loader.h: Likewise.
32212 * include/grub/x86_64/loader.h: Likewise.
32214 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
32216 2009-03-21 Bean <bean123ch@gmail.com>
32218 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
32219 instead of stat in mingw environment.
32221 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
32223 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
32225 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
32228 2009-03-21 Bean <bean123ch@gmail.com>
32230 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
32231 out of range error.
32233 2009-03-18 Michel Dänzer <michel@daenzer.net>
32235 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
32236 checking inode flags for EXT4_EXTENTS_FLAG.
32238 2009-03-18 Robert Millan <rmh@aybabtu.com>
32240 * loader/i386/linux.c: Include `<grub/video.h>' and
32241 `<grub/i386/pc/vbe.h>'..
32242 (grub_linux_setup_video): New function. Loosely based on the EFI one.
32243 (grub_linux32_boot): Attempt to configure video settings with
32244 grub_linux_setup_video().
32245 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
32246 to avoid grub_console_fini() which would step out of graphical mode
32249 2009-03-14 Robert Millan <rmh@aybabtu.com>
32251 Fix build on powerpc.
32252 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
32254 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
32256 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
32257 background image command.
32259 2009-03-12 Colin D Bennett <colin@gibibit.com>
32261 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
32262 (grub_gfxterm_putchar): Extract pairs of identical calls to
32263 draw_cursor out of conditional blocks.
32265 2009-03-11 Pavel Roskin <proski@gnu.org>
32267 * fs/hfs.c (grub_hfs_strncasecmp): New function.
32268 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
32270 2009-03-11 Robert Millan <rmh@aybabtu.com>
32272 * loader/i386/multiboot_elfxx.c
32273 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
32275 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
32277 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
32280 2009-03-11 Robert Millan <rmh@aybabtu.com>
32282 * loader/i386/multiboot.c (code_size): New variable.
32283 (grub_multiboot): Define offsets by adding to `code_size' rather
32284 than subtracting from `grub_multiboot_payload_size'. Provide
32285 4-byte alignment to MBI and others by increasing
32286 `boot_loader_name_length' appropriately.
32288 * loader/i386/multiboot_elfxx.c
32289 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
32291 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
32293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
32296 2009-03-08 Robert Millan <rmh@aybabtu.com>
32298 Make loader/i386/linux.c usable on i386-pc again.
32300 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
32302 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
32305 2009-03-07 Bean <bean123ch@gmail.com>
32307 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
32310 2009-03-06 Robert Millan <rmh@aybabtu.com>
32312 Fix display issue on terminals with screen size other than 80x25
32313 (e.g. gfxterm with resolution higher than 640x480).
32315 * normal/main.c (grub_normal_init_page): Display title text in a
32316 position relative to the center of the terminal instead of relying
32317 on a hardcoded offset.
32319 2009-03-04 Robert Millan <rmh@aybabtu.com>
32321 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
32324 * Makefile.in (host_kernel): New variable.
32325 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
32326 scripts instead of just the windows one.
32327 * configure.ac: Initialize and AC_SUBST `host_kernel'.
32329 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32331 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
32333 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32334 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32335 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32336 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32337 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32338 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32340 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32342 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
32343 or if there's no space for the disk label and print the partition number on a
32346 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32348 * util/misc.c: Include <time.h>.
32349 (grub_millisleep): New function.
32351 2009-03-04 Bean <bean123ch@gmail.com>
32353 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
32354 another option -mno-red-zone.
32356 * commands/handler.c: Change module description.
32358 * kern/handler.c: Add missing space at the end of description line.
32360 * kern/list.c: Likewise.
32362 2009-03-03 Robert Millan <rmh@aybabtu.com>
32364 Move more components to the relocation area, and fix mbi pointer
32365 handling to use the destination rather than the origin (thanks to
32366 Vladimir Serbinenko for spotting).
32368 * loader/i386/multiboot.c (mbi_dest): New variable.
32369 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
32370 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
32373 2009-03-01 Bean <bean123ch@gmail.com>
32375 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
32376 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
32377 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
32378 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
32380 * loader/i386/efi/linux.c (acpi_guid): New variable.
32381 (acpi_guid): Likewise.
32382 (EBDA_SEG_ADDR): New constant.
32383 (LOW_MEM_ADDR): Likewise.
32384 (FAKE_EBDA_SEG): Likewise.
32385 (fake_bios_data): New function.
32386 (grub_linux_boot): Call fake_bios_data.
32388 2009-03-01 Bean <bean123ch@gmail.com>
32390 * commands/terminal.c: Removed.
32392 * commands/handler.c: New file.
32394 * include/grub/list.h: Likewise.
32396 * include/grub/handler.h: Likewise.
32398 * kern/list.c: Likewise.
32400 * kern/handler.c: Likewise.
32402 * kern/term.h: Include header file <grub/handler.h>.
32403 (grub_term_input): Move next field to the beginning.
32404 (grub_term_output): Likewise.
32405 (grub_term_input_class): New variable.
32406 (grub_term_output_class): Likewise.
32407 (grub_term_register_input): Changed to inline function.
32408 (grub_term_register_output): Likewise.
32409 (grub_term_unregister_input): Likewise.
32410 (grub_term_unregister_output): Likewise.
32411 (grub_term_set_current_input): Likewise.
32412 (grub_term_set_current_output): Likewise.
32413 (grub_term_get_current_input): Likewise.
32414 (grub_term_get_current_output): Likewise.
32415 (grub_term_iterate_input): Removed.
32416 (grub_term_iterate_output): Likewise.
32418 * kern/term.c (grub_term_list_input): Removed.
32419 (grub_term_list_output): Likewise.
32420 (grub_term_input_class): New variable.
32421 (grub_term_output_class): Likewise.
32422 (grub_cur_term_input): Change variable as macro.
32423 (grub_cur_term_output): Likewise.
32424 (grub_term_register_input): Removed.
32425 (grub_term_register_output): Likewise.
32426 (grub_term_unregister_input): Likewise.
32427 (grub_term_unregister_output): Likewise.
32428 (grub_term_set_current_input): Likewise.
32429 (grub_term_set_current_output): Likewise.
32430 (grub_term_iterate_input): Likewise.
32431 (grub_term_iterate_output): Likewise.
32432 (grub_term_get_current_input): Likewise.
32433 (grub_term_get_current_output): Likewise.
32435 * util/grub-editenv.c: Include header file <grub/handler.h>.
32436 (grub_term_get_current_input): Removed.
32437 (grub_term_get_current_output): Likewise.
32438 (grub_term_input_class): New variable.
32439 (grub_term_output_class): Likewise.
32441 * util/grub-fstest.c (grub_term_get_current_input): Removed.
32442 (grub_term_get_current_output): Likewise.
32443 (grub_term_input_class): New variable.
32444 (grub_term_output_class): Likewise.
32446 * util/grub-probe.c (grub_term_get_current_input): Removed.
32447 (grub_term_get_current_output): Likewise.
32448 (grub_term_input_class): New variable.
32449 (grub_term_output_class): Likewise.
32451 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
32452 (grub_term_get_current_output): Likewise.
32453 (grub_term_input_class): New variable.
32454 (grub_term_output_class): Likewise.
32456 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
32457 (terminal_mod_SOURCES): Likewise.
32458 (terminal_mod_CFLAGS): Likewise.
32459 (terminal_mod_LDFLAGS): Likewise.
32461 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
32463 (kernel_img_SOURCES): Add list.c and handler.c.
32464 (kernel_img_HEADERS): Add list.h and handler.h.
32466 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32468 (kernel_mod_SOURCES): Add list.c and handler.c.
32469 (kernel_mod_HEADERS): Add list.h and handler.h.
32471 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
32473 (kernel_elf_SOURCES): Add list.c and handler.c.
32474 (kernel_elf_HEADERS): Add list.h and handler.h.
32476 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32478 (kernel_elf_SOURCES): Add list.c and handler.c.
32479 (kernel_elf_HEADERS): Add list.h and handler.h.
32481 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32483 (kernel_mod_SOURCES): Add list.c and handler.c.
32484 (kernel_mod_HEADERS): Add list.h and handler.h.
32486 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32488 (kernel_elf_SOURCES): Add list.c and handler.c.
32489 (kernel_elf_HEADERS): Add list.h and handler.h.
32491 2009-02-27 Robert Millan <rmh@aybabtu.com>
32493 Factorize elf32 / elf64 code in Multiboot loader. This will
32494 prevent it from getting out of sync again.
32496 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
32497 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
32498 grub_multiboot_load_elf64): Move from here ...
32499 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
32500 grub_multiboot_load_elf): ... to here (new file).
32502 2009-02-27 Robert Millan <rmh@aybabtu.com>
32504 * util/grub.d/10_linux.in: Rename "single-user mode" to
32507 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
32509 Don't leak in SCSI code.
32510 * disk/scsi.c (grub_scsi_close): free `scsi'.
32512 2009-02-27 Robert Millan <rmh@aybabtu.com>
32514 * loader/i386/pc/multiboot.c: Move from here ...
32515 * loader/i386/multiboot.c: ... to here. Update all users.
32517 2009-02-27 Robert Millan <rmh@aybabtu.com>
32519 Patch from Alexandre Bique <bique.alexandre@gmail.com>
32520 * util/i386/pc/grub-setup.c (setup): Fix directory path.
32522 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
32524 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
32527 2009-02-27 Robert Millan <rmh@aybabtu.com>
32529 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
32530 `0x' qualifier as 0 when base is specified as parameter).
32532 2009-02-24 Bean <bean123ch@gmail.com>
32534 * configure.ac: Check for -mcmodel=large in x86_64 target.
32536 * include/grub/efi/api.h (efi_call_10): New macro.
32537 (efi_wrap_10): New function.
32539 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
32540 (GRUB_PE32_REL_BASED_HIGH): Likewise.
32541 (GRUB_PE32_REL_BASED_LOW): Likewise.
32542 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
32543 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
32544 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
32545 (GRUB_PE32_REL_BASED_SECTION): Likewise.
32546 (GRUB_PE32_REL_BASED_REL): Likewise.
32547 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
32548 (GRUB_PE32_REL_BASED_DIR64): Likewise.
32549 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
32551 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
32554 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
32555 (efi_wrap_10): New function.
32557 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
32559 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
32560 MB/MBP model (NV chipset).
32561 (devdata_devs): Add devpath_5 to the list.
32563 * load/i386/efi/linux.c (video_base): Remove variable.
32564 (RGB_MASK): New macro.
32565 (RGB_MAGIC): Likewise.
32566 (LINE_MIN): Likewise.
32567 (LINE_MAX): Likewise.
32568 (FBTEST_STEP): Likewise.
32569 (FBTEST_COUNT): Likewise.
32570 (fb_list): New variable.
32571 (grub_find_video_card): Remove function.
32572 (find_framebuf): New function.
32573 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
32576 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
32577 problem for x86_64.
32579 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
32581 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
32583 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
32586 2009-02-22 Robert Millan <rmh@aybabtu.com>
32588 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
32589 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
32590 in our relocation, instead of using it directly from heap. Also
32591 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
32593 2009-02-21 Robert Millan <rmh@aybabtu.com>
32595 Implement USB keyboard support (based on patch by Marco Gerards)
32597 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
32598 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
32599 (usb_keyboard_mod_LDFLAGS): New variables.
32601 * term/usb_keyboard.c: New file.
32603 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
32605 Corrected wrong declaration
32607 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
32609 2009-02-14 Christian Franke <franke@computer.org>
32611 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
32612 (grub_lspci_iter): Print class code and programming interface byte.
32614 2009-02-14 Christian Franke <franke@computer.org>
32616 * gendistlist.sh: Ignore `.svn' directories.
32618 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
32620 * fs/fat.c: Add 2009 to Copyright line.
32622 2009-02-14 Christian Franke <franke@computer.org>
32624 * commands/hdparm.c: New file. Provides `hdparm' command
32625 which sends ATA commands via grub_disk_ata_pass_through ().
32627 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
32629 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
32630 and <grub/cpu/io.h> to include/grub/ata.h.
32631 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
32632 (GRUB_CDROM_SECTOR_SIZE): Remove.
32633 (GRUB_ATA_*): Move to include/grub/ata.h.
32634 (GRUB_ATAPI_*): Likewise.
32635 (enum grub_ata_commands): Likewise.
32636 (enum grub_ata_timeout_milliseconds): Likewise.
32637 (struct grub_ata_device): Likewise.
32638 (grub_ata_regset): Likewise.
32639 (grub_ata_regget): Likewise.
32640 (grub_ata_regset2): Likewise.
32641 (grub_ata_regget2): Likewise.
32642 (grub_ata_check_ready): Likewise.
32643 (grub_ata_wait_not_busy): Remove static, exported in
32644 include/grub/ata.h.
32645 (grub_ata_wait_drq): Likewise.
32646 (grub_ata_pio_read): Likewise.
32648 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
32649 function for hdparm.mod.
32651 * include/grub/ata.h: New file, contains declarations from
32653 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
32655 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
32656 (grub_disk_ata_pass_through): New exported variable.
32658 * kern/disk.c (grub_disk_ata_pass_through): New variable.
32660 2009-02-13 Colin D Bennett <colin@gibibit.com>
32662 Support multiple fallback entries, and provide an API to support
32663 executing default+fallback menu entries. Renamed the `terminal' menu
32666 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
32667 variable declaration.
32668 (grub_menu_execute_callback): New structure declaration.
32669 (grub_menu_execute_callback_t): New typedef.
32670 (grub_menu_execute_with_fallback): New function declaration.
32671 (grub_menu_get_entry): Likewise.
32672 (grub_menu_get_timeout): Likewise.
32673 (grub_menu_set_timeout): Likewise.
32675 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
32677 * normal/menu.c (grub_wait_after_message): Moved to
32678 `normal/menu_text.c'.
32679 (draw_border): Likewise.
32680 (print_message): Likewise.
32681 (print_entry): Likewise.
32682 (print_entries): Likewise.
32683 (grub_menu_init_page): Likewise.
32684 (get_entry_number): Likewise.
32685 (print_timeout): Likewise.
32686 (run_menu): Likewise.
32687 (grub_menu_execute_entry): Likewise.
32688 (show_text_menu): Likewise.
32689 (get_and_remove_first_entry_number): New function.
32690 (grub_menu_execute_with_fallback): Likewise.
32691 (get_entry): Renamed to ...
32692 (grub_menu_get_entry): .. this and made it global.
32693 (get_timeout): Renamed to ...
32694 (grub_menu_get_timeout): ... this and made it global.
32695 (set_timeout): Renamed to ...
32696 (grub_menu_set_timeout): ... this and made it global.
32697 (grub_normal_terminal_menu_viewer): Renamed to ...
32698 (grub_normal_text_menu_viewer): ... this.
32700 * normal/menu_text.c: New file. Extracted text-menu-specific code
32701 from normal/menu.c.
32703 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
32704 (normal_mod_SOURCES): Likewise.
32706 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32707 (normal_mod_SOURCES): Likewise.
32709 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32710 (normal_mod_SOURCES): Likewise.
32712 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
32713 (normal_mod_SOURCES): Likewise.
32715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32716 (normal_mod_SOURCES): Likewise.
32718 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32719 (normal_mod_SOURCES): Likewise.
32721 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32722 (normal_mod_SOURCES): Likewise.
32724 2009-02-11 Robert Millan <rmh@aybabtu.com>
32726 * util/grub.d/00_header.in: Update old reference to `font' command.
32728 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
32730 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
32732 Based on patch from Javier Martín.
32734 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
32736 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
32737 to avoid false positives with FAT.
32738 (grub_fstest_SOURCES): Likewise.
32739 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32740 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32741 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32742 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32743 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32744 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32746 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
32748 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
32749 bpb.version_specific.fat12_or_fat16.fstype and
32750 bpb.version_specific.fat32.fstype.
32752 2009-02-08 Robert Millan <rmh@aybabtu.com>
32754 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
32756 2009-02-08 Robert Millan <rmh@aybabtu.com>
32758 * Makefile.in (host_os, host_cpu): New variables.
32759 (target_os): Remove. Update all users.
32761 2009-02-08 Marco Gerards <marco@gnu.org>
32763 * Makefile.in (enable_grub_emu_usb): New variable.
32764 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
32765 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
32766 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
32767 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
32768 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
32769 `usbtest.mod' and `usbms.mod'.
32770 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
32771 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
32772 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
32773 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
32774 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
32777 * disk/usbms.c: New file.
32779 * include/grub/usb.h: Likewise.
32781 * include/grub/usbtrans.h: Likewise.
32783 * include/grub/usbdesc.h: Likewise.
32785 * bus/usb/usbtrans.c: Likewise.
32787 * bus/usb/ohci.c: Likewise.
32789 * bus/usb/uhci.c: Likewise.
32791 * bus/usb/usbhub.c: Likewise.
32793 * bus/usb/usb.c: Likewise.
32795 * commands/usbtest.c: Likewise.
32797 * util/usb.c: Likewise.
32799 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
32801 * configure.ac: Test for libusb presence.
32803 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
32805 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
32807 * kern/mm.c: Add more comments.
32809 2009-02-08 Robert Millan <rmh@aybabtu.com>
32811 Patch from Javier Martín.
32812 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
32813 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
32815 2009-02-08 Robert Millan <rmh@aybabtu.com>
32817 * fs/cpio.c: Split tar functionality to ...
32818 * fs/tar.c: ... here (new file). Update all users.
32820 2009-02-07 Robert Millan <rmh@aybabtu.com>
32822 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
32823 backward-incompatible features.
32825 Based on patch from Javier Martín, with some adjustments.
32827 2009-02-07 Michael Scherer <misc@mandriva.org>
32829 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
32831 2009-02-07 Robert Millan <rmh@aybabtu.com>
32833 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
32834 position of `disk/lvm.c' to ensure grub_init_all() always picks it
32835 after the RAID stuff.
32837 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
32839 Fixes problem when running vbetest command as reported by
32840 Vladimir Serbinenko <phcoder@gmail.com>.
32842 * (grub_vbe_set_video_mode): Fixed problem with text modes.
32844 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
32846 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
32847 /dev/md/NpN style mdraid devices.
32849 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32851 * util/unifont2pff.rb: Remove.
32853 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32855 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
32858 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32860 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
32861 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32862 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32863 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32865 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32866 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32868 2009-02-02 Christian Franke <franke@computer.org>
32870 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
32872 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
32874 * INSTALL: Note that we now require at least autoconf 2.59 and
32875 that LZO is optional.
32877 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
32879 Base on patch on bug #24154 created by Tomas Tintera
32880 <trosos@seznam.cz>.
32882 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
32884 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
32886 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
32887 <bero@arklinux.org>.
32889 * normal/parser.y (script_init): Add missing semicolon.
32891 2009-01-31 Colin D Bennett <colin@gibibit.com>
32893 * normal/main.c: Add include to grub/menu_viewer.h.
32894 (free_menu_entry_classes): Added.
32895 (grub_normal_menu_addentry): Added class property handling.
32896 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
32897 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
32899 * normal/menu_viewer.c: New file.
32901 * normal/menu.c (run_menu_entry): Renamed to ...
32902 (grub_menu_execute_entry): ... this and made it as global.
32903 (grub_menu_run): Renamed to ...
32904 (show_text_menu): ... this and made it local.
32905 (show_text_menu): Adapt to new function names.
32906 (grub_normal_terminal_menu_viewer): New global variable.
32908 * include/grub/menu.h: New file.
32910 * include/grub/menu_viewer.h: New file.
32912 * include/grub/normal.h: Added include to grub/menu.h.
32913 (grub_menu_entry): Moved to include/grub/menu.h.
32914 (grub_menu_entry_t): Likewise.
32915 (grub_menu): Likewise.
32916 (grub_menu_t): Likewise.
32917 (grub_normal_terminal_menu_viewer): Added.
32918 (grub_menu_execute_entry): Likewise.
32919 (grub_menu_run): Removed.
32921 * DISTLIST: Added include/grub/menu.h.
32922 Added include/grub/menu_viewer.h.
32923 Added normal/menu_viewer.c.
32925 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
32927 * normal/execute.c (grub_script_execute_menuentry): Changed to use
32928 arglist for menutitle arguments.
32930 * normal/main.c (grub_normal_menu_addentry): Likewise.
32932 * normal/parser.y (menuentry): Likewise.
32934 * normal/script.c (grub_script_create_cmdmenu): Likewise.
32936 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
32937 (grub_script_create_cmdmenu): Likewise.
32939 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
32941 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
32944 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
32946 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
32948 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
32950 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32952 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32954 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32956 2009-01-30 Christian Franke <franke@computer.org>
32958 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
32959 in option help text.
32961 2009-01-27 Pavel Roskin <proski@gnu.org>
32963 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
32965 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
32967 * commands/lsmmap.c: Add include to grub/machine/memory.h.
32969 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
32971 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
32972 unregister function.
32974 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
32976 * disk/scsi.c (grub_scsi_read): Fix sign problem.
32978 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
32980 * util/grub-mkfont.c (usage): Fix typo.
32982 * util/elf/grub-mkimage.c (load_modules): Fix warning.
32984 2009-01-26 Daniel Mierswa <impulze@impulze.org>
32986 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
32988 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
32990 * kern/misc.c (grub_strcasecmp): New function.
32991 (grub_strcasecmp): Use grub_size_t instead of int for length.
32993 * include/grub/misc.h: Update function prototypes.
32995 2009-01-26 Robert Millan <rmh@aybabtu.com>
32997 * configure.ac: Fix cross-compilation check.
32999 2009-01-22 Christian Franke <franke@computer.org>
33001 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33002 (precision) digit string. Allow `.format2' without `format1' (width).
33003 Limit input chars for `%s' output to `format2' if specified. This is
33004 compatible with standard printf ().
33006 2009-01-22 Christian Franke <franke@computer.org>
33008 * disk/ata.c (grub_ata_wait_status): Replace by ...
33009 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33010 other status bits may be invalid while BSY is asserted.
33011 (grub_ata_check_ready): New function.
33012 (grub_ata_cmd): Removed.
33013 (grub_ata_wait_drq): New function.
33014 (grub_ata_strncpy): Remove inline.
33015 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33016 and error check now done by grub_ata_wait_drq ().
33017 (grub_ata_pio_write): Likewise.
33018 (grub_atapi_identify): Set DEV before check for !BSY. Use
33019 grub_ata_wait_drq () to wait for data.
33020 (grub_ata_device_initialize): Add status register check to
33021 detect missing SATA slave devices. Add debug messages.
33022 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33023 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33024 transfer loop by grub_ata_pio_write ().
33025 (grub_ata_identify): Set DEV before check for !BSY. Use
33026 grub_ata_wait_drq () to wait for data.
33027 (grub_ata_setaddress): Set DEV before check for !BSY.
33028 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33029 read/write in one loop. Fix invalid command on write. Fix incomplete
33030 command on (size % batch) == 0. Add missing error check after write of
33031 last block. Add debug messages.
33032 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33034 2009-01-19 Christian Franke <franke@computer.org>
33036 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33037 (GRUB_ATAPI_IREASON_*): Likewise.
33038 (grub_ata_pio_write): Fix timeout error return.
33039 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33040 (grub_atapi_wait_drq): New function.
33041 (grub_atapi_packet): New parameter `size'.
33042 Use grub_atapi_wait_drq () and direct write instead of
33043 grub_ata_pio_write ().
33044 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33045 reads the number of bytes requested by the device for each DRQ
33047 (grub_atapi_write): Remove old implementation, return not
33048 implemented instead.
33050 2009-01-19 Christian Franke <franke@computer.org>
33052 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
33053 of 512 to calculate data size.
33054 (grub_scsi_read12): Likewise.
33055 (grub_scsi_write10): Likewise.
33056 (grub_scsi_write12): Likewise.
33057 (grub_scsi_read): Adjust size according to blocksize.
33058 Add checks for invalid blocksize and unaligned transfer.
33060 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
33062 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
33064 * term/gfxterm.c (write_char): Fix background rendering for wide
33067 2009-01-19 Robert Millan <rmh@aybabtu.com>
33069 * config.guess: Update to latest version from config git.
33070 * config.sub: Likewise.
33072 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
33074 * Makefile.in: Change font compilation to use new grub-mkfont instead
33077 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
33078 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33079 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33080 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33081 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33082 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33083 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33084 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33085 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33087 2009-01-16 Christian Franke <franke@computer.org>
33089 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
33090 (enum grub_ata_timeout_milliseconds): New enum.
33091 (grub_ata_wait_status): Add parameter milliseconds.
33092 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
33093 recovery from timed-out commands.
33094 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
33095 return grub_errno instead of REG_ERROR.
33096 (grub_ata_pio_write): Add parameter milliseconds.
33097 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
33098 Pass milliseconds to grub_ata_wait_status () and
33099 grub_ata_pio_read ().
33100 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
33101 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
33102 grub_ata_wait_status (). Fix IDENTIFY timeout check.
33103 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
33104 It is not suitable for device detection, because DEV bit is ignored,
33105 the command may run too long, and not all devices set the signature
33107 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
33108 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
33109 Fix device selection, DEV bit must be set first to address the registers
33110 of the correct device.
33111 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
33112 grub_ata_pio_read/write ().
33113 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
33114 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
33116 2009-01-13 Carles Pina i Estany <carles@pina.cat>
33118 * util/grub-editenv.c (main): Use fseeko(), not fseek().
33120 2009-01-13 Bean <bean123ch@gmail.com>
33122 * util/grub-mkfont.c (write_font): forget to remove some debug code.
33124 2009-01-13 Bean <bean123ch@gmail.com>
33126 * Makefile.in: (enable_grub_mkfont): New variable.
33127 (freetype_cflags): Likewise.
33128 (freetype_libs): Likewise.
33130 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
33131 (grub_mkfont_SOURCES): New variable.
33132 (grub_mkfont_CFLAGS): Likewise.
33133 (grub_mkfont_LDFLAGS): Likewise.
33135 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
33136 library if `--enable-grub-mkfont' is requested.
33137 (enable_grub_mkfont): New variable.
33138 (freetype_cflags): Likewise.
33139 (freetype_libs): Likewise.
33141 * util/grub-mkfont.c: New file.
33143 2009-01-12 Christian Franke <franke@computer.org>
33145 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
33146 mode check. Fix setting of compat_use[].
33148 2009-01-10 Robert Millan <rmh@aybabtu.com>
33150 Update a few copyright years which we forgot to do in 2008 (only for
33151 files whose changes made in 2008 were copyright-significant)
33153 * Makefile.in: Add 2008 to Copyright line.
33154 * disk/ieee1275/ofdisk.c: Likewise.
33155 * disk/efi/efidisk.c: Likewise.
33156 * kern/dl.c: Likewise.
33157 * kern/sparc64/ieee1275/init.c: Likewise.
33158 * kern/mm.c: Likewise.
33159 * kern/efi/mm.c: Likewise.
33160 * boot/i386/pc/boot.S: Likewise.
33161 * genfslist.sh: Likewise.
33162 * fs/iso9660.c: Likewise.
33163 * fs/hfs.c: Likewise.
33164 * fs/jfs.c: Likewise.
33165 * fs/minix.c: Likewise.
33166 * fs/ufs.c: Likewise.
33167 * gensymlist.sh.in: Likewise.
33168 * genkernsyms.sh.in: Likewise.
33169 * include/grub/misc.h: Likewise.
33170 * include/grub/types.h: Likewise.
33171 * include/grub/symbol.h: Likewise.
33172 * include/grub/elf.h: Likewise.
33173 * include/grub/kernel.h: Likewise.
33174 * include/grub/disk.h: Likewise.
33175 * include/grub/dl.h: Likewise.
33176 * include/grub/i386/linux.h: Likewise.
33177 * include/grub/i386/pc/biosdisk.h: Likewise.
33178 * include/grub/efi/api.h: Likewise.
33179 * include/grub/efi/pe32.h: Likewise.
33180 * include/grub/util/misc.h: Likewise.
33181 * normal/execute.c: Likewise.
33182 * normal/arg.c: Likewise.
33183 * normal/completion.c: Likewise.
33184 * normal/lexer.c: Likewise.
33185 * normal/parser.y: Likewise.
33186 * normal/misc.c: Likewise.
33187 * commands/i386/pc/vbeinfo.c: Likewise.
33188 * commands/hexdump.c: Likewise.
33189 * commands/terminal.c: Likewise.
33190 * commands/ls.c: Likewise.
33191 * commands/help.c: Likewise.
33192 * partmap/pc.c: Likewise.
33193 * loader/efi/chainloader.c: Likewise.
33194 * loader/multiboot_loader.c: Likewise.
33195 * loader/i386/pc/multiboot2.c: Likewise.
33196 * term/efi/console.c: Likewise.
33197 * term/i386/pc/serial.c: Likewise.
33198 * util/lvm.c: Likewise.
33199 * util/console.c: Likewise.
33200 * util/i386/efi/grub-mkimage.c: Likewise.
33201 * util/raid.c: Likewise.
33203 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
33205 * commands/videotest.c: Removed include to grub/machine/memory.h.
33207 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
33208 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
33209 (video_mod_SOURCES): Removed.
33210 (video_mod_CFLAGS): Likewise.
33211 (video_mod_LDFLAGS): Likewise.
33212 (gfxterm_mod_SOURCES): Likewise.
33213 (gfxterm_mod_CFLAGS): Likewise.
33214 (gfxterm_mod_LDFLAGS): Likewise.
33215 (videotest_mod_SOURCES): Likewise.
33216 (videotest_mod_CFLAGS): Likewise.
33217 (videotest_mod_LDFLAGS): Likewise.
33218 (bitmap_mod_SOURCES): Likewise.
33219 (bitmap_mod_CFLAGS): Likewise.
33220 (bitmap_mod_LDFLAGS): Likewise.
33221 (tga_mod_SOURCES): Likewise.
33222 (tga_mod_CFLAGS): Likewise.
33223 (tga_mod_LDFLAGS): Likewise.
33224 (jpeg_mod_SOURCES): Likewise.
33225 (jpeg_mod_CFLAGS): Likewise.
33226 (jpeg_mod_LDFLAGS): Likewise.
33227 (png_mod_SOURCES): Likewise.
33228 (png_mod_CFLAGS): Likewise.
33229 (png_mod_LDFLAGS): Likewise.
33231 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
33232 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
33233 (video_mod_SOURCES): Added.
33234 (video_mod_CFLAGS): Likewise.
33235 (video_mod_LDFLAGS): Likewise.
33236 (videotest_mod_SOURCES): Likewise.
33237 (videotest_mod_CFLAGS): Likewise.
33238 (videotest_mod_LDFLAGS): Likewise.
33239 (bitmap_mod_SOURCES): Likewise.
33240 (bitmap_mod_CFLAGS): Likewise.
33241 (bitmap_mod_LDFLAGS): Likewise.
33242 (tga_mod_SOURCES): Likewise.
33243 (tga_mod_CFLAGS): Likewise.
33244 (tga_mod_LDFLAGS): Likewise.
33245 (jpeg_mod_SOURCES): Likewise.
33246 (jpeg_mod_CFLAGS): Likewise.
33247 (jpeg_mod_LDFLAGS): Likewise.
33248 (png_mod_SOURCES): Likewise.
33249 (png_mod_CFLAGS): Likewise.
33250 (png_mod_LDFLAGS): Likewise.
33251 (gfxterm_mod_SOURCES): Likewise.
33252 (gfxterm_mod_CFLAGS): Likewise.
33253 (gfxterm_mod_LDFLAGS): Likewise.
33255 * term/gfxterm.c: Removed include to grub/machine/memory.h,
33256 grub/machine/console.h.
33258 2009-01-04 Jerone Young <jerone@gmail.com>
33260 Make on screen instructions clearer
33262 Based on patch created by Jidanni <jidanni@jidanni.org>
33264 * normal/menu.c: print clearer instructions on the screen
33266 2009-01-02 Colin D Bennett <colin@gibibit.com>
33270 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
33271 build system and fixed gfxterm.c to work with different sized fonts.
33273 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
33275 * configure: Re-generated.
33277 * DISTLIST: Removed font/manager.c.
33279 Added font/font_cmd.c.
33281 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
33284 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
33286 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
33288 * kern/term.c: Changed users of grub_utf8_to_ucs4.
33290 * normal/menu.c: Likewise.
33292 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
33293 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
33295 * include/grub/font.h: Replaced with new file.
33297 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
33298 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
33299 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
33300 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
33301 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
33302 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
33303 fg_red, fg_green, fg_blue, fg_alpha.
33304 (grub_video_adapter): Removed blit_glyph.
33305 (grub_video_blit_glyph): Removed.
33307 * font/manager.c: Removed file.
33309 * font/font.c: New file.
33311 * font/font_cmd.c: Likewise.
33313 * video/video.c (grub_video_blit_glyph): Removed.
33315 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
33316 (grub_video_vbe_map_rgba): Likewise.
33317 (grub_video_vbe_unmap_color_int): Likewise.
33318 (grub_video_vbe_blit_glyph): Removed.
33319 (grub_video_vbe_adapter): Removed blit_glyph.
33321 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
33322 (get_pixel): Likewise.
33323 (set_pixel): Likewise.
33325 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
33327 * term/gfxterm.c: Adapted to new font engine.
33329 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
33331 * term/i386/pc/vga.c: Likewise.
33333 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
33335 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33337 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33339 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33341 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33343 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33345 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33347 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33349 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33351 * util/grub.d/00_header.in: Changed to use new loadfont command.
33353 * util/grub-mkconfig_lib.in: Changed font extension.
33355 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
33357 * util/getroot.c (grub_util_get_grub_dev): Add support for
33358 /dev/md/dNNpNN style partitionable mdraid devices.
33360 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
33362 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
33363 at a time limit of the PXE TFTP API correctly.
33364 (grub_pxefs_close): Likewise.
33366 2008-11-29 Robert Millan <rmh@aybabtu.com>
33368 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
33369 grub_ata_device_initialize() calls.
33371 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
33373 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
33375 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
33377 2008-11-28 Robert Millan <rmh@aybabtu.com>
33379 Fix build on powerpc-ieee1275. Based on patch created by
33380 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
33381 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
33382 `kern/ieee1275/mmap.c'.
33383 * include/grub/powerpc/ieee1275/memory.h: New file.
33385 Provide grub-install on coreboot.
33386 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
33387 (grub_install_SOURCES): New variable.
33388 * util/i386/pc/grub-install.in: Add a few condition checks to make it
33389 usable on coreboot.
33391 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
33393 * util/grub-fstest.c (grub_term_get_current_input): Change return type
33394 to `grub_term_input_t'.
33395 (grub_term_get_current_output): Change return type to
33396 `grub_term_output_t'.
33398 2008-11-22 Robert Millan <rmh@aybabtu.com>
33400 Fix breakage on coreboot due to declaration mismatch.
33401 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
33402 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
33403 grub_vga_text_cls().
33405 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
33406 comments. Avoid copying one more byte than necessary (just in case).
33408 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
33409 to 0x200000 (avoids trouble with some OFW implementations, and matches
33410 with the one in Yaboot).
33411 Reported by Manoel Abranches
33413 2008-11-20 Robert Millan <rmh@aybabtu.com>
33415 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
33416 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
33418 * util/grub-mkconfig_lib.in (grub_warn): New function.
33419 (convert_system_path_to_grub_path): Use grub_warn() when issuing
33420 warnings, to obtain consistent formatting.
33421 * util/grub.d/00_header.in: Likewise.
33422 * util/update-grub_lib.in: Likewise.
33424 * loader/i386/linux.c (allocate_pages): Fix a warning.
33425 Move comment text to `#error' stanza.
33427 Harmonize ieee1275's grub_available_iterate() with the generic
33428 grub_machine_mmap_iterate() interface (fixes a recently-introduced
33429 build problem on i386-ieee1275):
33430 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
33431 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
33432 parameter `type'. Update all users of this function.
33433 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33434 `kern/ieee1275/mmap.c'.
33435 * kern/ieee1275/init.c
33436 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
33438 (grub_machine_mmap_iterate): ... this.
33439 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
33440 return type to `grub_err_t'. Update all implementations of this
33441 function prototype.
33442 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
33445 Add `lsmmap' command (lists firmware-provided memory map):
33446 * commands/lsmmap.c: New file.
33447 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
33448 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
33450 * conf/powerpc-ieee1275.rmk: Likewise.
33451 * conf/i386-coreboot.rmk: Likewise.
33452 * conf/i386-ieee1275.rmk: Likewise.
33454 2008-11-19 Robert Millan <rmh@aybabtu.com>
33456 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
33457 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
33458 constraints to initrd allocation (based on code from
33459 loader/i386/pc/linux.c). Without them, initrd was allocated too high
33460 for Linux to find it.
33462 2008-11-14 Robert Millan <rmh@aybabtu.com>
33464 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
33465 order to cope with duplicate slashes.
33467 2008-11-14 Robert Millan <rmh@aybabtu.com>
33469 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
33470 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
33471 don't want to mess with lower memory, because it is used in the Linux
33474 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
33475 an appropriate place in lower memory, between 0x10000 and 0x90000,
33476 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
33477 is in our heap (probably as a result of it being corrupted during
33478 decompression). Add #error instance with comment to explain why this
33479 loader isn't currently usable on PC/BIOS.
33481 2008-11-14 Robert Millan <rmh@aybabtu.com>
33483 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
33484 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
33486 2008-11-12 Robert Millan <rmh@aybabtu.com>
33488 Make loader/i386/linux.c buildable on i386-pc (although disabled).
33490 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
33491 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
33493 * include/grub/i386/pc/memory.h: ... to here.
33495 2008-11-12 Robert Millan <rmh@aybabtu.com>
33497 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
33500 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
33501 (grub_console_cur_color, grub_console_real_putchar)
33502 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33503 (grub_console_setcolorstate, grub_console_setcolor)
33504 (grub_console_getcolor): Move from here ...
33505 * include/grub/i386/vga_common.h: ... to here (new file).
33507 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
33508 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
33509 `<grub/i386/io.h>'.
33510 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
33511 `<grub/i386/vga_common.h>'.
33513 2008-11-12 Robert Millan <rmh@aybabtu.com>
33515 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
33516 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
33517 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
33519 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
33520 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
33522 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
33523 grub_console_init() with call to grub_vga_text_init().
33524 (grub_machine_fini): Replace call to
33525 grub_console_fini() with call to grub_vga_text_fini() and
33526 grub_at_keyboard_fini().
33528 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
33529 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33530 (grub_console_setcolorstate, grub_console_setcolor)
33531 (grub_console_getcolor): New function prototypes.
33533 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
33534 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
33535 (grub_vga_text_setcursor): Static-ize.
33536 (grub_vga_text_term): New structure.
33537 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
33539 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
33540 (grub_console_cur_color, grub_console_standard_color)
33541 (grub_console_normal_color, grub_console_highlight_color)
33542 (map_char, grub_console_putchar, grub_console_getcharwidth)
33543 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
33544 (grub_console_getcolor): Move from here ...
33545 * term/i386/vga_common.c: ... to here (same function names).
33547 2008-11-12 Robert Millan <rmh@aybabtu.com>
33549 Use newly-added Multiboot support in coreboot.
33551 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
33552 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
33554 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
33555 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
33556 (codestart): Store the MBI in `startup_multiboot_info' when we're
33557 being loaded using Multiboot.
33559 * kern/i386/coreboot/init.c (grub_machine_init): Move
33560 grub_at_keyboard_init() call to beginning of function (useful for
33561 debugging). Call grub_machine_mmap_init() before attempting to use
33562 grub_machine_mmap_iterate().
33563 (grub_lower_mem, grub_upper_mem): Move from here ...
33564 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
33567 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
33568 function prototype.
33570 2008-11-12 Robert Millan <rmh@aybabtu.com>
33572 Fix a regression introduced by the at_keyboard.mod split. Because
33573 some terminals are default on some platforms and non-default on
33574 others, the first terminal being registered determines which is
33575 going to be default.
33577 * kern/term.c (grub_term_register_input): If this is the first
33578 terminal being registered, set it as the current one.
33579 (grub_term_register_output): Likewise.
33581 * term/efi/console.c (grub_console_init): Do not call
33582 grub_term_set_current_output() or grub_term_set_current_input().
33583 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
33584 * term/i386/pc/console.c (grub_console_init): Likewise.
33585 (grub_console_fini): Do not call grub_term_set_current_input()
33586 (but leave grub_term_set_current_output() to restore text mode).
33588 2008-11-10 Robert Millan <rmh@aybabtu.com>
33590 * util/grub.d/00_header.in: Add backward compatibility check for
33591 versions of terminal.mod that don't understand `terminal_input' or
33594 2008-11-09 Robert Millan <rmh@aybabtu.com>
33596 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
33597 `terminal_input' / `terminal_output', not `terminal'.
33599 2008-11-08 Robert Millan <rmh@aybabtu.com>
33601 * Makefile.in (include_DATA): Fix srcdir=. assumption.
33602 (DISTCLEANFILES): Add `build_env.mk'.
33604 2008-11-08 Robert Millan <rmh@aybabtu.com>
33606 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
33607 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33608 members. Update all users.
33609 * util/console.c (grub_ncurses_term): Split in ...
33610 (grub_ncurses_term_input): ... this, and ...
33611 (grub_ncurses_term_output): ... this. Update all users.
33612 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
33614 2008-11-08 Robert Millan <rmh@aybabtu.com>
33616 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
33617 (PKGDATA): Add $(pkgdata_SRCDIR).
33618 (pkglib_BUILDDIR): New variable.
33619 (pkgdata_SRCDIR): New variable.
33620 (build_env.mk): New target.
33621 (include_DATA): New variable.
33622 (install-local): Install $(include_DATA) files in $(includedir).
33624 2008-11-07 Pavel Roskin <proski@gnu.org>
33626 * gendistlist.sh: Use C locale for sorting to ensure consistent
33627 output on all systems.
33629 * util/grub.d/00_header.in: Remove incorrect space before
33632 2008-11-07 Robert Millan <rmh@aybabtu.com>
33634 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
33636 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
33637 * loader/multiboot_loader.c (find_multi_boot2_header): New function
33638 (based on find_multi_boot1_header).
33639 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
33640 using find_multi_boot2_header(), and abort if neither Multiboot or
33641 Multiboot headers were found.
33643 2008-11-07 Robert Millan <rmh@aybabtu.com>
33645 Modularize at_keyboard.mod:
33647 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
33648 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
33649 (at_keyboard_mod_LDFLAGS): New variables.
33651 Actual terminal split:
33653 * include/grub/term.h (struct grub_term): Split in ...
33654 (struct grub_term_input): ... this, and ...
33655 (struct grub_term_output): ... this. Update all users.
33656 (grub_term_set_current): Split in ...
33657 (grub_term_set_current_input): ... this, and ...
33658 (grub_term_set_current_output): ... this.
33659 (grub_term_get_current): Split in ...
33660 (grub_term_get_current_input): ... this, and ...
33661 (grub_term_get_current_output): ... this.
33662 (grub_term_register): Split in ...
33663 (grub_term_register_input): ... this, and ...
33664 (grub_term_register_output): ... this.
33665 (grub_term_unregister): Split in ...
33666 (grub_term_unregister_input): ... this, and ...
33667 (grub_term_unregister_output): ... this.
33668 (grub_term_iterate): Split in ...
33669 (grub_term_iterate_input): ... this, and ...
33670 (grub_term_iterate_output): ... this.
33672 * kern/term.c (grub_term_list): Split in ...
33673 (grub_term_list_input): ... this, and ...
33674 (grub_term_list_output): ... this. Update all users.
33675 (grub_cur_term): Split in ...
33676 (grub_cur_term_input): ... this, and ...
33677 (grub_cur_term_output): ... this. Update all users.
33678 (grub_term_set_current): Split in ...
33679 (grub_term_set_current_input): ... this, and ...
33680 (grub_term_set_current_output): ... this.
33681 (grub_term_get_current): Split in ...
33682 (grub_term_get_current_input): ... this, and ...
33683 (grub_term_get_current_output): ... this.
33684 (grub_term_register): Split in ...
33685 (grub_term_register_input): ... this, and ...
33686 (grub_term_register_output): ... this.
33687 (grub_term_unregister): Split in ...
33688 (grub_term_unregister_input): ... this, and ...
33689 (grub_term_unregister_output): ... this.
33690 (grub_term_iterate): Split in ...
33691 (grub_term_iterate_input): ... this, and ...
33692 (grub_term_iterate_output): ... this.
33694 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
33695 a check for input and one for output (and only attempt to get keys
33696 from user when input works).
33698 * util/grub-probe.c (grub_term_get_current): Split in ...
33699 (grub_term_get_current_input): ... this, and ...
33700 (grub_term_get_current_output): ... this.
33701 * util/grub-fstest.c: Likewise.
33702 * util/i386/pc/grub-setup.c: Likewise.
33703 * util/grub-editenv.c: Likewise.
33705 Portability adjustments:
33707 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
33708 `term/i386/pc/at_keyboard.c'.
33709 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
33710 grub_keyboard_controller_init() (now handled by terminal .init).
33711 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
33712 grub_at_keyboard_init().
33713 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
33714 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
33715 at_keyboard.mod via input terminal interface).
33716 * include/grub/i386/coreboot/console.h: Convert into a stub for
33717 `<grub/i386/pc/console.h>'.
33719 Migrate full terminals to new API:
33721 * term/efi/console.c (grub_console_term): Split into ...
33722 (grub_console_term_input): ... this, and ...
33723 (grub_console_term_output): ... this. Update all users.
33724 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
33725 (grub_ofconsole_init): Split into ...
33726 (grub_ofconsole_init_input): ... this, and ...
33727 (grub_ofconsole_init_output): ... this.
33728 (grub_ofconsole_term): Split into ...
33729 (grub_ofconsole_term_input): ... this, and ...
33730 (grub_ofconsole_term_output): ... this. Update all users.
33731 * term/i386/pc/serial.c (grub_serial_term): Split into ...
33732 (grub_serial_term_input): ... this, and ...
33733 (grub_serial_term_output): ... this. Update all users.
33734 * term/i386/pc/console.c (grub_console_term): Split into ...
33735 (grub_console_term_input): ... this, and ...
33736 (grub_console_term_output): ... this. Update all users.
33737 (grub_console_term_input): Only enable it on PC/BIOS platform.
33738 (grub_console_init): Remove grub_keyboard_controller_init() call.
33740 Migrate input terminals to new API:
33742 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
33743 `i386' and `i386/pc' to enable build on x86_64 (this driver is
33744 i386-specific anyway).
33745 (grub_console_checkkey): Rename to ...
33746 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
33748 (grub_keyboard_controller_orig): New variable.
33749 (grub_console_getkey): Rename to ...
33750 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
33752 (grub_keyboard_controller_init): Static-ize. Save original
33753 controller value so that it can be restored ...
33754 (grub_keyboard_controller_fini): ... here (new function).
33755 (grub_at_keyboard_term): New structure.
33756 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
33759 Migrate output terminals to new API:
33761 * term/i386/pc/vga.c (grub_vga_term): Change type to
33762 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33763 members. Update all users.
33764 * term/gfxterm.c (grub_video_term): Change type to
33765 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33766 members. Update all users.
33767 * include/grub/i386/pc/console.h (grub_console_checkkey)
33768 (grub_console_getkey): Do not export (no longer needed by gfxterm,
33771 Migrate `terminal' command and userland tools to new API:
33773 * commands/terminal.c (grub_cmd_terminal): Split into ...
33774 (grub_cmd_terminal_input): ... this, and ...
33775 (grub_cmd_terminal_output): ... this.
33776 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
33777 `terminal_input' and `terminal_output'.
33778 * util/grub.d/00_header.in: Adjust `terminal' calls to new
33779 `terminal_input' / `terminal_output' API.
33780 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
33781 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
33782 provided ${GRUB_TERMINAL}, convert it).
33784 2008-11-04 Robert Millan <rmh@aybabtu.com>
33786 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
33788 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
33790 2008-11-03 Bean <bean123ch@gmail.com>
33792 * kern/elf.c (grub_elf32_load): Revert to previous code.
33793 (grub_elf64_load): Likewise.
33795 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
33797 2008-11-01 Robert Millan <rmh@aybabtu.com>
33799 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
33800 (TARGET_CPPFLAGS): Likewise.
33801 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
33803 2008-11-01 Carles Pina i Estany <carles@pina.cat>
33805 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
33807 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
33809 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
33810 addition of objects until the code is not going to be able to fail.
33812 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
33814 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
33815 (add a missing NULL check, and correct them by moving the pointer
33816 operations after the actual check).
33818 2008-10-29 Robert Millan <rmh@aybabtu.com>
33820 * util/i386/pc/grub-install.in: Handle empty string as output from
33821 make_system_path_relative_to_its_root().
33823 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
33825 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
33826 circular metadata worst case scenario. If the metadata is circular
33827 then copy the wrap in place.
33828 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
33829 project lib/format_text/layout.h
33830 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
33832 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
33834 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
33836 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
33838 * util/update-grub_lib.in: Mention filename in warning message.
33840 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
33842 * NEWS: Update for rename of update-grub to grub-mkconfig.
33844 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
33846 * util/update-grub_lib.in: Copy to ...
33847 * util/grub-mkconfig_lib.in: ... this. Update all users.
33848 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
33849 * util/update-grub.in: Rename to ...
33850 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
33851 option. Add `--output' option to allow users to specify the generated
33852 configuration file. Default to stdout.
33853 (update_grub_dir): Rename to ...
33854 (grub_mkconfig_dir): ... this.
33855 (grub_cfg): Default to an empty string.
33856 * conf/common.rmk (update-grub): Rename to ...
33857 (grub-mkconfig): ... this.
33858 (update-grub_lib): Copy to ...
33859 (grub-mkconfig_lib): ... this.
33860 (update-grub_SCRIPTS): Copy to ...
33861 (grub-mkconfig_SCRIPTS): ... this. Update all users.
33862 (update-grub_DATA): Rename to ...
33863 (grub-mkconfig_DATA): ... this.
33865 2008-09-28 Robert Millan <rmh@aybabtu.com>
33867 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
33868 to `modified'. Add the real `created' field.
33869 (grub_iso9660_uuid): Use `modified' rather than `created' for
33870 constructing the UUID.
33872 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
33874 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
33875 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
33877 2008-09-28 Bean <bean123ch@gmail.com>
33879 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
33880 Thanks to Christian Franke for finding this bug.
33882 2008-09-25 Robert Millan <rmh@aybabtu.com>
33884 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
33885 instances of grub_util_get_disk_name() (see previous commit).
33887 2008-09-25 Robert Millan <rmh@aybabtu.com>
33889 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
33890 `util/i386/get_disk_name.c'.
33891 * conf/i386-efi.rmk: Likewise.
33892 * conf/x86_64-efi.rmk: Likewise.
33893 * conf/i386-coreboot.rmk: Likewise.
33894 * conf/i386-ieee1275.rmk: Likewise.
33895 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
33896 `util/ieee1275/get_disk_name.c'.
33897 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
33898 * util/ieee1275/get_disk_name.c: Remove file.
33899 * util/i386/get_disk_name.c: Remove file.
33900 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
33901 "hd%d" for device.map entries, rather than using
33902 grub_util_get_disk_name().
33904 2008-09-24 Carles Pina i Estany <carles@pina.cat>
33906 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
33908 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
33910 2008-09-24 Carles Pina i Estany <carles@pina.cat>
33912 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
33914 (GRUB_TERM_PPAGE): Changed to 0x4900.
33916 2008-09-24 Robert Millan <rmh@aybabtu.com>
33918 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
33919 macros (they were i386-pc specific).
33920 * include/grub/sparc64/ieee1275/console.h: Likewise.
33921 * include/grub/efi/console.h: Likewise.
33923 2008-09-22 Bean <bean123ch@gmail.com>
33925 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
33926 resident and in attribute list.
33928 * include/grub/ntfs.h (BMP_LEN): Removed.
33930 2008-09-22 Bean <bean123ch@gmail.com>
33932 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
33933 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
33935 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
33936 error occurs, as grub_disk_open will call grub_disk_close, which will
33937 call p->close (scsi).
33939 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
33941 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
33942 (AC_PREREQ): Bumped to 2.59.
33943 (AC_TRY_COMPILE): Replace obsolete macro with ...
33944 (AC_COMPILE_IFELSE): ... this.
33945 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
33946 (AC_LINK_IFELSE): ... this.
33948 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
33950 * autogen.sh: Add a call to `gendistlist.sh'.
33952 2008-09-19 Christian Franke <franke@computer.org>
33954 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
33955 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
33956 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
33957 Export __enable_execute_stack() to modules.
33958 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
33961 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
33963 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
33966 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
33968 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
33969 #include <grub/util/hostdisk.h>.
33971 2008-09-08 Robert Millan <rmh@aybabtu.com>
33973 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
33974 segments when their filesz is zero (grub_file_read() interprets
33975 zero-size as "read until EOF", which results in memory corruption).
33976 Use `lowest_segment' rather than 0 for calculating the current
33977 segment load address.
33979 2008-09-08 Robert Millan <rmh@aybabtu.com>
33981 * util/hostdisk.c (open_device): Replace a grub_util_info() call
33982 with grub_dprintf("hostdisk", ...), as it was so verbose that it
33983 clobbered useful information.
33985 2008-09-08 Robert Millan <rmh@aybabtu.com>
33987 * include/grub/util/biosdisk.h: Move to ...
33988 * include/grub/util/hostdisk.h: ... here. Update all users.
33989 * util/biosdisk.c: Move to ...
33990 * util/hostdisk.c: ... here. Update all users.
33992 2008-09-07 Robert Millan <rmh@aybabtu.com>
33994 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
33996 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
33997 and length can be stored directly in the `mbi->mmap_addr' and
33998 `mbi->mmap_length' struct fields.
34000 2008-09-07 Robert Millan <rmh@aybabtu.com>
34002 * conf/i386.rmk: New file. Provides declaration for building
34004 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34005 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34007 Include `conf/i386.mk'.
34008 * conf/i386-efi.rmk: Likewise.
34009 * conf/x86_64-efi.rmk: Likewise.
34010 * conf/i386-coreboot.rmk: Likewise.
34011 * conf/i386-ieee1275.rmk: Likewise.
34013 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34015 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34016 Adds optimization support for BGR based modes.
34018 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34019 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34020 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34021 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34022 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34023 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34024 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34025 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34026 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34027 (grub_video_i386_vbeblit_index_index): Likewise.
34028 (grub_video_i386_vbeblit_replace_directN): Added.
34029 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34030 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34031 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34032 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34033 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34034 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34035 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34036 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34037 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34038 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34039 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34040 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34041 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34043 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34044 (grub_video_i386_vbefill_R8G8B8): Likewise.
34045 (grub_video_i386_vbefill_index): Likewise.
34046 (grub_video_i386_vbefill_direct32): Added.
34047 (grub_video_i386_vbefill_direct24): Likewise.
34048 (grub_video_i386_vbefill_direct16): Likewise.
34049 (grub_video_i386_vbefill_direct8): Likewise.
34051 * include/grub/video.h (grub_video_blit_format): Removed
34052 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
34053 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
34054 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
34055 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
34056 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
34058 * video/video.c (grub_video_get_blit_format): Updated to use new
34059 blit formats. Added handling for 16 bit color modes.
34061 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
34063 (common_blitter): Updated to use new blitters.
34065 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
34067 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34068 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34069 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34070 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34071 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34072 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34073 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34074 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34075 (grub_video_i386_vbeblit_index_index): Likewise.
34076 (grub_video_i386_vbeblit_replace_directN): Added.
34077 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34078 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34079 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34080 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34081 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34082 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34083 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34084 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34085 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34086 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34087 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34088 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34089 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34091 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
34092 (grub_video_i386_vbefill_R8G8B8): Likewise.
34093 (grub_video_i386_vbefill_index): Likewise.
34094 (grub_video_i386_vbefill_direct32): Added.
34095 (grub_video_i386_vbefill_direct24): Likewise.
34096 (grub_video_i386_vbefill_direct16): Likewise.
34097 (grub_video_i386_vbefill_direct8): Likewise.
34099 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
34102 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
34105 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
34108 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
34111 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34113 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
34116 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
34118 * fs/iso9660.c (grub_iso9660_date): New structure.
34119 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
34120 (grub_iso9660_uuid): New function.
34122 2008-09-05 Bean <bean123ch@gmail.com>
34124 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
34126 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
34127 insensitive bit for names in Win32 and Win32 & DOS namespace.
34129 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
34131 * include/grub/types.h (LONG_MAX): Likewise.
34133 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34135 * util/getroot.c: Include <config.h>.
34136 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
34137 add support for /dev/md/N devices and handle LVM double dash escaping.
34139 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
34141 * config.guess: Update to latest version from config git.
34142 * config.sub: Likewise.
34144 2008-09-03 Robert Millan <rmh@aybabtu.com>
34146 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
34147 `disk->total_sectors'.
34149 2008-09-01 Colin D Bennett <colin@gibibit.com>
34151 * include/grub/normal.h: Fixed incorrect comment for
34152 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
34154 2008-09-01 Colin D Bennett <colin@gibibit.com>
34156 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
34157 values with defines.
34159 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
34160 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
34161 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
34162 (GRUB_VBE_MODEATTR_COLOR): Likewise.
34163 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
34164 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
34165 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
34166 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
34167 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
34168 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
34169 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
34170 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
34171 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
34172 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
34173 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
34174 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
34175 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
34176 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
34177 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
34179 2008-08-31 Robert Millan <rmh@aybabtu.com>
34181 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
34183 (grub_multiboot): Fix a few warnings.
34185 2008-08-31 Robert Millan <rmh@aybabtu.com>
34187 * loader/i386/pc/multiboot.c: Update comment not to say that
34188 boot_device support is unimplemented.
34190 2008-08-31 Robert Millan <rmh@aybabtu.com>
34192 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
34193 or memory map support are unimplemented.
34195 2008-08-31 Colin D Bennett <colin@gibibit.com>
34197 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
34199 2008-08-31 Colin D Bennett <colin@gibibit.com>
34201 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
34202 total video memory in 'vbeinfo' output; show color format details for
34205 2008-08-30 Pavel Roskin <proski@gnu.org>
34207 * util/genmoddep.c: Remove for real this time.
34208 * DISTLIST: Remove util/genmoddep.c.
34210 2008-08-30 Robert Millan <rmh@aybabtu.com>
34212 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
34213 as required by Multiboot spec (it was already 4-byte aligned, but
34216 2008-08-29 Pavel Roskin <proski@gnu.org>
34218 * kern/powerpc/ieee1275/crt0.S: Rename to ...
34219 * kern/powerpc/ieee1275/startup.S: ... this.
34220 * conf/powerpc-ieee1275.rmk: Adjust for the above.
34221 * DISTLIST: Likewise.
34223 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
34224 grub/cpu/kernel.h. Add start label for consistency with other
34225 platforms. Add grub_prefix immediately after start. Add jump
34226 to the code after grub_prefix.
34227 * include/grub/powerpc/kernel.h: Provide valid values for
34228 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
34230 2008-08-29 Bean <bean123ch@gmail.com>
34232 * configure.ac: Change host_os to cygwin for mingw.
34233 (asprintf): New check for function.
34235 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
34236 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
34238 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
34239 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
34240 sync, sleep and grub_util_get_disk_size for mingw.
34242 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
34243 to get size in mingw.
34244 (open_device): Use flag O_BINARY if it's defined.
34245 (find_root_device): Add dummy code for mingw.
34247 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
34248 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
34249 (get_scsi_disk_name): Return 0 for mingw.
34251 * util/hostfs.c: #include <grub/util/misc.h>.
34252 (grub_hostfs_open): Use "rb" flag to open file, use
34253 grub_util_get_disk_size to get disk size for mingw.
34255 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
34256 (asprintf): New function if HAVE_ASPRINTF is not set.
34257 (sync): New function for mingw.
34259 (grub_util_get_disk_size): Likewise.
34261 2008-08-28 Pavel Roskin <proski@gnu.org>
34263 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34266 2008-08-28 Robert Millan <rmh@aybabtu.com>
34268 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
34270 2008-08-28 Robert Millan <rmh@aybabtu.com>
34272 Change find_grub_drive() syntax so it doesn't prevent it from
34273 detecting NULL names as errors.
34275 * util/biosdisk.c (find_grub_drive): Move free slot search code
34277 (find_free_slot): ... to here.
34278 (read_device_map): Use find_free_slot() to search for free slots.
34280 2008-08-27 Marco Gerards <marco@gnu.org>
34282 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
34283 (scsi_mod_SOURCES): New variable.
34284 (scsi_mod_CFLAGS): Likewise
34285 (scsi_mod_LDFLAGS): Likewise.
34287 * disk/scsi.c: New file.
34289 * include/grub/scsi.h: Likewise.
34291 * include/grub/scsicmd.h: Likewise.
34293 * disk/ata.c: Include <grub/scsi.h>.
34294 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
34296 (grub_ata_iterate): Skip ATAPI devices.
34297 (grub_ata_open): Only handle ATAPI devices.
34298 (struct grub_atapi_read): Removed.
34299 (grub_atapi_readsector): Likewise.
34300 (grub_ata_read): No longer handle ATAPI devices.
34301 (grub_ata_write): Likewise.
34302 (grub_atapi_iterate): New function.
34303 (grub_atapi_read): Likewise.
34304 (grub_atapi_write): Likewise.
34305 (grub_atapi_open): Likewise.
34306 (grub_atapi_close): Likewise.
34307 (grub_atapi_dev): New variable.
34308 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
34309 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
34311 * include/grub/disk.h (enum grub_disk_dev_id): Add
34312 `GRUB_DISK_DEVICE_SCSI_ID'.
34314 2008-08-26 Robert Millan <rmh@aybabtu.com>
34316 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
34317 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
34320 2008-08-23 Bean <bean123ch@gmail.com>
34322 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
34323 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34324 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
34325 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
34327 (raid5rec_mod_SOURCES): New macro.
34328 (raid5rec_mod_CFLAGS): Likewise.
34329 (raid5rec_mod_LDFLAGS): Likewise.
34330 (raid6rec_mod_SOURCES): Likewise.
34331 (raid6rec_mod_CFLAGS): Likewise.
34332 (raid6rec_mod_LDFLAGS): Likewise.
34333 (mdraid_mod_SOURCES): Likewise.
34334 (mdraid_mod_CFLAGS): Likewise.
34335 (mdraid_mod_LDFLAGS): Likewise.
34336 (dm_nv_mod_SOURCES): Likewise.
34337 (dm_nv_mod_CFLAGS): Likewise.
34338 (dm_nv_mod_LDFLAGS): Likewise.
34340 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
34341 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34342 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34344 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
34345 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34347 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34349 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34351 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34353 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34355 * disk/raid5_recover.c: New file.
34357 * disk/raid6_recover.c: Likewise.
34359 * disk/mdraid_linux.c: Likewise.
34361 * disk/dmraid_nvidia.c: Likewise.
34363 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
34366 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
34367 calculate the size of raid device.
34368 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
34369 different layout of raid5.
34370 (grub_raid_scan_device): Remove code specific to mdraid.
34371 (grub_raid_list): New variable.
34372 (free_array): New function.
34373 (grub_raid_register): Likewise.
34374 (grub_raid_unregister): Likewise.
34375 (grub_raid_rescan): Likewise.
34376 (GRUB_MOD_INIT): Don't iterate device here.
34377 (GRUB_MOD_FINI): Use free_array to release resource.
34379 * include/grub/raid.h: Remove macro and structure specific to mdraid.
34380 (grub_raid5_recover_func_t): New function variable type.
34381 (grub_raid6_recover_func_t): Likewise.
34382 (grub_raid5_recover_func): New variable.
34383 (grub_raid6_recover_func): Likewise.
34384 (grub_raid_register): New function.
34385 (grub_raid_unregister): Likewise.
34386 (grub_raid_rescan): Likewise.
34387 (grub_raid_block_xor): Likewise.
34389 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
34390 (CMD_CRC): New macro.
34392 (read_file): Handle device as well as file.
34393 (cmd_crc): New function.
34394 (fstest): Handle multiple disks.
34395 (options): Remove part, raw and long, add root and diskcount.
34396 (usage): Add crc, remove -p, -r, -l, add -r and -c.
34397 (main): Find the first non option entry and ignore subsequent options,
34398 add handling for the new options, support multiple disks.
34400 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
34402 2008-08-23 Bean <bean123ch@gmail.com>
34404 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
34406 * genfslist.sh: Ignore kernel.mod.
34408 * genpartmaplist.sh: Likewise.
34410 2008-08-23 Robert Millan <rmh@aybabtu.com>
34412 * util/getroot.c (find_root_device): Skip anything that starts with
34413 a dot, not just directories. This avoids things like /dev/.tmp.md0.
34415 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
34417 * util/update-grub.in (GRUB_GFXMODE): Export variable.
34418 * util/grub.d/00_header.in: Allow the administrator to change default
34419 gfxmode via ${GRUB_GFXMODE}.
34421 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
34423 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
34425 2008-08-21 Robert Millan <rmh@aybabtu.com>
34427 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
34429 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
34430 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
34432 2008-08-20 Carles Pina i Estany <carles@pina.cat>
34434 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
34435 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
34437 2008-08-19 Robert Millan <rmh@aybabtu.com>
34439 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
34440 (struct grub_virtual_screen): Remove `cursor_color'.
34441 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
34443 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
34445 2008-08-18 Robert Millan <rmh@aybabtu.com>
34447 Unify (identical) linux_normal.c files.
34448 * loader/i386/efi/linux_normal.c: Move from here ...
34449 * loader/linux_normal.c: ... to here. Update all users.
34450 * loader/i386/pc/linux_normal.c: Delete. Update all users.
34451 * loader/i386/ieee1275/linux_normal.c: Likewise.
34453 2008-08-18 Robert Millan <rmh@aybabtu.com>
34455 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
34456 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
34457 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
34458 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
34459 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
34461 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
34462 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
34463 (GRUB_LINUX_CL_END_OFFSET): ... to here.
34464 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
34465 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
34466 (GRUB_EFI_CL_END_OFFSET): Rename to ...
34467 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
34468 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
34469 Initialize `params->video_cursor_x' and `params->video_cursor_y'
34470 portably using grub_getxy().
34471 Replace `-EFI' with `-bzImage' in boot message.
34473 2008-08-17 Robert Millan <rmh@aybabtu.com>
34475 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
34477 2008-08-17 Robert Millan <rmh@aybabtu.com>
34479 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
34481 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
34482 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
34483 (grub_machine_mmap_iterate): New function declaration.
34484 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
34486 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
34489 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
34490 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
34491 Move e820 parsing from here ...
34492 * kern/i386/pc/mmap.c: New file.
34493 (grub_machine_mmap_iterate): ... to here.
34495 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
34496 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
34497 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
34498 (grub_available_iterate): Redeclare to return `void', and redeclare
34499 its hook to use grub_uint64_t as addr and size parameters, and rename
34501 (grub_machine_mmap_iterate): ... this. Update all users.
34503 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
34504 to make it more readable. Rename to ...
34505 (grub_machine_mmap_iterate): ... this.
34507 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
34508 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
34509 (grub_multiboot): Allocate an extra region after the payload, and fill
34510 it with a Multiboot memory map. Adjust a.out loader to calculate size
34511 with the extra space.
34512 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
34513 with the extra space.
34515 2008-08-17 Carles Pina i Estany <carles@pina.cat>
34517 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
34519 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
34521 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
34522 mdate-sh to the list `find' searches for.
34523 * DISTLIST: Regenerated.
34525 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
34527 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
34528 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
34529 genmoddep.awk, gensymlist.sh.in.
34530 (DISTDIRS): Add bus, docs, hook, lib.
34531 * DISTLIST: Regenerated.
34532 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
34534 2008-08-16 Robert Millan <rmh@aybabtu.com>
34536 * disk/raid.c (grub_raid_init): Handle/report errors set by
34537 grub_device_iterate().
34538 * disk/lvm.c (grub_lvm_init): Likewise.
34540 2008-08-15 Bean <bean123ch@gmail.com>
34542 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34544 (datetime_mod_SOURCES): New macro.
34545 (datetime_mod_CFLAGS): Likewise.
34546 (datetime_mod_LDFLAGS): Likewise.
34547 (date_mod_SOURCES): Likewise.
34548 (date_mod_CFLAGS): Likewise.
34549 (date_mod_LDFLAGS): Likewise.
34550 (datehook_mod_SOURCES): Likewise.
34551 (datehook_mod_CFLAGS): Likewise.
34552 (datehook_mod_LDFLAGS): Likewise.
34554 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34556 (datetime_mod_SOURCES): New macro.
34557 (datetime_mod_CFLAGS): Likewise.
34558 (datetime_mod_LDFLAGS): Likewise.
34559 (date_mod_SOURCES): Likewise.
34560 (date_mod_CFLAGS): Likewise.
34561 (date_mod_LDFLAGS): Likewise.
34562 (datehook_mod_SOURCES): Likewise.
34563 (datehook_mod_CFLAGS): Likewise.
34564 (datehook_mod_LDFLAGS): Likewise.
34566 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34568 (datetime_mod_SOURCES): New macro.
34569 (datetime_mod_CFLAGS): Likewise.
34570 (datetime_mod_LDFLAGS): Likewise.
34571 (date_mod_SOURCES): Likewise.
34572 (date_mod_CFLAGS): Likewise.
34573 (date_mod_LDFLAGS): Likewise.
34574 (datehook_mod_SOURCES): Likewise.
34575 (datehook_mod_CFLAGS): Likewise.
34576 (datehook_mod_LDFLAGS): Likewise.
34578 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34580 (datetime_mod_SOURCES): New macro.
34581 (datetime_mod_CFLAGS): Likewise.
34582 (datetime_mod_LDFLAGS): Likewise.
34583 (date_mod_SOURCES): Likewise.
34584 (date_mod_CFLAGS): Likewise.
34585 (date_mod_LDFLAGS): Likewise.
34586 (datehook_mod_SOURCES): Likewise.
34587 (datehook_mod_CFLAGS): Likewise.
34588 (datehook_mod_LDFLAGS): Likewise.
34590 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34592 (datetime_mod_SOURCES): New macro.
34593 (datetime_mod_CFLAGS): Likewise.
34594 (datetime_mod_LDFLAGS): Likewise.
34595 (date_mod_SOURCES): Likewise.
34596 (date_mod_CFLAGS): Likewise.
34597 (date_mod_LDFLAGS): Likewise.
34598 (datehook_mod_SOURCES): Likewise.
34599 (datehook_mod_CFLAGS): Likewise.
34600 (datehook_mod_LDFLAGS): Likewise.
34602 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
34604 * commands/date.c: New file.
34606 * hook/datehook.c: Likewise.
34608 * include/grub/lib/datetime.h: Likewise.
34610 * include/grub/i386/cmos.h: Likewise.
34612 * lib/datetime.c: Likewise.
34614 * lib/i386/datetime.c: Likewise.
34616 * lib/efi/datetime.c: Likewise.
34618 2008-08-14 Robert Millan <rmh@aybabtu.com>
34620 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
34621 (grub_mkelfimage_SOURCES): New variable.
34622 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
34624 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
34625 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
34626 * conf/powerpc-ieee1275.rmk: Likewise.
34627 * conf/i386-ieee1275.rmk: Likewise.
34629 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
34630 * kern/i386/coreboot/init.c: Likewise.
34632 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
34633 with `<grub/cpu/kernel.h>'.
34634 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
34636 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
34637 * kern/i386/coreboot/startup.S: Likewise.
34639 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
34640 (GRUB_MOD_GAP): Remove.
34641 * include/grub/powerpc/kernel.h: New file.
34642 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
34643 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
34644 * include/grub/i386/kernel.h: New file.
34645 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
34646 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
34647 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
34649 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
34651 Use --directory when invoking grub_mkimage.
34653 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
34654 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
34655 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
34656 and GRUB_KERNEL_CPU_PREFIX.
34658 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
34660 * include/grub/err.h (grub_err_printf): New function prototype.
34661 * util/misc.c (grub_err_printf): New function.
34662 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
34664 * kern/err.c (grub_print_error): Use grub_err_printf.
34666 2008-08-13 Robert Millan <rmh@aybabtu.com>
34668 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
34670 2008-08-13 Robert Millan <rmh@aybabtu.com>
34672 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
34675 2008-08-12 Robert Millan <rmh@aybabtu.com>
34677 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
34678 of the relocation code from here ...
34679 (grub_multiboot): ... to here.
34680 (forward_relocator, backward_relocator): Move from here ...
34681 * kern/i386/loader.S (grub_multiboot_forward_relocator)
34682 (grub_multiboot_backward_relocator): ... to here.
34683 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
34684 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
34685 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
34686 (grub_multiboot_forward_relocator_end)
34687 (grub_multiboot_backward_relocator)
34688 (grub_multiboot_backward_relocator_end): New variables.
34690 2008-08-12 Bean <bean123ch@gmail.com>
34692 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
34694 2008-08-11 Robert Millan <rmh@aybabtu.com>
34696 * kern/i386/linuxbios/startup.S: Move from here ...
34697 * kern/i386/coreboot/startup.S: ... to here.
34699 * kern/i386/linuxbios/init.c: Move from here ...
34700 * kern/i386/coreboot/init.c: ... to here.
34702 * kern/i386/linuxbios/table.c: Move from here ...
34703 * kern/i386/coreboot/mmap.c: ... to here.
34705 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
34707 2008-08-11 Robert Millan <rmh@aybabtu.com>
34709 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
34710 errors. Leave it to the upper layer to handle them.
34712 2008-08-09 Christian Franke <franke@computer.org>
34714 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
34715 * conf/common.rmk: Install `grub-pe2elf' only if requested.
34716 Install `grub.d/10_windows' only on Cygwin.
34717 * configure.ac: Add subst of `target_os'.
34718 Check `target_os' also before setting TARGET_OBJ2ELF.
34719 Add `--enable-grub-pe2elf'.
34721 2008-08-08 Robert Millan <rmh@aybabtu.com>
34723 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
34724 (grub_last_time): Change type to grub_uint64_t.
34725 (grub_disk_open): Migrate code from to using grub_get_time_ms().
34726 (grub_disk_close): Likewise.
34728 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
34729 (run_menu): Migrate code from to using grub_get_time_ms().
34731 * util/misc.c (grub_get_time_ms): New function.
34733 2008-08-08 Marco Gerards <marco@gnu.org>
34735 * disk/ata.c (grub_ata_regget): Change return type to
34737 (grub_ata_regget2): Likewise.
34738 (grub_ata_wait_status): New function.
34739 (grub_ata_wait_busy): Removed function, updated all users to use
34740 `grub_ata_wait_status'.
34741 (grub_ata_wait_drq): Likewise.
34742 (grub_ata_cmd): New function.
34743 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
34745 (grub_ata_pio_write): Add error handling.
34746 (grub_atapi_identify): Likewise.
34747 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
34749 (grub_ata_identify): Use `grub_ata_cmd' and improve error
34750 handling. Actually use the detected registers. Reorder the
34751 detection logic such that it is easier to read.
34752 (grub_ata_pciinit): Do not assign the same ID to each controller.
34753 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
34755 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
34757 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
34759 2008-08-08 Marco Gerards <marco@gnu.org>
34763 2008-08-07 Bean <bean123ch@gmail.com>
34765 * include/grub/x86_64/pci.h: New file.
34767 2008-08-07 Christian Franke <franke@computer.org>
34769 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
34770 (TIMER2_GATE): Likewise.
34771 (grub_pit_wait): Add enable/disable of the timer2 gate
34772 bit of port 0x61. This fixes a possible infinite loop.
34774 2008-08-07 Bean <bean123ch@gmail.com>
34776 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
34777 kern/i386/tsc.c and kern/i386/pit.c.
34779 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
34782 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
34785 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
34787 2008-08-07 Bean <bean123ch@gmail.com>
34789 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
34791 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
34793 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
34794 multiple inclusion. Add #include <grub/types.h>.
34796 2008-08-06 Christian Franke <franke@computer.org>
34798 * conf/common.rmk: Build and install `10_windows'.
34799 * util/grub.d/10_windows.in: New script.
34801 2008-08-06 Pavel Roskin <proski@gnu.org>
34803 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
34805 2008-08-06 Robert Millan <rmh@aybabtu.com>
34807 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
34808 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
34810 2008-08-06 Bean <bean123ch@gmail.com>
34812 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
34813 (grub_pxefs_fs_int): Remove dummy definition.
34814 (grub_pxefs_open): Use data->block_size to store the current block
34816 (grub_pxefs_read): Use block size stored in data->block_size. As the
34817 value of grub_pxe_blksize can be changed after the file is opened.
34819 2008-08-06 Bean <bean123ch@gmail.com>
34821 * fs/i386/pc/pxe.c (curr_file): new variable.
34822 (grub_pxefs_open): Simply the handling of pxe file system. Don't
34823 require the dummy internal file system anymore.
34824 (grub_pxefs_read): Removed.
34825 (grub_pxefs_close): Likewise.
34826 (grub_pxefs_fs_int): Likewise.
34827 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
34828 connection when we switch file.
34829 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
34831 2008-08-06 Robert Millan <rmh@aybabtu.com>
34833 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
34835 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
34836 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
34838 * kern/i386/halt.c: New file.
34839 * kern/i386/reboot.c: Likewise.
34840 * include/grub/i386/reboot.h: Likewise.
34841 * include/grub/i386/halt.h: Likewise.
34843 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
34844 Include `<grub/cpu/halt.h>'.
34845 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
34846 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
34848 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
34849 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
34850 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
34851 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
34852 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
34853 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
34855 * include/grub/i386/at_keyboard.h: ... to here.
34857 2008-08-05 Robert Millan <rmh@aybabtu.com>
34859 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
34860 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
34861 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
34862 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
34863 `kern/generic/millisleep.c'.
34865 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
34866 instead of grub_get_rtc().
34867 (grub_tsc_init): Initialize `tsc_boot_time'.
34869 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
34870 (grub_machine_init): Use grub_tsc_init() rather than
34871 installing an RTC-based handler via grub_install_get_time_ms().
34873 * kern/i386/pit.c: New file.
34874 * include/grub/i386/pit.h: Likewise.
34876 2008-08-05 Bean <bean123ch@gmail.com>
34878 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
34880 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
34881 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
34882 (pxe_mod_SOURCES): New macro.
34883 (pxe_mod_CFLAGS): Likewise.
34884 (pxe_mod_LDFLAGS): Likewise.
34885 (pxecmd_mod_SOURCES): Likewise.
34886 (pxecmd_mod_CFLAGS): Likewise.
34887 (pxecmd_mod_LDFLAGS): Likewise.
34889 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
34890 (grub_pxe_call): Likewise.
34892 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
34894 * commands/i386/pc/pxecmd.c: New file.
34896 * fs/i386/pc/pxe.c: Likewise.
34898 * include/grub/i386/pc/pxe.h: Likewise.
34900 2008-08-05 Bean <bean123ch@gmail.com>
34902 * util/console.c (grub_console_cur_color): New variable.
34903 (grub_console_standard_color): Likewise.
34904 (grub_console_normal_color): Likewise.
34905 (grub_console_highlight_color): Likewise.
34906 (color_map): Likewise.
34907 (use_color): Likewise.
34908 (NUM_COLORS): New macro.
34909 (grub_ncurses_setcolorstate): Handle color properly.
34910 (grub_ncurses_setcolor): Don't change color here, just remember the
34911 settings, color will be set in grub_ncurses_setcolorstate.
34912 (grub_ncurses_getcolor): New function.
34913 (grub_ncurses_init): Initialize color pairs.
34914 (grub_ncurses_term): New member grub_ncurses_getcolor.
34916 2008-08-05 Colin D Bennett <colin@gibibit.com>
34918 High resolution timer support. Implemented for x86 CPUs using TSC.
34919 Extracted generic grub_millisleep() so it's linked in only as needed.
34920 This requires a Pentium compatible CPU; if the RDTSC instruction is
34921 not supported, then it falls back on the generic grub_get_time_ms()
34922 implementation that uses the machine's RTC.
34924 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
34925 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
34926 `kern/generic/millisleep.c'.
34928 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
34929 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
34931 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
34932 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
34934 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
34936 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34937 `kern/generic/millisleep.c'.
34939 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
34941 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
34943 * kern/generic/rtc_get_time_ms.c: New file.
34945 * kern/generic/millisleep.c: New file.
34947 * kern/misc.c: Don't include
34948 <kern/time.h> anymore.
34949 (grub_millisleep_generic): Removed.
34951 * commands/sleep.c (grub_interruptible_millisleep): Uses
34952 grub_get_time_ms() instead of grub_get_rtc().
34954 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
34956 (grub_cpu_is_cpuid_supported): New inline function.
34957 (grub_cpu_is_tsc_supported): New inline function.
34958 (grub_tsc_init): New function prototype.
34959 (grub_tsc_get_time_ms): New function prototype.
34961 * kern/i386/tsc.c (grub_get_time_ms): New file.
34963 * include/grub/time.h: Include <grub/types.h.
34964 (grub_millisleep_generic): Removed.
34965 (grub_get_time_ms): New prototype.
34966 (grub_install_get_time_ms): New prototype.
34967 (grub_rtc_get_time_ms): New prototype.
34969 * kern/time.c (grub_get_time_ms): New function.
34970 (grub_install_get_time_ms): New function.
34972 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
34973 <grub/time.h> anymore.
34974 (grub_millisleep): Removed.
34975 (grub_machine_init): Call grub_tsc_init.
34977 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
34978 get_time_ms() implementation.
34980 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
34981 (ieee1275_get_time_ms): New function.
34982 (grub_machine_init): Install get_time_ms() implementation.
34984 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
34985 (grub_machine_init): Call grub_tsc_init().
34986 (grub_millisleep): Removed.
34988 * kern/ieee1275/init.c (grub_millisleep): Removed.
34989 (grub_machine_init): Install ieee1275_get_time_ms()
34991 (ieee1275_get_time_ms): New function.
34992 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
34995 2008-08-05 Marco Gerards <marco@gnu.org>
34997 * disk/ata.c: Include <grub/pci.h>.
34998 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
34999 (grub_ata_initialize): Rewritten.
35000 (grub_ata_device_initialize): New function.
35002 2008-08-04 Pavel Roskin <proski@gnu.org>
35004 * kern/main.c: Include grub/mm.h.
35006 2008-08-04 Robert Millan <rmh@aybabtu.com>
35008 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35009 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35010 corruption problem).
35012 2008-08-04 Robert Millan <rmh@aybabtu.com>
35014 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35015 warnings introduced in my last commit.
35017 2008-08-03 Robert Millan <rmh@aybabtu.com>
35019 Make PCI available on all i386 architectures.
35021 * include/grub/i386/pc/pci.h: Move from here ...
35022 * include/grub/i386/pci.h: ... to here.
35024 * include/grub/i386/pc/pci.h: Remove.
35025 * include/grub/i386/efi/pci.h: Remove.
35026 * include/grub/x86_64/efi/pci.h: Remove.
35028 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35029 `<grub/cpu/pci.h>'.
35031 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35032 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35033 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35035 * conf/i386-ieee1275.rmk: Likewise.
35037 2008-08-03 Robert Millan <rmh@aybabtu.com>
35039 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35040 (grub_console_setcursor): Make it possible to set cursor off.
35042 2008-08-03 Robert Millan <rmh@aybabtu.com>
35044 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35045 of modules instead of assuming which platform provides what.
35046 * util/update-grub.in: Likewise.
35048 2008-08-03 Robert Millan <rmh@aybabtu.com>
35050 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35051 instead of `grub_install_dos_part' to determine whether a drive needs
35052 to be prepended to prefix (`grub_install_dos_part' is not reliable,
35053 because it can be overridden when loading GRUB via Multiboot).
35055 2008-08-02 Robert Millan <rmh@aybabtu.com>
35057 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
35059 2008-08-02 Robert Millan <rmh@aybabtu.com>
35061 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
35062 of informational grub_dprintf() calls.
35064 2008-08-02 Robert Millan <rmh@aybabtu.com>
35066 * disk/memdisk.c (memdisk_size): Don't initialize.
35067 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
35069 * include/grub/i386/pc/kernel.h
35070 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
35071 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
35072 (grub_memdisk_image_size, grub_arch_memdisk_addr)
35073 (grub_arch_memdisk_size): Remove.
35075 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
35076 field (was only used to transfer a constant). Add `type' field to
35077 support multiple module types.
35078 (grub_module_iterate): New function.
35080 * kern/device.c (grub_device_open): Do not hide error messages
35081 when grub_disk_open() fails. Use grub_print_error() instead.
35083 * kern/i386/pc/init.c (grub_arch_modules_addr)
35084 (grub_arch_memdisk_size): Remove functions.
35085 (grub_arch_modules_addr): Return the module address in high memory
35086 (now that it isn't copied anymore).
35088 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
35089 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
35090 decompression routine (grub_total_module_size already includes that
35091 now). Don't copy modules back to low memory.
35093 * kern/main.c: Include `<grub/mm.h>'.
35094 (grub_load_modules): Split out (and use) ...
35095 (grub_module_iterate): ... this function, which iterates through
35096 module objects and runs a hook.
35097 Comment out grub_mm_init_region() call, as it would cause non-ELF
35098 modules to be overwritten.
35100 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
35101 the memdisk image in its own region, make it part of the module list.
35102 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
35103 (main): Parse --memdisk|-m option, and pass user-provided path as
35104 parameter to generate_image().
35105 (add_segments): Pass `memdisk_path' down to load_modules().
35106 (load_modules): Embed memdisk image in module section when requested.
35107 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
35108 `header.type' instead of `header.offset'.
35110 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
35111 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
35112 (memdisk_mod_LDFLAGS): New variables.
35113 * conf/i386-coreboot.rmk: Likewise.
35114 * conf/i386-ieee1275.rmk: Likewise.
35116 2008-08-02 Robert Millan <rmh@aybabtu.com>
35118 * loader/i386/pc/multiboot.c (playground, forward_relocator)
35119 (backward_relocator): New variables. Used to allocate and relocate
35120 the payload, respectively.
35121 (grub_multiboot_load_elf32): Load into heap instead of requested
35122 address, install the appropriate relocator code in each bound of
35123 the payload, and set the entry point such that
35124 grub_multiboot_real_boot() will jump to one of them.
35126 * kern/i386/loader.S (grub_multiboot_payload_size)
35127 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35128 (grub_multiboot_payload_entry_offset): New variables.
35129 (grub_multiboot_real_boot): Set cpu context to what the relocator
35130 expects, and jump to the relocator instead of the payload.
35132 * include/grub/i386/loader.h (grub_multiboot_payload_size)
35133 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35134 (grub_multiboot_payload_entry_offset): Export.
35136 2008-08-01 Bean <bean123ch@gmail.com>
35138 * normal/menu_entry.c (editor_getline): Don't return the original
35139 string as result, as it will be released by lexer once it has done
35142 2008-08-01 Robert Millan <rmh@aybabtu.com>
35144 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
35145 within menuentries, not before them.
35146 util/grub.d/10_hurd.in: Likewise.
35148 2008-08-01 Bean <bean123ch@gmail.com>
35150 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
35151 (bufio_mod_SOURCES): New macro.
35152 (bufio_mod_CFLAGS): Likewise.
35153 (bufio_mod_LDFLAGS): Likewise.
35155 * include/grub/bufio.h: New file.
35157 * io/bufio.c: Likewise.
35159 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
35160 (grub_video_reader_png): Use grub_buffile_open to open file.
35162 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
35163 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
35165 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
35166 (grub_video_reader_tga): Use grub_buffile_open to open file.
35168 * font/manager.c: Include <grub/bufio.h>.
35169 (add_font): Use grub_buffile_open to open file.
35171 2008-07-31 Robert Millan <rmh@aybabtu.com>
35173 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
35174 ELF segments, use a macro for arbitrarily accessing any of them instead
35175 of preparing a pointer that allows access to one at a time.
35176 (grub_multiboot_load_elf64): Likewise.
35178 2008-07-31 Bean <bean123ch@gmail.com>
35180 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
35181 GRUB_KERNEL_MACHINE_DATA_END.
35183 2008-07-30 Robert Millan <rmh@aybabtu.com>
35185 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
35186 Increase from 0x50 to 0x60.
35187 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
35188 use UUIDs to identify the root drive for them. If that's not
35190 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
35191 check, for cross-disk installs.
35193 2008-07-30 Robert Millan <rmh@aybabtu.com>
35195 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
35196 is non-empty, use it to set the `prefix' environment variable instead
35197 of the usual approach.
35198 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
35199 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
35200 environment variable instead of dummy make_install_device().
35202 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
35203 (start): Insert a data section, with `grub_prefix' variable.
35204 * kern/i386/linuxbios/startup.S: Likewise.
35206 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
35207 New variable reference.
35208 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
35209 New macro. Defines offset of `grub_prefix' within startup.S (relative
35211 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
35212 section within startup.S (relative to `start').
35213 * include/grub/i386/coreboot/kernel.h: Likewise.
35215 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
35216 Overwrite grub_prefix with its contents, at the beginning of the
35218 (main): Understand -p|--prefix.
35220 2008-07-30 Robert Millan <rmh@aybabtu.com>
35222 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
35224 2008-07-30 Robert Millan <rmh@aybabtu.com>
35226 * term/i386/pc/vga_text.c (grub_console_cls): Use
35227 grub_console_gotoxy() to go back to beginning of the screen.
35228 Found by Patrick Georgi <patrick.georgi@coresystems.de>
35230 2008-07-29 Christian Franke <franke@computer.org>
35232 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
35233 Add conversion of emulated mount points on Cygwin.
35235 2008-07-29 Christian Franke <franke@computer.org>
35237 * util/update-grub.in: Add a check for admin
35239 Remove old `grub.cfg.new' before creation.
35240 Add `-f' to `mv' to handle the different filesystem
35241 semantics of Windows.
35243 2008-07-29 Bean <bean123ch@gmail.com>
35245 * normal/main.c (get_line): Fix buffer overflow bug.
35247 2008-07-28 Robert Millan <rmh@aybabtu.com>
35249 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
35250 (struct grub_apple_header): New struct. Describes the layout of
35251 the partmap header.
35252 (apple_partition_map_iterate): Check the header magic as well as the
35253 partition magic (which was already being checked).
35255 2008-07-28 Pavel Roskin <proski@gnu.org>
35257 * genmk.rb: Add a warning to the beginning of the output that
35258 it's a generated file and should not be edited.
35260 2008-07-28 Robert Millan <rmh@aybabtu.com>
35262 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
35263 with the same number are found, just use issue a warning with
35264 grub_dprintf(), as this error has been reported to be non-fatal.
35266 2008-07-27 Robert Millan <rmh@aybabtu.com>
35268 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
35271 2008-07-27 Bean <bean123ch@gmail.com>
35273 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
35274 (grub_fat_find_dir): Ignore case when comparing filename.
35276 2008-07-27 Bean <bean123ch@gmail.com>
35278 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
35279 smallino, as it's more descriptive, and i8count can be confused with
35280 the other field count.
35281 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
35284 2008-07-27 Bean <bean123ch@gmail.com>
35286 * commands/crc.c: New file.
35288 * lib/crc.c: Likewise.
35290 * include/grub/lib/crc.h: Likewise.
35292 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
35294 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
35295 (hexdump): Move this function to ...
35297 * lib/hexdump.c: ... here.
35299 * include/grub/hexdump.h: Renamed to ...
35301 * include/grub/lib/hexdump.h: ... this.
35303 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
35305 * util/grub-editenv.c: Likewise.
35307 * include/envblk.h: Renamed to ...
35309 * include/lib/envblk.h: ... this.
35311 * util/envblk.c: Renamed to ...
35313 * lib/envblk.c: ... this.
35315 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
35317 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
35318 (pkglib_MODULES): Add crc.mod.
35319 (hexdump_mod_SOURCES): Add lib/hexdump.c.
35320 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
35321 (crc_mod_SOURCES): New macro.
35322 (crc_mod_CFLAGS): Likewise.
35323 (crc_mod_LDFLAGS): Likewise.
35325 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
35327 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35329 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35331 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35333 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35335 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
35337 * commands/help.c: Include <grub/term.h>.
35338 (TERM_WIDTH): Removed. Updated all users.
35340 2008-07-27 Pavel Roskin <proski@gnu.org>
35342 * util/getroot.c (find_root_device): Rephrase a comment to avoid
35343 spurious warnings about a comment within a comment.
35345 2008-07-25 Robert Millan <rmh@aybabtu.com>
35347 * util/getroot.c (find_root_device): Skip devices that match
35348 /dev/dm-[0-9]. This lets the real device be found for any type of
35349 abstraction (LVM, EVMS, RAID..).
35350 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
35351 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
35352 device is found first, find_root_device() will now skip it.
35354 2008-07-24 Pavel Roskin <proski@gnu.org>
35356 * include/grub/types.h: Use __builtin_bswap32() and
35357 __builtin_bswap64() with gcc 4.3 and newer.
35359 2008-07-24 Christian Franke <franke@computer.org>
35361 * util/i386/pc/grub-install.in: If `--debug' is specified,
35362 pass `--verbose' to grub-setup.
35363 Abort script if make_system_path_relative_to_its_root() fails.
35365 2008-07-24 Bean <bean123ch@gmail.com>
35367 * configure.ac: Fixed a bug caused by the previous cygwin patch,
35368 variable `target_platform' should be `platform'.
35370 2008-07-24 Bean <bean123ch@gmail.com>
35372 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
35373 (grub_png_init_fixed_block): New function.
35374 (grub_png_decode_image_data): Handle fixed huffman code compression.
35376 2008-07-24 Bean <bean123ch@gmail.com>
35378 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
35379 (grub_pe2elf_SOURCES): New macro.
35380 (CLEANFILES): Add grub-pe2elf.
35382 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
35383 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
35384 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
35385 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
35386 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
35387 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
35388 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
35389 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
35390 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
35391 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
35392 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
35393 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
35394 (GRUB_PE32_DT_FUNCTION): Likewise.
35395 (GRUB_PE32_REL_I386_DIR32): Likewise.
35396 (GRUB_PE32_REL_I386_REL32): Likewise.
35397 (grub_pe32_symbol): New structure.
35398 (grub_pe32_reloc): Likewise.
35400 * util/grub-pe2elf.c: New file.
35402 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
35403 start symbol in non pc platform.
35405 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
35407 The following patches are from Christian Franke.
35409 * include/grub/dl.h: Remove .previous, gas supports this only
35412 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
35413 Remove .type, gas supports this only for ELF format.
35415 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
35416 nullbytes in symbol table. This fixes an infinite loop if table is
35419 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
35420 TARGET_IMG_LDFLAGS and EXEEXT.
35422 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
35423 TARGET_IMG_LDFLAGS_AC.
35424 (grub_CHECK_STACK_ARG_PROBE): New function.
35426 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
35428 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
35430 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
35431 to set TARGET_IMG_LD* accordingly.
35432 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
35433 Add call to grub_CHECK_STACK_ARG_PROBE.
35434 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
35436 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
35438 * genmk.rb: Add EXEEXT to CLEANFILES.
35440 2008-07-23 Robert Millan <rmh@aybabtu.com>
35442 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
35443 define the codes for arrows and lines used for the menu).
35444 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
35447 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
35448 fonts, because the latter are too slow.
35450 2008-07-21 Bean <bean123ch@gmail.com>
35452 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
35453 a20. Run keyboard test last, as it will cause macbook to halt.
35455 2008-07-18 Pavel Roskin <proski@gnu.org>
35457 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
35458 load foreign architecture modules correctly anyway. Keep
35459 support for loading host architecture modules, whether we
35460 compile them or not.
35462 2008-07-17 Pavel Roskin <proski@gnu.org>
35464 * configure.ac: Use -m32 or -m64 regardless of whether we had to
35465 change target_cpu. The compiler default can mismatch target_cpu
35468 * disk/efi/efidisk.c: Fix format warnings on x86_64.
35469 * kern/efi/efi.c: Likewise.
35471 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
35472 target compiler is functional.
35473 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
35476 * configure.ac: Default to efi platform for x86_64-apple. Allow
35477 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
35478 adjustments from the rest, only do them if target is not
35479 explicitly given. Merge other adjustments with the final sanity
35480 check. Remove an extraneous check for supported CPU. Be
35481 specific which CPU and which platform is not supported.
35483 * configure.ac: Default to pc platform for x86_64.
35485 2008-07-17 Robert Millan <rmh@aybabtu.com>
35487 Partial LinuxBIOS -> Coreboot rename.
35489 * conf/i386-linuxbios.rmk: Renamed to ...
35490 * conf/i386-coreboot.rmk: ... this.
35491 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
35492 * configure.ac: Accept "coreboot" as input platform (but maintain
35493 compatibility with "linuxbios").
35494 * include/grub/i386/linuxbios: Renamed to ...
35495 * include/grub/i386/coreboot: ... this.
35497 2008-07-17 Bean <bean123ch@gmail.com>
35499 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
35500 (appleldr_mod_SOURCE): New variable.
35501 (appleldr_mod_CFLAGS): Likewise.
35502 (appleldr_mod_LDFLAGS): Likewise.
35503 (pci_mod_SOURCES): Likewise.
35504 (pci_mod_CFLAGS): Likewise.
35505 (pci_mod_LDFLAGS): Likewise.
35506 (lspci_mod_SOURCES): Likewise.
35507 (lspci_mod_CFLAGS): Likewise.
35508 (lspci_mod_LDFLAGS): Likewise.
35510 * conf/x86_64-efi.rmk: New file.
35512 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
35514 (grub_efidisk_write): Likewise.
35516 * include/efi/api.h (efi_call_0): New macro.
35517 (efi_call_1): Likewise.
35518 (efi_call_2): Likewise.
35519 (efi_call_3): Likewise.
35520 (efi_call_4): Likewise.
35521 (efi_call_5): Likewise.
35522 (efi_call_6): Likewise.
35524 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
35525 grub_rescue_cmd_chainloader.
35527 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
35528 (grub_pe32_optional_header): Change some fields based on i386 or
35530 (GRUB_PE32_PE32_MAGIC): Likewise.
35532 * include/grub/efi/uga_draw.h: New file.
35534 * include/grub/elf.h (STN_ABS): New constant.
35535 (R_X86_64_NONE): Relocation constant for x86_64.
35536 (R_X86_64_64): Likewise.
35537 (R_X86_64_PC32): Likewise.
35538 (R_X86_64_GOT32): Likewise.
35539 (R_X86_64_PLT32): Likewise.
35540 (R_X86_64_COPY): Likewise.
35541 (R_X86_64_GLOB_DAT): Likewise.
35542 (R_X86_64_JUMP_SLOT): Likewise.
35543 (R_X86_64_RELATIVE): Likewise.
35544 (R_X86_64_GOTPCREL): Likewise.
35545 (R_X86_64_32): Likewise.
35546 (R_X86_64_32S): Likewise.
35547 (R_X86_64_16): Likewise.
35548 (R_X86_64_PC16): Likewise.
35549 (R_X86_64_8): Likewise.
35550 (R_X86_64_PC8): Likewise.
35552 * include/grub/i386/efi/pci.h: New file.
35554 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
35555 Change it value based on platform.
35556 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
35557 (GRUB_E820_RAM): Likewise.
35558 (GRUB_E820_RESERVED): Likewise.
35559 (GRUB_E820_ACPI): Likewise.
35560 (GRUB_E820_NVS): Likewise.
35561 (GRUB_E820_EXEC_CODE): Likewise.
35562 (GRUB_E820_MAX_ENTRY): Likewise.
35563 (grub_e820_mmap): New structure.
35564 (linux_kernel_header): Change the efi field according to different
35565 kernel version, also field from linux_kernel_header.
35567 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
35569 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
35570 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
35571 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
35572 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
35573 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
35574 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
35575 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
35576 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
35577 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
35578 (GRUB_PCI_ADDR_IO_MASK): Likewise.
35580 * include/grub/x86_64/efi/kernel.h: New file.
35582 * include/grub/x86_64/efi/loader.h: Likewise.
35584 * include/grub/x86_64/efi/machine.h: Likewise.
35586 * include/grub/x86_64/efi/pci.h: Likewise.
35588 * include/grub/x86_64/efi/time.h: Likewise.
35590 * include/grub/x86_64/linux.h: Likewise.
35592 * include/grub/x86_64/setjmp.h: Likewise.
35594 * include/grub/x86_64/time.h: Likewise.
35596 * include/grub/x86_64/types.h: Likewise.
35598 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
35599 GRUB_TARGET_SIZEOF_VOID_P.
35601 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
35602 (grub_efi_locate_handle): Likewise.
35603 (grub_efi_open_protocol): Likewise.
35604 (grub_efi_set_text_mode): Likewise.
35605 (grub_efi_stall): Likewise.
35606 (grub_exit): Likewise.
35607 (grub_reboot): Likewise.
35608 (grub_halt): Likewise.
35609 (grub_efi_exit_boot_services): Likewise.
35610 (grub_get_rtc): Likewise.
35612 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
35613 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
35614 (grub_efi_allocate_pages): Wrap efi calls.
35615 (grub_efi_free_pages): Wrap efi calls.
35616 (grub_efi_get_memory_map): Wrap efi calls.
35618 * kern/x86_64/dl.c: New file.
35620 * kern/x86_64/efi/callwrap.S: Likewise.
35622 * kern/x86_64/efi/startup.S: Likewise.
35624 * loader/efi/appleloader.c: Likewise.
35626 * loader/efi/chainloader.c (cmdline): New variable.
35627 (grub_chainloader_unload): Wrap efi calls.
35628 (grub_chainloader_boot): Likewise.
35629 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
35632 * loader/efi/chainloader_normal.c (chainloader_command):
35633 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
35636 * loader/i386/efi/linux.c (allocate_pages): Change allocation
35638 (grub_e820_add_region): New function.
35639 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
35641 (grub_find_video_card): New function.
35642 (grub_linux_setup_video): New function.
35643 (grub_rescue_cmd_linux): Probe for video information.
35645 * normal/x86_64/setjmp.S: New file.
35647 * term/efi/console.c (map_char): New function.
35648 (grub_console_putchar): Map unicode char.
35649 (grub_console_checkkey): Wrap efi calls.
35650 (grub_console_getkey): Likewise.
35651 (grub_console_getwh): Likewise.
35652 (grub_console_gotoxy): Likewise.
35653 (grub_console_cls): Likewise.
35654 (grub_console_setcolorstate): Likewise.
35655 (grub_console_setcursor): Likewise.
35657 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
35659 2008-07-16 Pavel Roskin <proski@gnu.org>
35661 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
35664 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
35665 pointer, not an integer. This fixes a warning and prevents
35666 precision loss on 64-bit systems.
35667 (relocate_addresses): Remove unneeded cast.
35669 2008-07-15 Pavel Roskin <proski@gnu.org>
35671 * kern/i386/ieee1275/init.c: Include grub/cache.h.
35673 * term/ieee1275/ofconsole.c: Disable code unused on i386.
35675 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
35676 Fix comparison between signed and unsigned.
35678 * include/grub/i386/ieee1275/console.h: Declare
35679 grub_console_init() and grub_console_fini().
35681 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
35682 It's empty and unused.
35684 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
35685 beginning to avoid warnings with some compilers.
35687 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
35688 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
35690 2008-07-14 Pavel Roskin <proski@gnu.org>
35692 * kern/env.c (grub_register_variable_hook): Don't copy empty
35693 string, it leaks memory. Pass "" to grub_env_set(), it should
35694 handle constant strings.
35696 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
35697 * commands/cmp.c (grub_cmd_cmp): Likewise.
35698 * kern/dl.c (grub_dl_flush_cache): Likewise.
35699 (grub_dl_load_core): Likewise.
35700 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
35701 (grub_elf64_load_phdrs): Likewise.
35703 2008-07-13 Pavel Roskin <proski@gnu.org>
35705 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
35706 between signed and unsigned.
35707 (LzmaEnc_Finish): Fix warning about an unused parameter.
35709 2008-07-13 Bean <bean123ch@gmail.com>
35711 * Makefile.in (enable_lzo): New rule.
35713 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
35715 * configure.ac (ENABLE_LZO): New option --enable-lzo.
35717 * boot/i386/pc/lnxboot.S: #include <config.h>.
35719 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
35720 its value according to the compression algorithm used, lzo or lzma.
35722 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
35723 compression algorithm according to configure macro.
35725 * kern/i386/pc/startup.S (codestart): Likewise.
35727 * kern/i386/pc/lzma_decode.S: New file.
35729 * include/grub/lib/LzFind.h: Likewise.
35731 * include/grub/lib/LzHash.h: Likewise.
35733 * include/grub/lib/LzmaDec.h: Likewise.
35735 * include/grub/lib/LzmaEnc.h: Likewise.
35737 * include/grub/lib/LzmaTypes.h: Likewise.
35739 * lib/LzFind.c: Likewise.
35741 * lib/LzmaDec.c: Likewise.
35743 * lib/LzmaEnc.c: Likewise.
35745 2008-07-13 Bean <bean123ch@gmail.com>
35747 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
35748 (grub_ext4_extent_header): New structure.
35749 (grub_ext4_extent): Likewise.
35750 (grub_ext4_extent_idx): Likewise.
35751 (grub_ext4_find_leaf): New function.
35752 (grub_ext2_read_block): Handle extents.
35754 2008-07-12 Robert Millan <rmh@aybabtu.com>
35756 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
35758 2008-07-11 Robert Millan <rmh@aybabtu.com>
35760 * util/grub.d/40_custom.in: New file. Example on how to add custom
35761 entries to /etc/grub.d.
35762 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
35763 40_custom (implicitly, by merging all the grub.d rules).
35765 2008-07-11 Pavel Roskin <proski@gnu.org>
35767 * commands/read.c (grub_getline): Fix invalid memory access.
35768 Don't add newline to the variable value.
35770 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
35771 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
35772 (serial_hw_get_port): Check validity of the port number.
35773 (grub_cmd_serial): Check return value of serial_hw_get_port().
35775 2008-07-07 Pavel Roskin <proski@gnu.org>
35777 * boot/i386/pc/diskboot.S (notification_string): Replace
35778 "Loading kernel" with just "loading". This is shorter, less
35779 confusing and saves a few bytes for possible future changes.
35781 2008-07-05 Pavel Roskin <proski@gnu.org>
35783 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
35784 size for ATAPI devices, they are undefined. Output sector
35785 number in decimal form.
35787 * disk/ata.c: Use named constants for status bits.
35789 2008-07-04 Pavel Roskin <proski@gnu.org>
35791 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
35792 grub_addr_t before casting it to the void pointer to fix a
35793 warning. Non-addressable regions are discarded earlier.
35794 (grub_arch_modules_addr): Cast _end to grub_addr_t.
35795 * kern/i386/linuxbios/table.c: Include grub/misc.h.
35796 (check_signature): Don't shadow table_header.
35797 (grub_linuxbios_table_iterate): Cast numeric constants to
35798 grub_linuxbios_table_header_t.
35799 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
35802 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
35805 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
35806 pointer, which can cause warnings. Support 64-bit addresses.
35808 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
35809 of sizeof(long). This fixes PowerPC image generation on x86_64.
35811 2008-07-04 Robert Millan <rmh@aybabtu.com>
35813 This fixes a performance issue when pc & gpt partmap iterators
35814 didn't abort iteration even after our hook found what it was
35815 looking for (often causing expensive probes of non-existent drives).
35817 Some callers relied on previous buggy behaviour, since they would
35818 raise an error when their own hooks caused early abortion of its
35821 * kern/device.c (grub_device_open): Improve error message.
35822 * disk/lvm.c (grub_lvm_open): Likewise.
35823 * disk/raid.c (grub_raid_open): Likewise.
35825 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
35826 when hook requests it, independently of grub_errno.
35827 (pc_partition_map_probe): Do not fail when find_func() caused
35828 early abortion of pc_partition_map_iterate().
35830 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
35831 when hook requests it, independently of grub_errno.
35832 (gpt_partition_map_probe): Do not fail when find_func() caused
35833 early abortion of gpt_partition_map_iterate().
35835 * kern/partition.c (grub_partition_iterate): Abort parent iteration
35836 when hook requests it, independently of grub_errno. Do not fail when
35837 part_map_iterate_hook() caused early abortion of p->iterate().
35839 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
35840 when grub_partition_iterate() returned with non-zero.
35842 2008-07-03 Pavel Roskin <proski@gnu.org>
35844 * disk/ata.c (grub_ata_pio_write): Check status before writing,
35845 like we do in grub_ata_pio_read().
35846 (grub_ata_readwrite): Always write individual sectors. Fix the
35847 sector count for the remainder.
35848 (grub_ata_write): Enable writing to ATA devices. Correctly
35849 report error for ATAPI devices.
35851 2008-07-02 Pavel Roskin <proski@gnu.org>
35853 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
35856 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
35857 for every read sector, we already increment it for the whole
35858 batch. This fixes reading more than 256 sectors at once.
35860 * util/grub-editenv.c (cmd_info): Cast argument to long
35861 explicitly. ptrdiff_t reduces to int on i386.
35863 * util/grub-editenv.c (main): Be specific which parameter is
35866 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
35867 (memdisk): Make memdisk_orig_addr a pointer.
35869 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
35870 for file offsets, use grub_off_t instead. Fix printf format
35873 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
35874 there. Real unexpected warnings should not drown in the noise
35875 about known problems.
35877 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
35878 grub_disk_addr_t for memory addresses.
35880 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
35881 explicitly to fix a warning.
35883 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
35885 * Makefile.in (MODULE_LDFLAGS): New variable.
35886 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
35887 the linker accepts --build-id=none.
35888 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
35890 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
35892 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
35893 those in Linux XFS code. Provide a way to access 64-bit parent
35895 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
35896 the end of struct grub_xfs_dir_header.
35898 2008-07-02 Bean <bean123ch@gmail.com>
35900 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
35901 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
35902 and GRUB_IEEE1275_FLAG_NO_ANSI.
35904 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
35905 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
35906 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
35908 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
35909 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
35911 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
35912 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
35914 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
35915 esc sequence on non ANSI terminal.
35916 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
35918 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
35921 2008-07-02 Bean <bean123ch@gmail.com>
35923 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
35924 (grub_editenv_SOURCES): New variable.
35925 (pkglib_MODULES): Add loadenv.mod.
35926 (loadenv_mod_SOURCES): New variable.
35927 (loadenv_mod_CFLAGS): Likewise.
35928 (loadenv_mod_LDFLAGS): Likewise.
35930 * include/grub/envblk.h: New file.
35932 * util/envblk.c: New file.
35934 * util/grub-editenv.c: New file.
35936 * commands/loadenv.c: New file.
35938 2008-07-01 Pavel Roskin <proski@gnu.org>
35940 * include/multiboot2.h (struct multiboot_tag_module): Use char,
35941 not unsigned char. This fixes warnings and is consistent with
35944 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
35946 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
35948 * term/tparm.c (analyze): Always set *popcount.
35950 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
35951 cast to fix a warning.
35953 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
35954 cast to suppress a warning.
35956 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
35957 grub_fshelp_read_file() expects.
35959 * fs/fat.c: Fix UUID calculation on big-endian systems. We
35960 write uuid as a 32-bit value in CPU byte order, so declare and
35963 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
35964 long if the format specifier expects it.
35965 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
35966 * partmap/pc.c (pc_partition_map_iterate): Likewise.
35967 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
35968 long to fix a warning.
35969 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
35970 grub_dprintf() arguments to fix warnings.
35972 2008-06-30 Pavel Roskin <proski@gnu.org>
35974 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
35975 install_bsd_part immediately before core.img is embedded or
35976 modified on disk. This fixes core.img verification if core.img
35977 cannot be embedded.
35979 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
35980 core_path to calculate the blocklist.
35981 Patch from Javier Martín <lordhabbit@gmail.com>
35983 2008-06-29 Robert Millan <rmh@aybabtu.com>
35985 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
35986 block to disk block.
35987 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
35988 Patch from Niels Böhm <bitbucket@arcor.de>
35990 2008-06-29 Robert Millan <rmh@aybabtu.com>
35992 * util/update-grub_lib.in (font_path): Search for fonts in
35993 /boot/grub first, which is more likely to be readable (we aren't
35994 deciding where fonts live, just looking for them).
35996 2008-06-26 Pavel Roskin <proski@gnu.org>
35998 * util/biosdisk.c (read_device_map): Don't leave dead map
35999 entries for devices failing stat() check.
36001 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36002 core_path_dev for the core.img path on the target device.
36004 2008-06-26 Robert Millan <rmh@aybabtu.com>
36006 * disk/fs_uuid.c: New file.
36007 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36008 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36009 (fs_uuid_mod_LDFLAGS): New variables.
36010 * include/grub/disk.h (grub_disk_dev_id): Add
36011 `GRUB_DISK_DEVICE_UUID_ID'.
36012 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36013 implement iterate().
36015 2008-06-26 Robert Millan <rmh@aybabtu.com>
36017 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36018 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36019 Linux image includes no initrd.
36021 2008-06-21 Javier Martín <lordhabbit@gmail.com>
36023 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36024 call to resolve the core image location that effectively appended the
36027 2008-06-21 Robert Millan <rmh@aybabtu.com>
36029 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36032 * util/grub.d/10_hurd.in: ... to here ...
36033 * util/grub.d/10_linux.in: ... and here.
36035 2008-06-19 Robert Millan <rmh@aybabtu.com>
36037 * kern/main.c (grub_main): Export `prefix' variable immediately
36038 after it has been set by grub_machine_set_prefix().
36040 2008-06-19 Robert Millan <rmh@aybabtu.com>
36042 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36043 search result when not saving to variable, not the other way around.
36044 When saving to variable, abort iteration as soon as a match is found.
36046 2008-06-19 Robert Millan <rmh@aybabtu.com>
36048 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36049 check for partition that provides /boot/grub. Its logic is flawed,
36050 as it prevents prepare_grub_to_access_device() from being called
36053 2008-06-19 Robert Millan <rmh@aybabtu.com>
36055 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
36056 "insmod" command directly when abstraction modules are needed,
36057 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
36058 since it had already been processed).
36060 2008-06-19 Pavel Roskin <proski@gnu.org>
36062 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
36063 changed. This is needed in case GRUB_LIBDIR changes.
36064 * conf/i386-ieee1275.rmk: Likewise.
36065 * conf/i386-linuxbios.rmk: Likewise.
36066 * conf/i386-pc.rmk: Likewise.
36067 * conf/powerpc-ieee1275.rmk: Likewise.
36069 2008-06-18 Pavel Roskin <proski@gnu.org>
36071 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
36072 kernel_elf_symlist.c to symlist.c for consistency with other
36073 architectures. Update all users.
36074 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36076 2008-06-18 Robert Millan <rmh@aybabtu.com>
36078 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
36081 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
36082 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
36083 a RAID device, run setup() for all members independently on whether
36084 LVM abstraction is being used.
36085 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
36086 If grub-mkimage has set `*install_dos_part == -2', don't override this
36088 Perform *install_dos_part adjustments independently on whether
36089 we're embedding or not.
36090 Clarify error message when image is too big for embedding.
36091 Remove duplicate *install_dos_part stanza.
36093 2008-06-17 Robert Millan <rmh@aybabtu.com>
36095 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
36096 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
36098 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
36099 values in grub_ofconsole_normal_color and
36100 grub_ofconsole_highlight_color (they're not directly related to
36101 background and foreground).
36102 (grub_ofconsole_setcolorstate): Extract background and foreground
36103 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
36105 2008-06-17 Robert Millan <rmh@aybabtu.com>
36107 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
36108 /boot/grub for the check in last commit, not /boot (they could be
36109 different partitions).
36111 2008-06-16 Robert Millan <rmh@aybabtu.com>
36113 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
36114 asked to setup access for the same partition that provides /boot,
36115 don't bother using UUIDs since our root already has the value we
36118 2008-06-16 Robert Millan <rmh@aybabtu.com>
36120 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
36122 Patch from Sven Mueller <sven@debian.org>.
36124 2008-06-16 Robert Millan <rmh@aybabtu.com>
36126 * util/update-grub.in: Check for $EUID instead of $UID.
36127 Reported by Vincent Zweije.
36129 2008-06-16 Bean <bean123ch@gmail.com>
36131 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
36132 (grub_ext2_read_block): Likewise.
36133 (grub_ext2_read_inode): Likewise.
36134 (grub_ext2_mount): Likewise.
36135 (grub_ext2_close): Likewise.
36136 (grub_ext3_get_journal): Removed.
36138 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
36139 (grub_reiserfs_read_symlink): Likewise.
36140 (grub_reiserfs_mount): Likewise.
36141 (grub_reiserfs_open): Likewise.
36142 (grub_reiserfs_read): Likewise.
36143 (grub_reiserfs_close): Likewise.
36144 (grub_reiserfs_get_journal): Removed.
36146 * fs/fshelp.c (grub_fshelp_read): Removed.
36147 (grub_fshelp_map_block): Likewise.
36149 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
36150 (grub_fshelp_journal): Likewise.
36151 (grub_fshelp_read): Likewise.
36152 (grub_fshelp_map_block): Likewise.
36154 2008-06-16 Pavel Roskin <proski@gnu.org>
36156 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
36157 floating point anymore.
36158 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
36160 2008-06-15 Pavel Roskin <proski@gnu.org>
36162 * commands/ls.c (grub_ls_list_files): Use integer calculations
36163 for human readable format, avoid floating point use.
36164 * kern/misc.c (grub_ftoa): Remove.
36165 (grub_vsprintf): Remove floating point support.
36167 2008-06-15 Robert Millan <rmh@aybabtu.com>
36169 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
36171 Reported by Max Vozeler.
36173 2008-06-15 Robert Millan <rmh@aybabtu.com>
36175 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
36176 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
36178 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
36179 the beginning of the prefix.
36181 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
36182 It is assumed that if we have a memdisk, grub-mkimage has set
36183 grub_prefix to include the "(memdisk)" drive in it.
36185 2008-06-15 Robert Millan <rmh@aybabtu.com>
36187 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
36188 Initialize keyboard controller after registering the terminal, so that
36189 grub_printf() can be called from grub_keyboard_controller_init().
36191 2008-06-15 Robert Millan <rmh@aybabtu.com>
36193 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
36194 extent-btree which is written as big endian on disk.
36195 Reported by Alain Greppin <al@chilibi.org>.
36197 2008-06-14 Robert Millan <rmh@aybabtu.com>
36199 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
36200 * util/i386/pc/grub-install.in (modules): Likewise.
36202 2008-06-13 Pavel Roskin <proski@gnu.org>
36204 * commands/ls.c (grub_ls_list_files): Fix format warnings.
36206 2008-06-13 Bean <bean123ch@gmail.com>
36208 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
36210 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
36212 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
36213 to indicate sparse block.
36215 2008-06-12 Pavel Roskin <proski@gnu.org>
36217 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
36218 number, grub_fshelp_read() does it for us.
36220 * fs/fshelp.c (grub_fshelp_read): New function. Implement
36221 linear disk read with journal translation.
36222 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
36223 * include/grub/fshelp.h: Declare grub_fshelp_read().
36225 2008-06-09 Pavel Roskin <proski@gnu.org>
36227 * fs/minix.c (grub_minix_mount): Handle error reading
36230 2008-06-08 Robert Millan <rmh@aybabtu.com>
36232 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
36233 don't append the RAID prefix afterwards.
36234 Reported by Clint Adams.
36236 2008-06-08 Robert Millan <rmh@aybabtu.com>
36238 Based on description from Pavel:
36239 * kern/disk.c (grub_disk_check_range): Rename to ...
36240 (grub_disk_adjust_range): ... this. Add a comment explaining the
36241 tasks performed by this function.
36243 2008-06-08 Robert Millan <rmh@aybabtu.com>
36245 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
36246 `num_serial' (for consistency with other variables).
36247 (struct grub_ntfs_data): Add `uuid' member.
36248 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
36249 (grub_ntfs_uuid): New function.
36250 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
36252 2008-06-07 Pavel Roskin <proski@gnu.org>
36254 * util/biosdisk.c (open_device): Revert last change to the
36255 function, it broke installation. The sector needs to be
36256 different dependent on which device is opened.
36258 2008-06-06 Robert Millan <rmh@aybabtu.com>
36260 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
36261 rest of GRUB, and breakage doesn't happen if its value were modified.
36263 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
36264 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
36265 a constant (same value).
36266 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
36267 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
36269 2008-06-06 Robert Millan <rmh@aybabtu.com>
36271 * util/biosdisk.c (open_device): Do not modify sector offset when
36272 accessing a partition. kern/disk.c already handles this for us.
36274 2008-06-06 Robert Millan <rmh@aybabtu.com>
36276 * util/grub-emu.c (grub_machine_init): Move code in this function from
36278 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
36279 segfault in case grub_printf() is called).
36281 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
36282 grub_probe. Update all users not to explicitly add it again.
36283 (grub_device): New variable; contains corresponding device for grubdir.
36284 (fs_module, partmap_module, devabstraction_module): Pass
36285 `--device ${grub_device}' to grub_probe to avoid traversing /dev
36288 2008-06-05 Robert Millan <rmh@aybabtu.com>
36290 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
36291 is found, print it (same layout as with labels).
36293 2008-06-04 Robert Millan <rmh@aybabtu.com>
36295 * util/biosdisk.c (get_drive): Rename to ...
36296 (find_grub_drive): ... this. Update all users.
36298 (get_os_disk): Rename to ...
36299 (convert_system_partition_to_system_disk): ... this. Update all users.
36301 (find_drive): Rename to ...
36302 (find_system_device): ... this. Update all users.
36304 2008-06-04 Robert Millan <rmh@aybabtu.com>
36306 * util/biosdisk.c (get_os_disk): Handle IDA devices.
36307 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36308 (make_device_map): Likewise.
36310 2008-06-01 Robert Millan <rmh@aybabtu.com>
36312 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
36313 before dereferencing it.
36315 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
36316 union with fat12/fat16-specific ones. Add some new fields, including
36317 `num_serial' for both versions.
36318 (struct grub_fat_data): Add `uuid' member.
36319 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
36320 names. Initialize `data->uuid' using `num_serial'.
36321 (grub_fat_uuid): New function.
36322 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
36324 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
36325 (grub_reiserfs_uuid): New function.
36326 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
36329 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
36330 (grub_xfs_uuid): New function.
36331 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
36333 2008-06-01 Robert Millan <rmh@aybabtu.com>
36335 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
36336 code that is backward compatible with pre-uuid search command.
36338 2008-05-31 Robert Millan <rmh@aybabtu.com>
36340 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
36341 floppies after everything else, to ensure floppy drive isn't accessed
36342 unnecessarily (patch from Bean).
36344 2008-05-31 Robert Millan <rmh@aybabtu.com>
36346 * commands/search.c (search_label, search_fs_uuid, search_file): Do
36347 not print device names when we were asked to set a variable.
36349 2008-05-31 Robert Millan <rmh@aybabtu.com>
36351 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
36352 using "cursor-on" and "cursor-off" commands (understood at least by
36353 the Open Firmware flavour on OLPC).
36355 2008-05-31 Michael Gorven <michael@gorven.za.net>
36357 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
36358 on and off sequences.
36360 2008-05-31 Robert Millan <rmh@aybabtu.com>
36362 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
36363 * util/update-grub.in: Likewise.
36365 2008-05-30 Pavel Roskin <proski@gnu.org>
36367 * util/biosdisk.c (linux_find_partition): Simplify logic and
36368 make the code more universal. Keep special processing for
36369 devfs, but use a simple rule for all other devices. If the
36370 device ends with a number, append 'p' and the partition number.
36371 Otherwise, append only the partition number.
36373 2008-05-30 Robert Millan <rmh@aybabtu.com>
36375 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
36376 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
36377 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
36378 the `root' parameter to Linux.
36380 2008-05-30 Robert Millan <rmh@aybabtu.com>
36382 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
36383 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
36384 --fs_uuid with --fs-uuid.
36385 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
36386 all filesystems support them).
36388 2008-05-30 Robert Millan <rmh@aybabtu.com>
36390 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
36391 grub_printf() flags, since we're printing in units of 2 bytes.
36393 2008-05-30 Robert Millan <rmh@aybabtu.com>
36395 * util/grub.d/00_header.in: Remove obsolete comment referencing
36396 convert_system_path_to_grub_path().
36397 * util/update-grub.in: Likewise.
36398 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
36399 (convert_system_path_to_grub_path): Add a warning message explaining
36400 that this function is deprecated. Rely on is_path_readable_by_grub()
36401 for the readability checks.
36402 (font_path): Use is_path_readable_by_grub() for the readability
36403 check rather than convert_system_path_to_grub_path().
36405 2008-05-30 Robert Millan <rmh@aybabtu.com>
36407 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
36408 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
36409 converting it first.
36410 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
36411 grub.cfg for access to font file, and afterwards call it again to set
36414 2008-05-30 Robert Millan <rmh@aybabtu.com>
36416 * commands/search.c (options): Add --fs_uuid option.
36417 (search_fs_uuid): New function.
36418 (grub_cmd_search): Fix --set argument passing.
36419 Use search_fs_uuid() when requested via --fs_uuid.
36420 (grub_search_init): Update help message.
36421 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
36422 and redeclare it as an array of 16-bit words.
36423 (grub_ext2_uuid): New function.
36424 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
36425 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
36426 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
36427 (GRUB_DEVICE_BOOT_UUID): New variables.
36428 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
36429 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
36431 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
36432 just assume `root' variable has the right value.
36433 * util/grub.d/10_linux.in: Likewise.
36434 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
36436 (main): Recognise `-t fs_uuid' argument.
36438 2008-05-30 Robert Millan <rmh@aybabtu.com>
36440 * util/biosdisk.c (map): Redefine structure to hold information
36441 about GRUB drive name.
36442 (get_drive): Reimplement without assuming (and verifying) BIOS-like
36444 (call_hook): Remove.
36445 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
36446 member. Assume drive has partitions.
36447 (grub_util_biosdisk_open): Access device names via `.device' struct
36449 (open_device): Likewise.
36450 (find_drive): Likewise.
36451 (read_device_map): Adjust map[] usage to match the new struct
36452 definition. Don't check for duplicates (still possible, but not cheap
36454 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
36455 (make_device_name): Remove assumption of BIOS-like drive names.
36457 2008-05-30 Pavel Roskin <proski@gnu.org>
36459 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
36460 compiling execute.c doesn't need grub_script.tab.h anymore.
36461 (normal/command.c_DEPENDENCIES): Likewise.
36462 (normal/function.c_DEPENDENCIES): Likewise.
36463 * conf/i386-ieee1275.rmk: Likewise.
36464 * conf/i386-linuxbios.rmk: Likewise.
36465 * conf/i386-pc.rmk: Likewise.
36466 * conf/powerpc-ieee1275.rmk: Likewise.
36467 * conf/sparc64-ieee1275.rmk: Likewise.
36469 2008-05-29 Pavel Roskin <proski@gnu.org>
36471 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
36472 when scanning metadata for volume group name.
36474 * include/grub/script.h: Don't include grub_script.tab.h. It's
36475 a generated file, which may only be included from the files with
36476 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
36477 use union YYSTYPE, as the later allows forward declaration.
36478 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
36480 2008-05-29 Robert Millan <rmh@aybabtu.com>
36482 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
36483 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
36484 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
36485 (grub_console_checkkey): Add grub_dprintf() call to report unknown
36488 2008-05-29 Robert Millan <rmh@aybabtu.com>
36490 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
36491 control key combinations.
36493 2008-05-29 Robert Millan <rmh@aybabtu.com>
36495 * util/powerpc/ieee1275/grub-install.in: Move from here ...
36496 * util/ieee1275/grub-install.in: ... to here.
36497 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
36498 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
36499 (grub_install_SOURCES): Likewise.
36501 2008-05-29 Robert Millan <rmh@aybabtu.com>
36503 * fs/affs.c: Update copyright year.
36504 * fs/ext2.c: Likewise.
36505 * fs/fshelp.c: Likewise.
36506 * fs/hfsplus.c: Likewise.
36507 * fs/ntfs.c: Likewise.
36508 * fs/xfs.c: Likewise.
36509 * include/grub/fshelp.h: Likewise.
36510 * util/grub-mkdevicemap.c: Likewise.
36512 2008-05-28 Robert Millan <rmh@aybabtu.com>
36514 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
36515 might need to be fatfs to support some firmware implementations
36518 2008-05-28 Robert Millan <rmh@aybabtu.com>
36520 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
36522 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36523 (make_device_map): Likewise.
36525 2008-05-20 Bean <bean123ch@gmail.com>
36527 * fs/fshelp.c (grub_fshelp_map_block): New function.
36528 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
36529 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
36531 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
36532 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
36533 (grub_fshelp_journal): New structure.
36534 (grub_fshelp_map_block): New function prototype.
36535 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
36536 (grub_fshelp_map_block): Likewise.
36538 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
36539 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
36540 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
36541 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
36542 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
36543 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
36544 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
36545 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
36546 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
36547 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
36548 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
36549 (grub_ext2_sblock): New members for journal support.
36550 (grub_ext3_journal_header): New structure.
36551 (grub_ext3_journal_revoke_header): Likewise.
36552 (grub_ext3_journal_block_tag): Likewise.
36553 (grub_ext3_journal_sblock): Likewise.
36554 (grub_fshelp_node): New members logfile and journal.
36555 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
36556 grub_fshelp_map_block to get real block number.
36557 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
36559 (grub_ext2_read_inode): Likewise.
36560 (grub_ext3_get_journal): New function.
36561 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
36562 (grub_ext2_close): Release memory used by journal.
36564 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
36565 (REISERFS_MAGIC_DESC_BLOCK): New macro.
36566 (grub_reiserfs_transaction_header): Renamed to
36567 grub_reiserfs_description_block, replace field data with real_blocks.
36568 (grub_reiserfs_commit_block): New structure.
36569 (grub_reiserfs_data): New member journal.
36570 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
36572 (grub_reiserfs_read_symlink): Likewise.
36573 (grub_reiserfs_iterate_dir): Likewise.
36574 (grub_reiserfs_open): Likewise.
36575 (grub_reiserfs_read): Likewise.
36576 (grub_reiserfs_get_journal): New function.
36577 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
36578 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
36579 using grub_reiserfs_get_journal.
36580 (grub_reiserfs_close): Release memory used by journal.
36582 * fs/affs.c (grub_affs_read_block): Change block type to
36583 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
36585 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
36587 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
36589 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
36591 * fs/udf.c (grub_udf_read_block): Change block type to
36592 grub_disk_addr_t. Use type cast to avoid warning.
36594 * fs/xfs.c (grub_xfs_read_block): Likewise.
36596 2008-05-16 Christian Franke <franke@computer.org>
36598 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
36599 to ensure that break with ESC will always work.
36600 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
36601 Remove ESC from keyboard queue.
36603 2008-05-16 Christian Franke <franke@computer.org>
36605 * util/biosdisk.c: [__CYGWIN__] Add includes.
36606 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
36607 (get_os_disk): Move variable declarations to OS specific
36608 parts to avoid warning.
36609 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
36610 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
36611 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
36613 * util/getroot.c: [__CYGWIN__] Add includes.
36614 (strip_extra_slashes): Fix "/" case.
36615 [__CYGWIN__] (get_win32_path): New function.
36616 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
36617 [__CYGWIN__] (find_root_device): Disable.
36618 [__CYGWIN__] (get_bootsec_serial): New function.
36619 [__CYGWIN__] (find_cygwin_root_device): Likewise.
36620 [__linux__] (grub_guess_root_device): Add early returns to simplify
36622 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
36623 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
36624 check for Linux only.
36626 2008-05-15 Bean <bean123ch@gmail.com>
36628 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
36629 keyboard hang problem in apple's intel mac.
36631 2008-05-09 Robert Millan <rmh@aybabtu.com>
36633 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
36635 * util/grub-mkdevicemap.c (get_virtio_disk_name)
36636 (make_device_map): Likewise.
36637 Reported by Aurelien Jarno <aurel32@debian.org>
36639 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
36641 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
36642 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
36643 (make_device_map): Output entries for xvd type disks.
36645 2008-05-07 Robert Millan <rmh@aybabtu.com>
36647 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
36649 * util/grub-mkdevicemap.c (get_cciss_disk_name)
36650 (make_device_map): Likewise.
36651 Reported by Roland Dreier <rdreier@cisco.com>
36653 2008-05-07 Robert Millan <rmh@aybabtu.com>
36655 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
36656 grub_strstr() call. Correct a few mistakes in failure path handling.
36658 2008-05-06 Robert Millan <rmh@aybabtu.com>
36660 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36661 Do not print a trailing slash (therefore, the root directory is an
36663 (convert_system_path_to_grub_path): Do not remove trailing slash
36664 from make_system_path_relative_to_its_root() output.
36666 * util/i386/pc/grub-install.in: Add trailing slash to output from
36667 make_system_path_relative_to_its_root().
36669 2008-05-06 Robert Millan <rmh@aybabtu.com>
36671 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
36672 ensures that output lines aren't intermangled with those sent to
36673 stderr (via grub_util_info()).
36674 * util/grub-probe.c (grub_refresh): Likewise.
36675 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
36677 2008-05-05 Christian Franke <franke@computer.org>
36679 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
36680 Add Cygwin device names.
36681 (get_ide_disk_name) [__CYGWIN__]: Likewise.
36682 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
36683 (check_device): Return error instead of success on empty name.
36684 (make_device_map): Move label inside linux specific code to
36685 prevent compiler warning.
36687 2008-04-30 Robert Millan <rmh@aybabtu.com>
36689 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
36690 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
36692 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
36694 2008-04-29 Robert Millan <rmh@aybabtu.com>
36696 * docs/grub.cfg: New file (example GRUB configuration).
36698 2008-04-26 Robert Millan <rmh@aybabtu.com>
36700 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
36701 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
36702 and `disk/ieee1275/nand.c'.
36704 2008-04-25 Bean <bean123ch@gmail.com>
36706 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
36709 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
36710 change the buffer size to 4096 for cdrom device.
36712 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
36714 (_linux_mod_SOURCES): New variable.
36715 (_linux_mod_CFLAGS): Likewise.
36716 (_linux_mod_LDFLAGS): Likewise.
36717 (linux_mod_SOURCES): Likewise.
36718 (linux_mod_CFLAGS): Likewise.
36719 (linux_mod_LDFLAGS): Likewise.
36720 (nand_mod_SOURCES): Likewise.
36721 (nand_mod_CFLAGS): Likewise.
36722 (nand_mod_LDFLAGS): Likewise.
36724 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
36725 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
36726 type property. (nand device in olpc don't have this property)
36728 * include/grub/disk.h (grub_disk_dev_id): New macro
36729 GRUB_DISK_DEVICE_NAND_ID.
36731 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
36732 function prototype.
36733 (grub_rescue_cmd_initrd): Likewise.
36735 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
36736 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
36737 ofw_cif_handler and ofw_idt, adjust padding number.
36739 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
36740 GRUB_MACHINE_IEEE1275 is defined.
36742 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
36743 Use NESTED_FUNC_ATTR attribute on the hook parameter.
36745 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
36746 on nested function heap_init.
36747 (grub_upper_mem): New variable for i386-ieee1275.
36748 (grub_get_extended_memory): New function for i386-ieee1275.
36749 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
36751 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
36752 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
36755 * loader/i386/ieee1275/linux.c: New file.
36757 * loader/i386/ieee1275/linux_normal.c: New file.
36759 * disk/ieee1275/nand.c: New file.
36761 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
36763 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
36765 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
36767 2008-04-18 Robert Millan <rmh@aybabtu.com>
36769 Restructures early code path on ieee1275 to unify grub_main() as
36770 the first C function that is executed in every platform.
36772 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
36773 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
36775 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
36776 * kern/ieee1275/cmain.c (cmain): Rename to ...
36777 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
36778 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
36781 2008-04-18 Robert Millan <rmh@aybabtu.com>
36783 * util/update-grub.in: Fix syntax error when setting
36784 `GRUB_PRELOAD_MODULES'.
36785 Reported by Stephane Chazelas <stephane@artesyncp.com>
36787 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
36789 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
36790 section into account, newer toolchains generate unique build ids
36791 * configure.ac: remove the test for --build-id=none acceptance,
36792 we want build ids to be preserved
36793 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
36794 far from other sections don't cause the raw binary images grow
36797 2008-04-15 Robert Millan <rmh@aybabtu.com>
36799 * disk/lvm.c: Update copyright year.
36800 * kern/misc.c: Likewise.
36802 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
36804 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
36805 there is no memory left for physical volume name.
36807 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
36809 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
36810 volume name mapping to support bigger than 9 character names properly.
36812 2008-04-13 Robert Millan <rmh@aybabtu.com>
36814 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
36815 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
36817 2008-04-13 Christian Franke <franke@computer.org>
36819 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
36820 to create a floppy emulation boot CD when non emulation mode
36822 Enable Joliet CD filesystem extension.
36824 2008-04-13 Robert Millan <rmh@aybabtu.com>
36826 * kern/misc.c (grub_strncat): Fix off-by-one error.
36827 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
36829 * kern/env.c (grub_env_context_close): Clear current context, not
36831 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
36833 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
36835 2008-04-13 Robert Millan <rmh@aybabtu.com>
36837 Improve robustness when handling LVM.
36839 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
36840 (and leave `*p' unmodified).
36841 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
36843 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
36844 iterating through it.
36845 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
36847 (grub_lvm_scan_device): Check the return value (and fail gracefully
36848 when due) on each grub_lvm_getvalue() or grub_strstr() call.
36849 Don't assume `vg->pvs != NULL' when iterating through it.
36851 2008-04-13 Robert Millan <rmh@aybabtu.com>
36853 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
36854 * genmk.rb (partmap): New variable.
36855 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
36856 (#{partmap}): New target rule.
36857 * genpartmaplist.sh: New file.
36858 * Makefile.in (pkglib_DATA): Add partmap.lst.
36859 (partmap.lst): New target rule.
36860 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
36861 modules (including all partition maps), instead of preloading them.
36863 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
36865 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
36866 `linux-boot-prober' (if installed) to detect other operating
36867 systems which are installed on the computer and add them to
36869 * conf/common.rmk: Build and install 30_os-prober.
36871 2008-04-12 Robert Millan <rmh@aybabtu.com>
36873 * kern/powerpc/ieee1275/init.c: Move from here ...
36874 * kern/ieee1275/init.c: ... to here. Update all users.
36876 * kern/powerpc/ieee1275/cmain.c: Move from here ...
36877 * kern/ieee1275/cmain.c: ... to here. Update all users.
36879 * kern/powerpc/ieee1275/openfw.c: Move from here ...
36880 * kern/ieee1275/openfw.c: ... to here. Update all users.
36882 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
36883 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
36885 2008-04-10 Pavel Roskin <proski@gnu.org>
36887 * configure.ac: Always use "_cv_" in cache variables for
36888 compatibility with Autoconf 2.62.
36890 2008-04-07 Robert Millan <rmh@aybabtu.com>
36892 Revert grub/machine/init.h addition by Pavel (since it breaks on
36893 i386-ieee1275 and others):
36894 * util/i386/pc/misc.c: Remove grub/machine/init.h.
36895 * util/powerpc/ieee1275/misc.c: Likewise.
36897 2008-04-07 Robert Millan <rmh@aybabtu.com>
36899 * util/grub-probe.c (probe): Improve error message.
36901 2008-04-07 Robert Millan <rmh@aybabtu.com>
36903 * util/biosdisk.c (read_device_map): Skip devices that don't exist
36904 (this prevents the presence of a bogus entry from ruining the whole
36907 2008-04-06 Pavel Roskin <proski@gnu.org>
36909 * util/biosdisk.c: Include grub/util/biosdisk.h.
36910 * util/grub-fstest.c (execute_command): Make static.
36911 * util/grub-mkdevicemap.c (check_device): Likewise.
36912 * util/i386/pc/misc.c: Include grub/machine/init.h.
36913 * util/powerpc/ieee1275/misc.c: Likewise.
36914 * util/lvm.c: Include grub/util/lvm.h.
36915 * util/misc.c: Include grub/kernel.h, grub/misc.h and
36917 * util/raid.c: Include grub/util/raid.h.
36918 (grub_util_getdiskname): Make static.
36920 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
36921 grub_hostfs_fini(), as they are called from grub_init_all() and
36922 grub_fini_all() respectively. This fixes an infinite loop in
36923 grub-fstest due to double registration of hostfs.
36924 Reported by Christian Franke <Christian.Franke@t-online.de>
36926 2008-04-05 Pavel Roskin <proski@gnu.org>
36928 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
36929 all 8 functions. Otherwise, probe function 0 only.
36931 2008-04-04 Pavel Roskin <proski@gnu.org>
36933 * commands/lspci.c (grub_lspci_iter): Print the bus number
36936 * commands/lspci.c (grub_pci_classes): Fix typos.
36937 (grub_lspci_iter): Don't print func twice. Print vendor ID
36938 before device ID, as it's normally done.
36940 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
36941 Fix signedness warnings.
36942 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
36944 * util/ieee1275/get_disk_name.c: Include config.h so that
36945 _GNU_SOURCE is defined and getline() is declared. Mark an
36946 unused argument as such. Fix a signedness warning.
36948 2008-04-02 Pavel Roskin <proski@gnu.org>
36950 * genkernsyms.sh.in: Use more robust assignments for CC and
36951 srcdir. Quote srcdir.
36952 * gensymlist.sh.in: Likewise. Assert at the compile time that
36953 the symbol table is not empty.
36955 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
36956 * fs/cpio.c (grub_cpio_read): Likewise.
36958 2008-04-01 Pavel Roskin <proski@gnu.org>
36960 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
36961 * disk/host.c (grub_host_open): Likewise.
36962 * disk/loopback.c (grub_loopback_open): Likewise.
36963 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
36964 disk->id as in disk/host.c, not a multi-character constant.
36966 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
36967 later is obsolete, potentially dangerous and sets a bad example.
36968 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
36969 * util/misc.c (grub_util_get_image_size): Likewise.
36971 * disk/loopback.c (options): Improve help for "--partitions".
36973 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
36974 options to align them with the short options, e.g. "echo -e".
36976 2008-03-31 Bean <bean123ch@gmail.com>
36978 * video/reader/png.c (grub_png_data): New member is_16bit and
36980 (grub_png_decode_image_header): Detect 16 bit png image.
36981 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
36982 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
36983 (grub_video_reader_png): Release memory occupied by image_data.
36985 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
36987 (grub_nfs_mount): Skip the test for sector per cluster.
36989 * include/grub/ntfs.h (MAX_SPC): Removed.
36991 2008-03-31 Bean <bean123ch@gmail.com>
36993 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
36994 (grub_probe_SOURCES): Add fs/afs.c.
36995 (grub_fstest_SOURCES): Likewise.
36996 (afs_mod_SOURCES): New variable.
36997 (afs_mod_CFLAGS): Likewise.
36998 (afs_mod_LDFLAGS): Likewise.
37000 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37001 (grub_emu_SOURCES): Likewise.
37003 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37005 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37007 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37011 * fs/afs.c: New file.
37013 2008-03-30 Pavel Roskin <proski@gnu.org>
37015 * disk/host.c: Include grub/misc.h to fix a warning.
37016 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37017 warnings about implicit declarations.
37019 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37021 * include/grub/i386/loader.h: Change declaration of
37022 grub_linux_boot() to match what grub_loader_set() expects.
37023 * util/getroot.c (grub_guess_root_device): Return const char* to
37025 * util/grub-probe.c (probe): Fix a warning about uninitialized
37026 abstraction_name variable.
37027 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37028 second argument as unused to fix a warning.
37030 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37031 missing grub_error() call.
37033 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37034 2.60 and newer uses it to define datadir.
37036 * commands/sleep.c: Fix warning about implicit declaration.
37037 * disk/memdisk.c: Likewise.
37038 * loader/aout.c: Likewise.
37039 * loader/i386/bsd_normal.c: Likewise.
37040 * util/grub-probe.c: Likewise.
37042 * commands/i386/cpuid.c (has_longmode): Make static.
37043 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37044 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37046 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37047 GDT. This is more robust, as %ds can change.
37048 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37049 calling real_to_prot().
37050 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
37052 2008-03-28 Pavel Roskin <proski@gnu.org>
37054 * kern/i386/pc/startup.S: Assert that uncompressed functions
37055 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
37056 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
37057 code, as they push parts of the code (error handlers) beyond
37058 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
37059 code as correctness and size.
37061 2008-03-28 Pavel Roskin <proski@gnu.org>
37063 * kern/i386/pc/startup.S
37064 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
37065 data block address to the real mode, keep offset minimal. This
37066 works around a bug in AWARD BIOS on old Athlon systems, which
37067 makes CD detection hang.
37069 2008-03-26 Pavel Roskin <proski@gnu.org>
37071 * normal/color.c (grub_parse_color_name_pair): Make `name' a
37073 * include/grub/normal.h: Add grub_parse_color_name_pair()
37076 2008-03-24 Bean <bean123ch@gmail.com>
37078 * disk/i386/pc/biosdisk.c (cd_start): Removed.
37079 (cd_count): Removed.
37080 (cd_drive): New variable.
37081 (grub_biosdisk_get_drive): Don't check for (cdN) device.
37082 (grub_biosdisk_call_hook): Likewise.
37083 (grub_biosdisk_iterate): Change cdrom detection method.
37084 (grub_biosdisk_open): Replace cd_start with cd_drive.
37085 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
37086 detect cdrom device.
37088 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
37090 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
37091 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
37092 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
37093 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
37094 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
37095 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
37096 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
37097 (grub_biosdisk_cdrp): New structure.
37098 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
37100 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
37102 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
37105 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
37108 2008-03-20 Robert Millan <rmh@aybabtu.com>
37110 Remove 2 TiB limit in ata.mod.
37111 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
37112 (grub_ata_dumpinfo): Print sector count with 0x%llx.
37113 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
37114 grub_uint64_t instead of grub_uint32_t.
37116 2008-03-05 Bean <bean123ch@gmail.com>
37118 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
37119 (grub_multiboot): Set boot device.
37121 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
37123 2008-03-02 Bean <bean123ch@gmail.com>
37125 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
37128 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
37130 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
37133 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
37136 * docs/fdl.texi: New file.
37138 * docs/mdate-sh: New file. Copied from gnulib.
37139 * docs/texinfo.tex: Likewise.
37141 * config.guess: Updated from gnulib.
37142 * install-sh: Likewise.
37144 2008-02-28 Robert Millan <rmh@aybabtu.com>
37146 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
37147 (aout_mod_SOURCES): New variable.
37148 (aout_mod_CFLAGS): Likewise.
37149 (aout_mod_LDFLAGS): Likewise.
37151 * conf/i386-ieee1275.rmk: Likewise.
37153 2008-02-28 Robert Millan <rmh@aybabtu.com>
37155 * util/update-grub.in: Reorganise terminal validity check. Accept
37156 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
37157 Based on suggestion by Franklin PIAT.
37159 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
37161 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
37163 * util/getroot.c (grub_util_check_block_device): New function that
37164 returns the given argument if it is a block device and returns NULL else.
37165 * util/grub-probe.c (argument_is_device): New variable.
37166 (probe): Promote device_name from a variable to an argument. Receive
37167 device_name from grub_util_check_block_device() if path is NULL and from
37168 grub_guess_root_device() else. Do not free() device_name anymore.
37169 (options): Introduce new parameter '-d, --device'.
37170 (main): Add description of the new parameter to the help screen.
37171 Rename path variable to argument. Set argument_is_device if the '-d'
37172 option is given. Pass argument to probe() depending on
37173 argument_is_device.
37175 2008-02-24 Bean <bean123ch@gmail.com>
37177 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
37178 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
37179 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
37180 (GRUB_ISO9660_VOLDESC_PART): Likewise.
37181 (GRUB_ISO9660_VOLDESC_END): Likewise.
37182 (grub_iso9660_primary_voldesc): New member escape.
37183 (grub_iso9660_data): New member joliet.
37184 (grub_iso9660_convert_string): New function.
37185 (grub_iso9660_mount): Detect joliet extension.
37186 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
37187 (grub_iso9660_iso9660_label): Likewise.
37189 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
37190 (grub_setup_SOURCES): Add fs/udf.c.
37191 (grub_fstest_SOURCES): Likewise.
37192 (udf_mod_SOURCES): New variable.
37193 (udf_mod_CFLAGS): Likewise.
37194 (udf_mod_LDFLAGS): Likewise.
37196 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
37197 (grub_emu_SOURCES): Likewise.
37199 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37201 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37203 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37207 * fs/udf.c: New file.
37209 2008-02-24 Robert Millan <rmh@aybabtu.com>
37211 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
37212 (normal/lexer.c_DEPENDENCIES): New variables.
37213 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37214 (normal/lexer.c_DEPENDENCIES): Likewise.
37215 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
37216 (normal/lexer.c_DEPENDENCIES): Likewise.
37217 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
37218 (normal/lexer.c_DEPENDENCIES): Likewise.
37219 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37220 (normal/lexer.c_DEPENDENCIES): Likewise.
37221 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
37222 (normal/lexer.c_DEPENDENCIES): Likewise.
37224 2008-02-23 Robert Millan <rmh@aybabtu.com>
37226 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
37227 since they were intended to be in hex. This didn't break previously
37228 because of a bug in gpt_partition_map_iterate() (see below).
37230 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
37231 when checking the validity of GPT header.
37232 Remove `partno', since it always provides the same information as `i'.
37234 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
37236 * include/grub/efi/time.h: Fix a wrong comment.
37238 2008-02-19 Pavel Roskin <proski@gnu.org>
37240 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
37243 2008-02-19 Bean <bean123ch@gmail.com>
37245 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
37246 (aout_mod_SOURCES): New variable.
37247 (aout_mod_CFLAGS): Likewise.
37248 (aout_mod_LDFLAGS): Likewise.
37249 (_bsd_mod_SOURCES): New variable.
37250 (_bsd_mod_CFLAGS): Likewise.
37251 (_bsd_mod_LDFLAGS): Likewise.
37252 (bsd_mod_SOURCES): New variable.
37253 (bsd_mod_CFLAGS): Likewise.
37254 (bsd_mod_LDFLAGS): Likewise.
37256 * include/grub/aout.h: New file.
37258 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
37260 * include/grub/i386/bsd.h: New file.
37262 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
37265 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
37266 function is called, so that it's possible to change it inside the hook.
37267 (grub_elf64_load): Likewise.
37268 (grub_elf_file): Don't close the file if elf header is not found.
37269 (grub_elf_close): Close the file if grub_elf_file fails (The new
37270 grub_elf_file won't close it).
37271 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
37272 (grub_elf64_size): Likewise.
37274 * kern/i386/loader.S (grub_unix_real_boot): New function.
37276 * loader/aout.c: New file.
37278 * loader/i386/bsd.c: New file.
37280 * loader/i386/bsd_normal.c: New file.
37282 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
37284 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
37285 can test other formats.
37287 2008-02-19 Robert Millan <rmh@aybabtu.com>
37289 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
37290 (grub_gpt_partition_type_empty): Redefine with macro from
37291 `<grub/gpt_partition.h>'.
37292 (gpt_partition_map_iterate): Adjust partition type comparison.
37294 Export `entry' as partmap-specific `part.data' struct.
37295 (grub_gpt_header, grub_gpt_partentry): Move from here ...
37297 * include/grub/gpt_partition.h (grub_gpt_header)
37298 (grub_gpt_partentry): ... to here (new file).
37300 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
37302 (grub_gpt_partition_type_bios_boot): New const variable, defined
37303 with macro from `<grub/gpt_partition.h>'.
37305 (setup): Replace `first_start' with `embed_region', which keeps
37306 track of the embed region (and is partmap-agnostic).
37308 Replace find_first_partition_start() with find_usable_region(),
37309 which finds a usable region for embedding using partmap-specific
37310 knowledge (supports PC/MSDOS and GPT).
37312 Fix all assumptions that the embed region start at sector 1, using
37313 `embed_region.start' from now on. Similarly, use `embed_region.end'
37314 rather than `first_start' to calculate available size.
37316 In grub_util_info() message, replace "into after the MBR" with an
37317 indication of the specific sector our embed region starts at.
37319 2008-02-19 Robert Millan <rmh@aybabtu.com>
37321 * DISTLIST: Replace `commands/ieee1275/halt.c' and
37322 `commands/ieee1275/reboot.c' with `commands/halt.c' and
37323 `commands/reboot.c'.
37324 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37325 (halt_mod_SOURCES): Likewise.
37326 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
37327 (halt_mod_SOURCES): Likewise.
37329 2008-02-17 Christian Franke <franke@computer.org>
37331 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
37333 2008-02-17 Robert Millan <rmh@aybabtu.com>
37335 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37336 set `first_start' to 0 for non-PC/MSDOS partition maps.
37338 2008-02-16 Robert Millan <rmh@aybabtu.com>
37340 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37341 do not assume partition map is PC/MSDOS before performing checks that
37342 are specific to that layout.
37344 2008-02-13 Robert Millan <rmh@aybabtu.com>
37346 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
37347 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
37348 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
37350 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
37352 * configure.ac: Only a cosmetic change on the handling of
37353 -fno-stack-protector.
37355 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
37357 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
37358 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
37360 (grub_install_SOURCES): Add halt.mod and reboot.mod.
37361 (halt_mod_SOURCES): New variable.
37362 (halt_mod_CFLAGS): Likewise.
37363 (halt_mod_LDFLAGS): Likewise.
37364 (reboot_mod_SOURCES): Likewise.
37365 (reboot_mod_CFLAGS): Likewise.
37366 (reboot_mod_LDFLAGS): Likewise.
37368 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
37369 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
37371 (halt_mod_SOURCES): Likewise.
37372 (reboot_mod_SOURCES): Likewise.
37374 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
37375 commands/i386/pc/reboot.c by commands/reboot.c.
37376 (reboot_mod_SOURCES): Likewise.
37378 * commands/i386/pc/reboot.c: merge this file ...
37380 * commands/ieee1275/reboot.c: ... and this file ...
37382 * commands/reboot.c: ... to this file.
37383 Add some precompiler directive to include the correct header for
37386 * commands/ieee1275/halt.c: move this file ...
37388 * commands/halt.c: ... to here.
37389 Add some precompiler directive to include the correct header for
37392 * include/grub/efi/efi.h (grub_reboot): New function declaration.
37393 (grub_halt): Likewise.
37395 * kern/efi/efi.c (grub_reboot): New function.
37396 (grub_halt): Likewise.
37398 2008-02-12 Robert Millan <rmh@aybabtu.com>
37400 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
37401 /dev (like it is done for /dev/mapper). This doesn't provide support
37402 for EVMS, but at least it is now easy to identify the problem when it
37405 2008-02-11 Robert Millan <rmh@aybabtu.com>
37407 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
37408 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
37409 comparing it with -1, not 0.
37411 2008-02-10 Robert Millan <rmh@aybabtu.com>
37413 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
37415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37416 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
37418 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
37419 `disk/lvm.c' to the end of the list.
37420 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37421 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37423 2008-02-10 Robert Millan <rmh@aybabtu.com>
37425 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
37426 grub_print_error() instead. This will let user know why we're entering
37428 Based on suggestions from Sam Morris.
37430 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
37432 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
37433 on remaining N args, instead of "--" arg N times.
37435 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
37437 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
37438 (fill_with_default_glyph): Changed to use unknown_glyph for fill
37439 pattern for unknown glyphs.
37441 2008-02-09 Robert Millan <rmh@aybabtu.com>
37443 * configure.ac: Probe for `help2man'.
37444 * Makefile.in (builddir): New variable.
37445 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
37446 or otherwise add a few flags/options to it.
37447 (install-local): For every executable utility or script that is
37448 installed, invoke $(HELP2MAN) to install a manpage based on --help
37451 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
37452 that it doesn't prevent --help from working in build tree.
37454 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
37455 with `bug-grub@gnu.org'.
37456 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
37457 * util/update-grub.in (usage): New function.
37458 Implement proper argument check, with support for --help and --version
37459 (as well as existing -y).
37461 2008-02-09 Christian Franke <franke@computer.org>
37463 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
37464 avoid overwriting previous output.
37465 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
37467 2008-02-09 Robert Millan <rmh@aybabtu.com>
37469 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
37472 2008-02-09 Robert Millan <rmh@aybabtu.com>
37474 * commands/sleep.c: New file.
37475 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
37476 (sleep_mod_SOURCES): New variable.
37477 (sleep_mod_CFLAGS): Likewise.
37478 (sleep_mod_LDFLAGS): Likewise.
37480 2008-02-09 Robert Millan <rmh@aybabtu.com>
37482 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
37483 situations in which we can deduce the RAID size and the superblock
37486 2008-02-09 Robert Millan <rmh@aybabtu.com>
37488 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
37489 and return a grub_diskmemberlist_t composed of LVM physical volumes.
37490 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
37492 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
37493 and return a grub_diskmemberlist_t composed of physical array members.
37494 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
37496 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
37498 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
37499 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
37500 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
37502 * util/grub-probe.c (probe): Move partmap probing code from here ...
37503 (probe_partmap): ... to here.
37504 (probe): Use probe_partmap() once for the disk we're probing, and
37505 additionally, when such disk contains a memberlist() struct member,
37506 once for each disk that is contained in the structure returned by
37509 2008-02-09 Robert Millan <rmh@aybabtu.com>
37511 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
37512 environment variable to 'all' in order to obtain debug output from
37514 * util/i386/pc/grub-setup.c (main): Likewise.
37516 2008-02-08 Robert Millan <rmh@aybabtu.com>
37518 * disk/raid.c (grub_raid_scan_device): Check for
37519 `array->device[sb.this_disk.number]' rather than for
37520 `array->device[sb.this_disk.number]->name', since the latter is not
37521 guaranteed to be accessible.
37523 2008-02-08 Robert Millan <rmh@aybabtu.com>
37525 * disk/raid.c: Update copyright.
37526 * fs/cpio.c: Likewise.
37527 * include/grub/raid.h: Likewise.
37528 * loader/i386/pc/multiboot.c: Likewise.
37529 * util/hostfs.c: Likewise.
37531 2008-02-08 Robert Millan <rmh@aybabtu.com>
37533 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
37534 to a grub_disk_t array.
37535 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
37537 (grub_raid_scan_device): Replace `device[x].name' accesses with
37538 `device[x]->name'. Simplify initialization of `array->device[x]'.
37540 2008-02-08 Robert Millan <rmh@aybabtu.com>
37542 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
37543 grub_dprintf() calls.
37544 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
37547 2008-02-07 Christian Franke <franke@computer.org>
37549 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
37550 instead of fseek and ftell to support large files.
37551 (grub_hostfs_read): Likewise.
37553 2008-02-07 Robert Millan <rmh@aybabtu.com>
37555 Patch from Jeroen Dekkers.
37556 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
37557 failure, since successfully reading all array members might not be
37560 2008-02-06 Robert Millan <rmh@aybabtu.com>
37562 * util/grub-probe.c (probe): Simplify partmap probing (with the
37563 assumption that the first word up to the underscore equals to
37566 2008-02-06 Christian Franke <franke@computer.org>
37568 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
37569 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
37570 last block of a cpio or tar stream.
37571 Check for "TRAILER!!!" instead of any empty data
37572 block to detect last block of a cpio stream.
37573 (grub_cpio_dir): Fix constness of variable np.
37574 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
37575 cpio or tar trailer is detected. This fixes a crash
37576 on open of a non existing file.
37578 2008-02-05 Bean <bean123ch@gmail.com>
37580 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
37582 (grub_multiboot_load_elf64): Likewise.
37583 (grub_multiboot): Initialize mbi structure.
37585 * util/grub-fstest.c: Don't include unused header file script.h.
37587 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
37589 (grub_fstest_SOURCES): Likewise.
37591 2008-02-05 Robert Millan <rmh@aybabtu.com>
37593 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
37594 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
37595 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
37596 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
37598 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
37599 (translation_table): Replace hardcoded values with macros
37600 provided by `<grub/term.h>'.
37602 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
37603 (keyboard_map): Correct/add a few values, with macros provided
37604 by `<grub/term.h>'.
37605 (keyboard_map_shift): Zero values that don't differ from their
37606 `keyboard_map' equivalents.
37607 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
37608 Discard the second scan code that is always sent by Caps lock.
37609 Only use `keyboard_map_shift' when it provides a non-zero value,
37610 otherwise fallback to `keyboard_map'.
37612 2008-02-04 Bean <bean123ch@gmail.com>
37614 * Makefile.in (enable_grub_fstest): New variable.
37616 * conf/common.rmk (grub_fstest_init.lst): New rule.
37617 (grub_fstest_init.h): Likewise.
37618 (grub_fstest_init.c): Likewise.
37619 (util/grub-fstest.c_DEPENDENCIES): New variable.
37620 (grub_fstest_SOURCES): Likewise.
37622 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
37624 * util/grub-fstest.c: New file.
37626 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37628 Make grub-setup handle a separate root device.
37630 * util/i386/pc/grub-setup.c (setup): Always open the root device,
37631 so that the root device can be compared with the destination
37633 When embedding the core image, if the root and destination devices
37634 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
37636 When not embedding, set ROOT_DRIVE to 0xFF.
37638 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37640 Add support for having a grub directory in a different drive. This
37641 is still only the data handling part.
37643 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
37644 (codestart): Save %dh in GRUB_ROOT_DRIVE.
37645 (grub_root_drive): New variable.
37647 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
37648 instead of GRUB_BOOT_DRIVE to construct a device name. Set
37649 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
37652 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
37654 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
37656 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
37658 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
37659 is bogus, because PXE booting does not specify any drive
37662 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
37663 am not sure if this is really correct.
37665 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
37666 is always identical to the boot drive when booting from a CD.
37668 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
37670 (root_drive): New variable.
37671 (real_start): Unconditionally set %dh to ROOT_DRIVE.
37672 (setup_sectors): Push %dx right after popping it, because %dh will
37674 (copy_buffer): Restore %dx.
37676 2008-02-03 Robert Millan <rmh@aybabtu.com>
37678 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
37679 use `cdboot.img' for cdrom images.
37681 2008-02-03 Robert Millan <rmh@aybabtu.com>
37683 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
37684 only setup gfxterm when `font' command has succeeded.
37686 2008-02-03 Robert Millan <rmh@aybabtu.com>
37688 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
37689 (grub_rescue_cmd_multiboot_loader)
37690 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
37692 2008-02-03 Pavel Roskin <proski@gnu.org>
37694 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
37695 %edx and %esi from stack only after grub_gate_a20() is called.
37696 grub_gate_a20() clobbers %edx.
37698 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37700 * configure.ac (AC_INIT): Bumped to 1.96.
37702 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
37703 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
37704 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
37705 video/readers/png.c.
37707 2008-02-03 Bean <bean123ch@gmail.com>
37709 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
37710 (cdboot_img_SOURCES): New variable.
37711 (cdboot_img_ASFLAGS): New variable.
37712 (cdboot_img_LDFLAGS): New variable.
37714 * boot/i386/pc/cdboot.S: New file.
37716 * disk/i386/pc/biosdisk.c (cd_start): New variable.
37717 (cd_count): Likewise.
37718 (grub_biosdisk_get_drive): Add support for cd device.
37719 (grub_biosdisk_call_hook): Likewise.
37720 (grub_biosdisk_iterate): Likewise.
37721 (grub_biosdisk_open): Likewise.
37722 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
37723 (grub_biosdisk_rw): Support reading from cd device.
37724 (GRUB_MOD_INIT): Iterate cd devices.
37726 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
37727 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
37728 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
37730 * kern/i386/pc/init.c (make_install_device): Check for cd device.
37732 2008-02-02 Robert Millan <rmh@aybabtu.com>
37734 * commands/read.c: New file.
37735 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
37736 (read_mod_SOURCES): New variable.
37737 (read_mod_CFLAGS): Likewise.
37738 (read_mod_LDFLAGS): Likewise.
37740 2008-02-02 Robert Millan <rmh@aybabtu.com>
37742 * normal/main.c (grub_normal_execute): Check for `menu->size' when
37743 determining whether menu has to be displayed.
37745 2008-02-02 Marco Gerards <marco@gnu.org>
37747 * bus/pci.c: New file.
37749 * include/grub/pci.h: Likewise.
37751 * include/grub/i386/pc/pci.h: Likewise.
37753 * commands/lspci.c: Likewise.
37755 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
37757 (pci_mod_SOURCES): New variable.
37758 (pci_mod_CFLAGS): Likewise.
37759 (pci_mod_LDFLAGS): Likewise.
37760 (lspci_mod_SOURCES): Likewise.
37761 (lspci_mod_CFLAGS): Likewise.
37762 (lspci_mod_LDFLAGS): Likewise.
37764 2008-02-02 Bean <bean123ch@gmail.com>
37766 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
37767 (grub_ufs_get_file_block): Fix indirect block calculation problem.
37769 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
37770 (grub_xfs_btree_node): New structure.
37771 (grub_xfs_btree_root): New structure.
37772 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
37773 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
37774 (GRUB_XFS_EXTENT_BLOCK): Likewise.
37775 (GRUB_XFS_EXTENT_SIZE): Likewise.
37776 (grub_xfs_read_block): Support btree format type.
37777 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
37778 Use directory block as basic unit.
37780 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
37782 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
37783 __attribute__ ((__regparm__ (1))).
37785 2008-02-01 Robert Millan <rmh@aybabtu.com>
37787 Correct a mistake in previous commit.
37789 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
37791 (normal/command.c_DEPENDENCIES): New variable.
37793 2008-02-01 Robert Millan <rmh@aybabtu.com>
37795 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
37797 (normal/command.c_DEPENDENCIES): New variable.
37798 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
37799 * conf/i386-ieee1275.rmk: Likewise.
37800 * conf/i386-linuxbios.rmk: Likewise.
37801 * conf/i386-pc.rmk: Likewise.
37802 * conf/sparc64-ieee1275.rmk: Likewise.
37803 * conf/powerpc-ieee1275.rmk: Likewise.
37804 (grub_emu_SOURCES): Add `fs/fshelp.c'.
37806 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
37808 2008-02-01 Robert Millan <rmh@aybabtu.com>
37810 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
37811 call at beginning of function.
37813 2008-01-31 Pavel Roskin <proski@gnu.org>
37815 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
37816 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
37817 (grub_mkrescue_SOURCES): Likewise.
37818 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
37820 2008-01-30 Robert Millan <rmh@aybabtu.com>
37822 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
37823 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
37824 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
37825 (grub_probe_SOURCES): ... to here.
37827 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
37828 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
37829 * conf/i386-ieee1275.rmk: Likewise.
37830 * conf/i386-linuxbios.rmk: Likewise.
37831 * conf/powerpc-ieee1275.rmk: Likewise.
37833 2008-01-30 Tristan Gingold <gingold@free.fr>
37835 * kern/rescue.c: Silently accept empty lines.
37837 2008-01-29 Bean <bean123ch@gmail.com>
37839 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
37840 (real_code_2): Code cleanup and change comment style.
37841 (move_memory): Avoid using 32-bit address mode.
37843 2008-01-29 Bean <bean123ch@gmail.com>
37845 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
37846 (png_mod_SOURCES): New variable.
37847 (png_mod_CFLAGS): Likewise.
37848 (png_mod_LDFLAGS): Likewise.
37850 * video/readers/png.c: New file.
37852 2008-01-28 Robert Millan <rmh@aybabtu.com>
37854 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
37855 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
37856 `ifndef GRUB_MOD_GAP' hack.
37857 * util/elf/grub-mkimage.c (add_segments): Likewise.
37859 2008-01-27 Robert Millan <rmh@aybabtu.com>
37861 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
37862 `GRUB_MOD_GAP' for platforms in which it's not defined.
37863 * util/elf/grub-mkimage.c (add_segments): Likewise.
37865 2008-01-27 Robert Millan <rmh@aybabtu.com>
37867 Get grub-emu to build again (including parallel builds).
37869 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
37871 (util/grub-emu.c_DEPENDENCIES): ... this, ...
37872 (normal/execute.c_DEPENDENCIES): ... this, ...
37873 (grub-emu_DEPENDENCIES): ... and this.
37875 * conf/i386-efi.rmk: Likewise.
37876 * conf/i386-linuxbios.rmk: Likewise.
37877 * conf/i386-ieee1275.rmk: Likewise.
37878 * conf/powerpc-ieee1275.rmk: Likewise.
37879 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
37881 2008-01-27 Robert Millan <rmh@aybabtu.com>
37883 * NEWS: Add a few items.
37885 2008-01-27 Robert Millan <rmh@aybabtu.com>
37887 Fix parallel builds with grub-emu. Based on earlier commit for
37888 grub-probe and grub-setup.
37890 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37891 (util/grub-emu.c_DEPENDENCIES): ... this.
37892 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37893 (util/grub-emu.c_DEPENDENCIES): ... this.
37894 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37895 (util/grub-emu.c_DEPENDENCIES): ... this.
37896 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37897 (util/grub-emu.c_DEPENDENCIES): ... this.
37898 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37899 (util/grub-emu.c_DEPENDENCIES): ... this.
37901 2008-01-27 Pavel Roskin <proski@gnu.org>
37903 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
37904 to create a gap between _end and the modules added to the image
37905 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
37906 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
37907 * util/elf/grub-mkimage.c (add_segments): Likewise.
37909 2008-01-26 Pavel Roskin <proski@gnu.org>
37911 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
37912 just return an error.
37914 2008-01-26 Bean <bean123ch@gmail.com>
37916 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
37917 (grub_reiserfs_get_item): Save offset of the next item.
37918 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
37920 2008-01-25 Robert Millan <rmh@aybabtu.com>
37922 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
37923 make all filesystem sources appear together (possibly fixing omissions
37925 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37926 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37927 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37928 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37930 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
37932 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
37933 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
37934 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
37935 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
37937 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
37938 (probe): Add a sanity check to make sure of our ability to read
37939 requested files when probing for filesystem type.
37941 * genmk.rb: Update copyright year (2007).
37943 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
37944 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
37945 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
37946 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
37947 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
37948 : Remove function prototypes.
37950 2008-01-25 Robert Millan <rmh@aybabtu.com>
37952 Revert my previous commits (based on wrong assumption of how grub_errno
37955 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
37956 * kern/file.c (grub_file_open): Likewise.
37958 2008-01-24 Pavel Roskin <proski@gnu.org>
37960 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
37961 that hang if GRUB tries to setup colors.
37962 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
37963 colors for firmwares that don't support it.
37964 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
37965 Recognize Open Hack'Ware, set flags to work around its
37968 2008-01-24 Robert Millan <rmh@aybabtu.com>
37970 * kern/file.c (grub_file_open): Do not account previous failures of
37971 unrelated functions when grub_errno is checked for.
37972 Reported by Oleg Strikov.
37974 2008-01-24 Bean <bean123ch@gmail.com>
37976 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
37977 (grub_ufs_sblock): New member volume name.
37978 (grub_ufs_find_file): Fix string copy bug.
37979 (grub_ufs_label): Implement this function properly.
37981 * fs/hfs.c (grub_hfs_cnid_type): New enum.
37982 (grub_hfs_iterate_records): Use the correct file number for extents
37983 and catalog file. Fix problem in next index calculation.
37984 (grub_hfs_find_node): Replace recursive function call with loop.
37985 (grub_hfs_iterate_dir): Replace recursive function call with loop.
37987 2008-01-23 Robert Millan <rmh@aybabtu.com>
37989 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
37990 `<grub/symbol.h>' and `<grub/multiboot.h>'.
37991 (grub_multiboot2_real_boot): New function prototype.
37993 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
37994 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
37996 * kern/i386/ieee1275/init.c (grub_os_area_addr)
37997 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
37999 2008-01-23 Robert Millan <rmh@aybabtu.com>
38001 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38002 #ifdef'ed out grub_printf().
38004 2008-01-23 Robert Millan <rmh@aybabtu.com>
38006 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38007 grub_dprintf calls, since they make "debug=all" mode unusable.
38008 (grub_console_checkkey): Likewise.
38010 2008-01-23 Robert Millan <rmh@aybabtu.com>
38012 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38013 `term/i386/pc/at_keyboard.c'.
38014 (pkglib_MODULES): Add `serial.mod'.
38015 (serial_mod_SOURCES): New variable.
38016 (serial_mod_CFLAGS): Likewise.
38017 (serial_mod_LDFLAGS): Likewise.
38019 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38020 `<grub/powerpc/ieee1275/console.h>'.
38021 (grub_keyboard_controller_init): New function prototype.
38022 (grub_console_checkkey): Likewise.
38023 (grub_console_getkey): Likewise.
38025 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38028 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38029 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38031 2008-01-23 Robert Millan <rmh@aybabtu.com>
38033 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38034 present, "(memdisk)/boot/grub" becomes the default prefix.
38036 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38037 a memdisk tarball with all the modules. Add --overlay=DIR option that
38038 allows users to overlay additional files into the image.
38040 2008-01-23 Robert Millan <rmh@aybabtu.com>
38042 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38043 and `machine/memory.h'.
38044 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38045 (_multiboot_mod_SOURCES): New variable.
38046 (_multiboot_mod_CFLAGS): Likewise.
38047 (_multiboot_mod_LDFLAGS): Likewise.
38048 (multiboot_mod_SOURCES): Likewise.
38049 (multiboot_mod_CFLAGS): Likewise.
38050 (multiboot_mod_LDFLAGS): Likewise.
38052 * include/grub/i386/ieee1275/loader.h: New file.
38054 * include/grub/i386/ieee1275/machine.h: Likewise.
38056 * include/grub/i386/ieee1275/memory.h: Likewise.
38058 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
38059 variable declaration.
38060 (grub_os_area_size): Likewise.
38062 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
38063 (grub_lower_mem, grub_upper_mem): New variables.
38064 (grub_stop_floppy): New function (just to make
38065 grub_multiboot2_real_boot() happy).
38067 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
38068 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
38069 (grub_stop): New function.
38070 Include `"../realmode.S"' and `"../loader.S"'.
38072 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
38073 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
38075 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
38076 rely on grub_multiboot2_real_boot() for final boot.
38078 2008-01-22 Robert Millan <rmh@aybabtu.com>
38080 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
38081 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
38082 device that doesn't look like an SD card.
38083 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
38084 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
38085 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
38086 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
38089 2008-01-22 Robert Millan <rmh@aybabtu.com>
38091 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
38092 avoid claiming over our own code.
38094 2008-01-22 Bean <bean123ch@gmail.com>
38096 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
38097 (jpeg_mod_SOURCES): New variable.
38098 (jpeg_mod_CFLAGS): Likewise.
38099 (jpeg_mod_LDFLAGS): Likewise.
38101 * video/readers/jpeg.c : New file.
38103 2008-01-22 Bean <bean123ch@gmail.com>
38105 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
38106 there are no more items.
38108 2008-01-21 Robert Millan <rmh@aybabtu.com>
38110 * kern/mm.c (grub_mm_init_region): Improve debug message.
38112 2008-01-21 Robert Millan <rmh@aybabtu.com>
38114 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
38115 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
38117 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
38119 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
38120 Indicates start of upper memory.
38121 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
38122 (generate_image): Abort when image size is big enough to corrupt
38125 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
38126 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
38127 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38128 instead of hardcoding 0xA0000.
38129 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
38130 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38131 instead of hardcoding 0xA0000.
38133 2008-01-21 Robert Millan <rmh@aybabtu.com>
38135 * disk/memdisk.c (memdisk_size): New variable.
38136 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
38138 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
38139 image to dynamic memory.
38140 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
38141 `memdisk_size'. Free memdisk block.
38143 2008-01-21 Robert Millan <rmh@aybabtu.com>
38145 Fix detection of very small filesystems (like tar).
38147 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
38148 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
38149 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
38150 a problem with this disk).
38152 2008-01-21 Robert Millan <rmh@aybabtu.com>
38154 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
38155 on grub_biosdisk_rw_standard() error.
38157 2008-01-21 Robert Millan <rmh@aybabtu.com>
38159 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
38161 * kern/elf.c: Likewise.
38162 * kern/ieee1275/ieee1275.c: Likewise.
38163 * kern/powerpc/ieee1275/openfw.c: Likewise.
38164 * term/ieee1275/ofconsole.c: Likewise.
38166 2008-01-21 Robert Millan <rmh@aybabtu.com>
38168 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
38170 * include/grub/kernel.h (grub_arch_memdisk_addr)
38171 (grub_arch_memdisk_size): Moved from here ...
38173 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
38174 (grub_arch_memdisk_size): ... to here.
38176 2008-01-21 Robert Millan <rmh@aybabtu.com>
38178 Mostly based on bugfix from Bean.
38180 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
38181 attribute with hook() parameter.
38182 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
38184 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
38185 attribute with hook() parameter.
38186 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
38189 2008-01-21 Robert Millan <rmh@aybabtu.com>
38191 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
38192 (pkglib_MODULES): Add `memdisk.mod'.
38193 (memdisk_mod_SOURCES): New variable.
38194 (memdisk_mod_CFLAGS): Likewise.
38195 (memdisk_mod_LDFLAGS): Likewise.
38197 * disk/memdisk.c: New file.
38199 * include/grub/disk.h (grub_disk_dev_id): Add
38200 `GRUB_DISK_DEVICE_MEMDISK_ID'.
38202 * include/grub/i386/pc/kernel.h
38203 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
38204 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
38205 (grub_kernel_image_size): New variable declaration.
38206 (grub_total_module_size): Likewise.
38207 (grub_memdisk_image_size): Likewise.
38209 * include/grub/i386/pc/memory.h
38210 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
38212 * include/grub/kernel.h: Include `<grub/symbol.h>'.
38213 (grub_arch_memdisk_addr): New variable declaration.
38214 (grub_arch_memdisk_size): Likewise.
38216 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
38217 (grub_arch_memdisk_size): Likewise.
38219 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
38220 (codestart): Replace hardcoded `0x100000' with
38221 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
38223 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
38224 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
38225 not NULL, append the contents of the file it refers to, at the end of
38226 the compressed kernel image. Initialize `grub_memdisk_image_size'
38227 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
38228 (options): Add "memdisk"|'m' option.
38229 (main): Parse --memdisk|-m option, and pass user-provided path as
38230 parameter to generate_image().
38232 2008-01-20 Robert Millan <rmh@aybabtu.com>
38234 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
38235 grub_dprintf() calls from here ...
38236 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
38238 2008-01-20 Robert Millan <rmh@aybabtu.com>
38240 Fix detection of "real mode" when /options/real-mode? doesn't exist.
38242 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
38244 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
38245 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
38246 `GRUB_IEEE1275_FLAG_REAL_MODE'.
38247 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
38249 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
38250 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
38252 2008-01-19 Robert Millan <rmh@aybabtu.com>
38254 Get rid of confusing function (superseded by
38255 `grub_ieee1275_get_integer_property')
38256 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
38258 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
38260 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
38261 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
38262 in native endianness from grub_ieee1275_get_integer_property().
38264 2008-01-19 Robert Millan <rmh@aybabtu.com>
38266 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
38267 command after "shut-down", since implementations differ on which
38268 the command for halt is.
38270 2008-01-19 Robert Millan <rmh@aybabtu.com>
38272 * include/grub/i386/linuxbios/console.h: Add header protection.
38273 (grub_keyboard_controller_init): New function prototype.
38274 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
38275 (KEYBOARD_COMMAND_READ): Likewise.
38276 (KEYBOARD_COMMAND_WRITE): Likewise.
38277 (KEYBOARD_SCANCODE_SET1): Likewise.
38278 (grub_keyboard_controller_write): New function.
38279 (grub_keyboard_controller_read): Likewise.
38280 (grub_keyboard_controller_init): Likewise.
38282 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
38283 (grub_console_init): On coreboot/LinuxBIOS, call
38284 grub_keyboard_controller_init().
38286 2008-01-19 Robert Millan <rmh@aybabtu.com>
38288 PowerPC changes provided by Pavel Roskin.
38290 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
38291 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
38292 don't rely on cmain() doing it.
38293 * kern/i386/ieee1275/startup.S (_start): Store %eax in
38294 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
38296 2008-01-16 Robert Millan <rmh@aybabtu.com>
38298 * include/grub/i386/linuxbios/memory.h
38299 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
38300 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
38301 receive `table_header' as argument. Instead, probe for it in the
38302 known memory ranges where it can be present.
38303 (grub_available_iterate): Do not pass a fixed `table_header' address
38304 to grub_linuxbios_table_iterate().
38306 2008-01-15 Robert Millan <rmh@aybabtu.com>
38308 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
38309 * conf/i386-ieee1275.rmk: New file.
38310 * include/grub/i386/ieee1275/console.h: Likewise.
38311 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
38312 * include/grub/i386/ieee1275/kernel.h: Likewise.
38313 * include/grub/i386/ieee1275/time.h: Likewise.
38314 * kern/i386/ieee1275/init.c: Likewise.
38315 * kern/i386/ieee1275/startup.S: Likewise.
38317 2008-01-15 Robert Millan <rmh@aybabtu.com>
38319 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
38320 when pointers are 32-bit (but still do set it to one when they are
38323 2008-01-15 Robert Millan <rmh@aybabtu.com>
38325 * include/grub/ieee1275/ieee1275.h
38326 (grub_ieee1275_get_integer_property): New function prototype.
38328 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
38329 (grub_ieee1275_get_integer_property): New function. Wraps around
38330 grub_ieee1275_get_property() to handle endianness.
38332 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
38333 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
38335 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
38336 (grub_map): Likewise.
38337 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
38339 2008-01-15 Bean <bean123ch@gmail.com>
38341 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
38342 (grub_script_execute_cmdline): Reset grub_errno.
38344 * normal/main.c (read_config_file): Reset grub_errno.
38346 * normal/parse.y (script_init): New.
38347 (script): Move function and menuentry here.
38349 (command): Add delimiter at the end of command.
38350 (commands): Adjust to match the new command.
38351 (commandblock): Remove grub_script_lexer_record_start.
38352 (menuentry): Add grub_script_lexer_record_start, use the new commands.
38353 (if): Use the new commands.
38355 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
38357 2008-01-15 Robert Millan <rmh@aybabtu.com>
38359 * normal/menu.c (run_menu): Move timeout message from here ...
38360 (print_timeout): ... to here.
38361 (run_menu): Use print_timeout() once during initial draw to print
38362 the whole message, and again in every clock tick to update only
38363 the number of seconds.
38365 2008-01-15 Robert Millan <rmh@aybabtu.com>
38367 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
38368 actual size of `available' from grub_ieee1275_get_property(), and
38369 restrict parsing to that bound.
38371 2008-01-15 Christian Franke <franke@computer.org>
38373 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
38374 (argp_program_version): Remove variable.
38375 (argp_program_bug_address): Likewise.
38376 (options): Convert from struct argp_option to struct option.
38377 (struct arguments): Remove.
38378 (parse_opt): Remove.
38379 (usage): New function.
38380 (main): Replace struct args members by simple variables.
38381 Replace argp_parse() by getopt_long().
38382 Add switch to evaluate options.
38383 Add missing "(...)" around root_dev in prefix string.
38385 2008-01-14 Robert Millan <rmh@aybabtu.com>
38387 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
38388 for grub_ieee1275_exit(), in order to improve portability.
38390 2008-01-14 Robert Millan <rmh@aybabtu.com>
38392 * util/grub.d/10_linux.in (prefix): Define.
38393 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
38395 2008-01-13 Pavel Roskin <proski@gnu.org>
38397 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
38398 grub_errno if no errors have been detected.
38400 2008-01-12 Robert Millan <rmh@aybabtu.com>
38402 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
38403 (grub_util_get_dev_abstraction): New function prototype.
38405 * util/getroot.c: Include `<grub/util/getroot.h>'
38406 (grub_util_get_grub_dev): Move detection of abstraction type to ...
38407 (grub_util_get_dev_abstraction): ... here (new function).
38409 * util/grub-probe.c: Convert PRINT_* to an enum. Add
38410 `PRINT_ABSTRACTION'.
38411 (probe): Probe for abstraction type when requested.
38412 (main): Understand `--target=abstraction'.
38414 * util/i386/efi/grub-install.in: Add abstraction module to core
38415 image when it is found to be necessary.
38416 * util/i386/pc/grub-install.in: Likewise.
38417 * util/powerpc/ieee1275/grub-install.in: Likewise.
38419 * util/update-grub_lib.in (font_path): Return system path without
38420 converting to GRUB path.
38421 * util/update-grub.in: Convert system path returned by font_path()
38422 to a GRUB path. Use `grub-probe -t abstraction' to determine what
38423 abstraction module is needed for loading fonts (if any). Export
38424 that as `GRUB_PRELOAD_MODULES'.
38425 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
38428 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
38430 Remove some unused code from reiserfs.
38432 * fs/reiserfs.c (struct grub_reiserfs_key)
38433 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
38434 (struct grub_reiserfs_node_body): Removed.
38435 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38437 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38439 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38441 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38443 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38445 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
38447 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38448 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38449 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38451 2008-01-10 Robert Millan <rmh@aybabtu.com>
38453 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
38454 Determines if a file is garbage left by packaging systems, etc.
38455 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
38456 for processing /etc/grub.d scripts.
38457 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
38458 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
38459 as a condition for processing Linux images.
38461 2008-01-10 Pavel Roskin <proski@gnu.org>
38463 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
38464 to compile reiserfs.c on PowerPC.
38466 2008-01-10 Robert Millan <rmh@aybabtu.com>
38468 * kern/device.c (grub_device_iterate): Do not abort device iteration
38469 when one of the devices cannot be opened.
38470 * kern/disk.c (grub_disk_open): Do not account previous failures of
38471 unrelated functions when grub_errno is checked for.
38473 2008-01-08 Robert Millan <rmh@aybabtu.com>
38475 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
38476 `! grub_linux_is_bzimage', change order of address comparison to make
38477 it more intuitive, and improve "too big zImage" error message.
38479 2008-01-08 Robert Millan <rmh@aybabtu.com>
38481 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
38482 `$(update-grub_DATA)'.
38483 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
38486 2008-01-07 Robert Millan <rmh@aybabtu.com>
38488 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
38489 which instruction is modified by grub-setup during installation
38490 (since it wasn't obvious by only looking at this file).
38492 2008-01-07 Robert Millan <rmh@aybabtu.com>
38494 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
38495 listing actual TODO items.
38497 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38499 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
38501 (grub_reiserfs_get_key_offset): Likewise.
38502 (grub_reiserfs_set_key_offset): Likewise.
38503 (grub_reiserfs_set_key_type): Likewise.
38504 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
38506 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
38507 better to remove the bitfield version completely.
38509 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38511 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
38512 allocated from the heap, due to the fshelp implementation.
38513 (grub_reiserfs_dir): Free NODE, due to the same reason.
38515 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38517 Mostly from Vincent Pelletier:
38519 * fs/reiserfs.c: New file.
38521 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
38522 (reiserfs_mod_SOURCES): New variable.
38523 (reiserfs_mod_CFLAGS): Likewise.
38524 (reiserfs_mod_LDFLAGS): Likewise.
38526 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
38527 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
38528 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
38531 2008-01-06 Robert Millan <rmh@aybabtu.com>
38533 * normal/color.c: Remove `<grub/env.h>'.
38535 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
38537 * include/grub/normal.h: Include <grub/env.h>.
38539 2008-01-05 Robert Millan <rmh@aybabtu.com>
38541 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
38542 usage example with `(hd0,1)'.
38543 Reported by Samuel Thibault.
38545 2008-01-05 Robert Millan <rmh@aybabtu.com>
38547 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
38548 (grub_linux_boot_zimage): Rename to ...
38549 (grub_linux_boot): ... this.
38550 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
38551 (grub_linux_boot_zimage): Conditionalize zImage copy.
38553 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
38554 (grub_linux_boot_bzimage): Remove prototype.
38555 (grub_linux_boot_zimage): Rename to ...
38556 (grub_linux_boot): ... this.
38558 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
38559 (grub_linux_boot): Remove function.
38561 2008-01-05 Robert Millan <rmh@aybabtu.com>
38563 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
38564 (grub_env_write_color_highlight): Likewise.
38565 (grub_wait_after_message): Likewise.
38567 * normal/color.c: New file.
38569 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38570 (normal_mod_DEPENDENCIES): Likewise.
38572 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38573 (normal_mod_DEPENDENCIES): Likewise.
38575 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38576 (normal_mod_DEPENDENCIES): Likewise.
38578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38579 (normal_mod_DEPENDENCIES): Likewise.
38581 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
38582 for waiting after a message is printed.
38583 * normal/main.c (read_config_file): Likewise.
38584 (grub_normal_init): Register grub_env_write_color_normal() and
38585 grub_env_write_color_highlight() hooks. Mark `color_normal' and
38586 `color_highlight' variables as global.
38588 * normal/menu.c (grub_wait_after_message): New function.
38589 (grub_color_menu_normal): New variable. Replaces ...
38590 (GRUB_COLOR_MENU_NORMAL): ... this macro.
38591 (grub_color_menu_highlight): New variable. Replaces ...
38592 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
38593 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
38594 `GRUB_TERM_COLOR_STANDARD'.
38595 (print_message): Use `grub_setcolorstate' to reload colors. Rename
38596 `normal_code' and `highlight_code' to `old_color_normal' and
38597 `old_color_highlight', respectively.
38598 (grub_menu_init_page): Update colors when drawing the menu, based on
38599 `menu_color_normal' and `menu_color_highlight' variables.
38600 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
38601 a message is printed.
38603 2008-01-05 Robert Millan <rmh@aybabtu.com>
38605 * kern/env.c (grub_env_context_open): Propagate hooks for global
38606 variables to new context.
38608 * kern/main.c (grub_set_root_dev): Export `root' variable.
38610 2008-01-05 Robert Millan <rmh@aybabtu.com>
38612 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
38613 discs unconditionally, since udev and others have options to provide
38616 2008-01-05 Robert Millan <rmh@aybabtu.com>
38618 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
38620 2008-01-04 Christian Franke <franke@computer.org>
38622 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
38625 2008-01-03 Pavel Roskin <proski@gnu.org>
38627 * kern/i386/linuxbios/init.c: Put "void" to all function
38628 declarations with no arguments.
38629 * kern/powerpc/ieee1275/init.c: Likewise.
38630 * term/i386/pc/at_keyboard.c: Likewise.
38631 * term/i386/pc/vga_text.c: Likewise.
38632 * util/grub-mkdevicemap.c: Likewise.
38634 2008-01-02 Robert Millan <rmh@aybabtu.com>
38636 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
38637 message when loaded image is out of bounds.
38638 (grub_multiboot_load_elf64): Likewise.
38640 2008-01-02 Pavel Roskin <proski@gnu.org>
38642 * util/grub.d/10_linux.in: Try version without ".old" when
38643 looking for initrd. It's better to use initrd from the newer
38644 kernel of the same version than no initrd at all.
38646 2008-01-01 Robert Millan <rmh@aybabtu.com>
38648 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
38650 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
38652 * include/grub/video.h: Added grub_video_unmap_color and
38653 grub_video_get_active_render_target.
38654 (grub_video_adapter): Added unmap_color and get_active_render_target.
38656 * video/video.c: Added grub_video_unmap_color and
38657 grub_video_get_active_render_target.
38658 (grub_video_get_info): Changed method to accept NULL pointer as an
38659 argument to allow detection of active video adapter.
38661 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
38662 grub_video_vbe_unmap_color_int.
38663 Added grub_video_vbe_unmap_color and
38664 grub_video_vbe_get_active_render_target.
38665 (grub_video_vbe_adapter): Added unmap_color and
38666 get_active_render_target.
38668 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
38669 with grub_video_vbe_unmap_color_int.
38671 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
38672 (DEFAULT_NORMAL_COLOR): Likewise.
38673 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
38674 (DEFAULT_FG_COLOR): Removed.
38675 (DEFAULT_BG_COLOR): Likewise.
38676 (DEFAULT_CURSOR_COLOR): Changed value.
38677 (grub_virtual_screen): Added standard_color_setting,
38678 normal_color_setting, highlight_color_setting and term_color.
38679 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
38680 (bitmap_width): Added.
38681 (bitmap_height): Likewise.
38682 (bitmap): Likewise.
38683 (set_term_color): Likewise.
38684 (grub_virtual_screen_setup): Changed to use new terminal coloring
38686 (grub_gfxterm_init): Added init for bitmap.
38687 (grub_gfxterm_fini): Added destroy for bitmap.
38688 (redraw_screen_rect): Updated to use background bitmap and new
38690 (scroll_up): Added optimization for case when there is no bitmap.
38691 (grub_gfxterm_cls): Fixed to use correct background color.
38692 (grub_virtual_screen_setcolorstate): Changed to use new terminal
38694 (grub_virtual_screen_setcolor): Likewise.
38695 (grub_virtual_screen_getcolor): Added.
38696 (grub_gfxterm_background_image_cmd): Likewise.
38697 (grub_video_term): Added setcolor and getcolor.
38698 (MOD_INIT): Added registration of background_image command.
38699 (MOD_TERM): Added unregistration for background_image command.
38701 2007-12-30 Pavel Roskin <proski@gnu.org>
38703 * loader/multiboot_loader.c: Fix multiboot command
38704 unregistration. Fix all typos in the word "multiboot".
38706 2007-12-29 Pavel Roskin <proski@gnu.org>
38708 * util/grub.d/10_linux.in: Refactor search for initrd. Add
38709 support for initrd names used in Fedora.
38711 2007-12-26 Bean <bean123ch@gmail.com>
38713 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
38714 (cpio_mod_SOURCES): New variable.
38715 (cpio_mod_CFLAGS): Likewise.
38716 (cpio_mod_LDFLAGS): Likewise.
38718 * fs/cpio.c: New file.
38720 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
38722 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38724 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38726 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38728 2007-12-25 Robert Millan <rmh@aybabtu.com>
38730 * include/grub/term.h (struct grub_term): Add `getcolor' function.
38731 (grub_getcolor): New function.
38733 * kern/term.c (grub_getcolor): New function.
38734 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
38735 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
38736 (print_entry): Set normal and highlight colors to
38737 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
38738 respectively, before printing and restore them to old
38740 (grub_menu_init_page): Likewise. Fill an additional colored space
38741 that would otherwise be left blank.
38743 * term/efi/console.c (grub_console_getcolor): New function.
38744 (struct grub_console_term.getcolor): New variable.
38745 * term/i386/pc/console.c (grub_console_getcolor): New function.
38746 (struct grub_console_term.getcolor): New variable.
38747 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
38748 (struct grub_console_term.getcolor): New variable.
38750 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
38751 (struct grub_console_term.setcolor): Remove variable.
38752 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
38753 (struct grub_console_term.setcolor): Remove variable.
38754 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
38755 (struct grub_console_term.setcolor): Remove variable.
38756 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
38757 (struct grub_console_term.setcolor): Remove variable.
38759 2007-12-25 Robert Millan <rmh@aybabtu.com>
38761 * configure.ac: Search for possible unifont.hex locations, and
38762 define UNIFONT_HEX if found.
38764 * Makefile.in (UNIFONT_HEX): Define variable.
38765 (DATA): Rename to ...
38766 (PKGLIB): ... this. Update all users.
38767 (PKGDATA): New variable.
38768 (pkgdata_IMAGES): Rename to ...
38769 (pkglib_IMAGES): ... this. Update all users.
38770 (pkgdata_MODULES): Rename to ...
38771 (pkglib_MODULES): ... this. Update all users.
38772 (pkgdata_PROGRAMS): Rename to ...
38773 (pkglib_PROGRAMS): ... this. Update all users.
38774 (pkgdata_DATA): Rename to ...
38775 (pkglib_DATA): ... this. Update all users.
38776 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
38777 (unicode.pff, ascii.pff): New rules.
38778 (all-local): Add `$(PKGDATA)' dependency.
38779 (install-local): Process `$(PKGDATA)'.
38781 * util/update-grub_lib.in (font_path): Search for *.pff files in
38782 a few more locations, including `${pkgdata}'.
38784 2007-12-23 Robert Millan <rmh@aybabtu.com>
38786 Patch from Bean <bean123ch@gmail.com>:
38787 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
38790 2007-12-21 Bean <bean123ch@gmail.com>
38792 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
38793 (ntfscomp_mod_SOURCES): New variable.
38794 (ntfscomp_mod_CFLAGS): Likewise.
38795 (ntfscomp_mod_LDFLAGS): Likewise.
38797 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
38798 (grub_probe_SOURCES): Likewise.
38799 (grub_emu_SOURCES): Likewise.
38801 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38802 (grub_emu_SOURCES): Likewise.
38804 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38805 (grub_emu_SOURCES): Likewise.
38807 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38808 (grub_emu_SOURCES): Likewise.
38810 * fs/ntfs.c (grub_ntfscomp_func): New variable.
38811 (read_run_list): Renamed to grub_ntfs_read_run_list.
38812 (decomp_nextvcn): Moved to ntfscomp.c.
38813 (decomp_getch): Likewise.
38814 (decomp_get16): Likewise.
38815 (decomp_block): Likewise.
38816 (read_block): Likewise.
38817 (read_data): Partially moved to ntfscomp.c.
38818 (fixup): Change unsigned to grub_uint16_t.
38819 (read_mft): Change unsigned long to grub_uint32_t.
38820 (read_attr): Likewise.
38821 (read_data): Likewise.
38822 (read_run_data): Likewise.
38823 (read_run_list): Likewise.
38824 (read_mft): Likewise.
38826 * fs/ntfscomp.c: New file.
38828 * include/grub/ntfs.h: New file.
38830 2007-12-16 Robert Millan <rmh@aybabtu.com>
38832 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
38833 IDE disk check, since Linux is known to support 20 IDE disks.
38834 Reported by Colin Watson.
38836 2007-12-15 Bean <bean123ch@gmail.com>
38838 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
38839 (lnxboot_img_SOURCES): New variable.
38840 (lnxboot_img_ASFLAGS): Likewise.
38841 (lnxboot_img_LDFLAGS): Likewise.
38843 * boot/i386/pc/lnxboot.S: New file.
38845 2007-11-24 Pavel Roskin <proski@gnu.org>
38847 * configure.ac: Test if '--build-id=none' is supported by the
38848 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
38849 objcopy to generate incorrect binary files (binutils
38850 2.17.50.0.18-1 as shipped by Fedora 8).
38851 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
38852 linking, so that build ID doesn't break the test.
38854 2007-11-24 Pavel Roskin <proski@gnu.org>
38856 * include/grub/i386/time.h: use "void" in the argument list
38857 of grub_cpu_idle().
38858 * include/grub/powerpc/time.h: Likewise.
38859 * include/grub/sparc64/time.h: Likewise.
38861 2007-11-18 Christian Franke <franke@computer.org>
38863 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
38864 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
38865 This fixes the problem that function keys did not work in grub-emu.
38867 2007-11-18 Christian Franke <franke@computer.org>
38869 * disk/host.c (grub_host_open): Remove attribute unused from
38870 name parameter. Add check for "host". This fixes the problem
38871 that grub-emu does not find partitions.
38873 2007-11-18 Christian Franke <franke@computer.org>
38875 * util/hostfs.c (is_dir): New function.
38876 (grub_hostfs_dir): Handle missing dirent.d_type case.
38877 (grub_hostfs_read): Add missing fseek().
38878 (grub_hostfs_label): Clear label pointer. This fixes a crash
38879 of grub-emu on "ls (host)".
38881 2007-11-18 Christian Franke <franke@computer.org>
38883 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
38884 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
38885 to 64 bit boundary by default.
38887 2007-11-18 Bean <bean123ch@gmail.com>
38889 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
38890 (hexdump_mod_SOURCES): New variable.
38891 (hexdump_mod_CFLAGS): Likewise.
38892 (hexdump_mod_LDFLAGS): Likewise.
38894 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38896 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38898 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38900 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38902 * include/grub/hexdump.h: New file.
38904 * commands/hexdump.c: New file.
38906 2007-11-10 Robert Millan <rmh@aybabtu.com>
38908 * commands/i386/pc/play.c (beep_off): Switch order of arguments
38909 in grub_outb() calls.
38910 (beep_on): Likewise.
38912 2007-11-10 Christian Franke <franke@computer.org>
38914 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
38915 (grub_menu_run): Likewise.
38917 2007-11-10 Robert Millan <rmh@aybabtu.com>
38919 * include/grub/i386/efi/machine.h: New file.
38920 * include/grub/i386/linuxbios/machine.h: Likewise.
38921 * include/grub/i386/pc/machine.h: Likewise.
38922 * include/grub/powerpc/ieee1275/machine.h: Likewise.
38923 * include/grub/sparc64/ieee1275/machine.h: Likewise.
38925 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
38926 (serial_hw_io_addr): New variable.
38927 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
38928 instead of `(unsigned short *) 0x400'.
38930 2007-11-10 Bean <bean123ch@gmail.com>
38932 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
38934 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
38936 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
38937 (vga_mod_SOURCES): Added.
38938 (vga_mod_CFLAGS): Likewise.
38939 (vga_mod_LDFLAGS): Likewise.
38941 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
38943 (set_map_mask): Likewise.
38944 (set_read_map): Likewise.
38945 (set_read_address): Likewise.
38946 (vga_font): Removed variable.
38947 (get_vga_glyph): Removed function.
38948 (invalidate_char): Likewise.
38949 (write_char): Changed to use grub_font_get_glyph() for font
38951 (grub_vga_putchar): Likewise.
38952 (grub_vga_getcharwidth): Likewise.
38954 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
38956 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
38958 (pxeboot_img_LDFLAGS): Likewise.
38959 (diskboot_img_LDFLAGS): Likewise.
38960 (kernel_img_LDFLAGS): Likewise.
38962 2007-11-06 Robert Millan <rmh@aybabtu.com>
38964 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
38965 in grub_outb() calls.
38966 (serial_hw_init): Likewise.
38968 2007-11-05 Robert Millan <rmh@aybabtu.com>
38970 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
38971 spaces. Skip non-regular files.
38973 2007-11-05 Robert Millan <rmh@aybabtu.com>
38975 * kern/disk.c (grub_disk_firmware_fini)
38976 (grub_disk_firmware_is_tainted): New variables.
38978 * include/grub/disk.h (grub_disk_firmware_fini)
38979 (grub_disk_firmware_is_tainted): Likewise.
38981 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
38982 (grub_disk_biosdisk_fini): ... to here.
38983 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
38984 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
38985 is set. Register grub_disk_biosdisk_fini() in
38986 `grub_disk_firmware_fini'.
38988 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
38989 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
38990 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
38991 to finish existing firmware disk interface.
38993 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
38994 (ata_mod_SOURCES): New variable.
38995 (ata_mod_CFLAGS): Likewise.
38996 (ata_mod_LDFLAGS): Likewise.
38998 2007-11-05 Robert Millan <rmh@aybabtu.com>
39000 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39001 (grub_ata_wait): Reimplement using grub_millisleep().
39003 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39004 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39006 2007-11-03 Marco Gerards <marco@gnu.org>
39008 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39009 (CRTC_ADDR_PORT): New macro.
39010 (CRTC_DATA_PORT): Likewise.
39011 (CRTC_CURSOR): Likewise.
39012 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39013 (CRTC_CURSOR_ADDR_LOW): Likewise.
39014 (update_cursor): New function.
39015 (grub_console_real_putchar): Call `update_cursor'.
39016 (grub_console_gotoxy): Likewise.
39017 (grub_console_cls): Set the default color when clearing the
39019 (grub_console_setcursor): Implemented.
39021 2007-11-03 Marco Gerards <marco@gnu.org>
39023 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39025 (grub_ata_pio_write): Likewise.
39027 (grub_atapi_identify): Wait after issuing an ATA command.
39028 (grub_atapi_packet): Likewise.
39029 (grub_ata_identify): Likewise.
39030 (grub_ata_readwrite): Likewise.
39032 2007-11-03 Marco Gerards <marco@gnu.org>
39034 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39035 (grub_ata_pio_write): Likewise.
39036 (grub_ata_readwrite): Use `grub_error', instead of
39037 returning `grub_errno'.
39039 2007-11-03 Marco Gerards <marco@gnu.org>
39041 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39042 grub_ata_pio_write once for every single sector, instead of for
39045 2007-10-31 Robert Millan <rmh@aybabtu.com>
39047 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39049 * conf/i386-linuxbios.rmk: New file.
39051 * kern/i386/pc/hardware.c: Likewise.
39052 * term/i386/pc/at_keyboard.c: Likewise.
39053 * term/i386/pc/vga_text.c: Likewise.
39055 * include/grub/i386/linuxbios/boot.h: Likewise.
39056 * include/grub/i386/linuxbios/console.h: Likewise.
39057 * include/grub/i386/linuxbios/init.h: Likewise.
39058 * include/grub/i386/linuxbios/kernel.h: Likewise.
39059 * include/grub/i386/linuxbios/loader.h: Likewise.
39060 * include/grub/i386/linuxbios/memory.h: Likewise.
39061 * include/grub/i386/linuxbios/serial.h: Likewise.
39062 * include/grub/i386/linuxbios/time.h: Likewise.
39064 * kern/i386/linuxbios/init.c: Likewise.
39065 * kern/i386/linuxbios/startup.S: Likewise.
39066 * kern/i386/linuxbios/table.c: Likewise.
39068 2007-10-31 Marco Gerards <marco@gnu.org>
39070 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
39071 (ata_mod_SOURCES): New variable.
39072 (ata_mod_CFLAGS): Likewise.
39073 (ata_mod_LDFLAGS): Likewise.
39075 * disk/ata.c: New file.
39077 * include/grub/disk.h (grub_disk_dev_id): Add
39078 `GRUB_DISK_DEV_ATA_ID'.
39080 2007-10-31 Robert Millan <rmh@aybabtu.com>
39082 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
39083 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
39085 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
39086 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
39088 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
39091 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
39093 2007-10-27 Robert Millan <rmh@aybabtu.com>
39095 * include/grub/types.h (ULONG_MAX): Define macro.
39097 2007-10-22 Robert Millan <rmh@aybabtu.com>
39099 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
39101 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
39103 2007-10-22 Robert Millan <rmh@aybabtu.com>
39105 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
39106 (pkgdata_MODULES): Add `biosdisk.mod'.
39107 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
39110 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
39111 (grub_biosdisk_init): Replace with ...
39112 (GRUB_MOD_INIT(biosdisk)): ... this.
39113 (grub_biosdisk_fini): Replace with ...
39114 (GRUB_MOD_FINI(biosdisk)): ... this.
39116 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
39117 (grub_machine_init): Remove call to grub_biosdisk_init().
39118 (grub_machine_fini): Remove call to grub_machine_fini().
39120 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
39122 2007-10-22 Robert Millan <rmh@aybabtu.com>
39124 * include/grub/time.h: New file.
39125 * include/grub/i386/time.h: Likewise.
39126 * include/grub/powerpc/time.h: Likewise.
39127 * include/grub/sparc64/time.h: Likewise.
39129 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
39131 (KERNEL_MACHINE_TIME_HEADER): ... this.
39132 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39134 (KERNEL_MACHINE_TIME_HEADER): ... this.
39135 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39137 (KERNEL_MACHINE_TIME_HEADER): ... this.
39139 * kern/i386/efi/init.c: Include `<grub/time.h>'.
39140 (grub_millisleep): New function.
39141 * kern/i386/pc/init.c: Include `<grub/time.h>'.
39142 (grub_millisleep): New function.
39143 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
39144 Remove `grub/machine/time.h' include.
39145 (grub_millisleep): New function.
39146 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
39147 Remove `grub/machine/time.h' include.
39148 (grub_millisleep): New function.
39150 * include/grub/misc.h (grub_div_roundup): New function.
39152 * kern/misc.c: Include `<grub/time.h>'.
39153 (grub_millisleep_generic): New function.
39155 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
39157 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
39159 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
39160 `machine/time.h'. Add `time.h'.
39161 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
39163 2007-10-21 Robert Millan <rmh@aybabtu.com>
39165 * include/grub/misc.h (grub_max): New function.
39167 2007-10-21 Robert Millan <rmh@aybabtu.com>
39169 * util/misc.c (grub_util_info): Call fflush() before returning.
39171 2007-10-20 Robert Millan <rmh@aybabtu.com>
39173 * genmk.rb (Image): Copy `extra_flags' from here ...
39174 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
39176 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
39177 to `argc' and `args' arguments.
39179 2007-10-17 Robert Millan <rmh@aybabtu.com>
39181 * kern/i386/loader.S: New file.
39183 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
39184 * kern/i386/loader.S (grub_linux_prot_size)... to here.
39185 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
39186 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
39187 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
39188 * kern/i386/loader.S (grub_linux_real_addr)... to here.
39189 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
39190 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
39191 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
39192 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
39193 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
39194 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
39195 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
39196 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
39198 * kern/i386/realmode.S: New file.
39200 * kern/i386/pc/startup.S (protstack): Moved from here ...
39201 * kern/i386/realmode.S (protstack)... to here.
39202 * kern/i386/pc/startup.S (gdt): Moved from here ...
39203 * kern/i386/realmode.S (gdt)... to here.
39204 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
39205 * kern/i386/realmode.S (prot_to_real)... to here.
39207 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
39208 `kern/i386/realmode.S'.
39210 2007-10-17 Robert Millan <rmh@aybabtu.com>
39212 * include/grub/i386/loader.h: New file.
39214 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
39215 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39216 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39217 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39218 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
39219 * include/grub/i386/loader.h (grub_linux_prot_size)
39220 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
39221 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
39222 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
39223 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
39225 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
39227 2007-10-15 Robert Millan <rmh@aybabtu.com>
39229 * normal/misc.c (grub_normal_print_device_info): Do not probe for
39230 filesystem when dev->disk is unset.
39231 Do probe for filesystem even when dev->disk->has_partitions is set.
39232 In case a filesystem is found, always report it.
39233 In case it isn't, if dev->disk->has_partitions is set, report that
39234 a partition table was found instead of reporting that no filesystem
39235 could be identified.
39237 2007-10-12 Robert Millan <rmh@aybabtu.com>
39239 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
39240 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
39242 * include/grub/types.h (grub_host_to_target16): New macro.
39243 (grub_host_to_target32): Likewise.
39244 (grub_host_to_target64): Likewise.
39245 (grub_target_to_host16): Likewise.
39246 (grub_target_to_host32): Likewise.
39247 (grub_target_to_host64): Likewise.
39249 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
39250 Renamed from to ...
39251 (GRUB_MOD_ALIGN): ...this. Update all users.
39253 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
39254 grub_host_to_target32.
39255 Replace grub_be_to_cpu32 with grub_target_to_host32.
39256 (load_modules): Likewise.
39257 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
39258 Replace grub_be_to_cpu32 with grub_target_to_host32.
39259 Replace grub_cpu_to_be16 with grub_host_to_target16.
39260 Replace grub_cpu_to_be32 grub_host_to_target32.
39262 2007-10-12 Robert Millan <rmh@aybabtu.com>
39264 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
39265 * util/elf/grub-mkimage.c: ... here.
39267 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
39268 `util/powerpc/ieee1275/grub-mkimage.c'.
39270 2007-10-07 Robert Millan <rmh@aybabtu.com>
39272 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
39273 and make it easier to figure out.
39274 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
39275 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
39276 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
39277 leave us with less than HEAP_MIN_SIZE total heap.
39278 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
39280 2007-10-03 Robert Millan <rmh@aybabtu.com>
39282 * include/grub/i386/io.h: New file.
39283 * commands/i386/pc/play.c (inb): Removed.
39285 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39287 * term/i386/pc/serial.c (inb): Removed.
39289 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39291 * term/i386/pc/vga.c (inb): Removed.
39293 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
39296 2007-10-02 Robert Millan <rmh@aybabtu.com>
39298 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
39299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39300 Reported by Marcin Kurek.
39302 2007-09-07 Robert Millan <rmh@aybabtu.com>
39304 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
39305 SmartFirmware version updates (as released by Sven Luther), and avoid
39306 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
39307 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
39310 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39312 From Hitoshi Ozeki:
39313 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
39314 when merging two regions.
39316 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39318 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
39319 * normal/completion.c (grub_normal_do_completion): Likewise.
39320 Reported by Hitoshi Ozeki.
39322 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39324 Do not use devices at boot in chainloading.
39326 * loader/i386/pc/chainloader.c (boot_drive): New variable.
39327 (boot_part_addr): Likewise.
39328 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
39329 with BOOT_DRIVE and BOOT_PART_ADDR.
39330 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
39331 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
39333 2007-08-29 Robert Millan <rmh@aybabtu.com>
39335 Patch from Simon Peter <dn.tlp@gmx.net>:
39336 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
39337 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
39338 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
39339 util/i386/pc/grub-setup.c_DEPENDENCIES.
39340 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
39341 util/grub-probe.c_DEPENDENCIES.
39342 * conf/powerpc-ieee1275.rmk: Likewise.
39344 2007-08-28 Robert Millan <rmh@aybabtu.com>
39346 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
39347 to tell grub-mkdevicemap how to name devices.
39348 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
39351 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
39352 util/i386/get_disk_name.c.
39353 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
39354 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
39355 util/ieee1275/get_disk_name.c.
39357 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
39359 * DISTLIST: Add util/i386/get_disk_name.c and
39360 util/ieee1275/get_disk_name.c.
39362 * util/grub-mkdevicemap.c: Replace device naming logic with
39363 grub_util_get_disk_name() calls.
39365 2007-08-20 Robert Millan <rmh@aybabtu.com>
39367 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
39368 (so that it works for both plural and singular quantities).
39370 2007-08-05 Robert Millan <rmh@aybabtu.com>
39372 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
39373 so that [xz] isn't taken into account when determining order.
39375 2007-08-02 Marco Gerards <marco@gnu.org>
39377 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
39378 `include/multiboot2.h', `include/grub/elfload.h',
39379 `include/multiboot.h', `include/grub/multiboot.h',
39380 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
39381 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
39382 `kern/elf.c', `loader/multiboot_loader.c',
39383 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
39384 `loader/i386/pc/multiboot2.c',
39385 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
39386 `util/i386/pc/grub-mkrescue.in'. Remove
39387 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
39388 `include/grub/i386/pc/util/biosdisk.h' and
39389 `include/grub/powerpc/ieee1275/multiboot.h'.
39391 2007-08-02 Bean <bean123ch@gmail.com>
39393 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
39394 (ntfs_mod_SOURCES): New variable.
39395 (ntfs_mod_CFLAGS): Likewise.
39396 (ntfs_mod_LDFLAGS): Likewise.
39398 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
39399 (grub_probe_SOURCES): Likewise.
39400 (grub_emu_SOURCES): Likewise.
39402 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39403 (grub_emu_SOURCES): Likewise.
39405 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39406 (grub_emu_SOURCES): Likewise.
39408 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
39410 * fs/ntfs.c: New file.
39412 2007-08-02 Bean <bean123ch@gmail.com>
39414 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
39416 * file.h (grub_file): Likewise.
39418 * fshelp.h (grub_fshelp_read_file): Likewise.
39420 * util/i386/pc/grub-setup.c (setup): Likewise.
39421 (save_first_sector): Likewise.
39422 (save_blocklists): Likewise.
39424 * fs/affs.c (grub_affs_read_file): Likewise.
39426 * fs/ext2.c (grub_ext2_read_file): Likewise.
39428 * fs/fat.c (grub_fat_read_data): Likewise.
39430 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
39432 * fs/hfs.c (grub_hfs_read_file): Likewise.
39434 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
39436 * fs/jfs.c (grub_jfs_read_file): Likewise.
39438 * fs/minix.c (grub_minix_read_file): Likewise.
39440 * fs/sfs.c (grub_sfs_read_file): Likewise.
39442 * fs/ufs.c (grub_ufs_read_file): Likewise.
39444 * fs/xfs.c (grub_xfs_read_file): Likewise.
39446 * command/blocklist.c (read_blocklist): Likewise.
39447 (print_blocklist): Likewise.
39449 2007-08-02 Marco Gerards <marco@gnu.org>
39451 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
39454 * disk/host.c: New file.
39456 * util/hostfs.c: Likewise.
39458 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
39459 return `GRUB_ERR_BAD_FS'.
39460 * fs/sfs.c (grub_sfs_mount): Likewise.
39461 * fs/xfs.c (grub_xfs_mount): Likewise.
39463 * include/grub/disk.h (enum grub_disk_dev_id): Add
39464 `GRUB_DISK_DEVICE_HOST_ID'.
39466 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
39468 2007-07-24 Jerone Young <jerone@gmail.com>
39470 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
39471 modules for compilation.
39472 * conf/powerpc-ieee1275.rmk: Likewise.
39474 * include/multiboot.h: Move multiboot definitions to one file. Rename
39475 many definitions to not get grub specific.
39476 * include/multiboot2.h: Create header with multiboot 2 definitions.
39477 * include/grub/multiboot.h: Header for grub specific function
39478 prototypes and definitions.
39479 * include/grub/multiboot2.h: Likewise.
39480 * include/grub/multiboot_loader.h: Likewise.
39481 * include/grub/i386/pc/multiboot.h: Removed.
39482 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
39484 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
39485 and 2 to allow for one multiboot and module commands.
39486 * loader/multiboot2.c: Add multiboot2 functionality.
39487 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
39488 and definition names.
39489 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
39491 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
39492 ieee1275 specific multiboot2 code.
39494 * kern/i386/pc/startup.S: Change headers and definition names for
39495 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
39497 2007-07-22 Robert Millan <rmh@aybabtu.com>
39499 * geninitheader.sh: Process file specified in first parameter rather
39500 than hardcoding grub_modules_init.lst.
39501 * geninit.sh: Likewise. Also, construct header name dynamically rather
39502 than hardcoding grub_modules_init.h.
39504 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
39505 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
39506 grub_probe_init.[ch] and grub_setup_init.[ch].
39508 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
39509 grub_modules_init.h with grub_emu_init.h.
39510 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
39511 grub_probe_init.[ch] files.
39512 * conf/i386-efi.rmk: Likewise.
39513 * conf/i386-pc.rmk: Likewise.
39514 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
39515 grub_setup_init.[ch] files.
39517 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
39518 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
39519 to initialize modules rather than a list of hardcoded functions.
39520 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
39521 grub_init_all() to initialize modules rather than a list of hardcoded
39524 2007-07-22 Robert Millan <rmh@aybabtu.com>
39526 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
39527 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
39529 2007-07-22 Robert Millan <rmh@aybabtu.com>
39531 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39532 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
39533 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
39534 flag when running on SmartFirmware.
39535 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
39536 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
39539 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
39540 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
39541 rather than decreasing it.
39543 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
39544 there's not enough space to do it, fail in the same way as when it
39545 can't be done because there are no partitions.
39547 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
39548 when nvsetenv failed.
39550 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
39552 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
39553 because this rule is automatically generated.
39554 (grub-mkrescue): Removed for the same reason as above.
39556 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
39558 Migrate to GNU General Public License Version 3.
39560 * COPYING: Replaced with the plain text version of GPLv3.
39562 * config.guess: Updated from gnulib.
39563 * config.sub: Likewise.
39565 * geninit.sh: Output a GPLv3 copyright notice.
39566 * geninitheader.sh: Likewise.
39567 * genmodsrc.sh: Likewise.
39568 * gensymlist.sh.in: Likewise.
39570 * boot/i386/pc/boot.S: Upgraded to GPLv3.
39571 * boot/i386/pc/diskboot.S: Likewise.
39572 * boot/i386/pc/pxeboot.S: Likewise.
39573 * commands/blocklist.c: Likewise.
39574 * commands/boot.c: Likewise.
39575 * commands/cat.c: Likewise.
39576 * commands/cmp.c: Likewise.
39577 * commands/configfile.c: Likewise.
39578 * commands/echo.c: Likewise.
39579 * commands/help.c: Likewise.
39580 * commands/ls.c: Likewise.
39581 * commands/search.c: Likewise.
39582 * commands/terminal.c: Likewise.
39583 * commands/test.c: Likewise.
39584 * commands/videotest.c: Likewise.
39585 * commands/i386/cpuid.c: Likewise.
39586 * commands/i386/pc/halt.c: Likewise.
39587 * commands/i386/pc/play.c: Likewise.
39588 * commands/i386/pc/reboot.c: Likewise.
39589 * commands/i386/pc/vbeinfo.c: Likewise.
39590 * commands/i386/pc/vbetest.c: Likewise.
39591 * commands/ieee1275/halt.c: Likewise.
39592 * commands/ieee1275/reboot.c: Likewise.
39593 * commands/ieee1275/suspend.c: Likewise.
39594 * disk/loopback.c: Likewise.
39595 * disk/lvm.c: Likewise.
39596 * disk/raid.c: Likewise.
39597 * disk/efi/efidisk.c: Likewise.
39598 * disk/i386/pc/biosdisk.c: Likewise.
39599 * disk/ieee1275/ofdisk.c: Likewise.
39600 * font/manager.c: Likewise.
39601 * fs/affs.c: Likewise.
39602 * fs/ext2.c: Likewise.
39603 * fs/fat.c: Likewise.
39604 * fs/fshelp.c: Likewise.
39605 * fs/hfs.c: Likewise.
39606 * fs/hfsplus.c: Likewise.
39607 * fs/iso9660.c: Likewise.
39608 * fs/jfs.c: Likewise.
39609 * fs/minix.c: Likewise.
39610 * fs/sfs.c: Likewise.
39611 * fs/ufs.c: Likewise.
39612 * fs/xfs.c: Likewise.
39613 * hello/hello.c: Likewise.
39614 * include/grub/acorn_filecore.h: Likewise.
39615 * include/grub/arg.h: Likewise.
39616 * include/grub/bitmap.h: Likewise.
39617 * include/grub/boot.h: Likewise.
39618 * include/grub/cache.h: Likewise.
39619 * include/grub/device.h: Likewise.
39620 * include/grub/disk.h: Likewise.
39621 * include/grub/dl.h: Likewise.
39622 * include/grub/elfload.h: Likewise.
39623 * include/grub/env.h: Likewise.
39624 * include/grub/err.h: Likewise.
39625 * include/grub/file.h: Likewise.
39626 * include/grub/font.h: Likewise.
39627 * include/grub/fs.h: Likewise.
39628 * include/grub/fshelp.h: Likewise.
39629 * include/grub/gzio.h: Likewise.
39630 * include/grub/hfs.h: Likewise.
39631 * include/grub/kernel.h: Likewise.
39632 * include/grub/loader.h: Likewise.
39633 * include/grub/lvm.h: Likewise.
39634 * include/grub/misc.h: Likewise.
39635 * include/grub/mm.h: Likewise.
39636 * include/grub/net.h: Likewise.
39637 * include/grub/normal.h: Likewise.
39638 * include/grub/parser.h: Likewise.
39639 * include/grub/partition.h: Likewise.
39640 * include/grub/pc_partition.h: Likewise.
39641 * include/grub/raid.h: Likewise.
39642 * include/grub/rescue.h: Likewise.
39643 * include/grub/script.h: Likewise.
39644 * include/grub/setjmp.h: Likewise.
39645 * include/grub/symbol.h: Likewise.
39646 * include/grub/term.h: Likewise.
39647 * include/grub/terminfo.h: Likewise.
39648 * include/grub/tparm.h: Likewise.
39649 * include/grub/types.h: Likewise.
39650 * include/grub/video.h: Likewise.
39651 * include/grub/efi/api.h: Likewise.
39652 * include/grub/efi/chainloader.h: Likewise.
39653 * include/grub/efi/console.h: Likewise.
39654 * include/grub/efi/console_control.h: Likewise.
39655 * include/grub/efi/disk.h: Likewise.
39656 * include/grub/efi/efi.h: Likewise.
39657 * include/grub/efi/pe32.h: Likewise.
39658 * include/grub/efi/time.h: Likewise.
39659 * include/grub/i386/linux.h: Likewise.
39660 * include/grub/i386/setjmp.h: Likewise.
39661 * include/grub/i386/types.h: Likewise.
39662 * include/grub/i386/efi/kernel.h: Likewise.
39663 * include/grub/i386/efi/loader.h: Likewise.
39664 * include/grub/i386/efi/time.h: Likewise.
39665 * include/grub/i386/pc/biosdisk.h: Likewise.
39666 * include/grub/i386/pc/boot.h: Likewise.
39667 * include/grub/i386/pc/chainloader.h: Likewise.
39668 * include/grub/i386/pc/console.h: Likewise.
39669 * include/grub/i386/pc/init.h: Likewise.
39670 * include/grub/i386/pc/kernel.h: Likewise.
39671 * include/grub/i386/pc/loader.h: Likewise.
39672 * include/grub/i386/pc/memory.h: Likewise.
39673 * include/grub/i386/pc/multiboot.h: Likewise.
39674 * include/grub/i386/pc/serial.h: Likewise.
39675 * include/grub/i386/pc/time.h: Likewise.
39676 * include/grub/i386/pc/vbe.h: Likewise.
39677 * include/grub/i386/pc/vbeblit.h: Likewise.
39678 * include/grub/i386/pc/vbefill.h: Likewise.
39679 * include/grub/i386/pc/vbeutil.h: Likewise.
39680 * include/grub/i386/pc/vga.h: Likewise.
39681 * include/grub/ieee1275/ieee1275.h: Likewise.
39682 * include/grub/ieee1275/ofdisk.h: Likewise.
39683 * include/grub/powerpc/libgcc.h: Likewise.
39684 * include/grub/powerpc/setjmp.h: Likewise.
39685 * include/grub/powerpc/types.h: Likewise.
39686 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
39687 * include/grub/powerpc/ieee1275/console.h: Likewise.
39688 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
39689 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
39690 * include/grub/powerpc/ieee1275/loader.h: Likewise.
39691 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
39692 * include/grub/powerpc/ieee1275/time.h: Likewise.
39693 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
39694 * include/grub/sparc64/libgcc.h: Likewise.
39695 * include/grub/sparc64/setjmp.h: Likewise.
39696 * include/grub/sparc64/types.h: Likewise.
39697 * include/grub/sparc64/ieee1275/console.h: Likewise.
39698 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
39699 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
39700 * include/grub/sparc64/ieee1275/time.h: Likewise.
39701 * include/grub/util/biosdisk.h: Likewise.
39702 * include/grub/util/getroot.h: Likewise.
39703 * include/grub/util/lvm.h: Likewise.
39704 * include/grub/util/misc.h: Likewise.
39705 * include/grub/util/raid.h: Likewise.
39706 * include/grub/util/resolve.h: Likewise.
39707 * io/gzio.c: Likewise.
39708 * kern/device.c: Likewise.
39709 * kern/disk.c: Likewise.
39710 * kern/dl.c: Likewise.
39711 * kern/elf.c: Likewise.
39712 * kern/env.c: Likewise.
39713 * kern/err.c: Likewise.
39714 * kern/file.c: Likewise.
39715 * kern/fs.c: Likewise.
39716 * kern/loader.c: Likewise.
39717 * kern/main.c: Likewise.
39718 * kern/misc.c: Likewise.
39719 * kern/mm.c: Likewise.
39720 * kern/parser.c: Likewise.
39721 * kern/partition.c: Likewise.
39722 * kern/rescue.c: Likewise.
39723 * kern/term.c: Likewise.
39724 * kern/efi/efi.c: Likewise.
39725 * kern/efi/init.c: Likewise.
39726 * kern/efi/mm.c: Likewise.
39727 * kern/i386/dl.c: Likewise.
39728 * kern/i386/efi/init.c: Likewise.
39729 * kern/i386/efi/startup.S: Likewise.
39730 * kern/i386/pc/init.c: Likewise.
39731 * kern/i386/pc/lzo1x.S: Likewise.
39732 * kern/i386/pc/startup.S: Likewise.
39733 * kern/ieee1275/ieee1275.c: Likewise.
39734 * kern/powerpc/cache.S: Likewise.
39735 * kern/powerpc/dl.c: Likewise.
39736 * kern/powerpc/ieee1275/cmain.c: Likewise.
39737 * kern/powerpc/ieee1275/crt0.S: Likewise.
39738 * kern/powerpc/ieee1275/init.c: Likewise.
39739 * kern/powerpc/ieee1275/openfw.c: Likewise.
39740 * kern/sparc64/cache.S: Likewise.
39741 * kern/sparc64/dl.c: Likewise.
39742 * kern/sparc64/ieee1275/init.c: Likewise.
39743 * kern/sparc64/ieee1275/openfw.c: Likewise.
39744 * loader/efi/chainloader.c: Likewise.
39745 * loader/efi/chainloader_normal.c: Likewise.
39746 * loader/i386/efi/linux.c: Likewise.
39747 * loader/i386/efi/linux_normal.c: Likewise.
39748 * loader/i386/pc/chainloader.c: Likewise.
39749 * loader/i386/pc/chainloader_normal.c: Likewise.
39750 * loader/i386/pc/linux.c: Likewise.
39751 * loader/i386/pc/linux_normal.c: Likewise.
39752 * loader/i386/pc/multiboot.c: Likewise.
39753 * loader/i386/pc/multiboot_normal.c: Likewise.
39754 * loader/powerpc/ieee1275/linux.c: Likewise.
39755 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39756 * normal/arg.c: Likewise.
39757 * normal/cmdline.c: Likewise.
39758 * normal/command.c: Likewise.
39759 * normal/completion.c: Likewise.
39760 * normal/execute.c: Likewise.
39761 * normal/function.c: Likewise.
39762 * normal/lexer.c: Likewise.
39763 * normal/main.c: Likewise.
39764 * normal/menu.c: Likewise.
39765 * normal/menu_entry.c: Likewise.
39766 * normal/misc.c: Likewise.
39767 * normal/parser.y: Likewise.
39768 * normal/script.c: Likewise.
39769 * normal/i386/setjmp.S: Likewise.
39770 * normal/powerpc/setjmp.S: Likewise.
39771 * normal/sparc64/setjmp.S: Likewise.
39772 * partmap/acorn.c: Likewise.
39773 * partmap/amiga.c: Likewise.
39774 * partmap/apple.c: Likewise.
39775 * partmap/gpt.c: Likewise.
39776 * partmap/pc.c: Likewise.
39777 * partmap/sun.c: Likewise.
39778 * term/gfxterm.c: Likewise.
39779 * term/terminfo.c: Likewise.
39780 * term/efi/console.c: Likewise.
39781 * term/i386/pc/console.c: Likewise.
39782 * term/i386/pc/serial.c: Likewise.
39783 * term/i386/pc/vesafb.c: Likewise.
39784 * term/i386/pc/vga.c: Likewise.
39785 * term/ieee1275/ofconsole.c: Likewise.
39786 * util/biosdisk.c: Likewise.
39787 * util/console.c: Likewise.
39788 * util/genmoddep.c: Likewise.
39789 * util/getroot.c: Likewise.
39790 * util/grub-emu.c: Likewise.
39791 * util/grub-mkdevicemap.c: Likewise.
39792 * util/grub-probe.c: Likewise.
39793 * util/lvm.c: Likewise.
39794 * util/misc.c: Likewise.
39795 * util/raid.c: Likewise.
39796 * util/resolve.c: Likewise.
39797 * util/update-grub.in: Likewise.
39798 * util/update-grub_lib.in: Likewise.
39799 * util/grub.d/00_header.in: Likewise.
39800 * util/grub.d/10_hurd.in: Likewise.
39801 * util/grub.d/10_linux.in: Likewise.
39802 * util/i386/efi/grub-install.in: Likewise.
39803 * util/i386/efi/grub-mkimage.c: Likewise.
39804 * util/i386/pc/grub-install.in: Likewise.
39805 * util/i386/pc/grub-mkimage.c: Likewise.
39806 * util/i386/pc/grub-mkrescue.in: Likewise.
39807 * util/i386/pc/grub-setup.c: Likewise.
39808 * util/i386/pc/misc.c: Likewise.
39809 * util/powerpc/ieee1275/grub-install.in: Likewise.
39810 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
39811 * util/powerpc/ieee1275/misc.c: Likewise.
39812 * video/bitmap.c: Likewise.
39813 * video/video.c: Likewise.
39814 * video/i386/pc/vbe.c: Likewise.
39815 * video/i386/pc/vbeblit.c: Likewise.
39816 * video/i386/pc/vbefill.c: Likewise.
39817 * video/i386/pc/vbeutil.c: Likewise.
39818 * video/readers/tga.c: Likewise.
39820 2007-07-02 Robert Millan <rmh@aybabtu.com>
39822 * conf/i386-efi.rmk: Replace obsolete reference to
39823 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
39824 with util/getroot.c.
39825 * conf/powerpc-ieee1275.rmk: Likewise.
39826 * conf/sparc64-ieee1275.rmk: Likewise.
39828 * util/grub-emu.c (main): Fix unchecked pointer handling.
39830 2007-07-02 Robert Millan <rmh@aybabtu.com>
39832 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
39833 invocation to fail, in order to support partition-less media.
39835 * util/i386/pc/grub-install.in: Likewise.
39837 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
39838 which fs or partmap modules are needed (akin to its sister scripts).
39840 Also use grub-probe to get rid of unportable /proc/mounts check.
39842 Print the same informational message that the other scripts do, before
39845 2007-06-23 Robert Millan <rmh@aybabtu.com>
39847 * util/update-grub_lib.in (font_path): New function. Determine whether
39848 a font file can be found and, if so, echo the GRUB path to it.
39850 * util/update-grub.in: Handle multiple terminals depending on user
39851 input, platform availability and font file presence. Propagate
39852 variables of our findings to /etc/grub.d/ children.
39854 * util/grub.d/00_header.in: Handle multiple terminals, based on
39855 environment setup by update-grub.
39857 2007-06-23 Robert Millan <rmh@aybabtu.com>
39859 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
39861 2007-06-21 Robert Millan <rmh@aybabtu.com>
39863 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
39864 indicate end of data section in kernel image.
39865 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
39866 GRUB_KERNEL_MACHINE_DATA_END.
39868 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
39870 * kern/i386/efi/startup.S: Likewise.
39872 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
39873 during image generation. Implement --prefix option to override this
39875 * util/i386/efi/grub-mkimage.c: Likewise.
39877 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
39878 code to make path relative to its root into a separate function.
39880 * util/i386/pc/grub-install.in: Use newly provided
39881 make_system_path_relative_to_its_root() to convert ${grubdir}, then
39882 pass the result to grub-install --prefix.
39884 2007-06-13 Robert Millan <rmh@aybabtu.com>
39886 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
39887 DEFAULT_DEVICE_MAP.
39888 * util/grub-emu.c: Use above definitions from misc.h instead of
39890 * util/grub-mkdevicemap.c: Likewise.
39891 * util/i386/pc/grub-setup.c: Likewise.
39892 * util/grub-probe.c: Likewise.
39893 (probe): Abort with grub_util_error() when either
39894 grub_guess_root_device or grub_util_get_grub_dev fails.
39896 2007-06-12 Robert Millan <rmh@aybabtu.com>
39898 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
39899 "pager" assignment.
39900 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
39902 * util/grub-probe.c (probe): Likewise for "drive_name".
39904 2007-06-11 Robert Millan <rmh@aybabtu.com>
39906 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
39907 not just the cdrom one.
39909 2007-06-11 Robert Millan <rmh@aybabtu.com>
39911 * util/i386/pc/grub-mkrescue.in: Add "set -e".
39912 Add --pkglibdir=DIR option to override pkglibdir.
39913 Mention --image-type=TYPE in help output.
39914 Fix --grub-mkimage (it was a no-op).
39915 Abort gracefully when no parameter is given.
39917 2007-06-11 Robert Millan <rmh@aybabtu.com>
39919 * util/i386/pc/grub-mkrescue.in: New file.
39920 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
39921 * Makefile.in: Handle bin_SCRIPTS.
39923 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
39925 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
39926 list of video modes.
39928 2007-06-06 Robert Millan <rmh@aybabtu.com>
39930 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
39931 file doesn't exist, or if it is in a filesystem grub can't read.
39933 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
39934 not abort if GRUB_DRIVE could not be defined. Rearrange generated
39935 header comment to fit in 80 columns when the variables are resolved.
39937 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
39938 could be identified by update-grub. Remove redundant check for
39939 unifont.pff existence (since convert_system_path_to_grub_path now
39942 2007-06-04 Robert Millan <rmh@aybabtu.com>
39944 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
39946 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
39948 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
39950 2007-06-04 Robert Millan <rmh@aybabtu.com>
39952 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
39954 * include/grub/partition.h: Declare grub_apple_partition_map_init and
39955 grub_apple_partition_map_fini.
39958 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
39959 to access >2 TiB disks).
39961 Print disk->total_sectors with %llu instead of %lu, since this
39962 variable is always 64-bit (prevents wrong disk size from being displayed
39963 on either >2 TiB disk or big-endian CPU).
39965 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
39966 into a generic case that supports all (sane) partition maps.
39968 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
39971 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
39972 and grub_apple_partition_map_fini() after that.
39974 2007-06-01 Robert Millan <rmh@aybabtu.com>
39976 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
39978 * util/grub.d/00_header.in: Only enable gfxterm when
39979 convert_system_path_to_grub_path() succeeds.
39981 2007-05-20 Robert Millan <rmh@aybabtu.com>
39983 * util/update-grub_lib.in: New file.
39984 * DISTLIST: Add update-grub_lib.in.
39985 * conf/common.rmk: Generate update-grub_lib and install it in
39987 * Makefile.in: Add install routine for $(lib_DATA).
39989 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
39990 function provided by update-grub_lib to support arbitrary paths of
39992 * util/update-grub.in: Use convert_system_path_to_grub_path() to
39993 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
39995 2007-05-19 Robert Millan <rmh@aybabtu.com>
39997 * commands/i386/cpuid.c: New module.
39998 * DISTLIST: Add it.
39999 * conf/i386-efi.rmk: Enable cpuid.mod.
40000 * conf/i386-pc.rmk: Likewise.
40002 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40004 * kern/disk.c (grub_disk_read): Check return value of
40007 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40009 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40011 * disk/raid.c (grub_raid_open): Likewise.
40013 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40015 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40016 stack instead of on the heap.
40018 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40019 before doing a read on it.
40021 * configure.ac: Only use -fno-stack-protector for the target
40024 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40026 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40027 __attribute_ ((unused)) to mode_type argument.
40029 * util/getroot.c (grub_guess_root_device): Fix #endif.
40031 * kern/misc.c (memcmp): Fix prototype.
40033 * include/grub/partition.h [GRUB_UTIL]
40034 (grub_gpt_partition_map_init): Add prototype.
40035 (grub_gpt_partition_map_fini): Likewise.
40037 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40038 at the right place.
40040 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40041 (grub_fat_read_data): Likewise.
40042 (grub_fat_find_dir): Likewise.
40044 * font/manager.c (find_glyph): Make table a const.
40045 (grub_font_get_glyph): Remove bitmap from if statement.
40047 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40049 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40050 code, first search for device in /dev/mapper, then in /dev.
40051 (grub_util_get_grub_dev): New function.
40052 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
40054 * util/grub-probe.c (probe): Remove check for RAID, call
40055 grub_util_get_grub_dev() instead of
40056 grub_util_biosdisk_get_grub_dev().
40057 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
40058 grub_util_biosdisk_get_grub_dev().
40059 * util/i386/pc/grub-setup.c (main): Likewise.
40061 2007-05-16 Robert Millan <rmh@aybabtu.com>
40063 * DISTLIST: Update for the latest changes.
40064 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
40065 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
40066 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
40067 grub/util/biosdisk.h.
40068 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
40069 grub/util/biosdisk.h.
40071 2007-05-16 Robert Millan <rmh@aybabtu.com>
40073 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
40075 2007-05-16 Robert Millan <rmh@aybabtu.com>
40077 * util/i386/efi/grub-install.in: New.
40078 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
40079 newly added grub-install.
40080 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
40082 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
40083 grub/util/biosdisk.h.
40084 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
40085 grub/util/biosdisk.h.
40087 2007-05-16 Robert Millan <rmh@aybabtu.com>
40089 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
40090 * include/grub/util/biosdisk.h: ... here.
40091 * util/i386/pc/biosdisk.c: Moved to ...
40092 * util/biosdisk.c: ... here.
40093 * util/i386/pc/getroot.c: Moved to ...
40094 * util/getroot.c: ... here.
40095 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
40096 * util/grub-mkdevicemap.c: ... here.
40097 * util/i386/pc/grub-probe.c: Moved to ...
40098 * util/grub-probe.c: ... here.
40100 2007-05-15 Robert Millan <rmh@aybabtu.com>
40102 * util/update-grub.in: Remove duplicated line in grub.cfg header
40105 2007-05-13 Robert Millan <rmh@aybabtu.com>
40107 * util/update-grub.in: Fix a few assumptions about the devices holding
40108 /, /boot and /boot/grub being the same.
40109 * util/grub.d/00_header.in: Likewise.
40110 * util/grub.d/10_hurd.in: Likewise.
40111 * util/grub.d/10_linux.in: Likewise.
40113 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
40114 patterns. Use that to define the `.old' suffix as older than `'.
40116 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
40118 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
40119 the grub.cfg header message.
40121 2007-05-11 Robert Millan <rmh@aybabtu.com>
40123 * util/update-grub.in: Create device.map if it doesn't already exist,
40124 before attempting to run grub-probe.
40125 Check for grub-probe and grub-mkdevicemap with the same code
40126 grub-install is using.
40129 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
40131 * Makefile.in: Add the datarootdir autoconf variable.
40133 2007-05-09 Robert Millan <rmh@aybabtu.com>
40135 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
40136 fail gracefully if dev->disk->partition == NULL.
40138 2007-05-07 Robert Millan <rmh@aybabtu.com>
40140 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
40141 determine partition map module.
40142 * util/i386/pc/grub-install.in: Use this feature to decide which
40143 partition module to load, instead of hardcoding pc and gpt.
40145 2007-05-07 Robert Millan <rmh@aybabtu.com>
40147 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
40148 source directory differs from build directory.
40150 2007-05-05 Robert Millan <rmh@aybabtu.com>
40152 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
40155 2007-05-05 Robert Millan <rmh@aybabtu.com>
40157 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
40159 2007-05-05 Robert Millan <rmh@aybabtu.com>
40161 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
40162 command-line arguments via ${GRUB_CMDLINE_LINUX}.
40164 2007-05-05 Robert Millan <rmh@aybabtu.com>
40166 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
40167 (grub_probe_SOURCES): Likewise.
40168 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
40169 GPT and initialize dos_part and bsd_part accordingly.
40170 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
40172 (main): Activate gpt module for use during partition identification,
40173 and deactivate it afterwards.
40174 * util/i386/pc/grub-install.in: Add gpt module to core.img.
40175 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
40176 partition identification, and deactivate it afterwards.
40178 2007-05-05 Robert Millan <rmh@aybabtu.com>
40180 * term/i386/pc/console.c (grub_console_fini): Call
40181 grub_term_set_current() before grub_term_unregister().
40183 2007-05-04 Robert Millan <rmh@aybabtu.com>
40185 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
40186 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
40187 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
40188 and update-grub_DATA.
40189 * conf/common.rmk: Build and install update-grub components.
40190 * conf/common.mk: Regenerate.
40191 * util/update-grub.in: New. Core of update-grub.
40192 * util/grub.d/00_header.in: New. Generates grub.cfg header.
40193 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
40194 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
40195 * util/grub.d/README: New. Document grub.d directory layout.
40197 2007-05-01 Robert Millan <rmh@aybabtu.com>
40199 * util/grub-emu.c: Move initialization functions
40200 grub_util_biosdisk_init() and grub_init_all() before
40201 grub_util_biosdisk_get_grub_dev(), which relies on them.
40203 2007-04-19 Robert Millan <rmh@aybabtu.com>
40205 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
40208 2007-04-18 Jerone Young <jerone@gmail.com>
40210 * kernel/elf.c: Add missing parenthesis for conditional statement
40213 2007-04-10 Jerone Young <jerone@gmail.com>
40215 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
40216 continue on and look for device node with real device name.
40218 2007-04-10 Jerone Young <jerone@gmail.com>
40220 * configure.ac: Add argument for autoconf to use transformation
40222 * Makefile.in: Add autoconf package transformation code.
40223 * util/i386/pc/grub-install.in: Likewise.
40224 * util/powerpc/ieee1275/grub-install.in: Likewise.
40226 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40228 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
40229 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
40230 (EXT2_REVISION): Likewise.
40231 (EXT2_INODE_SIZE): Likewise.
40232 (struct grub_ext2_block_group): Added a missing member
40234 (grub_ext2_read_inode): Divide by the inode size in a superblock
40235 instead of 128 to obtain INODES_PER_BLOCK.
40236 Use the macro EXT2_INODE_SIZE instead of directly using
40237 SBLOCK->INODE_SIZE.
40239 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40241 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
40242 superblock instead of the structure size to compute an
40243 offset. This fixes the problem that GRUB could not read a
40244 filesystem when inode size is different from 128-byte.
40246 2007-03-05 Marco Gerards <marco@gnu.org>
40248 * normal/main.c (read_config_file): When "menu" is not set, create
40249 an initial context.
40251 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40253 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
40254 (HEAP_LIMIT): New macro.
40255 (grub_claim_heap): Claim memory up to `heaplimit'.
40257 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
40259 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
40260 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
40261 (_start): Likewise.
40262 (grub_arch_modules_addr): Return address after `_end'.
40263 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
40264 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
40265 (add_segments): Calculate `_end' from phdr size and location.
40266 (ALIGN_UP): Moved to ...
40267 * include/grub/misc.h: here.
40268 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40270 (GRUB_IEEE1275_MODULE_BASE): Removed.
40272 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40274 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
40277 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40279 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
40281 (grub_elf64_load_hook_t): Likewise.
40282 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
40285 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
40287 * kern/mm.c: Update copyright.
40288 (grub_mm_debug): Correct syntax error.
40289 (grub_mm_dump_free): New function.
40290 (grub_debug_free): Call `grub_free'.
40291 * include/grub/mm.h: Update copyright.
40292 (grub_mm_dump_free): Add declaration.
40294 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40296 * include/grub/ieee1275/ieee1275.h: Update copyright.
40297 * kern/powerpc/ieee1275/init.c: Likewise.
40298 * kern/powerpc/ieee1275/openfw.c: Likewise.
40300 * loader/powerpc/ieee1275/linux.c: Likewise.
40301 * include/grub/elfload.h: Likewise.
40302 * kern/elf.c: Likewise.
40303 (grub_elf32_load): Pass `base' and `size' parameters. Update all
40305 (grub_elf64_load): Likewise.
40306 (grub_elf32_load_segment): Move to a nested function.
40307 (grub_elf64_load_segment): Likewise.
40309 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
40311 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
40313 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
40314 (grub_heap_len): Likewise.
40315 (HEAP_SIZE): New macro.
40316 (grub_claim_heap): New function.
40317 (grub_machine_init): Don't claim heap directly. Call
40319 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
40320 (grub_available_iterate): New function.
40322 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
40324 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
40325 * configure.ac: Use it for testing the HOST and TARGET compilers.
40327 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
40329 * Makefile.in (enable_grub_emu): New variable.
40330 * configure.ac (--enable-grub-emu): New option.
40331 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
40332 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
40333 * conf/i386-pc.rmk: Likewise.
40334 * conf/powerpc-ieee1275.rmk: Likewise.
40335 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
40337 2006-12-12 Marco Gerards <marco@gnu.org>
40339 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
40341 * kern/env.c (grub_env_unset): Don't free the member `value' when
40342 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
40345 * normal/main.c (current_menu): Removed.
40346 (free_menu): Unset the `menu' environment variable.
40347 (grub_normal_menu_addentry): Make use of the environment variable
40348 `menu', instead of using the global `current_menu'. Allocate
40349 memory for the sourcecode of this entry.
40350 (read_config_file): New argument `nested', changed all callers.
40351 Only in the case of a new context, initialize a new menu. Set the
40352 `menu' environment variable.
40353 (grub_normal_execute): Don't set and unset the environment
40354 variable `menu' here anymore. Only free the menu when leaving the
40357 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
40360 2006-12-11 Marco Gerards <marco@gnu.org>
40362 * normal/menu_entry.c (run): Fix off by one bug so the last line
40363 is executed. Move the loader check to outside the loop.
40365 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
40367 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
40369 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
40371 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
40372 the number of sectors. Reported by Andrey Shuvikov
40373 <mr_hyro@yahoo.com>.
40375 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
40377 * kern/disk.c (grub_disk_read): When there is a read error, always
40378 try to read only the necessary data.
40380 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
40382 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
40384 [GRUB_UTIL] (grub_raid_fini): Likewise.
40385 [GRUB_UTIL] (grub_lvm_init): Likewise.
40386 [GRUB_UTIL] (grub_lvm_fini): Likewise.
40387 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
40388 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
40389 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
40390 and grub_raid_fini().
40392 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40394 * include/grub/types.h (__unused): Rename to UNUSED.
40395 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
40396 (grub_elf64_size): Likewise.
40398 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40400 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
40401 grub_error_push and grub_error_pop in the error-handling path.
40402 (grub_elf32_load_segment): Only call grub_file_read with non-zero
40405 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40407 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
40408 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40409 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40410 (kernel_elf_SOURCES): Likewise.
40411 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
40412 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
40413 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40414 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40415 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
40416 (elf_mod_SOURCES): New variable.
40417 (elf_mod_CFLAGS): Likewise.
40418 (elf_mod_LDFLAGS): Likewise.
40419 * include/grub/types.h (__unused): New macro.
40420 * include/grub/elfload.h: New file.
40421 * kern/elf.c: Likewise.
40422 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
40423 (ELF32_LOADMASK): New macro.
40424 (ELF64_LOADMASK): Likewise.
40425 (vmlinux): Removed.
40426 (grub_linux_load32): New function.
40427 (grub_linux_load64): Likewise.
40428 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
40429 Use grub_elf_t instead of grub_file_t.
40431 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
40433 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
40434 `catch_result' to struct set_color_args.
40436 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
40438 * normal/menu.c: Include grub/script.h.
40439 * normal/menu_entry.c: Likewise.
40440 * include/grub/normal.h: Do not include grub/script.h.
40442 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40444 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
40446 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40448 * kern/disk.c (grub_disk_open): Print debug messages when opening a
40450 (grub_disk_close): Print debug messages when closing a disk.
40451 (grub_disk_read): Print debug messages when disk read fails.
40452 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
40454 * kern/partition.c: Include misc.h.
40455 (grub_partition_iterate): Print debug messages when detecting
40458 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40460 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
40462 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
40464 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
40466 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40467 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
40469 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
40471 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
40472 instead of sizeof(lv). Patch by Michael Guntsche.
40474 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
40476 * disk/lvm.c: Rename VGS to VG_LIST.
40477 (grub_lvm_iterate): Change VGS->LV to VG-LV.
40478 (grub_lvm_open): Likewise.
40479 Thanks to Michael Guntsche for finding this bug.
40481 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40483 * configure.ac (AC_INIT): Bumped to 1.95.
40485 2006-10-14 Robert Millan <rmh@aybabtu.com>
40487 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
40488 with "/dev/.static/dev/md".
40490 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40492 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
40493 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
40494 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
40495 DRIVE_NAME are always freed.
40497 * util/i386/pc/biosdisk.c (make_device_name): Add one into
40498 DOS_PART, as a DOS partition is counted from one instead of zero
40499 now. Reported by Robert Millan.
40501 2006-10-14 Robert Millan <rmh@aybabtu.com>
40503 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
40504 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
40505 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
40506 string returned by grub_guess_root_device.
40507 * util/i386/pc/grub-setup.c: Likewise.
40508 * util/i386/pc/grub-probefs.c: Likewise.
40510 * util/i386/pc/grub-probefs.c: Rename to ...
40511 * util/i386/pc/grub-probe.c: ... this.
40512 * DISTLIST: Remove grub-probefs, add grub-probe.
40513 * conf/i386-efi.rmk: Likewise.
40514 * conf/i386-pc.rmk: Likewise.
40515 * util/i386/pc/grub-install.in: Likewise.
40517 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
40518 choose which information we want to print.
40520 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40522 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
40523 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
40524 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
40525 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
40526 video/readers/tga.c and video/i386/pc/vbeutil.c.
40528 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
40530 Added support for RAID and LVM.
40532 * disk/lvm.c: New file.
40533 * disk/raid.c: Likewise.
40534 * include/grub/lvm.h: Likewise.
40535 * include/grub/raid.h: Likewise.
40536 * include/grub/util/lvm.h: Likewise.
40537 * include/grub/util/raid.h: Likewise.
40538 * util/lvm.c: Likewise.
40539 * util/raid.c: Likewise.
40541 * include/grub/disk.h (grub_disk_dev_id): Add
40542 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
40543 (grub_disk_get_size): New prototype.
40544 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
40545 returns a partition.
40546 (grub_disk_get_size): New function.
40548 * kern/i386/pc/init.c (make_install_device): Copy the prefix
40549 verbatim if grub_install_dos_part is -2.
40551 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
40554 * util/i386/pc/grub-setup.c (setup): New argument
40555 MUST_EMBED. Force embedding of GRUB when the argument is
40556 true. Close FILE before returning.
40557 (main): Add support for RAID and LVM.
40559 * conf/common.rmk: Add RAID and LVM modules.
40560 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
40562 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
40564 * kern/misc.c (grub_strstr): New function.
40565 * include/grub/misc.h (grub_strstr): New prototype.
40567 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
40569 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
40571 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
40573 * kern/misc.c (grub_strtoull): Guess the base only if not
40576 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40578 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
40581 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40583 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
40585 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
40586 Remove `flags' argument. All callers changed.
40587 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
40588 (IEEE1275_IHANDLE_INVALID): New variable.
40589 (IEEE1275_CELL_INVALID): New variable.
40590 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
40591 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
40592 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
40593 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
40594 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
40595 codes from Open Firmware. All callers updated.
40596 (grub_ieee1275_next_property): Directly return Open Firmware return
40598 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
40599 Standardize error checking from `grub_ieee1275_get_property'.
40600 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
40601 `devalias' to `aliases'. Correct comments. Consolidate error paths.
40603 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40605 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
40606 `instance_to_package_args' to `instance_to_path_args'.
40608 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
40609 `grub_ieee1275_chosen'.
40611 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
40612 `grub_ieee1275_interpret'.
40614 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
40616 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
40618 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
40620 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
40621 (__cmpdi): Likewise.
40623 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
40624 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
40627 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
40629 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
40630 to type `grub_ssize_t'.
40631 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
40633 2006-09-22 Marco Gerards <marco@gnu.org>
40635 * normal/script.c (grub_script_create_cmdmenu): Skip leading
40638 2006-09-22 Marco Gerards <marco@gnu.org>
40640 * commands/echo.c: New file.
40642 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
40644 * conf/common.rmk (echo_mod_SOURCES): New variable.
40645 (echo_mod_CFLAGS): Likewise.
40646 (echo_mod_LDFLAGS): Likewise.
40648 2006-09-22 Marco Gerards <marco@gnu.org>
40650 * normal/main.c (get_line): Malloc memory instead of using
40651 preallocated memory. Removed the arguments `cmdline' and
40652 `max_len'. Updated all callers.
40654 2006-09-22 Marco Gerards <marco@gnu.org>
40656 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
40657 (normal_mod_DEPENDENCIES): Likewise.
40659 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
40660 (normal_mod_DEPENDENCIES): Likewise.
40662 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
40664 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
40666 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
40668 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
40669 (normal_mod_DEPENDENCIES): Likewise.
40670 * conf/i386-pc.mk: Regenerate.
40671 * conf/i386-efi.mk: Likewise
40672 * conf/common.mk: Likewise.
40673 * conf/powerpc-ieee1275.mk: Likewise.
40674 * conf/sparc64-ieee1275.mk: Likewise.
40676 2006-09-22 Robert Millan <rmh@aybabtu.com>
40678 Sync with i386 version.
40679 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
40680 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
40682 2006-09-21 Robert Millan <rmh@aybabtu.com>
40684 Import from GRUB Legacy (lib/device.c):
40685 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
40686 (init_device_map) [__linux__]: Add support for I2O devices.
40688 2006-09-14 Marco Gerards <marco@gnu.org>
40690 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
40693 2006-09-14 Robert Millan <rmh@aybabtu.com>
40695 * util/i386/pc/grub-install.in: Skip menu.lst when removing
40698 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
40700 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
40701 before adding it to device.map.
40703 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
40705 * genmk.rb: Let GCC generate dependencies the first time it
40706 compiles a file; using the -MD option.
40707 * conf/common.mk: Regenerate.
40708 * conf/i386-pc.mk: Likewise.
40709 * conf/i386-efi.mk: Likewise.
40710 * conf/powerpc-ieee1275.mk: Likewise.
40711 * conf/sparc64-ieee1275.mk: Likewise.
40713 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
40715 Move the prototypes of grub_setjmp and grub_longjmp to
40716 cpu/setjmp.h, so that each architecture may specify different
40719 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
40720 (grub_longjmp): Likewise.
40721 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
40722 (grub_longjmp): Likewise.
40723 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
40724 (grub_longjmp): Likewise.
40726 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
40727 [!GRUB_UTIL] (grub_longjmp): Removed.
40729 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
40731 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
40732 "color!" method does not return any value.
40734 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40736 * include/grub/bitmap.h: New file.
40738 * include/grub/i386/pc/vbeutil.h: Likewise.
40740 * video/bitmap.c: Likewise.
40742 * video/readers/tga.c: Likewise.
40744 * video/i386/pc/vbeutil.c: Likewise.
40746 * commands/videotest.c: Code cleanup and updated to reflect to new
40749 * term/gfxterm.c: Likewise.
40751 * video/video.c: Likewise.
40753 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
40754 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
40755 (bitmap_mod_SOURCES): New entry.
40756 (bitmap_mod_CFLAGS): Likewise.
40757 (bitmap_mod_LDFLAGS): Likewise.
40758 (tga_mod_SOURCES): Likewise.
40759 (tga_mod_CFLAGS): Likewise.
40760 (tga_mod_LDFLAGS): Likewise.
40762 * include/grub/video.h (grub_video_blit_operators): New enum type.
40763 (grub_video_render_target): Changed as forward declaration and moved
40764 actual definition to be video driver specific.
40765 (grub_video_adapter.blit_bitmap): Added blitting operator.
40766 (grub_video_adapter.blit_render_target): Likewise.
40767 (grub_video_blit_bitmap): Likewise.
40768 (grub_video_blit_render_target): Likewise.
40770 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
40771 driver specific render target definition.
40772 (grub_video_vbe_map_rgba): Added driver internal helper.
40773 (grub_video_vbe_unmap_color): Updated to use
40774 grub_video_i386_vbeblit_info.
40775 (grub_video_vbe_get_video_ptr): Likewise.
40777 * include/grub/i386/pc/vbeblit.h
40778 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
40779 grub_video_i386_vbeblit_info.
40780 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
40781 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
40782 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
40783 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
40784 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
40785 (grub_video_i386_vbeblit_index_index): Likewise.
40786 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
40787 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
40788 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
40789 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
40791 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
40794 * video/i386/pc/vbeblit.c: Updated to reflect changes on
40795 include/grub/i386/pc/vbeblit.h.
40797 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
40798 Updated to use grub_video_i386_vbeblit_info.
40799 (grub_video_i386_vbefill_R8G8B8): Likewise.
40800 (grub_video_i386_vbefill_index): Likewise.
40801 (grub_video_i386_vbefill): Added generic filler.
40803 * video/i386/pc/vbefill.c: Updated to reflect changes on
40804 include/grub/i386/pc/vbefill.h.
40806 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
40807 grub_video_i386_vbeblit_info.
40808 (grub_video_vbe_unmap_color): Likewise.
40809 (grub_video_vbe_blit_glyph): Likewise.
40810 (grub_video_vbe_scroll): Likewise.
40811 (grub_video_vbe_draw_pixel): Removed function.
40812 (grub_video_vbe_get_pixel): Likewise.
40813 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
40814 updated code to use it.
40815 (common_blitter): Added common blitter for render target and bitmap.
40816 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
40817 (grub_video_vbe_blit_render_target): Likewise.
40819 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
40821 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
40822 is in text mode if there is no console control protocol instance
40825 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40827 * include/grub/video.h: Code cleanup.
40829 * include/grub/i386/pc/vbe.h: Likewise.
40831 * video/i386/pc/vbe.c: Likewise.
40833 * video/i386/pc/vbeblit.c: Likewise.
40835 * video/i386/pc/vbefill.c: Likewise.
40837 * video/video.c: Likewise. Also added more comments.
40839 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40841 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
40842 (struct grub_biosdisk_dap): Likewise.
40844 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
40845 linkage settings for all functions.
40847 2006-07-12 Marco Gerards <marco@gnu.org>
40849 * configure.ac (--enable-mm-debug): Fix typo.
40851 * genkernsyms.sh.in: Use proper quoting for `CC'.
40853 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
40855 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
40856 (normal_mod_ASFLAGS): Remove "-m32".
40858 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
40860 * util/misc.c: Include config.h.
40861 [!HAVE_MEMALIGN]: Do not include malloc.h.
40862 (grub_memalign): Use posix_memalign, if present. Then, use
40863 memalign, if present. Otherwise, emit an error.
40865 * util/grub-emu.c: Do not include malloc.h.
40867 * include/grub/util/misc.h: Include unistd.h. This is required for
40868 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
40869 D. Eades III <hde@foobar-qux.org>.
40871 * configure.ac (AC_GNU_SOURCE): Added.
40872 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
40875 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
40877 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
40878 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
40880 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
40882 * include/grub/types.h (grub_host_addr_t): Rename to
40883 grub_target_addr_t.
40884 (grub_host_off_t): Rename to grub_target_off_t.
40885 (grub_host_size_t): Rename to grub_target_size_t.
40886 (grub_host_ssize_t): Rename to grub_target_ssize_t.
40887 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
40889 * include/grub/kernel.h (struct grub_module_header): Change type
40890 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
40891 (grub_module_info): Likewise.
40893 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
40895 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
40896 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
40897 Velazquez <jesus.velazquez@gmail.com>.
40899 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
40901 Count partitions from 1 instead of 0 in the string representation
40902 of partitions. Still use 0-based internally.
40904 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
40905 (sun_partition_map_iterate): Use grub_partition_t instead of
40906 struct grub_partition *. Cast DESC->START_CYLINDER to
40907 grub_uint64_t after converting the endian.
40908 (sun_partition_map_probe): Subtract 1 for PARTNUM.
40909 (sun_partition_map_get_name): Add 1 to P->INDEX.
40911 * partmap/pc.c (grub_partition_parse): Subtract 1 for
40913 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
40915 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
40916 zero instead of one.
40917 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
40918 (gpt_partition_map_get_name): Add 1 into P->INDEX.
40920 * partmap/apple.c (apple_partition_map_iterate): Change the type
40921 of POS to unsigned.
40922 (apple_partition_map_probe): Subtract 1 for PARTNUM.
40923 (apple_partition_map_get_name): Add 1 into P->INDEX.
40925 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
40926 of POS to unsigned.
40927 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
40928 calculate the offset of a partition.
40929 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
40930 (amiga_partition_map_get_name): Add 1 into P->INDEX.
40932 * partmap/acorn.c (acorn_partition_map_find): Change the type of
40933 SECTOR to grub_disk_addr_t.
40934 (acorn_partition_map_iterate): Likewise.
40935 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
40936 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
40938 (acorn_partition_map_get_name): Add 1 into P->INDEX.
40940 * kern/i386/pc/init.c (make_install_device): Add 1 into
40941 GRUB_INSTALL_DOS_PART.
40943 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
40946 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
40948 Clean up the code to support 64-bit addressing in disks and
40949 files. This change is not enough for filesystems yet.
40951 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
40952 type of "start" to grub_uint64_t.
40953 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
40954 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
40955 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
40958 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
40959 to grub_disk_addr_t.
40961 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
40964 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40966 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
40969 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
40971 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
40973 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
40975 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
40976 to grub_off_t, to detect an error from grub_file_seek.
40977 (grub_multiboot_load_elf32): Likewise.
40979 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
40980 maximum unsigned long value when an overflow is detected.
40981 (grub_strtoull): New function.
40982 (grub_divmod64): Likewise.
40983 (grub_lltoa): use grub_divmod64.
40985 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
40987 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
40988 the pointer to next character. Use grub_strtoull instead of
40990 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
40991 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
40994 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
40995 return value is signed.
40996 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
40997 test if OFFSET is less than zero, as OFFSET is unsigned now.
40999 * kern/disk.c (struct grub_disk_cache): Change the type of
41000 "sector" to grub_disk_addr_t.
41001 (grub_disk_cache_get_index): Change the type of SECTOR to
41002 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41003 unsigned after shifting.
41004 (grub_disk_cache_invalidate): Change the type of SECTOR to
41006 (grub_disk_cache_unlock): Likewise.
41007 (grub_disk_cache_store): Likewise.
41008 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41009 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41010 grub_disk_addr_t and grub_uint64_t, respectively.
41011 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41012 body, as the value of OFFSET is tweaked by
41013 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41014 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41016 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41017 body, as the value of OFFSET is tweaked by
41018 grub_disk_check_range. Change the types of LEN and N to
41021 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41022 and "saved_offset" to grub_off_t.
41023 (test_header): Cast BUF to char *.
41024 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41026 (grub_gzio_read): Change the types of OFFSET and SIZE to
41027 grub_off_t and grub_size_t, respectively.
41029 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41031 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41032 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41033 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41034 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41035 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41037 * include/grub/types.h (grub_off_t): Unconditionally set to
41039 (grub_disk_addr_t): Changed to grub_uint64_t.
41041 * include/grub/partition.h (struct grub_partition): Change the
41042 types of "start", "len" and "offset" to grub_disk_addr_t,
41043 grub_uint64_t and grub_disk_addr_t, respectively.
41044 (grub_partition_get_start): Return grub_disk_addr_t.
41045 (grub_partition_get_len): Return grub_uint64_t.
41047 * include/grub/misc.h (grub_strtoull): New prototype.
41048 (grub_divmod64): Likewise.
41050 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41051 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
41052 grub_off_t, respectively.
41053 All callers and references changed.
41055 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
41056 grub_size_t in "read".
41057 All callers and references changed.
41059 * include/grub/file.h (struct grub_file): Change the types of
41060 "offset" and "size" to grub_off_t and grub_off_t,
41061 respectively. Change the type of SECTOR to grub_disk_addr_t in
41063 (grub_file_read): Change the type of LEN to grub_size_t.
41064 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
41066 (grub_file_size): Return grub_off_t.
41067 (grub_file_tell): Likewise.
41068 All callers and references changed.
41070 * include/grub/disk.h (struct grub_disk_dev): Change the types of
41071 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
41073 (struct grub_disk): Change the type of "total_sectors" to
41074 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
41076 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
41077 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
41078 (grub_disk_write): Likewise.
41079 All callers and references changed.
41081 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
41082 char * for grub_strncmp to silence gcc.
41083 (grub_iso9660_mount): Likewise.
41084 (grub_iso9660_mount): Likewise.
41085 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
41087 (grub_iso9660_iterate_dir): Likewise.
41088 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
41090 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
41091 LEN to grub_disk_addr_t and grub_size_t, respectively.
41093 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41095 * fs/jfs.c (grub_jfs_read_file): Likewise.
41097 * fs/minix.c (grub_jfs_read_file): Likewise.
41099 * fs/sfs.c (grub_jfs_read_file): Likewise.
41101 * fs/ufs.c (grub_jfs_read_file): Likewise.
41103 * fs/xfs.c (grub_jfs_read_file): Likewise.
41105 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
41106 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
41109 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
41110 BLKNR to -1 instead of returning GRUB_ERRNO.
41111 (grub_ext2_read_file): Change the types of SECTOR and
41112 LEN to grub_disk_addr_t and grub_size_t, respectively.
41114 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
41115 LEN to grub_disk_addr_t and grub_size_t, respectively.
41117 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
41120 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
41121 string. Do not cast SECTOR explicitly.
41123 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
41124 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
41125 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
41126 grub_disk_addr_t and grub_size_t, respectively. If the sector is
41127 over 2TB and LBA mode is not supported, raise an error.
41128 (get_safe_sectors): New function.
41129 (grub_biosdisk_read): Use get_safe_sectors.
41130 (grub_biosdisk_write): Likewise.
41132 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
41133 (grub_efidisk_write): Likewise.
41135 * disk/loopback.c (delete_loopback): Cosmetic changes.
41136 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
41138 (grub_loopback_open): Likewise.
41139 (grub_loopback_read): Likewise. Also, change the type of POS to
41140 grub_off_t, and fix the usage of grub_memset.
41142 * commands/i386/pc/play.c: Include grub/machine/time.h.
41144 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
41147 * commands/configfile.c: Include grub/env.h.
41149 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
41150 GRUB_ERRNO directly instead. Change the type of POS to
41151 grub_off_t. Follow the coding standard.
41153 * commands/blocklist.c: Include grub/partition.h.
41154 (grub_cmd_blocklist): Return an error if the underlying device is
41155 not a disk. Take the starting sector of a partition into account,
41156 if a partition is used.
41158 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
41160 (lba_mode): Support 64-bit addresses.
41161 (chs_mode): Likewise.
41162 (copy_buffer): Adapted to the new offsets of a length field and a
41164 (blocklist_default_start): Allocate 64-bit space.
41166 * boot/i386/pc/boot.S (force_lba): Removed.
41167 (boot_drive): Moved to under KERNEL_SECTOR.
41168 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
41170 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
41172 (lba_mode): Refactored to support a 64-bit address. More size
41174 (setup_sectors): Likewise.
41176 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41178 * DISTLIST: Added include/grub/i386/linux.h. Removed
41179 include/grub/i386/pc/linux.h
41181 * configure.ac (AC_INIT): Bumped to 1.94.
41183 * config.guess: Updated from gnulib.
41184 * config.sub: Likewise.
41185 * install-sh: Likewise.
41186 * mkinstalldirs: Likewise.
41188 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41190 * conf/common.rmk (grub_modules_init.lst): Depended on
41191 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
41194 * genmk.rb (PModule::rule): Reverted the previous change.
41196 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
41198 * conf/common.rmk (grub_modules_init.lst): Depends on
41199 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
41200 that the target does not exist before producing.
41201 (grub_modules_init.h): Remove the target before generating.
41202 (grub_emu_init.c): Likewise.
41204 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
41206 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
41208 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
41209 for the target-specific tests. Make sure that we also have the
41210 up-to-date target variables for those tests.
41212 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41214 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
41215 (PModule::rule): Likewise.
41217 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
41219 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
41220 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
41221 target-specific flags should be prefixed.
41222 (PModule::rule): Likewise.
41224 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
41226 * configure.ac (CMP): Check if cmp is available explicitly.
41228 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
41230 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
41231 (target_cpu): New variable.
41232 (pkglibdir): Use target_cpu instead of host_cpu.
41234 * util/i386/pc/grub-install.in (host_cpu): Removed.
41235 (target_cpu): New variable.
41236 (pkglibdir): Use target_cpu instead of host_cpu.
41238 * util/genmoddep.c: Removed.
41240 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
41241 instead of GRUB_HOST_SIZEOF_VOID_P.
41242 * kern/dl.c: Likewise.
41244 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
41246 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41247 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41248 (GRUB_TARGET_SIZEOF_LONG): ... this.
41249 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41250 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41251 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41253 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41254 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41255 (GRUB_TARGET_SIZEOF_LONG): ... this.
41256 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41257 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41258 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
41260 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
41261 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
41262 (GRUB_TARGET_SIZEOF_LONG): ... this.
41263 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
41264 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
41266 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
41267 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
41268 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
41269 instead of GRUB_HOST_SIZEOF_LONG.
41270 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
41271 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
41272 GRUB_CPU_WORDS_BIGENDIAN.
41273 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
41274 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
41277 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
41278 (genmoddep_SOURCES): Likewise.
41279 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
41280 (genmoddep_SOURCES): Likewise.
41281 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
41282 (genmoddep_SOURCES): Likewise.
41283 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
41285 (genmoddep_SOURCES): Likewise.
41287 * genmoddep.awk: New file.
41289 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
41290 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
41291 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
41292 (PModule::rule): Likewise.
41293 (Program::rule): Likewise.
41294 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
41295 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
41298 * configure.ac: Rewritten intensively to use host and target
41299 instead of build and host, respectively.
41301 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
41302 (host_cpu): Removed.
41303 (target_cpu): New variable.
41304 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
41305 (BUILD_CC): Removed.
41306 (BUILD_CFLAGS): Likewise.
41307 (BUILD_CPPFLAGS): Likewise.
41308 (TARGET_CC): New variable.
41309 (TARGET_CFLAGS): Likewise.
41310 (TARGET_CPPFLAGS): Likewise.
41311 (TARGET_LDFLAGS): Likewise.
41313 (include): Use target_cpu instead of host_cpu.
41314 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
41316 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
41318 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
41320 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
41321 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
41322 field 'false' to 'exec_on_false'.
41323 (grub_script_create_cmdif): Renamed argument names to reflect above
41326 * normal/execute.c (grub_script_execute_cmdif): Likewise.
41328 * normal/script.c (grub_script_create_cmdif): Likewise.
41330 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
41332 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
41334 (grub_hfsplus_btree_recptr): Likewise.
41335 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
41336 FILEBLOCK both to pass a block number and store next block
41338 (grub_hfsplus_read_block): Rewritten heavily to support an extent
41339 overflow file correctly. Specify errors appropriately, because
41340 fshelp expects that GRUB_ERRNO is set when fails. Reuse
41341 grub_hfsplus_btree_recptr to get the pointer to a found key.
41342 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
41345 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
41347 (_linux_mod_SOURCES): New variable.
41348 (_linux_mod_CFLAGS): Likewise.
41349 (_linux_mod_LDFLAGS): Likewise.
41350 (linux_mod_SOURCES): Likewise.
41351 (linux_mod_CFLAGS): Likewise.
41352 (linux_mod_LDFLAGS): Likewise.
41354 * DISTLIST: Added loader/i386/efi/linux.c,
41355 loader/i386/efi/linux_normal.c and
41356 include/grub/i386/efi/loader.h.
41358 * loader/i386/efi/linux.c: New file.
41359 * loader/i386/efi/linux_normal.c: Likewise.
41360 * include/grub/i386/efi/loader.h: Likewise.
41362 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
41364 * commands/blocklist.c: New file.
41366 * DISTLIST: Added commands/blocklist.c.
41368 * term/efi/console.c (grub_console_highlight_color): Use a lighter
41369 color for the background, and a darker color for the foreground.
41370 (grub_console_checkkey): Return READ_KEY.
41371 (grub_console_cls): Set the background to
41372 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
41374 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
41376 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
41377 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
41379 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
41382 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
41383 BG. The spec is wrong again.
41385 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
41387 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
41389 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41390 commands/blocklist.c.
41391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41393 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
41394 (blocklist_mod_SOURCES): New variable.
41395 (blocklist_mod_CFLAGS): Likewise.
41396 (blocklist_mod_LDFLAGS): Likewise.
41398 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
41400 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
41402 (lba_mode): Use %eax more intensively to reduce the code size.
41404 2006-05-20 Marco Gerards <marco@gnu.org>
41406 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
41408 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
41410 (script): Accept leading newlines.
41411 (newlines): New rule to describe 0 or more newlines.
41412 (commands): Accept `command' with trailing newline. Fixed the
41413 order in which arguments were passed to `grub_script_add_cmd'.
41414 Accept commands separated by newlines.
41415 (function): Changed to accept newlines.
41416 (menuentry) Rewritten.
41418 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
41419 front of the list, instead of to the end.
41421 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
41423 * util/i386/pc/grub-install.in (bindir): New variable.
41424 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
41425 Shaver <lbgwjl@gmail.com>.
41427 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
41429 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
41430 grub/machine/linux.h
41431 * loader/i386/pc/linux.c: Likewise.
41433 * include/grub/i386/pc/linux.h: Moved to ...
41434 * include/grub/i386/linux.h: ... here.
41436 * include/grub/i386/linux.h (struct linux_kernel_params): New
41439 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
41441 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
41443 (grub_video_vbe_blit_glyph): Likewise.
41444 (grub_video_vbe_blit_bitmap): Likewise.
41445 (grub_video_vbe_blit_render_target): Likewise.
41447 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
41449 * configure.ac (--with-platform): Properly quote the square
41452 2006-05-08 Marco Gerards <marco@gnu.org>
41454 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
41456 (kernel_elf_HEADERS): ...to this. Updated all users.
41457 (grubof_symlist.c): Renamed from this...
41458 (kernel_elf_symlist.c): ...to this. Updated all users.
41459 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41460 (grubof_SOURCES): Renamed from this...
41461 (kernel_elf_SOURCES): ...to this.
41462 (grubof_HEADERS): Renamed from this...
41463 (kernel_elf_HEADERS): ...to this.
41464 (grubof_CFLAGS): Renamed from this...
41465 (kernel_elf_CFLAGS): ...to this.
41466 (grubof_ASFLAGS): Renamed from this...
41467 (kernel_elf_ASFLAGS): ...to this.
41468 (grubof_LDFLAGS): Renamed from this...
41469 (kernel_elf_LDFLAGS): ...to this.
41471 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
41473 (kernel_elf_HEADERS): ...to this. Updated all users.
41474 (grubof_symlist.c): Renamed from this...
41475 (kernel_elf_symlist.c): ...to this. Updated all users.
41476 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41477 (grubof_SOURCES): Renamed from this...
41478 (kernel_elf_SOURCES): ...to this.
41479 (grubof_HEADERS): Renamed from this...
41480 (kernel_elf_HEADERS): ...to this.
41481 (grubof_CFLAGS): Renamed from this...
41482 (kernel_elf_CFLAGS): ...to this.
41483 (grubof_ASFLAGS): Renamed from this...
41484 (kernel_elf_ASFLAGS): ...to this.
41485 (grubof_LDFLAGS): Renamed from this...
41486 (kernel_elf_LDFLAGS): ...to this.
41488 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
41489 `kernel.elf' instead of `grubof'.
41491 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
41493 Add --with-platform to configure. Use pkglibdir instead of
41494 pkgdatadir. This is reported by Roger Leigh.
41496 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
41497 (host_vendor): Likewise.
41498 (host_os): Likewise.
41499 (pkgdatadir): Likewise.
41500 (platform): New variable.
41501 (pkglibdir): Likewise.
41502 Use PKGLIBDIR instead of PKGDATADIR.
41504 * util/i386/pc/grub-install.in (datadir): Removed.
41505 (host_vendor): Likewise.
41506 (host_os): Likewise.
41507 (pkgdatadir): Likewise.
41508 (platform): New variable.
41509 (pkglibdir): Likewise.
41510 Use PKGLIBDIR instead of PKGDATADIR.
41512 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
41513 instead of GRUB_DATADIR.
41515 * util/i386/pc/grub-mkimage.c (usage): Likewise.
41517 * util/i386/efi/grub-mkimage.c (usage): Likewise.
41520 * configure.ac (--with-platform): New option.
41521 Use PLATFORM instead of HOST_VENDOR to specify a platform.
41523 * Makefile.in: Include a makefile based on PLATFORM instead of
41525 (pkgdatadir): Not appended by the machine type.
41526 (pkglibdir): Appended by the machine type.
41527 (host_vendor): Removed.
41528 (platform): New variable.
41529 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
41530 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
41531 (uninstall): Likewise.
41533 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
41535 Use the environment context in the menu. Remove the commands
41536 "default" and "timeout", and use variables instead.
41538 * normal/menu.c: Include grub/env.h.
41539 (print_entry): Cast TITLE to silence gcc.
41540 (get_timeout): New function.
41541 (set_timeout): Likewise.
41542 (get_entry_number): Likewise.
41543 (run_menu): Use a default entry, a fallback entry and a timeout
41544 in the environment variables "default", "fallback" and
41545 "timeout". Also, tweak the default entry if it is not within the
41546 current menu entries.
41547 (grub_menu_run): Use a fallback entry in the environment variable
41550 * normal/main.c (read_config_file): Do not initialize
41551 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
41553 (grub_normal_execute): Use a data slot to store the menu.
41555 * include/grub/normal.h (struct grub_menu): Removed default_entry,
41556 fallback_entry and timeout.
41557 (struct grub_menu_list): Removed.
41558 (grub_menu_list_t): Likewise.
41559 (struct grub_context): Likewise.
41560 (grub_context_t): Likewise.
41561 (grub_context_get): Likewise.
41562 (grub_context_get_current_menu): Likewise.
41563 (grub_context_push_menu): Likewise.
41564 (grub_context_pop_menu): Likewise.
41565 (grub_default_init): Likewise.
41566 (grub_default_fini): Likewise.
41567 (grub_timeout_init): Likewise.
41568 (grub_timeout_fini): Likewise.
41570 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
41572 (normal_mod_SOURCES): Removed normal/context.c.
41574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
41575 commands/default.c, commands/timeout.c and normal/context.c.
41576 (normal_mod_SOURCES): Removed normal/context.c.
41578 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
41579 commands/timeout.c and normal/context.c.
41580 (normal_mod_SOURCES): Removed normal/context.c.
41582 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
41583 commands/default.c, commands/timeout.c and normal/context.c.
41584 (normal_mod_SOURCES): Removed normal/context.c.
41586 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
41588 (default_mod_SOURCES): Removed.
41589 (default_mod_CFLAGS): Likewise.
41590 (default_mod_LDFLAGS): Likewise.
41591 (timeout_mod_SOURCES): Removed.
41592 (timeout_mod_CFLAGS): Likewise.
41593 (timeout_mod_LDFLAGS): Likewise.
41595 * DISTLIST: Removed commands/default.c, commands/timeout.c and
41598 * commands/default.c: Removed.
41599 * commands/timeout.c: Likewise.
41600 * normal/context.c: Likewise.
41602 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
41604 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
41606 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
41608 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
41609 "next" to "prev" for readability.
41610 (struct grub_env_sorted_var): New struct.
41611 (grub_env_context): Renamed to ...
41612 (initial_context): ... this.
41613 (grub_env_var_context): Renamed to ...
41614 (current_context): ... this.
41615 (grub_env_find): Look only at CURRENT_CONTEXT.
41616 (grub_env_context_open): Rewritten to copy exported variables from
41618 (grub_env_context_close): Rewritten according to the new
41619 scheme. Also, add an assertion to prevent the initial context from
41621 (grub_env_insert): Removed the code for the sorted list.
41622 (grub_env_remove): Likewise.
41623 (grub_env_export): Simply mark the variable with
41624 GRUB_ENV_VAR_GLOBAL.
41625 (grub_env_set): A cosmetic change for naming consistency.
41626 (grub_env_get): Likewise.
41627 (grub_env_unset): Likewise.
41628 (grub_env_iterate): Rewritten to sort variables within this
41630 (grub_register_variable_hook): Fixed for naming consistency. Call
41631 grub_env_find again, only if NAME is not found at the first time.
41632 (mangle_data_slot_name): New function.
41633 (grub_env_set_data_slot): Likewise.
41634 (grub_env_get_data_slot): Likewise.
41635 (grub_env_unset_data_slot): Likewise.
41637 * include/grub/env.h (grub_env_var_type): New enum.
41638 (GRUB_ENV_VAR_LOCAL): New constant.
41639 (GRUB_ENV_VAR_GLOBAL): Likewise.
41640 (GRUB_ENV_VAR_DATA): Likewise.
41641 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
41643 (grub_env_set): Replace VAR with NAME for consistency.
41644 (grub_register_variable_hook): Likewise.
41645 (grub_env_export): Specify the name of the argument.
41646 (grub_env_set_data_slot): New prototype.
41647 (grub_env_get_data_slot): Likewise.
41648 (grub_env_unset_data_slot): Likewise.
41650 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
41652 Extend the loader so that GRUB can accept a loader which comes
41653 back to GRUB when a loaded image exits. Also, this change adds
41654 support for a chainloader on EFI.
41656 * term/efi/console.c: Include grub/misc.h.
41657 (grub_console_checkkey): Display a scan code on the top for
41658 debugging. This will be removed once the EFI port gets stable.
41659 Correct the scan code mapping.
41661 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
41662 allocate memory from larger regions, in order to reduce the number
41663 of allocated regions. Otherwise, the MacOSX loader panics.
41664 (filter_memory_map): Avoid less than 1MB for compatibility with
41666 (add_memory_regions): Allocate from the tail of a region, if
41667 possible, to avoid allocating a region near to 1MB, for the MacOSX
41670 * kern/efi/init.c (grub_efi_set_prefix): Specify
41671 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
41673 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
41674 argument IMAGE_HANDLE and specify it to get a loaded image.
41675 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
41676 grub_efi_get_loaded_image.
41677 (grub_efi_get_filename): Divide the length by the size of
41679 (grub_efi_get_device_path): New function.
41680 (grub_efi_print_device_path): Print End Device Path nodes. Divide
41681 the length by the size of grub_efi_char16_t for a file path device
41684 * kern/loader.c (grub_loader_noreturn): New variable.
41685 (grub_loader_set): Accept a new argument NORETURN. Set
41686 GRUB_LOADER_NORETURN to NORETURN.
41687 All callers changed.
41688 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
41691 * include/grub/efi/efi.h (grub_efi_get_device_path): New
41693 (grub_efi_get_loaded_image): Take an argument to specify an image
41696 * include/grub/loader.h (grub_loader_set): Added one more argument
41699 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
41700 instead of grub_efi_open_protocol.
41701 (grub_efidisk_get_device_name): Likewise.
41702 (grub_efidisk_close): Print a newline.
41703 (grub_efidisk_get_device_handle): Fixed to use
41704 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
41705 GRUB_EFI_DEVICE_PATH_TYPE.
41707 * disk/efi/efidisk.c (device_path_guid): Moved to ...
41708 * kern/efi/efi.c (device_path_guid): ... here.
41710 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
41712 (kernel_mod_HEADERS): Added efi/disk.h.
41713 (_chain_mod_SOURCES): New variable.
41714 (_chain_mod_CFLAGS): Likewise.
41715 (_chain_mod_LDFLAGS): Likewise.
41716 (chain_mod_SOURCES): Likewise.
41717 (chain_mod_CFLAGS): Likewise.
41718 (chain_mod_LDFLAGS): Likewise.
41720 * DISTLIST: Added include/grub/efi/chainloader.h,
41721 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
41723 * include/grub/efi/chainloader.h: New file.
41724 * loader/efi/chainloader.c: Likewise.
41725 * loader/efi/chainloader_normal.c: Likewise.
41727 2006-04-30 Marco Gerards <marco@gnu.org>
41729 * commands/configfile.c (grub_cmd_source): New function.
41730 (GRUB_MOD_INIT): Register the commands `source' and `.'.
41731 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
41733 2006-04-30 Marco Gerards <marco@gnu.org>
41735 * normal/execute.c (grub_script_execute_cmd): Change the return
41736 type to `grub_err_t'. Correctly return the error.
41737 (grub_script_execute_cmdline): In case a command line is not a
41738 command or a function, try to interpret it as an assignment.
41740 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
41742 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
41743 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
41744 skip a node whose name is obviously invalid as UTF-16,
41745 i.e. contains a NUL character. Stop the iteration when the last
41746 directory entry is found. Instead of using the return value of
41747 grub_hfsplus_btree_iterate_node, store the value in RET and use
41748 it, because the iterator can be stopped by the last directory
41751 2006-04-30 Marco Gerards <marco@gnu.org>
41753 * include/grub/env.h (grub_env_export): New prototype. Reported
41754 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
41756 2006-04-30 Marco Gerards <marco@gnu.org>
41758 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
41759 size of the extents in a catalog file record.
41761 2006-04-29 Marco Gerards <marco@gnu.org>
41763 * commands/configfile.c (grub_cmd_configfile): Execute the
41764 configfile within its own context.
41766 * include/grub/env.h (grub_env_context_open): New prototype.
41767 (grub_env_context_close): Likewise.
41769 * kern/env.c (grub_env): Removed.
41770 (grub_env_sorted): Likewise.
41771 (grub_env_context): New variable.
41772 (grub_env_var_context): Likewise.
41773 (grub_env_find): Search both the active context and the global
41775 (grub_env_context_open): New function.
41776 (grub_env_context_close): Likewise.
41777 (grub_env_insert): Likewise.
41778 (grub_env_remove): Likewise.
41779 (grub_env_export): Likewise.
41780 (grub_env_set): Changed to use helper functions to avoid code
41782 (grub_env_iterate): Rewritten so both the current context and the
41783 global context are being used.
41785 * normal/command.c (export_command): New function.
41786 (grub_command_init): Register the `export' function.
41788 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
41790 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
41791 explicitly to suppress gcc's warnings.
41792 * fs/fat.c (grub_fat_find_dir): Likewise.
41793 (grub_fat_label): Likewise.
41794 * fs/xfs.c (grub_xfs_read_inode): Likewise.
41795 (grub_xfs_mount): Likewise.
41796 (grub_xfs_label): Likewise.
41797 * fs/affs.c (grub_affs_mount): Likewise.
41798 (grub_affs_label): Likewise.
41799 (grub_affs_iterate_dir): Likewise.
41800 * fs/sfs.c (grub_sfs_mount): Likewise.
41801 (grub_sfs_iterate_dir): Likewise.
41802 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
41803 * fs/hfs.c (grub_hfs_mount): Likewise.
41804 (grub_hfs_cmp_catkeys): Likewise.
41805 (grub_hfs_find_dir): Likewise.
41806 (grub_hfs_dir): Likewise.
41807 (grub_hfs_label): Likewise.
41808 * fs/jfs.c (grub_jfs_mount): Likewise.
41809 (grub_jfs_opendir): Likewise.
41810 (grub_jfs_getent): Likewise.
41811 (grub_jfs_lookup_symlink): Likewise.
41812 (grub_jfs_label): Likewise.
41813 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
41814 (grub_hfsplus_iterate_dir): Likewise.
41815 (grub_hfsplus_btree_iterate_node): Made static.
41817 * util/grub-emu.c (prefix): New variable.
41818 (grub_machine_set_prefix): New function.
41819 (main): Do not set the environment variable "prefix" here. Only
41820 set PREFIX, which is used later by grub_machine_set_prefix.
41822 * include/grub/video.h: Do not include grub/symbol.h.
41823 (grub_video_register): Not exported. This symbol is not defined in
41825 (grub_video_unregister): Likewise.
41826 (grub_video_iterate): Likewise.
41827 (grub_video_setup): Likewise.
41828 (grub_video_restore): Likewise.
41829 (grub_video_get_info): Likewise.
41830 (grub_video_get_blit_format): Likewise.
41831 (grub_video_set_palette): Likewise.
41832 (grub_video_get_palette): Likewise.
41833 (grub_video_set_viewport): Likewise.
41834 (grub_video_get_viewport): Likewise.
41835 (grub_video_map_color): Likewise.
41836 (grub_video_map_rgb): Likewise.
41837 (grub_video_map_rgba): Likewise.
41838 (grub_video_fill_rect): Likewise.
41839 (grub_video_blit_glyph): Likewise.
41840 (grub_video_blit_bitmap): Likewise.
41841 (grub_video_blit_render_target): Likewise.
41842 (grub_video_scroll): Likewise.
41843 (grub_video_swap_buffers): Likewise.
41844 (grub_video_create_render_target): Likewise.
41845 (grub_video_delete_render_target): Likewise.
41846 (grub_video_set_active_render_target): Likewise.
41848 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
41850 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
41852 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
41853 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41854 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41855 instead of $(srcdir)/genkernsyms.sh.
41857 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
41858 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41859 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41860 instead of $(srcdir)/genkernsyms.sh.
41862 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
41863 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41864 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41865 instead of $(srcdir)/genkernsyms.sh.
41867 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
41868 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41869 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41870 instead of $(srcdir)/genkernsyms.sh.
41872 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
41875 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
41877 (gensymlist.sh): New target.
41878 (genkernsyms.sh): Likewise.
41880 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
41881 genkernsyms.sh.in and gensymlist.sh.in.
41883 * genkernsyms.sh: Removed.
41884 * gensymlist.sh: Likewise.
41886 * genkernsyms.sh.in: New file.
41887 * gensymlist.sh.in: Likewise.
41889 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
41891 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
41892 clobber "prefix", since we may have already set it manually.
41894 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
41896 * kern/misc.c (abort): New alias for grub_abort.
41898 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
41900 A new machine-specific function "grub_machine_set_prefix" is
41901 defined. This is called after loading modules, so that a prefix
41902 initialization can use modules. Also, this change adds an
41903 intensive debugging feature for the memory manager via the
41904 configure option "--enable-mm-debug".
41906 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
41909 * kern/sparc64/ieee1275/init.c (abort): Removed.
41910 (grub_stop): Likewise.
41911 (grub_exit): New function.
41912 (grub_set_prefix): Renamed to ...
41913 (grub_machine_set_prefix): ... this.
41914 (grub_machine_init): Do not call grub_set_prefix.
41916 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
41917 (grub_machine_set_prefix): ... this.
41918 (grub_machine_init): Do not call grub_set_prefix.
41920 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
41921 (grub_machine_init): Do not set the prefix here.
41923 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
41925 * kern/efi/init.c: Include grub/mm.h.
41926 (grub_efi_set_prefix): New function.
41928 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
41929 (grub_efi_get_filename): New function.
41930 (grub_print_device_path): Renamed to ...
41931 (grub_efi_print_device_path): ... this.
41933 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
41934 [MM_DEBUG] (grub_realloc): Likewise.
41935 [MM_DEBUG] (grub_free): Likewise.
41936 [MM_DEBUG] (grub_memalign): Likewise.
41937 [MM_DEBUG] (grub_mm_debug): New variable.
41938 [MM_DEBUG] (grub_debug_malloc): New function.
41939 [MM_DEBUG] (grub_debug_free): New function.
41940 [MM_DEBUG] (grub_debug_realloc): New function.
41941 [MM_DEBUG] (grub_debug_memalign): New function.
41943 * kern/misc.c (grub_abort): Print a newline to distinguish
41946 * kern/main.c (grub_main): Call grub_machine_set_prefix and
41947 grub_set_root_dev after loading modules. This is necessary when
41948 setting a prefix depends on modules.
41950 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
41951 (grub_efi_print_device_path): ... this.
41952 (grub_efi_get_filename): New prototype.
41953 (grub_efi_set_prefix): Likewise.
41955 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
41957 (grub_efidisk_get_device_handle): New prototype.
41958 (grub_efidisk_get_device_name): Likewise.
41960 * include/grub/mm.h: Include config.h.
41961 (MM_DEBUG): Removed.
41962 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
41963 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
41964 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
41965 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
41966 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
41967 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
41968 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
41969 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
41970 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
41972 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
41974 * disk/efi/efidisk.c: Include grub/partition.h.
41975 (iterate_child_devices): New function.
41976 (add_device): First, compare only last device path nodes, so that
41977 devices are sorted by the types.
41978 (grub_efidisk_get_device_handle): New function.
41979 (grub_efidisk_get_device_name): Likewise.
41981 * configure.ac (--enable-mm-debug): New option to enable the
41982 memory manager debugging feature. This makes the binary much
41983 bigger, so is disabled by default.
41985 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
41987 Use grub_abort instead of grub_stop, and grub_exit must be
41988 define in each architecture now. Also, this change adds support
41991 * util/i386/pc/grub-probefs.c: Include grub/term.h.
41992 (grub_getkey): New function.
41993 (grub_term_get_current): Likewise.
41995 * util/i386/pc/grub-setup.c: Include grub/term.h.
41996 (grub_getkey): New function.
41997 (grub_term_get_current): Likewise.
41999 * util/misc.c (grub_stop): Renamed to ...
42000 (grub_exit): ... this.
42002 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42003 (grub_exit): ... this.
42004 (grub_machine_init): Use grub_abort instead of abort.
42005 (grub_stop): Removed.
42007 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42010 * kern/i386/pc/startup.S (grub_exit): New function.
42011 (cold_reboot): New label.
42013 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42014 (grub_efi_init): Call grub_efidisk_init.
42015 (grub_efi_fini): Call grub_efidisk_fini.
42017 * kern/efi/efi.c: Include grub/mm.h.
42018 (grub_efi_console_control_guid): Renamed to ...
42019 (console_control_guid): ... this.
42020 (grub_efi_loaded_image_guid): Renamed to ...
42021 (loaded_image_guid): ... this.
42022 (grub_efi_locate_handle): New function.
42023 (grub_efi_open_protocol): Likewise.
42024 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42025 GRUB_EFI_CONSOLE_CONTROL_GUID.
42026 (grub_efi_exit): Removed.
42027 (grub_stop): Likewise.
42028 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42029 (grub_exit): New function.
42030 (grub_print_device_path): Likewise.
42032 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42033 (grub_enter_rescue_mode): Register "exit".
42035 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42036 (grub_abort): New function.
42038 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42040 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42042 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42044 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42045 (grub_print_device_path): New prototype.
42046 (grub_efi_locate_handle): Likewise.
42047 (grub_efi_open_protocol): Likewise.
42049 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42050 * disk/efi/efidisk.c: Likewise.
42052 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
42054 * include/grub/efi/console_control.h
42055 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
42057 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
42058 last 8 bytes as an array.
42059 (GRUB_EFI_DISK_IO_GUID): New macro.
42060 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
42061 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
42062 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
42064 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
42065 (struct grub_efi_device_path): Rename the member "sub_type" to
42067 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
42068 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
42069 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
42070 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
42071 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
42072 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
42073 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
42074 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
42075 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
42076 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
42077 (struct grub_efi_pci_device_path): New structure.
42078 (grub_efi_pci_device_path_t): New type.
42079 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
42080 (struct grub_efi_pccard_device_path): New structure.
42081 (grub_efi_pccard_device_path_t): New type.
42082 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
42083 (struct grub_efi_memory_mapped_device_path): New structure.
42084 (grub_efi_memory_mapped_device_path_t): New type.
42085 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
42086 (struct grub_efi_vendor_device_path): New structure.
42087 (grub_efi_vendor_device_path_t): New type.
42088 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
42089 (struct grub_efi_controller_device_path): New structure.
42090 (grub_efi_controller_device_path_t): New type.
42091 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
42092 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
42093 (struct grub_efi_acpi_device_path): New structure.
42094 (grub_efi_acpi_device_path_t): New type.
42095 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
42096 (struct grub_efi_expanded_acpi_device_path): New structure.
42097 (grub_efi_expanded_acpi_device_path_t): New type.
42098 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
42099 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
42100 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
42101 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
42102 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
42103 (struct grub_efi_atapi_device_path): New structure.
42104 (grub_efi_atapi_device_path_t): New type.
42105 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
42106 (struct grub_efi_fibre_channel_device_path): New structure.
42107 (grub_efi_fibre_channel_device_path_t): New type.
42108 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
42109 (struct grub_efi_1394_device_path): New structure.
42110 (grub_efi_1394_device_path_t): New type.
42111 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
42112 (struct grub_efi_usb_device_path): New structure.
42113 (grub_efi_usb_device_path_t): New type.
42114 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
42115 (struct grub_efi_usb_class_device_path): New structure.
42116 (grub_efi_usb_class_device_path_t): New type.
42117 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
42118 (struct grub_efi_i2o_device_path): New structure.
42119 (grub_efi_i2o_device_path_t): New type.
42120 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
42121 (struct grub_efi_mac_address_device_path): New structure.
42122 (grub_efi_mac_address_device_path_t): New type.
42123 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
42124 (struct grub_efi_ipv4_device_path): New structure.
42125 (grub_efi_ipv4_device_path_t): New type.
42126 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
42127 (struct grub_efi_ipv6_device_path): New structure.
42128 (grub_efi_ipv6_device_path_t): New type.
42129 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
42130 (struct grub_efi_infiniband_device_path): New structure.
42131 (grub_efi_infiniband_device_path_t): New type.
42132 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
42133 (struct grub_efi_uart_device_path): New structure.
42134 (grub_efi_uart_device_path_t): New type.
42135 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
42136 (struct grub_efi_vendor_messaging_device_path): New structure.
42137 (grub_efi_vendor_messaging_device_path_t): New type.
42138 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
42139 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
42140 (struct grub_efi_hard_drive_device_path): New structure.
42141 (grub_efi_hard_drive_device_path_t): New type.
42142 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
42143 (struct grub_efi_cdrom_device_path): New structure.
42144 (grub_efi_cdrom_device_path_t): New type.
42145 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
42146 (struct grub_efi_vendor_media_device_path): New structure.
42147 (grub_efi_vendor_media_device_path_t): New type.
42148 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
42149 (struct grub_efi_file_path_device_path): New structure.
42150 (grub_efi_file_path_device_path_t): New type.
42151 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
42152 (struct grub_efi_protocol_device_path): New structure.
42153 (grub_efi_protocol_device_path_t): New type.
42154 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
42155 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
42156 (struct grub_efi_bios_device_path): New structure.
42157 (grub_efi_bios_device_path_t): New type.
42158 (struct grub_efi_disk_io): New structure.
42159 (grub_efi_disk_io_t): New type.
42160 (struct grub_efi_block_io_media): New structure.
42161 (grub_efi_block_io_media_t): New type.
42162 (struct grub_efi_block_io): New structure.
42163 (grub_efi_block_io_t): New type.
42165 * include/grub/misc.h (grub_stop): Removed.
42166 (grub_exit): New prototype.
42167 (grub_abort): Likewise.
42169 * include/grub/disk.h (enum grub_disk_dev_id): Added
42170 GRUB_DISK_DEVICE_EFIDISK_ID.
42172 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
42173 disk/efi/efidisk.c.
42174 (kernel_syms.lst): Remove the target if an error occurs.
42176 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
42178 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
42179 as it was simply too buggy.
42181 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
42183 * kern/misc.c (grub_lltoa): New function.
42184 (grub_vsprintf): Added support for the long long suffix,
42187 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
42189 * Makefile.in (LDFLAGS): Add variable.
42190 (LD): Remove variable.
42191 * configure.ac: Add -m32 to LDFLAGS.
42192 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
42193 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
42194 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
42195 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
42196 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
42198 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
42199 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
42200 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
42202 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
42204 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
42205 length for unknown glyph.
42207 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42209 Add support for pre-loaded modules into the EFI port.
42211 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
42212 completely. Accept one more argument DIR. The caller has changed.
42214 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
42216 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
42217 (grub_efi_loaded_image_guid): New variable.
42218 (grub_efi_get_loaded_image): New function.
42219 (grub_arch_modules_addr): Likewise.
42221 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
42224 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
42225 (struct grub_efi_loaded_image): New structure.
42226 (grub_efi_loaded_image_t): New type.
42228 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
42230 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
42231 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
42232 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
42234 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
42236 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
42238 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
42240 * DISTLIST: Added include/grub/efi/console.h,
42241 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
42242 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42244 * include/grub/efi/console.h: New file.
42245 * include/grub/efi/time.h: Likewise.
42246 * include/grub/i386/efi/kernel.h: Likewise.
42247 * kern/efi/init.c: Likewise.
42248 * kern/efi/mm.c: Likewise.
42249 * term/efi/console.c: Likewise.
42251 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
42252 (grub_stop): Removed.
42253 (grub_get_rtc): Likewise.
42254 (grub_machine_init): Simply call grub_efi_init.
42255 (grub_machine_fini): Call grub_efi_fini.
42257 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
42258 (grub_efi_output_string): Removed.
42259 (grub_efi_stall): New function.
42260 (grub_stop): Likewise.
42261 (grub_get_rtc): Likewise.
42263 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
42264 (grub_efi_stall): New prototype.
42265 (grub_efi_allocate_pages): Likewise.
42266 (grub_efi_free_pages): Likewise.
42267 (grub_efi_get_memory_map): Likewise.
42268 (grub_efi_mm_init): Likewise.
42269 (grub_efi_mm_fini): Likewise.
42270 (grub_efi_init): Likewise.
42271 (grub_efi_fini): Likewise.
42273 * include/grub/i386/efi/time.h: Do not include
42274 grub/symbol.h. Include grub/efi/time.h.
42275 (GRUB_TICKS_PER_SECOND): Removed.
42276 (grub_get_rtc): Likewise.
42278 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
42279 Added padding. The EFI spec is buggy.
42280 (GRUB_EFI_BLACK): New macro.
42281 (GRUB_EFI_BLUE): Likewise.
42282 (GRUB_EFI_GREEN): Likewise.
42283 (GRUB_EFI_CYAN): Likewise.
42284 (GRUB_EFI_RED): Likewise.
42285 (GRUB_EFI_MAGENTA): Likewise.
42286 (GRUB_EFI_BROWN): Likewise.
42287 (GRUB_EFI_LIGHTGRAY): Likewise.
42288 (GRUB_EFI_BRIGHT): Likewise.
42289 (GRUB_EFI_DARKGRAY): Likewise.
42290 (GRUB_EFI_LIGHTBLUE): Likewise.
42291 (GRUB_EFI_LIGHTGREEN): Likewise.
42292 (GRUB_EFI_LIGHTCYAN): Likewise.
42293 (GRUB_EFI_LIGHTRED): Likewise.
42294 (GRUB_EFI_LIGHTMAGENTA): Likewise.
42295 (GRUB_EFI_YELLOW): Likewise.
42296 (GRUB_EFI_WHITE): Likewise.
42297 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
42298 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
42299 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
42300 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
42301 (GRUB_EFI_BACKGROUND_RED): Likewise.
42302 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
42303 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
42304 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
42305 (GRUB_EFI_TEXT_ATTR): Likewise.
42307 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
42308 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
42309 (kernel_mod_HEADERS): Added efi/time.h.
42311 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
42313 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
42314 include/grub/efi/api.h, include/grub/efi/console_control.h,
42315 include/grub/efi/efi.h, include/grub/efi/pe32.h,
42316 include/grub/i386/efi/time.h, kern/efi/efi.c,
42317 kern/i386/efi/init.c, kern/i386/efi/startup.S,
42318 and util/i386/efi/grub-mkimage.c.
42320 * Makefile.in (RMKFILES): Added i386-efi.rmk.
42322 * genmk.rb (PModule#rule): Do not export symbols if
42323 #{prefix}_EXPORTS is set to "no".
42325 * conf/i386-efi.mk: New file.
42326 * conf/i386-efi.rmk: Likewise.
42327 * include/grub/efi/api.h: Likewise.
42328 * include/grub/efi/console_control.h: Likewise.
42329 * include/grub/efi/efi.h: Likewise.
42330 * include/grub/efi/pe32.h: Likewise.
42331 * include/grub/i386/efi/time.h: Likewise.
42332 * kern/efi/efi.c: Likewise.
42333 * kern/i386/efi/init.c: Likewise.
42334 * kern/i386/efi/startup.S: Likewise.
42335 * util/i386/efi/grub-mkimage.c: Likewise.
42337 2006-04-17 Marco Gerards <marco@gnu.org>
42339 * include/grub/script.h: Include <grub/parser.h> and
42340 "grub_script.tab.h".
42341 (struct grub_lexer_param): New struct.
42342 (struct grub_parser_param): Likewise.
42343 (grub_script_create_arglist): Pass the state in an argument.
42344 (grub_script_add_arglist): Likewise.
42345 (grub_script_create_cmdline): Likewise.
42346 (grub_script_create_cmdblock): Likewise.
42347 (grub_script_create_cmdif): Likewise.
42348 (grub_script_create_cmdmenu): Likewise.
42349 (grub_script_add_cmd): Likewise.
42350 (grub_script_arg_add): Likewise.
42351 (grub_script_lexer_ref): Likewise.
42352 (grub_script_lexer_deref): Likewise.
42353 (grub_script_lexer_record_start): Likewise.
42354 (grub_script_lexer_record_stop): Likewise.
42355 (grub_script_mem_record): Likewise.
42356 (grub_script_mem_record_stop): Likewise.
42357 (grub_script_malloc): Likewise.
42358 (grub_script_yylex): Likewise.
42359 (grub_script_yyparse): Likewise.
42360 (grub_script_yyerror): Likewise.
42361 (grub_script_yylex): Likewise.
42362 (grub_script_lexer_init): Return the state.
42364 * normal/lexer.c (grub_script_lexer_state): Removed variable.
42365 (grub_script_lexer_done): Likewise.
42366 (grub_script_lexer_getline): Likewise.
42367 (grub_script_lexer_refs): Likewise.
42368 (script): Likewise.
42369 (newscript): Likewise.
42370 (record): Likewise.
42371 (recording): Likewise.
42372 (recordpos): Likewise.
42373 (recordlen): Likewise.
42374 (grub_script_lexer_init): Return the state instead of setting
42376 (grub_script_lexer_ref): Use the newly added argument for state
42377 instead of globals.
42378 (grub_script_lexer_deref): Likewise.
42379 (grub_script_lexer_record_start): Likewise.
42380 (grub_script_lexer_record_stop): Likewise.
42381 (recordchar): Likewise.
42382 (nextchar): Likewise.
42383 (grub_script_yylex2): Likewise.
42384 (grub_script_yylex): Likewise.
42385 (grub_script_yyerror): Likewise.
42387 * normal/parser.y (func_mem): Removed variable.
42388 (menu_entry): Likewise.
42390 (%lex-param): New parser option.
42391 (%parse-param): Likewise.
42392 (script): Always return the AST.
42393 (argument): Pass the state around.
42394 (arguments): Likewise.
42395 (grubcmd): Likewise.
42396 (commands): Likewise.
42397 (function): Likewise.
42398 (menuentry): Likewise.
42399 (if_statement): Likewise.
42402 * normal/script.c (grub_script_memused): Removed variable.
42403 (grub_script_parsed): Likewise.
42404 (grub_script_malloc): Added a state argument. Use that instead of
42406 (grub_script_mem_record): Likewise.
42407 (grub_script_mem_record_stop): Likewise.
42408 (grub_script_arg_add): Likewise.
42409 (grub_script_add_arglist): Likewise.
42410 (grub_script_create_cmdline): Likewise.
42411 (grub_script_create_cmdif): Likewise.
42412 (grub_script_create_cmdmenu): Likewise.
42413 (grub_script_add_cmd): Likewise.
42414 (grub_script_parse): Setup the state before calling the parser.
42416 2006-04-16 Marco Gerards <marco@gnu.org>
42418 * normal/command.c (grub_command_init): Remove the title command.
42420 * normal/lexer.c (grub_script_yylex): Renamed from this...
42421 (grub_script_yylex2): ... to this.
42422 (grub_script_yylex): New function. Temporary
42423 introduced to filter some tokens.
42424 (grub_script_yyerror): Print a newline.
42426 * normal/main.c (read_config_file): Output information about the
42427 lines that contain errors. Wait for a key after all lines have
42428 been processed. Don't return an empty menu.
42430 * normal/parser.y (func_mem): Don't initialize.
42431 (menu_entry): Likewise.
42432 (err): New variable.
42433 (script): Don't return anything when an error was encountered.
42434 (ws, returns): Removed rules.
42435 (argument): Disabled concatenated variable support.
42436 (arguments): Remove explicit separators.
42437 (grubcmd): Likewise.
42438 (function): Likewise.
42439 (menuentry): Likewise.
42441 (commands): Likewise. Add error handling.
42443 * normal/script.c (grub_script_create_cmdline): If
42444 `grub_script_parsed' is 0, assume the parser encountered an error.
42446 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
42448 * configure.ac: Add support for EFI. Fix the typo
42449 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
42451 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42453 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
42454 foreign multibyte characters should be shown correctly.
42456 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42458 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
42460 (read_config_file): Made it to close file before returning.
42462 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
42464 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
42465 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
42466 video/i386/pc/vbefill.c.
42468 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
42469 video/i386/pc/vbefill.c.
42471 * include/grub/video.h (grub_video_blit_format): New enum.
42472 (grub_video_mode_info): Added new member blit_format.
42473 (grub_video_get_blit_format): New function prototype.
42475 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
42476 function prototype.
42477 (grub_video_vbe_map_rgb): Likewise.
42478 (grub_video_vbe_unmap_color): Likewise.
42480 * include/grub/i386/pc/vbeblit.h: New file.
42482 * include/grub/i386/pc/vbefill.h: New file.
42484 * video/video.c (grub_video_get_blit_format): New function.
42485 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
42486 (grub_video_vbe_map_rgb): Likewise.
42487 (grub_video_vbe_unmap_color): Likewise.
42489 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
42491 (grub_video_vbe_blit_render_target): Changed to use more optimized
42493 (grub_video_vbe_setup): Added detection for optimized settings.
42494 (grub_video_vbe_create_render_target): Likewise.
42496 * video/i386/pc/vbeblit.c: New file.
42498 * video/i386/pc/vbefill.c: New file.
42500 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
42502 * font/manager.c (grub_font_get_glyph): Removed font fixup from
42505 * util/unifont2pff.rb: ... and moved it to here. Improved argument
42506 parsing to support both hex and dec ranges. If filename was missing
42507 show usage information.
42509 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
42511 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
42512 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
42514 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
42515 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
42516 (video_mod_SOURCES): Added.
42517 (video_mod_CFLAGS): Likewise.
42518 (video_mod_LDFLAGS): Likewise.
42519 (gfxterm_mod_SOURCES): Likewise.
42520 (gfxterm_mod_CFLAGS): Likewise.
42521 (gfxterm_mod_LDFLAGS): Likewise.
42522 (videotest_mod_SOURCES): Likewise.
42523 (videotest_mod_CFLAGS): Likewise.
42524 (videotest_mod_LDFLAGS): Likewise.
42525 (vesafb_mod_SOURCES): Removed.
42526 (vesafb_mod_CFLAGS): Likewise.
42527 (vesafb_mod_LDFLAGS): Likewise.
42528 (vga_mod_SOURCES): Likewise.
42529 (vga_mod_CFLAGS): Likewise.
42530 (vga_mod_LDFLAGS): Likewise.
42532 * commands/videotest.c: New file.
42534 * font/manager.c (fill_with_default_glyph): Modified to use
42536 (grub_font_get_glyph): Likewise.
42537 (fontmanager): Renamed from this...
42538 (font_manager): ... to this.
42540 * include/grub/font.h (grub_font_glyph): Added new structure.
42541 (grub_font_get_glyph): Modified to use grub_font_glyph.
42543 * include/grub/misc.h (grub_abs): Added as inline function.
42545 * include/grub/video.h: New file.
42547 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
42548 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
42549 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
42550 (grub_vbe_get_controller_info): Renamed from this...
42551 (grub_vbe_bios_get_controller_info): ... to this.
42552 (grub_vbe_get_mode_info): Renamed from this...
42553 (grub_vbe_bios_get_mode_info): ... to this.
42554 (grub_vbe_set_mode): Renamed from this...
42555 (grub_vbe_bios_set_mode): ... to this.
42556 (grub_vbe_get_mode): Renamed from this...
42557 (grub_vbe_bios_get_mode): ... to this.
42558 (grub_vbe_set_memory_window): Renamed from this...
42559 (grub_vbe_bios_set_memory_window): ... to this.
42560 (grub_vbe_get_memory_window): Renamed from this...
42561 (grub_vbe_bios_get_memory_window): ... to this.
42562 (grub_vbe_set_scanline_length): Renamed from this...
42563 (grub_vbe_set_scanline_length): ... to this.
42564 (grub_vbe_get_scanline_length): Renamed from this...
42565 (grub_vbe_bios_get_scanline_length): ... to this.
42566 (grub_vbe_set_display_start): Renamed from this...
42567 (grub_vbe_bios_set_display_start): ... to this.
42568 (grub_vbe_get_display_start): Renamed from this...
42569 (grub_vbe_bios_get_display_start): ... to this.
42570 (grub_vbe_set_palette_data): Renamed from this...
42571 (grub_vbe_bios_set_palette_data): ... to this.
42572 (grub_vbe_set_pixel_rgb): Removed.
42573 (grub_vbe_set_pixel_index): Likewise.
42575 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
42577 (grub_vbe_bios_get_controller_info): ... to this.
42578 (grub_vbe_get_mode_info): Renamed from this...
42579 (grub_vbe_bios_get_mode_info): ... to this.
42580 (grub_vbe_set_mode): Renamed from this...
42581 (grub_vbe_bios_set_mode): ... to this.
42582 (grub_vbe_get_mode): Renamed from this...
42583 (grub_vbe_bios_get_mode): ... to this.
42584 (grub_vbe_set_memory_window): Renamed from this...
42585 (grub_vbe_bios_set_memory_window): ... to this.
42586 (grub_vbe_get_memory_window): Renamed from this...
42587 (grub_vbe_bios_get_memory_window): ... to this.
42588 (grub_vbe_set_scanline_length): Renamed from this...
42589 (grub_vbe_set_scanline_length): ... to this.
42590 (grub_vbe_get_scanline_length): Renamed from this...
42591 (grub_vbe_bios_get_scanline_length): ... to this.
42592 (grub_vbe_set_display_start): Renamed from this...
42593 (grub_vbe_bios_set_display_start): ... to this.
42594 (grub_vbe_get_display_start): Renamed from this...
42595 (grub_vbe_bios_get_display_start): ... to this.
42596 (grub_vbe_set_palette_data): Renamed from this...
42597 (grub_vbe_bios_set_palette_data): ... to this.
42598 (grub_vbe_bios_get_controller_info): Fixed problem with registers
42599 getting corrupted after calling it. Added more pushes and pops.
42600 (grub_vbe_bios_set_mode): Likewise.
42601 (grub_vbe_bios_get_mode): Likewise.
42602 (grub_vbe_bios_get_memory_window): Likewise.
42603 (grub_vbe_bios_set_scanline_length): Likewise.
42604 (grub_vbe_bios_get_scanline_length): Likewise.
42605 (grub_vbe_bios_get_display_start): Likewise.
42606 (grub_vbe_bios_set_palette_data): Likewise.
42608 * normal/cmdline.c (cl_set_pos): Refresh the screen.
42609 (cl_insert): Likewise.
42610 (cl_delete): Likewise.
42612 * term/gfxterm.c: New file.
42614 * term/i386/pc/vesafb.c: Removed file.
42616 * video/video.c: New file.
42618 * video/i386/pc/vbe.c (real2pm): Added new function.
42619 (grub_video_vbe_draw_pixel): Likewise.
42620 (grub_video_vbe_get_video_ptr): Likewise.
42621 (grub_video_vbe_get_pixel): Likewise
42622 (grub_video_vbe_init): Likewise.
42623 (grub_video_vbe_fini): Likewise.
42624 (grub_video_vbe_setup): Likewise.
42625 (grub_video_vbe_get_info): Likewise.
42626 (grub_video_vbe_set_palette): Likewise.
42627 (grub_video_vbe_get_palette): Likewise.
42628 (grub_video_vbe_set_viewport): Likewise.
42629 (grub_video_vbe_get_viewport): Likewise.
42630 (grub_video_vbe_map_color): Likewise.
42631 (grub_video_vbe_map_rgb): Likewise.
42632 (grub_video_vbe_map_rgba): Likewise.
42633 (grub_video_vbe_unmap_color): Likewise.
42634 (grub_video_vbe_fill_rect): Likewise.
42635 (grub_video_vbe_blit_glyph): Likewise.
42636 (grub_video_vbe_blit_bitmap): Likewise.
42637 (grub_video_vbe_blit_render_target): Likewise.
42638 (grub_video_vbe_scroll): Likewise.
42639 (grub_video_vbe_swap_buffers): Likewise.
42640 (grub_video_vbe_create_render_target): Likewise.
42641 (grub_video_vbe_delete_render_target): Likewise.
42642 (grub_video_vbe_set_active_render_target): Likewise.
42643 (grub_vbe_set_pixel_rgb): Remove function.
42644 (grub_vbe_set_pixel_index): Likewise.
42645 (index_color_mode): Remove static variable.
42646 (active_mode): Likewise.
42647 (framebuffer): Likewise.
42648 (bytes_per_scan_line): Likewise.
42649 (grub_video_vbe_adapter): Added new static variable.
42650 (framebuffer): Likewise.
42651 (render_target): Likewise.
42652 (initial_mode): Likewise.
42653 (mode_in_use): Likewise.
42654 (mode_list): Likewise.
42656 2006-03-10 Marco Gerards <marco@gnu.org>
42658 * configure.ac (AC_INIT): Bumped to 1.93.
42660 * DISTLIST: Added `include/grub/hfs.h'.
42662 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
42664 * boot/i386/pc/boot.S (general_error): Before looping, try INT
42665 18H, which might help the BIOS falling back to next boot media.
42667 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
42669 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
42670 Poe Chen <poe.poechen@gmail.com>.
42672 2006-01-17 Marco Gerards <marco@gnu.org>
42674 * include/grub/normal.h: Include <grub/script.h>.
42675 (grub_command_list): Removed struct.
42676 (grub_command_list_t): Removed type.
42677 (grub_menu_entry): Remove members `num' and `command_list'. Add
42678 members `commands' and `sourcecode'.
42679 * include/grub/script.h: Add inclusion guards.
42680 (grub_script_cmd_menuentry): New struct.
42681 (grub_script_execute_menuentry): New prototype.
42682 (grub_script_lexer_record_start): Likewise.
42683 (grub_script_lexer_record_stop): Likewise.
42684 * normal/execute.c (grub_script_execute_menuentry): New function.
42685 * normal/lexer.c (record, recording, recordpos, recordlen): New
42687 (grub_script_lexer_record_start): New function.
42688 (grub_script_lexer_record_stop): Likewise.
42689 (recordchar): Likewise.
42690 (nextchar): Likewise.
42691 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
42692 2048 as the buffer size. Add the tokens `menuentry' and `@'.
42693 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
42694 (current_menu): New variable.
42695 (free_menu): Mainly rewritten.
42696 (grub_normal_menu_addentry): New function.
42697 (read_config_file): Rewritten.
42698 * normal/menu.c (run_menu_entry): Mainly rewritten.
42699 * normal/menu_entry.c (make_screen): Rewritten the code to insert
42701 (run): Mainly rewritten.
42702 * normal/parser.y (menu_entry): New variable.
42703 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
42704 (menuentry): New rule.
42705 (command): Add `menuentry'.
42706 (if_statement): Allow additional returns before `fi'.
42707 * normal/script.c (grub_script_create_cmdmenu): New function.
42709 2006-01-03 Marco Gerards <marco@gnu.org>
42711 * INSTALL: GNU Bison is required.
42712 * configure.ac: Rewritten the test to detect Bison.
42713 * Makefile.in (YACC): New variable. Reported by Xun Sun
42714 <xun.sun.cn@gmail.com>.
42716 2006-01-03 Marco Gerards <marco@gnu.org>
42718 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
42719 the HFS+ filesystem to filesystem blocks.
42720 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
42721 GCC warning is silenced.
42723 2006-01-03 Marco Gerards <marco@gnu.org>
42725 * partmap/apple.c (apple_partition_map_iterate): Convert the data
42726 read from disk from big endian to host byte order.
42728 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
42730 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
42732 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
42733 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
42734 embedded HFS+ filesystem.
42735 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
42736 (grub_hfs_sblock): Move from here...
42737 * include/grub/hfs.h: To here... New file.
42738 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
42740 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
42742 (grub_hfsplus_volheader): Change type of member `magic' to
42744 (grub_hfsplus_data): Add new member `embedded_offset'.
42745 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
42747 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
42748 Calculate the offset.
42750 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42752 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
42754 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
42756 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42758 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
42759 ENV->NAME is NULL after allocating ENV->VALUE.
42761 2005-12-25 Marco Gerards <marco@gnu.org>
42763 * kern/env.c (grub_env_set): Rewritten the error handling code.
42765 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42767 * geninit.sh: Made more robust, and more portable.
42769 2005-12-25 Marco Gerards <marco@gnu.org>
42771 Add support for Apple HFS+ filesystems.
42773 * fs/hfsplus.c: New file.
42775 * DISTLIST: Added `fs/hfsplus.c'.
42777 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
42778 (hfsplus_mod_SOURCES): New variable.
42779 (hfsplus_mod_CFLAGS): Likewise.
42780 (hfsplus_mod_LDFLAGS): Likewise.
42781 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
42782 (grub_setup_SOURCES): Likewise.
42783 (grub_mkdevicemap_SOURCES): Likewise.
42784 (grub_emu_SOURCES): Likewise.
42785 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42787 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
42789 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
42791 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42793 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
42794 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
42795 include/grub/parser.h, include/grub/script.h, kern/parser.c,
42796 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
42797 normal/lexer.c, normal/parser.y, normal/script.c, and
42799 Removed kern/sparc64/cache.c.
42801 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
42802 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
42805 * configure.ac (AC_INIT): Bumped to 1.92.
42807 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
42809 * kern/err.c (grub_error_push): Added new function to support error
42811 (grub_error_pop): Likewise.
42812 (grub_error_stack_items): New local variable to support error stacks.
42813 (grub_error_stack_pos): Likewise.
42814 (grub_error_stack_assert): Likewise.
42815 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
42817 (grub_print_error): Added support to print errors from error stack.
42819 * include/grub/err.h (grub_error_push): Added function prototype.
42820 (grub_error_pop): Likewise.
42822 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
42824 * configure.ac: Accept `powerpc64' as host_cpu.
42825 (amd64): Rename to `biarch32'.
42827 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
42828 non-cacheline-aligned addresses.
42830 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
42831 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
42832 if `size' is non-zero.
42834 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
42836 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
42837 and `cd' to make sure the filename is not prefixed with a
42839 (pkgdata_MODULES): Add `gpt.mod'.
42840 (gpt_mod_SOURCES): New variable.
42841 (gpt_mod_CFLAGS): Likewise.
42842 (gpt_mod_LDFLAGS): Likewise.
42844 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
42846 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
42849 * partmap/gpt.c: New file.
42851 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
42852 GPT partition map is detected.
42854 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
42856 * commands/i386/pc/play.c: New file.
42857 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
42858 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
42861 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
42863 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
42864 ((unused))' to silence gcc warning.
42866 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
42868 * configure.ac: Correct `AC_PROG_YACC' test.
42870 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42872 * util/powerpc/ieee1275/grub-install.in: Run the mount point
42873 check before installing files.
42875 2005-11-22 Mike Small <smallm@panix.com>
42877 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
42878 number regex so multidigit numbers are recognized correctly.
42880 2005-11-22 Mike Small <smallm@panix.com>
42882 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
42883 debugging message before attempting to claim memory.
42884 (grub_rescue_cmd_initrd): Add a claim debugging message and try
42885 multiple addresses in case of failure.
42887 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42889 * term/tparm.c (get_space): Remove empty `if' statement.
42891 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
42893 * kern/parser.c (check_varstate): Rename `state' to 's'.
42895 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42897 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
42898 variable definitions to the beginning of each function. Sort stack
42900 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
42901 `buf' argument to `char *'.
42903 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42905 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
42906 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
42907 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
42908 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
42909 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
42910 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
42911 configfile.mod, search.mod, gzio.mod and test.mod.
42912 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
42913 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
42914 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
42915 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
42916 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
42917 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
42918 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
42919 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
42920 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
42921 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
42922 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
42923 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
42924 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
42925 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
42926 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
42927 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
42928 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
42929 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
42930 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
42931 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
42932 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
42933 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
42934 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
42936 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
42938 (pkgdata_MODULES): Add test.mod.
42940 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
42942 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
42943 appending to variables with "+=".
42944 (PModule): Use full pathname to generate *.lst filenames.
42946 * Makefile.in: Fixed list rules moved from genmk.rb.
42947 (.DELETE_ON_ERROR): New special target.
42948 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
42950 * conf/i386-pc.rmk: Include conf/common.mk.
42951 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
42952 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
42953 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
42954 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
42955 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
42956 configfile.mod, search.mod, gzio.mod and test.mod.
42957 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
42958 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
42959 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
42960 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
42961 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
42962 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
42963 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
42964 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
42965 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
42966 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
42967 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
42968 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
42969 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
42970 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
42971 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
42972 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
42973 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
42974 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
42975 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
42976 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
42977 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
42978 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
42979 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
42981 * conf/common.rmk: ... to here. New file.
42983 * conf/common.mk: New file.
42985 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
42987 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
42988 (grub_script.tab.c): ... here.
42990 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
42991 (grub_script.tab.c): ... here.
42993 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
42994 (grub_script.tab.c): ... here.
42996 * normal/command.c (grub_command_find): Fixed a memory leak of
42997 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
42999 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43001 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43002 "@" which marks the start of a comment on ARM.
43003 (VARIABLE): Likewise.
43005 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43007 Add support for Linux/ADFS partition tables.
43009 * partmap/acorn.c: New file.
43011 * include/grub/acorn_filecore.h: Likewise.
43013 * DISTLIST: Added `partmap/acorn.c' and
43014 `include/grub/acorn_filecore.h'.
43016 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43018 (pkgdata_MODULES): Add `acorn.mod'.
43019 (acorn_mod_SOURCES): New variable.
43020 (acorn_mod_CFLAGS): Likewise.
43022 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43024 (pkgdata_MODULES): Add `acorn.mod'.
43025 (acorn_mod_SOURCES): New variable.
43026 (acorn_mod_CFLAGS): Likewise.
43028 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43029 (pkgdata_MODULES): Add `acorn.mod'.
43030 (acorn_mod_SOURCES): New variable.
43031 (acorn_mod_CFLAGS): Likewise.
43032 (acorn_mod_LDFLAGS): Likewise.
43034 * include/types.h (grub_disk_addr_t): New typedef.
43036 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
43038 * geninit.sh: New file.
43040 * geninitheader.sh: Likewise.
43042 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43043 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43044 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43045 * commands/configfile.c (grub_configfile_init)
43046 (grub_configfile_fini): Likewise.
43047 * commands/default.c (grub_default_init, grub_default_fini):
43049 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43050 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43051 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
43052 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
43054 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
43055 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
43057 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
43058 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
43060 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
43062 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
43064 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
43065 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
43066 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
43067 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
43068 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
43069 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
43070 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
43071 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
43072 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
43073 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
43074 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
43075 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
43076 * partmap/amiga.c (grub_amiga_partition_map_init)
43077 (grub_amiga_partition_map_fini): Likewise.
43078 * partmap/apple.c (grub_apple_partition_map_init)
43079 (grub_apple_partition_map_fini): Likewise.
43080 * partmap/pc.c (grub_pc_partition_map_init)
43081 (grub_pc_partition_map_fini): Likewise.
43082 * partmap/sun.c (grub_sun_partition_map_init,
43083 grub_sun_partition_map_fini): Likewise.
43084 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
43087 * util/grub-emu.c: Include <grub_modules_init.h>.
43088 (main): Don't initialize and de-initialize any modules directly,
43089 use `grub_init_all' and `grub_fini_all' instead.
43091 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
43092 `grub_vesafb_mod_init'.
43093 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
43095 * term/i386/pc/vga.c (grub_vga_init): Renamed to
43096 `grub_vga_mod_init'. Updated all users.
43097 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
43099 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
43100 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
43103 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
43104 Generate a function to initialize the module in utilities.
43105 Updated all callers.
43106 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
43107 initialize the module in utilities. Updated all callers.
43109 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43111 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
43112 escape sequence and a literal ^L to clear the screen.
43114 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
43115 when returning from Open Firmware.
43117 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43119 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
43120 (grub_ofconsole_height): Likewise.
43121 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
43122 manually insert a '\n'.
43123 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
43124 `grub_ofconsole_height'. Return early if these are already set.
43126 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
43128 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43129 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
43130 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
43131 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
43132 and `normal/script.c'.
43133 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43134 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43135 (test_mod_SOURCES): New variable.
43136 (test_mod_CFLAGS): Likewise.
43137 (test_mod_LDFLAGS): Likewise.
43138 (pkgdata_MODULES): Add `test.mod'.
43139 (grub_script.tab.c): New rule.
43140 (grub_script.tab.h): Likewise.
43142 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
43144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43145 `commands/test.c', `normal/execute.c', `normal/lexer.c',
43146 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43147 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43148 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43149 (test_mod_SOURCES): New variable.
43150 (test_mod_CFLAGS): Likewise.
43151 (pkgdata_MODULES): Add `test.mod'.
43152 (grub_script.tab.c): New rule.
43153 (grub_script.tab.h): Likewise.
43155 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
43157 Add initial scripting support.
43159 * commands/test.c: New file.
43160 * include/grub/script.h: Likewise.
43161 * normal/execute.c: Likewise.
43162 * normal/function.c: Likewise.
43163 * normal/lexer.c: Likewise.
43164 * normal/parser.y: Likewise.
43165 * normal/script.c: Likewise.
43167 * configure.ac: Add `AC_PROG_YACC' test.
43169 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
43170 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
43171 `normal/function.c' and `normal/script.c'.
43172 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43173 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43174 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
43176 (pkgdata_MODULES): Add `test.mod'.
43177 (grub_script.tab.c): New rule.
43178 (grub_script.tab.h): Likewise.
43180 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
43182 * include/grub/normal.h (grub_test_init): New prototype.
43183 (grub_test_fini): Likewise.
43185 * normal/command.c: Include <grub/script.h>.
43186 (grub_command_execute): Rewritten.
43188 * util/grub-emu.c (main): Call `grub_test_init' and
43191 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43193 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
43195 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
43196 there are no pending characters.
43198 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43200 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
43201 `grub_strndup' to drop device arguments. Replace unnecessary
43202 `grub_strndup' with `grub_strdup'.
43204 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
43206 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
43207 `debug' environment variable has been set.
43209 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
43211 * Makefile.in (install-local): Use $(DATA).
43212 (uninstall): Likewise.
43213 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
43214 (sbin_UTILITIES): ... to here.
43215 (sbin_SCRIPTS): New variable.
43216 (grub_install_SOURCES): New variable.
43217 * util/powerpc/ieee1275/grub-install.in: New file.
43218 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
43220 (add_segments): Call `grub_util_get_path'.
43222 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
43224 From Timothy Baldwin:
43225 * commands/ls.c (grub_ls_list_files): Close FILE with
43227 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
43229 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
43231 * include/grub/parser.h: New file.
43233 * kern/parser.c: Likewise.
43235 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
43236 (grub_setup_SOURCES): Likewise.
43237 (grub_probefs_SOURCES): Likewise.
43238 (grub_emu_SOURCES): Likewise.
43239 (kernel_img_HEADERS): Add `parser.h'.
43241 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43242 (grub_emu_SOURCES): Add `kern/parser.c'.
43243 (grubof_SOURCES): Likewise.
43245 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
43246 (grubof_SOURCES): Add `kern/parser.c'.
43248 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
43250 * kern/misc.c (grub_split_cmdline): Removed function.
43252 * kern/rescue.c: Include <grub/parser.h>.
43253 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
43254 of `grub_split_cmdline'.
43256 * normal/command.c: Include <grub/parser.h>.
43257 (grub_command_execute): Use `grub_parser_split_cmdline' instead
43258 of `grub_split_cmdline'.
43260 * normal/completion.c: Include <grub/parser.h>.
43261 (cmdline_state): New variable.
43262 (iterate_dir): End the filename with a quote depending on the
43263 command line state.
43264 (get_state): new function.
43265 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
43266 split the arguments and determine the current argument. When the
43267 argument string is not quoted, escape all spaces.
43269 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43271 * normal/sparc64/setjmp.S: New file.
43273 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43275 * include/grub/sparc64/libgcc.h: New file.
43276 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
43277 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
43278 normal/sparc64/setjmp.c.
43280 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
43282 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
43283 * kern/sparc64/cache.S: New file.
43284 * kern/sparc64/cache.c: Removed.
43285 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
43286 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
43288 (COMMON_LDFLAGS): Add -melf64_sparc.
43289 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
43290 (grubof_SOURCES): Use cache.S instead of cache.c.
43291 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
43292 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
43293 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
43295 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
43296 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
43297 (linux_mod_CFLAGS): Commented out.
43298 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
43299 out because module isn't built.
43300 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
43301 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
43302 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
43303 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
43304 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
43305 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43306 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43307 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
43308 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
43309 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
43310 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43311 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43312 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
43313 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
43315 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
43317 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
43318 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
43319 longer, because HFS should not be used on PC.
43321 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43323 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
43324 consistently within the loop.
43326 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
43328 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
43329 directory can not be read.
43331 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43333 * configure.ac (AC_INIT): Increase the version number to 1.91.
43335 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
43336 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
43337 term/i386/pc/serial.c.
43339 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43341 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
43342 file size must be permitted.
43344 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
43345 between %ah and %al.
43347 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43349 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
43351 Call the hook with a NUL-terminated filename.
43352 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
43355 * kern/term.c (cursor_state): New variable.
43356 (grub_term_set_current): Reset the cursor state on a new
43358 (grub_setcursor): Rewritten to use CURSOR_STATE.
43359 (grub_getcursor): New function.
43361 * include/grub/term.h (grub_getcursor): New prototype.
43363 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
43364 integers on ARM. Reported by Timothy Baldwin
43365 <T.E.Baldwin99@members.leeds.ac.uk>.
43367 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
43369 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
43371 (grub_sfs_dir): Likewise.
43373 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
43375 Add support for the SFS filesystem.
43377 * fs/sfs.c: New file.
43379 * DISTLIST: Added `fs/sfs.c'.
43381 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
43382 (grub_probefs_SOURCES): Likewise.
43383 (grub_emu_SOURCES): Likewise.
43384 (pkgdata_MODULES): Add `sfs.mod'.
43385 (sfs_mod_SOURCES): New variable.
43386 (sfs_mod_CFLAGS): Likewise.
43387 (sfs_mod_LDFLAGS): Likewise.
43389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
43390 (pkgdata_MODULES): Add `sfs.mod'.
43391 (sfs_mod_SOURCES): New variable.
43392 (sfs_mod_CFLAGS): Likewise.
43394 * util/grub-emu.c (main): Call `grub_sfs_init' and
43397 * include/grub/fs.h (grub_sfs_init): New prototype.
43398 (grub_sfs_fini): Likewise.
43400 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
43402 Add support for the AFFS filesystem.
43404 * fs/affs.c: New file.
43406 * DISTLIST: Added `fs/affs.c'.
43408 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
43409 (grub_probefs_SOURCES): Likewise.
43410 (grub_emu_SOURCES): Likewise.
43411 (pkgdata_MODULES): Add `affs.mod'.
43412 (affs_mod_SOURCES): New variable.
43413 (affs_mod_CFLAGS): Likewise.
43414 (affs_mod_LDFLAGS): Likewise.
43416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
43417 (pkgdata_MODULES): Add `affs.mod'.
43418 (affs_mod_SOURCES): New variable.
43419 (affs_mod_CFLAGS): Likewise.
43421 * util/grub-emu.c (main): Call `grub_affs_init' and
43424 * include/grub/fs.h (grub_affs_init): New prototype.
43425 (grub_affs_fini): Likewise.
43427 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43429 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
43431 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43433 * configure.ac: Accept `x86_64' as host_cpu. In that case add
43436 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
43439 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
43440 (COMMON_LDFLAGS): New variable.
43441 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
43442 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
43443 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
43444 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
43445 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
43446 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
43447 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
43448 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
43449 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
43450 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
43451 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43452 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43453 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
43454 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
43455 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
43457 (normal_mod_ASFLAGS): Add `-m32'.
43459 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
43460 (grub_host_size_t, grub_host_ssize_t): New types.
43461 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
43462 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
43463 `GRUB_HOST_SIZEOF_VOID_P'.
43465 * include/grub/kernel.h (struct grub_module_header): Type of
43466 member offset changed to `grub_host_off_t'. Type of member size
43467 changed to `grub_host_size_t'.
43468 (struct grub_module_info): Type of member offset changed to
43469 `grub_host_off_t'. Type of member size changed to
43470 `grub_host_size_t'.
43472 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
43474 Make GRUB's kernel compliant to Multiboot Specification.
43476 * kern/i386/pc/startup.S (multiboot_header): New label.
43477 (multiboot_entry): Likewise.
43478 (multiboot_trampoline): Likewise.
43480 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43481 Increased to 0x4A0.
43483 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
43484 put parentheses after a question mark.
43485 [!GRUB_UTIL] (my_mod): New variable.
43487 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
43489 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
43491 Adds support for the XFS filesystem. Btrees are not supported
43494 * fs/xfs.c: New file.
43496 * DISTLIST: Added `fs/xfs.c'.
43498 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
43499 (grub_probefs_SOURCES): Likewise.
43500 (grub_emu_SOURCES): Likewise.
43501 (pkgdata_MODULES): Add `xfs.mod'.
43502 (xfs_mod_SOURCES): New variable.
43503 (xfs_mod_CFLAGS): Likewise.
43505 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
43506 (pkgdata_MODULES): Add `xfs.mod'.
43507 (xfs_mod_SOURCES): New variable.
43508 (xfs_mod_CFLAGS): Likewise.
43510 * util/grub-emu.c (main): Call `grub_xfs_init' and
43513 * include/grub/fs.h (grub_xfs_init): New prototype.
43514 (grub_xfs_fini): Likewise.
43517 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
43519 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
43520 color modes, allow greater than 16 colors to be configured as
43523 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43525 * normal/completion.c (complete_arguments): Add the qualifier
43526 const into OPTIONS.
43528 From Omniflux <omniflux+lists@omniflux.com>:
43529 * include/grub/terminfo.h: New file.
43530 * include/grub/tparm.h: Likewise.
43531 * include/grub/i386/pc/serial.h: Likewise.
43532 * term/terminfo.c: Likewise.
43533 * term/tparm.c: Likewise.
43534 * term/i386/pc/serial.c: Likewise.
43535 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
43537 (terminfo_mod_SOURCES): New variable.
43538 (terminfo_mod_CFLAGS): Likewise.
43539 (serial_mod_SOURCES): Likewise.
43540 (serial_mod_CFLAGS): Likewise.
43542 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
43544 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
43545 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
43546 and kern/powerpc/ieee1275/cmain.c, respectively.
43548 * boot/powerpc/ieee1275/crt0.S: Moved to ...
43549 * kern/powerpc/ieee1275/crt0.S: ... here.
43551 * boot/powerpc/ieee1275/cmain.c: Moved to ...
43552 * kern/powerpc/ieee1275/cmain.c: ... here.
43554 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
43555 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
43556 instead of boot/powerpc/ieee1275/crt0.S and
43557 boot/powerpc/ieee1275/cmain.c, respectively.
43559 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
43560 sectors. It was not used anyway.
43562 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
43564 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
43565 `unused parameter' warning.
43567 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
43569 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
43571 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
43574 2005-08-28 Marco Gerards <metgerards@student.han.nl>
43576 * include/grub/normal.h (enum grub_completion_type): Added
43577 `GRUB_COMPLETION_TYPE_ARGUMENT'.
43579 * normal/cmdline.c (print_completion): Handle
43580 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
43581 * normal/menu_entry.c (store_completion): Likewise.
43583 * normal/completion.c (complete_arguments): New function.
43584 (grub_normal_do_completion): Call `complete_arguments' when the
43585 current words start with a dash.
43587 2005-08-27 Marco Gerards <metgerards@student.han.nl>
43589 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
43590 `gzio.mod' instead of `io.mod').
43592 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
43594 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
43595 (DISTDIRS): Added io and video.
43596 Rewrite the search routine to make an output consistently.
43598 * DISTLIST: Added conf/sparc64-ieee1275.mk,
43599 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
43600 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
43601 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
43602 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
43603 util/powerpc/ieee1275/misc.c.
43605 * include/grub/gzio.h: New file.
43606 * io/gzio.c: Likewise.
43608 * kern/file.c (grub_file_close): Call grub_device_close only if
43609 FILE->DEVICE is not NULL.
43611 * include/grub/mm.h [!NULL] (NULL): New macro.
43613 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
43615 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
43616 (pkgdata_MODULES): Added gzio.mod.
43617 (gzio_mod_SOURCES): New variable.
43618 (gzio_mod_CFLAGS): Likewise.
43620 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
43621 (pkgdata_MODULES): Added gzio.mod.
43622 (gzio_mod_SOURCES): New variable.
43623 (gzio_mod_CFLAGS): Likewise.
43625 * commands/cat.c: Include grub/gzio.h.
43626 (grub_cmd_cat): Use grub_gzfile_open instead of
43629 * commands/cmp.c: Include grub/gzio.h.
43630 (grub_cmd_cmp): Use grub_gzfile_open instead of
43633 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
43634 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
43636 (grub_rescue_cmd_module): Likewise.
43638 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
43640 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
43641 kern/sparc64/ieee1275/init.c because it contains _start.
43642 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
43644 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
43646 * configure.ac: Add support for sparc64 host with ieee1275
43648 * configure: Generated from configure.ac.
43649 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
43651 (grub_ofdisk_read): Likewise.
43652 (grub_ofdisk_open): Use %p to print pointer values, and cast the
43653 pointers as (void *) to remove a warning.
43654 (grub_ofdisk_close): Likewise.
43655 (grub_ofdisk_read): Likewise.
43656 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
43657 returns, so make it return void to remove a warning.
43658 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
43659 Corresponding prototype change.
43660 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
43661 values, and cast the pointers as (void *) to remove a warning.
43662 (grub_mm_dump): Likewise.
43663 * conf/sparc64-ieee1275.mk: New file.
43664 * conf/sparc64-ieee1275.rmk: Likewise.
43665 * include/grub/sparc64/setjmp.h: Likewise.
43666 * include/grub/sparc64/types.h: Likewise.
43667 * include/grub/sparc64/ieee1275/console.h: Likewise.
43668 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
43669 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
43670 * include/grub/sparc64/ieee1275/time.h: Likewise.
43671 * kern/sparc64/cache.c: Likewise.
43672 * kern/sparc64/dl.c: Likewise.
43673 * kern/sparc64/ieee1275/init.c: Likewise.
43674 * kern/sparc64/ieee1275/openfw.c: Likewise.
43676 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
43678 * util/console.c (grub_ncurses_putchar): If C is greater than
43679 0x7f, set C to a question mark.
43680 (grub_ncurses_getcharwidth): New function.
43681 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
43684 * normal/menu.c (print_entry): Made aware of Unicode. First,
43685 convert TITLE to UCS-4, and predict the cursor position by
43688 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
43690 * kern/misc.c (grub_utf16_to_utf8): Likewise.
43692 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43694 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
43695 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
43698 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
43699 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
43700 grub_strcpy and grub_strlen. Take it into account that a space
43701 character is inserted as a delimiter.
43703 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43705 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
43706 invalid magic in the error.
43708 * commands/search.c: New file.
43710 * util/grub-emu.c (main): Call grub_search_init and
43713 * kern/rescue.c (grub_rescue_print_disks): Removed.
43714 (grub_rescue_print_devices): New function.
43715 (grub_rescue_cmd_ls): Use grub_device_iterate with
43716 grub_rescue_print_devices instead of grub_disk_dev_iterate with
43717 grub_rescue_print_disks.
43719 * kern/partition.c (grub_partition_iterate): Return the result of
43720 PARTMAP->ITERATE instead of GRUB_ERRNO.
43722 * kern/device.c: Include grub/partition.h.
43723 (grub_device_iterate): New function.
43725 * include/grub/partition.h (grub_partition_iterate): Return int
43726 instead of grub_err_t.
43728 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
43730 [GRUB_UTIL] (grub_search_fini): Likewise.
43732 * include/grub/device.h (grub_device_iterate): New prototype.
43734 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
43736 (pkgdata_MODULES): Added search.mod.
43737 (search_mod_SOURCES): New variable.
43738 (search_mod_CFLAGS): Likewise.
43740 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
43741 (pkgdata_MODULES): Added search.mod.
43742 (search_mod_SOURCES): New variable.
43743 (search_mod_CFLAGS): Likewise.
43745 * commands/ls.c (grub_ls_list_disks): Renamed to ...
43746 (grub_ls_list_devices): ... this, and use grub_device_iterate.
43747 All callers changed.
43749 * DISTLIST: Added commands/search.c.
43751 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43753 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
43755 (grub_getcharwidth): New function.
43757 * kern/misc.c (grub_utf8_to_ucs4): New function.
43759 * include/grub/term.h (struct grub_term): Added a new member
43761 (grub_getcharwidth): New prototype.
43763 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
43765 * term/i386/pc/console.c (map_char): New function. Segregated from
43766 grub_console_putchar.
43767 (grub_console_putchar): Use map_char.
43768 (grub_console_getcharwidth): New function.
43769 (grub_console_term): Specified grub_console_getcharwidth as
43772 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
43773 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
43775 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
43777 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
43778 on grub_strtoul completely.
43779 (write_char): Declare local variables in the beginning of the
43781 (grub_vesafb_getcharwidth): New function.
43782 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
43785 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
43787 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
43788 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
43789 commands/i386/pc/vbetest.c.
43791 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
43792 call grub_vbe_get_controller_info again, because the returned
43793 information is volatile.
43794 (grub_vbe_set_video_mode): Mostly rewritten.
43795 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
43796 grub_vbe_status_t correctly.
43797 (grub_vbe_get_video_mode_info): Likewise.
43798 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
43799 several if statements.
43801 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
43802 * commands/i386/pc/vbeinfo.c: ... this.
43804 * commands/i386/pc/vbe_test.c: Renamed to ...
43805 * commands/i386/pc/vbetest.c: ... this.
43807 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
43809 (grub_cmd_vbeinfo): ... this. Save video modes before
43810 iterating. Skip a video mode, if it is not available, not enough
43811 information is given or it is monochrome. Show the memory
43812 model. Leave the interpretation of MODEVAR to grub_strtoul
43814 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
43815 (GRUB_MOD_FINI): Likewise.
43817 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
43818 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
43819 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
43820 duplicated grub_env_get. Leave the interpretation of MODEVAR to
43821 grub_strtoul completely.
43822 (real2pm): Removed.
43823 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
43824 (GRUB_MOD_FINI): Likewise.
43826 * normal/misc.c: Include grub/mm.h.
43828 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
43829 vbe_list_modes with vbetest.mod and vbeinfo.mod.
43830 (vbe_list_modes_mod_SOURCES): Removed.
43831 (vbe_list_modes_mod_CFLAGS): Likewise.
43832 (vbe_test_mod_SOURCES): Likewise.
43833 (vbe_test_mod_CFLAGS): Likewise.
43834 (vbeinfo_mod_SOURCES): New variable.
43835 (vbeinfo_mod_CFLAGS): Likewise.
43836 (vbetest_mod_SOURCES): Likewise.
43837 (vbetest_mod_CFLAGS): Likewise.
43839 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
43841 * normal/misc.c: New file.
43843 * DISTLIST: Added normal/misc.c.
43845 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
43846 DISK to HOOK. Call HOOK with DISK.
43847 * partmap/apple.c (apple_partition_map_iterate): Likewise.
43848 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43849 * partmap/sun.c (sun_partition_map_iterate): Likewise.
43851 * normal/menu_entry.c (struct screen): Added a new member
43852 "completion_shown".
43853 (completion_buffer): New global variable.
43854 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
43855 (store_completion): New function.
43856 (complete): Likewise.
43857 (clear_completions): Likewise.
43858 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
43859 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
43860 a tab, call complete.
43862 * normal/completion.c (disk_dev): Removed.
43863 (print_simple_completion): Likewise.
43864 (print_partition_completion): Likewise.
43865 (print_func): New global variable.
43866 (add_completion): Do not take the arguments WHAT or PRINT any
43867 longer. Added a new argument TYPE. Instead of printing directly,
43868 call PRINT_FUNC if not NULL.
43869 All callers changed.
43870 (complete_device): Use a local variable DEV instead of
43871 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
43872 (grub_normal_do_completion): Take a new argument HOOK. Do not
43873 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
43874 empty string, return NULL instead.
43875 All callers changed.
43877 * normal/cmdline.c (print_completion): New function.
43879 * kern/partition.c (grub_partition_iterate): Add an argument DISK
43881 All callers changed.
43883 * kern/disk.c (grub_print_partinfo): Removed.
43885 * include/grub/partition.h (struct grub_partition_map): Add a new
43886 argument DISK into HOOK of ITERATE.
43887 (grub_partition_iterate): Add a new argument DISK to HOOK.
43889 * include/grub/normal.h (enum grub_completion_type): New enum.
43890 (grub_completion_type_t): New type.
43891 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
43892 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
43893 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
43894 (GRUB_COMPLETION_TYPE_FILE): Likewise.
43895 (grub_normal_do_completion): Added a new argument HOOK.
43896 (grub_normal_print_device_info): New prototype.
43898 * include/grub/disk.h (grub_print_partinfo): Removed.
43900 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
43901 (normal_mod_SOURCES): Likewise.
43902 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43903 (normal_mod_SOURCES): Likewise.
43905 * commands/ls.c (grub_ls_list_disks): Use
43906 grub_normal_print_device_info instead of grub_print_partinfo. Free
43908 (grub_ls_list_files): Use grub_normal_print_device_info instead of
43909 duplicating the code.
43911 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
43913 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
43914 follow GCS more precisely.
43915 * commands/i386/pc/vbe_test.c: Likewise.
43916 * include/grub/i386/pc/vbe.h: Likewise.
43917 * term/i386/pc/vesafb.c: Likewise.
43918 * video/i386/pc/vbe.c: Likewise.
43920 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
43922 * DISTLIST: Added term/i386/pc/vesafb.c
43923 DISTLIST: Added video/i386/pc/vbe.c
43924 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
43925 DISTLIST: Added commands/i386/pc/vbe_test.c.
43926 * commands/i386/pc/vbe_list_modes.c: New file.
43927 * commands/i386/pc/vbe_test.c: Likewise.
43928 * term/i386/pc/vesafb.c: Likewise.
43929 * video/i386/pc/vbe.c: Likewise.
43930 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
43931 (grub_vbe_probe) Added prototype.
43932 (grub_vbe_set_video_mode) Likewise.
43933 (grub_vbe_get_video_mode) Likewise.
43934 (grub_vbe_get_video_mode_info) Likewise.
43935 (grub_vbe_set_pixel_rgb) Likewise.
43936 (grub_vbe_set_pixel_index) Likewise.
43937 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
43938 (pkgdata_MODULES): Added vesafb.mod.
43939 (pkgdata_MODULES): Added vbe_list_modes.mod.
43940 (pkgdata_MODULES): Added vbe_test.mod.
43941 (vbe_mod_SOURCES): Added.
43942 (vbe_mod_CFLAGS): Likewise.
43943 (vesafb_mod_SOURCES): Likewise.
43944 (vesafb_mod_CFLAGS): Likewise.
43945 (vbe_list_modes_mod_SOURCES): Likewise.
43946 (vbe_list_modes_mod_CFLAGS): Likewise.
43947 (vbe_test_mod_SOURCES): Likewise.
43948 (vbe_test_mod_CFLAGS): Likewise.
43950 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
43952 * normal/command.c (grub_command_execute): If INTERACTIVE is
43953 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
43954 CMDLINE. Disable the pager if INTERACTIVE is true.
43955 All callers are changed.
43957 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
43958 before reading a config file.
43959 * normal/main.c (read_config_file): Even if a command is not
43960 found, register it if it is within an entry.
43962 * util/grub-emu.c: Include sys/types.h and unistd.h.
43963 (options): Added --hold.
43964 (struct arguments): Added a new member "hold".
43965 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
43967 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
43968 cleared by a debugger, if it is not zero.
43970 * include/grub/normal.h (grub_command_execute): Add an argument
43973 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
43975 * DISTLIST: Added include/grub/i386/pc/vbe.h.
43977 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
43979 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
43980 program with another one, because the old one didn't detect a bug
43981 in gcc-3.4. Always use regparm 2, because the new test is still
43982 not enough for gcc-4.0. Someone must investigate a simple test
43983 case which detects a bug in gcc-4.0.
43985 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
43987 * DISTLIST: Added normal/completion.c.
43989 * normal/completion.c: New file.
43991 * term/i386/pc/console.c (grub_console_getwh): New function.
43992 (grub_console_term): Assign grub_console_getwh to getwh.
43994 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
43995 function is defined in normal/completion.c as
43996 grub_normal_do_completion.
43997 (grub_cmdline_get): Use grub_normal_do_completion instead of
44000 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44001 returns non-zero, otherwise return 0.
44002 (grub_partition_iterate): First, probe the partition map. Then,
44003 call ITERATE only for this partition map.
44005 * kern/misc.c (grub_strncmp): Rewritten.
44007 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44008 returns non-zero. Otherwise return 0.
44010 * include/grub/partition.h (grub_partition_map_iterate): Return
44011 int instead of void.
44013 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44015 * include/grub/misc.h (grub_strncmp): Change the type of N to
44018 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44021 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
44022 unsigned explicitly before comparing it with I.
44024 * kern/main.c (grub_env_write_root): Add the attribute unused into
44027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44028 normal/completion.c.
44029 (normal_mod_SOURCES): Likewise.
44030 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44031 (normal_mod_SOURCES): Likewise.
44033 * normal/command.c (grub_iterate_commands): If ITERATE returns
44034 non-zero, return one immediately.
44036 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44038 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44039 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44041 (grub_vbe_get_controller_info): New function.
44042 (grub_vbe_get_mode_info): Likewise.
44043 (grub_vbe_set_mode): Likewise.
44044 (grub_vbe_get_mode): Likewise.
44045 (grub_vbe_set_memory_window): Likewise.
44046 (grub_vbe_get_memory_window): Likewise.
44047 (grub_vbe_set_scanline_length): Likewise.
44048 (grub_vbe_get_scanline_length): Likewise.
44049 (grub_vbe_set_display_start): Likewise.
44050 (grub_vbe_get_display_start): Likewise.
44051 (grub_vbe_set_palette_data): Likewise.
44052 * include/grub/i386/pc/vbe.h: New file.
44054 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44056 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44057 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
44058 * DISTLIST: Likewise.
44059 * kern/ieee1275/of.c: Moved to ...
44060 * kern/ieee1275/ieee1275.c: ... here.
44062 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44064 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
44065 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
44066 Pass 0 as `end' parameter to grub_strtoul().
44068 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44070 * include/grub/powerpc/ieee1275/console.h: Do not include
44071 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
44073 (grub_console_cur_color): Remove i386-specific prototype.
44074 (grub_console_real_putchar): Likewise.
44075 (grub_console_checkkey): Likewise.
44076 (grub_console_getkey): Likewise.
44077 (grub_console_getxy): Likewise.
44078 (grub_console_gotoxy): Likewise.
44079 (grub_console_cls): Likewise.
44080 (grub_console_setcursor): Likewise.
44081 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
44082 Include <grub/machine/console.h>.
44083 * term/ieee1275/ofconsole.c: Likewise.
44085 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
44087 * Makefile.in (LIBLZO): New variable.
44089 * configure.ac: Check for LZO version 2.
44091 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
44092 lzo/lzo1x.h instead of lzo1x.h.
44094 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
44097 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
44098 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
44100 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
44101 copying the data from PARTITION to P.
44103 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44105 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
44106 negative, unload the module.
44108 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
44109 map is "pc_partition_map" but not "pc".
44110 (usage): Fix the description. The options are --boot-image and
44111 --core-image but not --boot-file or --core-file.
44112 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
44113 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
44116 * util/i386/pc/grub-install.in: Do not specify --boot-file or
44117 --core-file. Specify INSTALL_DEVICE as an argument.
44119 * util/console.c: Include config.h.
44120 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
44121 [HAVE_NCURSES_H]: Include ncurses.h.
44122 [HAVE_CURSES_H]: Include curses.h.
44123 [!A_NORMAL] (A_NORMAL): Defined as zero.
44124 [!A_STANDOUT] (A_STANDOUT): Likewise.
44126 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
44128 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
44130 * configure.ac: Check for curses libraries and headers.
44132 * Makefile.in (LIBCURSES): New variable.
44134 * genmk.rb (Script::rule): Set the executable bits.
44136 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
44137 name of the PC partition map is "pc_partition_map" but not "pc".
44139 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44141 * util/i386/pc/grub-install.in (grub_probefs): New variable.
44142 (modules): Likewise.
44143 (usage): Added descriptions for --modules and --grub-probefs.
44144 Handle --modules and --grub-probefs. Save the arguments in MODULES
44145 and GRUB_PROBEFS, respectively.
44146 Auto-detect a filesystem module against GRUBDIR. If the result is
44147 empty and modules are not specified explicitly, abort the
44148 installation. Add the result to MODULES.
44150 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
44151 disk/powerpc/ieee1275/ofdisk.c,
44152 include/grub/powerpc/ieee1275/init.h and
44153 term/powerpc/ieee1275/ofconsole.c.
44154 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
44155 term/ieee1275/ofconsole.c.
44157 * include/grub/powerpc/ieee1275/console.h: Resurrected.
44159 * COPYING: Upgraded to the latest version. Only the address of the
44160 FSF office has changed.
44162 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44164 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44165 kern/ieee1275.c with kern/ieee1275/of.c.
44167 * kern/ieee1275.c: Moved to ...
44168 * kern/ieee1275/of.c: ... here.
44170 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
44172 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
44175 * config.guess: Updated to the latest version from gnulib.
44176 * config.sub: Likewise.
44177 * install.sh: Likewise.
44178 * mkinstalldirs: Likewise.
44180 * include/grub/console.h: Removed. This file is arch-specific. Do
44181 not put this in include/grub.
44183 * include/grub/i386/pc/console.h: Resurrected.
44185 * util/console.c: Include grub/machine/console.h instead of
44187 * util/grub-emu.c: Likewise.
44189 2005-08-04 Marco Gerards <metgerards@student.han.nl>
44191 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
44194 From Vincent Pelletier <subdino2004@yahoo.fr>
44195 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
44196 Redefined to use grub_getwh.
44197 (grub_term): New member named getwh.
44198 (grub_getwh): New prototype.
44199 * kern/term.c (grub_getwh): New function.
44200 * term/i386/pc/console.c (grub_console_getwh): New function.
44201 (grub_console_term): New member `getwh'.
44202 * term/i386/pc/vga.c (grub_vga_getwh): New function.
44203 (grub_vga_term): New member `getwh'.
44204 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
44206 (grub_ofconsole_getw): New function.
44207 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
44208 (grub_ofconsole_term): New field named getwh and new initial
44211 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
44213 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
44214 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
44215 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
44216 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
44217 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
44218 of <grub/machine/ieee1275.h>.
44219 * commands/ieee1275/reboot.c: Likewise.
44220 * boot/powerpc/ieee1275/ieee1275.c: Move ...
44221 * kern/ieee1275.c: ... to here. All users updated. Change all
44222 parameter structs to use new type `grub_ieee1275_cell_t'.
44223 * term/powerpc/ieee1275/ofconsole.c: Move ...
44224 * term/ieee1275/ofconsole.c: ... to here. All users updated.
44225 * disk/powerpc/ieee1275/ofdisk.c: Move ...
44226 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
44227 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
44229 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
44230 Remove unused prototypes. All users updated.
44231 * include/grub/powerpc/ieee1275/console.h: Removed.
44232 * include/grub/powerpc/ieee1275/ieee1275.h: Define
44233 `grub_ieee1275_cell_t'.
44234 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
44235 Cast comparisons with -1 to the correct type.
44236 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
44237 type to match `grub_ieee1275_entry_fn'.
44239 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
44241 * DISTLIST: Added util/i386/pc/grub-probefs.c.
44243 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
44244 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
44246 (grub_probefs_SOURCES): New variable.
44248 * util/i386/pc/grub-probefs.c: New file.
44250 * util/i386/pc/grub-setup.c (main): Call
44251 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
44252 grub_hfs_init and grub_jfs_init to initialize the system. Call
44253 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
44254 grub_pc_partition_map_fini to finish the system.
44256 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
44258 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
44260 (grub_multiboot_load_elf32): Likewise.
44261 (grub_multiboot_is_elf64): Likewise.
44262 (grub_multiboot_load_elf64): Likewise.
44263 (grub_multiboot_load_elf): Likewise.
44264 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
44265 an ELF32 or ELF64 file.
44266 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
44268 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
44269 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
44270 NULL before calling FS->LABEL.
44271 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
44272 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
44273 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
44274 before calling FS->LABEL.
44276 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
44278 * util/i386/pc/grub-install.in (datadir): New variable.
44280 (pkgdatadir): New variable.
44281 (pkglibdir): Removed.
44283 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
44285 * DISTLIST: Added util/i386/pc/grub-install.in.
44287 * util/i386/pc/grub-install.in: New file.
44289 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
44290 (grub_install_SOURCES): Likewise.
44292 * genmk.rb: Added support for scripts.
44293 (Script): New class.
44294 (scripts): New variable.
44296 * Makefile.in (install-local): Install sbin_SCRIPTS by
44298 (uninstall): Remove sbin_SCRIPTS.
44300 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
44301 device, try to get a GRUB device by
44302 grub_util_biosdisk_get_grub_dev.
44305 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
44306 description for --device-map.
44308 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44310 Change the semantics of variable hooks. They now return strings
44311 instead of error values.
44313 * util/i386/pc/grub-setup.c: Include grub/env.h.
44314 (setup): Use grub_device_set_root instead of grub_env_set.
44316 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
44317 grub_env_get instead of grub_device_set_root and
44318 grub_device_get_root, respectively.
44320 * kern/main.c (grub_env_write_root): New function.
44321 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
44322 grub_env_set instead of grub_device_set_root.
44324 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
44326 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
44327 rather than calling ENV->WRITE_HOOK afterwards.
44328 (grub_env_get): Return the result of ENV->READ_HOOK rather than
44329 passing a pointer of a pointer.
44330 (grub_register_variable_hook): Change the types of "read_hook" and
44331 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
44333 Allocate the default empty string on the heap, because this string
44334 may be freed later.
44336 * kern/device.c: Include grub/env.h.
44337 (grub_device_set_root): Removed.
44338 (grub_device_get_root): Likewise.
44339 (grub_device_open): Use grub_env_get instead of
44340 grub_device_get_root.
44342 * include/grub/env.h (grub_env_read_hook_t): New type.
44343 (grub_env_write_hook_t): Likewise.
44344 (grub_env_var): Change the types of "read_hook" and "write_hook"
44345 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
44346 (grub_register_variable_hook): Likewise.
44348 * include/grub/device.h (grub_device_set_root): Removed.
44349 (grub_device_set_root): Likewise.
44351 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
44352 make sure that DIRNAME terminates with '/', so that
44353 grub_fat_find_dir will fail if PATH is not a directory.
44355 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
44357 Use the qualifier auto for print_files and print_files_long.
44358 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
44360 Put a newline only if there is no error.
44361 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
44364 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44366 * kern/partition.c (grub_partition_probe): Initialize PART to
44367 NULL. Otherwise, when no partition map is registered, this returns
44370 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
44372 * partmap/apple.c (apple_partition_map_iterate): Check if POS
44373 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
44376 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
44378 * commands/ls.c (grub_ls_list_disks): Print the filesystem
44379 information on each device, if it does not have partitions. Print
44380 "Device" instead of "Disk", because this function is not specific
44383 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
44384 static to ensure that it is put on the memory rather than a
44387 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44389 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
44390 (grub_cat_init): Likewise.
44391 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
44392 (options): Likewise.
44393 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
44394 (grub_configfile_init): Likewise.
44395 * font/manager.c (GRUB_MOD_INIT): Likewise.
44396 * commands/help.c (GRUB_MOD_INIT): Likewise.
44397 (grub_help_init): Likewise.
44398 * normal/command.c (grub_command_init): Likewise.
44399 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
44400 * disk/loopback.c (grub_loop_init): Likewise.
44401 (GRUB_MOD_INIT): Likewise.
44402 * commands/ls.c (grub_ls_init): Likewise.
44403 (GRUB_MOD_INIT): Likewise.
44404 (options): Likewise.
44405 * commands/boot.c (grub_boot_init): Likewise.
44406 (GRUB_MOD_INIT): Likewise.
44407 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
44408 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
44409 (GRUB_MOD_INIT): Likewise.
44410 * commands/cmp.c (grub_cmp_init): Likewise.
44411 (GRUB_MOD_INIT): Likewise.
44413 * normal/arg.c: Use <> instead of "" to include header files.
44414 (SHORT_ARG_HELP): New macro.
44415 (SHORT_ARG_USAGE): Likewise.
44416 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
44417 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
44419 (find_short): Check if C is 'h' or 'u' explicitly.
44420 (grub_arg_show_help): Use space characters instead of tabs. Treat
44421 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
44422 are shown with --help and --usage only if they are not used for
44423 the command itself.
44424 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
44427 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
44428 const into "longarg". Change the type of "shortarg" to int.
44430 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44432 * boot/i386/pc/boot.S (boot_drive_check): New label.
44434 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
44437 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
44438 which do not pass a boot drive correctly. Copied from GRUB Legacy.
44440 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44442 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
44443 When turning off Gate A20, skip the check and return immediately,
44444 because this is not fatal usually.
44446 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44448 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
44449 be 0x7C00 instead of 0x8000.
44451 * boot/i386/pc/pxeboot.S: Rewritten.
44453 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
44455 (gate_a20_check_state): Read a byte from 0x108000. Invert the
44458 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
44460 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
44461 robustness. This routine now supports a BIOS call and System
44462 Control Port A to modify the gate A20.
44464 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44465 Increased to 0x440.
44467 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
44469 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
44470 device path and resulting ihandle.
44471 (grub_ofdisk_close): dprintf the ihandle being closed.
44472 (grub_ofdisk_read): dprintf function parameters.
44473 * kern/mm.c (grub_mm_init_region): Likewise.
44474 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
44475 (grub_linux_boot): dprintf the Linux entry point, initrd address and
44476 size, and boot arguments.
44477 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
44478 before loading into memory.
44479 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
44480 before loading into memory.
44482 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
44484 * kern/mm.c: Added much documentation.
44485 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
44486 8, set to 5 instead of 8.
44488 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44490 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
44492 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
44493 (grub_mkdevicemap_SOURCES): New variable.
44495 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
44496 lib/device.c of GRUB Legacy.
44498 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44500 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
44501 instead of PATH is NULL.
44503 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
44505 * commands/cmp.c (BUFFER_SIZE): New macro.
44506 (grub_cmd_cmp): Close the right file at the right time. Compare
44507 only data just read. Don't report files of different size as
44508 identical. Dynamically allocate buffers. Move variable
44509 declarations at the beginning of function.
44511 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
44513 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
44516 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
44518 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
44519 when backspace is pressed at beginning of line.
44521 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
44523 * DISTLIST: Added genfslist.sh.
44525 * normal/main.c (fs_module_list): New variable.
44526 (autoload_fs_module): New function.
44527 (read_fs_list): Likewise.
44528 (grub_normal_execute): Call read_fs_list.
44530 * kern/fs.c (grub_fs_autoload_hook): New variable.
44531 (grub_fs_probe): Added support for auto-loading.
44533 * include/grub/normal.h (struct grub_fs_module_list): New struct.
44534 (grub_fs_module_list_t): New type.
44536 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
44537 (grub_fs_autoload_hook): New prototype.
44539 * genfslist.sh: New file.
44541 * genmk.rb: Added a rule to generate a filesystem list.
44543 2005-06-30 Marco Gerards <metgerards@student.han.nl>
44545 * configure.ac: Fix the test for cross-compiling.
44547 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
44548 define GRUB_UTIL anymore.
44550 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
44551 so this function works on other systems than just big endian.
44552 (load_modules): Likewise.
44553 (add_segments): Likewise.
44555 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
44557 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
44558 contains `l' modifier, get a long from va_arg().
44560 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
44562 * kern/mm.c (grub_free): If the next free block which is being
44563 merged is the first free block, set the first block to the block
44565 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
44567 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
44569 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
44570 `grub_ieee1275_chosen'.
44572 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
44574 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
44575 (grub_ieee1275_chosen): New variable.
44576 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
44578 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
44579 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
44580 Rename first argument to `phandle' for consistency.
44581 (grub_ieee1275_get_property_length): Likewise.
44582 (grub_ieee1275_next_property): Likewise. Change type of first argument
44583 to grub_ieee1275_phandle_t.
44584 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
44585 Move export next to declaration.
44586 (grub_ieee1275_chosen): New variable.
44587 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
44588 Correct cosmetic typo.
44589 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
44590 `grub_ieee1275_chosen'.
44591 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
44592 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
44593 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
44594 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
44595 `grub_ieee1275_chosen'.
44597 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
44599 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
44601 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
44602 /chosen/bootargs as "variable=value" pairs.
44604 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
44606 * include/grub/misc.h (grub_dprintf): New macro.
44607 (grub_real_dprintf): New prototype.
44608 (grub_strword): Likewise.
44609 (grub_iswordseparator): Likewise.
44610 * kern/misc.c (grub_real_dprintf): New function.
44611 (grub_strword): Likewise.
44612 (grub_iswordseparator): Likewise.
44614 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
44616 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
44617 (roundup): Remove macro.
44618 (grub_ieee1275_flags): Make static.
44619 (grub_ieee1275_realmode): Remove.
44620 (grub_ieee1275_test_flag): New function.
44621 (grub_ieee1275_set_flag): Likewise.
44622 (find_options): Rename to `grub_ieee1275_find_options'; update
44623 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
44624 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
44625 (cmain): New prototype.
44626 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
44627 `grub_ieee1275_flags' directly.
44628 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
44629 machine/biosdisk.h.
44630 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
44631 Don't include grub/machine/init.h.
44632 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
44633 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
44635 (grub_ieee1275_realmode): Likewise.
44636 (grub_ieee1275_flag): New enum.
44637 (grub_ieee1275_test_flag): New prototype.
44638 (grub_ieee1275_set_flag): New prototype.
44639 * include/grub/powerpc/ieee1275/init.h: Remove file.
44640 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
44641 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
44642 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
44643 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
44645 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
44646 `grub_ieee1275_test_flag'.
44647 (grub_ieee1275_encode_devname): Likewise.
44649 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
44651 * include/grub/powerpc/ieee1275/ieee1275.h
44652 (grub_ieee1275_encode_devname): New prototype.
44653 (grub_ieee1275_get_filename): Likewise.
44654 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
44656 (grub_set_prefix): Likewise.
44657 (grub_machine_init): Call grub_set_prefix.
44658 * kern/powerpc/ieee1275/openfw.c: Fix typos.
44659 (grub_parse_type): New enum.
44660 (grub_ieee1275_get_devargs): New function.
44661 (grub_ieee1275_get_devname): Likewise.
44662 (grub_ieee1275_parse_args): Likewise.
44663 (grub_ieee1275_get_filename): Likewise.
44664 (grub_ieee1275_encode_devname): Likewise.
44666 2005-03-30 Marco Gerards <metgerards@student.han.nl>
44668 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
44669 `grub_loader_unset'.
44671 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
44673 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
44674 instead of grub_ieee1275_interpret.
44675 (grub_halt_init): New function.
44676 (grub_halt_fini): Likewise.
44677 (GRUB_MOD_INIT): Correct message grammar.
44678 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
44679 instead of grub_ieee1275_interpret.
44680 (grub_reboot_init): New function.
44681 (grub_reboot_fini): Likewise.
44682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
44683 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
44684 util/i386/pc/misc.c with commands/ieee1275/halt.c,
44685 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
44686 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
44688 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
44690 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
44692 (grub_halt): Likewise.
44693 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
44694 (cmain): Remove __attribute__((unused)).
44695 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
44696 (grub_heap_len): Likewise.
44697 (grub_machine_fini): New function.
44698 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
44699 (grub_halt): Likewise.
44700 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
44702 * util/powerpc/ieee1275/misc.c: New file.
44704 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
44706 * DISTLIST: New file.
44707 * gendistlist.sh: Likewise.
44709 * Makefile.in (COMMON_DISTFILES): Removed.
44710 (BOOT_DISTFILES): Likewise.
44711 (CONF_DISTFILES): Likewise.
44712 (DISK_DISTFILES): Likewise.
44713 (FS_DISTFILES): Likewise.
44714 (INCLUDE_DISTFILES): Likewise.
44715 (KERN_DISTFILES): Likewise.
44716 (LOADER_DISTFILES): Likewise.
44717 (TERM_DISTFILES): Likewise.
44718 (UTIL_DISTFILES): Likewise.
44719 (DISTFILES): Likewise.
44720 (uninstall): Uninstall files in $(pkgdata_DATA).
44721 (DISTLIST): New target.
44722 (distdir): Use the contents of the file DISTLIST to get a list of
44725 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
44727 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
44728 descriptor. This is ported from GRUB Legacy.
44730 * gencmdlist.sh: Added an extra semicolon to make it work with
44731 old sed versions. Reported by Robert Bihlmeyer
44732 <robbe@orcus.priv.at>.
44734 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
44736 Automatic loading of commands is supported.
44738 * normal/main.c (read_command_list): New function.
44739 (grub_normal_execute): Call read_command_list.
44741 * normal/command.c (grub_register_command): Return zero or CMD.
44742 Allocate CMD->NAME from the heap.
44743 Initialize CMD->MODULE_NAME to zero.
44744 Find the same name as well. If the same command is found and it is
44745 a dummy command, overwrite members. If it is not a dummy command,
44747 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
44748 (grub_command_find): If a dummy command is found, load a module
44749 and retry to find a command only once.
44751 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
44752 make sure that each command is loaded.
44754 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
44756 (struct grub_command): Remove const from the member `name'.
44757 Add a new member `module_name'.
44758 (grub_register_command): Return grub_command_t.
44760 * commands/help.c (grub_cmd_help): Call grub_command_find to make
44761 sure that each command is loaded.
44763 * genmk.rb (PModule::rule): Specify a module name without the
44764 suffix ".mod" to gencmdlist.sh.
44766 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
44768 * gencmdlist.sh: New file.
44770 * genmk.rb (PModule::rule): Generate a rule for a command list.
44772 Generate command.lst from $(COMMANDFILES).
44774 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
44775 (DATA): Added $(pkgdata_DATA).
44776 (install-local): Install files in $(pkgdata_DATA).
44778 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
44780 * term/i386/pc/vga.c (debug_command): Removed.
44781 (GRUB_MOD_INIT): Do not register the command "debug".
44783 From Hollis Blanchard:
44784 * commands/configfile.c: New file.
44785 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44786 commands/configfile.c.
44787 (pkgdata_MODULES): Added configfile.mod.
44788 (configfile_mod_SOURCES): New variable.
44789 (configfile_mod_CFLAGS): Likewise.
44790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44791 commands/configfile.c.
44792 (pkgdata_MODULES): Added configfile.mod.
44793 (configfile_mod_SOURCES): New variable.
44794 (configfile_mod_CFLAGS): Likewise.
44795 * util/grub-emu.c (main): Call grub_configfile_init and
44796 grub_configfile_fini.
44797 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
44799 [GRUB_UTIL] (grub_configfile_fini): Likewise.
44801 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
44803 * normal/arg.c (grub_arg_show_help): Do not show the bug report
44806 * commands/help.c (grub_cmd_help): Do not print newlines after
44807 the last command in print_command_help.
44809 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
44811 * commands/default.h: New file.
44812 * commands/timeout.h: Likewise.
44813 * normal/context.c: Likewise.
44815 * util/misc.c: Do not include sys/times.h.
44816 Include sys/time.h and grub/machine/time.h.
44817 (grub_get_rtc): Rewritten with gettimeofday.
44819 * util/grub-emu.c (main): Call grub_default_init and
44820 grub_timeout_init before grub_normal_init, and call
44821 grub_timeout_fini and grub_default_fini after grub_main.
44823 * util/console.c (grub_ncurses_checkkey): Return the read
44826 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
44829 * normal/main.c (read_config_file): Push MENU. If this fails,
44830 print an error and wait for a user input.
44831 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
44832 If a menu is empty or an error occurs, pop MENU.
44833 (grub_normal_execute): Pop and free MENU after grub_menu_run
44836 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
44838 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
44840 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
44842 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
44844 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
44847 * include/grub/normal.h (struct grub_menu_list): New struct.
44848 (grub_menu_list_t): New type.
44849 (struct grub_context): New struct.
44850 (grub_context_t): New type.
44851 (grub_register_command): Got rid of EXPORT_FUNC.
44852 (grub_unregister_command): Likewise.
44853 (grub_context_get): New prototype.
44854 (grub_context_get_current_menu): Likewise.
44855 (grub_context_push_menu): Likewise.
44856 (grub_context_pop_menu): Likewise.
44857 [GRUB_UTIL] (grub_default_init): Likewise.
44858 [GRUB_UTIL] (grub_default_fini): Likewise.
44859 [GRUB_UTIL] (grub_timeout_init): Likewise.
44860 [GRUB_UTIL] (grub_timeout_fini): Likewise.
44862 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
44863 commands/timeout.c and normal/context.c.
44864 (pkgdata_MODULES): Added default.mod and timeout.mod.
44865 (normal_mod_SOURCES): Added normal/context.c.
44866 (default_mod_SOURCES): New variable.
44867 (default_mod_CFLAGS): Likewise.
44868 (timeout_mod_SOURCES): Likewise.
44869 (timeout_mod_CFLAGS): Likewise.
44870 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
44872 (pkgdata_MODULES): Added default.mod and timeout.mod.
44873 (normal_mod_SOURCES): Added normal/context.c.
44874 (default_mod_SOURCES): New variable.
44875 (default_mod_CFLAGS): Likewise.
44876 (timeout_mod_SOURCES): Likewise.
44877 (timeout_mod_CFLAGS): Likewise.
44879 * Makefile.in (all-local): Added $(MKFILES).
44881 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
44883 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
44884 (grub_emu_SOURCES): Likewise.
44885 (pkgdata_MODULES): Add `sun.mod'.
44886 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
44887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44889 (pkgdata_MODULES): Add `sun.mod'.
44890 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
44891 * include/grub/partition.h (grub_sun_partition_map_init): New
44893 (grub_sun_partition_map_fini): Likewise.
44894 * partmap/sun.c: New file.
44895 * util/grub-emu.c (main): Initialize and de-initialize the sun
44896 partitionmap support.
44898 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
44900 This implements an Emacs-like menu entry editor.
44902 * normal/menu_entry.c: New file.
44904 * util/console.c (grub_ncurses_putchar): Translate some Unicode
44905 characters to ASCII.
44906 (saved_char): New variable.
44907 (grub_ncurses_checkkey): Rewritten completely.
44908 (grub_ncurses_getkey): Likewise.
44909 (grub_ncurses_init): Call raw instead of cbreak.
44911 * normal/menu.c (print_entry): Do not put a space.
44912 (init_page): Renamed to ...
44913 (grub_menu_init_page): ... this. All callers changed.
44914 (edit_menu_entry): Removed.
44915 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
44917 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
44919 * kern/misc.c (grub_vprintf): Call grub_refresh.
44921 * normal/menu.c (DISP_LEFT): Renamed to ...
44922 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
44923 * normal/menu.c (DISP_UP): Renamed to ...
44924 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
44925 * normal/menu.c (DISP_RIGHT): Renamed to ...
44926 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
44927 * normal/menu.c (DISP_DOWN): Renamed to ...
44928 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
44929 * normal/menu.c (DISP_HLINE): Renamed to ...
44930 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
44931 * normal/menu.c (DISP_VLINE): Renamed to ...
44932 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
44933 * normal/menu.c (DISP_UL): Renamed to ...
44934 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
44935 * normal/menu.c (DISP_UR): Renamed to ...
44936 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
44937 * normal/menu.c (DISP_LL): Renamed to ...
44938 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
44939 * normal/menu.c (DISP_LR): Renamed to ...
44940 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
44941 * normal/menu.c (TERM_WIDTH): Renamed to ...
44942 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
44943 * normal/menu.c (TERM_HEIGHT): Renamed to ...
44944 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
44945 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
44946 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
44947 * normal/menu.c (TERM_MARGIN): Renamed to ...
44948 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
44949 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
44950 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
44951 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
44952 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
44953 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
44954 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
44955 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
44956 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
44957 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
44958 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
44959 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
44960 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
44961 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
44962 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
44963 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
44964 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
44965 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
44966 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
44967 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
44968 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
44969 All callers changed.
44971 * include/grub/normal.h: New prototype.
44973 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44974 normal/menu_entry.c.
44975 (normal_mod_SOURCES): Likewise.
44976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44977 (normal_mod_SOURCES): Likewise.
44979 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
44981 * include/grub/normal.h (grub_halt_init): New prototype.
44982 (grub_halt_fini): Likewise.
44983 (grub_reboot_init): Likewise.
44984 (grub_reboot_fini): Likewise.
44986 * util/grub-emu.c: Include signal.h.
44987 (main_env): New global variable.
44988 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
44990 (grub_machine_fini): New function.
44991 (main): Call grub_halt_init and grub_reboot_init before
44992 grub_main, and grub_reboot_fini and grub_halt_fini after it.
44993 Call setjmp with MAIN_ENV to go back afterwards.
44994 Call grub_machine_fini right before return.
44996 * include/grub/util/misc.h: Include setjmp.h.
44997 (main_env): New prototype.
44999 * include/grub/kernel.h (grub_machine_fini): New prototype.
45000 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45001 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45003 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45004 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45005 * term/i386/pc/console.c (grub_console_fini): Likewise.
45007 * util/i386/pc/misc.c: New file.
45009 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45010 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45011 commands/i386/pc/reboot.c.
45013 2005-02-14 Guillem Jover <guillem@hadrons.org>
45015 * include/grub/dl.h (grub_dl_check_header): New prototype.
45016 (grub_arch_dl_check_header): Change return type to grub_err_t,
45017 remove size parameter and export function. Update all callers.
45018 * kern/dl.c (grub_dl_check_header): New function.
45019 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45020 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45021 are inside the core.
45022 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45023 independent ELF header checks.
45024 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45025 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45026 `grub_dl_check_header' instead of explicit checks. Check for the
45028 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45029 `grub_dl_check_header' instead of explicit checks. Remove arch
45030 specific ELF header checks.
45032 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45035 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45037 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45038 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45040 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45042 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
45043 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
45044 (part_map_iterate): Clear `grub_errno' and return 0 if
45045 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
45046 * partmap/amiga.c (amiga_partition_map_iterate): Return
45047 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45048 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45050 2005-02-01 Guillem Jover <guillem@hadrons.org>
45052 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
45055 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45057 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
45059 (grub_rescue_cmd_linux): New prototype.
45060 (grub_rescue_cmd_initrd): Likewise.
45061 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
45063 (grub_linux_release_mem): Release the memory for the initrd.
45064 (grub_load_linux): Renamed from this...
45065 (grub_rescue_cmd_linux): ...To this. Changed all callers.
45066 Changed `entry' not to be static. Loop over memory regions to
45067 find another one when the default fails.
45068 (grub_rescue_cmd_initrd): New function.
45069 (grub_linux_init): Remove function.
45070 (grub_linux_fini): Likewise.
45071 (GRUB_MOD_INIT): Register `initrd'.
45072 (GRUB_MOD_FINI): Unregister `initrd'.
45073 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
45075 (grub_linux_normal_fini): Likewise.
45076 (GRUB_MOD_INIT): Register `initrd'.
45077 (GRUB_MOD_FINI): Unregister `initrd'.
45079 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45081 * commands/help.c: New file.
45082 * normal/arg.c (show_help): Renamed to...
45083 (grub_arg_show_help): ... this.
45084 * commands/i386/pc/halt.c: New file.
45085 * commands/i386/pc/reboot.c: Likewise.
45086 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
45087 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
45088 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
45089 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
45091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45093 (pkgdata_MODULES): Add `help.mod'.
45094 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
45095 * grub/i386/pc/init.h (grub_reboot): New prototype.
45096 (grub_halt): Likewise.
45097 * include/grub/normal.h (grub_arg_show_help): New prototype.
45098 (grub_help_init): Likewise.
45099 (grub_help_fini): Likewise.
45100 * util/grub-emu.c (main): Initialize and deinitialize the help
45103 * normal/cmdline.c (grub_cmdline_get): Doc fix.
45105 * normal/command.c (grub_command_init): Fixed the description of
45106 the `set' and `unset' commands.
45108 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45110 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
45112 * commands/ieee1275/halt.c: New file.
45113 * commands/ieee1275/reboot.c: Likewise.
45114 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
45115 `__attribute__ ((unused))'. Some GCS related fixed.
45116 (grub_suspend_init) [GRUB_UTIL]: Function removed.
45117 (grub_suspend_fini): Likewise.
45118 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
45120 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
45121 (halt_mod_CFLAGS): New variables.
45122 * include/grub/powerpc/ieee1275/ieee1275.h
45123 (grub_ieee1275_interpret): New prototype.
45125 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
45127 * include/grub/misc.h (memmove): New prototype.
45128 (memcpy): Likewise.
45130 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
45132 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
45133 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
45135 2005-01-22 Marco Gerards <metgerards@student.han.nl>
45137 * kern/misc.c (grub_strndup): Function rewritten.
45139 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
45141 * normal/menu.c (TERM_WIDTH): Macro redefined.
45142 (TERM_TOP_BORDER_Y): Likewise.
45143 (draw_border): Replaced while-loop by a for-loop. Make the number
45144 of lines consistent with the number of lines displayed in
45145 print_entries. Added a margin below the rectangle.
45146 (print_entry): Make the entry fit in the rectangle.
45147 (print_entries): Display the scroll arrows next to the right
45150 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45152 * fs/minix.c (grub_minix_find_file): Reserve more space for
45153 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
45154 `grub_strncpy' to copy `path' into it.
45156 2005-01-21 Marco Gerards <metgerards@student.han.nl>
45158 Add the loopback device, a device via which files can be accessed
45161 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
45162 (pkgdata_MODULES): Add loopback.mod.
45163 (loopback_mod_SOURCES): New variable.
45164 (loopback_mod_CFLAGS): Likewise.
45165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45167 (pkgdata_MODULES): Add loopback.mod.
45168 (loopback_mod_SOURCES): New variable.
45169 (loopback_mod_CFLAGS): Likewise.
45170 * disk/loopback.c: new file.
45171 * include/grub/normal.h (grub_loop_init): New prototype.
45172 (grub_loop_fini): New prototype.
45173 * util/grub-emu.c (main): Initialize and de-initialize loopback
45175 * include/grub/disk.h (grub_disk_dev_id): Add
45176 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
45178 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
45180 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
45182 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
45183 (suspend_mod_SOURCES): New variable.
45184 (suspend_mod_CFLAGS): Likewise.
45185 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
45187 * commands/ieee1275/suspend.c: New file.
45189 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45191 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
45192 ((unused))' to `__attribute__ ((used))'.
45193 (GRUB_MOD_FINI): Likewise.
45194 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
45195 * genmk.rb (PModule): Assign space to common symbols when linking
45198 2005-01-20 Marco Gerards <metgerards@student.han.nl>
45200 * include/grub/mm.h (grub_mm_init_region): Change the type of the
45201 `unsigned' arguments to `grub_size_t'.
45202 (grub_malloc): Likewise.
45203 (grub_realloc): Likewise.
45204 (grub_memalign): Likewise.
45205 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
45206 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45207 * util/misc.c (grub_malloc): Likewise.
45208 (grub_realloc): Likewise.
45209 * kern/mm.c (get_header_from_pointer): Change the casts to
45210 `unsigned' into a cast to `grub_size_t'.
45212 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
45213 point to `currnode' when `currnode' is changed.
45215 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
45216 Schottelius <nico-linux@schottelius.org>.
45218 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
45220 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
45221 (note_path): Remove variable.
45222 (GRUB_IEEE1275_NOTE_NAME): New macro.
45223 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
45224 (grub_ieee1275_note_hdr): New structure.
45225 (grub_ieee1275_note_desc): Likewise.
45226 (grub_ieee1275_note): Likewise.
45227 (load_note): Remove `dir' argument. All callers updated. Remove
45228 `note_img' and `path'. Do not load a file from `note_path'.
45229 Initialize a struct grub_ieee1275_note and write that to `out'.
45230 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
45232 2005-01-05 Marco Gerards <metgerards@student.han.nl>
45234 * util/misc.c (grub_util_read_image): Revert last change. It
45235 called `grub_util_read_at', which seeks from the beginning of the
45238 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
45240 * TODO: Add note about endianness in grub-mkimage.
45241 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
45243 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
45244 (grub_mkimage_SOURCES): New target.
45245 * include/grub/kernel.h (grub_start_addr): Remove variable.
45246 (grub_end_addr): Likewise.
45247 (grub_total_module_size): Likewise.
45248 (grub_kernel_image_size): Likewise.
45249 (GRUB_MODULE_MAGIC): New constant.
45250 (grub_module_info): New structure.
45251 (grub_arch_modules_addr): New prototype.
45252 (grub_get_end_addr): Remove prototype.
45253 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
45254 * include/grub/powerpc/ieee1275/kernel.h: New file.
45255 * include/grub/util/misc.h (grub_util_get_fp_size): New
45257 (grub_util_read_at): Likewise.
45258 (grub_util_write_image_at): Likewise.
45259 * kern/main.c (grub_get_end_addr): Remove function.
45260 (grub_load_modules): Call grub_arch_modules_addr instead of using
45261 grub_end_addr. Look for a grub_module_info struct in memory. Use
45262 the grub_module_info fields instead of calling grub_get_end_addr
45263 as loop conditions. Move grub_add_unused_region code here.
45264 (grub_add_unused_region): Remove function.
45265 * kern/i386/pc/init.c: Include grub/cache.h.
45266 (grub_machine_init): Remove call to grub_get_end_addr. Remove
45267 one call to add_mem_region.
45268 (grub_arch_modules_addr): New function.
45269 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
45270 (grub_total_module_size): Likewise.
45271 Include grub/machine/kernel.h.
45272 (grub_arch_modules_addr): New function.
45273 * util/grub-emu.c (grub_end_addr): Remove variable.
45274 (grub_total_module_size): Likewise.
45275 (grub_arch_modules_addr): New function.
45276 * util/misc.c: Include unistd.h.
45277 (grub_util_get_fp_size): New function.
45278 (grub_util_read_at): Likewise.
45279 (grub_util_write_image_at): Likewise.
45280 (grub_util_read_image): Call grub_util_read_at.
45281 (grub_util_write_image): Call grub_util_write_image_at.
45282 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
45283 additional memory in kernel_img for a struct grub_module_info.
45284 Fill in that grub_module_info.
45285 * util/powerpc/ieee1275/grub-mkimage.c: New file.
45287 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45289 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
45291 * include/grub/powerpc/ieee1275/ieee1275.h
45292 (grub_ieee1275_milliseconds): New prototype.
45293 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
45295 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
45296 grub_ieee1275_milliseconds.
45298 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
45300 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
45302 (find_options): New function.
45303 (cmain): Call find_options.
45304 * include/grub/powerpc/ieee1275/ieee1275.h
45305 (grub_ieee1275_realmode): New extern variable.
45306 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
45307 grub_map if grub_ieee1275_realmode is false.
45309 2004-12-29 Marco Gerards <metgerards@student.han.nl>
45311 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
45312 lines are inserted and make it work like readline. Reported by
45313 Vincent Pelletier <subdino2004@yahoo.fr>.
45315 2004-12-28 Marco Gerards <metgerards@student.han.nl>
45317 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
45319 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
45320 `kern/powerpc/cache.S'.
45322 2004-12-27 Marco Gerards <metgerards@student.han.nl>
45324 * genmk.rb: Handle the `Program' class in the main loop. Written
45325 by Johan Rydberg <jrydberg@gnu.org>.
45326 (Program): New class.
45327 (programs): New variable.
45328 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
45329 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
45330 instead of "grub/kernel.h". Include <grub/machine/init.h>.
45331 (help_arch): Function removed.
45332 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
45333 `powerpc/libgcc.h' and `loader.h'.
45334 (pkgdata_PROGRAMS): New variable.
45335 (sbin_UTILITIES): Variable removed.
45336 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
45337 (grubof_SOURCES): Variable re-defined so it only includes the
45338 core functionality.
45339 (grubof_CFLAGS): Remove `-DGRUBOF'.
45340 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
45341 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
45342 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
45343 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
45344 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
45345 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
45346 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
45347 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
45348 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
45349 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
45350 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45351 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
45352 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
45353 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
45354 (pc_mod_CFLAGS): New variables.
45355 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
45356 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
45357 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
45358 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
45360 * include/grub/i386/pc/init.h (grub_os_area_addr)
45361 (rub_os_area_size): ... to here.
45362 * include/grub/powerpc/ieee1275/ieee1275.h
45363 (grub_ieee1275_entry_fn): Export symbol.
45364 * include/grub/powerpc/ieee1275/init.h: New file.
45365 * include/grub/powerpc/libgcc.h: Likewise.
45366 * include/grub/cache.h: Likewise.
45367 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
45368 <hollis@penguinppc.org>.
45369 * kern/dl.c: Include <grub/cache.h>.
45370 (grub_dl_flush_cache): New function.
45371 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
45373 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
45374 (grub_console_init): Removed prototypes.
45375 (grub_machine_init): Don't initialize the modules anymore.
45376 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
45378 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
45379 Macro undef removed.
45380 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
45381 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
45382 relocation `R_PPC_REL32'. Return an error when the relocation is
45384 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
45385 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
45386 * util/misc.c (grub_arch_sync_caches): Likewise.
45388 2004-12-19 Marco Gerards <metgerards@student.han.nl>
45390 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
45391 `symlist.c', add `grubof_symlist.c'.
45392 (symlist.c): Variable removed.
45393 (grubof_HEADERS): Variable added.
45394 (grubof_symlist.c): New target.
45395 (kernel_syms.lst): Use `grubof_HEADERS' instead of
45396 `kernel_img_HEADERS'.
45397 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
45398 * kern/powerpc/dl.c: New file.
45399 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
45401 (grub_arch_dl_relocate_symbols): Likewise.
45402 (grub_register_exported_symbols): Likewise.
45404 2004-12-13 Marco Gerards <metgerards@student.han.nl>
45406 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
45407 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
45408 to fail instead. Reported by Vincent Pelletier
45409 <subdino2004@yahoo.fr>.
45411 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
45412 it is not allocated. Reported by Vincent Pelletier
45413 <subdino2004@yahoo.fr>.
45415 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
45416 output so the output looks better.
45418 2004-12-04 Marco Gerards <metgerards@student.han.nl>
45420 Modulize the partition map support and add support for the amiga
45423 * commands/ls.c: Include <grub/partition.h> instead of
45424 <grub/machine/partition.h>.
45425 * kern/disk.c: Likewise.
45426 * kern/rescue.c: Likewise.
45427 * loader/i386/pc/chainloader.c: Likewise.
45428 * normal/cmdline.c: Likewise.
45429 * kern/powerpc/ieee1275/init.c: Likewise.
45430 (grub_machine_init): Call `grub_pc_partition_map_init',
45431 `grub_amiga_partition_map_init' and
45432 `grub_apple_partition_map_init'.
45433 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
45434 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
45435 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
45436 `partition.h' and `pc_partition.h'.
45437 (grub_setup_SOURCES): Remove
45438 `disk/i386/pc/partition.c'. Add `kern/partition.c',
45439 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45440 (grub_emu_SOURCES): Likewise.
45441 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
45442 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
45443 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
45444 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45445 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
45446 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45447 (grubof_SOURCES): Likewise.
45448 * disk/i386/pc/partition.c: File removed.
45449 * disk/powerpc/ieee1275/partition.c: Likewise.
45450 * include/grub/powerpc/ieee1275/partition.h: Likewise.
45451 * include/grub/i386/pc/partition.h: Likewise.
45452 * kern/partition.c: New file.
45453 * partmap/amiga.c: Likewise.
45454 * partmap/apple.c: Likewise.
45455 * partmap/pc.c: Likewise.
45456 * include/grub/partition.h: Likewise..
45457 * include/grub/pc_partition.h: Likewise.
45458 * util/grub-emu.c: Include <grub/partition.h> instead of
45459 <grub/machine/partition.h>.
45460 (main): Call `grub_pc_partition_map_init',
45461 `grub_amiga_partition_map_init' and
45462 `grub_apple_partition_map_init' and deinitialize afterwards.
45463 * util/i386/pc/biosdisk.c: Include `#include
45464 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45465 `<grub/machine/partition.h>'.
45466 * util/i386/pc/grub-setup.c: Likewise.
45467 * util/i386/pc/biosdisk.c: Likewise.
45468 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
45469 partition information in case of a PC partition.
45470 * util/i386/pc/grub-setup.c: Include `#include
45471 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45472 `<grub/machine/partition.h>'.
45473 (setup): Only access the PC specific partition information in case
45476 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
45478 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
45479 (grub_longjmp): Likewise.
45480 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
45482 * normal/powerpc/setjmp.S: New file.
45483 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
45484 `normal/powerpc/setjmp.S'.
45485 (grubof_CFLAGS): Add `-DGRUBOF'.
45486 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
45487 [GRUB_UTIL && !GRUBOF].
45489 2004-11-16 Marco Gerards <metgerards@student.han.nl>
45491 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
45492 property named `name'. Correctly handle the error returned by
45493 `grub_ieee1275_finddevice' if a device can not be opened.
45495 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
45497 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
45498 `actual' for negativity.
45499 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45502 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45504 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
45505 (PAGE_OFFSET): New macro.
45506 (CRTC_ADDR_PORT): Likewise.
45507 (CRTC_DATA_PORT): Likewise.
45508 (START_ADDR_HIGH_REGISTER): Likewise.
45509 (START_ADDR_LOW_REGISTER): Likewise.
45510 (GRAPHICS_ADDR_PORT): Likewise.
45511 (GRAPHICS_DATA_PORT): Likewise.
45512 (READ_MAP_REGISTER): Likewise.
45513 (INPUT_STATUS1_REGISTER): Likewise.
45514 (INPUT_STATUS1_VERTR_BIT): Likewise.
45515 (page): New variable.
45516 (wait_vretrace): New function.
45517 (set_read_map): Likewise.
45518 (set_start_address): Likewise.
45519 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
45521 (check_vga_mem): Take the page into account.
45522 (write_char): Likewise.
45523 (write_cursor): Likewise.
45524 (scroll_up): Likewise. Copy the page to the page that is not
45525 shown and switch between both pages.
45526 (grub_vga_putchar): Fix off by one error.
45527 (grub_vga_cls): Wait for the vertical retrace. Take the page into
45530 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45532 Add support for iso9660 (including rockridge).
45534 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45535 (iso9660_mod_SOURCES): New variable.
45536 (iso9660_mod_CFLAGS): Likewise.
45537 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45538 * include/grub/fs.h (grub_iso9660_init): New prototype.
45539 * util/grub-emu.c (main): Call `grub_iso9660_init'.
45540 * fs/iso9660.c: New file.
45542 * include/grub/misc.h (grub_strncat): New prototype.
45543 * kern/misc.c (grub_strncat): New function.
45545 * fs/hfs.c (grub_hfs_mount): Translate the error
45546 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
45547 * fs/jfs.c (grub_jfs_mount): Likewise.
45548 * fs/ufs.c (grub_ufs_mount): Likewise.
45550 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
45552 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
45553 which initialized BAT registers.
45554 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
45555 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
45557 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
45558 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
45560 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
45561 (grub_mapclaim): Likewise.
45562 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
45563 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
45566 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
45568 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
45569 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
45570 -ffreestanding and -msoft-float.
45572 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
45574 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
45575 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
45576 set in grub_ieee1275_flags.
45578 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
45580 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
45582 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
45583 grub_console_init first.
45584 Change the memory range used for grub_ieee1275_claim and
45585 grub_mm_init_region.
45586 Print an error message if the claim fails.
45587 Include <grub/misc.h>.
45589 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
45591 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
45592 Call grub_children_iterate for device nodes of type `scsi',
45594 (grub_ofdisk_open): Remove manual device alias resolution.
45595 Fix memory leak when device cannot be opened.
45596 * include/grub/powerpc/ieee1275/ieee1275.h
45597 (grub_children_iterate): New prototype.
45598 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
45600 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45601 Return -1 if args.size was -1.
45603 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
45605 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
45606 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
45607 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
45608 Open Firmware's memory for it; claim memory from _start to _end.
45609 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
45610 (_end): New extern.
45611 (_start): Zero BSS from __bss_start to _end.
45612 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45614 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
45616 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
45618 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
45619 -1 if args.base was -1.
45621 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
45623 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
45624 escape sequence instead of a literal ^L. Also call
45625 grub_ofconsole_gotoxy.
45627 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
45629 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
45630 void * arguments to grub_addr_t. All callers updated. Also make
45631 the `result' argument optional.
45632 (grub_ieee1275_release): change void * arguments to grub_addr_t.
45633 All callers updated.
45635 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
45637 * commands/ls.c (grub_ls_list_files): Use the string following the
45638 initial ')', if present, as the filesystem path.
45639 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
45641 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
45643 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
45645 Make the source code of the menu interface more readable.
45647 * normal/menu.c: Include grub/mm.h.
45648 (TERM_WIDTH): New macro.
45649 (TERM_HEIGHT): Likewise.
45650 (TERM_INFO_HEIGHT): Likewise.
45651 (TERM_MARGIN): Likewise.
45652 (TERM_SCROLL_WIDTH): Likewise.
45653 (TERM_TOP_BORDER_Y): Likewise.
45654 (TERM_LEFT_BORDER_X): Likewise.
45655 (TERM_BORDER_WIDTH): Likewise.
45656 (TERM_MESSAGE_HEIGHT): Likewise.
45657 (TERM_BORDER_HEIGHT): Likewise.
45658 (TERM_NUM_ENTRIES): Likewise.
45659 (TERM_FIRST_ENTRY_Y): Likewise.
45660 (TERM_ENTRY_WIDTH): Likewise.
45661 (TERM_CURSOR_X): Likewise.
45662 (draw_border): Use macros instead of magic numbers.
45663 (print_entry): Likewise.
45664 (print_entries): Likewise.
45665 (run_menu): Likewise. Also, handle the key 'e'.
45666 (run_menu_entry): Ignore empty command lines.
45667 (print_message): Added a new argument EDIT. If EDIT is true,
45668 print a different message.
45669 (init_page): Likewise.
45670 (edit_menu_entry): New function. Not implemented yet.
45672 2004-09-17 Marco Gerards <metgerards@student.han.nl>
45674 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
45675 can be loaded from normal mode.
45677 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
45679 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
45680 (multiboot_mod_CFLAGS): New variables.
45681 * loader/i386/pc/linux_normal.c: New file.
45682 * loader/i386/pc/multiboot_normal.c: Likewise.
45684 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
45685 attribute `unused'.
45687 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
45688 `fdiro' to read the mode information from instead of `diro'.
45690 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
45691 looking up a symlink.
45693 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
45695 * normal/command.c (grub_command_execute): Don't parse the
45696 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
45697 flags of the command.
45699 * normal/menu.c (grub_menu_run): Fix typo.
45701 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
45703 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
45705 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
45706 `y + 1' instead of `y - 1'.
45708 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
45710 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
45712 From Hollis Blanchard <hollis@penguinppc.org>:
45713 * kern/misc.c (memmove): New alias for grub_memmove.
45714 (memcmp): New alias for grub_memcmp.
45715 (memset): New alias for grub_memset.
45716 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45717 Change "int handle" to "grub_ieee1275_phandle_t handle".
45718 * include/grub/powerpc/ieee1275/ieee1275.h
45719 (grub_ieee1275_get_property): Likewise.
45721 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
45723 Added normal mode command `chainloader' as module chain.mod, which
45724 depends on normal.mod and _chain.mod.
45726 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
45727 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
45728 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
45730 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
45731 but arguments parsing moved to ...
45732 (grub_chainloader_cmd): ... here. New function.
45733 * include/grub/i386/pc/chainloader.h: New file.
45734 * loader/i386/pc/chainloader_normal.c: Likewise.
45736 2004-09-11 Marco Gerards <metgerards@student.han.nl>
45738 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
45739 (grub_mkimage_LDFLAGS): Likewise.
45740 (grub_emu_SOURCES): Likewise.
45741 (kernel_img_HEADERS): Added fshelp.h.
45742 * fs/ext2.c: Include <grub/fshelp.h>.
45743 (FILETYPE_REG): New macro.
45744 (FILETYPE_INO_REG): Likewise.
45745 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
45747 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
45749 (grub_fshelp_node): New struct.
45750 (grub_ext2_data): Added member `diropen'. Changed member `inode'
45752 (grub_ext2_get_file_block): Removed function.
45753 (grub_ext2_read_block): New function.
45754 (grub_ext2_read_file): Replaced parameter `data' by `node'.
45755 This function was written.
45756 (grub_ext2_mount): Read the root inode. Create a diropen struct.
45757 (grub_ext2_find_file): Removed function.
45758 (grub_ext2_read_symlink): New function.
45759 (grub_ext2_iterate_dir): Likewise.
45760 (grub_ext2_open): Rewritten.
45761 (grub_ext2_dir): Rewritten.
45762 * include/grub/fshelp.h: New file.
45763 * fs/fshelp.c: Likewise.
45765 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
45767 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
45768 (print_message): Add a missing newline.
45769 (run_menu): Added timeout support.
45770 (run_menu_entry): New local function.
45771 (grub_menu_run): Added support for booting.
45773 * kern/loader.c (grub_loader_is_loaded): New function.
45775 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
45776 (grub_get_rtc): Exported.
45778 * include/grub/i386/pc/time.h: Include grub/symbol.h.
45779 (grub_get_rtc): Exported.
45781 * include/grub/normal.h (struct grub_command_list): Remove
45782 constant from the member `command'.
45784 * include/grub/loader.h (grub_loader_is_loaded): Declared.
45786 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
45788 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
45790 2004-08-28 Marco Gerards <metgerards@student.han.nl>
45792 Add support for the JFS filesystem.
45794 * fs/jfs.c: New file.
45795 * include/grub/fs.h (grub_jfs_init): New prototype.
45796 (grub_jfs_fini): New prototype.
45797 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
45798 (grub_emu_SOURCES): Likewise.
45799 (pkgdata_MODULES): Add jfs.mod.
45800 (jfs_mod_SOURCES): New variable.
45801 (jfs_mod_CFLAGS): Likewise.
45802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
45803 (grubof_SOURCES): Likewise.
45804 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
45806 * fs/fat.c (grub_fat_find_dir): Convert the filename little
45807 endian to the host endian.
45808 (grub_fat_utf16_to_utf8): Move function from there...
45809 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
45810 the endianness of the source string anymore.
45811 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
45813 2004-08-24 Marco Gerards <metgerards@student.han.nl>
45815 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
45816 (grub_boot_fini) [GRUB_UTIL]: Likewise.
45817 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
45818 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
45820 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
45821 (grub_hfs_iterate_dir): Make the function static. Add prototypes
45822 for `node_found' and `it_dir'.
45823 (grub_hfs_dir): Add prototype for `dir_hook'.
45825 * fs/minix.c (grub_minix_get_file_block): Add prototype for
45826 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
45827 and `indir32' to silence a gcc warning.
45829 * include/grub/fs.h (grub_hfs_init): New prototype.
45830 (grub_hfs_fini): Likewise.
45833 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
45835 Each disk device has its own id now. This is useful to make use
45836 of multiple disk devices.
45838 * include/grub/disk.h (grub_disk_dev_id): New enum.
45839 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
45840 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
45842 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
45843 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
45845 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
45846 GRUB_DISK_DEVICE_OFDISK_ID as an id.
45848 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
45849 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
45851 * include/grub/disk.h (struct grub_disk_dev): Added a new member
45852 "id" which is used by the cache manager.
45854 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
45857 2004-08-18 Marco Gerards <metgerards@student.han.nl>
45859 * fs/hfs.c: New file.
45860 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
45861 (grub_emu_SOURCES): Likewise.
45862 (pkgdata_MODULES): Add hfs.mod.
45863 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
45864 (grubof_SOURCES): Likewise.
45865 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
45867 * include/grub/misc.h (grub_strncasecmp): Add prototype.
45868 * kern/misc.c (grub_strncasecmp): Add function.
45870 2004-08-14 Marco Gerards <metgerards@student.han.nl>
45872 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
45875 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
45876 (grub_ext2_dir): In case the directory entry type is unknown, read
45879 2004-08-02 Peter Bruin <pjbruin@dds.nl>
45881 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
45882 grub_load_linux instead of grub_rescue_cmd_linux as second
45883 argument of grub_rescue_register_command.
45885 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
45887 2004-07-27 Marco Gerards <metgerards@student.han.nl>
45889 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
45891 * commands/boot.c: Remove the check for `GRUB_UTIL'.
45892 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
45893 `loader/powerpc/ieee1275/linux.c',
45894 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
45895 * include/grub/powerpc/ieee1275/ieee1275.h
45896 (grub_ieee1275_release): New prototype.
45897 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
45898 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
45899 normal, boot, linux and linux_normal.
45900 * loader/powerpc/ieee1275/linux.c: New file.
45901 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
45903 2004-07-12 Marco Gerards <metgerards@student.han.nl>
45905 * normal/arg.c (grub_arg_parse): Correct error handling after
45906 reallocating the argumentlist (check if `argl' is not null instead
45907 of checking if `args' is not null).
45908 * kern/mm.c (grub_realloc): Return the same pointer when using the
45909 same region, instead of returning the header address.
45911 2004-07-11 Marco Gerards <metgerards@student.han.nl>
45913 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
45914 one block instead of two when looking for the initial partition.
45915 (grub_partition_probe): Initialize the local variable `p' with 0.
45916 Use base 10 for the grub_strtoul call.
45917 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
45918 need for one local variable.
45919 (grub_strtoul): Don't add the new value to `num', instead of that
45922 2004-07-11 Marco Gerards <metgerards@student.han.nl>
45924 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
45925 (pxeboot_img_SOURCES): New variable.
45926 (pxeboot_img_ASFLAGS): Likewise.
45927 (pxeboot_img_LDFLAGS): Likewise.
45928 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
45929 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
45930 <lode_leroy@hotmail.com>.
45932 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45934 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
45935 there was no input.
45937 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45939 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
45940 the history buffer logic.
45942 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45944 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
45945 (FILETYPE_INO_SYMLINK): New macros.
45946 (grub_ext2_find_file): Check if the node is a directory using the
45947 inode stat information instead of using the filetype in the
45948 dirent. Exclude the first character of an absolute symlink.
45949 (grub_ext2_dir): Mask out the filetype part of the mode member of
45952 2004-05-24 Marco Gerards <metgerards@student.han.nl>
45954 Add support for UFS version 1 and 2. Add support for the minix
45955 filesystem version 1 and 2, both the variants with 14 and 30 long
45958 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
45960 (grub_emu_SOURCES): Likewise.
45961 (pkgdata_MODULES): Add ufs.mod and minix.mod.
45962 (ufs_mod_SOURCES): New variable.
45963 (ufs_mod_CFLAGS): Likewise.
45964 (minix_mod_SOURCES): Likewise.
45965 (minix_mod_CFLAGS): Likewise.
45966 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
45968 (grubof_SOURCES): Likewise.
45969 * fs/ufs.c: New file.
45970 * fs/minix.c: New file.
45971 * include/grub/fs.h (grub_ufs_init): New prototype.
45972 (grub_ufs_fini): Likewise.
45973 (grub_minix_init): Likewise.
45974 (grub_minix_fini): Likewise.
45975 * util/grub-emu.c (main): Initialize and deinitialize UFS and
45978 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
45980 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
45981 commands/ls.c, commands/terminal.c, commands/boot.c,
45982 commands/cmp.c and commands/cat.c.
45983 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
45985 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
45988 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
45990 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
45991 and grub_, respectively. Because the conversion is trivial and
45992 mechanical, I omit the details here. Please refer to the CVS
45993 if you need more information.
45995 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
45997 * include/pupa: Renamed to ...
45998 * include/grub: ... this.
45999 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46000 * util/i386/pc/grub-mkimage.c: ... this.
46001 * util/i386/pc/pupa-setup.c: Renamed to ...
46002 * util/i386/pc/grub-setup.c: ... this.
46003 * util/pupa-emu.c: Renamed to ...
46004 * util/grub-emu.c: ... this.
46006 2004-03-29 Marco Gerards <metgerards@student.han.nl>
46008 Add support for the newworld apple macintosh (PPC). This has been
46009 tested on the powerbook 2000 only. It only adds support for
46010 generic ieee1275 functions, console and disk support. This should
46011 be easy to port to other architectures with support for Open
46014 * configure.ac: Accept the powerpc as host_cpu. In the case of
46015 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46016 specific tests are only executed while building for the i386.
46017 Inverse test for crosscompile.
46018 * genmk.rb (Utility): Allow assembler files.
46019 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46020 * conf/powerpc-ieee1275.rmk: New file.
46021 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46022 * disk/powerpc/ieee1275/partition.c: Likewise.
46023 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46024 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46025 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46026 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46027 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46028 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46029 * include/pupa/powerpc/ieee1275/loader.h
46030 * include/pupa/powerpc/setjmp.h: Likewise.
46031 * include/pupa/powerpc/types.h: Likewise.
46032 * kern/powerpc/ieee1275/init.c: Likewise.
46033 * kern/powerpc/ieee1275/openfw.c: Likewise.
46034 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46036 These files were written by Johan Rydberg
46037 (jrydberg@night.trouble.net) and I only modified them slightly.
46039 * boot/powerpc/ieee1275/cmain.c: New file.
46040 * boot/powerpc/ieee1275/crt0.S: Likewise.
46041 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46042 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46044 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46046 * Makefile.in: Update copyright.
46047 * genmodsrc.sh: Likewise.
46048 * gensymlist.sh: Likewise.
46049 * term/i386/pc/vga.c: Indent correctly.
46051 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
46052 bugreporting address.
46053 * util/i386/pc/pupa-setup.c (usage): Likewise,
46054 (main): Call pupa_ext2_init and pupa_ext2_fini.
46056 * fs/fat.c (log2): Renamed to ...
46057 (fat_log2): ... this.
46058 All callers changed.
46059 * kern/misc.c (memcpy): Alias to pupa_memmove.
46060 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
46062 * util/console.c (pupa_ncurses_fini): Return 0.
46064 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
46065 Move fail label here.
46066 [__GNU__]: Don't warn when using stat.
46067 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
46068 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
46069 long int. Use strtol instead of strtoul.
46071 2004-03-14 Marco Gerards <metgerards@student.han.nl>
46073 * commands/boot.c: New file.
46074 * commands/cat.c: Likewise.
46075 * commands/cmp.c: Likewise.
46076 * commands/ls.c: Likewise.
46077 * commands/terminal.c: Likewise.
46078 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
46079 (pupa_register_command): Changed interface to match the new
46081 (pupa_command_execute): Changed (almost rewritten) so it uses
46082 pupa_split_command. Added support for setting variables using the
46084 (rescue_command): Changed to work with the new argument parser.
46085 (terminal_command): Moved from here to commands/terminal.c.
46086 (set_command): New function.
46087 (unset_command): New function.
46088 (insmod_command): New function.
46089 (rmmod_command): New function.
46090 (lsmod_command): New function.
46091 (pupa_command_init): Don't initialize the command terminal
46092 anymore. Initialize the commands set, unset, insmod, rmmod and
46094 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
46095 (kernel_img_HEADERS): Add arg.h and env.h.
46096 (pupa_mkimage_LDFLAGS): Add kern/env.c.
46097 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
46098 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
46100 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
46102 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
46103 (boot_mod_SOURCES): New variable.
46104 (terminal_mod_SOURCES): Likewise.
46105 (ls_mod_SOURCES): Likewise.
46106 (cmp_mod_SOURCES): Likewise.
46107 (cat_mod_SOURCES): Likewise.
46109 * normal/arg.c: New file.
46110 * kern/env.c: Likewise.
46111 * include/pupa/arg.h: Likewise.
46112 * include/pupa/env.h: Likewise.
46113 * font/manager.c (font_command): Changed to match argument parsing
46115 (PUPA_MOD_INIT): Likewise.
46116 * hello/hello.c (pupa_cmd_hello): Likewise.
46117 (PUPA_MOD_INIT): Likewise.
46118 * include/pupa/disk.h: Include <pupa/device.h>.
46119 (pupa_print_partinfo): New prototype.
46120 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
46121 (pupa_dl_get_prefix): Likewise.
46122 * include/pupa/misc.h: Include <pupa/err.h>.
46123 (pupa_isgraph): New prototype.
46124 (pupa_isdigit): Likewise.
46125 (pupa_split_cmdline): Likewise.
46126 * include/pupa/normal.h: Include <pupa/arg.h>.
46127 (pupa_command): Changed the prototype of the member `func' to
46128 match the argument parsing interface. Added member `options'.
46129 (pupa_register_command): Updated to match function.
46130 (pupa_arg_parse): New prototype.
46131 (pupa_hello_init) [PUPA_UTIL]: New prototype.
46132 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
46133 (pupa_ls_init) [PUPA_UTIL]: Likewise.
46134 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
46135 (pupa_cat_init) [PUPA_UTIL]: Likewise.
46136 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
46137 (pupa_boot_init) [PUPA_UTIL]: Likewise.
46138 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
46139 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
46140 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
46141 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
46142 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
46143 * kern/disk.c: Include <pupa/file.h>.
46144 (pupa_print_partinfo): New function.
46145 * kern/dl.c: Include <pupa/env.h>.
46146 (pupa_dl_dir): Variable removed.
46147 (pupa_dl_load): Use the environment variable `prefix' instead of
46148 the variable pupa_dl_dir.
46149 (pupa_dl_set_prefix): Function removed.
46150 (pupa_dl_get_prefix): Likewise.
46151 * kern/i386/pc/init.c: Include <pupa/env.h>.
46152 (pupa_machine_init): Use the environment variable `prefix' instead of
46153 using pupa_dl_set_prefix to set the prefix.
46154 * kern/main.c: Include <pupa/env.h>.
46155 (pupa_set_root_dev): Use the environment variable `prefix' instead of
46156 using pupa_dl_get_prefix to get the prefix.
46157 * kern/misc.c: Include <pupa/env.h>.
46158 (pupa_isdigit): New function.
46159 (pupa_isgraph): Likewise.
46160 (pupa_ftoa): Likewise.
46161 (pupa_vsprintf): Added support for printing values of the type
46162 `double'. Make it possible to format variable output when using
46163 formatting like `%1.2%f'.
46164 (pupa_split_cmdline): New function.
46165 * kern/rescue.c: Include <pupa/env.h>.
46166 (next_word): Removed function.
46167 (pupa_rescue_cmd_prefix): Likewise.
46168 (pupa_rescue_cmd_set): New function.
46169 (pupa_rescue_cmd_unset): New function.
46170 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
46171 split the command line instead of splitting it here. Added
46172 support for setting variables using the syntax `foo=bar'. Don't
46173 initialize the prefix command anymore. Initialized the set and
46175 * normal/cmdline.c: Include <pupa/env.h>.
46176 (pupa_tab_complete): Added prototypes for print_simple_completion,
46177 print_partition_completion, add_completion, iterate_commands,
46178 iterate_dev, iterate_part and iterate_dir. Moved code to print
46179 partition information from here to kern/disk.c.
46180 (pupa_cmdline_run): Don't check if the function exists anymore.
46181 * normal/main.c: Include <pupa/env.h>.
46182 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
46183 instead of using pupa_dl_get_prefix to get the prefix.
46184 * term/i386/pc/vga.c: Include <pupa/arg.h>.
46185 (check_vga_mem): Cast pointers to `void *' to silence a gcc
46187 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
46188 (pupa_vga_setcolor): Declare unused variables with `__attribute__
46189 ((unused))' to silence a gcc warning.
46190 (pupa_vga_setcolor): Likewise.
46191 (debug_command): Changed to match argument parsing
46193 * util/pupa-emu.c: Include <pupa/env.h>.
46194 (options): Added 0's for unused fields to silence a gcc warning.
46196 (main): Use the environment variable `prefix' instead of using
46197 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
46198 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
46201 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
46202 * util/misc.c: Include <malloc.h>.
46203 (pupa_malloc): Rewritten so errors are correctly reported.
46204 (pupa_realloc): Likewise.
46205 (pupa_memalign): Likewise.
46206 (pupa_mm_init_region): Declare unused variables with
46207 `__attribute__ ((unused))' to silence a gcc warning.
46208 * normal/i386/setjmp.S: Remove tab at the end of the file to
46209 silence a gcc warning.
46210 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
46211 variables with `__attribute__ ((unused))' to silence a gcc
46213 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
46214 local variable i unsigned to silence a gcc warning.
46216 * kern/term.c: Include <pupa/misc.h>.
46217 (pupa_more_lines): New variable.
46218 (pupa_more): Likewise.
46219 (pupa_putcode): When the pager is active pause at the end of every
46221 (pupa_set_more): New function.
46222 * include/pupa/term.h (pupa_set_more): New prototype.
46225 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
46227 Now this project is GRUB 2 rather than PUPA. The location of
46228 the CVS repository was moved to GRUB's.
46230 * configure.ac: Use bug-grub as the reporting address.
46231 Use GRUB instead of PUPA.
46232 Change the version number to 1.90.
46234 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
46236 * genkernsyms.sh: Updated copyright information.
46237 * genmk.rb: Likewise.
46238 * genmodsrc.sh: Likewise.
46239 * gensymlist.sh: Likewise.
46240 * boot/i386/pc/boot.S: Likewise.
46241 * boot/i386/pc/diskboot.S: Likewise.
46242 * disk/i386/pc/biosdisk.c: Likewise.
46243 * disk/i386/pc/partition.c: Likewise.
46244 * font/manager.c: Likewise.
46245 * fs/ext2.c: Likewise.
46246 * fs/fat.c: Likewise.
46247 * include/pupa/boot.h: Likewise.
46248 * include/pupa/device.h: Likewise.
46249 * include/pupa/disk.h: Likewise.
46250 * include/pupa/dl.h: Likewise.
46251 * include/pupa/elf.h: Likewise.
46252 * include/pupa/err.h: Likewise.
46253 * include/pupa/file.h: Likewise.
46254 * include/pupa/font.h: Likewise.
46255 * include/pupa/fs.h: Likewise.
46256 * include/pupa/kernel.h: Likewise.
46257 * include/pupa/loader.h: Likewise.
46258 * include/pupa/misc.h: Likewise.
46259 * include/pupa/mm.h: Likewise.
46260 * include/pupa/net.h: Likewise.
46261 * include/pupa/normal.h: Likewise.
46262 * include/pupa/rescue.h: Likewise.
46263 * include/pupa/setjmp.h: Likewise.
46264 * include/pupa/symbol.h: Likewise.
46265 * include/pupa/term.h: Likewise.
46266 * include/pupa/types.h: Likewise.
46267 * include/pupa/i386/setjmp.h: Likewise.
46268 * include/pupa/i386/types.h: Likewise.
46269 * include/pupa/i386/pc/biosdisk.h: Likewise.
46270 * include/pupa/i386/pc/boot.h: Likewise.
46271 * include/pupa/i386/pc/console.h: Likewise.
46272 * include/pupa/i386/pc/init.h: Likewise.
46273 * include/pupa/i386/pc/kernel.h: Likewise.
46274 * include/pupa/i386/pc/linux.h: Likewise.
46275 * include/pupa/i386/pc/loader.h: Likewise.
46276 * include/pupa/i386/pc/memory.h: Likewise.
46277 * include/pupa/i386/pc/multiboot.h: Likewise.
46278 * include/pupa/i386/pc/partition.h: Likewise.
46279 * include/pupa/i386/pc/time.h: Likewise.
46280 * include/pupa/i386/pc/vga.h: Likewise.
46281 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
46282 * include/pupa/util/getroot.h: Likewise.
46283 * include/pupa/util/misc.h: Likewise.
46284 * include/pupa/util/resolve.h: Likewise.
46285 * kern/device.c: Likewise.
46286 * kern/disk.c: Likewise.
46287 * kern/dl.c: Likewise.
46288 * kern/err.c: Likewise.
46289 * kern/file.c: Likewise.
46290 * kern/fs.c: Likewise.
46291 * kern/loader.c: Likewise.
46292 * kern/main.c: Likewise.
46293 * kern/misc.c: Likewise.
46294 * kern/mm.c: Likewise.
46295 * kern/rescue.c: Likewise.
46296 * kern/term.c: Likewise.
46297 * kern/i386/dl.c: Likewise.
46298 * kern/i386/pc/init.c: Likewise.
46299 * kern/i386/pc/lzo1x.S: Likewise.
46300 * kern/i386/pc/startup.S: Likewise.
46301 * loader/i386/pc/chainloader.c: Likewise.
46302 * loader/i386/pc/linux.c: Likewise.
46303 * loader/i386/pc/multiboot.c: Likewise.
46304 * normal/cmdline.c: Likewise.
46305 * normal/command.c: Likewise.
46306 * normal/main.c: Likewise.
46307 * normal/menu.c: Likewise.
46308 * normal/i386/setjmp.S: Likewise.
46309 * term/i386/pc/console.c: Likewise.
46310 * term/i386/pc/vga.c: Likewise.
46311 * util/console.c: Likewise.
46312 * util/genmoddep.c: Likewise.
46313 * util/misc.c: Likewise.
46314 * util/pupa-emu.c: Likewise.
46315 * util/resolve.c: Likewise.
46316 * util/unifont2pff.rb: Likewise.
46317 * util/i386/pc/biosdisk.c: Likewise.
46318 * util/i386/pc/getroot.c: Likewise.
46319 * util/i386/pc/pupa-mkimage.c: Likewise.
46320 * util/i386/pc/pupa-setup.c: Likewise.
46322 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
46324 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
46325 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
46326 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
46327 reading and reset it after reading.
46328 (pupa_ext2_close): Return PUPA_ERR_NONE.
46330 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
46332 (struct linux_kernel_header): Add kernel_version and
46334 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
46335 pupa_file_read succeeds.
46336 (pupa_rescue_cmd_initrd): Implement.
46338 2003-12-03 Marco Gerards <metgerards@student.han.nl>
46340 * fs/ext2.c (pupa_ext2_label): New function.
46341 (pupa_ext2_fs): Added label.
46342 * fs/fat.c (pupa_fat_label): New function.
46343 (pupa_fat_fs): Added label.
46344 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
46346 * kern/misc.c (pupa_strndup): New function.
46347 * include/pupa/misc.h (pupa_strndup): New prototype.
46349 * include/pupa/normal.h: Include <pupa/err.h>.
46350 (pupa_set_history): New prototype.
46351 (pupa_iterate_commands): New prototype.
46352 * normal/cmdline.c: Include <pupa/machine/partition.h>,
46353 <pupa/disk.h>, <pupa/file.h>.
46354 (hist_size): New variable.
46355 (hist_lines): Likewise.
46356 (hist_end): Likewise.
46357 (hist_used): Likewise.
46358 (pupa_set_history): New function.
46359 (pupa_history_get): Likewise.
46360 (pupa_history_add): Likewise.
46361 (pupa_history_replace): Likewise.
46362 (pupa_tab_complete): Likewise.
46363 (pupa_cmdline_run): Added tab completion and history buffer. Tab
46364 completion shows partitionnames while completing partitions, this
46365 feature was suggested by Jeff Bailey.
46366 * normal/command.c (pupa_iterate_commands): New function.
46367 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
46368 (pupa_normal_init): Initialize history buffer.
46369 (PUPA_MOD_INIT): Likewise.
46370 (pupa_normal_fini): Free the history buffer.
46371 (PUPA_MOD_FINI): Likewise.
46373 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
46376 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
46377 * configure.ac [i386]: Check for regparam bug.
46378 (NESTED_FUNC_ATTR) [! i386]: Defined.
46380 2003-11-17 Marco Gerards <metgerards@student.han.nl>
46382 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
46383 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
46384 (pupa_emu_SOURCES): New variable.
46385 (pupa_emu_LDFLAGS): Likewise.
46386 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
46387 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
46388 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
46389 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46390 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
46391 (pupa_jmp_buf): New typedef.
46392 (pupa_setjmp) [PUPA_UTIL]: New macro.
46393 (pupa_longjmp) [PUPA_UTIL]: Likewise.
46394 * include/pupa/term.h (struct pupa_term): New member `refresh'.
46395 (pupa_refresh): New prototype.
46396 * include/pupa/util/getroot.h: New file.
46397 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
46399 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
46400 (pupa_rescue_cmd_cat): Likewise.
46401 (pupa_rescue_cmd_ls): Likewise.
46402 (pupa_rescue_cmd_testload): Likewise.
46403 (pupa_rescue_cmd_lsmod): Likewise.
46404 * normal/cmdline.c (pupa_cmdline_get): Likewise.
46405 * normal/menu.c (run_menu): Likewise.
46406 * kern/term.c (pupa_cls): Likewise.
46407 (pupa_refresh): New function.
46408 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
46409 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46410 * util/console.c: New file.
46412 * util/i386/pc/getroot.c: New file.
46413 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
46414 (pupa_putchar): New function.
46415 (pupa_refresh): Likewise.
46416 (xgetcwd): Function moved to ...
46417 (strip_extra_slashes): Likewise.
46418 (get_prefix): Likewise.
46419 * util/i386/pc/getroot.c: ... here.
46420 (find_root_device): Function moved and renamed to...
46421 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
46422 Changed all callers.
46423 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
46425 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
46426 Changed all callers.
46427 * util/misc.c (pupa_memalign): New function.
46428 (pupa_mm_init_region): Likewise.
46429 (pupa_register_exported_symbols): Likewise.
46430 (pupa_putchar): Function removed.
46431 * util/pupa-emu.c: New file.
46433 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
46435 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
46436 (_multiboot_mod_SOURCES): New variable.
46437 (_multiboot_mod_CFLAGS): Likewise.
46438 * loader/i386/pc/multiboot.c: New file.
46439 * include/pupa/i386/pc/multiboot.h: Likewise.
46440 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
46441 (pupa_multiboot_real_boot): New function.
46442 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
46443 (pupa_multiboot_real_boot): New prototype.
46444 (pupa_rescue_cmd_multiboot): Likewise
46445 (pupa_rescue_cmd_module): Likewise.
46447 * kern/loader.c (pupa_loader_set): Continue when
46448 pupa_loader_unload_func() fails.
46449 (pupa_loader_unset): New function.
46450 * include/pupa/loader.h (pupa_loader_unset): New prototype.
46452 * kern/misc.c (pupa_stpcpy): New function.
46453 * include/pupa/misc.h (pupa_stpcpy): New prototype.
46455 2003-11-12 Marco Gerards <metgerards@student.han.nl>
46457 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
46458 for available extensions.
46460 * include/pupa/i386/pc/time.h: New file.
46461 * kern/disk.c: Include <pupa/machine/time.h>.
46462 (PUPA_CACHE_TIMEOUT): New macro.
46463 (pupa_last_time): New variable.
46464 (pupa_disk_open): Flush the cache when there was a timeout.
46465 (pupa_disk_close): Reset the timer.
46466 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
46468 * util/misc.c: Include <sys/times.h>
46469 (pupa_get_rtc): New function.
46471 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
46473 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
46475 (pupa_ext2_get_file_block): Use blocks member.
46477 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
46478 first block. Return -1 instead of pupa_errno on error.
46480 2003-10-27 Marco Gerards <metgerards@student.han.nl>
46482 * README: In the pupa-mkimage example use _chain instead of chain
46483 and ext2 instead of fat.
46484 * TODO: Replace ext2fs with jfs as an example. Add an item for
46485 adding journal playback for ext2fs.
46486 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
46487 (pkgdata_MODULES): Added ext2.mod.
46488 (ext2_mod_SOURCES): New variable.
46489 (ext2_mod_CFLAGS): Likewise.
46490 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
46491 * include/pupa/misc.h (pupa_strncpy): New prototype.
46492 (pupa_strcat): Likewise.
46493 (pupa_strncmp): Likewise.
46494 * kern/misc.c (pupa_strcat): Enable function.
46495 (pupa_strncpy): New function.
46496 (pupa_strncmp): Likewise.
46497 * fs/ext2.c: New file.
46499 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
46500 when the read failed before retrying.
46501 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
46502 (_FILE_OFFSET_BITS): Likewise.
46503 * configure.ac: Added AC_SYS_LARGEFILE.
46505 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46507 * genmk.rb (PModule#rule): Make sure to get only symbol names
46508 from the output of nm.
46509 Reported by Robert Millan <rmh.grub@aybabtu.com>.
46511 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46513 I forgot to check in these changes for a long time. This adds
46514 incomplete support for VGA console, and this is still very
46515 buggy. Also, a lot of consideration is required for I18N,
46516 UNICODE, and VGA font issues. Therefore, assume that this is
46517 such that "better than nothing".
46519 * font/manager.c: New file.
46520 * include/pupa/font.h: Likewise.
46521 * include/pupa/i386/pc/vga.h: Likewise.
46522 * term/i386/pc/vga.c: Likewise.
46523 * util/unifont2pff.rb: Likewise.
46525 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
46526 (pkgdata_MODULES): Added vga.mod and font.mod.
46527 (vga_mod_SOURCES): New variables.
46528 (vga_mod_CFLAGS): Likewise.
46529 (font_mod_SOURCES): Likewise.
46530 (font_mod_CFLAGS): Likewise.
46532 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
46534 * include/pupa/term.h: Include pupa/err.h.
46535 (struct pupa_term): Added init and fini.
46536 Changed the argument of putchar to pupa_uint32_t.
46538 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
46539 (pupa_console_real_putchar): New prototype.
46540 (pupa_console_putchar): Removed.
46541 (pupa_console_checkkey): Exported.
46542 (pupa_console_getkey): Likewise.
46544 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
46547 * kern/term.c (pupa_term_set_current): Rewritten.
46548 (pupa_putchar): Likewise.
46549 (pupa_putcode): New function.
46551 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
46552 (pupa_console_real_putchar): ... this.
46553 (pupa_vga_set_mode): New function.
46554 (pupa_vga_get_font): Likewise.
46556 * normal/command.c: Include pupa/term.h.
46557 (terminal_command): New function.
46558 (pupa_command_init): Register the command "terminal".
46560 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
46561 (DISP_UP): Likewise.
46562 (DISP_RIGHT): Likewise.
46563 (DISP_DOWN): Likewise.
46564 (DISP_HLINE): Likewise.
46565 (DISP_VLINE): Likewise.
46566 (DISP_UL): Likewise.
46567 (DISP_UR): Likewise.
46568 (DISP_LL): Likewise.
46569 (DISP_LR): Likewise.
46571 * term/i386/pc/console.c (pupa_console_putchar): New function.
46573 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
46575 * util/resolve.c (pupa_util_resolve_dependencies): BUG
46576 FIX. Reverse the path_list.
46578 * include/pupa/normal.h: Export pupa_register_command and
46579 pupa_unregister_command.
46581 * hello/hello.c (pupa_cmd_hello): New module.
46582 * conf/i386-pc.rmk: Added hello.mod.
46584 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
46586 * kern/i386/pc/lzo1x.S: New file.
46588 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
46589 (compress_kernel): New variable.
46590 (generate_image): Heavily modified to support compressing a
46591 large part of the core image.
46593 * util/misc.c (pupa_util_read_image): Fix a file descriptor
46595 (pupa_util_load_image): New function.
46597 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
46598 (pupa_compressed_size): New variable.
46599 (codestart): Enable Gate A20 here.
46600 Decompress the compressed part of the core image.
46601 Rearrange the code to put functions and variables which are
46602 required for initialization in the non-compressed part.
46605 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
46608 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
46610 * include/pupa/i386/pc/kernel.h
46611 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
46612 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
46613 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
46614 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
46615 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
46617 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
46619 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
46620 (Utility#rule): Likewise.
46622 * configure.ac: Check if LZO is available.
46624 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
46626 * include/pupa/normal.h: New file.
46627 * include/pupa/setjmp.h: Likewise.
46628 * include/pupa/i386/setjmp.h: Likewise.
46629 * normal/cmdline.c: Likewise.
46630 * normal/command.c: Likewise.
46631 * normal/main.c: Likewise.
46632 * normal/menu.c: Likewise.
46633 * normal/i386/setjmp.S: Likewise.
46635 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
46636 (pupa_rescue_cmd_initrd): Likewise.
46638 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
46641 * kern/i386/pc/startup.S (translation_table): New variable.
46642 (translate_keycode): New function.
46643 (pupa_console_getkey): Call translate_keycode.
46645 * kern/rescue.c (attempt_normal_mode): New function.
46646 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
46647 it failed, print a message.
46649 * kern/mm.c (pupa_real_malloc): Print more information when a
46650 free magic is broken.
46651 (pupa_free): If the first free header is not free actually, set
46654 * kern/main.c (pupa_load_normal_mode): Just load the module
46656 (pupa_main): Don't print the message
46657 "Entering into rescue mode..." here.
46659 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
46661 (pupa_rescue_cmd_initrd): Likewise.
46662 (pupa_rescue_cmd_initrd): Likewise.
46664 * include/pupa/symbol.h (FUNCTION): Specify the type.
46665 (VARIABLE): Likewise.
46667 * include/pupa/err.h (pupa_err_t): Added
46668 PUPA_ERR_UNKNOWN_COMMAND.
46670 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
46671 (pupa_dl_get_prefix): Likewise.
46673 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
46674 Added _chain.mod and _linux.mod instead of chain.mod and
46676 (chain_mod_SOURCES): Renamed to ...
46677 (_chain_mod_SOURCES): ... this.
46678 (chain_mod_CFLAGS): Renamed to ...
46679 (_chain_mod_CFLAGS): ... this.
46680 (linux_mod_SOURCES): Renamed to ...
46681 (_linux_mod_SOURCES): ... this.
46682 (linux_mod_CFLAGS): Renamed to ...
46683 (_linux_mod_CFLAGS): ... this.
46684 (normal_mod_SOURCES): New variable.
46685 (normal_mod_CFLAGS): Likewise.
46686 (normal_mod_ASFLAGS): Likewise.
46688 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
46690 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
46693 * kern/dl.c (pupa_dl_ref): Refer depending modules
46695 (pupa_dl_unref): Unrefer depending modules recursively.
46696 Don't call pupa_dl_unload implicitly, because PUPA can crash if
46697 a module is unloaded before one depending on that module is
46699 (pupa_dl_unload): Unload depending modules explicitly,
46702 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
46704 * include/pupa/i386/pc/linux.h: New file.
46705 * loader/i386/pc/linux.c: Likewise.
46707 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
46709 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
46710 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
46711 of PUPA_CHAINLOADER_BOOT_SECTOR.
46713 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
46714 (pupa_linux_prot_size): New variable.
46715 (pupa_linux_tmp_addr): Likewise.
46716 (pupa_linux_real_addr): Likewise.
46717 (pupa_linux_boot_zimage): New function.
46718 (pupa_linux_boot_bzimage): Likewise.
46720 * kern/i386/pc/init.c (struct mem_region): New structure.
46721 (MAX_REGIONS): New macro.
46722 (mem_regions): New variable.
46723 (num_regions): Likewise.
46724 (pupa_os_area_addr): Likewise.
46725 (pupa_os_area_size): Likewise.
46726 (pupa_lower_mem): Likewise.
46727 (pupa_upper_mem): Likewise.
46728 (add_mem_region): New function.
46729 (compact_mem_regions): Likewise.
46730 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
46731 the size of the conventional memory and that of so-called upper
46732 memory (before the first memory hole).
46733 Instead of adding each found region to free memory, use
46734 add_mem_region and add them after removing overlaps.
46735 Also, add only 1/4 of the upper memory to free memory. The rest
46736 is used for loading OS images. Maybe this is ad hoc, but this
46737 makes it much easier to relocate OS images when booting.
46739 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
46740 (pupa_enter_rescue_mode): Don't register initrd and module.
46742 * kern/mm.c: Include pupa/dl.h.
46744 * kern/main.c: Include pupa/file.h and pupa/device.h.
46746 * kern/loader.c (pupa_loader_load_module_func): Removed.
46747 (pupa_loader_load_module): Likewise.
46749 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
46752 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
46753 (pupa_linux_tmp_addr): Likewise.
46754 (pupa_linux_real_addr): Likewise.
46755 (pupa_linux_boot_zimage): Likewise.
46756 (pupa_linux_boot_bzimage): Likewise.
46758 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
46759 (pupa_upper_mem): Likewise.
46760 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
46761 module is too dangerous.
46763 * include/pupa/loader.h (pupa_os_area_addr): Declared.
46764 (pupa_os_area_size): Likewise.
46765 (pupa_loader_set): Remove the first argument. Loader doesn't
46766 manage modules or initrd any longer.
46767 (pupa_loader_load_module): Removed.
46769 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
46770 (linux_mod_SOURCES): New variable.
46771 (linux_mod_CFLAGS): Likewise.
46773 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
46775 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
46776 the length of a blocklist correctly.
46778 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
46779 Use ioctl only if the OS file is a block device.
46780 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
46781 not very useful for normal files.
46783 * kern/main.c (pupa_set_root_dev): New function.
46784 (pupa_load_normal_mode): Likewise.
46785 (pupa_main): Call those above.
46787 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
46790 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
46792 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46794 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
46795 (setup): Configure the installed partition information and the
46798 * loader/i386/pc/chainloader.c (my_mod): New variable.
46799 (pupa_chainloader_unload): New function.
46800 (pupa_rescue_cmd_chainloader): Refer itself.
46801 (PUPA_MOD_INIT): Save its own module in MY_MOD.
46803 * kern/i386/pc/startup.S (install_partition): Removed.
46804 (version_string): Likewise.
46805 (config_file): Likewise.
46806 (pupa_install_dos_part): New variable.
46807 (pupa_install_bsd_part): Likewise.
46808 (pupa_prefix): Likewise.
46809 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
46811 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
46813 (make_install_device): New function.
46814 (pupa_machine_init): Set the dl prefix.
46816 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
46817 (buf): Renamed to ...
46818 (linebuf): ... this.
46819 (pupa_rescue_cmd_prefix): New function.
46820 (pupa_rescue_cmd_insmod): Likewise.
46821 (pupa_rescue_cmd_rmmod): Likewise.
46822 (pupa_rescue_cmd_lsmod): Likewise.
46823 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
46826 * kern/mm.c (pupa_memalign): If failed even after invalidating
46827 disk caches, unload unneeded modules and retry.
46829 * kern/misc.c (pupa_memmove): New function.
46830 (pupa_memcpy): Removed.
46831 (pupa_strcpy): New function.
46832 (pupa_itoa): Made static.
46834 * kern/dl.c (pupa_dl_iterate): New function.
46835 (pupa_dl_ref): Likewise.
46836 (pupa_dl_unref): Likewise.
46837 (pupa_dl_unload): Return if succeeded or not.
46838 (pupa_dl_unload_unneeded): New function.
46839 (pupa_dl_unload_all): Likewise.
46840 (pupa_dl_init): Renamed to ...
46841 (pupa_dl_set_prefix): ... this.
46842 (pupa_dl_get_prefix): New function.
46844 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
46845 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
46846 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
46847 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
46848 (pupa_install_dos_part): Declared.
46849 (pupa_install_bsd_part): Likewise.
46850 (pupa_prefix): Likewise.
46851 (pupa_boot_drive): Likewise.
46853 * include/pupa/types.h: Fix a typo.
46855 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
46857 (pupa_memmove): Declared.
46858 (pupa_strcpy): Likewise.
46860 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
46861 pupa_mod_init takes one argument, its own module.
46862 (pupa_dl_unload_unneeded): Declared.
46863 (pupa_dl_unload_all): Likewise.
46864 (pupa_dl_ref): Likewise.
46865 (pupa_dl_unref): Likewise.
46866 (pupa_dl_iterate): Likewise.
46867 (pupa_dl_init): Renamed to ...
46868 (pupa_dl_set_prefix): ... this.
46869 (pupa_dl_get_prefix): Declared.
46871 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
46872 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
46874 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
46875 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
46877 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
46878 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
46880 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
46882 * util/i386/pc/pupa-setup.c (setup): Define the internal
46883 function find_first_partition_start at the top level, because GCC
46884 3.0.x cannot compile internal functions in deeper scopes
46886 (find_root_device): Use lstat instead of stat.
46887 Don't follow symbolic links.
46888 Fix the path-constructing code.
46890 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
46891 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
46892 by a BLKGETSIZE ioctl first, because block devices don't fill
46893 the member st_mode of the structure stat on Linux.
46894 [__linux__] (linux_find_partition): Use a temporary buffer
46895 REAL_DEV for the working space. Copy it to DEV before returning.
46896 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
46897 buffer cache consistent.
46898 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
46899 strncmp. The previous value was merely wrong.
46900 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
46902 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
46903 FAT size is 12. The previous value was merely wrong.
46905 * kern/main.c (pupa_main): Don't split the starting message from
46908 * kern/term.c (pupa_putchar): Put CR after LF instead of before
46909 LF, because BIOS goes crazy about character attributes in this
46912 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
46914 * include/i386/pc/util/biosdisk.h: New file.
46915 * util/i386/pc/biosdisk.c: Likewise.
46916 * util/i386/pc/pupa-setup.c: Likewise.
46918 * Makefile.in (INCLUDE_DISTFILES): Added
46919 include/pupa/i386/pc/util/biosdisk.h.
46920 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
46921 directory util/i386/pc.
46922 (install-local): Added a rule for sbin_UTILITIES.
46923 (uninstall): Likewise.
46925 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
46927 * util/misc.c (xrealloc): New function.
46928 (pupa_malloc): Likewise.
46929 (pupa_free): Likewise.
46930 (pupa_realloc): Likewise.
46931 (pupa_stop): Likewise.
46932 (pupa_putchar): Likewise.
46934 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
46936 * include/pupa/util/misc.h (xrealloc): Declared.
46938 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
46940 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
46941 (PUPA_BOOT_MACHINE_BPB_END): ... this.
46943 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
46944 [PUPA_UTIL] (pupa_fat_fini): Likewise.
46946 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
46947 way should be implemented.
46948 [PUPA_UTIL] (pupa_fat_fini): Likewise.
46950 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
46951 the size of NAME for safety.
46952 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
46955 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
46956 (pupa_setup_SOURCES): Likewise.
46958 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
46960 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
46962 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
46963 bunch of pushl's from pusha, because this destroys the return
46966 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
46968 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
46969 This means that any missing prototypes could be fatal. Also, you
46970 must take care when writing assembly code. See the comments at
46971 the beginning of startup.S, for more details.
46973 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
46974 compilation mechanism.
46975 (pupa_chainloader_real_boot): Likewise.
46976 (pupa_biosdisk_rw_int13_extensions): Likewise.
46977 (pupa_biosdisk_rw_standard): Likewise.
46978 (pupa_biosdisk_check_int13_extensions): Likewise.
46979 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
46980 (pupa_biosdisk_get_diskinfo_standard): Likewise.
46981 (pupa_get_memsize): Likewise.
46982 (pupa_get_mmap_entry): Likewise.
46983 (pupa_console_putchar): Likewise.
46984 (pupa_console_setcursor): Likewise.
46985 (pupa_getrtsecs): Use pushl instead of push.
46987 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
46988 memory instead of the stack for a mmap entry, because some
46989 BIOSes may ignore the maximum size and overflow.
46991 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
46993 * genmk.rb (PModule#rule): Compile automatically generated
46994 sources with module-specific CFLAGS as well as other sources.
46996 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
46998 * configure.ac: Check ld.
46999 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47000 respectively, before checking endianness and sizes.
47002 * Makefile.in (LD): New variable.
47004 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47006 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47008 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47010 * Changelog: New file.