1 2012-02-27 Richard Laager <rlaager@wiktel.com>
3 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
6 2012-02-27 Richard Laager <rlaager@wiktel.com>
8 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
11 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13 Don't use insecure popen in getroot.
15 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
16 (exec_pipe): ... here.
17 (find_root_devices_from_poolname): Use exec_pipe.
19 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
21 Remove platform and target_cpu replacement.
23 * configure.ac: Remove platform and target_cpu substitutions.
24 * tests/util/grub-shell.in: Use modinfo.
25 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
28 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
30 Autodetect platform in grub-install but allow override.
32 * util/grub-install.in: Autodetect platform. Support --target and
33 --directory. Read platform from modinfo.sh.
35 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
37 Support btrfs multi-volume probe.
39 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
40 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
41 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
42 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
43 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
44 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
45 grub_find_root_devices_from_btrfs if on btrfs.
47 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
49 Remove any awareness of *.c util files about target.
51 * Makefile.util.def (grub-setup): Split to ...
52 (grub-bios-setup): ... and this.
53 (grub-sparc64-setup): ... and this.
54 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
55 * docs/man/grub-setup.h2m: Split into ...
56 * docs/man/grub-sparc64-setup.h2m: ... this.
57 * docs/man/grub-bios-setup.h2m: ... and this.
58 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
59 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
60 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
61 (grub_target_addr_t): Remove.
62 (grub_target_size_t): Remove.
63 (grub_target_ssize_t): Remove.
64 * util/grub-install.in: Use new grub-*-setup.
65 * util/grub-mkimagexx.c (Elf_Word): New define.
67 (Elf_Section): Likewise.
68 (ELF_ST_TYPE): Likewise.
69 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
70 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
72 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
74 Replace grub_target_addr with more appropriate types.
76 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
77 grub_target_addr with grub_addr.
78 * grub-core/commands/iorw.c (grub_cmd_read): Replace
79 grub_target_addr with grub_port.
80 (grub_cmd_write): Likewise.
81 * grub-core/commands/memrw.c (grub_cmd_read): Replace
82 grub_target_addr with grub_addr.
83 (grub_cmd_write): Likewise.
84 * grub-core/video/efi_uga.c (find_line_len): Likewise.
86 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
88 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
89 const qualifier for vendor_guid.
91 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
93 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
95 (efiemu_memequal): Likewise.
96 (find_variable): Likewise.
98 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
100 Fix missing console prototype on qemu-mips.
102 * include/grub/mips/qemu_mips/console.h: New file.
104 2012-02-27 Matthew Garrett <mjg@redhat.com>
105 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
107 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
108 * include/grub/efi/efi.h: Likewise.
109 * include/grub/efi/api.h: Add guid for EFI-specified variables.
110 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
111 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
112 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
113 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
114 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
116 2012-02-27 Matthew Garrett <mjg@redhat.com>
118 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
120 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
122 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
125 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
127 * configure.ac: Remove inappropriate use of program_transform_name
128 on grubdir and bootdir but allow explicit specification of those
131 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
133 * util/grub-mknetdir.in (grub_prefix): Removed.
134 (subdir): Use @bootdirname@ and @grubdirname@.
136 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
138 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
140 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
142 * po/POTFILES.in: Regenerated.
144 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
146 Remove improper use of program_transform_name on pkglibrootdir.
148 * configure.ac (pkglibrootdir): Removed.
149 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
150 * util/grub-mkimage.c: Likewise.
152 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
154 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
157 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
159 * util/grub-install.in: Use file identifier if no UUID is available
160 or user explicitly prompted for it.
162 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
164 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
165 (freebsd_get_zfs): New function.
166 (grub_freebsd_boot): Pass zfs UUID.
167 (grub_cmd_freebsd): Set zfs UUID.
169 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
171 * conf/Makefile.common (platformdir): Base on pkglibdir and not
174 2012-02-27 Mike Gilbert <floppym@gentoo.org>
176 Add configure flag to control libzfs integration.
178 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
180 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
182 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
184 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
187 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
189 Remove grub_{modname}_init and grub_{modname}_fini. They should never
190 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
191 be used on non-modules.
193 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
194 Rename to grub_boot_init.
195 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
196 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
197 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
198 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
199 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
200 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
201 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
202 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
204 (grub_machine_init): Remove empty inits.
205 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
207 (grub_machine_init): Remove empty inits.
208 * grub-core/term/arc/console.c: Remove explicit proto.
209 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
210 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
211 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
212 grub_at_keyboard_fini.
213 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
214 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
215 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
217 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
218 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
219 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
221 * grub-core/term/ieee1275/console.c: Remove explicit proto.
222 * grub-core/term/serial.c (GRUB_MOD_INIT)
223 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
224 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
226 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
227 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
228 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
230 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
231 (GRUB_MOD_FINI): Likewise.
232 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
233 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
234 (GRUB_MOD_FINI) [LOONGSON]: Rename to
235 grub_video_radeon_fuloong2e_fini.
236 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
237 [LOONGSON]: Rename to grub_video_sis315pro_init.
238 (GRUB_MOD_FINI) [LOONGSON]: Rename to
239 grub_video_sis315pro_fini.
240 * grub-core/video/sm712.c (GRUB_MOD_INIT)
241 [LOONGSON]: Rename to grub_video_sm712_init.
242 (GRUB_MOD_FINI) [LOONGSON]: Rename to
243 grub_video_sm712_fini.
244 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
245 (grub_at_keyboard_fini): Likewise.
246 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
247 Don't declare grub_{modname}_init.
248 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
249 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
251 (grub_keylayouts_fini) [!EMU]: Likewise.
252 * include/grub/serial.h (grub_serial_init) [!EMU]:
254 (grub_serial_fini) [!EMU]: Likewise.
255 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
257 (grub_terminfo_fini) [!EMU]: Likewise.
258 * include/grub/video.h (grub_font_init) [!EMU]:
260 (grub_font_fini) [!EMU]: Likewise.
261 (grub_gfxterm_init) [!EMU]: Likewise.
262 (grub_gfxterm_fini) [!EMU]: Likewise.
263 (grub_video_sm712_init) [!EMU]: Likewise.
264 (grub_video_sm712_fini) [!EMU]: Likewise.
265 (grub_video_sis315pro_init) [!EMU]: Likewise.
266 (grub_video_sis315pro_fini) [!EMU]: Likewise.
267 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
268 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
270 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
272 Make nand a prefix for nand devices.
274 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
276 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
278 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
279 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
281 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
283 * include/grub/env.h (grub_env_find): Remove prototype.
284 * grub-core/kern/env.c (grub_env_find): Make static.
285 (grub_env_set): Remove useless set.
287 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
289 * grub-core/kern/i386/realmode.S: Remove useless align.
291 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
293 * include/grub/dl.h (grub_dl_load_file): Don't export.
295 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
297 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
300 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
302 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
304 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
305 not reloading whole superblock but only the part which is really needed.
306 Remove useless grub_errors.
307 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
310 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
312 Don't export grub_get_rtc.
314 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
315 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
317 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
319 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
321 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
323 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
324 argument since it can be deduced from diskfilter. All users updated.
326 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
330 * include/grub/list.h (grub_prio_list): Removed.
331 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
332 GRUB_COMMAND_PRIO_MASK.
333 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
334 GRUB_COMMAND_FLAG_ACTIVE.
335 (grub_prio_list_insert): Removed.
336 (grub_prio_list_remove): Likewise.
337 (GRUB_AS_PRIO_LIST): Likewise.
338 (GRUB_AS_PRIO_LIST_P): Likewise.
339 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
340 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
341 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
342 * grub-core/kern/command.c (grub_register_command_prio): Inline
344 (grub_unregister_command): Likewise.
346 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
348 Fix interrupt mixup from previous commit.
350 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
351 (grub_realidt): New var.
352 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
354 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
356 (grub_relocator16_boot): Set grub_relocator16_idt.
357 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
358 (LOCAL(realidt)): ... this.
359 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
360 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
361 (grub_realidt): New variable.
363 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
365 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
366 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
367 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
368 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
370 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
371 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
372 * po/POTFILES.in: Regenerate.
374 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
376 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
379 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
381 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
383 (add_length): Likewise.
385 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
386 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
388 GDB serial and backtrace support.
390 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
391 (prot_to_real): Likewise.
392 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
393 * grub-core/Makefile.core.def (backtrace): New module.
395 * grub-core/gdb/cstub.c: New file.
396 * grub-core/gdb/gdb.c: Likewise.
397 * grub-core/gdb/i386/idt.c: Likewise.
398 * grub-core/gdb/i386/machdep.S: Likewise.
399 * grub-core/gdb/i386/signal.c: Likewise.
400 * grub-core/lib/i386/backtrace.c: Likewise.
401 * grub-core/lib/backtrace.c: Likewise.
402 * include/grub/backtrace.h: Likewise.
403 * include/grub/gdb.h: Likewise.
404 * include/grub/i386/gdb.h: Likewise.
406 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
408 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
410 (add_length): Likewise.
411 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
412 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
414 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
415 __argp_get_display_len.
417 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
419 $"..." support in scripts.
421 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
422 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
423 * grub-core/script/yylex.l: Likewise.
424 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
427 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
429 * gentpl.py: Remove obsolete pkglib_DATA handling.
431 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
433 Don't transform PACKAGE_TARNAME following a discussion on autoconf
436 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
437 * util/grub-kbdcomp.in: Likewise.
438 * util/grub-mkconfig.in: Likewise.
439 * util/grub-mkconfig_lib.in: Likewise.
440 * util/grub-mknetdir.in: Likewise.
441 * util/grub-mkrescue.in: Likewise.
442 * util/grub-mkstandalone.in: Likewise.
443 * util/grub-reboot.in: Likewise.
444 * util/grub-set-default.in: Likewise.
445 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
447 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
451 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
452 * util/grub.d/00_header.in: Compute prefix in the only place it's still
453 used for backward compatibility.
455 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
457 Add new all_video module.
459 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
460 * grub-core/Makefile.core.def (all_video): New module.
461 * grub-core/genmoddep.awk: Generate dependency of all_video from
463 * grub-core/lib/fake_module.c: New file.
464 * grub-core/normal/main.c (features): Add feature_all_video_module.
465 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
466 don't do explicit search again.
467 insmod all_video in load_video if available.
469 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
471 Another round of string clarification and adding TRANSLATORS comments.
473 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
475 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
477 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
479 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
481 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
482 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
484 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
486 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
487 trailing newline implicitly. All users updated.
489 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
491 Implement serial on IEEE1275 and EFI.
493 * docs/grub.texi (Platform-specific limitations): Fix the columen video
494 on emu. Mention arc and emu as the only platforms without serial
496 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
498 * grub-core/term/efi/serial.c: New file.
499 * grub-core/term/ieee1275/serial.c: Likewise.
500 * grub-core/term/serial.c (grub_serial_find): Disable direct port
501 specification if no ns8250 driver is available.
502 (grub_cmd_serial): Likewise.
503 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
504 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
505 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
506 (grub_efi_parity_type_t): New type.
507 (grub_efi_stop_bits_t): Likewise.
508 (grub_efi_serial_io_interface): New struct.
509 * include/grub/serial.h (grub_serial_port): Make 'broken' field
510 available for all interfaces.
511 Add EFI and IEEE1275 fields.
512 (grub_ofserial_init): New proto.
513 (grub_efiserial_init): Likeiwse.
514 * util/grub.d/00_header.in: Don't check for the presence of serial
517 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
519 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
520 name as if it was an alias.
522 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
524 * grub-core/commands/lsacpi.c (options): Fix typo.
526 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
528 Convert grub-emu to argp.
530 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
532 * util/argp_common.c: Rename to ...
533 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
534 Add missing includes.
535 * grub-core/kern/emu/main.c: Convert to argp.
536 * po/POTFILES.in: Regenerate.
537 * util/grub-install.in (usage): Make first letter lowcase in messages
539 * util/grub-setup.c (options): Likewise.
541 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
543 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
544 Put back accidently commented-out code.
546 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
548 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
549 loop check using Brent algorithm.
550 (grub_hfsplus_btree_search): Likewise.
552 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
554 * util/grub-install.in: Fix usage of wrong device for PreP install.
556 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
558 * conf/Makefile.common (CFLAGS_GNULIB): Add
559 -Wno-unsafe-loop-optimizations.
560 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
562 * grub-core/commands/legacycfg.c: Add pragma to skip
563 -Wunsafe-loop-optimizations.
564 (check_password_md5_real): Fix loop counter type.
565 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
567 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
568 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
570 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
571 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
572 * grub-core/net/net.c (grub_net_route_address): Add safety loop
574 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
575 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
576 avoid possible infinite loops.
577 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
578 and -Wunsafe-loop-optimizations.
579 * grub-core/script/yylex.l: Likewise.
580 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
581 (print_glyphs): Avoid infinite loops.
582 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
584 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
586 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
587 to avoid infinite loop.
588 (disp_acpi_rsdt_table): Likewise.
590 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
592 * grub-core/font/font.c (grub_font_load): Add support for default
593 path for fonts ($prefix/fonts).
594 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
595 for checking if string is a path.
596 * grub-core/normal/main.c (features): Add feature_default_font_path.
597 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
598 * util/grub.d/00_header.in: Use default directory if possible.
599 * util/grub-install.in: Install unicode.pf2.
601 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
603 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
604 * po/Rules-swiss: New file.
605 * po/swiss.sed: Likewise.
607 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
609 * grub-core/fs/btrfs.c (find_device): Fix typos.
610 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
611 * util/grub-mkrelpath.c (argp_parser): Likewise.
612 Reported by: Yuri Chornoivan.
614 2012-02-23 Dalet Omega <daletomega@gmail.com>
616 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
617 for usual informative messages.
619 2012-02-23 Dalet Omega <daletomega@gmail.com>
623 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
624 * conf/Makefile.common: Define starfielddir.
625 * configure.ac: Configure starfield.
626 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
627 * themes/starfield/README: Likewise.
628 * themes/starfield/blob_w.png: Likewise.
629 * themes/starfield/boot_menu_c.png: Likewise.
630 * themes/starfield/boot_menu_e.png: Likewise.
631 * themes/starfield/boot_menu_n.png: Likewise.
632 * themes/starfield/boot_menu_ne.png: Likewise.
633 * themes/starfield/boot_menu_nw.png: Likewise.
634 * themes/starfield/boot_menu_s.png: Likewise.
635 * themes/starfield/boot_menu_se.png: Likewise.
636 * themes/starfield/boot_menu_sw.png: Likewise.
637 * themes/starfield/boot_menu_w.png: Likewise.
638 * themes/starfield/slider_c.png: Likewise.
639 * themes/starfield/slider_n.png: Likewise.
640 * themes/starfield/slider_s.png: Likewise.
641 * themes/starfield/src/blob_nw.xcf: Likewise.
642 * themes/starfield/src/bootmenu/: Likewise.
643 * themes/starfield/src/bootmenu/center.xcf: Likewise.
644 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
645 * themes/starfield/src/bootmenu/side.xcf: Likewise.
646 * themes/starfield/src/slider_c.xcf: Likewise.
647 * themes/starfield/src/slider_n.xcf: Likewise.
648 * themes/starfield/src/slider_s.xcf: Likewise.
649 * themes/starfield/src/terminalbox/: Likewise.
650 * themes/starfield/src/terminalbox/center.xcf: Likewise.
651 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
652 * themes/starfield/src/terminalbox/side.xcf: Likewise.
653 * themes/starfield/starfield.png: Likewise.
654 * themes/starfield/terminal_box_c.png: Likewise.
655 * themes/starfield/terminal_box_e.png: Likewise.
656 * themes/starfield/terminal_box_n.png: Likewise.
657 * themes/starfield/terminal_box_ne.png: Likewise.
658 * themes/starfield/terminal_box_nw.png: Likewise.
659 * themes/starfield/terminal_box_s.png: Likewise.
660 * themes/starfield/terminal_box_se.png: Likewise.
661 * themes/starfield/terminal_box_sw.png: Likewise.
662 * themes/starfield/terminal_box_w.png: Likewise.
663 * themes/starfield/theme.txt: Likewise.
665 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
667 * util/grub.d/00_header.in: Add missing export theme.
669 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
671 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
675 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
677 * conf/Makefile.common (grubdatadir): Removed.
678 (Makefile.am): Move eveything grubdata to pkgdata.
680 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
682 * grub-core/commands/acpihalt.c (get_sleep_type):
683 Remove unused variable.
685 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
687 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
688 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
689 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
690 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
691 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
692 i18n with gettext no-op.
693 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
694 GRUB_ACPI_OPCODE_STRING_CONST.
695 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
696 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
698 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
700 * po/POTFILES.in: Regenerate.
702 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
704 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
705 -Wno-error=missing-noreturn.
707 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
709 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
710 condition to avoid possibly infinite loops.
711 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
712 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
714 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
716 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
717 condition to avoid possibly infinite loops.
719 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
721 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
724 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
726 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
728 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
730 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
732 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
734 * util/bin2h.c (usage): Add missing attribute noreturn.
736 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
738 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
739 if the size isn't divisible by 512.
741 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
743 Make list_push and list_remove functions rather than inline functions
744 to decrease size and avoid aliasing violations.
746 * include/grub/list.h (grub_list_push): Move to ...
747 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
748 * include/grub/list.h (grub_list_remove): Move to ...
749 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
751 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
753 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
756 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
758 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
759 Reported by: Seth Goldberg
761 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
763 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
765 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
767 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
768 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
770 * docs/grub.texi (Simple configuration): Document
771 GRUB_CMDLINE_GNUMACH.
773 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
775 * conf/Makefile.common (platform_SCRIPTS): New variable.
776 (platform_PROGRAMS): Likewise.
777 * gentpl.py: Mark *,module and *.image for install.
778 * grub-core/gdb_grub.in: Add a notice of expected environment.
779 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
780 (gmodule.pl): Likewise.
782 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
784 Replace grub_checkkey with grub_getkey_noblock.
786 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
787 (grub_getkey_noblock): ... this. All users updated.
789 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
791 * grub-core/kern/emu/console.c: Move to ...
792 * grub-core/term/emu/console.c: ...here.
793 (grub_ncurses_getkey): Fix return value if no key is detected.
795 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
797 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
798 (grub_unit_test_fini): Likewise.
799 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
801 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
803 * include/grub/test.h (GRUB_UNIT_TEST)
805 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
807 * grub-core/script/execute.c (grub_script_break): Clarify logic.
808 Better error handling.
809 (grub_script_return): Likewise.
810 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
812 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
814 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
815 rimplicit redifinition.
817 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
819 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
822 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
824 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
825 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
828 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
830 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
831 as GRUB_ERR_BUG. Don't malloc if no device is available.
833 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
835 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
836 Mark calling with invalid term as GRUB_ERR_BUG.
838 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
840 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
841 packets rather than raising an error.
843 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
845 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
848 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
850 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
851 diagnostic to dprintf.
852 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
854 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
856 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
859 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
861 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
862 (grub_ntfs_iterate_dir): Likewise.
864 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
866 Efiemu stylistic fixes and gettext.
868 * grub-core/efiemu/i386/loadcore32.c
869 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
870 * grub-core/efiemu/i386/loadcore64.c
871 (grub_arch_efiemu_relocate_symbols64): Likewise.
872 * grub-core/efiemu/i386/pc/cfgtables.c
873 (grub_machine_efiemu_init_tables): Likewise.
874 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
875 (grub_efiemu_loadcore_initXX): Add a filename argument.
877 Improved error message.
878 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
879 Add a filename argument.
881 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
882 Reclassify double relocation as GRUB_ERR_BUG.
884 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
886 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
889 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
891 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
894 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
896 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
898 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
900 Improve string. Gettextize.
902 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
904 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
906 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
908 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
910 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
911 [GRUB_UTIL]: New function.
912 (insert_array) [GRUB_UTIL]: Store partmaps.
913 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
915 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
916 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
917 (probe_abstraction): Print diskfilter and not raid.
918 Reported by: Lennart Sorensen
920 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
922 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
923 * util/grub-mkimagexx.c (MASK3): New define.
924 (add_value_to_slot_20b): Use MASK3.
925 (add_value_to_slot_21): Likewise.
926 (relocate_addresses): Fix format specification.
927 (load_image): Explicitly init symtab_section.
929 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
931 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
932 (grub_util_biosdisk_get_grub_dev): Fix format specification.
934 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
936 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
938 Reported by: Lennart Sorensen
940 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
942 * gentpl.py: Add missing license header.
943 * docs/grub.texi: Update copyright year.
945 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
947 Source grub-mkconfig_lib from the build directory at build time.
948 Suggested by: Vladimir Serbinenko.
950 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
951 * util/grub-install.in: Define pkgdatadir if not already set, and source
952 grub-mkconfig_lib from there.
953 * util/grub-kbdcomp.in: Likewise.
954 * util/grub-mkconfig.in: Likewise.
955 * util/grub-mknetdir.in: Likewise.
956 * util/grub-mkrescue.in: Likewise.
957 * util/grub-mkstandalone.in: Likewise.
958 * util/grub-reboot.in: Likewise.
959 * util/grub-set-default.in: Likewise.
960 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
962 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
964 Increase warning level.
966 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
967 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
968 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
969 (TARGET_CFLAGS): Likewise.
970 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
971 * grub-core/Makefile.core.def (decompressor_xz): Add
972 -Wno-unreachable-code.
973 (normal): Add -Wno-redundant-decls.
974 (xzio): Add -Wno-unreachable-code.
975 (lzopio): Add -Wno-redundant-decls -Wno-error.
976 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
977 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
978 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
979 * grub-core/kern/dl.c: Add exception to -Wcast-align.
980 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
981 * grub-core/kern/i386/coreboot/init.c: Add exception to
982 -Wsuggest-attribute=noreturn.
983 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
984 * grub-core/kern/ia64/dl_helper.c: Likewise.
985 * grub-core/kern/mips/dl.c: Likewise.
986 * grub-core/kern/sparc64/dl.c: Likewise.
987 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
988 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
990 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
991 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
992 * grub-core/loader/mips/linux.c: Likewise.
993 * grub-core/loader/multiboot_elfxx.c: Likewise.
994 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
995 * grub-core/video/sm712.c: Add exception to -Wcast-align.
996 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
997 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
999 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1000 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
1003 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1005 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
1008 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1010 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
1011 Avoid improper use of strings.
1012 (grub_cmd_legacy_initrdnounzip): Likewise.
1014 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1016 * include/grub/emu/misc.h (grub_util_warn): Add missing format
1018 (grub_util_info): Likewise.
1019 (grub_util_error): Likewise.
1021 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1023 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
1024 * util/grub-fstest.c (fstest): Likewise.
1026 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1028 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
1029 (grub_md_sha512_real): Likewise.
1030 (grub_util_get_geli_uuid): Likewise.
1031 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
1032 (grub_util_biosdisk_open): Fix format specification.
1033 Respect format security.
1034 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
1035 (xrealloc): Likewise.
1036 (xasprintf): Likewise.
1038 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1040 * util/import_gcry.py: Include grub/crypto.h in init.c.
1042 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1044 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
1045 (generate_image): Make prefix a const char *.
1046 Fix format specifications. Respect format security.
1047 Avoid void * arithmetics.
1049 (argp_parser): Remove unused variable. Respect format security.
1050 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
1051 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
1052 (count_funcs): Remove unused variable.
1053 (relocate_addresses): Fix format specification.
1054 Disable x86-64 with elf32. Remove unused variables.
1055 (add_fixup_entry): Avoid shadowing.
1056 (make_reloc_section): Fix format specification.
1058 (locate_sections): Fix format specifications.
1059 (load_image): Avoid shadowing.
1061 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1063 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
1064 Fix format specifications. Respect format security.
1065 Don't translate already translated grub_errmsg.
1066 (argp_parser): Remove unused variable
1068 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1070 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
1072 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1074 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
1075 (main): Likewise. Use xmalloc. Respect format security.
1077 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1079 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
1081 (argp_parser): Remove unused variable.
1083 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1085 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
1086 (add_pixel): Make static.
1087 (add_font): Likewise.
1088 (write_string_section): Make name and str a const char *.
1089 (write_be16_section): Make name a const char *.
1090 (print_glyphs): Make static.
1091 (write_font_ascii_bitmap): Likewise.
1092 (write_font_width_spec): Likewise.
1093 (write_font_pf2): Likewise.
1094 (argp_parser): Remove unused variable.
1095 Respect format security.
1096 (main): Avoid shadowing. Respect format security.
1098 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1100 * util/grub-editenv.c (argp_parser): Make static.
1101 (create_envblk_file): Use xmalloc.
1102 (open_envblk_file): Likewise.
1103 Resepect format security.
1104 (set_variables): Respect format security.
1106 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1108 * util/getroot.c (grub_find_device): Respect format security.
1109 (get_mdadm_uuid): Remove unused variable.
1110 (grub_util_pull_device): Dont call gettext on already translated
1112 (find_system_device): Remove unused variable.
1113 (grub_util_get_grub_dev): Likewise.
1114 (grub_make_system_path_relative_to_its_root): Respect format security.
1116 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1118 * util/grub-fstest.c (execute_command): Make first argument
1120 (read_file): Avoid shadowing.
1121 Reuse underlying error message if device open fails.
1122 (cmd_cmp): Respect format security.
1123 (root): Make const char *.
1124 (fstest): Remove args argument and use global copy.
1125 Respect format security.
1126 (argp_parser): Make static.
1127 (main): Make default_root const char *.
1129 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1131 * util/grub-mount.c (root): Make const char *.
1132 (execute_command): Make first argument a const char *.
1133 (fuse_init): Respect format security.
1134 (argp_parser): Make static. Remove unused variable.
1135 (main): Make default_root a const char *.
1136 Respect format security.
1138 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1140 * util/grub-probe.c (probe): Don't call gettext on already translated
1142 Remove unused variables.
1143 (argp_parser): Remove unused variable.
1145 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1147 * util/grub-script-check.c (argp_parser): Remove unused variable.
1148 (main): Rename read to curread to avoid shadowing.
1150 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1152 * util/misc.c (grub_util_write_image_at): Fix format specification.
1153 (grub_util_write_image): Likewise.
1154 (grub_script_execute_argument_to_string): Removed (unused).
1155 (grub_script_execute_menuentry): Likewise.
1156 (grub_putchar): Likewise.
1158 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1160 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
1161 (FUNCTION) [GRUB_UTIL]: Likewise.
1162 (VARIABLE) [GRUB_UTIL]: Likewise.
1164 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1166 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
1167 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
1169 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1171 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
1174 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1176 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
1177 (LzmaEnc_SaveState): Removed (unused).
1178 (LzmaEnc_RestoreState): Likewise.
1179 (LzmaEnc_InitPriceTables): Made static.
1180 (LzmaEnc_Construct): Likewise.
1181 (LzmaEnc_FreeLits): Likewise.
1182 (LzmaEnc_Destruct): Likewise.
1183 (LzmaEnc_Init): Likewise.
1184 (LzmaEnc_InitPrices): Likewise.
1185 (LzmaEnc_Finish): Likewise.
1186 (LzmaEnc_PrepareForLzma2): Removed (unused).
1187 (LzmaEnc_MemPrepare): Likewise.
1188 (LzmaEnc_GetNumAvailableBytes): Likewise.
1189 (LzmaEnc_GetCurBuf): Likewise.
1190 (LzmaEnc_CodeOneMemBlock): Likewise.
1192 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1194 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
1195 (grub_util_ldm_embed): Likewise.
1197 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1199 * util/grub-editenv.c (print_var): Rename name to varname to
1201 (main): Rename index to curindex to avoid shadowing.
1202 Make filename a const char *.
1204 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1206 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
1207 to arg_getline to avoid shadowing.
1209 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1211 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
1212 disk_ to avoid shadowing.
1214 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1216 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
1217 curindex to avoid shadowing.
1219 (MatchFinder_GetNumAvailableBytes): Make static.
1221 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1223 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
1226 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1228 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
1229 argument from encrypt to do_encrypt to avoid shadowing.
1231 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1233 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
1234 incorrect nesting of #if's.
1236 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1238 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
1239 checks which are always false on some platforms.
1240 (grub_cmd_lsacpi): Likewise.
1241 * grub-core/kern/misc.c (grub_strtoul): Likewise.
1242 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
1245 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1247 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
1248 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
1250 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1252 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
1253 re_dfa_t to avoid breaking alignment invariants.
1254 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
1255 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
1257 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1259 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
1260 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
1262 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1264 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
1267 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1269 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
1270 conserve alignment invariants.
1271 (grub_ehci_ehcc_read16): Likewise.
1272 (grub_ehci_oper_read32): Likewise.
1273 (grub_ehci_oper_write32): Likewise.
1274 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
1275 Conserve alignment invariants.
1277 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1279 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
1280 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
1283 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1285 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
1286 Remove unused variable.
1288 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1290 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
1293 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1295 * include/grub/net.h: Remove double declarations.
1297 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1299 Remove "payload" command in ia64 Linux loader since I couldn't
1300 find any evidence of it being used for anything.
1301 Replace "relocate" command with an environment variable
1303 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
1305 (ia64_boot_payload): Removed.
1306 (last_payload): Likewise.
1307 (RELOCATE_OFF): Likewise.
1308 (RELOCATE_ON): Likewise.
1309 (RELOCATE_FORCE): Likewise.
1310 (relocate): Likewise.
1311 (free_pages): Don't free payloads.
1312 (grub_load_elf64): Use common error messages.
1313 Use "linux_relocate" variable.
1314 Increase the space after boot_params.
1315 (grub_cmd_payload): Removed.
1316 (grub_cmd_relocate): Likewise.
1317 (grub_cmd_fpswa): Improve messages.
1318 (cmd_payload): Removed.
1319 (cmd_relocate): Likewise.
1320 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
1321 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
1323 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1325 Convert UHCI to DMA framework.
1327 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
1328 (grub_uhci_pci_iter): Fill new members
1329 (grub_alloc_td): Use P2V and V2P functions.
1330 (grub_free_queue): Likewise.
1331 (grub_alloc_qh): Likewise.
1332 (grub_uhci_setup_transfer): Likewise.
1333 (grub_uhci_check_transfer): Likewise.
1335 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1337 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
1338 Remove assignment in if while on it.
1340 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1342 * util/grub-mkstandalone.in: Fix modules directory.
1344 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1346 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
1348 (argp_parser): Accept "auto" as compression specification.
1350 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1352 Fix `help' with unloaded modules.
1354 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
1355 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
1356 (grub_dyncmd_dispatcher): Small stylistic fix.
1357 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
1358 explicit help is requested.
1360 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1362 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
1363 Explicitly init restart while on it.
1365 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1367 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
1370 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1372 * util/grub-mknetdir.in: Use . rather than source for POSIX
1375 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1377 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
1379 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1381 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
1384 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1386 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
1389 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1391 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
1393 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1395 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
1396 iteration of partitions.
1398 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1400 Improve gettext support. Stylistic fixes and error handling fixes while
1403 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
1405 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
1406 part. Instead setup the correct stack in RM.
1407 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
1409 * include/grub/i386/relocator_private.h: New file.
1411 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1413 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
1415 * util/grub-fstest.c (options): Add missing DEVICE part.
1417 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1419 Clarify and unify messages.
1421 * grub-core/commands/hashsum.c (options): Unify messages.
1422 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
1423 literal-only message as translatable.
1424 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
1425 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
1426 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
1428 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
1429 key, not the key used to unlock. Clarify what it's used for.
1430 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
1431 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
1432 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
1433 * util/grub-editenv.c (options): Unify "verbose" message.
1434 * util/grub-fstest.c (read_file): Unify error message.
1435 (fstest): Add quotes around commands.
1436 (options): Unify "verbose" message.
1437 * util/grub-install.in: Add quotes around variable name.
1438 * util/grub-kbdcomp.in: Unify error message.
1439 * util/grub-mkfont.c (main): Likewise.
1440 * util/grub-mkrescue.in: Likewise.
1441 * util/grub-mklayout.c (options): Unify "verbose" message.
1442 * util/grub-mkstandalone.in: Unify help and verbose messages.
1443 * util/grub-mount.c (options): Unify "verbose" message.
1444 * util/grub-probe.c (options): Likewise.
1445 * util/grub-script-check.c (options): Likewise.
1446 * util/grub-setup.c (setup): Unify no-terminator message.
1447 (options): Use DEVICE and not DEV.
1448 Unify "verbose" message.
1449 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
1451 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1453 Improve and unify messages.
1455 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
1456 name. All users updated.
1457 Print filename in error.
1458 (read_device_map): Print filename in error.
1459 * util/getroot.c (grub_guess_root_devices): Print filename in error.
1460 (grub_util_get_os_disk): Likewise.
1461 (grub_util_biosdisk_get_grub_dev): Likewise.
1462 (grub_util_check_block_device): Likewise.
1463 (grub_util_check_char_device): Likewise.
1464 (grub_make_system_path_relative_to_its_root): Likewise.
1465 * util/grub-editenv.c (create_envblk_file): Likewise.
1466 (open_envblk_file): Likewise.
1467 (write_envblk): Likewise.
1468 * util/grub-fstest.c (cmd_cp): Likewise.
1469 (cmd_cat): Likewise.
1470 (cmd_cmp): Likewise.
1471 * util/grub-menulst2cfg.c (main): Likewise.
1472 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
1473 (write_font_width_spec): Likewise.
1474 (write_font_pf2): Likewise.
1475 * util/grub-mkimage.c (generate_image): New argument outname.
1477 Remove unreacheable message.
1478 (options): Unify messages.
1479 (help_filter): Likewise.
1480 * util/grub-mklayout.c (usage): Removed (unused).
1481 (main): Print filename in error.
1482 * util/grub-mkrescue.in: Fix wrong quoting.
1483 * util/grub-setup.c (setup): Print filename in error.
1484 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
1485 (check_sas): Likewise.
1486 * util/misc.c (grub_util_get_fp_size): Removed.
1487 (grub_util_get_image_size): Print filename in error.
1488 (grub_util_read_at): Removed.
1489 (grub_util_read_image): Print filename in error.
1490 (grub_util_load_image): Likewise.
1491 (grub_util_write_image_at): New argument filename. All users updated.
1492 Print filename in error.
1493 (grub_util_write_image): New argument filename. All users updated.
1494 Print filename in error.
1495 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
1496 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
1498 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1500 * grub-core/Makefile.core.def (pxechain): New module.
1501 * grub-core/loader/i386/pc/pxechainloader.c: New file.
1502 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
1504 (grub_pc_net_config_real): Use grub_pxe_get_cached.
1505 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
1507 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1509 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
1510 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
1511 * include/grub/err.h (grub_error_saved): New struct.
1512 (grub_errmsg): Make array size explicit.
1513 * include/grub/misc.h (grub_error_save): New function.
1514 (grub_error_load): Likewise.
1515 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
1516 (grub_error_push): Update `errno' member name.
1517 (grub_error_pop): Likewise
1518 * grub-core/net/tftp.c (tftp_data): New member save_err.
1519 (tftp_receive): Save error.
1520 (tftp_open): Restore error.
1522 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1524 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
1525 to real mode down to execute A20-related code in protected mode as
1528 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1530 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
1531 NULL when the argument `level' has an unexpected value.
1533 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1535 Move platform-dependent files from $prefix to $prefix/$platform.
1537 * config.h.in (GRUB_TARGET_CPU): New definition.
1538 (GRUB_PLATFORM): Likewise.
1539 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
1540 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
1541 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1542 * grub-core/kern/dl.c (grub_dl_load): Likewise.
1543 * grub-core/normal/autofs.c (read_fs_list): Likewise.
1544 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
1545 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
1546 * grub-core/normal/term.c (read_terminal_list): Likewise.
1547 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
1549 (grub_gettext_init_ext): Likewise.
1550 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
1552 * util/grub-install.in: Update directories.
1553 * util/grub-mknetdir.in: Likewise.
1554 * util/grub-mkrescue.in: Likewise.
1556 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1558 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
1559 grub_error framework. All users updated.
1561 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1563 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
1564 lists (by always binsearching), improve caching (cache strings
1565 used for binsearch, not only results), improve
1566 maintainability (by using more structured binary search) and correct
1569 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1571 * grub-core/script/execute.c (grub_script_return): Fix warning.
1573 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1575 * grub-core/script/execute.c (grub_script_return): Fix potential
1577 Reported by: Jim Meyering.
1579 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1581 * po/POTFILES.in: Regenerate.
1582 * util/grub-install.in: Gettextize the strings missed in first pass.
1584 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1586 * Makefile.util.def (grub-mkdevicemap): Removed.
1587 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
1588 * include/grub/util/deviceiter.h: Removed.
1589 * util/deviceiter.c: Likewise.
1590 * util/getroot.c (grub_util_get_os_disk): New function.
1591 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
1592 replacement for EFI.
1593 * util/grub-mkdevicemap.c: Removed.
1594 * util/grub-probe.c (probe): Handle PRINT_DISK.
1595 (argp_parser): Handle -t disk.
1597 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1599 * util/grub-mkfont.c: Migrate to argp.
1600 * util/grub-mklayout.c: Likewise.
1601 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1602 * util/grub-mkrelpath.c: Likewise.
1603 * util/grub-probe.c: Likewise.
1604 * util/grub-script-check.c: Likewise.
1606 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1608 * util/grub-reboot.in: Add missing datarootdir.
1609 Add missing newline.
1610 * util/grub-set-default.in: Add missing datarootdir.
1611 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
1612 * util/grub-mkrescue.in: Likewise.
1614 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1616 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
1618 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1620 * util/grub-kbdcomp.in: Add decent help and gettextize.
1621 * docs/man/grub-kbdcomp.h2m: New file.
1623 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1625 Migrate grub-mkimage.c to argp.
1627 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
1628 (grub-setup): Likewise.
1629 * util/grub-setup.c (print_version): Move to ...
1630 * util/argp_common.c (print_version): ... here.
1631 * util/grub-setup.c (argp_program_version_hook): Move to ...
1632 * util/argp_common.c (argp_program_version_hook): ... here.
1633 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
1635 * util/grub-mkimage.c (main): Migrate to argp.
1637 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1639 * util/grub-mkrescue.in: Use same message as
1640 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
1641 for better translations.
1643 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1645 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
1646 options with generic grub-mkrescue.in with the goal of future
1649 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1651 * grub-core/kern/mm.c: Add missing include of i18n.h
1652 * grub-core/lib/relocator.c: Likewise.
1654 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1656 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
1658 (allocate_pages): Check return value.
1659 Replace fatal with error.
1660 (grub_linux_boot): Replace printf with dprintf.
1661 Check find_mmap_size return value.
1662 Replace fatal with error.
1663 Don't call grub_machine_fini.
1664 (grub_load_elf64): Replace printf with dprintf.
1665 (grub_cmd_linux): Likewise.
1666 (grub_cmd_initrd): Likewise.
1667 (grub_cmd_payload): Likewise.
1669 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1671 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
1673 * grub-core/video/radeon_fuloong2e.c
1674 (grub_video_radeon_fuloong2e_setup): Likewise.
1675 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
1676 * grub-core/video/video.c (grub_video_set_mode): Don't override
1677 standard out of memory message.
1679 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1681 NetBSD disk wedge support.
1683 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
1684 [__NetBSD__]: Handle NetBSD disk wedges.
1685 * util/getroot.c (convert_system_partition_to_system_disk)
1686 [__NetBSD__]: Likewise.
1688 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
1690 * util/grub-mkconfig.in: Use umask rather than chmod to create
1691 grub.cfg.new to avoid insecure grub.cfg.
1693 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1695 * grub-core/commands/ls.c: Gettextize.
1696 * grub-core/commands/setpci.c: Likewise.
1697 * grub-core/commands/videotest.c: Likewise.
1698 * grub-core/disk/geli.c: Likewise.
1699 * grub-core/kern/mm.c: Likewise.
1700 * grub-core/lib/relocator.c: Likewise.
1701 * grub-core/loader/efi/appleloader.c: Likewise.
1702 * grub-core/loader/i386/xnu.c: Likewise.
1703 * grub-core/loader/ia64/efi/linux.c: Likewise.
1704 * grub-core/loader/xnu.c: Likewise.
1705 * grub-core/net/dns.c: Likewise.
1706 * grub-core/net/net.c: Likewise.
1707 * grub-core/script/lexer.c: Likewise.
1708 * grub-core/script/parser.y: Likewise.
1709 * grub-core/script/yylex.l: Likewise.
1710 * util/getroot.c: Likewise.
1711 * util/grub-setup.c: Likewise.
1713 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1715 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
1718 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1720 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
1722 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1724 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
1726 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
1727 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
1729 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1731 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
1732 * util/grub-install.in: Gettextize.
1733 * util/grub-mkconfig.in: Likewise.
1734 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
1736 (grub_warn): Gettextize.
1737 * util/grub-mknetdir.in: Gettextize.
1738 * util/grub-mkrescue.in: Likewise.
1739 * util/grub-mkstandalone.in: Likewise.
1740 * util/grub-reboot.in: Likewise.
1741 * util/grub-set-default.in: Likewise.
1742 * util/grub.d/00_header.in: Likewise.
1743 * util/grub.d/10_hurd.in: Likewise.
1744 * util/grub.d/10_kfreebsd.in: Likewise.
1745 * util/grub.d/10_linux.in: Likewise.
1746 * util/grub.d/10_netbsd.in: Likewise.
1747 * util/grub.d/10_windows.in: Likewise.
1748 * util/grub.d/20_linux_xen.in: Likewise.
1749 * util/grub.d/30_os-prober.in: Likewise.
1750 * po/POTFILES-shell.in: Regenerate.
1752 2012-02-03 Richard Laager <rlaager@wiktel.com>
1754 * util/grub-mkimage.c (main): Fix format-security warning.
1755 * util/grub-mkrelpath.c (main): Likewise.
1756 * util/grub-probe.c (main): Likewise.
1758 2012-02-03 Richard Laager <rlaager@wiktel.com>
1760 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
1762 Put back lost PRINT_DRIVE.
1764 2012-02-03 Richard Laager <rlaager@wiktel.com>
1766 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
1767 (grub_guess_root_devices): Replace strlen with sizeof.
1769 (find_root_devices_from_poolname): Remove unused variable.
1772 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1774 Support install on multi-device filesystems.
1776 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
1777 (grub_guess_root_devices): ...this. Return char **. All users updated.
1778 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
1780 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
1781 (find_root_devices_from_poolname): ... here.
1782 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
1784 (grub_guess_root_device): Rename to ...
1785 (grub_guess_root_devices): ... this. Return char **. All users updated.
1786 * util/grub-install.in: Handle multi-device filesystems.
1787 * util/grub-probe.c (probe). Make device_names a char **. Add delim
1788 argument. All users updated.
1789 Handle multi-device filesystems.
1790 Use 'delim' as separator.
1791 Remove device check to allow filesystems on file.
1792 (main): Support -0 argument. Handle multi-device.
1793 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
1794 Fix a cross-device check while on it.
1795 (arguments): Remove root_dev.
1796 (argp_parser): Remove -r.
1797 (main): Remove root_dev.
1799 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1801 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
1803 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1805 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
1807 Reported by: NODA, Kai <nodakai>.
1809 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1813 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
1815 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
1816 (grub_ehci_setup_qh): Likewise.
1817 (grub_ehci_find_qh): Likewise.
1818 (grub_ehci_transaction): Likewise.
1819 (grub_ehci_setup_transfer): Likewise.
1820 (grub_ehci_check_transfer): Likewise.
1821 (grub_ehci_portstatus): Likewise.
1822 (grub_ehci_detect_dev): Likewise.
1823 (grub_ehci_transfer_controller_data): New field td_last_phys.
1824 (grub_ehci_setup_transfer): Fill td_last_phys.
1825 (grub_ehci_check_transfer): Use td_last_phys.
1827 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
1829 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
1830 if no submenu is present.
1832 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1836 * include/grub/usb.h (grub_usbms_protocol_t): New values
1837 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
1838 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
1839 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
1840 (grub_usbms_dev): Add subclass, protocol and intrpt.
1841 Remove in_maxsz and out_maxsz.
1842 (grub_usbms_reset): Rename to ...
1843 (grub_usbms_bo_reset): .. this.
1844 (grub_usbms_cbi_cmd): New function.
1845 (grub_usbms_cbi_reset): Likewise.
1846 (grub_usbms_reset): Likewise.
1847 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
1848 (grub_usbms_transfer): Rename to ...
1849 (grub_usbms_transfer_bo): ... this.
1850 (grub_usbms_transfer_cbi): Likewise.
1851 (grub_usbms_transfer): Likewise.
1853 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1854 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1856 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
1857 the support for the CS5536 modification thereos and few bugfixes.
1859 * grub-core/Makefile.core.def (ehci): New module.
1860 * grub-core/bus/usb/ehci.c: New file.
1861 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
1862 port and hubaddr. All users updated.
1863 Save port and hubaddr into dev structure.
1864 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
1866 * include/grub/pci.h (grub_dma_phys2virt): New function.
1867 (grub_dma_virt2phys): Likewise.
1868 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
1870 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1872 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
1873 check as some mkfs implementations omit it.
1875 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1877 * docs/grub.texi (Unicode): Mention identifier and space limitations.
1879 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1881 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
1882 Add new member volname2.
1883 (grub_jfs_label): Use volname2 if available.
1885 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1887 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
1888 over last_mounted as seen in image generated by mkfs.nilfs2.
1889 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
1891 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1893 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
1894 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
1895 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
1897 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1899 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
1902 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1904 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
1905 subvolume name (by removing a bogus and useless check).
1907 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1909 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
1912 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1914 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
1915 (grub_scsi_read_capacity10): ... this.
1916 (grub_scsi_read_capacity16): New function.
1917 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
1919 Fix off-by-one error.
1920 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
1922 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
1923 (grub_scsi_read_capacity10): ... this.
1924 (grub_scsi_read_capacity_data): Rename to ...
1925 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
1926 (grub_scsi_read_capacity16): New struct.
1927 (grub_scsi_read_capacity16_data): Likewise.
1928 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
1929 grub_scsi_cmd_read_capacity10.
1930 New command grub_scsi_cmd_read_capacity16.
1932 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1936 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
1937 (grub_scsi_write16): Likewise.
1938 (grub_scsi_read): Use read16 when necessary.
1939 (grub_scsi_write): Likewise.
1940 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
1941 (grub_scsi_write16): Likewise.
1942 (grub_scsi_cmd_t): Add READ16 and WRITE16.
1944 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1946 SCSI write support (for usbms mainly).
1948 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
1950 (grub_scsi_write): Implement.
1951 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
1953 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1955 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
1958 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1960 * grub-core/lib/posix_wrap/string.h (memchr): New function.
1962 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1964 * po/POTFILES.in: Regenerate.
1966 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1968 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
1969 with grub_printf to avoid unnecessary fatal failure.
1971 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1973 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
1974 (INT_MAX): Likewise.
1975 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
1976 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
1977 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
1981 (strncpy): Likewise.
1983 (strncat): Likewise.
1984 (strcoll): Likewise.
1985 * include/grub/types.h (GRUB_SHRT_MAX): New define.
1986 (GRUB_INT_MAX): Likewise.
1988 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1990 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
1992 (optimize_utf8): Likewise.
1993 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
1995 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1997 * grub-core/boot/i386/pc/lnxboot.S: Use
1998 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
1999 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
2001 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
2003 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
2005 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2007 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
2008 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
2009 now to avoid double free.
2010 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
2012 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
2013 * util/grub-probe.c (escape_of_path): Always return a new copy.
2014 (print_full_name): Escape path.
2015 (probe): Don't call grub_util_devname_to_ofpath on NULL.
2016 Fix hints on abstractions.
2018 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2020 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
2021 Don't add "root" line if no compatibility hont is available.
2022 Suggested by: Seth Goldberg.
2024 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2026 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
2027 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
2028 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
2029 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
2031 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2033 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
2035 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2037 * util/grub-pe2elf.c (ehdr): Make static.
2039 (num_sections): Likewise.
2042 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2044 Eliminate ofpath limits and possible overflows.
2046 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
2047 (OF_PATH_MAX): Removed.
2048 (MAX_DISK_CAT): New const.
2049 (find_obppath): Use allocated rather than preallocated buffer.
2050 Return result. Argument of_path removed. All users updated.
2052 (xrealpath): New function.
2053 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
2054 Allocate rather than use preallocated buffer. All users updated.
2055 (__of_path_common): Use allocated rather than preallocatecd buffer.
2056 Return result. Argument of_path removed. All users updated.
2057 (vendor_is_ATA): Read only needed part form the file.
2058 (check_sas): Allocate depending on contents rather than fixed.
2059 (main) [STANDALONE]: Handle NULL result.
2061 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2063 * grub-core/normal/completion.c (iterate_dev): Close the disk.
2065 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2067 Cryptodisk write support.
2069 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
2070 (grub_cryptodisk_decrypt): Moved logic to ...
2071 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
2072 (grub_cryptodisk_write): Implement.
2073 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
2074 (grub_util_fd_write): ... this. Make global.
2075 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
2077 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2079 * include/grub/list.h (grub_list_remove): Don't crash if element is
2082 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2084 Rename ofconsole to console.
2086 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
2087 as sysnonym to console.
2088 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
2089 * grub-core/term/ieee1275/console.c: ... this. All users updated.
2090 Rename grub_ofconsole_ to grub_console_. All users updated
2091 (grub_console_term_output): Rename "ofconsole" to "console".
2092 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
2095 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2097 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
2099 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
2100 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
2101 GRUB_DISK_DEVICE_FILE_ID.
2103 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2105 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
2106 and improve performance.
2108 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2110 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
2111 missing ieee1275/ prefix on whole disk.
2113 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2115 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
2116 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
2118 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2120 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
2122 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2124 Merge common RAID and LVM logic to an abstract diskfilter.
2125 Add LDM support using the same framework.
2127 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
2128 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
2129 (libgrubmods): Remove grub-core/disk/raid.c and
2130 grub-core/partmap/gpt.c.
2131 * grub-core/Makefile.core.def (ldm): New module.
2132 (raid): Renamed to diskfilter. All users updated.
2133 * grub-core/disk/raid.c: Moved to ...
2134 * grub-core/disk/diskfilter.c: ... here.
2135 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
2137 (find_array): Renamed to ...
2138 (find_lv): ... this. Support multi-LV. Skip nameless LVs
2139 (grub_is_array_readable): Renamed to ...
2140 (grub_is_lv_readable): ... this. Support multinode hierarchy.
2141 (insert_array): New argument id.
2142 (is_node_readable): New function.
2143 (scan_device): Rename to ...
2144 (scan_disk): .. this. Restrict to one disk.
2145 (scan_devices): New function.
2146 (grub_diskfilter_iterate): Support multi-LV.
2147 Skip invisible and nameless LVs.
2148 (grub_diskfilter_memberlist): Support multi-LV.
2149 (grub_diskfilter_read_node): New function.
2150 (grub_raid_read): Most of logic moved to ...
2151 (read_segment): ... here
2152 (read_lv): New function.
2153 (grub_diskfilter_get_vg_by_uuid): New function.
2154 (grub_diskfilter_make_raid): Likewise.
2155 * grub-core/disk/ldm.c: New file.
2156 * grub-core/disk/lvm.c (vg_list): Removed.
2157 (lv_count): Likewise.
2158 (scan_depth): Likewise.
2159 (is_lv_readable): Likewise.
2160 (grub_lvm_getvalue): Advance pointer past the number.
2162 (do_lvm_scan): Refactored into ...
2163 (grub_lvm_detect): ... this. Support raid.
2164 (grub_lvm_iterate): Removed.
2165 (grub_lvm_memberlist): Likewise.
2166 (grub_lvm_open): Likewise.
2167 (grub_lvm_close): Likewise.
2168 (read_lv): Likewise.
2169 (read_node): Likewise.
2170 (is_node_readable): Likewise.
2171 (is_lv_readable): Likewise.
2172 (grub_lvm_read): Likewise.
2173 (grub_lvm_write): Likewise.
2174 (grub_lvm_dev): Use diskfilter
2175 (GRUB_MOD_INIT): Likewise.
2176 (GRUB_MOD_FINI): Likewise.
2177 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
2179 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
2180 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2181 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
2182 grub_diskfilter_read_node.
2184 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
2185 grub_diskfilter_read_node.
2186 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
2187 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
2188 (grub_disk_dev_iterate): Move from here...
2189 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
2190 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2192 (grub_hostdisk_find_partition_start): Likewise.
2193 (grub_hostdisk_os_dev_to_grub_drive): New function.
2194 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
2195 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
2196 * util/getroot.c (make_device_name): ... here.
2197 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2199 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
2200 * grub-core/kern/emu/hostdisk.c
2201 (convert_system_partition_to_system_disk): Move to ...
2202 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
2203 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
2204 * util/getroot.c (device_is_wholedisk): ... here.
2205 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
2206 * util/getroot.c (find_system_device): ... here.
2207 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
2209 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
2210 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
2212 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
2214 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
2216 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
2217 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
2218 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
2220 * include/grub/raid.h: Renamed to ...
2221 * include/grub/diskfilter.h: ... this.
2222 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
2223 (GRUB_RAID_LAYOUT_*): Make into array.
2224 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
2225 (grub_diskfilter_vg): New struct.
2226 (grub_diskfilter_pv_id): Likewise.
2227 (grub_raid_member): Removed.
2228 (grub_raid_array): Likewise.
2229 (grub_diskfilter_pv): New struct.
2230 (grub_diskfilter_lv): Likewise.
2231 (grub_diskfilter_segment): Likewise.
2232 (grub_diskfilter_node): Likewise.
2233 (grub_diskfilter_get_vg_by_uuid): New proto.
2234 (grub_raid_register): Inline.
2235 (grub_diskfilter_unregister): Likewise.
2236 (grub_diskfilter_make_raid): New proto.
2237 (grub_diskfilter_vg_register): Likewise.
2238 (grub_diskfilter_read_node): Likewise.
2239 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
2240 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
2241 (grub_util_is_ldm): Likewise.
2242 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
2243 (grub_hostdisk_find_partition_start): Likewise.
2244 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
2245 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
2247 (grub_gpt_partition_map_iterate): New proto.
2248 * include/grub/lvm.h (grub_lvm_vg): Removed.
2249 (grub_lvm_pv): Likewise.
2250 (grub_lvm_lv): Likewise.
2251 (grub_lvm_segment): Likewise.
2252 (grub_lvm_node): Likewise.
2253 * util/getroot.c [...]
2254 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
2255 (probe_abstraction): Likewise.
2256 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
2257 (main): Remove dead logic.
2259 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
2261 Simplify root device discover and don't fail when trying to open
2264 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
2266 (get_diskname_from_path): Likewise.
2267 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
2270 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2272 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
2274 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2276 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
2279 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2281 * util/grub-install.in: Add missing \.
2282 Reported by: gentoofan
2284 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2286 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
2287 (direct_read): Use correct compressed size.
2288 (grub_squash_read_data): Likewise.
2290 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2292 * docs/grub.texi (Platform limitations): New section.
2293 (Platform-specific operations): Likewise.
2294 * docs/grub-dev.texi (Porting): Likewise.
2296 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2298 IEEE1275 disk write support.
2300 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
2302 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
2303 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
2304 and seek loginc to ...
2305 (grub_ofdisk_prepare): ... here.
2306 (grub_ofdisk_write): Implement.
2308 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2310 ARC disk write support.
2312 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
2313 (reopen): New argument writable. All users updated.
2314 Handle required access mode.
2315 (grub_arcdisk_write): Implement.
2316 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
2317 (grub_arc_firmware_vector): Make buffer to write a const buffer.
2319 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2321 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
2322 (read_sblock): Don't attempt to read superblocks outside the disk size.
2324 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2326 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
2327 first superblock to find the second one when possible.
2329 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2331 * util/grub-install.in: Fix an ARC bug.
2332 Print a warning if no platform-specific setup is available.
2334 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2336 Use static allocation rather than scratch pointer in reed_solomon.
2337 It decreases its size significantly and avoids a variable in .text.
2339 * grub-core/lib/reed_solomon.c (scratch): Removed.
2340 (chosenstat): New const or static array.
2346 (errvals): Likewise.
2348 (pol_evaluate): Replace x with log_x argument. All users updated.
2349 (syndroms): Removed.
2350 (gauss_solve): Use statically allocated arrays.
2351 (rs_recover): Likewise.
2352 Calculate syndroms directly.
2353 (decode_block): Use statically allocated arrays.
2354 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
2355 (main) [TEST]: Allow -DTEST -DSTANDALONE.
2357 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2359 Eliminate fixed limit on reed solomon decoder length.
2361 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
2362 rather than hardcoding the address.
2363 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
2364 no_reed_solomon_length.
2365 Move gate_a20 to no-reed-solomon part.
2366 Don't force a particular size of no reed-solomon part.
2367 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
2369 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
2370 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
2372 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2374 * grub-core/commands/wildcard.c (match_files): Handle filenames
2375 without explicit device.
2376 (wildcard_expand): Don't add explicit device if not already present.
2377 * tests/grub_script_echo1.in: Add a new expansion test.
2379 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2381 Replace single-linked with double-linked lists. It results in more
2382 compact and more efficient code.
2384 * grub-core/kern/list.c (grub_list_push): Moved from here ...
2385 * include/grub/list.h (grub_list_push): ... to here. Set prev.
2386 (grub_list_remove): Moved from here ...
2387 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
2388 (grub_prio_list_insert): Set prev.
2389 * include/grub/list.h (grub_list): Add prev. All users updated.
2391 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2393 Handle newer autotools. Add some missing quotes while on it.
2395 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
2396 (pkglib_DATA): Move grub-mkconfig_lib from here ...
2397 (pkgdata_DATA): ... here.
2398 * Makefile.util.def (update-grub_lib): Removed.
2399 * conf/Makefile.common (pkglib_DATA): Removed.
2400 (pkglib_SCRIPTS): Likewise.
2401 (pkgdata_DATA): New variable.
2402 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
2405 Remove unused variable while on it.
2406 * tests/util/grub-shell.in: Likewise.
2407 * util/grub-install.in: Likewise.
2408 * util/grub-mkconfig.in: Likewise.
2409 * util/grub-mknetdir.in: Likewise.
2410 * util/grub-mkrescue.in: Likewise.
2411 * util/grub-mkstandalone.in: Likewise.
2412 * util/grub.d/00_header.in: Likewise.
2413 * util/grub.d/10_hurd.in: Likewise.
2414 * util/grub.d/10_illumos.in: Likewise.
2415 * util/grub.d/10_kfreebsd.in: Likewise.
2416 * util/grub.d/10_linux.in: Likewise.
2417 * util/grub.d/10_netbsd.in: Likewise.
2418 * util/grub.d/10_windows.in: Likewise.
2419 * util/grub.d/20_linux_xen.in: Likewise.
2420 * util/grub.d/30_os-prober.in: Likewise.
2421 * util/update-grub_lib.in: Removed.
2423 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
2425 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
2426 a workaround for intel problem.
2428 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
2429 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2430 2012-01-23 pfsmorigo
2432 * util/grub-install.in: Support dd'in into PreP partition.
2433 * util/grub-probe.c (probe): Support discovering partition type.
2434 (main): Support -t msdos_parttype.
2436 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2438 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
2439 infinite recursion using counter.
2440 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
2441 init to skip it if the magic check fails.
2442 (dec_stream_header): Init s->crc32.
2444 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2445 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
2446 2012-01-22 Richard Laager <rlaager@wiktel.com>
2448 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
2450 (find_bestub): Determine correct size.
2451 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
2452 (scan_disk): Align the size down.
2453 Call check pool before find_bestub to have ashift.
2455 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2457 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
2458 dprintf in no-malloc zone.
2460 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
2462 * configure.ac: Add back in test for limits.h.
2464 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2466 Support 4K-sector NTFS.
2468 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
2469 (grub_ntfs_data): Remove blocksize.
2470 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
2471 Remove data argument. All users updated.
2473 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2475 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
2476 being in .text to avoid dprel references.
2477 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
2478 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
2479 (grub_arch_highmemsize): Likewise.
2480 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
2481 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
2482 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
2484 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2486 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
2488 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
2489 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
2491 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2493 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
2495 (grub_set_datetime_cmos): Likewise.
2497 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2499 Make XZ compression parameters dependent on target and not host CPU.
2501 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
2502 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
2504 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2506 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
2507 set but not used variable.
2509 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2511 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
2512 created when no uuid support is compiled into mkfs.reiser.
2514 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2516 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
2517 (utf8_to_macroman): Do the opposite.
2518 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
2520 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2522 * configure.ac: Refise build qemu_mips w/o unifont.
2524 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2526 Eliminate grub_min/grub_max prone to overflow usage.
2528 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
2529 (poll_nonroot_hub): Likewise.
2530 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
2531 (grub_affs_label): Likewise.
2532 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
2533 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
2534 (grub_hfs_label): Likewise.
2535 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
2536 * grub-core/fs/zfs/zfs.c (MIN): Remove.
2537 (zap_leaf_array_equal): Use grub_size. Remove MIN.
2538 (zap_leaf_array_get): Likewise.
2539 (dnode_get_path): Likewise.
2540 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
2541 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
2542 * grub-core/script/execute.c (grub_script_break): Likewise.
2543 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
2545 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
2546 * include/grub/misc.h (grub_min): Removed.
2547 (grub_max): Likewise.
2549 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2551 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
2554 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2556 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
2558 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2560 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
2562 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2564 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
2565 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
2567 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2569 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
2570 rather than a hack for grub_strncasemap.
2572 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2574 Support multiple initrds
2575 Note: part of this was accidently committed in r3739.
2577 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
2579 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
2580 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
2581 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2582 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2583 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2585 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2587 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
2588 disks with unknown size.
2589 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
2591 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2593 Remove defines pertaining to arbitrary limits not affecting GRUB
2596 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
2597 (EXT2_MAX_SYMLINKCNT): Likewise.
2598 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
2599 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
2600 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
2601 (GRUB_PXE_MAX_BLKSIZE): Likewise.
2602 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
2603 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
2604 (DN_MAX_OBJECT_SHIFT): Likewise.
2605 (DN_MAX_OFFSET_SHIFT): Likewise.
2606 (DN_MAX_OBJECT): Likewise.
2607 (DNODES_PER_LEVEL_SHIFT): Likewise.
2608 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
2609 (SPA_MAXBLOCKSIZE): Likewise.
2610 (SPA_BLOCKSIZES): Likewise.
2611 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
2612 (MZAP_MAX_BLKSZ): Likewise.
2614 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2616 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
2617 handle NULL appropriately.
2620 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2624 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
2626 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
2627 * configure.ac: Fix efiemu check.
2629 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2631 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
2633 Reported by: adamwill
2635 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
2637 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
2639 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2641 Fix handling of wide characters in gfxterm.
2643 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
2644 (clear_char): Likewise.
2645 (paint_char): Skip code == NULL chars.
2646 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
2648 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2650 * grub-core/normal/charset.c: Move comment to right place.
2652 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2654 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
2655 (GRUB_AFFS_FLAG_FFS): Put back where it was.
2656 (grub_affs_mount): Revert the correct version checking.
2658 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2660 * docs/grub.texi (Unicode): Mention several other unsupported features.
2662 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2664 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
2665 case statements as compile-time one.
2666 (direct_read): Prevent spurious warnings.
2667 (grub_squash_read_data): Likewise.
2669 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2671 Various squash4 fixes and LZO and XZ support.
2673 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
2674 Add xzembed source files.
2675 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
2676 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
2677 (grub_squash_inode): New subtype long_dir.
2678 (SQUASH_TYPE_LONG_DIR): New inode type.
2679 (COMPRESSION): New enum.
2680 (XZBUFSIZ): New const.
2681 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
2682 (read_chunk): Use data->decompress.
2683 (zlib_decompress): New function.
2684 (lzo_decompress): Likewise.
2685 (xz_decompress): Likewise.
2686 (squash_mount): Set new data fields.
2687 (grub_squash_iterate_dir): Handle long dir.
2688 (squash_unmount): Free xzdec and xzbuf.
2689 (grub_squash_open): Check ino type.
2690 (direct_read): Stylistic fixes. Use data->decompress.
2691 (grub_squash_read_data): Likewise.
2692 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
2693 (get_byte): Likewise.
2694 (grub_zlib_disk_read): Removed.
2695 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
2696 (GRUB_POSIX_BOOL_DEFINED): New define.
2697 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
2698 * grub-core/lib/xzembed/xz.h: Addmissing includes.
2699 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
2700 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
2702 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2704 Don't override more informative errors.
2706 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
2707 * grub-core/font/font.c (open_section): Likewise.
2708 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
2709 filename. Don't override errors.
2710 (grub_cmd_openbsd_ramdisk): Don't override errors.
2711 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
2712 (grub_cmd_initrd): Likewise.
2713 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2714 (grub_cmd_initrd): Likewise.
2715 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
2716 (grub_cmd_linux): Likewise.
2717 (grub_cmd_initrd): Likewise.
2718 (grub_cmd_payload): Likewise.
2719 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2720 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
2721 (grub_cmd_module): Likewise.
2722 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2723 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2724 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
2725 (grub_cmd_xnu_mkext): Likewise.
2726 (grub_cmd_xnu_ramdisk): Likewise.
2727 (grub_xnu_check_os_bundle_required): Likewise.
2728 (grub_xnu_load_kext_from_dir): Likewise.
2729 (grub_cmd_xnu_kextdir): Likewise.
2730 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
2732 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2734 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
2735 as 1024 in block size field. Found on one of my test images.
2736 Small optimisation while on it.
2738 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2740 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
2741 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
2742 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
2743 performance fixes while on it.
2744 (grub_sfs_close): Fix memory leak while on it.
2745 (grub_sfs_label): Convert Latin1 to UTF-8.
2747 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2749 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
2750 space to avoid overflows.
2751 (grub_hfs_label): Convert from macroman to UTF-8.
2753 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2755 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
2757 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2759 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
2761 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2763 * unicode: Import Unicode 6.0 data.
2765 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2767 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
2770 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2772 Avoid cutting in the middle of UTF-8 character.
2774 * include/grub/charset.h (grub_getend): New function.
2775 * grub-core/script/function.c (grub_script_function_find): Use
2777 * grub-core/normal/completion.c (add_completion): Likewise.
2779 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2781 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
2782 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
2783 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
2784 (GRUB_UNICODE_TAG_END): Likewise.
2785 (GRUB_UNICODE_LAST_VALID): Likewise.
2787 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2789 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
2790 len and make it smaller. All users updated.
2791 * util/import_unicode.py: Put length and not end character.
2794 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2796 Make better Unicode-compliant and unify some UTF-8 code pathes.
2798 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
2800 (grub_is_valid_utf8): Use grub_utf8_process.
2801 Check resulting code range.
2802 (grub_utf8_to_ucs4): Use grub_utf8_process.
2803 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
2806 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2808 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
2810 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2812 * docs/grub.texi (Filesystems): Mention AFS.
2814 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2816 * docs/grub.texi (Filesystems): Clarify restrictions.
2817 (Regexp): Mention non-Unicode regexp behaviour.
2818 (Other): Mention non-Unicode matching behaviour.
2820 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2822 Make HFS implementation use MacRoman.
2824 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
2825 (macroman): New const array.
2826 (macroman_to_utf8): New function.
2827 (utf8_to_macroman): Likewise.
2828 (grub_hfs_find_dir): Use utf8_to_macroman.
2829 (grub_hfs_dir): Use macroman_to_utf8.
2830 Set case_insensitive.
2832 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2834 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
2836 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2838 Integrate hints into autogeneration scripts.
2840 * docs/grub.texi (Filesystems): Add a hostdisk example.
2841 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
2842 (grub-probe): Add ofpath.
2843 * gentpl.py: Remove group nosparc64.
2844 * grub-core/commands/search.c (cache_entry): New struct.
2846 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
2847 * grub-core/commands/search_wrap.c (options): Add platform-specific
2849 (grub_cmd_search): Handle platform-specific hints.
2850 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
2851 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
2852 (grub_util_biosdisk_data): Likewise.
2853 (grub_util_biosdisk_open): Set device_map.
2854 (read_device_map): Handle "" as indication of no map.
2856 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
2857 (grub_util_biosdisk_get_compatibility_hint): New function.
2858 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
2859 * include/grub/emu/hostdisk.h
2860 (grub_util_biosdisk_get_compatibility_hint): New proto.
2861 * util/grub-install.in: Don't call grub-mkdevicemap.
2862 Add platform-specific hint to load.cfg.
2863 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
2864 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
2865 hints. Set root preliminary to compatibility hint, not to OS name.
2866 * util/grub-probe.c (PRINT_*): Add hints.
2867 (print): Make static.
2868 (escape_of_path): New function.
2869 (guess_bios_drive): Likewise.
2870 (guess_efi_drive): Likewise.
2871 (guess_baremetal_drive): Likewise.
2872 (print_full_name): Likewise.
2873 (probe): Handle hints.
2875 * util/ieee1275/devicemap.c: Removed.
2876 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
2878 (grub_util_devname_to_ofpath): Return NULL on failure.
2880 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
2882 * util/getroot.c (grub_util_pull_device): Fix memory leak.
2884 * po/POTFILES.in: Regenerated.
2886 Allow purely long options
2888 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
2889 (SHORT_ARG_USAGE): Likewise.
2890 (grub_arg_show_help): Compare opt with help_options.
2891 (parse_option): Receive opt as argument. If makes big simplificatons.
2894 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2896 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
2897 Restructure to avoid warning.
2899 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2901 * util/grub-install.in: Account for possible escaped comma in device
2904 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2906 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
2909 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2911 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
2912 allocation and zero-setting.
2913 (grub_ieee1275_get_devname): Check that alias is complete.
2915 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2917 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
2920 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2922 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
2924 (grub_ofdisk_open): Check and discard ieee1275 prefix.
2925 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2926 Add ieee1275 prefix.
2928 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2930 * docs/grub.texi (Filesystems): Update.
2932 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2934 Support odc, newc and bigendian cpio formats.
2936 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
2937 * grub-core/Makefile.core.def (newc): New module.
2939 (cpio_be): Likewise.
2940 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
2943 (head) [MODE_ODC]: Adapt for the format.
2944 (head) [MODE_NEWC]: Likewise.
2945 (head) [!MODE_*]: Write fields of interest as arrays.
2946 (MAGIC_USTAR): Removed.
2947 (read_number) [MODE_NEWC]: Change to hex.
2948 (read_number) [!MODE_*]: Parse binary arrays.
2949 (grub_cpio_find_file): Factor out the code for better structure and
2950 always use read_number.
2951 (grub_cpio_mount): Use MAGIC and MAGIC2.
2952 (grub_cpio_dir): Exit on first hook non-0 return.
2953 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
2954 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
2955 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
2956 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
2957 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
2958 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
2959 * grub-core/fs/newc.c: New file.
2960 * grub-core/fs/odc.c: Likewise.
2961 * grub-core/fs/cpio_be.c: Likewise.
2963 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2965 Fix handling of tar numbers occupying the whole field.
2967 * grub-core/fs/cpio.c (read_number): New function.
2968 (grub_cpio_find_file): Use read_number instead of strtoull.
2970 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2972 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
2973 occupying the whole field size.
2975 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
2977 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
2979 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2981 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
2983 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
2985 * grub-core/Makefile.core.def (lzma_decompress): Add missing
2988 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2990 * util/getroot.c (ESCAPED_PATH_MAX): New define.
2991 (mountinfo_entry): Increase the field size to take escaping into
2993 (find_root_device_from_libzfs): Add one byte to size of strings for
2996 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2998 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
3000 * util/grub-setup.c (setup): Likewise.
3002 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
3004 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
3007 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
3009 * docs/grub.texi (Internationalisation): New section.
3011 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
3013 * docs/grub.texi (Loopback booting): New section.
3015 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
3017 * util/grub-mkstandalone.in: Fix minor typo errors.
3019 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
3021 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
3023 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
3024 net/icmp.c and net/icmp6.c.
3026 (priority_queue): Likewise.
3027 * grub-core/io/bufio.c: Rewritten.
3028 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
3029 TYPE_WITH_CONFIGFILE_OPTION.
3030 (legacy_commands): Add bootp and dhcp.
3031 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
3032 (grub_legacy_parse): Likewise.
3033 * grub-core/lib/priority_queue.c: New file.
3034 * grub-core/net/arp.c: Add missing license header.
3035 (arp_find_entry): Removed.
3036 (arp_find_entry): Likewise.
3037 (grub_net_arp_resolve): Rename to ...
3038 (grub_net_arp_send_request): ...this.
3039 (grub_net_arp_receive): New card argument.
3040 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
3041 Set router and DNS server.
3042 (grub_net_configure_by_dhcp_ack): Handle routing information.
3043 (grub_cmd_bootp): Set checksum.
3044 (grub_bootp_init): Remove net_dhcp.
3045 * grub-core/net/dns.c: New file.
3046 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
3048 (get_card_packet): Handle allocation.
3049 (grub_efinet_findcards): Set mtu.
3050 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
3051 (get_card_packet): Handle allocation.
3053 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
3054 (GRUB_MOD_INIT): Set mtu.
3055 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
3057 (get_card_packet): Handle allocation.
3058 (grub_ofnet_findcards): Set mtu.
3059 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
3061 (grub_net_recv_ethernet_packet): Handle IPv6.
3062 * grub-core/net/http.c: New file.
3063 * grub-core/net/icmp.c: Likewise.
3064 * grub-core/net/icmp6.c: Likewise.
3065 * grub-core/net/ip.c (ip6addr): New type.
3067 (reassemble): Likewise.
3068 (cmp): New function.
3069 (reassembles): New variable.
3070 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
3072 (send_fragmented): New function.
3073 (grub_net_send_ip_packet): Rename to ...
3074 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
3076 (grub_net_recv_ip_packets): Rename to ...
3077 (handle_dgram): ... this. Check checksum. Handle non-UDP.
3078 (free_rsm): New function.
3079 (free_old_fragments): Likewise.
3080 (grub_net_recv_ip4_packets): New function.
3081 (grub_net_send_ip6_packet): Likewise.
3082 (grub_net_send_ip_packet): Likewise.
3083 (grub_net_recv_ip6_packets): Likewise.
3084 (grub_net_recv_ip_packets): Likewise.
3085 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
3086 (LINK_LAYER_CACHE_SIZE): New const.
3087 (link_layer_find_entry): New function.
3088 (grub_net_link_layer_add_address): Likewise.
3089 (grub_net_link_layer_resolve_check): Likewise.
3090 (grub_net_link_layer_resolve): Likewise.
3091 (grub_net_ipv6_get_slaac): Likewise.
3092 (grub_net_ipv6_get_link_local): Likewise.
3093 (grub_cmd_ipv6_autoconf): Likewise.
3094 (parse_ip): Handle one number representation.
3095 (parse_ip6): New functoion.
3096 (match_net): Handle IPv6.
3097 (grub_net_resolve_address): Handle IPv6 and DNS.
3098 (grub_net_resolve_net_address): Handle IPv6.
3099 (route_cmp): New function.
3100 (grub_net_route_address): Find best route.
3101 (grub_net_addr_to_str): Handle IPv6.
3102 (grub_net_addr_cmp): New function.
3103 (grub_net_add_addr): Register local route.
3104 (print_net_address): Handle net address.
3105 (grub_net_poll_cards): Retransmit TCP.
3106 (grub_net_poll_cards_idle_real): Likewise.
3107 (have_ahead): New function.
3108 (grub_net_seek_real): Use underlying seek.
3109 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
3110 * grub-core/net/tcp.c: New file.
3111 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
3112 (cmp): New function.
3114 (tftp_receive): Handle unordered input.
3115 (destroy_pq): New function.
3116 (tftp_close): Close pq.
3117 * grub-core/net/udp.c: Put missing license header.
3118 (grub_net_udp_socket): New function.
3119 (udp_socket_register): Likewise.
3120 (grub_net_udp_close): Likewise.
3121 (grub_net_recv_udp_packet): Check checksum.
3122 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
3123 * include/grub/misc.h (grub_memchr): New function.
3124 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
3125 (grub_net_card_driver): Return buf in recv.
3126 (grub_net_slaac_mac_list): New struct.
3127 (grub_network_level_protocol_id): Add ipv6.
3128 (grub_net_network_level_addr): Likewise.
3129 (grub_net_network_level_net_addr): Likewise.
3130 (grub_net_app_protocol): Add seek.
3131 (grub_net_socket): Removed.
3132 (grub_net_sockets): Likewise.
3133 (grub_net_socket_register): Likewise.
3134 (grub_net_socket_unregister): Likewise.
3135 (FOR_NET_SOCKETS): Likewise.
3136 (grub_net_add_addr): Add const.
3137 (GRUB_NET_BOOTP_*): New enum.
3138 (grub_net_addr_cmp): New proto.
3139 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
3140 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
3141 (grub_net_hwaddr_to_str): NEw proto.
3142 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
3143 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
3144 (grub_dns_init): New proto.
3145 (grub_dns_fini): Likewise.
3146 (grub_net_tcp_retransmit): Likewise.
3147 (grub_net_link_layer_add_address): Likewise.
3148 (grub_net_link_layer_resolve_check): Likewise.
3149 (grub_net_link_layer_resolve): Likewise.
3150 (grub_net_dns_lookup): Likewise.
3151 (grub_net_add_dns_server): Likewise.
3152 (grub_net_remove_dns_server): Likewise.
3153 (GRUB_NET_TRIES): New const.
3154 (GRUB_NET_INTERVAL): Likewise.
3155 * include/grub/net/arp.h: Mostly rewritten.
3156 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
3157 * include/grub/net/ip.h: Mostly rewritten.
3158 * include/grub/net/netbuff.h: Indent.
3159 * include/grub/net/tcp.h: New file.
3160 * include/grub/net/udp.h: Mostly rewritten.
3161 * include/grub/priority_queue.h: New file.
3162 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
3163 (grub_swap_bytes64_compile_time): Likewise.
3164 (grub_cpu_to_be16_compile_time): Likewise.
3165 (grub_cpu_to_be32_compile_time): Likewise.
3166 (grub_cpu_to_be64_compile_time): Likewise.
3167 (grub_be_to_cpu64_compile_time): Likewise.
3169 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
3171 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
3172 UINT_TO_PTR with cast.
3174 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3176 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
3179 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3181 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
3184 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3186 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
3189 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3191 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
3192 Add missing const attribute.
3193 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
3195 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
3198 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3200 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
3202 (serpent_setkey): Likewise.
3203 (serpent_encrypt_internal): Likewise.
3204 (serpent_decrypt_internal): Likewise.
3205 (serpent_encrypt): Don't put an alignment-increasing cast.
3206 (serpent_decrypt): Likewise.
3207 (serpent_test): Likewise.
3209 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3211 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
3213 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3215 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
3217 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
3219 (PTR_TO_UINT64): Likewise.
3220 (PTR_TO_UINT32): Likewise.
3222 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3224 * util/grub-mkimage.c (generate_image): Decrease the higher limit
3226 * util/grub-setup.c (setup): Don't add redundancy past the higher load
3229 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3231 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
3232 text_width > available width a bit more gracefully.
3234 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3236 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
3237 current address calculation.
3239 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3241 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
3243 (encode_block): Likewise.
3245 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3247 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
3250 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3252 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
3253 non-RS part to avoid RS messing with GDT.
3254 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
3255 Increase to suit in realmode routines.
3257 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3259 * grub-core/kern/i386/realmode.S: Increase alignment.
3260 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
3262 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3264 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
3266 (syndroms): Compute 0 syndrom.
3267 (rs_recover): Use 0 syndrom.
3269 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3271 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
3273 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3275 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
3278 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3280 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
3282 (get_top_pad): Likewise.
3283 (get_right_pad): Likewise.
3284 (get_bottom_pad): Likewise.
3286 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3288 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
3290 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3292 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
3293 attribute as the structure isn't guaranteed to be properly aligned.
3294 (grub_efi_pci_device_path): Likewise.
3295 (grub_efi_pccard_device_path): Likewise.
3296 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
3297 specify the size of `memory_type'.
3298 (grub_efi_vendor_device_path): Likewise.
3299 (grub_efi_controller_device_path): Likewise.
3300 (grub_efi_acpi_device_path): Likewise.
3301 (grub_efi_expanded_acpi_device_path): Likewise.
3302 (grub_efi_atapi_device_path): Likewise.
3303 (grub_efi_scsi_device_path): Likewise.
3304 (grub_efi_fibre_channel_device_path): Likewise.
3305 (grub_efi_1394_device_path): Likewise.
3306 (grub_efi_usb_device_path): Likewise.
3307 (grub_efi_usb_class_device_path): Likewise.
3308 (grub_efi_i2o_device_path): Likewise.
3309 (grub_efi_mac_address_device_path): Likewise.
3310 (grub_efi_ipv4_device_path): Likewise.
3311 (grub_efi_ipv6_device_path): Likewise.
3312 (grub_efi_infiniband_device_path): Likewise.
3313 (grub_efi_uart_device_path): Likewise.
3314 (grub_efi_vendor_messaging_device_path): Likewise.
3315 (grub_efi_hard_drive_device_path): Likewise.
3316 (grub_efi_cdrom_device_path): Likewise.
3317 (grub_efi_vendor_media_device_path): Likewise.
3318 (grub_efi_file_path_device_path): Likewise.
3319 (grub_efi_protocol_device_path): Likewise.
3320 (grub_efi_piwg_device_path): Likewise.
3321 (grub_efi_bios_device_path): Likewise.
3323 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3325 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
3326 (grub_ucs4_to_utf8_alloc): Likewise.
3327 (grub_ucs4_to_utf8): Likewise.
3328 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
3329 (grub_ucs4_to_utf8_alloc): Likewise.
3331 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3333 AFFS never uses unicode.
3335 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
3336 (grub_latin1_to_utf8): New inline function.
3337 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
3339 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3341 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
3344 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3346 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
3347 (grub_squash_dirent_header): Likewise.
3348 (read_chunk): Don't double swap.
3349 (grub_squash_iterate_dir): Fix swap sizes.
3351 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3353 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
3355 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3357 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
3358 (grub_hfs_iterate_dir): Likewise.
3360 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3362 Fix video on platforms where unaligned access is forbidden.
3363 Make several optimisations while on it.
3365 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
3366 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3367 (grub_video_fbblit_replace_32bit_1bit): Likewise.
3368 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
3370 (grub_video_fbblit_replace_16bit_1bit):
3371 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3372 (grub_video_fbblit_replace_8bit_1bit): Likewise.
3373 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
3374 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
3375 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
3376 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
3377 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
3378 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
3379 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
3380 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
3381 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
3382 (grub_video_fbblit_replace_index_RGB888): Likewise.
3383 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
3384 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
3385 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
3386 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
3387 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
3388 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
3389 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
3391 (grub_video_fbblit_blend_XXX565_1bit):
3392 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3393 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
3394 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
3396 * grub-core/video/fb/video_fb.c (common_blitter)
3397 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
3398 (grub_video_fb_create_render_target_from_pointer)
3399 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
3400 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
3401 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
3403 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
3405 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3407 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
3408 HH22 and HM10 relocations.
3410 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3412 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
3414 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3416 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
3417 allocation succeeded.
3419 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3421 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
3422 argument a u8 pointer. All users updated.
3423 Handle unaligned buffers.
3425 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3427 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
3428 add_part to workaround compiler bug.
3430 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3432 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
3434 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3436 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
3437 Reserve alignment invariants.
3438 (grub_multiboot_load): Likewise.
3439 (retrieve_video_parameters): Likewise.
3440 (grub_multiboot_make_mbi): Likewise.
3442 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3444 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
3447 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3449 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
3450 (grub_pata_pio_write): Likewise.
3452 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3454 Add noreturn attributes and remove unreachable code.
3456 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
3458 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
3459 code. Mark as noreturn.
3460 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
3461 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
3462 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
3464 * grub-core/kern/main.c (grub_main): Mark as noreturn.
3465 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
3466 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
3467 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
3468 * include/grub/kernel.h (grub_main): Mark as noreturn.
3469 * include/grub/reader.h (grub_rescue_run): Likewise.
3471 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3473 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
3474 redundant declaration.
3476 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3478 * include/grub/net.h (grub_net_network_level_interfaces): Remove
3479 redundant declaration.
3480 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
3482 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3484 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
3485 to ensure alignment.
3486 (grub_hdparm_print_identify): Make argument uint16 * to ensure
3487 alignment. Ensure tmp alignment.
3488 (grub_cmd_hdparm): Ensure buf alignment.
3489 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
3490 to ensure alignment.
3491 (grub_ata_dumpinfo): Ensure text alignment.
3492 (grub_atapi_identify): Preserve alignment invariant.
3493 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
3495 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3497 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
3498 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
3499 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
3500 * include/grub/misc.h (grub_reboot)
3501 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
3502 (grub_halt) [__mips__]: Likewise.
3504 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3506 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
3507 Remove redundant declaration.
3508 (grub_mmap_get_post64): Likewise.
3509 (grub_mmap_get_upper): Likewise.
3510 (grub_mmap_get_lower): Likewise.
3512 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3514 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
3515 uint32_t * to ensure alignment.
3516 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
3518 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3520 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
3521 uint16_t * to ensure alignment.
3522 (sun_pc_partition_map_iterate): Make `block' a union to ensure
3525 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3527 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
3528 to ensure alignment.
3529 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
3531 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3533 * grub-core/fs/ntfs.c (u16at): Make into inline function.
3534 Handle unaligned pointers.
3537 (fixup): Use byte access instead of v16at.
3538 (find_attr): Fix imporper usage of v32at.
3539 (read_data): Likewise.
3540 (list_file): Handle byte-swapping and unaligned strings.
3541 (grub_ntfs_label): Likewise.
3543 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3545 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
3546 as it's not necessarily aligned.
3548 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3550 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
3551 redundant declaration.
3552 (grub_serial_init): Likewise.
3553 (grub_terminfo_init): Likewise.
3555 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3557 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
3559 (ZAP_HASH_IDX): Likewise.
3560 (ZAP_LEAF_HASH_SHIFT): Likewise.
3561 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
3562 (LEAF_HASH): Likewise.
3563 (ZAP_LEAF_NUMCHUNKS): Likewise.
3564 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
3565 alignment invariants. Return pointer. All users updated.
3566 (ZAP_LEAF_ENTRY): Make into inline function.
3569 (xor_out): Use grub_crypto_xor.
3570 (dnode_get_path): Use grub_get_unaligned.
3571 (nvlist_find_value): Likewise.
3572 (grub_zfs_nvlist_lookup_uint64): Likewise.
3573 (grub_zfs_nvlist_lookup_string): Likewise.
3574 (get_nvlist_size): Likewise.
3575 (grub_zfs_open): Likewise.
3576 (fill_fs_info): Likewise.
3577 (grub_zfs_dir): Likewise.
3578 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
3579 alignment invariants.
3580 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
3581 necessarily aligned.
3583 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3585 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
3587 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3589 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
3590 arithmetic to conserve alignment invariants.
3592 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3594 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
3595 redundant declaration.
3596 (grub_efiemu_mm_obtain_request): Likewise.
3597 (grub_efiemu_prepare): Likewise.
3599 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3601 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
3604 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3606 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
3607 case of aunaligned recptr.
3608 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
3610 (grub_hfsplus_btree_search): Handle unaligned index.
3612 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3614 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
3615 to get freetag and skip.
3617 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3619 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
3621 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
3622 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
3624 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3626 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
3627 name for checksum and fix allocation algorithm.
3629 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3631 * include/grub/types.h (grub_properly_aligned_t): New type.
3632 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
3633 (grub_get_unaligned16): Add explicit casts.
3634 (grub_get_unaligned32): Likewise.
3635 (grub_get_unaligned64): Likewise.
3636 (grub_set_unaligned16): New function.
3637 (grub_set_unaligned32): Likewise.
3639 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3641 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
3643 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3645 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
3646 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
3647 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
3649 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3651 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
3654 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3656 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
3657 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
3659 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3661 Unify and improve RAID and crypto xor.
3663 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
3664 changed to grub_crypto_xor
3665 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
3666 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
3667 Use bigger types when possible.
3669 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3671 * grub-core/disk/raid.c (scan_devices): Fix condition.
3673 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3675 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
3676 Make name a const ptr.
3678 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3680 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
3681 first argument a const pointer.
3682 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
3683 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
3685 (grub_children_iterate): Likewise.
3686 (grub_machine_mmap_iterate): Remove redundant declaration.
3688 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3690 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
3691 (grub_cmd_acpi) [!x86]: Disable EBDA.
3693 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3695 Enable UTF8 in gnulib regexp.
3697 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
3698 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
3699 (isupper): Use grub_isupper.
3700 (isascii): New inline function.
3701 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
3702 * grub-core/lib/posix_wrap/wctype.h: Likewise.
3703 * grub-core/normal/charset.c (grub_utf8_process): New function.
3704 (grub_utf8_to_utf16): Use grub_utf8_process.
3705 (grub_encode_utf8_character): New function.
3706 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
3707 * include/grub/charset.h (grub_utf8_process): New declaration.
3708 (grub_encode_utf8_character): Likewise.
3709 * include/grub/misc.h (grub_islower): New inline function.
3710 (grub_isupper): Likewise.
3711 (grub_strchrsub): Moved down to fix the definitions.
3713 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3715 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
3718 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3720 * include/grub/loader.h (grub_loader_register_preboot_hook):
3721 Use struct preboot * and not void * for handle. All users updated.
3722 (grub_loader_unregister_preboot_hook): Likewise.
3724 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3726 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
3727 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
3728 UTF-16-BE. All users updated.
3729 (grub_hfsplus_cmp_catkey): Fix unicode handling.
3730 (grub_hfsplus_iterate_dir): Likewise.
3731 (grub_hfsplus_label): Likewise.
3733 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3735 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
3737 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
3739 Add missing const qualifiers.
3741 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
3742 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
3743 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
3744 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
3745 (grub_lvm_check_flag): Likewise.
3746 * grub-core/efiemu/i386/coredetect.c
3747 (grub_efiemu_get_default_core_name): Likewise
3748 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
3749 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
3750 * grub-core/fs/ntfs.c (fixup): Likewise.
3751 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
3752 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
3753 (fzap_lookup): Likewise.
3754 (zap_lookup): Likewise.
3755 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
3756 * grub-core/lib/legacy_parse.c (check_option): Likewise.
3757 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
3758 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
3759 (grub_freebsd_add_meta_module): Likewise.
3760 (grub_cmd_freebsd_module): Likewise.
3761 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
3762 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
3763 (grub_xnu_writetree_get_size): Likewise.
3764 (grub_xnu_writetree_toheap_real): Likewise.
3765 (grub_xnu_find_key): Likewise.
3766 (grub_xnu_create_key): Likewise.
3767 (grub_xnu_create_value): Likewise.
3768 (grub_xnu_register_memory): Likewise.
3769 (grub_xnu_check_os_bundle_required): Likewise.
3770 (grub_xnu_scan_dir_for_kexts): Likewise.
3771 (grub_xnu_load_kext_from_dir): Likewise.
3772 * grub-core/normal/color.c (color_list): Likewise.
3773 * grub-core/normal/completion.c (current_word): Likewise.
3774 * grub-core/normal/menu_entry.c (insert_string): Likewise.
3775 * grub-core/term/serial.c (grub_serial_find): Likewise.
3776 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
3777 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
3779 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
3780 (grub_freebsd_add_meta_module): Likewise.
3781 * include/grub/lib/arg.h (grub_arg_option): Likewise.
3782 * include/grub/net.h (grub_net_card_driver): Likewise.
3783 (grub_net_card): Likewise.
3784 (grub_net_app_protocol): Likewise.
3785 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
3786 * include/grub/serial.h (grub_serial_find): Likewise.
3787 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
3788 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
3789 (grub_xnu_create_value): Likewise.
3790 (grub_xnu_find_key): Likewise.
3791 (grub_xnu_scan_dir_for_kexts): Likewise.
3792 (grub_xnu_load_kext_from_dir): Likewise.
3794 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
3795 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
3796 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
3798 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
3800 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
3802 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
3804 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
3806 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
3807 (read_device): Fix size calculation.
3809 2011-11-25 Robert Millan <rmh@gnu.org>
3811 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
3812 (find_root_device_from_libzfs): Add zpool output parser to be used
3813 as fallback when libzfs isn't available.
3815 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
3817 * po/Makefile.in.in: Add missing escape-continuation.
3819 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
3821 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
3823 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3825 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
3827 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3829 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
3831 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3833 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
3835 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3837 * grub-core/lib/adler32.c: Add missing license specification.
3838 * grub-core/lib/crc64.c: Likewise.
3839 * grub-core/loader/i386/pc/plan9.c: Likewise.
3840 * grub-core/partmap/plan.c: Likewise.
3842 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
3844 Add facility to debug GRUB with gdb under qemu.
3846 * grub-core/gdb_grub.in: New file.
3847 * grub-core/gmodule.pl.in: Likewise.
3848 * grub-core/Makefile.core.def (gmodule.pl): New script.
3849 (gdb_grub): Likewise.
3851 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3853 * util/grub-mount.c (argp_parser): Accept relative pathes.
3854 * util/grub-fstest.c (argp_parser): Likewise.
3856 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3860 * Makefile.util.def (libgrubmods): Add
3861 grub-core/partmap/plan.c.
3862 * docs/grub.texi: Notice Plan9 support.
3863 * grub-core/Makefile.core.def (plan9): New module.
3864 (part_plan): Likewise.
3865 * grub-core/loader/i386/pc/plan9.c: New file.
3866 * grub-core/partmap/plan.c: Likewise.
3867 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
3869 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
3870 * include/grub/mm.h (grub_extend_alloc): New inline function.
3872 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3874 Make Reed-Solomon faster by using power of generator representation of
3877 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
3878 (gf_double_t): Likewise.
3879 (gf_invert): Removed.
3880 (gf_powx): New array.
3881 (gf_powx_inv): Likewise.
3882 (scratch): Move higher.
3883 (gf_reduce): Removed.
3885 (gf_invert): Likewise.
3886 (init_inverts): Replaced with ...
3887 (init_powx): ...this. All users updated.
3888 (pol_evaluate): Replace multiplications with additions.
3889 (rs_encode): Likewise.
3890 (gauss_eliminate): Call gf_invert.
3891 (grub_reed_solomon_add_redundancy): Call init_powx.
3892 (grub_reed_solomon_recover): Call init_powx unconditionally.
3894 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3896 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
3898 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3900 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
3901 disk->partiton for safety.
3903 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3905 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
3907 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
3909 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3911 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
3913 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3915 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
3917 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3919 Fix spaces handling in proc/self/mountinfo.
3921 * util/getroot.c (unescape): New function.
3922 (grub_find_root_device_from_mountinfo): Use unescape.
3924 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3926 Support ZFS embedding.
3928 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
3929 (grub_zfs_fs): Register grub_zfs_embed.
3931 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3933 Fix MIPS compilation.
3935 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
3936 * include/grub/offsets.h: Rename decompressor fields from
3937 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
3938 * util/grub-mkimage.c (image_targets): Use new names.
3940 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3942 Defer multiboot device parsing until we're in compressed part.
3944 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
3945 bsd_part. setdevice has fallen into disuse.
3946 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
3947 (bsd_part): Likewise.
3948 (boot_dev): New variable.
3949 (multiboot_trampoline): Don't parse multiboot device.
3950 Pass multiboot device in %edx.
3951 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
3953 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
3955 * grub-core/kern/i386/pc/startup.S: Save edx.
3956 (grub_boot_drive): Removed.
3957 (grub_install_dos_part): Likewise.
3958 (grub_install_bsd_part): Likewise.
3959 (grub_boot_device): New variable.
3960 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
3961 (grub_install_bsd_part): Likewise.
3962 (grub_boot_drive): Likewise.
3963 (grub_boot_device): New variable.
3964 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
3966 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
3967 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
3968 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
3969 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
3970 * util/grub-install.in: Remove redundant condition.
3972 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3974 Fix bug introduced by previous commit.
3976 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
3978 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3980 Use decompressors framework on i386-pc. It increases core size
3981 by 46 bytes but improves compatibility and maintainability.
3983 * grub-core/Makefile.core.def (lzma_decompress): New image.
3984 (kernel): Add i386_pc_ldflags.
3985 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
3986 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
3987 to real_to_prot, prot_to_real and device info.
3988 * include/grub/offsets.h: Renamed decompressor offsets.
3989 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
3990 (image_target_desc): Remove raw_size and rename decompressor fields.
3991 (compress_kernel): Handle lzma.
3992 (generate_image): Handle decompressors on i386-pc.
3994 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3996 * configure.ac: Add -fno-asynchronous-unwind-tables.
3998 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4000 Move assembly code to C by using intwrap. It increases core size
4001 by 88 bytes but improves compatibility and maintainability.
4003 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
4004 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
4005 ... here. Translated to C.
4006 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
4007 * grub-core/term/i386/pc/console.c (grub_console_getkey):
4008 ... here. Translated to C.
4009 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
4010 * grub-core/term/i386/pc/console.c (grub_console_getxy):
4011 ... here. Translated to C.
4012 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
4013 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
4014 ... here. Translated to C.
4015 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
4016 * grub-core/term/i386/pc/console.c (grub_console_cls):
4017 ... here. Translated to C.
4018 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
4019 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
4020 ... here. Translated to C.
4021 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
4022 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
4024 * grub-core/term/i386/pc/console.c (int10_9): New function.
4025 (grub_console_putchar): Likewise.
4026 * include/grub/i386/pc/console.h: Removed the not anymore shared
4029 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4031 Move grub_chainloader_real_boot out of the kernel.
4033 * grub-core/Makefile.am: Remove machine/loader.h.
4034 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
4036 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
4038 (grub_relocator16_keep_a20_enabled): Likewise.
4039 (grub_relocator16_boot): Fill new variables.
4040 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
4041 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
4043 (grub_chainloader_unload): Likewise.
4044 (grub_chainloader_cmd): Likewise.
4045 * include/grub/i386/pc/loader.h: Removed.
4046 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
4047 and esi. All initialisers updated.
4049 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
4050 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
4052 * Makefile.util.def (grub-mount): New util.
4053 * .bzrignore: Add grub-mount.
4054 * configure.ac: Check for fuse and enable grub-mount if available.
4055 * docs/man/grub-mount.h2m: New file.
4056 * util/grub-mount.c: Likewise.
4058 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4060 * grub-core/commands/efi/fixvideo.c: Gettextize.
4061 * grub-core/commands/hashsum.c: Likewise.
4062 * grub-core/commands/i386/cmostest.c: Likewise.
4063 * grub-core/commands/i386/pc/drivemap.c: Likewise.
4064 * grub-core/commands/i386/pc/lsapm.c: Likewise.
4065 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4066 * grub-core/commands/lsmmap.c: Likewise.
4067 * grub-core/commands/menuentry.c: Likewise.
4068 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4069 * grub-core/commands/setpci.c: Likewise.
4070 * grub-core/loader/i386/bsd.c: Likewise.
4071 * grub-core/loader/i386/linux.c: Likewise.
4072 * util/getroot.c: Likewise.
4073 * util/grub-editenv.c: Likewise.
4074 * util/grub-fstest.c: Likewise.
4075 * util/grub-mkfont.c: Likewise.
4076 * util/grub-mkimage.c: Likewise.
4077 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4078 * util/grub-pe2elf.c: Likewise.
4079 * util/grub-probe.c: Likewise.
4080 * util/grub-setup.c: Likewise.
4081 * util/ieee1275/ofpath.c: Likewise.
4082 * util/misc.c: Likewise.
4083 * util/raid.c: Likewise.
4085 2011-11-11 Robert Millan <rmh@gnu.org>
4087 * util/getroot.c (grub_util_get_geom_abstraction): Remove
4088 __attribute__((unused)) from `os_dev', which *is* being used.
4090 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4092 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
4094 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
4095 GRUB_IA64_DL_GOT_ALIGN.
4096 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
4097 GRUB_IA64_DL_TRAMP_ALIGN.
4099 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4101 Replace grub_fatal with normal errors in i386 linux loader.
4103 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
4104 (allocate_pages): Check find_efi_mmap_size return value.
4105 (grub_e820_add_region): Return error.
4106 (grub_linux_boot): Check mmap return value.
4108 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4110 * grub-core/commands/acpihalt.c: Gettextized.
4111 * grub-core/commands/cacheinfo.c: Likewise.
4112 * grub-core/commands/cmp.c: Likewise.
4113 * grub-core/commands/efi/loadbios.c: Likewise.
4114 * grub-core/commands/gptsync.c: Likewise.
4115 * grub-core/commands/ieee1275/suspend.c: Likewise.
4116 * grub-core/commands/legacycfg.c: Likewise.
4117 * grub-core/commands/memrw.c: Likewise.
4118 * grub-core/commands/minicmd.c: Likewise.
4119 * grub-core/commands/parttool.c: Likewise.
4120 * grub-core/commands/time.c: Likewise.
4121 * grub-core/commands/videoinfo.c: Likewise.
4122 * grub-core/disk/geli.c: Likewise.
4123 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
4124 * grub-core/disk/luks.c: Likewise.
4125 * grub-core/disk/lvm.c: Likewise.
4126 * grub-core/font/font_cmd.c: Likewise.
4127 * grub-core/fs/zfs/zfscrypt.c: Likewise.
4128 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4129 * grub-core/gfxmenu/view.c: Likewise.
4130 * grub-core/kern/emu/hostdisk.c: Likewise.
4131 * grub-core/kern/emu/main.c: Likewise.
4132 * grub-core/kern/emu/misc.c: Likewise.
4133 * grub-core/kern/emu/mm.c: Likewise.
4134 * grub-core/kern/mips/arc/init.c: Likewise.
4135 * grub-core/kern/mips/loongson/init.c: Likewise.
4136 * grub-core/kern/partition.c: Likewise.
4137 * grub-core/lib/i386/halt.c: Likewise.
4138 * grub-core/lib/mips/arc/reboot.c: Likewise.
4139 * grub-core/lib/mips/loongson/reboot.c: Likewise.
4140 * grub-core/loader/i386/pc/chainloader.c: Likewise.
4141 * grub-core/loader/i386/xnu.c: Likewise.
4142 * grub-core/loader/multiboot.c: Likewise.
4143 * grub-core/net/bootp.c: Likewise.
4144 * grub-core/net/net.c: Likewise.
4145 * grub-core/normal/term.c: Likewise.
4146 * grub-core/partmap/bsdlabel.c: Likewise.
4147 * grub-core/parttool/msdospart.c: Likewise.
4148 * grub-core/term/gfxterm.c: Likewise.
4149 * grub-core/term/terminfo.c: Likewise.
4150 * grub-core/video/i386/pc/vbe.c: Likewise.
4151 * util/grub-menulst2cfg.c: Likewise.
4152 * util/grub-mkdevicemap.c: Likewise.
4153 * util/grub-mklayout.c: Likewise.
4154 * util/grub-mkrelpath.c: Likewise.
4155 * util/grub-script-check.c: Likewise.
4156 * util/ieee1275/grub-ofpathname.c: Likewise.
4157 * util/resolve.c: Likewise.
4159 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4161 Support %1$d syntax.
4163 * tests/printf_unit_test.c: New file.
4164 * Makefile.util.def (printf_test): New test.
4165 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
4167 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4169 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
4172 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4174 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
4176 * grub-core/font/font.c (grub_font_load): Likewise.
4178 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4180 * util/grub-macho2img.c: Add comment concerning gettext.
4181 * grub-core/lib/legacy_parse.c: Likewise.
4183 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4185 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
4186 (grub_xvasprintf): Likewise.
4188 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4190 Add const keyword to grub_env_get and gettextize week days.
4192 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
4193 (grub_read_hook_datetime): Return const char *.
4194 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
4196 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
4198 (grub_get_weekday_name): Return const char *. Call gettext.
4199 * grub-core/script/argv.c (grub_script_argv_append): Receive const
4200 char * and len as the argument. All users updated.
4201 (grub_script_argv_split_append): Receive const char *.
4202 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
4203 * include/grub/env.h (grub_env_get): Likewise.
4204 (grub_env_read_hook_t): Return const char *.
4205 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
4206 (grub_script_argv_split_append): Likewise.
4208 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4210 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
4212 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4214 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
4215 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
4217 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4219 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
4222 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4224 Fix mips compilation.
4226 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
4228 (hashes): Use in embed decoder as well (for sizes).
4229 (dec_stream_header): Fix embed decompressor logic.
4230 (dec_stream_footer): Likewise.
4232 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4234 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
4235 an error and not a fatal on unrecognised relocation types.
4237 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4239 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
4240 Issue error rather than printf on unknown arguments.
4242 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4244 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
4247 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4249 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
4252 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4254 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
4255 leftover debug printf.
4257 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4259 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
4261 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4263 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
4266 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4268 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
4270 2011-11-10 Shea Levy <slevy@tieronedesign.com>
4272 Allow all modules to perform serial IO
4274 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
4275 * include/grub/serial.h (grub_serial_port_configure): New inline
4277 (grub_serial_port_fetch): Likewise.
4278 (grub_serial_port_put): Likewise.
4279 (grub_serial_port_fini): Likewise.
4280 (grub_serial_find): New proto.
4282 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4284 Put symlink at the end of the node and fix a potential
4287 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
4288 Make symlink into an array.
4289 (set_rockridge): Set have_symlink and alloc_dirents.
4290 (grub_iso9660_read_symlink): Use new layout.
4291 (grub_iso9660_iterate_dir): Fix memory corruption.
4293 (grub_iso9660_dir): Set have_symlink.
4294 (grub_iso9660_open): Likewise.
4296 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4298 Remove local keyword.
4300 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
4301 (version_test_gt): Likewise.
4302 (version_find_latest): Likewise.
4303 (gettext_printf): Likewise.
4304 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
4306 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4308 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
4310 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4312 Fix ZFS memory and resource leaks.
4314 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
4317 (fill_vdev_info): New parameter inserted. All users updated.
4318 (check_pool_label): Likewise.
4319 (scan_disk): Likewise.
4320 (scan_devices): Close non-inserted disks.
4321 (fzap_iterate): Free l.
4322 (unmount_device): Free children descripto memory.
4324 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4326 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
4327 argument (access out of bounds).
4329 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4331 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
4334 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4336 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
4339 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4341 Fix several memory leaks.
4343 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
4344 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
4345 (grub_cpio_dir): Likewise.
4346 * grub-core/fs/fat.c (grub_fat_label): Likewise.
4347 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
4348 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
4349 (grub_romfs_label): Likewise.
4350 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
4351 (squash_unmount): New function.
4352 (grub_squash_dir): Fix memory leak.
4353 (grub_squash_open): Likewise.
4354 (grub_squash_read): Likewise.
4355 (grub_squash_mtime): Likewise.
4356 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
4357 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
4358 * util/grub-fstest.c (fstest): Likewise.
4360 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4362 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
4363 avoid accessing beyond the array.
4365 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4367 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
4369 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4373 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
4374 (GRUB_AFFS_FLAG_FFS): Removed.
4375 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
4376 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
4377 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
4378 (grub_fshelp_node): Make block 32-bit.
4379 Add block_cache and last_block_cache.
4380 (grub_affs_read_block): Fill and use block cache.
4381 (grub_affs_read_file): Removed.
4382 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
4384 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
4386 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
4388 (grub_affs_close): Free block cache.
4389 (grub_affs_read): Use grub_fshelp_read_file directly.
4391 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4393 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
4396 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4398 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
4400 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
4403 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4405 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
4407 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
4408 byteswap when needed.
4410 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4412 Fix FreeBSD compilation.
4414 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
4415 to avoid circular dependency.
4416 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
4417 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
4418 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
4420 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4422 Fix ZFS crypto error types.
4424 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
4425 (grub_gcm_decrypt): Likewise.
4426 (grub_zfs_load_key_real): Fix error code type. Handle possible error
4429 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4433 * Makefile.util.def (10_illumos): New script.
4434 * configure.ac: Set COND_HOST_ILLUMOS.
4435 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
4436 Support Illumos calls.
4437 (find_partition_start) [__sun__]: Likewise.
4438 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
4439 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
4440 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
4441 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
4443 * util/grub-probe.c (probe) [__sun__]: Do character check.
4444 * util/grub.d/10_illumos.in: New file.
4446 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4448 Support escaped commas in hostdisk.
4450 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
4451 (find_grub_drive): Use unescape_cmp.
4452 (make_device_name): Escape commas.
4454 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4456 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
4458 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4460 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
4463 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4465 Support trampoline jumps on powerpc.
4467 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
4469 (grub_dl_load_segments): Set mod->sz.
4470 (grub_dl_flush_cache): Flush whole space occupied by module, not just
4472 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
4474 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
4476 (trampoline): New struct.
4477 (trampoline_template): New const.
4478 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
4479 * include/grub/dl.h (grub_dl): Add sz element.
4480 [__powerpc__]: Follow __ia64__.
4481 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
4482 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
4483 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
4484 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
4486 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
4490 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
4491 * grub-core/Makefile.core.def (zfscrypt): New module.
4492 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
4493 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
4494 it. All users updated.
4495 (grub_zfs_decrypt): New var.
4496 (grub_zfs_load_key): Likewise.
4497 (zio_checksum_functions): Add SHA256+MAC.
4498 (zio_checksum_verify): Handle incomplete comparison due to MAC.
4499 (zio_read): Handle encrypted blocks.
4500 (zap_verify): Remove incorrect check.
4501 (fzap_iterate): Handle non-standard fzap.
4502 (zap_iterate): Likewise.
4503 (zap_iterate_u64): New function.
4504 (dnode_get_fullpath): Load keys.
4505 * grub-core/fs/zfs/zfscrypt.c: New file.
4506 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
4507 (grub_crypto_ecb_encrypt): Make input const.
4508 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
4509 (grub_crypto_ecb_encrypt): Make input const.
4510 (GRUB_CIPHER_AES): New macro.
4511 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
4512 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
4513 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
4514 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
4515 prefix. All users updated.
4516 (grub_zfs_add_key): New proto.
4517 (grub_zfs_decrypt): Likewise.
4518 (grub_zfs_load_key): Likewise.
4519 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
4520 * util/grub-fstest.c (options): Add -K option.
4521 (argp_parser): Likewise.
4523 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4525 Support zle compression on ZFS.
4527 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
4528 (decomp_table): Add zle.
4529 * include/grub/zfs/zio.h (zio_compress): Add zle.
4531 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4533 Support BtrFS embedding.
4535 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
4536 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
4537 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
4538 * util/grub-setup.c (setup): Use fs embedding if available.
4539 Add additional sanity check.
4541 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4543 * util/grub-install.in: Fix condition for config_opt.
4545 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4547 Support third redundancy strip on raidz3.
4549 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
4550 Return error on singularity. All users updated.
4551 (read_device): Don't stop on 3rd failure on raidz3.
4553 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4555 Support case-insensitive ZFS subvolumes.
4557 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
4559 (zap_hash): Likewise.
4560 (name_cmp): New function.
4561 (zap_leaf_array_equal): New parameter case_insensitive.
4563 (zap_leaf_lookup): Likewise.
4564 (fzap_lookup): Likewise.
4565 (zap_lookup): Likewise.
4566 (dnode_get_path): New parameter case_insensitive. Retrieve case
4567 sensitiviness of a volume. All users updated.
4568 (dnode_get_fullpath): New parameter case_insensitive.
4570 (grub_zfs_dir): Set info.case_insensitiveness.
4572 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4574 Support second redundancy strip on raidz(2,3).
4576 * grub-core/fs/zfs/zfs.c (powx): New array.
4577 (powx_inv): Likewise.
4579 (xor_out): New function.
4581 (recovery): Likewise.
4582 (read_device): Use second redundancy strip.
4584 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4586 Use a power of generator representation of GF(256) multiplication group
4587 to save space time and complexity.
4589 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
4590 (raid6_table2): Likewise.
4592 (powx_inv): Likewise.
4594 (grub_raid_block_mul): Replace with ...
4595 (grub_raid_block_mulx): ...this.
4596 (grub_raid6_init_table): Rewritten.
4597 (grub_raid6_recover): Use power of generator representation.
4599 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4601 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
4602 for the right device.
4604 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4606 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
4607 expected by grub-mkimage and it's more clear since there is no implicit
4610 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4612 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
4614 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4616 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
4618 * util/grub-mkrescue.in: Fix handling xorriso option.
4620 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4622 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
4625 2011-11-03 crocket <crockabiscuit@gmail.com>
4627 * util/grub.d/10_linux.in: Add Slackware initrd naming.
4629 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4631 XZ CRC64 and SHA256 support.
4633 * Makefile.util.def (libgrubmods): Add crc64.c.
4634 * grub-core/Makefile.core.def (crc64): New module.
4635 * grub-core/lib/crc64.c: New file.
4636 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
4637 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
4639 (MAX_HASH_SIZE): New define.
4640 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
4641 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
4642 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4643 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4644 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
4645 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
4646 Handle non-crc32 hashes.
4647 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
4648 (dec_stream_header): Handle non-crc32 hashes.
4649 (dec_stream_footer): Likewise.
4650 (dec_block_header): Likewise.
4651 (dec_main): Likewise.
4652 (xz_dec_init): Likewise.
4653 (xz_dec_reset): Likewise.
4654 (xz_dec_end): Likewise.
4655 * util/import_gcry.py: Add CRC64 line.
4657 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4659 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
4662 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4664 Make reiserfs label retrieval similar to other *_label functions.
4666 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
4667 (REISERFS_MAX_LABEL_LENGTH): Removed.
4668 (REISERFS_LABEL_OFFSET): Likewise.
4669 (grub_reiserfs_label): Rewritten.
4671 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4673 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
4676 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4678 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
4680 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4682 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
4683 drive failure on both raidz and raidz2.
4685 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4687 Fix RAIDZ(2) for >= 5 devices.
4689 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
4690 asize argument. All users updated.
4692 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4696 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
4697 (fill_vdev_info_real): Set ashift.
4698 (read_device): Rewrite RAIDZ part based on reverse engineering.
4700 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4702 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
4703 don't report potentially unavialiable fields in debug output.
4704 (find_path): Fix double-free and memory leak.
4706 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4710 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
4711 (grub_ufs_fs): Always set .label.
4713 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4717 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
4718 (grub_ufs_data): New field log2_blksz.
4719 (grub_ufs_read_file): Use shifts.
4720 (grub_ufs_mount): Check block size and logarithm it.
4722 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4724 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
4727 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4729 Handle symlinks and long names on tar and cpio.
4731 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
4732 (ATTR_FILE): Likewise.
4733 (ATTR_DIR): Likewise.
4734 (ATTR_LNK): Likewise.
4735 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
4736 (grub_cpio_find_file): Fill mode, handle linkname field as well as
4738 (grub_cpio_mount): Zero-fill data.
4739 (handle_symlink): New function.
4740 (grub_cpio_dir): Handle symlinks.
4741 (grub_cpio_open): Likewise.
4742 (grub_cpio_close) [MODE_USTAR]: Free linkname.
4744 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4746 Fix iso9660 filename limitations and fix memory leaks.
4748 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
4749 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
4751 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4753 Fix JFS file name length limitations.
4755 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
4756 (grub_jfs_diropen): Fix maximum filename length.
4757 (grub_jfs_getent): Fix filename length.
4758 (grub_jfs_lookup_symlink): Fix size checks.
4760 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4762 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
4765 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4767 Leverage BFS implementation to read AFS.
4769 * Makefile.util.def (libgrubmods): Add afs.c.
4770 * grub-core/Makefile.core.def (afs): New module
4771 * grub-core/fs/afs.c: New file.
4772 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
4774 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4776 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
4778 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4780 * grub-core/fs/bfs.c: Run indent.
4782 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4784 BFS implementation based on the specification.
4786 * grub-core/fs/bfs.c: New file.
4787 * Makefile.util.def (libgrubmods): Add bfs.c.
4788 * grub-core/Makefile.core.def (bfs): New module.
4790 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4792 * util/grub-fstest.c (cmd_cp): Clarify error message.
4793 (cmd_cmp): Likewise.
4795 2011-10-30 Yves Blusseau <blusseau@zetam.org>
4797 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
4800 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
4802 Remove afs and befs because of copyright problem.
4804 * grub-core/fs/afs.c: Removed.
4805 * grub-core/fs/afs_be.c: Removed.
4806 * grub-core/fs/befs.c: Removed.
4807 * grub-core/fs/befs_be.c: Removed.
4808 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
4809 * grub-core/Makefile.core.def (afs): Removed.
4812 (befs_be): Likewise.
4814 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4816 Prefer rockridge over Joliet.
4818 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
4820 (set_rockridge): ... here.
4821 (grub_iso9660_mount): Check rockridge on the primary label when
4822 discovering. Ignore Joliet if Rockridge is present.
4824 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4826 Use shifts in nilfs2.
4828 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
4829 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
4830 (grub_nilfs2_palloc_entries_per_group): Replace with ...
4831 (grub_nilfs2_log_palloc_entries_per_group): ... this.
4832 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
4833 (grub_nilfs2_entries_per_block): Replaced with ...
4834 (grub_nilfs2_log_entries_per_block_log): ... this.
4835 (grub_nilfs2_blocks_per_group): Replaced with ...
4836 (grub_nilfs2_blocks_per_group_log): ... this.
4837 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
4838 (grub_nilfs2_blocks_per_desc_block_log): ... this.
4839 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
4840 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
4841 (grub_nilfs2_palloc_entry_offset): Replaced ...
4842 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
4843 (grub_nilfs2_dat_translate): Use shifts.
4844 (grub_nilfs2_read_inode): Likewise.
4845 (GRUB_MOD_INIT): Ensure that logs are correct.
4847 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4849 Use shifts in minix filesystem.
4851 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
4852 (GRUB_MINIX_ZONE2SECT): Likewise.
4853 (grub_minix_data): Replace block_size with log_block_size.
4854 (grub_minix_read_file): Use shifts.
4855 (grub_minix_mount): Check block size and take a logarithm.
4857 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4859 Use shifts in squash4.
4861 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
4862 (squash_mount): Check block size and take logarithm.
4863 (direct_read): Use shifts.
4865 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4867 Correct befs block counting logic.
4869 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
4870 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
4871 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
4872 (grub_afs_read_inode): Use block_shift.
4873 (RANGE_SHIFT): New definition.
4874 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
4875 unexpected conditions, use shifts and appropriate types.
4876 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
4878 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4880 * grub-core/disk/raid.c (scan_devices): Check partition.
4881 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4883 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4885 Support BFS (befs) UUID.
4887 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
4888 (grub_afs_small_data_element_header): New struct.
4889 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
4890 (grub_afs_read_attribute) [MODE_BFS]: New function.
4891 (grub_afs_iterate_dir): Allocate for complete inode.
4892 (grub_afs_mount): Likewise.
4893 (grub_afs_uuid) [MODE_BFS]: New function.
4894 (grub_afs_fs) [MODE_BFS]: Add .uuid.
4896 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4898 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
4899 (zfs_unmount): Fix memory leak.
4901 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4903 Support NTFS reparse points.
4905 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
4906 (symlink_descriptor): New struct.
4907 (grub_ntfs_read_symlink): New function.
4908 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
4909 (grub_ntfs_open): Likewise.
4911 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4913 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
4915 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4917 fstest xnu_uuid subcommand.
4919 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
4920 grub-core/commands/xnu_uuid.c.
4921 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
4922 (fstest): Handle xnu_uuid.
4923 (options): Document xnu_uuid.
4924 (argp_parser): Parse xnu_uuid.
4926 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4928 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
4929 -l argument. Add newline at the end if printing.
4930 (GRUB_MOD_INIT): Document -l.
4932 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4934 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
4936 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4938 ZFS multi-device and version 33 support.
4940 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
4941 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
4942 (grub_zfs_data): Add multidev-ice-related fields.
4943 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
4944 (dva_get_offset): Make dva const.
4945 (zfs_fetch_nvlist): New function.
4946 (fill_vdev_info_real): Likewise.
4947 (fill_vdev_info): Likewise.
4948 (check_pool_label): Likewise.
4949 (scan_disk): Likewise.
4950 (scan_devices): Likewise.
4951 (read_device): Likewise.
4952 (read_dva): Likewise.
4953 (zio_read_gang): Use read_dva.
4954 (zio_read_data): Likewise.
4955 (zap_leaf_lookup): Add missing endian conversion.
4956 (zap_verify): Add missing endian conversion. All users updated.
4957 (fzap_lookup): Likewise.
4958 (fzap_iterate): Likewise.
4959 (dnode_get_path): Handle SA bonus.
4960 (nvlist_find_value): Make input const. All users updated.
4961 (unmount_device): New function.
4962 (zfs_unmount): Use unmount_device.
4963 (zfs_mount): Use scan_disk.
4964 (zfs_mtime): New function.
4965 (grub_zfs_open): Handle system attributes.
4966 (fill_fs_info): Likewise.
4967 (grub_zfs_dir): Likewise.
4968 (grub_zfs_fs): Add mtime.
4969 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
4970 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
4971 (SA_MTIME_OFFSET): Likewise.
4972 (SA_SYMLINK_OFFSET): Likewise.
4973 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
4974 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
4975 (fstest): Support zfsinfo.
4976 (argp_parser): Likewise.
4978 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4980 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
4983 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4987 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
4988 sharing the same block. Iterate over correct number of indices.
4989 (dnode_get_path): Handle symlinks correctly.
4991 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4993 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
4995 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4999 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
5000 (grub_hfsplus_btree_search): Fix types.
5001 (grub_hfsplus_label): Implement.
5003 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5005 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
5007 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5009 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
5011 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5013 Fix symlink handling on iso9660.
5015 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
5017 (grub_iso9660_susp_iterate): Accept zero-size iterate.
5018 (grub_iso9660_read_symlink): Moved most of code ...
5019 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
5021 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5023 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5024 Use union to avoid breaking strict-aliasing rules.
5026 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5028 Support multi-extent iso files.
5030 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
5032 (grub_fshelp_node): Revamp. All users updated.
5034 (read_node): New function.
5035 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
5037 (grub_iso9660_mount): Don't attempt to read sua when there is none.
5038 (get_node_size): New function.
5039 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
5041 Fix memory leak on . and ..
5042 (grub_iso9660_read): Use read_node.
5043 (grub_iso9660_close): Free node.
5045 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5047 Fix tar 4G limit and handle paths containing dot.
5049 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
5050 (canonicalize): New function.
5051 (grub_cpio_find_file): Use canonicalize. Store offs in
5053 (grub_cpio_dir): Use grub_disk_addr_t.
5054 (grub_cpio_open): Likewise.
5056 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5058 Fix handling of uncompressed blocks on squashfs and break 4G limit.
5060 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
5062 (grub_squash_inode): Add long_file and block_size.
5063 (grub_squash_cache_inode): New struct.
5064 (grub_squash_dirent): Make types into enum.
5065 (SQUASH_TYPE_LONG_REGULAR): New type.
5066 (grub_squash_frag_desc): Add field size.
5067 (SQUASH_BLOCK_FLAGS): New enum.
5068 (grub_squash_data): Use grub_squash_cache_inode.
5069 (grub_fshelp_node): Make ino_chunk 64-bit.
5070 (read_chunk): Minor argument change. All users updated.
5071 (squash_mount): Use correct le_to_cpu.
5072 (grub_squash_open): Handle LONG_REGULAR.
5073 (direct_read): New function.
5074 (grub_squash_read_data): Handle blocks correctly.
5076 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5078 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
5080 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5082 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
5084 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5086 Fix 2G limit on ZFS.
5088 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
5090 (uberblock_verify): Likewise.
5091 (dmu_read): Likewise.
5092 (grub_zfs_read): Likewise. Remove invalid cast.
5094 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5096 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
5097 (grub_jfs_blkno): Fix incorrect shift.
5098 (grub_jfs_read_file): Use more appropriate types.
5100 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5102 Support triple indirect on minix2 and minix3.
5104 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
5105 Declare triple_indir_zone.
5106 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
5109 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5113 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
5114 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
5115 Rename ctime to mtime. All users updated.
5116 (grub_minix_get_file_block): Fix types and double indirect computations.
5118 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5120 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
5121 if no label is found.
5122 (grub_fat_iterate_dir): Fix file size type.
5123 (grub_fat_iterate_dir): Likewise.
5125 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5127 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
5129 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
5130 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
5132 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5134 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
5136 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5138 * util/import_gcry.py: Accept space between # and include.
5140 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5142 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
5144 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5146 Fine grainely disable warnings on lexer. Remove Wno-error on it.
5148 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
5149 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
5151 * grub-core/script/yylex.l: Add fine-grained #pragma.
5153 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5155 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
5156 New inline function.
5157 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
5159 (memset) [GRUB_UTIL]: Likewise.
5160 (memcmp) [GRUB_UTIL]: Likewise.
5162 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5164 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
5165 inline function rather than a define.
5167 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5169 * util/grub-setup.c: Add missing include.
5171 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5173 * util/ieee1275/grub-ofpathname.c: Add missing include.
5175 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5177 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
5178 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
5181 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5183 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
5186 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5188 * util/grub-install.in: Add datarootdir as per automake manual
5190 * util/grub-mknetdir.in: Likewise.
5192 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5194 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
5196 * util/grub.d/10_kfreebsd.in: Likewise.
5197 * util/grub.d/10_linux.in: Likewise.
5198 * util/grub.d/10_netbsd.in: Likewise.
5199 * util/grub.d/10_windows.in: Likewise.
5200 * util/grub.d/20_linux_xen.in: Likewise.
5202 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
5204 Remove redundant grub_kernel_image_size.
5206 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
5208 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
5209 the small code. It moves it only by few bytes but simplifies the code.
5210 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
5212 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
5213 (grub_kernel_image_size): Removed.
5214 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
5215 (grub_kernel_image_size): Removed.
5216 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
5217 compiled with Apple toolchain.
5218 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
5219 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
5220 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
5221 (grub_total_module_size): Likewise.
5222 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
5224 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
5225 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
5226 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
5227 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
5228 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
5229 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
5230 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
5231 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
5233 (grub_total_module_size): Removed.
5234 * util/grub-mkimage.c (image_target_desc): Remove image_size.
5235 (image_targets): Likewise.
5236 Set .compressed_size to no field on sparc.
5237 (generate_image): Remove kernel_image_size handling.
5239 2011-10-19 Szymon Janc <szymon@janc.net.pl>
5241 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
5242 NULL pointer dereference.
5244 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5246 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
5247 done with a dedicated section.
5249 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
5250 Ensure the correct position of boot_path.
5251 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
5252 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
5254 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
5255 * include/grub/boot.h: Removed. All references removed.
5256 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
5258 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
5260 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5262 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
5265 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5267 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
5269 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5271 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
5272 Don't add the bogus brackets.
5274 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5278 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
5279 * grub-core/Makefile.core.def (exfat): New module.
5280 * grub-core/fs/exfat.c: New file.
5281 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
5282 (GRUB_FAT_ATTR_*): Make into an enum.
5283 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
5284 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
5285 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
5286 (GRUB_FAT_MAXFILE): Removed.
5287 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
5288 (grub_current_fat_bpb_t): New type.
5289 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
5290 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
5291 (grub_fat_dir_node_t): New type.
5292 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
5293 (fat_log2) [MODE_EXFAT]: Removed.
5294 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
5295 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
5296 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
5297 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
5298 (grub_fat_label) [MODE_EXFAT]: New function.
5299 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
5300 reserved_first_sector to 0.
5302 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5304 Move grub_reboot out of the kernel.
5306 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
5307 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
5308 * grub-core/lib/efi/reboot.c: ... here.
5309 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
5310 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
5311 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
5312 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
5313 * grub-core/lib/i386/reboot_trampoline.S: ... here.
5314 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
5315 * grub-core/lib/ieee1275/reboot.c: ... here.
5316 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
5317 * grub-core/lib/mips/arc/reboot.c: ... here.
5318 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
5319 * grub-core/lib/mips/loongson/reboot.c: ...here.
5320 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
5321 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
5322 * include/grub/emu/misc.h (grub_reboot): New function declaration.
5323 * include/grub/i386/reboot.h: New file.
5324 * include/grub/mips/loongson/ec.h: Fix includes.
5325 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
5326 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
5327 * grub-core/lib/i386/reboot.c: New file.
5329 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
5331 Make grub_prefix into module to fix the arbitrary limit and save
5334 * grub-core/kern/emu/main.c (grub_prefix): Removed.
5335 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
5336 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
5337 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
5338 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
5339 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
5340 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
5341 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
5342 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
5343 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
5344 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
5345 * include/grub/ia64/efi/kernel.h: Removed.
5346 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
5347 (grub_prefix): Removed.
5348 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
5349 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
5350 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
5351 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
5352 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
5353 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
5354 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
5355 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
5356 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
5357 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
5358 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
5359 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
5360 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
5361 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
5362 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
5363 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
5364 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
5365 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
5366 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
5367 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
5368 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
5369 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
5370 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
5371 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
5372 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
5373 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
5374 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
5375 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
5376 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
5378 * util/grub-mkimage.c (image_target_desc): Removed prefix and
5380 (image_targets): Likewise.
5381 (generate_image): Put prefix as a module.
5383 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5385 Replace grub_module_iterate with FOR_MODULES.
5387 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
5388 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
5389 (grub_efi_modules_addr): ...this.
5390 * grub-core/kern/efi/init.c (grub_modbase): New variable.
5391 (grub_efi_init): Set grub_modbase.
5392 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
5393 (grub_modbase): New variable.
5394 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
5395 (grub_modbase): New variable.
5396 (grub_machine_init): Set grub_modbase.
5397 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
5398 (grub_modbase): New variable.
5399 (grub_machine_init): Set grub_modbase.
5400 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
5401 (grub_modbase): New variable.
5402 (grub_machine_init): Set grub_modbase.
5403 * grub-core/kern/main.c (grub_module_iterate): Remove.
5404 (grub_modules_get_end): Use grub_modbase.
5405 (grub_load_modules): Use FOR_MODULES.
5406 (grub_load_config): Likewise.
5407 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
5408 (grub_modbase): New variable.
5409 (grub_machine_init): Set grub_modbase.
5410 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
5411 (grub_modbase): New variable.
5412 (grub_machine_init): Set grub_modbase.
5413 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
5415 (grub_modbase): New variable.
5416 (grub_machine_init): Set grub_modbase.
5417 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
5418 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
5419 (grub_module_iterate): Likewise.
5420 (grub_modbase): New variable declaration.
5421 (FOR_MODULES): New macro.
5423 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5425 * configure.ac: Check for __ctzdi2 and __ctzsi2.
5426 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
5428 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5430 Fix few obvious type discrepancies.
5432 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
5433 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
5434 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
5436 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
5437 and connected types.
5438 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
5440 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
5441 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
5442 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
5443 and connected types.
5445 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5447 Fix python 3.x incompatibilities.
5449 * gentpl.py: Put brackets around print strings.
5450 * util/import_gcry.py: Open explicitly as utf-8.
5451 Use in instead of has_key.
5453 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5455 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
5456 (GRUB_XFS_INO_AGBITS): Make into inline function.
5457 (GRUB_XFS_INO_INOINAG): Likewise.
5458 (GRUB_XFS_INO_AG): Likewise.
5459 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
5460 (GRUB_XFS_EXTENT_OFFSET): Likewise.
5461 (GRUB_XFS_EXTENT_BLOCK): Likewise.
5462 (GRUB_XFS_EXTENT_SIZE): Likewise.
5463 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
5464 (GRUB_XFS_NEXT_DIRENT): Likewise.
5465 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
5466 (grub_xfs_read_file): Fix offset type.
5468 2011-10-15 Robert Millan <rmh@gnu.org>
5470 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
5472 2011-10-15 Robert Millan <rmh@gnu.org>
5474 Fix build problem on FreeBSD and GNU/kFreeBSD.
5476 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
5478 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5480 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
5482 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
5484 (grub_hfsplus_btree_recoffset): Likewise.
5485 (grub_hfsplus_btree_recptr): Likewise.
5486 (grub_hfsplus_find_block): Likewise.
5487 (grub_hfsplus_btree_search): Likewise.
5488 (grub_hfsplus_read_block): Likewise.
5489 (grub_hfsplus_read_file): Likewise.
5490 (grub_hfsplus_mount): Likewise.
5491 (grub_hfsplus_btree_iterate_node): Likewise.
5492 (grub_hfsplus_btree_search): Likewise.
5493 (grub_hfsplus_iterate_dir): Likewise.
5494 (grub_hfsplus_read): A small code simplification.
5496 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5498 * grub-core/kern/emu/hostdisk.c
5499 (convert_system_partition_to_system_disk): Don't assume that children
5500 of mapper nodes are mapper nodes.
5502 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5504 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
5505 * include/grub/misc.h (grub_isxdigit): New function.
5506 * grub-core/video/colors.c (my_isxdigit): Removed. All users
5507 switched to grub_isxdigit.
5508 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
5509 number starting with a letter.
5511 2011-10-09 Robert Millan <rmh@gnu.org>
5513 LVM support for FreeBSD and GNU/kFreeBSD.
5515 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
5517 (LVM_DEV_MAPPER_STRING): Move from here ...
5518 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
5519 * util/getroot.c: Include `<grub/util/lvm.h>'.
5520 (grub_util_get_dev_abstraction): Enable
5521 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
5522 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
5523 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
5524 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
5526 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
5528 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
5529 when LVM abstraction is required for ${GRUB_DEVICE}.
5531 2011-10-06 Szymon Janc <szymon@janc.net.pl>
5533 Add support for LZO compression in GRUB:
5534 - import of minilzo library,
5535 - LZO decompression for btrfs,
5536 - lzop files decompression.
5538 * grub-core/io/lzopio.c: New file.
5539 * grub-core/lib/adler32.c: Likewise.
5540 * grub-core/lib/minilzo/lzoconf.h: Likewise.
5541 * grub-core/lib/minilzo/lzodefs.h: Likewise.
5542 * grub-core/lib/minilzo/minilzo.c: Likewise.
5543 * grub-core/lib/minilzo/minilzo.h: Likewise.
5544 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
5545 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
5546 grub-core/lib/minilzo/minilzo.c to common.
5547 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
5549 * grub-core/Makefile.core.def (btrfs): Likewise.
5550 * grub-core/Makefile.core.def (lzopio): New module.
5551 (adler32): Likewise.
5552 * grub-core/fs/btrfs.c: Include minilzo.h.
5553 (GRUB_BTRFS_COMPRESSION_LZO): New define.
5554 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
5555 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
5556 (grub_btrfs_lzo_decompress): New function.
5557 (grub_btrfs_extent_read): Add support for LZO compression type.
5558 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
5559 (GRUB_USHRT_MAX): Likewise.
5560 (GRUB_UINT_MAX): Likewise.
5561 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
5562 (UINT_MAX): Likewise.
5563 (CHAR_BIT): Likewise.
5564 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
5565 grub-core/lib/posix_wrap/limits.h
5566 (UCHAR_MAX): Likewise.
5567 * include/grub/file.h (grub_file_filter_id): New compression filter
5568 GRUB_FILE_FILTER_LZOPIO.
5569 * include/grub/file.h (grub_file_filter_id): Set
5570 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
5571 * include/grub/types.h (grub_get_unaligned16): New function.
5572 (grub_get_unaligned32): Likewise.
5573 (grub_get_unaligned64): Likewise.
5574 * util/import_gcry.py (cryptolist): Add adler32.
5576 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
5578 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
5579 in perspective decreases the complexity of build system and fixes
5580 compilation right now.
5582 2011-10-01 Ales Nesrsta <starous@volny.cz>
5584 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
5585 (fixed problem related to using UHCI with coreboot).
5587 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
5589 * gentpl.py: Use Autogen macros so that the output template file
5590 (Makefile.tpl) size is reduced.
5592 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
5594 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
5597 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5599 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
5600 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
5602 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5604 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
5607 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5609 Remove extra declaration of sleep for mingw32.
5611 * util/misc.c (sleep) [__MINGW32__]: Removed.
5612 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
5614 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
5616 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
5618 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
5620 (NETBSD_BTINFO_BOOTWEDGE): New definition.
5621 (grub_netbsd_btinfo_bootwedge): New struct.
5622 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5624 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
5626 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
5628 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
5631 2011-09-28 Andreas Born <futur.andy@googlemail.com>
5633 Fix incorrect identifiers in bash-completion.
5635 * util/bash-completion.d/grub-completion.bash.in
5636 (_grub_mkpasswd-pbkdf2): Rename to ...
5637 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
5638 (_grub_script-check): Rename to ...
5639 (_grub_script_check): ... this. All users updated.
5641 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5643 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
5644 Return 0 if disk isn't biosdisk.
5646 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5648 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
5650 * Makefile.util.def (grub-fstest): Likewise.
5652 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5654 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
5655 Get sector size from disk label.
5657 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
5659 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
5660 */README* as well as README*.
5661 Reported by: Axel Beckert.
5663 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5665 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
5666 case of less than 256 MiB of RAM.
5668 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5670 * grub-core/commands/wildcard.c (make_regex): Handle @.
5672 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5674 * util/grub-install.in: Move cryptodisk logic to appropriate place.
5676 2011-08-21 Szymon Janc <szymon@janc.net.pl>
5678 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
5679 AC_LANG_CONFTEST macros.
5681 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5683 Add grub-fstest option to uncompress data for commands.
5685 * util/grub-fstest.c (uncompress): New var.
5686 (options): New option -u.
5688 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5690 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5691 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
5693 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5695 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
5696 file type was not recognized correctly (not gzip or corrupted).
5698 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5700 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
5701 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
5703 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5705 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
5707 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
5708 video_radeon_fuloong2e.
5709 * grub-core/video/radeon_fuloong2e.c: New file.
5710 * include/grub/video.h (grub_video_id_t): Add new ID
5711 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
5713 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5715 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
5717 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
5718 that PRID matches the detected subplatform and reset the subplatform
5721 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5723 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
5725 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5727 Fix PCI iterating on functions >= 4.
5729 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
5730 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
5732 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
5733 (grub_pci_read): Fix bitmask.
5734 (grub_pci_read_word): Likewise.
5735 (grub_pci_read_byte): Likewise.
5736 (grub_pci_write): Likewise.
5737 (grub_pci_write_word): Likewise.
5738 (grub_pci_write_byte): Likewise.
5740 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5742 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
5743 can still be specified in TARGET_CFLAGS)
5745 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5747 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
5749 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
5750 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
5751 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
5752 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
5753 (FULOONG): Rename to ...
5754 (FULOONG2F): ... this. All users updated.
5755 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
5756 (machtype_fuloong2f_str): ... this.
5757 (machtype_fuloong2e_str): New string.
5758 Check for machtype_fuloong2e_str.
5759 * grub-core/loader/mips/linux.c (loongson_machtypes)
5760 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
5761 * grub-core/term/serial.c (loongson_defserial)
5762 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
5763 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
5765 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
5767 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
5768 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
5769 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
5770 to IMAGE_FULOONG2F_FLASH. All users updated.
5771 (image_targets): Rename images.
5772 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
5774 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5776 Make enable of disk cache statistics code configurable.
5778 * configure.ac: --enable-cache-stats added.
5779 * config.h.in (DISK_CACHE_STATS): New define.
5780 * grub-core/Makefile.core.def (cacheinfo): New command.
5781 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
5782 * grub-core/commands/cacheinfo.c: New file.
5783 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
5784 moved to cacheinfo.c.
5785 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
5787 * include/grub/disk.h: Likewise.
5789 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5791 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
5792 * grub-core/Makefile.am: Likewise.
5794 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5796 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
5799 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5801 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
5803 (grub_jfs_lookup_symlink): Use correct starting inode.
5805 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5807 * util/grub-setup.c (main): Add missing gcry initialisation.
5809 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5811 Don't accept text modes on EFI when booting Linux.
5813 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
5814 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
5816 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
5817 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5819 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
5820 use of "/path/.." as in grub-install for EFI as well as handling
5822 Fixes Debian bug #637768.
5824 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5826 * util/grub-probe.c: Remove duplicate #include.
5828 2011-08-10 Robert Millan <rmh@gnu.org>
5830 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
5832 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
5834 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
5835 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
5837 2011-08-03 Robert Millan <rmh@gnu.org>
5839 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
5841 Reported by: Zachary Bedell
5843 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5845 * configure.ac: The Loongson port requires grub-mkfont due to its
5846 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
5849 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5851 * util/grub-install.in: Don't source grub-mkconfig_lib until after
5852 processing arguments (otherwise help2man fails when GRUB has not yet
5855 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5857 New script grub-mkstandalone.
5859 * Makefile.util.def (grub-mkstandalone): New script.
5860 * docs/man/grub-mkstandalone.h2m: New file.
5861 * util/grub-mkstandalone.in: Likewise.
5863 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5865 Support ATA disks with 4K sectors.
5867 * include/grub/ata.h (grub_ata): New member log_sector_size.
5868 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
5869 (grub_ata_identify): Read sector size.
5870 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
5872 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5874 * util/grub-install.in: Don't use uhci outside of x86.
5876 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5878 * util/grub-mkrescue.in: Add missing quotes.
5880 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5882 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
5885 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5887 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
5889 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5891 * include/grub/video.h: add missing EXPORT_FUND on
5892 grub_video_edid_checksum and grub_video_edid_preferred_mode.
5894 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5896 * include/grub/mips/kernel.h: Fix define conflict.
5898 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5900 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
5903 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
5905 Preferred resolution detection for VBE.
5907 * grub-core/video/video.c (grub_video_edid_checksum): New function.
5908 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
5909 the Flat Panel extension, in line with the X.org VESA driver.
5910 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
5912 (grub_vbe_bios_get_ddc_capabilities): Likewise.
5913 (grub_vbe_bios_read_edid): Likewise.
5914 (grub_vbe_get_preferred_mode): Likewise.
5915 (grub_video_vbe_setup): When the mode is "auto", try to get the
5916 preferred mode from VBE, and use the largest mode that is no larger
5917 than the preferred mode (some BIOSes expose a preferred mode that is
5918 not in their mode list!). If this fails, fall back to 640x480 as a
5919 safe conservative choice.
5920 (grub_video_vbe_get_edid): New function.
5921 (grub_video_vbe_adapter): Add get_edid.
5922 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
5923 (struct grub_video_adapter): Add get_edid.
5924 (grub_video_edid_checksum): Add prototype.
5925 (grub_video_edid_preferred_mode): Likewise.
5926 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
5929 * grub-core/commands/videoinfo.c (print_edid): New function.
5930 (grub_cmd_videoinfo): Print EDID if available.
5932 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
5933 is more appropriate on a wider range of platforms than 640x480.
5934 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
5937 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5939 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
5941 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5943 * po/POTFILES.in: Regenerate.
5945 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5947 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
5948 incorrect memory usage.
5950 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5952 * util/grub-install.in: Source grub-mkconfig_lib.
5954 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5956 Remove getroot.c from core on emu platform.
5958 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
5960 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
5962 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
5963 * util/getroot.c (get_win32_path): ... here.
5964 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
5965 * util/getroot.c (fini_libzfs): ... here.
5966 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
5967 * util/getroot.c (grub_get_libzfs_handle): ... here.
5968 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
5970 * util/getroot.c (grub_find_zpool_from_dir): ... here.
5971 * grub-core/kern/emu/misc.c
5972 (grub_make_system_path_relative_to_its_root): Moved from here...
5973 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
5974 * grub-core/kern/emu/getroot.c: Moved from here ...
5975 * util/getroot.c: ... here. All users updated.
5976 * grub-core/kern/emu/raid.c: Moved from here ...
5977 * util/raid.c: ... here. All users updated.
5979 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5981 * po/POTFILES.in: Regenerate.
5983 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5985 Fix compilation on GNU/Linux.
5987 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
5989 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
5990 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
5991 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
5993 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5994 2011-07-07 Michael Gorven <michael@gorven.za.net>
5995 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
5997 LUKS and GELI support.
5999 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
6000 grub-core/disk/luks.c, grub-core/disk/geli.c,
6001 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
6002 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
6003 grub-core/lib/arg.c.
6004 (libgrubmods.a): Remove gcrypts cflags and cppflags.
6005 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
6006 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
6007 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
6008 (grub-bin2h): Add libgcry.a.
6009 (grub-mkimage): Likewise.
6010 (grub-mkrelpath): Likewise.
6011 (grub-script-check): Likewise.
6012 (grub-editenv): Likewise.
6013 (grub-mkpasswd-pbkdf2): Likewise.
6014 (grub-pe2elf): Likewise.
6015 (grub-fstest): Likewise.
6016 (grub-mkfont): Likewise.
6017 (grub-mkdevicemap): Likewise.
6018 (grub-probe): Likewise.
6019 (grub-ofpath): Likewise.
6020 (grub-mklayout): Likewise.
6021 (example_unit_test): Likewise.
6022 (grub-menulst2cfg): Likewise.
6023 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
6024 * grub-core/Makefile.core.def (cryptodisk): New module.
6027 * grub-core/disk/AFSplitter.c: New file.
6028 * grub-core/disk/cryptodisk.c: Likewise.
6029 * grub-core/disk/geli.c: Likewise.
6030 * grub-core/disk/luks.c: Likewise.
6031 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
6033 (grub_util_get_dm_abstraction): New function.
6034 (grub_util_follow_gpart_up): Likewise.
6035 (grub_util_get_geom_abstraction): Likewise.
6036 (grub_util_get_dev_abstraction): Use new functions.
6037 (grub_util_pull_device): Pull GELI and LUKS.
6038 (grub_util_get_grub_dev): Handle LUKS and GELI.
6039 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
6040 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
6041 (follow_geom_up): Removed.
6042 (grub_util_fd_seek): New function.
6043 (open_device): Use grub_util_fd_seek.
6044 (nread): Rename to ..
6045 (grub_util_fd_read): ... this. All users updated.
6046 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
6047 (grub_crypto_cbc_decrypt): Likewise.
6048 (grub_crypto_hmac_write): Likewise.
6049 (grub_crypto_hmac_buffer): Likewise.
6050 (grub_password_get): Extend to util.
6051 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
6053 (gcry_md_spec) [GRUB_UTIL]: Likewise.
6054 * include/grub/cryptodisk.h: New file.
6055 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
6056 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
6058 (grub_util_follow_gpart_up): New proto.
6059 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
6060 (grub_util_fd_read): Likewise.
6061 (grub_cryptodisk_cheat_mount): Likewise.
6062 (grub_util_cryptodisk_print_uuid): Likewise.
6063 (grub_util_get_fd_sectors): Likewise.
6064 * util/grub-fstest.c (mount_crypt): New var.
6065 (fstest): Mount crypto if requested.
6066 (options): New option -C.
6067 (argp_parser): Parse -C.
6068 (main): Init and fini gcry.
6069 * util/grub-install.in: Support cryptodisk install.
6070 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
6071 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
6073 (prepare_grub_to_access_device): Likewise.
6074 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
6075 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
6076 (probe_cryptodisk_uuid): New function.
6077 (probe_abstraction): Likewise.
6078 (probe): Use new functions.
6079 * util/import_gcry.py: Create Makefile.utilgcry.def.
6082 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
6084 Lazy device scanning.
6086 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
6087 (grub-setup): Remove util/raid.c.
6088 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
6089 * grub-core/disk/lvm.c (scan_depth): New variable.
6090 (grub_lvm_iterate): Rescan if necessary.
6091 (find_lv): New function based on grub_lvm_open.
6092 (grub_lvm_open): Use find_lv. Rescan on error.
6093 (is_node_readable): New function.
6094 (is_lv_readable): Likewise.
6095 (grub_lvm_scan_device): Skip already found disks.
6096 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
6097 Stop if searched device is found and readable.
6098 * grub-core/disk/raid.c (inscnt): New variable.
6099 (scan_depth): Likewise.
6100 (scan_devices): New function based on grub_raid_register. Abort if
6101 looked for device is found.
6102 (grub_raid_iterate): Rescan if needed.
6103 (find_array): NEw function based on -grub_raid_open.
6104 (grub_raid_open): Use find_array and rescan.
6105 (insert_array): Set became_readable_at.
6106 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
6107 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
6109 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
6110 (grub_util_pull_device): New function.
6111 (grub_util_get_grub_dev): Call grub_util_pull_device.
6112 * util/raid.c: Moved to ..
6113 * grub-core/kern/emu/raid.c: ... here.
6114 (grub_util_raid_getmembers): New parameter "bootable".
6115 All users updated. Support 1.x.
6116 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
6118 * include/grub/disk.h (grub_disk_pull_t): New enum.
6119 (grub_disk_dev): Change iterate prototype.
6121 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
6123 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
6124 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
6125 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
6126 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
6128 * include/grub/util/raid.h: Removed.
6130 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
6132 * po/POTFILES.in: Regenerate.
6134 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
6136 Unify sparc init with other ieee1275.
6138 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
6139 instead of kern/sparc64/ieee1275/init.c.
6140 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
6141 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
6142 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
6143 grub/machine/kernel.h.
6144 (grub_ieee1275_original_stack) [__sparc__]: New variable.
6145 (grub_claim_heap) [__sparc__]: Use sparc version.
6146 (grub_machine_init): Moved args parsing to
6147 (grub_parse_cmdline): ...this.
6148 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
6149 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
6151 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
6153 Move BOOTP to separate file.
6155 * grub-core/Makefile.core.def (net): Add net/bootp.c.
6156 * grub-core/net/net.c: Move all BOOTP functions to
6157 * grub-core/net/bootp.c: ... here.
6159 Use frame interface on PXE.
6161 * grub-core/Makefile.core.def (pxecmd): Removed.
6162 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
6163 * grub-core/commands/i386/pc/pxecmd.c: Removed.
6164 * grub-core/i386/pc/pxe.c: Moved from here ...
6165 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
6166 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
6167 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
6169 EFI network support.
6171 * grub-core/Makefile.core.def (efinet): New module.
6172 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
6174 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
6176 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
6177 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
6178 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
6179 * grub-core/net/drivers/efi/efinet.c: New file.
6180 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
6181 (grub_efi_net_config): New extern var.
6183 Various cleanups and bugfixes.
6185 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
6187 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
6188 disk declared as partition.
6189 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
6191 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
6192 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
6193 (grub_debug_zalloc): Likewise.
6194 (grub_debug_realloc): Likewise.
6195 (grub_debug_memalign): Likewise.
6196 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
6197 Check that target is IPv4.
6198 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
6199 local-mac-address as fallback.
6200 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
6202 * grub-core/net/ip.c (ipchksum): Rename to ...
6203 (grub_net_ip_chksum): ... this. All users updated.
6204 (grub_net_recv_ip_packets): Special handling for DHCP.
6205 * util/grub-mkimage.c (generate_image): Zero-out aout header.
6207 Unify prefix handling
6209 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
6210 (grub_machine_get_bootlocation): ... this.
6211 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
6212 (grub_machine_get_bootlocation): ... this.
6213 (grub_prefix): New variable.
6215 (root_dev): New variable.
6217 (main): Use new variables.
6218 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
6220 (grub_machine_get_bootlocation): ... this.
6221 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
6222 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
6223 (grub_machine_get_bootlocation): ... this.
6224 (grub_machine_set_prefix): Removed.
6225 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
6226 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
6228 (grub_machine_get_bootlocation): ... this.
6229 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
6230 (grub_set_prefix_and_root): ... this. All users updated.
6231 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
6233 (grub_machine_get_bootlocation): ... this.
6234 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
6235 (grub_machine_get_bootlocation): New proto.
6236 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
6238 Less intrusive and more reliable seek on network implementation.
6240 * grub-core/kern/file.c (grub_file_net_seek): Removed.
6241 (grub_file_seek): Don't call grub_file_net_seek.
6242 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
6243 (grub_net_fs_read_real): .. this.
6244 (grub_net_seek_real): Use net->offset.
6245 (grub_net_fs_read): Seek if necessary.
6247 Unify IEEE1275 netwotk config with the other platforms.
6249 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
6251 (grub_machine_get_bootlocation): Support network.
6252 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
6253 Support type and device parsing.
6254 (grub_ieee1275_get_device_type): New function.
6255 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
6257 (grub_ieee1275_net_config_real): ... this.
6258 (grub_ofnet_probecards): Removed.
6259 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
6260 * include/grub/ieee1275/ofnet.h: Removed.
6261 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
6263 (grub_ieee1275_get_device_type): New function.
6265 Unify network device closing across platforms and make more robust.
6267 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
6269 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
6271 * grub-core/net/net.c (grub_net_network_level_interface_register):
6273 (grub_net_card_unregister): Close all interfaces.
6274 (receive_packets): Don't poll if no iterfaces are registered.
6276 (grub_net_fini_hw): New function.
6277 (grub_net_restore_hw): Likewise.
6278 (fini_hnd): New variable.
6279 (GRUB_MOD_INIT): Register preboot hook.
6280 (GRUB_MOD_FINI): Run and unregister preboot hook.
6282 Poll network cards when idle.
6284 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
6285 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
6286 * grub-core/net/net.c (receive_packets): Save last poll time.
6287 (grub_net_poll_cards_idle_real): New function.
6288 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
6289 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
6290 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
6292 Rename ofnet interfaces.
6294 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
6295 (grub_ofnet_findcards): Use ofnet_%s names.
6297 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
6299 Cleanup socket opening.
6301 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
6302 (grub_net_fs_close): Likewise.
6303 (grub_net_fs_read_real): Use eof member.
6304 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
6305 (+grub_net_udp_close): New inline function.
6307 * include/grub/net/tftp.h: Moved to the top of ...
6308 * grub-core/net/tftp.c: ... here.
6309 * include/grub/net/ip.h: Moved mostly to the top of ...
6310 * grub-core/net/ip.c: ... here.
6311 * include/grub/net/ethernet.h: Moved mostly to the top of ...
6312 * grub-core/net/ethernet.c: ... here.
6314 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
6316 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
6319 * include/grub/net/ip.h (ipv4_ini): Removed.
6320 (ipv4_fini): Likewise.
6322 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
6323 (grub_net_send_ip_packets): Likewise.
6325 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6327 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
6328 grub_read_cmos prototype.
6330 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6332 VGA text support in qemu-mips
6334 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
6335 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
6336 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
6338 * grub-core/kern/i386/qemu/init.c: Renamed to ...
6339 * grub-core/kern/vga_init.c: ... this.
6340 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
6341 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
6342 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
6344 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
6345 GRUB_MACHINE_PCI_IO_BASE.
6347 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6349 MIPS qemu flash support.
6351 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
6353 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
6354 (grub_machine_init): Probe memory if its size isn't known.
6355 * util/grub-mkimage.c (image_targets): Add flash targets.
6356 (generate_image): Handle flash targets.
6358 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6360 MIPS qemu at_keyboard support.
6362 * gentpl.py (videoinkernel): Add qemu-mips.
6363 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
6364 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
6365 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
6367 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
6368 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
6369 * grub-core/term/serial.c (grub_serial_register)
6370 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
6372 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6374 CMOS support on sparc.
6376 * gentpl.py (cmos): Add powerpc and sparc.
6377 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
6379 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
6380 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
6381 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
6382 grub_set_datetime_cmos.
6383 * grub-core/lib/ieee1275/cmos.c: New file.
6384 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
6385 (find_rtc): Set no_ieee1275_rtc on error.
6386 (grub_get_datetime): Call grub_get_datetime_cmos on error.
6387 (grub_set_datetime): Call grub_set_datetime_cmos on error.
6388 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
6389 fail. Move value to argument. All users updated
6390 (grub_cmos_write): Likewise.
6391 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
6392 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
6393 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
6394 grub_get_datetime_cmos and grub_set_datetime_cmos.
6396 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
6398 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
6399 sourcing grub-mkconfig_lib.
6400 * util/update-grub_lib.in: Likewise.
6401 * util/grub.d/00_header.in: Likewise.
6402 * util/grub.d/10_hurd.in: Likewise.
6403 * util/grub.d/10_kfreebsd.in: Likewise.
6404 * util/grub.d/10_linux.in: Likewise.
6405 * util/grub.d/10_netbsd.in: Likewise.
6406 * util/grub.d/10_windows.in: Likewise.
6407 * util/grub.d/20_linux_xen.in: Likewise.
6408 * util/grub.d/30_os-prober.in: Likewise.
6410 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
6412 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6413 default_bg_color rather than black.
6414 (grub_gfxterm_fullscreen): Likewise.
6415 (grub_gfxterm_background_color_cmd): Save new background color in
6418 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6420 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
6422 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6424 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
6427 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6429 Chainloading on coreboot support.
6431 * grub-core/Makefile.core.def (chain): Add coreboot.
6432 * grub-core/loader/i386/coreboot/chainloader.c: New file.
6434 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6436 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
6439 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6441 Implement time command.
6443 * grub-core/Makefile.core.def (time): New module.
6444 * grub-core/commands/time.c: New file.
6445 * grub-core/script/parser.y: Remove "time" keyword.
6446 * grub-core/script/yylex.l: Likewise.
6448 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6450 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
6452 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6454 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
6455 when handling leftovers.
6457 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6459 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
6460 so that help2man doesn't fail.
6462 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6464 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
6465 type in pointers on sparc64.
6466 (get_card_packet): Likewise.
6468 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
6470 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
6472 (grub_cmd_videoinfo): Fetch current video mode.
6474 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6476 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
6477 because of underlying system restrictions.
6479 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6481 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
6484 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6486 Coreboot video support.
6488 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
6490 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
6491 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
6493 * grub-core/kern/i386/int.S: ... here.
6494 * grub-core/video/i386/pc/vbe.c: Updated includes.
6495 * grub-core/video/i386/pc/vga.c: Likewise.
6496 * include/grub/i386/coreboot/memory.h
6497 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
6498 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
6499 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
6500 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
6502 * include/grub/i386/pc/vga.h: Removed. All users updated.
6504 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6506 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
6507 definitions for dprintf.
6508 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
6510 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6512 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
6514 (get_card_packet): Likewise.
6516 2011-06-26 Yves Blusseau <blusseau@zetam.org>
6518 Display the path of the file when file is not found
6520 * grub-core/fs/fat.c: Display the filename when file is not found.
6521 * grub-core/fs/fshelp.c: Likewise.
6522 * grub-core/fs/hfs.c: Likewise.
6523 * grub-core/fs/jfs.c: Likewise.
6524 * grub-core/fs/minix.c: Likewise.
6525 * grub-core/fs/ufs.c: Likewise.
6526 * grub-core/fs/btrfs.c: Likewise.
6527 * grub-core/commands/i386/pc/play.c: Likewise.
6529 2011-06-26 Szymon Janc <szymon@janc.net.pl>
6531 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
6532 pointer checks before calling grub_free().
6533 * grub-core/commands/wildcard.c (match_devices): Likewise.
6534 * grub-core/commands/wildcard.c (match_files): Likewise.
6535 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
6536 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
6537 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
6538 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
6539 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
6540 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
6541 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
6542 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
6543 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
6545 2011-06-25 Patrick <p55@mailinator.com>
6547 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
6549 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6551 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
6552 (grub_pxe_send): Likewise.
6553 (GRUB_MOD_INIT): Fix types.
6555 2011-06-24 Szymon Janc <szymon@janc.net.pl>
6557 * grub-core/io/xzio.c: Fix code style issues
6559 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6560 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
6562 Network infrastructure.
6563 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
6565 * include/grub/net/arp.h: New file.
6566 * include/grub/net/device.h: Likewise.
6567 * include/grub/net/ethernet.h: Likewise.
6568 * include/grub/net/ip.h: Likewise.
6569 * include/grub/net/netbuff.h: Likewise.
6570 * include/grub/net/tftp.h: Likewise.
6571 * include/grub/net/udp.h: Likewise.
6572 * include/grub/ieee1275/ofnet.h: Likewise.
6573 * include/grub/emu/export.h: Likewise.
6574 * include/grub/net.h: Likewise.
6575 * grub-core/net/arp.c: Likewise.
6576 * grub-core/net/ethernet.c: Likewise.
6577 * grub-core/net/ip.c: Likewise.
6578 * grub-core/net/udp.c: Likewise.
6579 * grub-core/net/tftp.c: Likewise.
6580 * grub-core/net/netbuff.c: Likewise.
6581 * grub-core/net/net.c: Likewise.
6582 * grub-core/net/drivers/emu/emunet.c: Likewise.
6583 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
6584 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
6586 * grub-core/Makefile.core.def (net): New module.
6590 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
6592 * grub-core/kern/device.c (grub_net_open) : New variable.
6593 (grub_device_open): Handle network device.
6594 (grub_device_close): Likewise.
6595 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
6596 (grub_grubnet_fini): Likewise.
6597 (grub_file_seek): Seek in network device.
6598 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
6599 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
6601 (grub_machine_fini): Call grub_grubnet_fini.
6602 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
6604 (grub_ieee1275_get_aliasdevname): New function.
6605 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6606 Add unofficial Solaris network info.
6607 (grub_multiboot_make_mbi): Likewise.
6608 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
6609 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
6610 * include/grub/device.h (grub_fs): Removed.
6611 * include/grub/err.h (grub_err_t): Add network-related values.
6612 * include/grub/i386/pc/pxe.h: Removed bootp parts.
6613 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
6614 (grub_ieee1275_get_aliasdevname): New proto.
6615 * include/grub/net.h: Rewritten.
6617 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6619 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
6622 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6624 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
6625 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
6626 it truncates the output.
6627 Reported by: Ximin Luo.
6629 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6631 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
6633 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6635 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
6636 partmap before abstraction.
6638 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
6640 * util/grub-mkconfig_lib.in: Add missing quotes.
6642 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6644 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
6645 old method if mountinfo would return /dev/root and /dev/root doesn't
6648 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6652 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
6653 (decomp_table): Add zlib entries.
6654 (zio_read): USe 8 bits for compression function rather than 3.
6655 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
6657 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6659 * grub-core/disk/ahci.c: Add missing license statements.
6660 * grub-core/fs/romfs.c: Likewise.
6661 * grub-core/lib/ia64/setjmp.S: Likewise.
6662 * grub-core/loader/i386/pc/freedos.c: Likewise.
6663 * grub-core/loader/ia64/efi/linux.c: Likewise.
6664 * grub-core/video/colors.c: Likewise.
6665 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
6667 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6671 * grub-core/Makefile.core.def (ata_pthru): Removed.
6674 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
6676 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
6678 (grub_hdparm_do_check_powermode_cmd): Likewise.
6679 (grub_hdparm_do_smart_cmd): Likewise.
6680 (grub_hdparm_set_val_cmd): Likewise.
6681 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
6682 * grub-core/disk/ahci.c: New file.
6683 * grub-core/disk/ata.c: Factor out the low-level part into ...
6684 * grub-core/disk/pata.c: ... here.
6685 * grub-core/disk/ata_pthru.c: Contents moved to ...
6686 * grub-core/disk/pata.c: ... here.
6687 * grub-core/disk/scsi.c (grub_scsi_names): New array.
6688 (grub_scsi_iterate): Use grub_scsi_names.
6689 (grub_scsi_open): Likewise.
6690 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
6691 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
6692 (grub_ata_regs_t): New struct.
6693 (grub_disk_ata_pass_through_parms): Likewise.
6694 (grub_ata_device): Renamed to ...
6695 (grub_ata): ... this.
6696 (grub_ata_dev): New struct.
6697 Removed all low-level inline functions.
6698 * include/grub/scsi.h: Add PATA and AHCI subsystems.
6699 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
6700 iterate hooks and open. All users updated.
6701 * util/grub-install.in: Handle AHCI disk module.
6703 2011-06-23 Szymon Janc <szymon@janc.net.pl>
6705 Add support for DRI and RSTn markers in JPEG files.
6707 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
6708 (JPEG_MARKER_RST0): Likewise.
6709 (JPEG_MARKER_RST1): Likewise.
6710 (JPEG_MARKER_RST2): Likewise.
6711 (JPEG_MARKER_RST3): Likewise.
6712 (JPEG_MARKER_RST4): Likewise.
6713 (JPEG_MARKER_RST5): Likewise.
6714 (JPEG_MARKER_RST6): Likewise.
6715 (JPEG_MARKER_RST7): Likewise.
6716 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
6717 (grub_jpeg_decode_dri): New function.
6718 (grub_jpeg_decode_sos): Move image data related part into
6719 grub_jpeg_decode_data function.
6720 (grub_jpeg_decode_data): New function.
6721 (grub_jpeg_reset): New function.
6722 (grub_jpeg_decode_jpeg): Handle new markers.
6724 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6726 * util/ieee1275/ofpath.c (check_sas): Close fd.
6727 (main): Free of_path.
6728 Reported by: David Volgyes <dvolgyes>.
6730 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6732 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
6733 Reported by: David Volgyes <dvolgyes>.
6735 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6737 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
6739 Reported by: David Volgyes <dvolgyes>.
6741 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6743 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
6745 Reported by: David Volgyes <dvolgyes>.
6747 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6749 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
6750 Prevent memory leak.
6752 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6754 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
6756 Reported by: David Volgyes <dvolgyes>.
6758 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6760 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
6761 to continue if allocation is failed.
6763 Reported by: David Volgyes <dvolgyes>.
6765 2011-06-23 David Volgyes <dvolgyes>
6767 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
6770 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6772 Fix spurious warning.
6774 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
6775 (acorn_partition_map_find): Use .bin member.
6777 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6779 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
6780 /dev/root as a valid device.
6782 2011-06-23 Jim Meyering <meyering@redhat.com>
6784 Avoid NULL deref in grub_device_open.
6786 * grub-core/kern/device.c (grub_device_open): Don't dereference
6787 a NULL pointer upon failed grub_env_get.
6789 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6791 Support non-512B sectors and agglomerate reads.
6793 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
6794 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
6795 (disk_io_guid): Removed.
6796 (make_devices): Locate solely by BlockIO.
6797 (grub_efidisk_open): Fill log_sector_size and total_sectors.
6798 (grub_efidisk_read): Use read_blocks.
6799 (grub_efidisk_write): Use write_blocks.
6800 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
6802 (get_safe_sectors): Handle non-512B sectors.
6803 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
6805 (grub_biosdisk_write): Handle non-512B sectors.
6806 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
6807 (grub_scsi_read): Remove special non-512B block handling (now handled
6809 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
6810 and do sanity checks.
6811 (grub_disk_adjust_range): Handle non-512B sectors.
6812 (transform_sector): New function.
6813 (grub_disk_read_small): Likewise.
6814 (grub_disk_read): Rewritten.
6815 (grub_disk_write): Handle non-512B sectors.
6816 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
6818 (open_device): Use log_sector_size.
6819 (grub_util_biosdisk_read): Likewise.
6820 (grub_util_biosdisk_write): Likewise.
6821 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
6823 (pc_partition_map_embed): Likewise.
6824 * include/grub/disk.h (grub_disk): New field log_sector_size.
6825 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
6826 (GRUB_DISK_CACHE_BITS): Increased to 6.
6827 * util/grub-fstest.c (fstest): New command testload.
6828 (argp_parser): Likewise.
6830 2011-06-16 Robert Millan <rmh@gnu.org>
6832 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
6833 `ata' driver on kernel of FreeBSD 9.
6835 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
6836 (get_ataraid_disk_name): New functions.
6837 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
6838 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
6839 get_ataraid_disk_name() and get_ada_disk_name().
6841 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
6843 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
6846 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
6848 * docs/grub.texi (Obtaining and Building GRUB): Substitute
6849 `ftp.gnu.org' for `alpha.gnu.org'.
6851 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6853 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
6854 partitions under /dev/disk/by-id/.
6856 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6858 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
6859 after ten consecutive open failures. Scanning all the way up to
6860 10000 is excessive and can cause serious performance problems in
6861 some configurations.
6862 Fixes Ubuntu bug #787461.
6864 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6866 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
6869 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
6870 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6872 Don't stat devices unless we have to.
6874 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
6876 (grub_guess_root_device): Use already known os_dev if possible.
6877 * grub-core/kern/emu/hostdisk.c
6878 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
6879 if device is known to be a dm one.
6881 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
6883 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
6884 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
6885 Reported by: Pawel Tecza.
6887 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
6889 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
6890 (lsefisystab): Likewise.
6892 (lsefimmap): Likewise.
6893 (hdparm): Enable on qemu-mips.
6894 (setjmp): Add ia64 nodist.
6895 (serial): Simplify tags.
6897 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6899 * Makefile.util.def (grub-ofpathname): Install manual page.
6901 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6903 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
6905 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6907 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
6909 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6911 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
6914 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6916 Use full 64-bit division.
6918 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
6919 (grub_divmod64): ... this.
6920 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
6923 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6925 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
6928 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6930 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
6931 to avoid accidents when debugging with 'sh -x'.
6932 * grub-core/gensyminfo.sh.in: Likewise.
6933 * tests/example_scripted_test.in: Likewise.
6934 * tests/grub_cmd_regexp.in: Likewise.
6935 * tests/grub_script_blanklines.in: Likewise.
6936 * tests/grub_script_dollar.in: Likewise.
6937 * tests/grub_script_expansion.in: Likewise.
6938 * tests/grub_script_final_semicolon.in: Likewise.
6939 * tests/partmap_test.in: Likewise.
6940 * tests/util/grub-shell-tester.in: Likewise.
6941 * tests/util/grub-shell.in: Likewise.
6943 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6945 Move gfxmenu color handling to video, so that gfxterm can use it
6948 * grub-core/gfxmenu/named_colors.c: Move to ...
6949 * grub-core/video/colors.c: ... here. Rename
6950 grub_gui_get_named_color to grub_video_get_named_color.
6951 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
6952 * grub-core/video/colors.c (my_isxdigit): ... here.
6953 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
6955 * grub-core/video/colors.c (parse_hex_color_component): ... here.
6956 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
6958 * grub-core/video/colors.c (grub_video_parse_color): ... here.
6960 * include/grub/gui.h (grub_gui_color_t): Move to ...
6961 * include/grub/video.h (grub_video_rgba_color_t): ... here.
6962 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
6963 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
6964 * include/grub/gui.h (grub_gui_map_color): Move to ...
6965 * include/grub/video.h (grub_video_map_rgba_color): ... here.
6966 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
6968 * include/grub/video.h (grub_video_get_named_color): ... here.
6969 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
6970 * include/grub/video.h (grub_video_parse_color): ... here.
6972 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
6974 (gfxmenu): Remove gfxmenu/named_colors.c.
6975 (video) [videomodules]: Add video/colors.c.
6977 Add a background_color command.
6979 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
6981 (GRUB_MOD_INIT): Register background_color command.
6982 (GRUB_MOD_FINI): Unregister background_color command.
6983 (redraw_screen_rect): Allow blend/replace of text layer to be
6984 controlled independently from whether there is a background bitmap.
6985 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
6988 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6990 Patch BPB in ntldr and chainloader --bpb.
6992 * grub-core/fs/fat.c: Include grub/fat.h.
6993 (grub_fat_bpb): Moved to ...
6994 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
6995 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
6997 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
6999 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
7001 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
7003 (grub_chainloader_cmd): Patch BPB if --bpb is given.
7004 (GRUB_MOD_INIT): Show --bpb.
7005 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
7006 * grub-core/normal/main.c (features): New variable.
7007 (GRUB_MOD_INIT): Set feature_* variables.
7008 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
7010 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
7012 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7014 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
7017 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7019 FreeDOS direct loading support.
7021 * docs/grub.texi (Supported OS): Add FreeDOS.
7022 * grub-core/Makefile.core.def (freedos): New module.
7023 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
7025 (grub_relocator16_boot): Handle %ebx.
7026 * grub-core/lib/i386/relocator16.S: Likewise.
7027 * grub-core/loader/i386/pc/freedos.c: New file.
7029 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7031 Long Linux command line support.
7033 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
7034 (maximal_cmdline_size): New variable.
7035 (allocate_pages): Use maximal_cmdline_size.
7036 (grub_cmd_linux): Set and use maximal_cmdline_size.
7037 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
7038 (allocate_pages): Use maximal_cmdline_size.
7039 (grub_cmd_linux): Set and use maximal_cmdline_size.
7040 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
7041 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
7044 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7045 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
7047 Improve devmapper support
7049 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
7050 (grub_util_is_lvm): New function.
7051 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
7052 than lvm if not dmraid.
7053 Handle mapped md nodes.
7054 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
7055 (grub_util_device_is_mapped): ... this. Make always available. All users
7057 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
7058 (convert_system_partition_to_system_disk): Handle lvm, mpath and
7060 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
7062 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7064 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
7066 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
7067 * grub-core/modinfo.sh.in: New file.
7068 * grub-core/Makefile.core.def (modinfo.sh): New script.
7069 * util/grub-mknetdir.in: Use modinfo.sh.
7070 * util/grub-mkrescue.in: Likewise.
7072 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7074 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
7075 Fix potential usage of Elf32 instead of Elf64 when compiling on
7076 32-bit architecture. Add endianness macros while on it.
7078 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7080 Use mipsel- rather than mips- in directories involving mipsel ports to
7081 allow both endiannesses coexist.
7083 * configure.ac: proparate target_cpu=mipsel rather than resetting to
7084 mips. All conditions adjusted.
7085 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
7087 * util/grub-install.in: Adjust conditions to take renaming into account.
7088 * util/grub-mkimage.c (image_targets): Likewise. New target
7089 mips-qemu_mips-elf for bigendian mips.
7091 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7093 Avoid unnecessary copying on MIPS.
7095 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
7096 early if src == dest.
7097 * util/grub-mkimage.c (generate_image): Arange for src == dest if
7098 compression is none.
7100 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7102 Reduce memory footprint on SGI by putting modules before the kernel
7103 as opposed to after.
7105 * grub-core/Makefile.core.def (kernel): Increase linking address.
7106 (none_decompress): Likewise.
7107 (xz_decompress): Likewise.
7108 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
7110 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
7112 (grub_arch_modules_addr): New function.
7113 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
7114 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
7115 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
7117 * grub-core/kern/mips/startup.S (total_size): Rename to ...
7118 (grub_total_modules_size): ... this. Make global.
7119 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
7120 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
7122 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
7123 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
7124 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
7125 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
7126 * util/grub-mkimage.c (image_target_desc): New flag
7127 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
7128 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
7129 (generate_image): Handle images with modules before kernel.
7131 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7133 Prevent potential loss of memory map by overwrite on qemu-mips.
7135 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
7136 Save ram size in $s4.
7137 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
7138 All users changed to grub_arch_memsize.
7139 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
7141 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
7142 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
7143 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
7146 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7148 * .bzrignore: Remove grub-dumpbios.
7150 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7152 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
7153 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
7154 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
7155 existing options which append).
7156 * docs/grub.texi (Simple configuration): Document new options.
7157 Reported by: Ian Jackson. Fixes Debian bug #617538.
7159 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7161 * util/grub-fstest.c (cmd_cat): New function.
7162 (fstest): Handle CMD_CAT.
7164 (argp_parser): Handle cat.
7166 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7168 * Makefile.util.def (grub-bin2h): Don't install.
7169 * docs/man/grub-bin2h.h2m: Remove.
7171 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7173 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
7176 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7178 Reenable qemu-mips port.
7180 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
7181 Fix small arc bug while on it.
7182 * gentpl.py: Handle qemu_mips.
7183 * grub-core/Makefile.am: Likewise.
7184 * grub-core/Makefile.core.def: Likewise.
7185 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
7186 inappropriate includes.
7187 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
7188 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
7189 * grub-core/kern/main.c (grub_modules_get_end)
7190 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
7191 * grub-core/kern/mips/qemu-mips: Moved to ..
7192 * grub-core/kern/mips/qemu_mips: ... this.
7193 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
7194 (grub_machine_init): Call terminfo_init and serial_init.
7195 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
7196 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
7198 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
7200 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
7201 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
7202 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
7203 * include/grub/mips/qemu_mips/cmos.h: New file.
7204 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
7205 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
7207 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
7208 Use correct mips-style address.
7209 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
7210 (GRUB_TICKS_PER_SECOND): Removed.
7211 (grub_get_rtc): Likewise.
7212 (grub_cpu_idle): Likewise.
7213 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
7215 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
7216 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
7217 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
7218 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
7219 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
7220 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
7221 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
7222 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
7224 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7228 * Makefile.util.def (libgrubmods.a): Add dvh.c.
7229 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
7231 * configure.ac: New target mips-arc.
7232 * gentpl.py: Likewise.
7233 * grub-core/Makefile.am: Likewise.
7234 * grub-core/Makefile.core.def: Likewise.
7235 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
7236 (none_decompress): Likewise.
7237 (lsdev): New module.
7238 (datetime): Use lib/arc/datetime.c on ARC.
7239 (part_dvh): New module.
7240 * grub-core/commands/arc/lsdev.c: New file.
7241 * grub-core/disk/arc/arcdisk.c: Likewise.
7242 * grub-core/kern/mips/arc/init.c: Likewise.
7243 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
7245 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
7247 (grub_arch_dl_relocate_symbols): Likewise.
7248 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
7249 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
7250 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
7252 * grub-core/lib/arc/datetime.c: New file.
7253 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
7254 pci.h on non-loongson.
7255 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
7256 (grub_linux_boot): Set unused registers to 0.
7257 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
7258 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
7259 * grub-core/mmap/mips/uppermem.c: ...here.
7260 * grub-core/partmap/dvh.c: New file.
7261 * grub-core/term/arc/console.c: Likewise.
7262 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
7263 (grub_terminfo_set_current): Add terminal "arc".
7264 (grub_terminfo_readkey): Support ARC sequences.
7265 * include/grub/arc/arc.h: New file.
7266 * include/grub/arc/console.h: Likewise.
7267 * include/grub/disk.h (grub_disk_dev_id): Add
7268 GRUB_DISK_DEVICE_ARCDISK_ID.
7269 * include/grub/mips/arc/kernel.h: New file.
7270 * include/grub/mips/arc/memory.h: Likewise.
7271 * include/grub/mips/arc/time.h: Likewise.
7272 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
7273 * include/grub/mips/kernel.h (grub_halt): ... here.
7274 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
7276 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
7277 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
7278 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
7279 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
7281 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
7283 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
7284 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
7285 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
7286 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
7287 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
7288 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
7289 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
7290 (grub_phys_addr_t): Moved from here ...
7291 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
7292 (grub_vtop): Moved from here ...
7293 * include/grub/mips/memory.h (grub_vtop): ... here.
7294 (grub_map_memory): Moved from here ...
7295 * include/grub/mips/memory.h (grub_map_memory): ... here.
7296 (grub_unmap_memory): Moved from here ...
7297 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
7298 (grub_machine_mmap_iterate): Moved from here ...
7299 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
7300 (grub_mmap_get_lower): Moved from here ...
7301 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
7302 (grub_mmap_get_upper): Moved from here ...
7303 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
7304 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
7306 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
7307 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
7309 * include/grub/mips/time.h (grub_get_rtc): ... here.
7310 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
7312 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
7313 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
7315 * include/grub/mips/time.h (grub_cpu_idle): ... here.
7316 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
7318 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
7319 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
7320 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
7321 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
7322 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
7323 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
7324 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
7325 (GRUB_MACHINE_LINK_ADDR): Likewise.
7326 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
7328 * util/grub-install.in: Run dvhtool on ARC.
7329 * util/grub-mkimage.c (image_targets): Add mips-arc.
7330 (generate_image): Handle ECOFF output for mips-arc.
7332 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7334 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
7337 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7339 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
7340 after enabling port.
7342 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7344 Skip incorrect USB devices.
7346 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
7348 * include/grub/usb.h (grub_usb_err_t): New enum value
7349 GRUB_USB_ERR_BADDEVICE.
7351 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7353 Fuloong video init support.
7355 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
7357 (grub_vga_read_arx): New function.
7358 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
7360 (framebuffer): New members io, mmioptr and mmiobase.
7361 (read_sis_cmd): New function.
7362 (write_sis_cmd): Likewise.
7363 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
7364 rather than 640x400.
7365 * grub-core/video/sis315_init.c: New file.
7367 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7369 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
7371 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
7372 to grub_dl_register_symbol.
7374 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7376 Fix compilation errors.
7378 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
7380 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
7381 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
7382 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
7383 to loongson machines.
7385 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7387 Several FS mtime support.
7389 * grub-core/fs/affs.c (grub_affs_time): New struct.
7390 (grub_affs_file): New field mtime.
7391 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
7392 type. Removed 'size'. New field 'di'. All users updated.
7393 (grub_affs_mount): Simplify checsum checking.
7394 (grub_affs_iterate_dir): New helper grub_affs_create_node.
7395 (grub_affs_dir): Handle mtime.
7396 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
7397 (grub_cpio_dir): Likewise.
7398 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
7399 (grub_hfs_filerec): New field mtime.
7400 (grub_hfs_dir): Handle mtime.
7401 (grub_hfs_mtime): New function.
7402 (grub_hfs_fs): Register grub_hfs_mtime.
7403 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
7404 (grub_iso9660_dir): New field mtime.
7405 (grub_fshelp_node): New field dirent.
7406 (iso9660_to_unixtime): New function.
7407 (iso9660_to_unixtime2): Likewise.
7408 (grub_iso9660_read_symlink): Use node->dirent.
7409 (grub_iso9660_iterate_dir): Likewise.
7410 (grub_iso9660_dir): Set mtime.
7411 (grub_iso9660_mtime): New function.
7412 (grub_iso9660_fs): Register grub_iso9660_mtime.
7413 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
7414 (grub_jfs_inode): New fields atime, ctime and mtime.
7415 (grub_jfs_dir): Set mtime.
7416 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
7417 * grub-core/fs/ntfs.c (list_file): Set mtime.
7418 (grub_ntfs_dir): Likewise.
7419 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
7420 (grub_reiserfs_iterate_dir): Set mtime.
7421 (grub_reiserfs_dir): Likewise.
7422 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
7423 (grub_fshelp_node): Likewise.
7424 (grub_sfs_iterate_dir): Set mtime.
7425 (grub_sfs_dir): Likewise.
7426 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
7427 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
7428 (grub_xfs_inode): New fields atime, mtime, ctime.
7429 (grub_xfs_dir): Set mtime.
7430 * include/grub/datetime.h (grub_datetime2unixtime): New function.
7431 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
7432 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
7434 Support UDF symlinks.
7436 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
7437 (grub_ufs_read_symlink): New function. All users updated.
7439 Check amiga partmap checksum.
7441 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
7442 (grub_amiga_partition): Likewise.
7443 (amiga_partition_map_checksum): New function.
7444 (amiga_partition_map_iterate): Check checksum.
7446 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7450 * Makefile.util.def (libgrubmods.a): Add romfs.
7451 * grub-core/Makefile.core.def (romfs): New module.
7452 * grub-core/fs/romfs.c: New file.
7454 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7456 Squashfs v4 support.
7458 * Makefile.util.def (libgrubmods.a): Add squash4.
7459 * grub-core/Makefile.core.def (squash4): New module.
7460 * grub-core/fs/squash4.c: New file.
7461 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
7462 disk_input_start, disk_input.
7463 (get_byte): Handle disk_input.
7464 (grub_zlib_disk_read): New function.
7465 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
7467 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7468 2011-05-15 Feiran Zheng <famcool@gmail.com>
7470 * Makefile.util.def (libgrubmods.a): Add minix3.
7471 * grub-core/Makefile.core.def (minix3): New module.
7472 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
7473 (GRUB_MINIX_BSIZE): Removed.
7474 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
7475 (grub_minix_ino_t): New type.
7476 (grub_minix_le_to_cpu_ino): New macro.
7477 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
7478 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
7479 (grub_minix_data): New field block_size.
7480 (grub_minix_read_file): Handle 64-bit correctly.
7481 * grub-core/fs/minix3.c: New file.
7483 2011-05-15 Tristan Gingold <gingold@free.fr>
7484 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
7485 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7489 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
7490 * configure.ac: Add ia64-efi target.
7491 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
7492 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
7493 * gentpl.py: Add ia64_efi platform.
7494 Rename x86_efi to efi and Add ia64-efi. All users updated.
7495 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
7496 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
7497 Remove kern/generic/rtc_get_time_ms.c on EFI.
7498 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
7499 kern/ia64/dl_helper.c on ia64-efi.
7500 Add kern/emu/cache.c on emu.
7501 (linux): Use on loader/ia64/efi/linux.c on ia64.
7502 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
7503 whether symbol is a function.
7504 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
7505 (grub_symbol): New field 'isfunc'.
7506 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
7507 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
7508 (grub_dl_load_segments): Place all sections into the same region.
7509 [__ia64__]: Create trampolines and got.
7510 [GRUB_MACHINE_EMU]: Call mprotect.
7511 (grub_dl_resolve_symbols): Resolve symbol type as well.
7512 [__ia64__]: Create function descriptors.
7513 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
7514 (grub_rtc_get_time_ms): ... this. Expressions simplified.
7515 (grub_get_rtc): New function.
7516 * grub-core/kern/emu/cache.c [__ia64__]: New file.
7517 * grub-core/kern/emu/cache.S: Renamed to ...
7518 * grub-core/kern/emu/cache_s.S: ... this.
7519 [__ia64__]: Add a nop.
7520 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
7521 [__ia64__]: New function.
7522 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
7523 * grub-core/kern/ia64/dl.c: New file.
7524 * grub-core/kern/ia64/dl_helper.c: Likewise.
7525 * grub-core/kern/ia64/efi/init.c: New file.
7526 * grub-core/kern/ia64/efi/startup.S: Likewise.
7527 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
7528 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
7529 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
7530 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
7531 * grub-core/loader/ia64/efi/linux.c: New file.
7532 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
7533 (GRUB_MOD_DEP): Likewise.
7534 (grub_dl) [__ia64__]: New fields got and tramp.
7535 (grub_dl): New field 'base'.
7536 (grub_dl_register_symbol): New argument isfunc. All users updated.
7537 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
7538 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
7539 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
7540 (grub_ia64_dl_get_tramp_got_size): New proto.
7541 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
7542 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
7543 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
7544 * include/grub/efi/api.h: Skip call wrappers on ia64.
7545 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
7546 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
7547 * include/grub/elf.h (ELF_ST_INFO): New definition.
7548 * include/grub/ia64/efi/kernel.h: New file.
7549 * include/grub/ia64/efi/memory.h: Likewise.
7550 * include/grub/ia64/efi/time.h: Likewise.
7551 * include/grub/ia64/kernel.h: Likewise.
7552 * include/grub/ia64/setjmp.h: Likewise (from glibc).
7553 * include/grub/ia64/time.h: New file.
7554 * include/grub/ia64/types.h: Likewise.
7555 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
7556 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
7558 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
7559 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
7560 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
7561 * util/grub-mkimage.c (image_target_desc): New field pe_target.
7563 (EFI64_HEADER_SIZE): New definition. All users updated.
7564 (image_targets): Add ia64-efi.
7565 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
7566 jumpers_addr. All users updated.
7567 Create function descriptors.
7568 (count_funcs): New function.
7569 (unaligned_uint32): New struct.
7570 (MASK20): New definition.
7572 (MASKF21): Likewise.
7573 (add_value_to_slot_20b): New function.
7574 (add_value_to_slot_21_real): Likewise.
7575 (add_value_to_slot_21): Likewise.
7576 (ia64_kernel_trampoline): New struct.
7577 (nopm): New variable.
7579 (make_trampoline): New function.
7580 (relocate_addresses): Handle ia64.
7581 (make_reloc_section): Likewise.
7582 (load_image): Likewise.
7584 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7586 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
7587 warning. Move variables before code while on it.
7589 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7593 * configure.ac: Rename yeeloong platform to loongson. All users updated.
7594 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
7595 * grub-core/boot/mips/loongson/fuloong.S: New file.
7596 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
7597 Explicitly init CS5536.
7598 [FULOONG]: Don't use serial until CS5536 is available.
7599 Set GPIO based on dumps.
7600 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
7601 [FULOONG]: Handle GPIO and memory controller differences.
7602 Parse machine type in $a2.
7603 * grub-core/boot/mips/startup_raw.S: Determine and save the
7605 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
7606 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
7607 init on architecture type.
7608 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
7609 SIS315E. Don't init at_keyboard on fuloong.
7610 (grub_halt): Support Fuloong.
7611 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
7612 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
7613 (loongson_machtypes): New array.
7614 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
7616 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
7617 config. All users updated. Handle CS5536 serial.
7618 * grub-core/term/serial.c (grub_serial_register): Conditionalise
7619 default port on machine type. Register serial as inactive.
7620 * grub-core/video/sis315pro.c: New file.
7621 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
7623 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
7624 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
7625 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
7626 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
7627 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
7628 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
7630 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
7631 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
7633 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
7634 (grub_arch_machine): New extern var.
7635 * include/grub/mips/loongson/serial.h
7636 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
7637 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
7638 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
7639 (GRUB_MACHINE_SERIAL_PORT0): ... this.
7640 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
7641 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
7642 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
7643 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
7644 * include/grub/term.h (grub_term_register_input_inactive): New inline
7646 (grub_term_register_output_inactive): Likewise.
7647 * include/grub/video.h (grub_video_driver_id): New value
7648 GRUB_VIDEO_DRIVER_SIS315PRO.
7649 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
7650 New field "names". All users updated.
7651 New field value IMAGE_FULOONG_FLASH.
7652 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
7654 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
7656 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
7657 and add some clarification.
7659 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7661 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
7662 platforms if kernel is compressed.
7664 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7666 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
7667 unused modules since currently referrence counter isn't reliable and
7668 there isn't much memory to recover there anyway.
7670 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7672 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
7673 rather than resetting it to allow modules to reference themselves
7676 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7678 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
7679 counter on dependencies since grub_dl_unref already handles this.
7681 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7683 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
7684 on error if not already done.
7686 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7688 Fix few potential memory misusage.
7690 * grub-core/font/font.c (load_font_index): Don't free char_index to
7692 (grub_font_load): Zero-fill font at alloc for safety.
7693 Close file on error.
7694 (free_font): Free bmp_idx.
7696 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7698 * docs/grub.texi (Installation): Fix several outdated claims.
7700 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7702 Handle module_license on windows.
7704 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
7706 (insert_string): Make argument const char * instead of char *.
7707 (write_section_data): Handle long section names.
7708 Handle module_license.
7710 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7712 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
7713 handle class-free menuentries.
7714 (grub_normal_add_menu_entry): Add a check to be sure.
7716 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7718 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
7721 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7723 * configure.ac: Bump version to 1.99.
7725 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7727 Give ATA device a bit more time on first try in order to allow disks
7730 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
7731 if dev->present is 1. Reset dev->present on failure.
7732 (grub_ata_device_initialize): Set dev->present to 1.
7733 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
7734 (grub_ata_device): New member 'present'.
7736 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7738 * util/grub-mkimage.c (generate_image): Update hash.
7740 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7742 Flush caches on DMA memory.
7744 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
7745 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
7746 (grub_dma_free): Likewise.
7747 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
7749 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7751 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
7752 to avoid asm treating ld and sd as macros.
7754 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7756 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
7759 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7761 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
7762 grub_decompress_core since later would fail if grub_decompress_core
7765 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7767 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
7768 R_MIPS_JALR since it's used by newer compiler.
7770 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7772 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
7774 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7776 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
7777 file_path to 0 for surety.
7778 (grub_chainloader_boot): Set exit_data to NULL.
7779 Unset the loader once done.
7780 (grub_cmd_chainloader): Fix confusing error message if file is empty.
7782 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7784 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
7785 unknown key into a dprintf.
7787 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7789 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
7790 on first non-existant partition.
7792 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7794 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
7796 Reported by: Mark Korenberg.
7798 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7800 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
7803 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7805 * util/grub-mkimage.c (main): Explicitely flush and sync the output
7806 before closing to ensure that it will be readable by grub-setup.
7808 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7810 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
7811 (devpath_1): Use MAKE_PIWG_PATH.
7812 (devpath_2): Likewise.
7813 (devpath_3): Likewise.
7814 (devpath_4): Likewise.
7815 (devpath_5): Likewise.
7816 (devpath_6): Likewise.
7818 The appleldr.mod was checked that to be binary identical to previous
7821 2011-05-05 Zach <mikezackles>
7823 Support 2010 Macbooks.
7825 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
7826 (devs): Add devpath_6.
7828 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7830 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
7831 /dev/random. /dev/urandom is good enough for our purposes (salting).
7833 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7835 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
7837 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7839 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
7842 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7844 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
7845 and not 0 on failure.
7847 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7849 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
7850 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
7851 disk; otherwise grub_fs_probe will not fall back to the next
7853 (grub_pxefs_open): Likewise, for consistency.
7854 Reported and tested by: Ezekiel Grave.
7856 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7858 * tests/partmap_test.in: Don't hardcode path to parted.
7859 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
7861 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
7863 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
7864 of `ls' to find out which devices are available.
7866 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7868 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
7869 than source address for efi mmap buffer.
7871 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7873 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
7874 wrong action on non-detecting the magic.
7876 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7878 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
7879 already supplied by another part of the module (fixes compilation on
7882 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7884 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
7885 match the one used by mdadm.
7887 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7889 * po/README: Add instructions for creating po/LINGUAS.
7891 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7893 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
7896 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
7897 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
7898 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
7899 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7900 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
7901 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
7902 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
7903 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
7904 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
7905 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7906 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
7907 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
7908 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
7909 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
7910 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
7911 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
7912 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
7913 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
7914 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
7915 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
7916 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
7917 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
7919 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7921 * grub-core/kern/emu/getroot.c
7922 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
7923 test that was incorrectly reintroduced in r3214.
7924 Reported by: Ian Dall. Fixes Savannah bug #33133.
7926 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7928 Fix stack pointer handling in 16-bit relocator.
7930 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
7931 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
7932 Fixes Ubuntu bug #683904.
7934 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7936 * configure.ac: Bump version to 1.99~rc2.
7938 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7940 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
7941 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
7942 * grub-core/lib/x86_64/setjmp.S: Likewise.
7943 * grub-core/lib/mips/setjmp.S: Likewise.
7944 * grub-core/lib/powerpc/setjmp.S: Likewise.
7945 * grub-core/lib/sparc64/setjmp.S: Likewise.
7947 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7949 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
7950 * grub-core/lib/efi/datetime.c: Likewise.
7952 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7954 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
7956 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
7957 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
7958 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
7960 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7962 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
7964 (grub_gfxterm_term_init): Likewise.
7966 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7968 Take into account the decorations the computing menu entry width.
7970 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
7971 (grub_gfxmenu_create_box): Register get_border_width.
7972 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
7974 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
7977 2011-04-18 Endres Puschner <code@e7p.de>
7979 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
7980 Don't skip first class.
7982 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7984 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
7986 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
7988 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7990 Complete 64-bit division support.
7992 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
7993 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
7994 * include/grub/misc.h (grub_divmod64): Rename to ...
7995 (grub_divmod64_full): ... this.
7996 (grub_divmod64): New inline function.
7998 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8000 * util/grub-mkimage.c (generate_image): Add forgotten comma.
8002 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8004 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
8005 performing the necessary test.
8007 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
8009 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
8010 (kfreebsd.elf): Likewise.
8011 (pc-chainloader.elf): Likewise.
8012 (ntldr.elf): Likewise.
8014 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
8016 Identify RAID by its UUID rather than (guessed) name.
8018 * grub-core/disk/raid.c (ascii2hex): New function.
8019 (grub_raid_open): Accept mduuid/%s specification.
8020 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
8021 (get_mdadm_uuid): ... this.
8022 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
8024 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
8026 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
8029 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
8031 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
8033 * util/grub.d/20_linux_xen.in: Likewise.
8035 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
8037 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
8038 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
8040 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
8041 Build a list of relevant visible mounts using the mnt_id and
8042 parent_mnt_id fields, and then scan that list at the end.
8044 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
8046 * docs/grub.texi (normal): New section.
8047 (normal_exit): New section.
8048 (Embedded configuration): Add reference to normal.
8049 (GRUB only offers a rescue shell): Likewise.
8050 * docs/grub-dev.texi (Error Handling): Fix typo.
8052 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
8054 * NEWS: Drop obsolete entry about probe-only btrfs support.
8056 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
8058 * util/import_gcry.py: Fix typo.
8060 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8062 * NEWS: Add btrfs support.
8064 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8065 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
8067 BtrFS support. Written by me (Vladimir) with important bugfixes and
8068 even more important testing by Colin.
8070 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
8071 * grub-core/Makefile.core.def (btrfs): Add crc.c.
8072 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
8073 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
8074 mem_input_off and mem_input. All users updated to accept in-RAM input.
8075 (gzio_seek): New function.
8076 (test_zlib_header): Likewise.
8077 (grub_gzio_read): Likewise.
8078 (grub_zlib_decompress): Likewise.
8079 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
8080 Accept partial and non-virtual mounts.
8081 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
8082 avoid receiving /dev/dm-X as device.
8083 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
8084 Handle bind and partial mounts.
8085 * grub-core/lib/crc.c: New file.
8086 * include/grub/deflate.h: Likewise.
8087 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
8089 * include/grub/lib/crc.h: New file.
8091 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8093 Implement automatic module license checking according to new GNU
8096 * grub-core/kern/dl.c (grub_dl_check_license): New function.
8097 (grub_dl_load_core): Use grub_dl_check_license.
8098 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
8099 (GRUB_MOD_LICENSE): Likewise.
8100 (GRUB_MOD_DUAL_LICENSE): Likewise.
8101 All modules updated.
8103 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
8105 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
8106 reserved_first_sector to 1. btrfs reserves plenty of space for boot
8108 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
8110 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8112 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
8114 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8116 * util/grub-fstest.c (read_file): Report GRUB error if file opening
8119 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8121 * grub-core/kern/file.c (grub_file_open): Don't take into account the
8122 parenthesis in the middle of the filename.
8124 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8126 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
8127 rather than trying to put initrd way too high.
8128 Reported by: Ryan Lortie <desrt@desrt.ca>
8130 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8132 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
8133 improperly removed string.
8135 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8137 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
8139 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
8140 (open_device) Likewise.
8141 (grub_util_biosdisk_close): Likewise.
8142 Reported by: Mark Korenberg.
8144 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
8146 * util/grub-mkconfig_lib.in: Add missing quotes.
8148 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
8150 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
8153 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8155 Dynamically count the number of lines for the lower banner.
8157 * grub-core/normal/menu_entry.c (per_term_screen): New member
8159 (print_down): Use num_entries.
8160 (update_screen): Likewise.
8161 (grub_menu_entry_run): Set num_entries.
8162 * grub-core/normal/menu_text.c (menu_viewer_data): New member
8164 (grub_print_message_indented): Move real part to ...
8165 (grub_print_message_indented_real): ... here. Additional argument
8167 (draw_border): Additional argument num_entries.
8168 (print_message): Additional argument dry_run.
8169 (print_entries): Receive menu viewer data.
8170 (grub_menu_init_page): New argment num_entries.
8171 (menu_text_set_chosen_entry): Use num_entries.
8172 (grub_menu_try_text): Likewise.
8173 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
8175 (grub_ucs4_count_lines): New function.
8176 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
8177 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
8178 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
8179 (grub_term_border_height): Likewise.
8180 (grub_term_num_entries): Likewise.
8182 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8184 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
8185 Remove now unused string.
8187 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
8189 * docs/grub-dev.texi (Finding your way around): Update for 1.99
8191 (Getting started): GRUB is developed in Bazaar now, not Subversion.
8193 (Comment): Fix typo.
8194 (Getting started): General copy-editing.
8195 (Typical Development Experience): Likewise.
8196 (Error Handling): Likewise.
8197 (Video API): Likewise.
8199 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
8201 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
8204 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8206 * util/grub-mkimage.c (main): Handle special naming of yeeloong
8209 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
8211 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
8212 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
8215 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8217 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
8218 grub_strcpy since the lines aren't necessarily 0-terminated.
8220 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8222 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
8225 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8227 * grub-core/commands/probe.c (options): Argument to set isn't optional.
8228 (GRUB_MOD_INIT): DEVICE isn't optional.
8230 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8232 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
8233 word on new line if it's too long anyway. Fixes a hang.
8235 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8237 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
8239 * util/grub-setup.c (main): Reuse md device name if available.
8240 * util/raid.c (grub_util_raid_getmembers): Receive device name and
8241 not GRUB name as argument.
8242 Based on patch by: Florian Wagner <fwagner>.
8244 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8246 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
8247 Place mbi on low memory for better compatibility.
8249 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8251 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
8253 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8254 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
8256 * autogen.sh: Ensure that collate and ctype locale is C.
8257 * conf/Makefile.common: Likewise.
8259 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8261 * grub-core/normal/menu.c: Add missing include.
8263 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8265 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
8267 2011-04-08 Martin Zuther <mzuther@mzuther.de>
8269 * util/grub-mkconfig.in: Ignore emacsen backup.
8271 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8273 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
8275 (grub_util_biosdisk_close): Likewise.
8277 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8279 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
8280 const attribute and use grub_isdigit.
8282 2011-04-06 Andrey <dev_null@ukr.net>
8284 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
8287 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8289 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
8290 useful grub_dprintf's.
8292 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8294 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
8296 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8298 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
8300 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8302 Output errors if theme loading failed.
8304 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
8305 grub_gfxterm_fullscreen on error paths to ...
8306 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
8307 theme loading error.
8309 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8311 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
8312 space for older compilers.
8313 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
8315 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8317 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
8318 and report them as not RAID members since they are useless for GRUB.
8319 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8321 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8323 Increase LVM implementation robustness in order not to crash on
8324 configurations like pvmove. Previously code assumed that in some places
8325 only lvs or only pvs are used whereas it seems that they are used
8328 * grub-core/disk/lvm.c (read_node): New function.
8329 (read_lv): Use read_node.
8330 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
8331 Match volumes only at the end when all lvs are found. Take both
8332 pvs (first) and lvs (second) into account.
8333 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
8334 mirror_* into node_*. All users updated.
8335 (grub_lvm_stripe): Merge this ...
8336 (grub_lvm_mirror): ... and this ...
8337 (grub_lvm_node): ... into this. All users updated.
8339 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8341 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
8342 of function to allow further scanning for LVMs.
8344 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8346 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
8347 on failed seek as it breaks open fd reusage.
8349 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8351 * util/grub-install.in: Add a recommendation to use --recheck before
8354 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8356 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
8359 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8361 GRUB developper manual based on existing Internals section and
8362 contributions by the various authors with active copyright assignment.
8364 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
8365 * docs/font_char_metrics.png: New file.
8366 * docs/font_char_metrics.txt: Likewise.
8367 * docs/grub-dev.texi: Likewise.
8368 * docs/grub.texi (Internals): Move from here ...
8369 * docs/grub-dev.texi: ... here.
8371 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8373 Store the loopback device as data on loopback grub_disk structures,
8374 rather than the file it points to. This fixes use of freed memory
8375 if an existing loopback device is replaced.
8377 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
8378 disk->data, not dev->file.
8379 (grub_loopback_read): Adjust file assignment to match.
8380 Fixes Ubuntu bug #742967.
8382 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8384 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
8385 when replacing an existing device.
8387 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8389 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
8392 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
8394 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
8395 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
8396 (grub_jfs_read_inode): Likewise.
8397 (grub_jfs_opendir): Likewise. Remove now useless casts.
8398 (grub_jfs_getent): Likewise.
8399 Make ino a grub_uint32_t rather than int.
8400 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
8401 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
8402 division and module with bit operations.
8403 (grub_jfs_find_file): Make ino a grub_uint32_t.
8404 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
8406 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8408 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
8409 warning. (This was in fact always initialised before use, but GCC
8410 wasn't smart enough to prove that.)
8411 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
8413 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8415 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
8417 (efi_wrap_1): Likewise.
8418 (efi_wrap_2): Likewise.
8419 (efi_wrap_3): Likewise.
8420 (efi_wrap_4): Likewise.
8421 (efi_wrap_5): Likewise.
8422 (efi_wrap_6): Likewise.
8423 (efi_wrap_10): Likewise.
8424 Based on information by: Red Hat/Peter Jones.
8426 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
8428 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
8429 set-but-not-used variable.
8431 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
8433 * docs/grub.texi (Simple configuration): Be more explicit about
8434 GRUB_DEFAULT, and add an example.
8435 Reported by: Leslie Rhorer.
8437 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8439 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
8442 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
8444 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
8445 * util/grub.d/20_linux_xen.in: Likewise.
8447 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8449 * util/grub.d/10_linux.in: Try alternative config filenames where
8450 we parse config file.
8451 * util/grub.d/20_linux_xen.in: Likewise.
8453 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
8455 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
8456 * util/grub.d/20_linux_xen.in: Likewise.
8458 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8460 * grub-core/disk/raid.c (insert_array): Add few potentially
8461 useful grub_util_info.
8462 (grub_raid_register): Likewise.
8464 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8466 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
8467 Preserve partition number in mdadm code path.
8469 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8471 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
8472 few potentially useful grub_util_info.
8474 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8476 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
8478 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8480 * docs/grub.texi (default): Use @example rather than nested
8481 itemized lists to avoid breaking gendocs.
8483 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8485 * docs/grub.texi (Future): Update.
8487 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8489 * docs/grub.texi (Environment): New chapter.
8490 (Changes from GRUB Legacy): Link to "Environment block" section for
8491 details of limitations.
8492 (Simple configuration): Likewise. Link to documentation of gfxmode
8493 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
8495 (Shell-like scripting): Note that normal variables are stored in the
8497 (gettext): Link to documentation of lang and locale_dir.
8498 (list_env): New section.
8499 (load_env): New section.
8500 (save_env): New section.
8502 (Reporting bugs): Fix typo.
8504 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8506 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
8509 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8511 * grub-core/term/at_keyboard.c (set_scancodes)
8512 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
8514 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8516 * docs/grub.texi (Menu-specific commands): Remove some semantics
8517 that were true in GRUB Legacy but not in GRUB 2.
8518 (submenu): New section.
8519 (false): New section.
8520 (read): New section.
8521 (true): New section.
8523 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8525 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
8527 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8529 * docs/grub.texi (Simple configuration): Explain some of the
8530 current limitations of grub-mkconfig.
8531 Reported by: Leslie Rhorer.
8533 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8535 Old macs search for boot.efi rather than for bootia32.efi.
8537 * util/grub-install.in: Copy bootia32.efi to boot.efi.
8538 * util/grub-mkrescue.in: Likewise.
8539 Suggested by: Peter Jones.
8541 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8543 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
8545 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8547 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
8548 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
8549 (grub_lvm_mirror): New struct.
8550 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
8551 (grub_lvm_iterate): Iterate only visible volumes.
8552 (grub_lvm_read): Factor out to ..
8553 (read_lv): ... this. Support mirrors.
8554 (grub_lvm_read): New wrapper function.
8555 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
8556 stripped or mirrored.
8558 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8560 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
8562 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8564 * docs/grub.texi (loopback): New section.
8566 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8568 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
8571 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8573 * docs/grub.texi (BIOS installation): New section, partly based on
8574 previous text in other sections.
8575 (Installing GRUB using grub-install): Replace BIOS discussion with a
8579 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8581 * grub-core/kern/emu/hostdisk.c (find_partition_start)
8582 [HAVE_DIOCGDINFO]: Add safety checks.
8584 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8586 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
8587 per default compiled in kernel and prior to 8.0 isn't shipped at all.
8589 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8591 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
8592 real_sb->size is zero (e.g. RAID-0), get the disk size from
8593 real_sb->data_size instead.
8594 Fixes Ubuntu bug #743136.
8596 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8598 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
8599 printf clauses for printing size and start.
8601 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8603 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
8604 Reported and tested by: Timothy Nikkel.
8606 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8608 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
8609 (dirty_region_add_real): ... this.
8610 (dirty_region_add): Don't discard margin refresh when performing
8613 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8615 * grub-core/lib/relocator.c (allocate_regstart)
8616 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
8617 terminals are capabple of malloc-free operation.
8618 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8619 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8621 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
8623 * util/grub-setup.c: Copy the partition table zone if floppy support
8624 is disabled, even if no partition table is found.
8626 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
8627 during POST if an invalid partition table is contained in the PBR
8628 of the active partition when GRUB is installed to a partition.
8630 2011-03-28 Colin Watson <cjwatson@debian.org>
8632 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
8635 2011-03-28 Colin Watson <cjwatson@debian.org>
8637 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
8638 to be specific about what kind of RAID device we're scanning for.
8640 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
8642 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
8643 return freed string.
8645 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8647 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
8649 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8651 Use libgeom on FreeBSD to detect partitions.
8653 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
8654 (grub-mkrelpath): Likewise.
8655 (grub-script-check): Likewise.
8656 (grub-editenv): Likewise.
8657 (grub-mkpasswd-pbkdf2): Likewise.
8658 (grub-fstest): Likewise.
8659 (grub-mkfont): Likewise.
8660 (grub-mkdevicemap): Likewise.
8661 (grub-probe): Likewise.
8662 (grub-setup): Likewise.
8663 (grub-ofpathname): Likewise.
8664 (grub-mklayout): Likewise.
8665 (example_unit_test): Likewise.
8666 (grub-menulst2cfg): Likewise.
8667 * grub-core/Makefile.core.def (grub-emu): Likewise.
8668 (grub-emu-lite): Likewise.
8669 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
8670 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
8671 define HAVE_DIOCGDINFO.
8672 (follow_geom_up) [FreeBSD]: New function.
8673 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
8674 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
8675 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
8676 unconditionally of HAVE_DIOCGDINFO.
8678 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8680 Fix FreeBSD compilation problem.
8682 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
8683 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
8685 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
8687 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
8688 Switch back to page zero before loading a kernel, since some kernel
8689 drivers expect that.
8690 Thanks to: Felix Kuehling.
8692 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8694 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
8695 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
8696 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
8698 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8700 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
8701 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
8703 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8705 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
8706 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
8709 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8711 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
8712 for modules headers when counting the needed allocation size.
8714 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8716 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
8717 if no ASCII character is found to prevent crash.
8719 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
8721 * grub-core/video/bitmap.c (match_extension): Ignore case.
8723 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8725 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
8727 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8729 * grub-core/script/parser.y: Declare "time" as valid argument.
8731 2011-03-23 Peter Jones <pjones@redhat.com>
8733 Fix incorrect assert failure reporting.
8735 * grub-core/tests/example_functional_test.c (example_test): Add
8737 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
8738 (failure_start): ...this. Check that malloc succeeded.
8739 Don't call xvasprintf. Return failure struct.
8740 (failure_append_vtext): New function.
8741 (failure_append_text): Likewise.
8742 (add_failure): Likewise.
8743 (grub_test_assert_helper): Likewise.
8744 * include/grub/test.h (grub_test_assert_helper): New declaration.
8745 (grub_test_assert): Macro rewritten.
8747 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8749 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
8751 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8753 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
8755 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8757 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
8758 into GRUB-style one.
8760 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8762 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
8763 error and not grub_errno.
8764 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
8766 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8768 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
8769 GRUB_USB_SPEED_NONE in case of failure and not the error code.
8771 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8773 * grub-core/efiemu/i386/pc/cfgtables.c
8774 (grub_machine_efiemu_init_tables): Make declaration a prototype.
8775 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
8776 (grub_xnu_unlock): Likewise.
8777 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
8779 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8781 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
8782 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
8783 * grub-core/commands/hashsum.c (aliases): Likewise.
8784 * grub-core/commands/setpci.c (pci_registers): Likewise.
8785 * grub-core/disk/usbms.c (attach_hook): Likewise.
8786 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
8787 (zio_checksum_table): Likewise.
8788 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
8789 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
8790 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
8791 * grub-core/lib/relocator.c (leftovers): Likewise.
8792 (extra_blocks): Likewise.
8793 * grub-core/loader/i386/bsd.c (relocator): Likewise.
8794 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
8795 (modules_last): Likewise.
8796 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
8797 (devices): Likewise.
8798 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
8799 (modules_last): Likewise.
8800 * grub-core/normal/auth.c (users): Likewise.
8801 * grub-core/normal/context.c (initial_menu): Likewise.
8802 (current_menu): Likewise.
8803 * grub-core/normal/crypto.c (crypto_specs): Likewise.
8804 * grub-core/term/serial.c (grub_serial_ports): Likewise.
8805 (grub_serial_terminfo_input_template): Likewise.
8806 (grub_serial_terminfo_output_template): Likewise.
8807 (grub_serial_terminfo_input): Likewise.
8808 (grub_serial_terminfo_output): Likewise.
8809 (registered): Likewise.
8810 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
8812 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8814 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
8815 grub_video_mode_type_t.
8816 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
8817 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
8818 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
8820 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8822 * util/grub-install.in: Correct the x86-64 name as x86_64.
8824 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
8826 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
8827 initial chunk read from the kernel always includes GRUB's multiboot
8828 header, which is now outside the first sector.
8830 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8832 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
8833 cached mmap_size, so that this works correctly when called multiple
8835 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
8837 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8839 * docs/grub.texi (Simple configuration): Tidy up formatting.
8841 2011-03-07 Szymon Janc <szymon@janc.net.pl>
8843 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
8844 Set-but-not-used variable removed.
8846 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8848 Workaround yet another IEEE1275 bug.
8850 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8851 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
8852 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
8853 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
8855 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8856 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
8858 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8860 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
8863 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
8865 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
8866 empty, since in that case we can only generate either nothing or a
8867 syntactically invalid configuration file.
8868 Reported by: Michal Suchanek. Fixes Debian bug #612898.
8870 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8872 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
8873 (Making a GRUB bootable CD-ROM): Likewise.
8874 (Invoking grub-mkrescue): New section.
8875 Reported by: Yann Dirson. Fixes Debian bug #612585.
8877 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8879 * util/grub-install.in: Remove unnecessary brackets from tr
8881 * util/grub.d/10_hurd.in: Likewise.
8882 * util/grub.d/10_kfreebsd.in: Likewise.
8883 * util/grub.d/10_linux.in: Likewise.
8884 * util/grub.d/20_linux_xen.in: Likewise.
8885 Reported by: Jamie Heilman. Fixes Debian bug #612564.
8887 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
8889 * include/grub/file.h (not_easly_seekable): Rename to ...
8890 (not_easily_seekable): ... this. Update all users.
8892 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
8894 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
8897 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8899 * util/grub-mkimage.c (generate_image): Refuse to create the images
8900 bigger than the actual flash (512K) in Loongson machines. 512K is also
8901 the biggest chip supported by them.
8903 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8905 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
8907 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
8909 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
8912 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8914 * util/grub-install.in: Ignore install device on platforms
8915 where it doesn't make sense. Always use UUIDs except on pc, efi and
8917 Reported by: Daniel Kahn Gillmor.
8919 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8921 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
8923 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8925 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
8926 (iterate_real): Don't rely on partition being non-NULL.
8928 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8930 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
8931 supported platforms. Put a compile time assert for this rather than
8932 generate a warning with 32-bit shift.
8934 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8936 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
8937 logical expression more readable.
8939 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8941 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
8942 even if some elements have a name.
8943 Reported by: Alexander GQ Gerasiov.
8945 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8947 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
8948 path unreadable if `grub-probe -t abstraction' fails, for example if
8949 memberlist fails on an LVM volume group.
8950 Reported by: Darius Jahandarie.
8952 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8954 * docs/grub.texi (Simple configuration): Document
8955 GRUB_PRELOAD_MODULES.
8957 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
8959 * .bzrignore: Remove nonexistent grub-pbkdf2.
8961 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8963 * configure.ac: Bump version to 1.99~rc1.
8965 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8967 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
8970 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8972 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
8975 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8977 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
8979 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8981 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
8984 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8986 Fix compilation on cygwin.
8988 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
8989 -R .drectve on cygwin.
8990 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
8991 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
8992 (COND_CYGWIN): New condition.
8993 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
8994 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
8995 not @TARGET_OBJ2ELF@.
8996 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
8997 type to determine whether aux is to be used.
8999 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9001 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
9002 realpath'ed device string.
9003 Handle floppy (somewhat).
9004 Issue error in unknown case rather than garbage.
9005 Reported by: Axel Beckert.
9007 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9009 * util/grub.d/00_header.in (load_video): Handle the case when no video
9011 Thanks to: Axel Beckert.
9013 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9015 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
9016 variable. Fixes problem on big endian platforms.
9018 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9020 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
9021 It doesn't work well there.
9023 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9025 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
9027 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
9028 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
9031 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9033 Use alias->path rather than buggy "canon".
9035 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
9036 (ofdisk_hash_add): New argument curcan. All users updated.
9038 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
9040 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
9042 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9044 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
9045 loadmask before doing any calculations. Use correct type for offset.
9046 (grub_linux_load64): Likewise.
9048 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
9050 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
9052 (console_grub_equivalences_unshift): Likewise.
9053 Reported by: Daniel Dehennin.
9055 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9057 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
9058 (set_env_limn_ro): Likewise.
9059 (GRUB_MOD_INIT): Likewise.
9060 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
9061 ARRAY_SIZE while on it.
9062 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
9063 * grub-core/normal/context.c (grub_env_export): Move from here ...
9064 * grub-core/kern/env.c (grub_env_export): ... here.
9065 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
9067 * grub-core/kern/main.c (grub_main): Export root and prefix.
9068 * include/grub/env.h (grub_env_export): Export.
9069 Reported by: Seth Goldberg.
9071 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9073 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
9074 Take into account space used by ELF sections and multiboot palette.
9075 Reported by: Grégoire Sutre.
9077 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9081 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9083 Pass more appropriate video id to Linux.
9085 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
9086 grub_video_get_driver_id and variable gfxpayloadforcelfb to
9088 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
9089 shift params->lfb_size.
9090 * include/grub/i386/linux.h: Make an enume out of have_vga values.
9092 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9094 * util/grub-menulst2cfg.c: Add missing include of misc.h.
9096 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9098 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
9099 separator and pass bootpath/devid even if only one of them is available.
9100 Reported by: Seth Goldberg.
9102 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9104 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
9105 implementations bug on them.
9107 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
9109 (filter_memory_map): Likewise.
9111 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9113 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
9114 Reported by: nebuchadnezzar.
9116 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9118 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
9119 Reported by: nebuchadnezzar.
9121 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9123 Submenu default support.
9125 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
9126 auto_boot. All users updated.
9128 Handle chosen and default with submenus.
9129 (grub_menu_execute_with_fallback): Declared static.
9130 Don't notify failure if autobooted. Upper level does it.
9131 (menuentry_eq): New function.
9132 (get_entry_number): Use menuentry_eq.
9133 (show_menu): New parameter "autobooted". All users updated.
9134 (grub_show_menu): Likewise.
9135 * include/grub/normal.h (grub_show_menu): Likewise.
9136 * include/grub/menu.h (grub_menu_execute_entry): Removed.
9137 (grub_menu_execute_with_fallback): Likewise.
9139 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9141 * util/grub-mklayout.c (usage): Update help text.
9143 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9145 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
9147 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9149 * util/grub-menulst2cfg.c (main): Trim the line.
9151 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9153 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
9154 (grub_machine_init): Don't check amount of low memory as reportedly
9155 INT 12h can be broken and if low memory is too low we wouldn't have
9156 gotten into grub_machine_init anyway.
9158 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9160 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
9161 (grub_machine_mmap_iterate): Take low memory into account
9163 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9165 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
9169 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9171 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
9174 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
9176 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
9177 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
9179 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
9181 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
9182 openbsd and netbsd types being in part_bsd module.
9184 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9186 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
9187 (_FILE_OFFSET_BITS): Likewise.
9188 Reported by: Seth Goldberg.
9190 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
9192 * configure.ac: Check for libdevmapper header.
9194 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9196 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
9198 (fzap_lookup): Likewise.
9199 (dnode_get): Likewise.
9200 (make_mdn): Likewise.
9201 (zfs_mount): Likewise.
9202 (fzap_iterate): Use temporary pointer to avoid aliasing.
9203 (grub_zfs_read): Likewise.
9204 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
9205 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
9206 pointers to avoid aliasing.
9207 (grub_cmd_xnu_kernel64): Likewise.
9208 (grub_xnu_load_driver): Likewise.
9210 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9212 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
9214 (grub_cmd_terminal_output): Likewise.
9215 Reported and tested by: Grégoire Sutre.
9217 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9219 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
9221 Reported and tested by: Grégoire Sutre.
9223 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9225 * configure.ac: Do CPU substitution even if it's specified explicitly.
9226 Reported and tested by: Alain Greppin.
9228 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9230 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
9231 Reported and tested by: Alain Greppin.
9233 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9235 Satisfy some bison versions need for inttypes.h.
9237 * grub-core/lib/posix_wrap/inttypes.h: New file.
9238 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
9239 (int16_t): Likewise.
9240 (int32_t): Likewise.
9241 (int64_t): Likewise.
9242 Reported and tested by: Alain Greppin.
9244 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9246 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
9247 Silence spurious warning.
9248 Reported and tested by: Alain Greppin.
9250 2011-01-07 Szymon Janc <szymon@janc.net.pl>
9252 * docs/grub.texi (Support automatic decompression): Update with xz
9253 decompression support.
9255 2011-01-07 Szymon Janc <szymon@janc.net.pl>
9257 Improve loaders' kernel command line handling.
9259 * grub-core/lib/cmdline.c: New file.
9260 * include/grub/lib/cmdline.h: Likewise.
9261 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
9262 grub_create_loader_cmdline to create kernel command line.
9263 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9264 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
9265 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
9266 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
9267 (linux): Add lib/cmdline.c on common.
9269 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9271 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
9272 inopos might be unaligned.
9274 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9276 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
9277 endian transformations.
9278 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9279 Based on report by: Doug Nazar.
9281 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
9283 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
9284 array->members[i].start_sector.
9285 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9287 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9289 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
9290 Reported and tested by: Grégoire Sutre.
9292 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
9294 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
9295 avoid causing test failures by clearing the screen.
9297 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
9299 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
9300 Fix prefix check to handle the case where dir ends with a slash
9301 (most significantly, "/" itself).
9302 Reported by: Michael Vogt.
9304 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9306 Run terminfo_cls on initing terminfo output to clear the screen and
9307 move the cursor to (0,0).
9309 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
9310 Call grub_terminfo_output_init.
9311 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
9312 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
9313 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
9315 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9317 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
9320 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9322 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
9325 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9327 The E820 type 5 is BADRAM, not EXEC_CODE.
9329 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
9330 (GRUB_E820_BADRAM): New define.
9331 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
9332 into reserved. Propagate BADRAM.
9333 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
9334 (GRUB_E820_BADRAM): New define.
9336 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9338 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
9339 Ignore the memory post-4G.
9340 (grub_relocator_firmware_alloc_region): Additional debug statement.
9342 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9344 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
9346 Reported by: David Pravec.
9348 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9350 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
9353 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9355 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
9357 (grub_reed_solomon_recover): Likewise.
9359 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9361 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
9363 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9365 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
9368 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
9370 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
9371 descriptions of extract_legacy_entries_source and
9372 extract_legacy_entries_configfile.
9373 Reported by: Seung Soo, Ha.
9375 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
9377 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
9378 on devices that do not implement function 0.
9380 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
9382 * grub-core/fs/hfsplus.c: Make parent unsigned.
9383 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
9385 (grub_hfsplus_cmp_extkey): Likewise
9387 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
9389 * util/grub-install.in: Correctly use bootloader_id and not
9390 GRUB_DISTRIBUTOR on efibootmgr line.
9392 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
9394 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
9396 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
9398 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
9399 Xen and reorder menu item wording to make it clearer that this entry
9400 will launch Xen. Print separate messages when loading Xen and
9403 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9405 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
9406 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
9407 loop in case of incorrect amiga partmap.
9409 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9411 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
9412 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
9415 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9417 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
9419 Reported by: crocket
9421 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9423 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
9425 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
9427 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9429 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
9431 (grub_cmd_xnu_kextdir): Likewise.
9432 (grub_cmd_xnu_splash): Likewise.
9434 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9436 Avoid using Reed-Solomon with 0 redundancy.
9438 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
9439 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
9441 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
9442 (grub_reed_solomon_recover): Likewise.
9444 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9446 Don't use disk subsystem in freebsd_boot.
9448 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
9449 (freebsd_biosdev): Likewise.
9450 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
9451 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
9453 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9455 Handling of files of unknown size is currently limited. They can't be
9456 used e.g. for initrd or modules. Moreover gzip handling of not
9457 easily seekable files is buggy. Disable unknown file size for now. May
9458 be inefficient but works.
9460 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
9461 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
9463 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
9465 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
9468 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
9470 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
9472 2010-12-25 Shea Levy <shlevy>
9474 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
9476 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9478 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
9479 Windows Server 2008.
9480 Reported by: Devin Giddings.
9482 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9484 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
9485 writing an error message because of async power management.
9486 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
9487 (grub_reboot): Likewise.
9489 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
9491 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
9492 keep unit tests from failing when they shouldn't.
9494 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9496 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
9497 previous patch increased the size of the RS code by 20 bytes (at
9498 least with gcc-4.4), so increase this by 20 bytes to match.
9499 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9501 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9503 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
9504 scratch area. Make sure to initialise chosen in standalone mode as
9505 well as non-standalone.
9506 Reported by: Robert Hooker and Andy Whitcroft.
9507 Tested by: Andy Whitcroft.
9509 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9511 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
9512 constructing a new unescaped string and passing it to grub_xputs in
9513 one go, rather than passing characters to grub_printf one at a time.
9515 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9517 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
9520 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9522 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
9523 comment. Add an extra layer of quotation, requiring the output of
9524 this function to be used in a printf format string.
9525 (gettext_printf): New function.
9526 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
9527 Extract translatable strings from here-documents and use a temporary
9528 variable instead, so that xgettext can find them.
9529 * util/grub.d/10_kfreebsd.in: Likewise.
9530 * util/grub.d/10_linux.in: Likewise.
9531 * util/grub.d/20_linux_xen.in: Likewise.
9533 * po/grub.d.sed: New file.
9534 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
9535 arguments. Set c-format flags on all strings extracted from
9536 util/grub.d/ (xgettext refuses to include these itself for strings
9537 it extracted from a shell file, but these really are c-format).
9539 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9541 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
9542 Avoid next pointing to nowhere.
9544 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9546 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
9547 rather than assuming than rootblock is exactly in the middle.
9548 (grub_affs_label): Likewise.
9550 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9552 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
9553 reserved_first_sector to 0.
9554 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
9555 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
9556 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
9558 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9560 Fix handling of UTF-16 UDF labels.
9562 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
9563 (read_string): .. here.
9564 (grub_udf_label): Use read_string.
9566 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
9568 * grub-core/normal/menu_entry.c (run): Execute commands from menu
9569 editor under argument scope.
9570 Reported by: Jordan Uggla
9572 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9574 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
9576 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
9578 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
9579 line, and other keys scroll an entire page (previous handling was
9580 for \r and \n to scroll a page and other keys to scroll two lines).
9582 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9584 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
9585 Set ptrdest to correct get_physical_target_address rather than
9586 incorrect get_virtual_current_address.
9588 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
9590 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
9591 correct cat to grub_uint8_t * rather than grub_uint32_t *.
9593 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
9595 * .bzrignore: Ignore grub-core/rs_decoder.S.
9597 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
9599 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
9600 .mo/.mo.gz opening sequence to ...
9601 (grub_mofile_open_lang): ... here.
9602 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
9603 * util/grub.d/00_header.in (grub_lang): Include country part of
9605 Reported by: Mario Limonciello.
9607 2010-12-09 Robert Millan <rmh@gnu.org>
9609 * NEWS: Document addition of ZFS support.
9611 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
9613 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
9614 rather than `/ 2', as the latter requires -Wa,--divide which would
9615 require bumping our minimum binutils version.
9617 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
9619 * util/grub-script-check.c (main): Print script line number on
9622 2010-12-01 Robert Millan <rmh@gnu.org>
9624 * grub-core/fs/zfs/zfs.c: New file.
9625 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
9626 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
9627 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
9628 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9630 * include/grub/zfs/dmu.h: Likewise.
9631 * include/grub/zfs/dmu_objset.h: Likewise.
9632 * include/grub/zfs/dnode.h: Likewise.
9633 * include/grub/zfs/dsl_dataset.h: Likewise.
9634 * include/grub/zfs/dsl_dir.h: Likewise.
9635 * include/grub/zfs/sa_impl.h: Likewise.
9636 * include/grub/zfs/spa.h: Likewise.
9637 * include/grub/zfs/uberblock_impl.h: Likewise.
9638 * include/grub/zfs/vdev_impl.h: Likewise.
9639 * include/grub/zfs/zap_impl.h: Likewise.
9640 * include/grub/zfs/zap_leaf.h: Likewise.
9641 * include/grub/zfs/zfs.h: Likewise.
9642 * include/grub/zfs/zfs_acl.h: Likewise.
9643 * include/grub/zfs/zfs_znode.h: Likewise.
9644 * include/grub/zfs/zil.h: Likewise.
9645 * include/grub/zfs/zio.h: Likewise.
9646 * include/grub/zfs/zio_checksum.h: Likewise.
9648 * Makefile.util.def: Build ZFS into libgrubmods.
9649 * grub-core/Makefile.core.def: Build zfs.mod.
9651 2010-11-30 Szymon Janc <szymon@janc.net.pl>
9653 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
9655 * grub-core/commands/wildcard.c (match_files): Likewise.
9657 2010-11-30 Robert Millan <rmh@gnu.org>
9659 * grub-core/loader/i386/bsd.c
9660 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
9661 whether kernel is loaded using grub_loader_is_loaded(), rather
9662 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
9663 certain error conditions.
9665 2010-11-30 Robert Millan <rmh@gnu.org>
9667 * grub-core/commands/echo.c: Include `<grub/term.h>'.
9668 (grub_cmd_echo): Call grub_refresh() after printing a message.
9670 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9672 Avoid using tricks for initialising endian variables.
9674 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
9676 (GRUB_MOD_INIT): Don't byte-swap.
9677 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9678 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
9679 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
9680 (grub_swap_bytes32_compile_time): Likewise.
9681 (grub_cpu_to_le32_compile_time): Likewise.
9682 (grub_cpu_to_le16_compile_time): Likewise.
9684 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9686 * util/grub-setup.c (setup): Stop recommending --force. People who
9687 understand the dangers of blocklists are able to find this option
9688 anyway and the ones who don't shouldn't use it anyway.
9690 2010-11-26 Robert Millan <rmh@gnu.org>
9692 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
9695 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
9697 Fix LVM-on-RAID probing.
9699 * util/grub-probe.c (probe): Remember which disk was detected as
9700 RAID (perhaps an LVM physical volume). Use that disk's raidname
9701 rather than that of the top-level disk.
9703 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
9705 Fix cmdline argument quotes for setparams command of menuentry
9708 * grub-core/commands/menuentry.c (setparams_prefix): Use single
9709 quotes for arguments.
9710 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
9711 grub_strchrsub function instead.
9713 * include/grub/misc.h (grub_strchrsub): New function.
9715 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9717 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
9718 effort by skipping "." and ".." entries up-front.
9719 Suggested by: Michael Lazarev.
9721 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9723 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
9724 ldflags to ldadd, to fix link line ordering.
9725 (none_decompress): Likewise.
9727 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9729 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
9731 (grub-emu-lite): Remove kern/emu/cache.S.
9733 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9735 * util/deviceiter.c (compare_devices): If the by-id link for a
9736 device couldn't be resolved, fall back to sorting by the by-id link
9737 rather than segfaulting.
9738 Reported and tested by: Daniel Mierswa.
9740 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9742 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
9743 ldflags, to fix link line ordering.
9745 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9747 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
9748 linkers are picky about this.
9750 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9752 * grub-core/Makefile.am (command.lst): Adjust sed expression
9753 ordering so that extended and priority commands aren't treated as
9756 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9758 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9759 Remove byte-swapping function calls, which are not valid in
9760 structure initialisers.
9761 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
9763 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
9764 grub_gpt_partition_type_bios_boot.
9766 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9768 Fix test program build on GNU/kFreeBSD.
9770 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
9771 $(LIBNVPAIR)' library dependencies.
9773 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9775 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
9777 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9779 * util/grub-install.in: Remove excessive quoting that broke
9780 installations to RAID devices.
9782 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9784 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
9785 bootloader version instead of 0.
9787 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9789 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
9792 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9794 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
9795 retrieve the metadat sector if size isn't known.
9796 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9798 2010-11-18 Robert Millan <rmh@gnu.org>
9800 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
9803 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
9805 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
9807 Reported by: Jordan Uggla.
9809 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9811 Make better UTF compliant.
9813 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
9814 sequences as incorrect.
9815 (grub_is_valid_utf8): Likewise.
9816 (grub_utf8_to_ucs4): Likewise.
9817 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
9818 (grub_ucs4_to_utf8_alloc): Likewise.
9819 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
9821 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9823 Make legacy_source behave like source.
9825 * grub-core/commands/legacycfg.c (legacy_file): Don't call
9827 (grub_cmd_legacy_source): Call grub_show_menu if needed.
9829 2010-11-16 Colin Watson <cjwatson@debian.org>
9831 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
9832 (-Wunused implies -Wunused-parameter, but not vice versa).
9834 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
9836 * configure.ac: Make error messages less confusing by testing for
9837 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
9838 accepted, but produces a diagnostic if something else is wrong).
9840 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9842 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
9843 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
9845 (grub_keyboard_controller_init)
9846 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
9847 read the initial state since controller isn't inited yet.
9849 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9851 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
9852 allocate_regbeg may need to create new chunk header.
9854 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9856 Fix quoting in legacy parser.
9858 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
9860 (grub_legacy_parse): Likewise.
9861 Reported by: Jordan Uggla.
9862 Tested by: Jordan Uggla.
9864 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9866 Don't add -lgcc on i386 and x86_64.
9868 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
9869 * conf/Makefile.common (LDADD_KERNEL): Likewise.
9870 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
9872 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9874 * configure.ac: Add -Wno-trampolines when supported.
9876 2010-11-14 Modestas Vainius <modax@debian.org>
9878 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
9881 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9883 Add generic logical block size support for UDF.
9885 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
9886 (GRUB_UDF_BLKSZ): Removed.
9887 (struct grub_udf_data): New field "lbshift" to hold the logical block
9888 size of the file system in log2 format. All users updated.
9889 (sblocklist): Change type to unsigned.
9890 (grub_udf_mount): Change type of "sblklist" to unsigned.
9891 Move AVDP search before VRS recognition, because the latter requires
9892 knowledge of the logical block size, which is detected during the
9894 Detect and validate logical block size during AVDP search, adding
9895 support for block sizes 512, 1024 and 4096.
9896 Make VRS recognition independent of block size.
9898 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9900 Properly handle deleted files on UDF.
9902 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
9903 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
9906 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9908 Support reading files larger than 2 GiB.
9910 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
9911 "offset" to grub_off_t.
9912 (grub_udf_read_file): Likewise for parameter "pos".
9914 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9916 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
9918 (Simple configuration): Refer to Changes from GRUB Legacy about
9919 save_env availability.
9921 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9923 * util/grub-install.in: Ignore empty partition table detection
9924 instead of trying to include part_ module.
9926 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9928 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
9929 LVM on RAID support.
9931 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9933 Properly define WORDS_BIGENDIAN in wrapped environments.
9935 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
9937 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
9939 Reported by: Manoel Rebelo Abranches.
9940 Tested by: Manoel Rebelo Abranches.
9942 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9944 * util/grub-mkconfig.in: Fix quoting.
9946 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9948 Support big ext2 files.
9950 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
9951 (grub_ext2_read_block): Support triple indirect blocks.
9952 (grub_ext2_read_file): Use 64-bit types and read size_high.
9953 (grub_ext2_open): Read size_high.
9954 Reported by: Ximin Luo.
9955 Tested by: Manoel Rebelo Abranches.
9957 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9959 * util/grub-install.in: Handle filenames containing spaces.
9960 Reported by: Jordan Uggla.
9961 Tested by: Jordan Uggla.
9963 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9965 * util/grub-mkconfig.in (grub_script_check): New variable.
9966 Use grub_script_check instead of grub-script-check.
9967 Reported by: Barry Jackson.
9969 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9971 * docs/grub.texi (menu): Correct the order.
9972 Reported by: D. Hugh Redelmeier.
9974 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9976 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
9979 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
9981 * include/grub/elfload.h (grub_elf32_size): New parameter.
9983 Return maximum segments alignment.
9984 (grub_elf64_size): Likewise.
9985 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
9986 Return maximum segments alignment.
9987 (grub_elf64_size): Likewise.
9988 * grub-core/loader/powerpc/ieee1275/linux.c:
9989 (grub_linux_claimmap_iterate): New function. Uses the
9990 "available" property in the "memory" node for memory allocation
9991 for kernel in the PowerPC loader.
9992 (grub_linux_load32): Correctly find linux entry point offset.
9993 (grub_linux_load64): Likewise.
9995 2010-11-07 Robert Millan <rmh@gnu.org>
9997 On mips-yeeloong, build with -march=loongson2f when this flag is
9998 available (GCC >= 4.4).
9999 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
10001 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
10002 or otherwise add -march=mips3.
10004 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
10006 Suppress shell expansion on echo '*' and echo "*" like cases.
10007 Reported by: Jordan Uggla.
10009 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
10010 string arguments before shell expansion.
10011 * tests/grub_cmd_echo.in: New testcases.
10013 2010-11-07 Robert Millan <rmh@gnu.org>
10015 * conf/mips-qemu-mips.rmk: Remove stale file from previous
10018 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
10020 * grub-core/kern/emu/hostdisk.c
10021 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
10023 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10025 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
10026 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
10027 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
10029 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10031 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
10033 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10035 * util/grub-install.in: Replace useless recomendation to pass
10036 --modules with a recomendation to report a bug.
10038 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10040 Properly register serial terminfo.
10041 Reported by: Jordan Uggla
10043 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
10045 (grub_serial_terminfo_output_template): Likewise.
10046 (grub_cmd_serial): Register "serial" with terminfo.
10047 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
10048 grub_serial_terminfo_output.
10050 2010-11-05 Robert Millan <rmh@gnu.org>
10052 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
10055 2010-11-05 Robert Millan <rmh@gnu.org>
10057 On Yeeloong, pass machine type information to Linux.
10059 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
10060 (LOONGSON_MACHTYPE): New macro, set to
10061 "machtype=lemote-yeeloong-2f-8.9inches".
10062 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
10063 additional argument to Linux.
10065 2010-11-04 Robert Millan <rmh@gnu.org>
10067 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
10068 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
10069 (its SATA disks are detected as slaveless IDE master drives on
10071 Reported by Carsten Aulbert.
10073 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
10075 * util/bin2h.c (main): Fix spelling error in generated output.
10077 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
10079 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
10081 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10083 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
10084 vga= option is supplied.
10086 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10088 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
10089 * util/grub.d/10_kfreebsd.in: Likewise.
10090 * util/grub.d/10_linux.in: Likewise.
10091 * util/grub.d/20_linux_xen.in: Likewise.
10093 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10095 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
10096 argument as an argument to no-argument option.
10098 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10100 * util/grub.d/10_linux.in: Add missing load_video with explicit
10101 GRUB_GFXPAYLOAD_LINUX.
10103 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10105 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
10107 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10109 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
10110 elements with invlid index.
10111 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10112 * grub-core/disk/raid.c (insert_array): Automatically reallocate
10114 * include/grub/raid.h (grub_raid_member): New struct.
10115 (grub_raid_array): Transform devices and start_sector into usage of
10116 grub_raid_member. All users updated
10117 (allocated_devs): New member.
10119 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10121 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
10124 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
10126 NetBSD build fix for getline function conflict from gnulib.
10128 * Makefile.util.def (libgrubkern.a): New library for grub kernel
10129 components that depend on gnulib headers.
10130 (libgrubmods.a): Renamed from earlier libgrub.a.
10131 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
10133 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10135 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
10136 install rather than creating a broken install.
10138 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10140 * util/grub-setup.c (argp): Remove misleading example of installing to
10143 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10145 * util/grub-setup.c (setup): Clarify the error message.
10147 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10149 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
10151 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10153 * grub-core/kern/emu/misc.c
10154 (grub_make_system_path_relative_to_its_root)
10155 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
10157 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10159 * grub-core/kern/emu/misc.c
10160 (grub_make_system_path_relative_to_its_root): Revert r2882.
10162 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
10164 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
10165 useless field head. All users updated.
10166 (free_subchunk): Correct handling of IN_REGION subchunk.
10168 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
10170 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
10171 (Supported kernels): Likewise.
10173 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
10175 Make mktemp invocations portable.
10177 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
10178 exit if mktemp fails.
10179 * tests/grub_script_blockarg.in: Likewise.
10180 * tests/partmap_test.in: Likewise.
10181 * tests/util/grub-shell-tester.in: Likewise.
10182 * tests/util/grub-shell.in: Likewise.
10183 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10184 * Makefile.am: Likewise, and chain shell commands with `&&'
10186 * util/grub-mkrescue.in: Use the same explicit template as above, and
10187 exit if mktemp fails.
10189 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
10191 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
10192 Linux kernel, reported by Dennis Schridde.
10194 2010-10-17 Szymon Janc <szymon@janc.net.pl>
10196 * grub-core/normal/auth.c (grub_auth_check_authentication):
10197 Set-but-not-used variable removed.
10199 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10201 * docs/grub.texi (GNU/Linux): Document APM unavailability with
10202 32-bit linux protocol.
10204 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10206 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
10207 cursor shape for sanity.
10209 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10211 * docs/grub.texi (Installation): Document buggy BIOS install.
10213 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10215 * docs/grub.texi (Installation): Indent.
10217 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10219 * util/grub-setup.c (setup): New parameter allow_floppy.
10220 (arguments): New member allow_floppy.
10221 (argp_parser): Handle --allow-floppy.
10222 (main): Pass allow_floppy.
10223 * util/grub-install.in: New option --allow-floppy passed though to
10226 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10228 * util/grub-install.in: Handle partitionless disks.
10230 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10232 * util/grub-setup.c (setup): Don't clean blocklists before readability
10235 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10237 * docs/grub.texi (Installation): Document embedding zone. Remove
10238 obsolete grub-install example.
10240 2010-10-16 Szymon Janc <szymon@janc.net.pl>
10242 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
10243 Set-but-not-used variable ifdef'ed.
10244 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
10245 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
10247 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
10248 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
10249 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
10250 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
10251 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
10252 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
10253 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
10254 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
10255 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
10256 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
10257 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
10260 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10262 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
10263 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
10266 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10268 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
10269 synonym to _S5_. Needed for some DSDTs.
10271 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10273 Userspace ACPI parser debugging.
10275 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
10276 headers and add relevant defines. Don't include standard headers.
10277 (main) [GRUB_DSDT_TEST]: New function.
10278 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
10279 Don't declare functions.
10281 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10283 Remove dead grub_efi_mm_fini.
10285 * grub-core/kern/efi/mm.c (allocated_page): Removed.
10286 (ALLOCATED_PAGES_SIZE): Likewise.
10287 (MAX_ALLOCATED_PAGES): Likewise.
10288 (allocated_pages): Likewise.
10289 (grub_efi_allocate_pages): Don't record allocated pages.
10290 (grub_efi_free_pages): Likewise.
10291 (grub_efi_mm_init): Likewise.
10292 (grub_efi_mm_fini): Removed.
10294 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10296 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
10297 (grub_efi_mm_init): Take into account the memory map size increase.
10299 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10301 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
10302 (serial_hw_put): Wait based on real time rather than port reads. Don't
10304 * include/grub/serial.h (grub_serial_port): New field broken.
10306 2010-10-16 Robert Millan <rmh@gnu.org>
10308 * grub-core/kern/emu/misc.c
10309 (grub_make_system_path_relative_to_its_root): Fix premature return
10310 when processing non-root ZFS filesystems.
10311 Reported by Sergio Talens-Oliag.
10313 2010-10-15 Robert Millan <rmh@gnu.org>
10315 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
10316 guarantee compressed ones are processed first.
10318 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10320 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
10321 grub_efiemu_autocore.
10323 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10325 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
10327 (grub_console_getkey): Use correct jae opcode rather than ja.
10329 2010-10-12 Robert Millan <rmh@gnu.org>
10331 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
10332 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
10333 variable. All references updated.
10335 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
10337 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
10339 Correctly distinguish mdraid flavours.
10341 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
10342 (insert_array): New argument raid.
10343 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
10344 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
10345 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
10347 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
10349 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
10350 handling of special keys.
10352 2010-10-02 Aleš Nesrsta <starous@volny.cz>
10354 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
10355 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
10357 2010-10-02 Aleš Nesrsta <starous@volny.cz>
10359 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
10360 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
10362 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
10363 Use right endpoint when querying descriptor.
10365 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
10367 Clear out 0x80 color bit on EFI.
10369 Reported by: decoder and meta tech.
10371 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
10372 (grub_console_setcolorstate): Clear out 0x80 bit.
10373 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
10374 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
10375 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
10377 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
10379 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
10382 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10384 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
10385 mo_file after freeing.
10387 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10389 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
10391 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10393 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
10396 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10398 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
10401 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10403 Put terminfo into core on ieee1275 and yeeloong (needed for console).
10405 * gentpl.py: New groups terminfoinkernel and terminfomodule.
10406 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
10407 and terminfo.h when needed.
10408 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
10409 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
10410 (terminfo): Enable only on terminfokernel.
10411 (extcmd): Likewise.
10412 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
10413 * include/grub/lib/arg.h: Likewise.
10414 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
10415 incorrect usage of ->.
10417 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10419 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
10420 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
10422 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10424 Fix coreboot compilation.
10426 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10427 Take VBE info into account even if only text is supported.
10428 (fill_vbe_info): Take into account the case when only VGA text
10430 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
10431 on coreboot, multiboot and qemu.
10433 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10435 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
10437 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
10439 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10441 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
10444 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10446 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
10447 if they were BSD-style.
10449 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10451 * grub-core/boot/i386/pc/lnxboot.S: Replace
10452 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
10453 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
10455 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10457 Write embedding zone using Reed-Solomon.
10459 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
10460 * grub-core/Makefile.am (rs_decoder.S): New target.
10461 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
10462 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
10463 (multiboot): Move to RS part.
10464 (post_reed_solomon): New label.
10465 (grub_boot_drive): Move to non-RS part since it's modified in memory
10467 Include rs_decoder.S.
10468 * grub-core/lib/reed_solomon.c: New file.
10469 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
10471 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
10472 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
10473 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
10474 * include/grub/partition.h (grub_partition_map): Change prototype of
10475 embed to allow returning additional sectors.
10476 * include/grub/reed_solomon.h: New file.
10477 * util/grub-setup.c (setup): Handle Reed-Solomon.
10479 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
10481 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
10482 i386 and x86-64 definedness tests.
10484 2010-09-27 Yves Blusseau <blusseau@zetam.org>
10486 Fix generation of kernel_syms.lst
10488 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
10491 2010-09-26 Robert Millan <rmh@gnu.org>
10493 Support degraded ZFS arrays in "grub-probe -t device" resolution.
10495 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
10496 the pool is an array of devices, iterate through it and return the
10497 first device that passes a stat() test (instead of blindly returning
10500 2010-09-26 Robert Millan <rmh@gnu.org>
10502 Build fixes for GNU/kFreeBSD.
10504 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
10505 to programs that require ZFS conversion.
10506 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
10507 kernels that don't have FLOPPY_MAJOR.
10509 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
10511 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
10513 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
10515 Fix grub-emu build.
10517 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
10518 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
10519 mdraid09 and mdraid1x.
10521 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
10523 Re-enable grub-extras.
10525 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
10526 avoid confusing Automake. Run autogen only twice, once for the top
10527 level and once for grub-core. Add Makefile.util.def and
10528 Makefile.core.def from extra modules to the appropriate autogen
10529 invocations. If Makefile.common exists in an extra module, include
10530 it in both Makefile.util.am and grub-core/Makefile.core.am;
10531 similarly, include any Makefile.util.common file in Makefile.util.am
10532 and any Makefile.core.common file in grub-core/Makefile.core.am.
10533 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
10534 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
10535 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
10536 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
10538 * gentpl.py (gvar_add): Turn GVARS into a set.
10539 (global_variable_initializers): Sort global variables on output.
10540 (vars_init): New function.
10541 (first_time): Likewise.
10542 (library): Ensure that non-global variable initialisations are
10543 emitted before the first time we emit code for a library block.
10544 Append to variables rather than setting them. Only emit
10545 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
10546 each conditional path.
10547 (program): installdir() emits an Autogen macro, so must be passed to
10548 var_add rather than gvar_add.
10550 (script): Likewise.
10551 (rules): New function, centralising handling for different target
10552 types. Set up Guile association lists for first_time and vars_init,
10553 and send most output to a diversion so that variable initialisations
10554 can be emitted first.
10555 (module_rules): Use new rules function.
10556 (kernel_rules): Likewise.
10557 (image_rules): Likewise.
10558 (library_rules): Likewise.
10559 (program_rules): Likewise.
10560 (script_rules): Likewise.
10561 (data_rules): Likewise.
10563 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
10565 * .bzrignore: Add contrib and grub-core/contrib. Remove
10566 grub-core/Makefile.gcry.am.
10568 2010-09-24 Yves Blusseau <blusseau@zetam.org>
10570 * grub-core/lib/LzFind.c: Add missing include.
10571 * grub-core/lib/LzmaEnc.c: Likewise.
10572 * grub-core/script/lexer.c: Likewise.
10573 * grub-core/script/yylex.l: Likewise.
10574 * util/grub-macho2img.c: Likewise.
10575 * util/grub-menulst2cfg.c: Likewise.
10576 * util/grub-mklayout.c: Likewise.
10577 * util/grub-mkpasswd-pbkdf2.c
10578 * util/grub-mkrelpath.c: Likewise.
10579 * util/resolve.c: Likewise.
10581 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
10583 * Makefile.util.def (example_unit_test): Add
10584 grub-core/gnulib/libgnu.a.
10586 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
10588 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
10590 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
10592 Support xz compression on yeeloong.
10594 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
10595 * configure.ac: Check for LZMA.
10596 * grub-core/Makefile.core.def (xz_decompress): New target.
10597 (none_decompress): Likewise.
10598 * grub-core/boot/decompressor/minilib.c: New file.
10599 * grub-core/boot/decompressor/none.c: Likewise.
10600 * grub-core/boot/decompressor/xz.c: Likewise.
10601 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
10602 * grub-core/kern/mips/cache_flush.S: Likewise.
10603 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
10604 * grub-core/kern/mips/startup.S: Move first stage to ...
10605 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
10607 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
10608 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
10609 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
10610 Allocate statically.
10611 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
10612 Allocate statically or use scratch. Don't check CRC32.
10613 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
10614 Allocate statically. Don't check CRC32.
10615 * include/grub/decompressor.h: New file.
10616 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
10618 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
10619 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
10620 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
10621 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
10622 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
10623 * util/grub-mkimage.c (grub_compression_t): New type.
10624 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
10625 (image_target_desc): New field default_compression.
10626 (image_targets): Adjust yeeloong targets.
10627 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
10628 (compress_kernel): New parameter comp.
10629 (generate_image): Likewise. Handle new compression case.
10630 (options): New option --compression
10632 (main): Handle new option.
10634 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
10636 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
10638 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
10640 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
10641 typo in __i386__ conditional.
10643 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10645 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
10648 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10650 Implement EFI and ACPI multiboot2 extensions.
10652 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
10653 new tags as supported.
10654 (acpiv2_size): New function.
10655 (grub_multiboot_get_mbi_size): Take new tags into account.
10656 (grub_multiboot_make_mbi): Add new tags.
10657 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
10659 2010-09-21 Aleš Nesrsta <starous@volny.cz>
10661 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
10662 Added missing configuration of USB device.
10664 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10666 * grub-core/normal/menu_entry.c (run): Make sure we always return
10669 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10671 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
10672 NumberOfPages is UINT64 according to the UEFI specification, not
10673 UINTN. Fix printf format.
10675 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10677 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
10678 `err' to grub_usb_err_t.
10679 Reported and tested by: KESHAV P.R.
10681 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10683 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
10684 tpart non-const, so that we can assign to it. (Since this is a
10685 typedef, the constness refers to the pointer rather than what it
10688 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10690 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
10691 $(top_srcdir)/grub-core/gnulib as well as
10692 $(top_builddir)/grub-core/gnulib.
10693 Reported by: KESHAV P.R.
10695 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10697 * util/grub-install.in: Fix the bootloader ID option to be
10698 consistently --bootloader-id, not --bootloader_id.
10699 Reported by: KESHAV P.R.
10701 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10703 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
10704 check hash checksum." consistently translatable.
10706 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10708 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
10711 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10713 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
10714 (GRUB_MOD_INIT): Register sha1sum command.
10715 (GRUB_MOD_FINI): Unregister sha1sum command.
10717 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10719 Keep boot and grub directory names in sync with utils scripts
10721 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
10722 * config.h.in: Add previous macros.
10723 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
10724 * util/grub-install.in: Use $bootdir and $grubdir variables.
10726 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10728 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
10729 convert partition names to disk names if the new `convert' parameter
10731 (grub_util_biosdisk_get_grub_dev): If opening the disk device
10732 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
10733 disk in its own right. This can happen with Xen disk images.
10735 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10737 * util/grub-editenv.c: Update strings to avoid warnings when generating
10739 * util/grub-setup.c: Likewise.
10741 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10743 * configure.ac: Change version to 1.99~beta0.
10745 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10747 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
10749 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
10751 * include/multiboot.h: Resynced with specification.
10752 * include/multiboot2.h: Likewise.
10754 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10756 Fix po directory handling.
10758 * configure.ac: Create po/Makefile.in rather than po/Makefile.
10759 * grub-core/gnulib/Makefile.am: Import gettext module.
10760 * m4/gnulib-cache.m4: Likewise.
10761 * m4/gnulib-comp.m4: Likewise.
10762 * m4/gettext.m4: New file, from gnulib.
10763 * m4/glibc2.m4: Likewise.
10764 * m4/iconv.m4: Likewise.
10765 * m4/intdiv0.m4: Likewise.
10766 * m4/intl.m4: Likewise.
10767 * m4/intldir.m4: Likewise.
10768 * m4/intlmacosx.m4: Likewise.
10769 * m4/intmax.m4: Likewise.
10770 * m4/inttypes-pri.m4: Likewise.
10771 * m4/lcmessage.m4: Likewise.
10772 * m4/lib-ld.m4: Likewise.
10773 * m4/lib-link.m4: Likewise.
10774 * m4/lib-prefix.m4: Likewise.
10775 * m4/lock.m4: Likewise.
10776 * m4/nls.m4: Likewise.
10777 * m4/po.m4: Likewise.
10778 * m4/printf-posix.m4: Likewise.
10779 * m4/progtest.m4: Likewise.
10780 * m4/threadlib.m4: Likewise.
10781 * m4/uintmax_t.m4: Likewise.
10782 * m4/visibility.m4: Likewise.
10783 * po/Makefile.am: Remove.
10784 * po/Makefile.in.in: New file, from gettext.
10785 ($(DOMAIN).pot-update): Support POTFILES-shell.
10786 * po/Makevars: New file.
10787 * po/POTFILES-shell: Rename to ...
10788 * po/POTFILES-shell.in: ... this. Update.
10789 * po/POTFILES: Rename to ...
10790 * po/POTFILES.in: ... this. Update.
10791 * po/Rules-quot: New file, from gettext.
10792 * po/boldquot.sed: Likewise.
10793 * po/en@boldquot.header: Likewise.
10794 * po/en@quot.header: Likewise.
10795 * po/insert-header.sin: Likewise.
10796 * po/quot.sed: Likewise.
10797 * po/remove-potcdate.sin: Likewise.
10799 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10801 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
10803 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10805 * util/grub.d/20_linux_xen.in: Use submenus.
10807 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10811 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
10812 parameter submenu. All users updated.
10813 * grub-core/normal/main.c (free_menu): Rename to ...
10814 (grub_normal_free_menu): ... this. Made global.
10815 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
10817 * grub-core/normal/menu_entry.c (screen): New field submenu.
10818 (make_screen): Set submenu.
10819 (run): Open new context if requested.
10820 * include/grub/menu.h (grub_menu_entry): New field submenu.
10821 * include/grub/normal.h (grub_normal_free_menu): New proto.
10823 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10825 Menu entries extractor.
10827 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
10829 (GRUB_MOD_INIT): Register new variants.
10830 (GRUB_MOD_FINI): Unregister new variants.
10831 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
10832 into grub_cmd_legacy_source.
10833 (grub_cmd_legacy_source): Implement extractor variants.
10834 (GRUB_MOD_INIT): Register new variants.
10835 (GRUB_MOD_FINI): Unregister new variants.
10836 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
10838 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
10839 search as an extractor.
10840 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
10841 test as an extractor.
10842 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
10844 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
10845 (grub_env_new_context): New function.
10846 (grub_env_context_open): Likewise.
10847 (grub_env_extractor_open): Likewise.
10848 (grub_env_extractor_close): Likewise.
10849 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
10850 grub_extractor_level.
10851 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
10852 * include/grub/env.h (grub_env_extractor_open): New proto.
10853 (grub_env_extractor_close): Likewise.
10854 * include/grub/normal.h (grub_extractor_level): New external variable.
10856 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10858 Make cutmem accept a region specification.
10859 Suggested by: Samuel Thibault
10861 * grub-core/mmap/mmap.c (parsemem): New function.
10862 (grub_cmd_cutmem): Handle new arguments.
10864 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10866 New command cutmem.
10868 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
10869 (GRUB_MOD_INIT): Register new command.
10870 (GRUB_MOD_FINI): Unregister new command.
10872 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10874 Support some annoying BSD and Minix subpartitions.
10876 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
10877 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
10878 Properly handle concatenation.
10879 * grub-core/kern/device.c (grub_device_iterate): Likewise.
10880 * grub-core/normal/completion.c (iterate_partition): Likewise.
10881 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
10882 contain partition. All users updated.
10883 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
10885 (grub_openbsdlabel_partition_map): Likewise.
10886 (bsdlabel_partition_map_iterate): Rename to ..
10887 (iterate_real): ... this. New arguments sector, freebsd and pmap.
10888 (bsdlabel_partition_map_iterate): New function.
10889 (netopenbsdlabel_partition_map_iterate): Likewise.
10890 (netbsdlabel_partition_map_iterate): Likewise.
10891 (openbsdlabel_partition_map_iterate): Likewise.
10892 (GRUB_MOD_INIT): Register new partmaps.
10893 (GRUB_MOD_FINI): Unregister new partmaps.
10894 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
10895 (grub_partition_msdos_iterate): ... this. All users updated.
10896 Don't support embedding other than in a minix partition.
10897 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
10899 * include/grub/partition.h (grub_partition): New field msdostype.
10900 * util/grub-install.in: Handle openbsd and netbsd types being in
10903 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10905 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
10907 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
10908 * grub-core/Makefile.core.def (mdraid): Renamed to ...
10909 (mdraid09): ... this.
10910 (mdraid1x): New module.
10911 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
10912 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
10914 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10916 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
10919 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10921 * grub-core/commands/efi/lsefimmap.c: Correct header.
10924 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10926 * util/grub-editenv.c (argp_parser): Don't pass translated strings
10927 as printf format strings; the translations might contain '%' which
10928 could cause a crash.
10930 * util/grub-fstest.c (argp_parser): Likewise.
10931 * util/grub-setup.c (argp_parser): Likewise.
10934 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10936 Use argp in grub-fstest.
10938 * util/grub-fstest.c: Don't include getopt.h.
10940 (root): New variable.
10941 (args_count): Likewise.
10943 (num_disks): Likewise.
10944 (images): Likewise.
10946 (debug_str): Likewise.
10948 (options): Transformed to argp.
10950 (main): Split argument parsing into ...
10951 (argp_parser): ... this. Changed to argp format.
10952 (argp): New variable.
10953 (main): Use argp_parse.
10955 2010-09-20 Tristan Gingold <gingold@free.fr>
10956 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
10957 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10959 * grub-core/commands/efi/lsefimmap.c: New file.
10960 * grub-core/Makefile.core.def (lsefimmap): New module.
10961 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
10963 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10965 Pause the execution (10s max) if any errors are displayed so the user
10966 has a chance to see them.
10968 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
10969 (grub_print_error): Increment grub_err_printed_errors.
10970 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
10971 execution if any errors were displayed.
10972 (show_menu): Remove old code for pause.
10973 * grub-core/normal/menu_entry.c (run): Likewise.
10974 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
10976 (grub_normal_get_char_counter): Likewise.
10977 * include/grub/err.h (grub_err_printed_errors): New external variable.
10978 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
10980 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10982 Support multiboot VBE info.
10984 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10985 Take VBE info into account.
10986 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
10987 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10988 Call fill_vbe_info when appropriate.
10989 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
10990 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
10992 (grub_multiboot_get_mbi_size): Take new tags into account.
10993 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
10994 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10995 Call fill_vbe_tag when appropriate.
10996 (grub_multiboot_make_mbi): Properly align tags.
10997 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
10999 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
11001 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
11003 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11005 Suport manual terminal geometry specification.
11007 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
11008 Save state in grub_ofconsole_terminfo_output.
11009 (grub_ofconsole_term): Use grub_terminfo_getwh.
11010 (grub_ofconsole_getwh): Removed.
11011 * grub-core/term/serial.c (grub_serial_getwh): Removed.
11012 (grub_serial_term): Use grub_terminfo_getwh.
11013 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
11014 (options): New struct.
11015 (OPTION_*): New enum.
11016 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
11017 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
11019 (grub_terminfo_getwh): New proto.
11020 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
11022 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11024 Handle legacy "terminal" command.
11026 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
11028 (legacy_commands): Add terminal and title.
11029 (grub_legacy_parse): Handle terminal. Simplify title handling.
11031 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11033 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
11034 parameters overflow.
11036 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11038 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
11041 * docs/grub.texi (Shell-like scripting): Document `!'.
11042 (Network): Simplify using new i386-pc-pxe format. Mention
11047 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11049 * Makefile.am (SUBDIRS): Restore "."; it's important to force
11050 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
11053 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11055 * grub-core/commands/efi/lsefisystab.c: Correct header.
11056 * grub-core/commands/efi/lssal.c: Likewise.
11057 * grub-core/commands/testload.c: Likewise.
11059 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11061 * util/grub-mkrescue.in: Add explicit root argument to --set to
11062 prevent the UUID being interpreted as an argument to --set (matches
11063 previous change to prepare_grub_to_access_device).
11065 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
11067 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
11068 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
11069 the verbosity of later #ifs.
11070 (find_partition_start): Define this function on FreeBSD too.
11071 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
11073 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
11076 2010-09-20 Yves Blusseau <blusseau@zetam.org>
11078 * util/grub-editenv.c: Use argp instead of getopt.
11080 2010-09-20 Yves Blusseau <blusseau@zetam.org>
11082 * util/grub-setup.c: Use argp instead of getopt.
11084 2010-09-20 Yves Blusseau <blusseau@zetam.org>
11086 Use gnulib-tool to create gnulib source files.
11088 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
11089 grub-core/gnulib directories
11090 * .bzignore: Add **/.deps and autogenerated gnulib files
11091 * configure.ac: Assign auxiliary directory to build-aux, add invocation
11092 of gnulib macros, add grub-core/gnulib/Makefile
11093 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
11094 include m4 directory to aclocal.
11095 * Makefile.util.def: Remove direct compilation of gnulib source files
11096 and use the new grub-core/gnulib/libgnu.a.
11097 * build-aux/config.rpath: move config.rpath from top directory to
11099 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
11101 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
11102 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
11103 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
11105 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
11108 2010-09-20 Yves Blusseau <blusseau@zetam.org>
11110 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
11111 grub-core/genmod.sh and grub-core/gensyminfo.sh
11113 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
11115 Add a test for echo command options.
11117 * tests/grub_cmd_echo.in: New test.
11118 * Makefile.util.def: Rules for new test.
11120 2010-09-20 Szymon Janc <szymon@janc.net.pl>
11122 Remove crc.mod and move crc command to hashsum.mod.
11123 Remove lib/crc.c - users updated to use gcrypt implementation.
11125 * grub-core/commands/crc.c: Removed.
11126 * grub-core/Makefile.core.def (crc): Module removed.
11127 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
11128 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
11129 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
11130 * grub-core/lib/crc.c: Removed.
11131 * include/grub/lib/crc.h: Removed.
11132 * Makefile.util.def (crc): Remove lib/crc.c
11133 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
11134 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
11135 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
11136 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
11137 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
11138 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
11140 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11142 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
11144 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11146 Split config.h for util and core.
11148 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
11149 (ADDR32): Likewise.
11150 (DATA32): Likewise.
11151 (BSS_START_SYMBOL): Likewise.
11152 (END_SYMBOL): Likewise.
11153 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
11154 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
11155 * config.h.in: New file.
11156 * configure.ac: Use config-util.h as config define file.
11157 Rename MACHINE into GRUB_MACHINE. All users updated.
11158 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
11160 (NESTED_FUNC_ATTR): Likewise.
11161 Substitue new variables.
11162 (COND_HAVE_ASM_USCORE): New conditional.
11163 * grub-core/Makefile.am (ASM_PREFIX): New variable.
11164 (kernel_syms.lst): Use ASM_PREFIX.
11165 * grub-core/kern/emu/console.c: Include config-util.h.
11166 * grub-core/kern/emu/misc.c: Likewise.
11167 * grub-core/kern/emu/mm.c: Likewise.
11168 * include/grub/emu/misc.h: Likewise.
11169 * include/grub/libgcc.h: Likewise.
11171 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11173 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
11175 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
11176 Fix GRUB_TERM_KEY_* constants usage.
11177 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
11179 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11181 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
11183 * grub-core/bus/usb/uhci.c: Remove empty define.
11184 (grub_uhci_check_transfer): Add missing cast.
11185 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
11187 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
11189 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
11191 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11193 * grub-core/Makefile.core.def (legacycfg): Add
11194 lib/i386/pc/vesa_modes_table.c on emu.
11196 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
11198 Reduce number of temporary files generated by build system.
11200 * grub-core/gencmdlist.sh: Removed.
11201 * grub-core/genfslist.sh: Removed.
11202 * grub-core/genhandlerlist.sh: Removed.
11203 * grub-core/genmodsrc.sh: Removed.
11204 * grub-core/genpartmaplist.sh: Removed.
11205 * grub-core/genparttoollist.sh: Removed.
11206 * grub-core/gentermiinallist.sh: Removed.
11207 * grub-core/genvideolist.sh: Removed.
11209 * grub-core/genmod.sh.in: New file.
11210 * grub-core/gensyminfo.sh.in: New file.
11212 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
11213 * conf/Makefile.extra-dist: Update with new files.
11214 * gentpl.py: Remove rules related to unnecessary temporary files.
11215 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
11217 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
11219 * grub-core/bus/usb/uhci.c: Remove empty #define.
11220 * grub-core/genmoddep.awk: Updated with new syminfo format.
11221 * util/bash-completion.d/Makefile.am: Add config.log to
11224 2010-09-19 Yves Blusseau <blusseau@zetam.org>
11226 * Makefile.util.def: Add forgotten $(LIBINTL) library.
11228 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
11230 * util/grub-mkconfig.in: Check the config script for syntax errors
11233 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
11234 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11236 * Makefile.util.def (grub-install): Use util/grub-install.in on all
11238 * util/grub-install.in: Add EFI and IEEE1275 support.
11239 * util/i386/efi/grub-install.in: Removed.
11240 * util/ieee1275/grub-install.in: Likewise.
11242 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11244 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
11245 (grub_cmd_cmosclean): Likewise.
11246 (GRUB_MOD_INIT): Register command cmosclean.
11247 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
11248 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
11250 2010-09-18 Carles Pina i Estany <carles@pina.cat>
11251 2010-09-18 Aleš Nesrsta <starous@volny.cz>
11252 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11254 Add keyboard layouts support.
11256 * Makefile.util.def (grub-mklayout): New file.
11257 (grub-kbdcomp): New script.
11258 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
11259 Add keyboard_layouts.h.
11260 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
11261 commands/boot.c on yeeloong.
11262 (keylayouts): New module.
11263 * grub-core/bus/usb/ohci.c
11264 * grub-core/bus/usb/uhci.c
11265 * grub-core/bus/usb/usbhub.c (rescan): New variable.
11266 (grub_usb_add_hub): Poll interrupt pipe for device handling.
11267 (attach_root_port): Likewise.
11268 (poll_nonroot_hub): Likewise.
11269 (grub_usb_poll_devices): Likewise.
11270 (detach_device): Close transfer.
11271 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
11273 (grub_usb_bulk_setup_readwrite): Likewise.
11274 (grub_usb_bulk_finish_readwrite): Likewise.
11275 * grub-core/commands/keylayouts.c: New file.
11276 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
11277 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
11279 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
11280 support scancode 2.
11281 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
11282 * include/grub/keyboard_layouts.h: New file.
11283 * util/grub-mklayout.c: New file.
11284 * util/grub-kbdcomp.in: Likewise.
11286 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11288 Unify memory types.
11290 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
11291 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
11293 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
11294 (grub_upper_mem): Likewise.
11295 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
11296 * include/grub/memory.h (grub_memory_type_t): New enum.
11299 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11301 * grub-core/Makefile.core.def (lsapm): New module.
11302 * grub-core/commands/i386/pc/lsapm.c: New file.
11303 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
11304 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
11306 * include/grub/i386/pc/apm.h: New file.
11307 * include/multiboot.h (multiboot_apm_info): New struct.
11309 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11311 GRUB-legacy configuration file support.
11313 * Makefile.util.def (grub-menulst2cfg): New util.
11314 * docs/man/grub-menulst2cfg.h2m: New file.
11315 * grub-core/Makefile.core.def (legacycfg): New module.
11316 * grub-core/commands/legacycfg.c: New file.
11317 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
11318 (grub_normal_add_menu_entry): ... this.
11319 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
11320 (grub_normal_set_password): ...this.
11321 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
11322 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
11323 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
11324 * grub-core/lib/legacy_parse.c: New file.
11325 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
11326 * include/grub/i386/pc/vesa_modes_table.h: New file.
11327 * include/grub/legacy_parse.h: Likewise.
11328 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
11329 * util/grub-menulst2cfg.c: New file.
11331 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11333 * grub-core/kern/emu/hostdisk.c
11334 (convert_system_partition_to_system_disk): Initialise node.
11336 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11338 * grub-core/kern/emu/hostdisk.c
11339 (convert_system_partition_to_system_disk): Fix devmapper memory pool
11341 Reported and based on patch by: Modestas Vainius.
11343 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11345 Fix DM-RAID probing with recent versions of device-mapper udev
11348 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
11349 canonicalise device paths under /dev/mapper/.
11350 (convert_system_partition_to_system_disk): Compare the
11351 uncanonicalised path to /dev/mapper/ rather than the canonicalised
11352 path, since device nodes under /dev/mapper/ are often symlinks.
11354 2010-09-17 Yves Blusseau <blusseau@zetam.org>
11356 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
11358 2010-09-16 Yves Blusseau <blusseau@zetam.org>
11360 * configure.ac: Avoid some annoying error messages if freetype-config
11361 program is not found.
11363 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11365 Support RAID on virtio devices, and others.
11367 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
11369 [__MINGW32__] (grub_find_device): ... this.
11370 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
11371 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
11372 reasonable default if dir is NULL.
11373 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
11375 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
11376 (grub_guess_root_device): Update callers.
11377 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
11379 * util/raid.c (grub_util_getdiskname): Remove.
11380 (grub_util_raid_getmembers): Use grub_find_device rather than
11381 grub_util_getdiskname.
11383 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11385 * docs/grub.texi (serial): Remove obsolete comment about GRUB
11386 needing to be compiled with serial support.
11387 (ls): Indicate that multiple files are accepted.
11388 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
11389 indicate that multiple files are accepted.
11391 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11393 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
11394 libgrub_a_init.c, and util/bash-completion.d/grub.
11396 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11398 * util/grub-setup.c (setup): Fix incorrect container semantics.
11400 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11402 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
11404 Reported by: J. Nick Terry
11406 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11408 Move embedding routines to partmap sources files.
11410 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
11411 [GRUB_UTIL]: New variable.
11412 (gpt_partition_map_iterate): Set part.parent.
11413 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
11414 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
11415 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
11417 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
11418 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
11419 (grub_partition_map) [GRUB_UTIL]: New field embed.
11420 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
11421 (setup): Use ->embed.
11423 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11425 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
11427 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
11428 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
11430 2010-09-15 Yves Blusseau <blusseau@zetam.org>
11432 Add function to get completions from usage.
11434 * util/bash-completion.d/grub-completion.bash.in: Add function to get
11435 completions from usage. Use LC_ALL=C to get options properly.
11437 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11439 * grub-core/gnulib/basename-lgpl.c: Imported.
11440 * grub-core/gnulib/basename.c: Likewise.
11441 * grub-core/gnulib/dirname-lgpl.c: Likewise.
11442 * grub-core/gnulib/dirname.c: Likewise.
11443 * grub-core/gnulib/dirname.h: Likewise.
11444 * grub-core/gnulib/stripslash.c: Likewise.
11446 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11448 * grub-core/gnulib/error.c: Resynced.
11449 * grub-core/gnulib/getopt.c: Likewise.
11450 * grub-core/gnulib/getopt_int.h: Likewise.
11451 * grub-core/gnulib/regex.h: Likewise.
11452 * grub-core/gnulib/regex_internal.c: Likewise.
11453 * grub-core/gnulib/regex_internal.h: Likewise.
11455 2010-09-15 Szymon Janc <szymon@janc.net.pl>
11457 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
11458 CRC calculations and validity checks.
11459 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
11462 2010-09-15 Szymon Janc <szymon@janc.net.pl>
11464 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
11466 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11468 Fix incorrect echo options handling.
11469 Reported by: Yves Blusseau.
11471 * include/grub/command.h (grub_command_flags_t): New flags
11472 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
11473 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
11474 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
11476 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11478 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
11480 (GRUB_COMMAND_FLAG_MENU): Likewise.
11481 (GRUB_COMMAND_FLAG_BOTH): Likewise.
11482 (GRUB_COMMAND_FLAG_TITLE): Removed.
11483 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
11484 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
11485 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
11486 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
11487 (grub_command_flags_t): New enum. All users updated.
11489 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
11491 Fix solaris compilation.
11493 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
11494 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
11495 (grub-emu-list): Likewise.
11497 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11499 Remove deprecated root command.
11501 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
11504 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11506 * util/i386/pc/grub-setup.c: Merge this ...
11507 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
11508 * util/grub-setup.c: ... into this.
11509 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
11512 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11514 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
11517 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11519 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
11522 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11524 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
11525 explicit root argument to set to prevent UUID to be interpreted as
11528 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11530 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
11532 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11534 Don't export grub_gate_a20.
11536 * grub-core/kern/i386/pc/init.c: Remove leftovers.
11537 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
11539 (grub_gate_a20): ... this. All users updated.
11540 * include/grub/i386/pc/init.h: Removed. All users updated.
11542 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11544 Create euro.pf2 which supports most European languages.
11546 * Makefile.am (grubdata_DATA): Add euro.pf2.
11547 (euro.pf2): New target.
11548 (CLEANFILES): Add euro.pf2.
11550 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11552 * configure.ac: Disable emu-usb by default to prevent inadvertent
11555 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11557 Disable usbserial on grub-emu since our libusb code isn't good enough
11560 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
11561 (usbserial_pl2303): Likewise.
11562 (usbserial_ftdi): Likewise.
11564 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11566 * include/grub/disk.h (grub_disk): Remove has_partitions.
11568 * disk/loopback.c (grub_loopback): Remove has_partitions.
11570 (options): Remove partitions. All users updated.
11571 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
11572 * util/i386/pc/grub-setup.c (setup): copy partition table only when
11573 actual partition table is found.
11575 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11577 Remove readability checks (too many false negatives).
11579 * util/grub-install.in: Remove readability checks.
11580 * util/grub-mkconfig.in: Likewise.
11581 * util/grub.d/10_hurd.in: Likewise.
11582 * util/grub.d/10_kfreebsd.in: Likewise.
11583 * util/grub.d/10_linux.in: Likewise.
11584 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
11587 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11589 Enable acpi shutdown on all ACPI platforms.
11591 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
11592 on coreboo, multiboot and EFI.
11593 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
11594 (grub_acpi_halt): Likewise.
11595 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
11596 (grub_cmd_halt): Don't call grub_acpi_halt directly.
11597 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
11598 * grub-core/lib/i386/halt.c (grub_halt)
11599 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
11601 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11603 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
11606 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11608 * grub-core/video/efi_gop.c: Fix over-80-chars line.
11609 * grub-core/video/efi_uga.c: Likewise.
11611 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11613 Filter devaliases and never open same device twice.
11615 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
11616 (last_ihandle): Likewise.
11617 (ofdisk_hash_ent): New member shortest.
11618 (ofdisk_hash_add): Add canonical path too.
11619 (scan): New function.
11620 (grub_ofdisk_iterate): Iterate over hashed entries.
11621 (compute_dev_path): Don't add :0.
11622 (grub_ofdisk_open): Don't really open the disk.
11623 (grub_ofdisk_close): Avoid closing unrelated disk.
11624 (grub_ofdisk_read): Implement reopen logic.
11625 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
11627 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
11630 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11634 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
11635 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
11636 right address. Add sparc64_ieee1275_ldflags.
11637 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
11638 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
11639 to grub_host_to_target_addr
11640 (load_image): Likewise.
11642 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11644 * grub-core/normal/completion.c (complete_file): Handle device
11646 Fix based on patch by Doug Nazar.
11648 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11650 grub-mknetdir script.
11652 * Makefile.util.def (grub-mknetdir): New module.
11653 * tests/util/grub-shell.in: Support boot=net
11654 * util/grub-mknetdir.in: New file.
11656 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11658 videoinfo on non-vbe.
11660 * grub-core/Makefile.core.def (vbeinfo): Removed.
11661 (vbetest): Removed.
11662 (videoinfo): New module.
11663 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
11664 * grub-core/commands/i386/pc/vbetest.c: Removed.
11665 * grub-core/commands/videoinfo.c: New file.
11666 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
11668 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
11670 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
11671 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
11672 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
11673 mode_number. New parameter mode. All users updated.
11674 (grub_video_gop_iterate): New function.
11675 (grub_video_efi_gop): New member iterate.
11676 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
11677 (grub_vbe_set_video_mode): Remove setting useless fields.
11678 (vbe2videoinfo): New function.
11679 (grub_video_vbe_iterate): Likewise.
11680 (grub_video_vbe_setup): Use vbe2videoinfo.
11681 (grub_video_vbe_print_adapter_specific_info): New function.
11682 (grub_video_vbe_adapter): New fields iterate and
11683 print_adapter_specific_info.
11684 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
11686 (grub_video_mode_info): New field mode_number.
11687 (grub_video_adapter): New fields iterate and
11688 print_adapter_specific_info.
11690 2010-09-13 Tristan Gingold <gingold@free.fr>
11691 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
11692 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11694 * grub-core/commands/efi/lsefisystab.c: New file.
11695 * grub-core/commands/efi/lssal.c: Likewise.
11696 * grub-core/Makefile.core.def (lsacpi): New module.
11697 (lsefisystab): Likewise.
11698 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
11699 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
11700 (grub_efi_sal_system_table): New struct.
11701 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
11702 (grub_efi_sal_system_table_memory_descriptor): Likewise.
11703 (grub_efi_sal_system_table_platform_features): Likewise.
11704 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
11705 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
11706 (grub_efi_sal_system_table_ap_wakeup): Likewise.
11707 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
11709 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11711 Support explicit user claim that a device is BIOS-visible.
11713 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
11714 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
11715 * grub-core/kern/emu/hostdisk.c
11716 (convert_system_partition_to_system_disk): Support mdX.
11717 (find_system_device): New parameter add. All users updated.
11718 (grub_util_biosdisk_is_present): New function.
11719 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
11722 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11724 Search hints support.
11726 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
11729 2010-09-13 Yves Blusseau <blusseau@zetam.org>
11731 Bash completion script for util commands
11733 * Makefile.am: Add util/bash-completion.d directory
11734 * configure.ac: Likewise.
11735 * util/bash-completion.d/Makefile.am: New file.
11736 * util/bash-completion.d/grub-completion.bash.in: Likewise.
11738 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11740 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
11741 (print_backlog): set backlog_ucs4 and backlog_glyphs.
11742 Reported by: Yves Blusseau.
11744 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11746 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
11747 partition size and offset.
11749 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11751 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
11753 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11755 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
11757 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11759 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
11760 (grub_xvasprintf): Likewise.
11762 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11764 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
11766 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11768 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
11769 args ending with NULL.
11771 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11773 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
11776 2010-09-11 Szymon Janc <szymon@janc.net.pl>
11778 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
11780 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11782 Shutdown using ACPI.
11784 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
11785 * grub-core/commands/acpihalt.c: New file.
11786 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
11787 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
11788 (grub_acpi_halt): New proto.
11789 (GRUB_ACPI_SLP_EN): New const.
11790 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
11791 (GRUB_ACPI_OPCODE_*): New enum.
11792 (GRUB_ACPI_EXTOPCODE_*): Likewise.
11794 2010-09-11 Tristan Gingold <gingold@free.fr>
11795 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
11796 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11798 * commands/lsacpi.c: New file.
11799 * grub-core/Makefile.core.def (lsacpi): New module.
11800 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
11801 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
11802 (grub_acpi_madt_entry_header): New struct.
11803 (grub_acpi_madt): Likewise.
11804 (grub_acpi_madt_entry_interrupt_override): Likewise.
11805 (grub_acpi_madt_entry_sapic): Likewise.
11806 (grub_acpi_madt_entry_lsapic): Likewise.
11807 (grub_acpi_madt_entry_platform_int_source): Likewise.
11808 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
11809 (PRIuGRUB_UINT32_T): Likewise.
11810 (PRIxGRUB_UINT64_T): Likewise.
11812 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11814 Implement loading palette on ieee1275_fb.
11816 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
11817 (have_setcolors): Likewise.
11818 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
11819 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
11820 (grub_video_ieee1275_set_palette): Implement.
11822 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11823 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
11825 * util/grub-install.in (grub_partition): New variable.
11826 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
11827 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
11828 Fixes a bug reported by Yves Blusseau.
11830 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11834 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
11835 =grub_cpu_flush_cache on all mips and not only yeeloong.
11836 * configure.ac (COND_mips): New conditional.
11837 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
11839 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
11840 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
11841 [GRUB_LINKER_HAVE_INIT]: New function.
11842 (grub_emu_post_init): Likewise.
11843 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
11844 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
11845 * include/grub/cache.h (_mips): Include mips/cache.h.
11846 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
11847 LVM and RAID prototypes.
11848 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
11849 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
11852 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11854 * util/grub-install.in: Don't try to verify core.img until after
11855 running grub-mkimage to create it.
11857 2010-09-10 Robert Millan <rmh@gnu.org>
11859 * util/grub.d/10_hurd.in: Add misc readability checks.
11860 * util/grub.d/10_kfreebsd.in: Likewise.
11861 * util/grub.d/10_linux.in: Likewise.
11863 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11865 * util/grub-install.in: ${imgext} won't be defined here until the
11866 install branch is merged. For the meantime, only verify core.img on
11867 i386-pc and sparc64-ieee1275 platforms.
11869 2010-09-10 Robert Millan <rmh@gnu.org>
11871 Solaris support in grub_find_zpool_from_dir(). Thanks
11872 Seth Goldberg for referring to getextmntent() facility.
11874 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
11876 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
11878 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
11879 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
11880 method for finding zpool name.
11882 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11884 grub-fstest needs the host and hostfs modules while other utilities
11885 actively require those modules to be absent, so grub-fstest needs
11886 its own initialisation and finalisation code.
11888 * Makefile.am (grub_fstest.pp): New target.
11889 (grub_fstest_init.lst): Likewise.
11890 (grub_fstest_init.c): Likewise.
11891 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
11893 2010-09-10 Robert Millan <rmh@gnu.org>
11895 * configure.ac: Check for `struct statfs.f_fstypename' and
11896 `struct statfs.f_mntfromname'.
11898 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
11899 kFreeBSD-specific code.
11901 2010-09-10 Robert Millan <rmh@gnu.org>
11903 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
11904 on ZFS. Now non-main filesystems are supported as / too.
11906 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
11908 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
11909 and grub-core/disk/host.c to ...
11910 (grub-fstest): ... here. Having the host disk implementation
11911 present confuses grub-probe and other utility programs.
11913 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
11914 when writing to a file, not when writing to stdout.
11916 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
11918 * tests/partmap_test.in: New test for partitions.
11919 * Makefile.util.def: Rules for new test.
11921 2010-09-09 Robert Millan <rmh@gnu.org>
11923 * util/grub-probe.c (probe): Fix a pair of unhandled error
11926 2010-09-09 Robert Millan <rmh@gnu.org>
11928 Basic Btrfs support (detection and UUID).
11930 * grub-core/fs/btrfs.c: New file.
11931 * Makefile.util.def (library): Register btrfs.c.
11932 * grub-core/Makefile.core.def: Likewise.
11934 2010-09-08 Robert Millan <rmh@gnu.org>
11936 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
11937 with (optional) parameters to specify device and relative path.
11938 * util/grub-install.in: Use is_path_readable_by_grub() to
11939 verify readability of a few critical files.
11940 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
11941 verify readability of grub.cfg.new.
11943 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11945 Split minix.mod into minix.mod and minix2.mod.
11947 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
11948 * grub-core/Makefile.core.def (minix2): New module.
11949 * grub-core/fs/minix.c: Use definitions instead of runtime version
11951 * grub-core/fs/minix2.c: New file.
11953 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11955 Add new --boot-directory option to replace --root-directory
11957 * util/grub-install.in: Add new --boot-directory option
11958 * util/grub-reboot.in: Likewise.
11959 * util/grub-set-default.in: Likewise.
11961 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11963 * util/grub-mkconfig.in: Use new variable.
11965 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11967 * configure.ac: Define some useful variables.
11969 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11971 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11972 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
11973 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
11974 Use terminfo and don't use cursor-on/cursor-off unless it's known
11976 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
11977 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
11979 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
11981 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
11982 starts with "(,", fill the drive containing the loaded image in
11983 between those two characters, but expect that a full partition
11984 specification including partition map names will follow.
11986 2010-09-08 Robert Millan <rmh@gnu.org>
11988 * configure.ac: Remove `--enable-grub-fstest' option.
11989 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
11991 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
11992 `grub-fstest' instead of `grub-probe' for readability verification.
11993 * util/grub-probe.c (probe): Remove readability verification kludge.
11995 2010-09-08 Robert Millan <rmh@gnu.org>
11997 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
11998 initializing `GRUB_FS'.
12000 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
12002 Not command (!) support to GRUB script.
12004 * tests/grub_script_not.in: New test.
12005 * Makefile.util.def: Rules for new test.
12007 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
12008 ! command as a special case.
12009 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
12011 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
12013 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
12016 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
12018 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
12020 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
12022 * docs/grub.texi (Shell-like scripting): Documentation for break,
12023 continue, shift and return commands.
12025 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
12027 Rename CD-ROM to cd on BIOS.
12029 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
12031 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
12033 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12035 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
12036 * util/grub-probe.c (main): Likewise.
12037 * util/i386/pc/grub-setup.c (main): Likewise.
12038 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
12039 Reported and debugged by: alexxy
12041 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12043 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
12046 2010-09-05 Jo Shields <directhex@apebox.org>
12048 * util/grub.d/30_os-prober.in: Add missing classes.
12050 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12052 * docs/grub.texi (Theme file format): Document new position format.
12054 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12056 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
12057 a table. Use @code instead of @verbatim.
12059 2010-09-05 Colin D Bennett <colin@gibibit.com>
12061 Gfxmenu documentation.
12063 * docs/grub.texi (Theme file format): New chapter.
12065 2010-09-05 Szymon Janc <szymon@janc.net.pl>
12067 * grub-core/Makefile.core.def (xzio): New module.
12068 * grub-core/io/xzio.c: New file.
12069 * grub-core/lib/xzembed/xz.h: New file (from xembed).
12070 * grub-core/lib/xzembed/xz_config.h: Likewise.
12071 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
12072 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
12073 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
12074 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
12075 * grub-core/lib/xzembed/xz_private.h: Likewise.
12076 * grub-core/lib/xzembed/xz_stream.h: Likewise.
12077 * include/grub/file.h (grub_file_filter_id): New compression filter
12078 GRUB_FILE_FILTER_XZIO.
12080 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12082 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
12083 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
12086 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12088 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
12089 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
12091 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12093 Uncompressed checksum support.
12095 * grub-core/commands/hashsum.c (options): Add option --uncompress.
12096 (check_list): New parameter uncompress.
12097 (grub_cmd_hashsum): Handle --uncompress.
12099 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12101 Reintroduce testload.
12103 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
12105 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
12106 (GRUB_MOD_INIT): New function.
12107 (GRUB_MOD_FINI): Likewise.
12108 * grub-core/Makefile.core.def (testload): New module.
12110 2010-09-05 Szymon Janc <szymon@janc.net.pl>
12112 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
12113 (uint8_t): New type.
12114 (uint16_t): Likewise.
12115 (uint32_t): Likewise.
12116 (uint64_t): Likewise.
12118 2010-09-05 Szymon Janc <szymon@janc.net.pl>
12120 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
12122 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12124 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
12126 (grub_gzfile_open): Removed. All users updated.
12127 (GRUB_MOD_INIT): New function.
12128 (GRUB_MOD_FINI): Likewise.
12129 * grub-core/kern/file.c (grub_file_filters_all): New variable.
12130 (grub_file_filters_enabled): Likewise.
12131 (grub_file_open): Handle filters.
12132 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
12133 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
12134 * include/grub/file.h (grub_file_filter_id_t): New type.
12135 (grub_file_filter_t): Likewise.
12136 (grub_file_filters_all): New extern variable.
12137 (grub_file_filters_enabled): Likewise.
12138 (grub_file_filter_register): New inline function.
12139 (grub_file_filter_unregister): Likewise.
12140 (grub_file_filter_disable): Likewise.
12141 (grub_file_filter_disable_compression): Likewise.
12142 * include/grub/gzio.h: Removed.
12144 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12146 Filename expansion support for wildcards in GRUB script.
12148 * tests/grub_script_expansion.in: New test.
12149 * Makefile.util.def: Rule for new test.
12151 * grub-core/commands/wildcard.c: New file, implements filename
12152 expansion support for GRUB script.
12153 * grub-core/Makefile.core.def: Rule update for regexp.mod.
12154 * grub-core/script/argv.c: Cosmetic changes.
12155 * grub-core/script/execute.c (grub_script_arglist_to_argv):
12156 Refactored to perform wildcard expansion on arguments.
12157 * include/grub/script_sh.h (grub_script_wildcard_translator): New
12160 * tests/util/grub-shell.in: Fix quoting for read input.
12162 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12164 Support for updating environment variables with matched substrings
12167 * tests/grub_cmd_regexp.in: New test.
12168 * Makefile.util.def: Rule for new test.
12170 * grub-core/commands/regexp.c: New option -s to update environment
12171 variables with regexp matches.
12173 2010-09-04 Szymon Janc <szymon@janc.net.pl>
12175 * include/grub/file.h (grub_file): New member not_easly_seekable.
12176 (grub_file_seekable): New inline function.
12177 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
12179 (grub_gzio_open): Set not_easly_seekable.
12180 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
12181 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
12183 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12185 Support for options to appear multiple times on cmdline.
12187 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
12188 * grub-core/commands/extcmd.c: Support for repeatable option.
12189 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
12190 repeatable option support.
12192 Refactor menuentry into a regular command.
12194 * grub-core/commands/menuentry.c: New file, menuentry command
12196 * grub-core/Makefile.core.def: Rule update for normal.mod.
12197 * grub-core/normal/main.c: Moved menuentry creation to
12198 grub-core/commands/menuentry.c.
12199 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
12200 (grub_menu_execute_entry_real): Removed.
12201 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
12203 (grub_script_execute_menuentry): Removed.
12204 * grub-core/script/parser.y (menuentry): Removed.
12205 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
12206 * grub-core/script/yylex.l (menuentry): Removed.
12207 * include/grub/menu.h (grub_menu_init): New prototype.
12208 (grub_menu_fini): New prototype.
12209 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
12210 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
12211 (grub_script_execute_sourcecode): New prototype.
12213 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12215 "return" command for GRUB script functions.
12217 * tests/grub_script_return.in: New test.
12218 * Makefile.util.def: Rules for new test.
12220 * grub-core/script/execute.c (grub_script_return): New function.
12221 * grub-core/script/main.c: Register/unregister return commaond.
12222 * include/grub/script_sh.h (grub_script_return): New prototype.
12224 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12226 "setparams" command to update positional parameters.
12228 * tests/grub_script_setparams.in: New test.
12229 * Makefile.util.def: Rules for new test.
12231 * grub-core/script/argv.c (grub_script_argv_make): New function.
12232 * grub-core/script/execute.c (replace_scope): New function.
12233 (grub_script_setparams): New function.
12234 * grub-core/script/lexer.c: Remove unused variables.
12235 * grub-core/script/main.c: Register/unregister setparams command.
12236 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
12237 (grub_script_setparams): New prototype.
12239 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12241 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
12244 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12246 Support for passing block of commands as an argument to extcmds.
12248 * Makefile.util.def: Rules for new test.
12249 * tests/grub_script_blockarg.in: New test.
12250 * grub-core/tests/test_blockarg.c: New file, block argument
12251 command used in the test.
12253 * include/grub/extcmd.h (grub_extcmd_context): New struct.
12254 (grub_register_extcmd_prio): New function prototype.
12255 (grub_extcmd_dispatcher): New function prototype.
12256 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
12258 * include/grub/script_sh.h (struct grub_script): New members
12259 `children', `next_siblings' and `refcnt' for block arguments and
12260 reference counting.
12261 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
12262 (grub_script_arg): New member `script' for block argument.
12263 (grub_script_argv): New member `script' for block argument.
12264 (grub_parser_param): New member `scripts' for block argument.
12265 (grub_script_mem_free): New extern function prototype.
12266 (grub_script_ref): New function prototype.
12267 (grub_script_unref): New function prototype.
12269 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
12270 extcmd form to support block arguments.
12271 * grub-core/script/argv.c: Block arguments support.
12272 * grub-core/script/execute.c: Likewise.
12273 * grub-core/script/lexer.c: Likewise.
12274 * grub-core/script/main.c: Likewise.
12275 * grub-core/script/script.c: Likewise.
12276 * grub-core/script/parser.y: Likewise. New `block' and `block0'
12279 * grub-core/commands/acpi.c: Update extcmd implementations with
12280 grub_extcmd_context_t.
12281 * grub-core/commands/cat.c: Likewise.
12282 * grub-core/commands/echo.c: Likewise.
12283 * grub-core/commands/extcmd.c: Likewise.
12284 * grub-core/commands/hashsum.c: Likewise.
12285 * grub-core/commands/hdparm.c: Likewise.
12286 * grub-core/commands/help.c: Likewise.
12287 * grub-core/commands/hexdump.c: Likewise.
12288 * grub-core/commands/i386/cpuid.c: Likewise.
12289 * grub-core/commands/i386/pc/drivemap.c: Likewise.
12290 * grub-core/commands/i386/pc/halt.c: Likewise.
12291 * grub-core/commands/i386/pc/sendkey.c: Likewise.
12292 * grub-core/commands/iorw.c: Likewise.
12293 * grub-core/commands/keystatus.c: Likewise.
12294 * grub-core/commands/loadenv.c: Likewise.
12295 * grub-core/commands/ls.c: Likewise.
12296 * grub-core/commands/lspci.c: Likewise.
12297 * grub-core/commands/memrw.c: Likewise.
12298 * grub-core/commands/probe.c: Likewise.
12299 * grub-core/commands/search_wrap.c: Likewise.
12300 * grub-core/commands/setpci.c: Likewise.
12301 * grub-core/commands/sleep.c: Likewise.
12302 * grub-core/disk/loopback.c: Likewise.
12303 * grub-core/hello/hello.c: Likewise.
12304 * grub-core/loader/i386/bsd.c: Likewise.
12305 * grub-core/loader/xnu.c: Likewise.
12306 * grub-core/term/gfxterm.c: Likewise.
12307 * grub-core/term/serial.c: Likewise.
12308 * grub-core/tests/lib/functional_test.c: Likewise.
12310 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12312 Multi-line quoted strings support.
12314 * grub-core/script/lexer.c (append_newline): Removed.
12315 (grub_script_lexer_yywrap): Refactored.
12316 (grub_script_lexer_init): Refactored.
12317 * grub-core/script/yylex.l (yywrap): New function.
12318 (grub_lexer_resplit): New function.
12319 (grub_lexer_unput): New function.
12320 * include/grub/script_sh.h (grub_lexer_param): New members, unput
12322 * tests/grub_script_echo1.in: Added few more testcases.
12324 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
12326 * grub-core/kern/misc.c: Don't add abort alias in utils.
12327 Reported by: echoline.
12329 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
12331 Add missing files into "make dist" tarball for other platforms.
12333 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
12334 * conf/Makefile.common (dist_noinst_DATA): New variable.
12335 * conf/Makefile.extra-dist: Added missing make dist files.
12336 * grub-core/Makefile.core.def: Likewise.
12338 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
12340 Compress grub_prefix.
12342 * grub-core/boot/i386/pc/lnxboot.S: Use
12343 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
12344 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
12345 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
12346 GRUB_MACHINE_PREFIX_END. All users updated.
12347 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
12348 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
12350 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
12351 * util/grub-mkimage.c (image_target_desc): Change data_end to
12352 prefix_end. All users updated.
12354 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
12356 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
12358 (grub_openbsd_boot): Likewise.
12359 (grub_netbsd_boot): Likewise.
12360 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
12361 (grub_xnu_boot): Likewise.
12363 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12365 * configure.ac: Clean LIBS variable after tests.
12367 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12369 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
12371 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12373 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
12374 echo if libdevmapper will be used.
12376 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
12378 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
12379 constant for the same file.
12381 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12383 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
12385 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12387 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
12390 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12392 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
12393 required by the boot protocol.
12395 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
12396 ebp and edi members.
12397 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
12398 state.ebp and state.edi.
12399 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
12400 %ebp and %edi according to grub_relocator32_ebp and
12401 grub_relocator32_edi respectively.
12402 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
12405 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12407 Add i386-pc-pxe image target.
12409 * util/grub-mkimage.c (image_target_desc): New enum value
12411 (image_targets): New target i386-pc-pxe.
12412 (generate_image): Handle i386-pc-pxe image.
12414 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12418 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
12419 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
12421 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
12422 (grub_pxe_pxenv): Correct type.
12424 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12426 * NEWS: Document most of the important changes since 1.98.
12428 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12430 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
12431 generated manual page) a little.
12433 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12435 * docs/grub.texi: Add myself as an author.
12437 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
12439 * Makefile.util.def (libgrub.a): Add missing sunpc.
12440 Reported by: Seth Goldberg.
12442 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12444 Interrupt wrapping and code simplifications.
12446 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
12447 x86_noieee1275 which are functionaly equivalent in this case.
12448 (grub-install): Make source on each platform explicit. Enable on
12450 * gentpl.py (x86_efi_pc): Removed group.
12451 (x86_noefi): Likewise.
12452 (i386_noefi): Likewise.
12453 (x86_noieee1275): Likewise.
12454 (i386_noieee1275): Likewise.
12455 (i386_noefi_noieee1275): Likewise.
12456 (i386_pc_qemu_coreboot): Likewise.
12457 (i386_coreboot_multiboot): Likewise.
12458 (i386_pc_coreboot_multiboot_qemu): Likewise.
12459 (x86_noefi_mips): Likewise.
12460 (noieee1275): Likewise.
12461 (ieee1275_mips): Likewise.
12462 (noemu_noieee1275): Likewise.
12465 (videoinkernel): Likewise.
12466 (videomodules): Likewise.
12467 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
12468 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
12469 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
12470 include/grub/loader.h, include/grub/msdos_partition.h,
12471 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
12472 include/grub/machine/console.h, include/grub/machine/vga.h,
12473 include/grub/machine/vbe.h, include/grub/machine/init.h,
12474 include/grub/machine/kernel.h, include/grub/cpu/time.h,
12475 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
12476 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
12477 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
12478 * grub-core/Makefile.core.def (kernel): Explicit the source for
12479 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
12480 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
12481 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
12482 Use videoinkernel tag.
12483 (usb): Enable on all usb.
12484 (usbserial_common): Likewise.
12485 (usbserial_pl2303): Likewise.
12486 (usbserial_ftdi): Likewise.
12487 (uhci): Enable on all x86.
12488 (ohci): Enable on all pci.
12489 (cmostest): Enable on all CMOS.
12490 (acpi): Include commands/acpi.c on all platforms.
12491 (halt): Add relevant lib/*/halt.c.
12492 (hdparm): Enable on all pci.
12494 (usbtest): Enable on all usb.
12495 (ata): Enable on all pci.
12496 (ata_pthru): Likewise.
12497 (usbms): Enable on all usb.
12498 (usb_keyboard): Likewise.
12499 (font): Use tag videomodules.
12501 (datetime): Use tag cmos. Enable on all noemu.
12502 (mmap): Use tags common and x86.
12503 (gfxterm): Use tag videomodules.
12504 (bitmap): Likewise.
12505 (bitmap_scale): Likewise.
12506 (video_fb): Likewise.
12508 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
12509 adjust padding accordingly. All users updated.
12510 (grub_ohci_transaction): Fix bad format specification.
12511 (GRUB_MOD_INIT): Add asserts for struct size.
12512 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
12513 (grub_alloc_td): Likewise.
12514 (grub_free_queue): Likewise.
12515 (grub_uhci_transfer): Likewise.
12516 (grub_uhci_transaction): Fix bad format specification.
12517 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
12518 (grub_usb_bulk_readwrite): Likewise.
12519 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
12520 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
12522 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
12524 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
12525 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
12526 Transformed into C.
12527 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
12528 Moved from here ...
12529 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
12530 ... here. Transformed into C. Made static.
12531 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
12532 Moved from here ...
12533 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
12534 ... here. Transformed into C. Made static.
12535 * grub-core/kern/i386/pc/startup.S
12536 (grub_biosdisk_check_int13_extensions): Moved from here ...
12537 * grub-core/disk/i386/pc/biosdisk.c
12538 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
12540 * grub-core/kern/i386/pc/startup.S
12541 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
12542 * grub-core/disk/i386/pc/biosdisk.c
12543 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
12544 Transformed into C. Made static.
12545 * grub-core/kern/i386/pc/startup.S
12546 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
12547 * grub-core/disk/i386/pc/biosdisk.c
12548 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
12549 Transformed into C. Made static.
12550 * grub-core/kern/i386/pc/startup.S
12551 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
12552 * grub-core/disk/i386/pc/biosdisk.c
12553 (grub_biosdisk_get_diskinfo_standard): ... here.
12554 Transformed into C. Made static.
12555 * grub-core/kern/i386/pc/startup.S
12556 (grub_biosdisk_get_num_floppies): Moved from here ...
12557 * grub-core/disk/i386/pc/biosdisk.c
12558 (grub_biosdisk_get_num_floppies): ... here.
12559 Transformed into C. Made static.
12560 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
12562 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
12563 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
12564 Transformed into C. Made static.
12565 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
12566 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
12567 Transformed into C. Made static.
12568 * grub-core/kern/i386/ieee1275/init.c: Removed.
12569 * grub-core/kern/i386/misc.S: Likewise.
12570 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
12571 Splitted from here ...
12572 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
12573 Transformed into C. Made static. All users updated.
12574 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
12575 Transformed into C. Made static. All users updated.
12576 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
12578 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
12579 Transformed into C. Made static. All users updated.
12580 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
12582 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
12583 Transformed into C. Made static. All users updated.
12584 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
12585 Removed (replaced by C version).
12586 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
12588 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
12589 Transformed into C. Made static.
12590 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
12592 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
12593 ... here. Transformed into C.
12594 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
12596 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
12597 ... here. Transformed into C.
12598 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
12600 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
12601 ... here. Transformed into C. Made static.
12602 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
12604 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
12605 ... here. Transformed into C.
12606 * grub-core/kern/i386/pc/startup.S
12607 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
12608 * grub-core/video/i386/pc/vbe.c
12609 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
12610 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
12612 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
12613 ... here. Transformed into C.
12614 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
12616 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
12617 ... here. Transformed into C.
12618 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
12620 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
12621 ... here. Transformed into C.
12622 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
12624 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
12625 ... here. Transformed into C.
12626 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
12628 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
12629 ... here. Transformed into C. Made static.
12630 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
12632 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
12633 ... here. Transformed into C. Made static.
12634 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
12636 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
12637 ... here. Transformed into C. Made static.
12638 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
12639 pxe_rm_entry as third argument.
12640 (grub_bios_interrupt): New function.
12641 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
12642 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
12643 of calling grub_stop.
12644 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
12645 * grub-core/lib/efi/halt.c (grub_halt): ...here.
12646 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
12647 * grub-core/lib/emu/halt.c (grub_halt): ... here.
12648 * grub-core/lib/i386/halt.c: Moved from here ...
12649 * grub-core/lib/i386/halt.c: ... here.
12650 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
12651 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
12652 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
12654 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
12655 * include/grub/i386/coreboot/init.h: Removed.
12656 * include/grub/i386/multiboot/init.h: Likewise.
12657 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
12658 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
12659 * include/grub/i386/pc/int.h: New file.
12660 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
12661 (grub_pxe_scan): Removed.
12662 (grub_pxe_call): Update prototype.
12663 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
12665 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
12666 * include/grub/i386/qemu/init.h: Removed.
12667 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
12669 (grub_halt): Likewise.
12670 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
12671 (grub_reboot): Likewise.
12672 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
12673 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
12674 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
12676 2010-08-30 Robert Millan <rmh@gnu.org>
12678 * NEWS: Document addition of ZFS support in `grub-install' and
12681 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
12683 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
12686 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12688 Remove leftover embedding of font objects.
12690 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12691 * util/grub-install.in (font): Removed.
12692 * util/grub-mkimage.c (generate_image): Remove font support. All users
12695 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12697 Remove leftover embedding of font objects.
12699 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12700 * util/grub-install.in (font): Removed.
12701 * util/grub-mkimage.c (generate_image): Remove font support. All users
12704 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12706 * docs/grub.texi (Network): Fix reference to pxe_blksize.
12707 Reported by: Ian Turner
12709 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12711 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
12712 timeout to avoid indefinite boot stalling.
12714 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12716 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
12717 (grub_env_write_color_highlight): Likewise.
12719 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12721 * grub-core/normal/term.c (print_more): Return to normal and not
12722 to standard state after printing "---MORE---".
12724 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12726 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
12727 Mask out the bit 0x80 since it has other meaning that specifiing color.
12729 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12731 New relocator. Allows for more kernel support and more straightforward
12734 * Makefile.am (BOOTTARGET): New variable.
12735 (QEMU32): Likewise.
12736 (linux.init.x86_64): New target.
12737 (linux.init.i386): Likewise.
12738 (multiboot.elf): Likewise.
12739 (kfreebsd.elf): Likewise.
12740 (kfreebsd.aout): Likewise.
12741 (pc-chainloader.elf): Likewise.
12742 (pc-chainloader.bin): Likewise.
12743 (ntldr.elf): Likewise.
12744 (ntldr.bin): Likewise.
12745 (multiboot2.elf): Likewise.
12746 (kfreebsd.init.x86_64): Likewise.
12747 (kfreebsd.init.i386): Likewise.
12748 (knetbsd.init.i386): Likewise.
12749 (kopenbsd.init.i386): Likewise.
12750 (knetbsd.init.x86_64): Likewise.
12751 (kopenbsd.init.x86_64): Likewise.
12752 (linux-initramfs.i386): Likewise.
12753 (linux-initramfs.x86_64): Likewise.
12754 (kfreebsd-mfsroot.i386.img): Likewise.
12755 (knetbsd.image.i386): Likewise.
12756 (kopenbsd.image.i386): Likewise.
12757 (kopenbsd.image.x86_64): Likewise.
12758 (knetbsd.miniroot-image.i386.img): Likewise.
12759 (kfreebsd-mfsroot.x86_64.img): Likewise.
12760 (knetbsd.image.x86_64): Likewise.
12761 (knetbsd.miniroot-image.x86_64.img): Likewise.
12762 (kfreebsd-mfsroot.i386.gz): Likewise.
12763 (bootcheck-kfreebsd-i386): Likewise.
12764 (kfreebsd-mfsroot.x86_64.gz): Likewise.
12765 (bootcheck-kfreebsd-x86_64): Likewise.
12766 (knetbsd.miniroot-image.i386.gz): Likewise.
12767 (bootcheck-knetbsd-i386): Likewise.
12768 (bootcheck-kopenbsd-i386): Likewise.
12769 (bootcheck-kopenbsd-x86_64): Likewise.
12770 (knetbsd.miniroot-image.x86_64.gz): Likewise.
12771 (bootcheck-knetbsd-x86_64): Likewise.
12772 (bootcheck-linux-i386): Likewise.
12773 (bootcheck-linux-x86_64): Likewise.
12774 (bootcheck-linux16-i386): Likewise.
12775 (bootcheck-linux16-x86_64): Likewise.
12776 (bootcheck-multiboot): Likewise.
12777 (bootcheck-multiboot2): Likewise.
12778 (bootcheck-kfreebsd-aout): Likewise.
12779 (bootcheck-pc-chainloader): Likewise.
12780 (bootcheck-ntldr): Likewise.
12781 (CLEANFILES): Add new targets.
12782 (BOOTCHECKS): New variable.
12783 (.PHONY): Add bootchecks.
12784 (SUCCESSFUL_BOOT_STRING): New variable.
12785 (BOOTCHECK_TIMEOUT): Likewise.
12786 (bootcheck): New target
12787 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
12788 * configure.ac: Correct efiemu excuse.
12789 * docs/grub.texi (Supported kernels): New chapter.
12790 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
12791 include/grub/mm_private.h. Simplify inclusion of
12792 include/grub/boot.h, include/grub/loader.h
12793 and include/grub/msdos_partition.h
12794 (KERNEL_HEADER_FILES) [i386_coreboot]:
12795 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
12796 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
12797 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
12798 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
12799 include/grub/machine/loader.h.
12800 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
12801 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
12803 (pci.mod): Enable on i386-multiboot.
12804 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
12805 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
12807 (relocator.mod): Rewritten.
12808 (aout.mod): Enable on all x86.
12809 (bsd.mod): Likewise.
12810 (ntldr.mod): New module.
12811 (linux.mod): Use loader/i386/linux.c on all x86.
12812 (xnu.mod): Enable on all x86.
12813 (vga_text.mod): disable on EFI and QEMU.
12814 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
12815 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
12816 * grub-core/efiemu/loadcore.c: Likewise.
12817 * grub-core/efiemu/main.c: Likewise.
12818 (grub_efiemu_exit_boot_services): Removed.
12819 (grub_efiemu_finish_boot_services): Likewise.
12820 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
12822 * grub-core/efiemu/i386/nocfgtables.c: New file.
12823 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
12824 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
12825 (grub_efi_finish_boot_services): Moved from here ...
12826 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
12827 Fille finish memory map and related data.
12828 (finish_mmap_buf): New variable.
12829 (grub_efi_uintn_t finish_mmap_size): Likewise.
12830 (grub_efi_uintn_t finish_key): Likewise.
12831 (grub_efi_uintn_t finish_desc_size): Likewise.
12832 (grub_efi_uint32_t finish_desc_version): Likewise.
12833 (grub_efi_is_finished): Likewise.
12834 (grub_efi_get_memory_map): Use saved memory map if EFI is already
12836 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
12837 (grub_elf64_phdr_iterate): Likewise.
12838 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
12839 (grub_os_area_size): Likewise.
12840 (grub_machine_init): Don't reserve os area.
12841 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
12842 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
12843 * grub-core/kern/i386/loader.S: Removed.
12844 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
12845 (grub_os_area_size): Likewise.
12846 (grub_machine_init): Don't reserve os area.
12847 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12848 Don't call grub_dl_unload_all.
12849 Don't include loader.S.
12850 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
12851 Declare the memory after _end as available.
12852 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
12853 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
12854 (GRUB_MM_ALLOC_MAGIC): Moved from here...
12855 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
12856 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
12857 * include/grub/mm_private.h (grub_mm_header): ... here.
12858 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
12859 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
12860 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
12861 (grub_mm_region): ..here. Removed addr. Added pre_size.
12863 * grub-core/kern/mm.c (base): Renamed to ...
12864 (grub_mm_base): ... this. Made global.
12865 (grub_real_malloc): Alloc from end of region.
12866 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
12867 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
12868 * grub-core/kern/powerpc/cache_flush.S: ... here.
12869 * grub-core/lib/efi/relocator.c: New file.
12870 * grub-core/lib/i386/relocator.c: Rewritten.
12871 * grub-core/lib/i386/relocator16.S: New file.
12872 * grub-core/lib/i386/relocator32.S: Likewise.
12873 * grub-core/lib/i386/relocator64.S: Likewise.
12874 * grub-core/lib/i386/relocator_asm.S: Rewritten.
12875 * grub-core/lib/i386/relocator_common.S: New file.
12876 * grub-core/lib/ieee1275/relocator.c: Likewise.
12877 * grub-core/lib/mips/relocator.c: Rewritten.
12878 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
12879 stylistic adjustments.
12880 * grub-core/lib/powerpc/relocator.c: New file.
12881 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
12882 * grub-core/lib/relocator.c: Rewritten.
12883 * grub-core/lib/x86_64/relocator_asm.S: New file.
12884 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
12885 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
12886 (bsd_tag): New struct.
12887 (tags): New variable.
12888 (tags_last): Likewise.
12889 (netbsd_module): New struct.
12890 (netbsd_mods): New variable.
12891 (netbsd_mods_last): Likewise.
12892 (openbsd_opts): New parameter "serial".
12893 (OPENBSD_SERIAL_ARG): New definition.
12894 (netbsd_opts): New parameter "serial".
12895 (NETBSD_SERIAL_ARG): New definition.
12896 (grub_freebsd_add_meta): Reorganised into ...
12897 (grub_bsd_add_meta): ...this. All users updated.
12898 (grub_freebsd_add_mmap): Reorganised into ...
12899 (generate_e820_mmap): ...this...
12900 (grub_bsd_add_mmap): ...and this. All users updated.
12901 (grub_freebsd_list_modules): Use tags.
12902 (grub_netbsd_add_meta_module): New function.
12903 (grub_netbsd_list_modules): Likewise.
12904 (grub_freebsd_boot): Use relocator and finish EFI.
12905 (grub_openbsd_boot): Likewise.
12906 (grub_netbsd_setup_video): New function.
12907 (grub_netbsd_add_modules): Likewise.
12908 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
12910 (grub_bsd_unload): Unload tags.
12911 (grub_bsd_load_aout): Use relocator.
12912 (grub_bsd_elf32_size_hook): New function.
12913 (grub_bsd_elf32_hook): Use relocator.
12914 (grub_bsd_elf64_size_hook): New function.
12915 (grub_bsd_elf64_hook): Use relocator.
12916 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
12917 (grub_bsd_load): Zero-out openbsd_ramdisk.
12918 (grub_bsd_load): Use relocator.
12919 (grub_cmd_openbsd): Support serial.
12920 (grub_cmd_netbsd): Support modules.
12921 (grub_cmd_freebsd_module): Use relocator.
12922 (grub_netbsd_module_load): New function.
12923 (grub_cmd_netbsd_module): Likewise.
12924 (grub_cmd_openbsd_ramdisk): Likewise.
12925 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
12927 (GRUB_MOD_FINI): Unregister new commands.
12928 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
12929 (grub_freebsd_load_elfmodule_obj): Use relocator.
12930 (grub_freebsd_load_elfmodule): Likewise.
12931 (grub_freebsd_load_elf_meta): Likewise.
12932 (grub_netbsd_load_elf_meta): New function.
12933 (grub_openbsd_find_ramdisk): Likewise.
12934 * grub-core/loader/i386/bsd_helper.S: Removed.
12935 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
12936 * grub-core/loader/i386/bsd_trampoline.S: Removed.
12937 * grub-core/loader/i386/efi/linux.c: Likewise.
12938 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
12939 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
12940 (DEFAULT_VIDEO_MODE): Likewise.
12941 (real_mode_target): New variable.
12942 (prot_mode_target): Likewise.
12943 (initrd_mem_target): Likewise.
12944 (relocator): Likewise.
12945 (efi_mmap_buf): Likewise.
12946 (efi_mmap_size): Likewise.
12947 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
12948 (free_pages): Use relocator.
12949 (allocate_pages): Account for efi_mmap and use relocator. Return error.
12950 (grub_linux_setup_video): Return error.
12951 (grub_linux_trampoline_start): Removed.
12952 (grub_linux_trampoline_end): Likewise.
12953 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
12954 andd video parameters depending on firmware.
12955 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
12956 [GRUB_MACHINE_EFI]: Pass EFI parameters.
12957 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
12958 (grub_cmd_initrd): Use relocator.
12959 * grub-core/loader/i386/linux_trampoline.S: Removed.
12960 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
12961 (elf_sec_entsize): Likewise.
12962 (elf_sec_shstrndx): Likewise.
12963 (elf_sections): Likewise.
12964 (grub_multiboot_load): Use relocator.
12965 (grub_multiboot_get_mbi_size): Account for sections.
12966 (grub_multiboot_make_mbi): Use relocator and support sections.
12967 (grub_multiboot_add_elfsyms): New function.
12968 (grub_multiboot_free_mbi): Free sections.
12969 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
12970 (grub_linux_real_target): Likewise.
12971 (grub_linux_real_chunk): Likewise.
12972 (grub_linux16_prot_size): Likewise.
12973 (grub_linux16_boot): Use relocator.
12974 (grub_linux_unload): Unload relocator.
12975 (grub_cmd_linux): Use relocator.
12976 (grub_cmd_initrd): Likewise.
12977 * grub-core/loader/i386/pc/ntldr.c: New file.
12978 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
12979 Don't try to guess CPU frequency.
12980 (grub_xnu_set_video): Stretch bitmap.
12981 (grub_xnu_boot): Use relocator.
12982 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
12983 (grub_linux_unload): Free relocator.
12984 (grub_linux_load32): Use relocator.
12985 (grub_linux_load64): Likewise.
12986 (grub_cmd_initrd): Likewise.
12987 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
12988 (grub_multiboot_unload): Unload relocator.
12989 (grub_cmd_multiboot): Use relocator.
12990 (grub_cmd_module): Likewise.
12991 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
12992 Use relocator and support sections.
12993 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
12994 (elf_sec_entsize): Likewise.
12995 (elf_sec_shstrndx): Likewise.
12996 (elf_sections): Likewise.
12997 (grub_multiboot_load): Use relocator.
12998 (grub_multiboot_get_mbi_size): Account for sections.
12999 (grub_multiboot_make_mbi): Use relocator and support sections.
13000 (grub_multiboot_add_elfsyms): New function.
13001 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
13002 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
13003 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
13004 Prototype changed. All users updated.
13005 (grub_xnu_align_heap): Simplified.
13006 (grub_xnu_writetree_toheap): Likewise.
13007 (grub_xnu_unload): Unload relocator.
13008 (grub_cmd_xnu_kernel): Use relocator.
13009 (grub_cmd_xnu_kernel64): Likewise.
13010 (grub_xnu_register_memory): Simplified.
13011 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
13012 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
13014 (grub_console_checkkey): Likewise.
13015 (grub_console_getkey): Likewise.
13016 (grub_console_getwh): Likewise.
13017 (grub_console_getxy): Likewise.
13018 (grub_console_gotoxy): Likewise.
13019 (grub_console_cls): Likewise.
13020 (grub_console_setcolorstate): Likewise.
13021 (grub_console_setcursor): Likewise.
13022 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
13023 * grub-core/tests/boot/kbsd.init-i386.S: New file.
13024 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
13025 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
13026 * grub-core/tests/boot/kernel-8086.S: Likewise.
13027 * grub-core/tests/boot/kernel-i386.S: Likewise.
13028 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
13029 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
13030 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
13031 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
13032 * grub-core/tests/boot/knetbsd.cfg: Likewise.
13033 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
13034 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
13035 * grub-core/tests/boot/linux.cfg: Likewise.
13036 * grub-core/tests/boot/linux.init-i386.S: Likewise.
13037 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
13038 * grub-core/tests/boot/linux16.cfg: Likewise.
13039 * grub-core/tests/boot/multiboot.cfg: Likewise.
13040 * grub-core/tests/boot/multiboot2.cfg: Likewise.
13041 * grub-core/tests/boot/ntldr.cfg: Likewise.
13042 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
13043 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
13044 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
13046 * include/grub/dl.h (grub_dl_unload_all): Removed.
13047 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
13048 (grub_efi_finish_boot_services): Change prototype.
13049 (grub_efi_is_finished): New variable.
13050 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
13052 (grub_efiemu_finish_boot_services): Removed.
13053 (grub_machine_efiemu_init_tables): New prototype.
13054 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
13055 (grub_elf64_phdr_iterate): Likewise.
13056 * include/grub/i386/bsd.h: Include relocator.h.
13057 (freebsd_tag_header): New struct.
13058 (grub_openbsd_bios_mmap): Removed.
13059 (grub_unix_real_boot): Removed.
13060 (grub_freebsd_load_elfmodule32): Changed prototype.
13061 (grub_freebsd_load_elfmodule_obj64): Likewise.
13062 (grub_freebsd_load_elf_meta32): Likewise.
13063 (grub_freebsd_load_elf_meta64): Likewise.
13064 (grub_freebsd_add_meta): Removed.
13065 (grub_netbsd_load_elf_meta32): New prototype.
13066 (grub_netbsd_load_elf_meta64): Likewise.
13067 (grub_bsd_add_meta): Likewise.
13068 (grub_openbsd_ramdisk_descriptor): New struct.
13069 (grub_openbsd_find_ramdisk32): New prototype.
13070 (grub_openbsd_find_ramdisk64): Likewise.
13071 * include/grub/i386/coreboot/loader.h: Removed.
13072 * include/grub/i386/efi/loader.h: Likewise.
13073 * include/grub/i386/ieee1275/loader.h: Likewise.
13074 * include/grub/i386/linux.h (linux_kernel_header): Change void *
13076 * include/grub/i386/loader.h: Removed.
13077 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
13079 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
13080 (grub_phys_addr_t): New type.
13081 (grub_vtop): New inline function.
13082 (grub_map_memory): Likewise.
13083 (grub_unmap_memory): Likewise.
13084 * include/grub/i386/multiboot/loader.h: Removed.
13085 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
13086 (NETBSD_BTINFO_CONSOLE): New definition.
13087 (NETBSD_BTINFO_SYMTAB): Likewise.
13088 (NETBSD_BTINFO_MODULES): Likewise.
13089 (NETBSD_BTINFO_FRAMEBUF): Likewise.
13090 (grub_netbsd_bootinfo): New struct.
13091 (grub_netbsd_btinfo_common): Use explicit bitsize.
13092 (grub_netbsd_btinfo_mmap_entry): Removed.
13093 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
13094 (grub_netbsd_btinfo_bootdisk): New struct.
13095 (grub_netbsd_btinfo_symtab): Likewise.
13096 (grub_netbsd_btinfo_serial): Likewise.
13097 (grub_netbsd_btinfo_modules): Likewise.
13098 (grub_netbsd_btinfo_framebuf): Likewise.
13099 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
13100 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
13102 (grub_openbsd_bootargs): Use explicit bitsize.
13103 (grub_openbsd_bootarg_console): New struct.
13104 (GRUB_OPENBSD_COM_MAJOR): New definition.
13105 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
13106 * include/grub/i386/pc/efiemu.h: Removed.
13107 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
13108 * include/grub/i386/qemu/loader.h: Removed.
13109 * include/grub/i386/relocator.h: Rewritten.
13110 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
13111 * include/grub/mips/memory.h: New file.
13112 * include/grub/mips/multiboot.h: Rewritten.
13113 * include/grub/mips/relocator.h: Rewritten.
13114 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
13115 (grub_vtop): New function.
13116 (grub_map_memory): Likewise.
13117 (grub_unmap_memory): Likewise.
13118 * include/grub/misc.h (ALIGN_DOWN): New definition.
13119 * include/grub/mm.h (grub_mm_check_real): New proto.
13120 (GRUB_MM_CHECK): New definition.
13121 * include/grub/mm_private.h: New file.
13122 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
13123 (grub_multiboot_get_mbi_size): Removed.
13124 (grub_multiboot_make_mbi): Change prottype.
13125 (grub_multiboot_set_accepts_video): New proto.
13126 (grub_multiboot_add_elfsyms): Likewise.
13127 (grub_multiboot_payload_eip): New variable.
13128 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
13130 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
13132 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
13133 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
13134 * include/grub/powerpc/ieee1275/loader.h: Removed.
13135 * include/grub/powerpc/memory.h: New file.
13136 * include/grub/powerpc/relocator.h: Likewise.
13137 * include/grub/relocator.h: Likewise.
13138 * include/grub/relocator_private.h: Likewise.
13139 * include/grub/sparc64/ieee1275/loader.h: Removed.
13140 * include/grub/x86_64/memory.h: New file.
13141 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
13142 (grub_xnu_heap_malloc): Likewise.
13143 (grub_xnu_heap_real_start): Removed.
13144 (grub_xnu_heap_start): Likewise.
13145 (grub_xnu_relocator): New variable.
13146 (grub_xnu_heap_target_start): Likewise.
13147 * tests/util/grub-shell.in: Support non-pc.
13148 * util/grub-mkimage.c (image_targets): Fix multiboot target.
13150 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13152 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
13154 (grub_bidi_logical_to_visual): Check that malloc succeded.
13155 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
13157 (grub_xputs_normal): Likewise.
13159 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13161 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
13164 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13166 * grub-core/efiemu/runtime/efiemu.sh: Removed.
13168 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13170 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
13172 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13174 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
13177 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
13179 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
13181 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13183 * grub-core/normal/term.c (print_more): Fix a memory leak.
13184 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
13185 (grub_xputs_normal): Likewise.
13187 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13189 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
13190 the begining of the string
13192 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13194 * grub-core/script/script.c (grub_script_parse): Free parsed on
13197 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13199 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
13202 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13204 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
13207 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13209 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
13210 (scroll_up): Fix a memory leak.
13212 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13214 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
13217 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
13219 Handle USB pendrives exposed as floppies.
13221 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
13223 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
13224 Check for partitions on all devices.
13226 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13228 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
13229 (readkey): Likewise.
13231 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
13233 Multiple variable names support to "export" command.
13235 * normal/context.c (grub_cmd_export): "export" command supports
13236 multiple variable names.
13238 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
13240 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
13241 --target=drive output to Mach device name.
13243 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
13245 New Automake based build system for GRUB.
13247 * ABOUT-NLS: New file.
13248 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
13249 in Makefile.util.def file.
13250 * Makefile.util.def: New file. Autogen build definitions file for
13252 * conf/Makefile.common: New file. Common variables for GRUB host
13253 utils and target modules.
13254 * conf/Makefile.extra-dist: New file. Extra files for make dist.
13255 * docs/Makefile.am: New file. Automake file for docs.
13256 * gentpl.py: New file. Python script to generate Autogen
13258 * grub-core/Makefile.am: New file. GRUB target modules' rules
13259 that doesn't fit in Makefile.core.def file.
13260 * grub-core/Makefile.core.def: New file. Autogen build
13261 definitions file for GRUB target modules.
13262 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
13263 specific setjmp.S file.
13264 * po/Makefile.am: New file.
13266 * .bzrignore: New ignores.
13267 * INSTALL: New requirements, without Ruby.
13268 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
13269 * autogen.sh: Updated to invoke autogen as necessary.
13270 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
13271 and defines for Automake conditionals.
13272 * geninit.sh: Refactoring.
13274 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
13276 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
13279 * include/grub/test.h: Fix functional test modules' naming.
13280 * grub-core/tests/example_functional_test.c: Fix test module name.
13282 * util/misc.c: Hosted versions' of grub functions for libgrub.a
13283 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
13284 * util/grub-editenv.c: Likewise.
13285 * util/grub-fstest.c: Likewise.
13286 * util/grub-mkdevicemap.c: Likewise.
13287 * util/grub-mkfont.c: Likewise.
13288 * util/grub-mkimage.c: Likewise.
13289 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13290 * util/grub-probe.c: Likewise.
13291 * util/grub-script-check.c: Likewise.
13292 * util/i386/pc/grub-setup.c: Likewise.
13293 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13295 * tests/util/grub-shell.in: Fix override directory path.
13296 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
13297 * util/import_gcry.py: Create Makefile.gcry.def file instead.
13299 * util/lvm.c: Update #includes.
13300 * util/raid.c: Likewise.
13301 * util/resolve.c: Likewise.
13302 * grub-core/bus/emu/pci.c: Likewise.
13303 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
13304 * grub-core/lib/posix_wrap/string.h: Likewise.
13305 * grub-core/kern/emu/main.c: Likewise.
13307 * grub-core/gensymlist.sh: New file. Script for generating kernel
13309 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
13311 * grub-core/gentrigtables.c: Fix unused variable warnings.
13313 * Makefile.in: Removed.
13314 * conf/any-emu.rmk: Removed.
13315 * conf/common.rmk: Removed.
13316 * conf/i386-coreboot.rmk: Removed.
13317 * conf/i386-efi.rmk: Removed.
13318 * conf/i386-ieee1275.rmk: Removed.
13319 * conf/i386-multiboot.rmk: Removed.
13320 * conf/i386-pc.rmk: Removed.
13321 * conf/i386-qemu.rmk: Removed.
13322 * conf/i386.rmk: Removed.
13323 * conf/mips-yeeloong.rmk: Removed.
13324 * conf/mips.rmk: Removed.
13325 * conf/powerpc-ieee1275.rmk: Removed.
13326 * conf/sparc64-ieee1275.rmk: Removed.
13327 * conf/tests.rmk: Removed.
13328 * conf/x86-efi.rmk: Removed.
13329 * conf/x86_64-efi.rmk: Removed.
13330 * gendistlist.sh: Removed.
13331 * geninitheader.sh: Removed.
13332 * genkernsyms.sh.in: Removed.
13333 * genmk.rb: Removed.
13334 * gensymlist.sh.in: Removed.
13335 * mkinstalldirs: Removed.
13337 * grub-core/boot: ... to here.
13339 * grub-core/bus: ... to here.
13340 * commands: Moved ...
13341 * grub-core/commands: ... to here.
13343 * grub-core/disk: ... to here.
13344 * efiemu: Moved ...
13345 * grub-core/efiemu: ... to here.
13347 * grub-core/font: ... to here.
13349 * grub-core/fs: ... to here.
13350 * gencmdlist.sh: Moved ...
13351 * grub-core/gencmdlist.sh: ... to here.
13352 * genemuinit.sh: Moved ...
13353 * grub-core/genemuinit.sh: ... to here.
13354 * genemuinitheader.sh: Moved ...
13355 * grub-core/genemuinitheader.sh: ... to here.
13356 * genfslist.sh: Moved ...
13357 * grub-core/genfslist.sh: ... to here.
13358 * genhandlerlist.sh: Moved ...
13359 * grub-core/genhandlerlist.sh: ... to here.
13360 * genmoddep.awk: Moved ...
13361 * grub-core/genmoddep.awk: ... to here.
13362 * genmodsrc.sh: Moved ...
13363 * grub-core/genmodsrc.sh: ... to here.
13364 * genpartmaplist.sh: Moved ...
13365 * grub-core/genpartmaplist.sh: ... to here.
13366 * genparttoollist.sh: Moved ...
13367 * grub-core/genparttoollist.sh: ... to here.
13368 * genterminallist.sh: Moved ...
13369 * grub-core/genterminallist.sh: ... to here.
13370 * gentrigtables.c: Moved ...
13371 * grub-core/gentrigtables.c: ... to here.
13372 * genvideolist.sh: Moved ...
13373 * grub-core/genvideolist.sh: ... to here.
13374 * gettext: Moved ...
13375 * grub-core/gettext: ... to here.
13376 * gfxmenu: Moved ...
13377 * grub-core/gfxmenu: ... to here.
13378 * gnulib: Moved ...
13379 * grub-core/gnulib: ... to here.
13381 * grub-core/hello: ... to here.
13383 * grub-core/hook: ... to here.
13385 * grub-core/io: ... to here.
13387 * grub-core/kern: ... to here.
13389 * grub-core/lib: ... to here.
13390 * loader: Moved ...
13391 * grub-core/loader: ... to here.
13393 * grub-core/mmap: ... to here.
13394 * normal: Moved ...
13395 * grub-core/normal: ... to here.
13396 * partmap: Moved ...
13397 * grub-core/partmap: ... to here.
13398 * parttool: Moved ...
13399 * grub-core/parttool: ... to here.
13400 * script: Moved ...
13401 * grub-core/script: ... to here.
13403 * grub-core/term: ... to here
13404 * tests/example_functional_test.c: Moved ...
13405 * grub-core/tests/example_functional_test.c: ... to here.
13406 * tests/lib/functional_test.c: Moved ...
13407 * grub-core/tests/lib/functional_test.c: ... to here.
13408 * tests/lib/test.c: Moved ...
13409 * grub-core/tests/lib/test.c: ... to here.
13411 * grub-core/video: ... to here.
13413 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
13415 Replace --enable-grub-emu-modules with grub-emu-lite.
13417 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
13420 * include/grub/emu/misc.h (grub_emu_init): New prototype.
13421 * kern/emu/full.c: New file. For grub-emu specific initialization.
13422 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
13423 * kern/emu/main.c: Call initialization function grub_emu_init.
13425 * Makefile.in: Include grub-emu-lite in install.
13426 * commands/parttool.c: Use grub_no_autoload to differentiate
13427 between grub-emu and grub-emu-lite.
13428 * include/grub/misc.h: New variable grub_no_autoload.
13430 * conf/any-emu.rmk: New rules for grub-emu-lite.
13431 * configure.ac: Remove --enable-grub-emu-modules.
13432 * genmk.rb: Cleanup unnecessary rules.
13433 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
13435 * normal/main.c: Don't load list files on grub-emu-lite.
13436 * util/misc.c (grub_arch_sync_caches): Removed.
13438 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
13440 * kern/mips/startup.S (grub_prefix): Update comment to refer to
13441 grub-mkimage rather than grub-mkelfimage.
13442 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
13444 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
13446 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
13447 a key after CapsLock or NumLock. It's just a qemu bug.
13449 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
13451 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
13452 needed by libusb wrapper.
13454 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
13456 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
13458 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
13460 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
13461 --nounzip is passed.
13463 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
13465 USB hotunplugging and USB serial support.
13467 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
13468 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
13469 (grub_uhci_transfer): Respect timeout and set *actual.
13470 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
13471 non-standard length.
13472 (grub_usb_device_attach): Autoload modules.
13473 (GRUB_MOD_INIT): Set grub_term_poll_usb.
13474 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
13475 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
13477 (grub_usb_add_hub): Fill nports and children.
13478 (attach_root_port): Receive hub instead of controller.
13479 All users updated. Fill hub->devices.
13480 (grub_usb_root_hub): Allocate hub->devices.
13481 (detach_device): New function.
13482 (poll_nonroot_hub): Fill children and detach devices.
13483 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
13484 actual arguments. All users updated.
13485 (grub_usb_bulk_read_extended): New function.
13486 * bus/usb/serial/common.c: New file.
13487 * bus/usb/serial/ftdi.c: Likewise.
13488 * bus/usb/serial/pl2303.c: Likewise.
13489 * commands/terminal.c (handle_command): Support wildcard.
13490 * commands/usbtest.c: Output "Unknown" instead of empty string.
13491 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
13492 (usbserial_common_mod_SOURCES): New variable.
13493 (usbserial_common_mod_CFLAGS): Likewise.
13494 (usbserial_common_mod_LDFLAGS): Likewise.
13495 (pkglib_MODULES): Add usbserial_pl2303.mod.
13496 (usbserial_pl2303_mod_SOURCES): New variable.
13497 (usbserial_pl2303_mod_CFLAGS): Likewise.
13498 (usbserial_pl2303_mod_LDFLAGS): Likewise.
13499 (pkglib_MODULES): Add usbserial_ftdi.mod.
13500 (usbserial_ftdi_mod_SOURCES): New variable.
13501 (usbserial_ftdi_mod_CFLAGS): Likewise.
13502 (usbserial_ftdi_mod_LDFLAGS): Likewise.
13503 (pkglib_MODULES): Add serial.mod.
13504 (serial_mod_SOURCES): New variable.
13505 (serial_mod_CFLAGS): Likewise.
13506 (serial_mod_LDFLAGS): Likewise.
13507 * conf/i386-pc.rmk: Likewise.
13508 * conf/mips-yeeloong.rmk: Likewise.
13509 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
13510 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
13511 * disk/usbms.c (first_available_slot): New variable.
13512 (grub_usbms_attach): Don't reuse free slots due to potential cache
13514 * include/grub/serial.h: Moved to ..
13515 * include/grub/ns8250.h: ...this.
13516 * include/grub/serial.h: New file.
13517 * include/grub/term.h (grub_term_poll_usb): New variable.
13518 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
13519 readkey. All users updated.
13520 (grub_terminfo_output_state): Pass term to put.
13521 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
13522 (grub_usb_controller_dev): Add timeout and actual arguments to
13523 transfer. All users updated.
13524 (grub_usb_interface): New field detach_data.
13525 (grub_usb_device): New fields children and nports.
13526 (grub_usb_ep_type_t): New type.
13527 (grub_usb_get_ep_type): New function.
13528 (grub_usb_bulk_read_extended): Likewise.
13529 * include/grub/usbdesc.h (grub_usb_desc): New type.
13530 * include/grub/usbserial.h: New file.
13531 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
13532 * kern/term.c (grub_term_poll_usb): New variable.
13533 (grub_getkey): Call grub_term_poll_usb if set.
13534 (grub_checkkey): Likewise.
13535 (grub_getkeystatus): Likewise.
13536 * term/serial.c: Moved controller-specific parts to ...
13537 * term/ns8250.c: ... here.
13538 * term/serial.c: Mostly rewritten.
13539 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
13542 2010-08-20 Robert Millan <rmh@gnu.org>
13544 Make kFreeBSD code more generic to support ext2fs as root, ufs as
13545 a separate module and maybe other interesting combinations.
13547 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
13548 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
13549 (kfreebsd_entry): Add generic filesystem module load routine.
13550 Map GRUB `ext2' to kFreeBSD `ext2fs'.
13552 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
13554 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
13555 "numcenter" (I misunderstood the purpose of this entry).
13556 * docs/grub.texi (sendkey): Likewise.
13558 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
13560 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
13561 status flag options; simply omitting the option is equivalent and
13562 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
13563 (keysym_table): Rename "num5numlock" to "numlock".
13564 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
13565 can uniformly say that only the last of multiple `sendkey'
13566 invocations has any effect.
13567 * docs/grub.texi (sendkey): New section.
13569 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
13571 * commands/i386/pc/sendkey.c (options): Fix three typos.
13573 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13575 Implement sendkey support.
13577 * commands/i386/pc/sendkey.c: New file.
13578 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
13579 (sendkey_mod_SOURCES): New variable.
13580 (sendkey_mod_CFLAGS): Likewise.
13581 (sendkey_mod_LDFLAGS): Likewise.
13583 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
13585 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
13586 fix warnings from Autoconf.
13588 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
13590 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
13591 to avoid false positives with some assemblers that output things
13592 like "someprefix_func" as part of their output.
13594 2010-08-15 Robert Millan <rmh@gnu.org>
13596 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
13598 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
13599 grub_get_libzfs_handle() errors.
13601 2010-08-14 Robert Millan <rmh@gnu.org>
13603 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
13604 filesystem is not ZFS.
13606 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13608 Fix for misspelled color names defaulting to black/black (bug
13609 reported by Doug Nazar)
13611 * include/grub/normal.h (grub_parse_color_name_pair): Add return
13612 status to prototype.
13613 * normal/color.c (grub_parse_color_name_pair): Return failure
13615 (grub_env_write_color_normal): Ignore bad color names.
13616 (grub_env_write_color_highlight): Likewise.
13617 * normal/main.c (GRUB_MOD_INIT): Set default color names.
13619 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13621 "shift" command support to GRUB script.
13623 * include/grub/script_sh.h (grub_script_shift): New prototype.
13624 * script/execute.c (grub_script_shift): New function.
13625 * script/main.c (grub_script_init): Register shift command.
13626 (grub_script_fini): Unregister shift command.
13627 * util/grub-script-check.c (grub_script_cmd_shift): New function.
13629 * tests/grub_script_shift.in: New testcase.
13630 * conf/tests.rmk: Rules for new testcase.
13632 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13634 "continue" command support to GRUB script.
13636 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
13637 (grub_script_break): Continue support.
13638 * script/main.c (grub_script_init): Register continue command.
13639 (grub_script_fini): Unregister continue command.
13641 * tests/grub_script_continue.in: New testcase.
13642 * conf/tests.rmk: Rules for new testcase.
13644 2010-08-12 BVK Chaitanya <bvk@dbook>
13646 "break" command support to GRUB script.
13648 * conf/common.rmk: Rule updates to grub-script-check.
13649 * include/grub/misc.h (grub_min): New function.
13650 * include/grub/script_sh.h (grub_script_init): New prototype.
13651 (grub_script_fini): New prototype.
13652 (grub_script_break): New prototype.
13653 * script/main.c (grub_script_init): New function.
13654 (grub_script_fini): New function.
13655 * script/execute.c (grub_script_break): New function.
13656 * normal/main.c: Calls to grub_script_{init,fini}.
13657 * util/grub-script-check.c (grub_script_break): New function.
13659 * tests/grub_script_break.in: New testcase.
13660 * conf/tests.rmk: Rules for new test case.
13662 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13664 Function parameters support to GRUB script.
13666 * script/yylex.l (VARIABLE): Regular expression update.
13667 * script/function.c (grub_script_function_call): Moved ...
13668 * script/execute.c (grub_script_function_call): ... to here.
13669 (grub_script_execute_arglist_to_argv): Removed.
13670 (grub_script_arglist_to_argv): New function.
13671 * script/argv.c: New file.
13672 (grub_script_argv_free): New function.
13673 (grub_script_argv_next): Likewise.
13674 (grub_script_argv_append): Likewise.
13675 (grub_script_argv_split_append): Likewise.
13676 * include/grub/script_sh.h (grub_script_argv): New struct.
13677 (grub_script_argv_free): New function.
13678 (grub_script_argv_next): Likewise.
13679 (grub_script_argv_append): Likewise.
13680 (grub_script_argv_split_append): Likewise.
13682 * conf/common.rmk (normal.mod): New source script/argv.c.
13684 * tests/grub_script_echo1.in: More tests.
13685 * tests/grub_script_vars1.in: Likewise.
13686 * tests/grub_script_functions.in: New test case.
13687 * conf/tests.rmk: Rules for new testcase.
13689 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13691 Remove grub_script_cmdblock struct.
13693 * include/grub/script_sh.h: Remove grub_script_cmdblock.
13694 * script/parser.y: Likewise.
13695 * script/execute.c: Rename cmdblock suffix to cmdlist.
13696 * script/script.c: Likewise.
13697 * util/grub-script-check.c: Likewise.
13699 2010-08-11 Yves Blusseau <blusseau@zetam.org>
13701 * .bzrignore: add grub-macho2img
13703 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13705 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
13707 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13709 Remove the dump of sm712 initialisation sequence.
13711 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
13712 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
13713 (GRUB_VGA_IO_MISC_WRITE): Likewise.
13714 (GRUB_VGA_CR_*): Added many registers.
13715 (GRUB_VGA_SR_*): Likewise.
13716 (GRUB_VGA_GR_*): Likewise.
13717 (grub_vga_write_arx): New function.
13718 (grub_video_hw_config): New struct.
13719 (grub_vga_set_geometry): New function.
13720 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
13721 GRUB_PCI_CLASS_SUBCLASS_VGA.
13722 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
13723 * video/sm712.c (grub_sm712_write_reg): New function
13724 (grub_sm712_read_reg): Likewise.
13725 (grub_sm712_sr_write): Likewise.
13726 (grub_sm712_gr_write): Likewise.
13727 (grub_sm712_cr_write): Likewise.
13728 (grub_sm712_write_arx): Likewise.
13729 (grub_sm712_cr_shadow_write): Likewise.
13730 (grub_sm712_write_dda_lookup): Likewise.
13731 (grub_video_sm712_setup): Initialise the video rather then
13732 blindly replay the dump.
13733 (main) [TEST]: Add a routine to be able to compile as standalone for
13735 * video/sm712_init.c (sm712_init): Removed.
13736 (sm712_sr_seq1): New array.
13737 (sm712_sr_seq2): Likewise.
13739 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13741 * include/grub/vga.h: Add missing grub/pci.h include.
13743 2010-08-10 Yves Blusseau <blusseau@zetam.org>
13745 * util/grub-macho2img.c (main): fix typo
13747 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13749 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
13750 (grub_vga_gr_read): Likewise.
13751 (grub_vga_cr_write): Likewise.
13752 (grub_vga_cr_read): Likewise.
13753 (grub_vga_sr_write): Likewise.
13754 (grub_vga_sr_read): Likewise.
13755 (grub_vga_palette_read): Likewise.
13756 (grub_vga_palette_write): Likewise.
13757 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
13758 (grub_sm712_sr_read): New function.
13759 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
13760 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
13762 2010-08-09 Robert Millan <rmh@gnu.org>
13764 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
13765 out unused variables on non-ZFS build.
13767 2010-08-08 Robert Millan <rmh@gnu.org>
13769 Fix path generation for sub-filesystems in ZFS.
13771 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
13774 2010-08-08 Robert Millan <rmh@gnu.org>
13776 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
13778 2010-08-08 Robert Millan <rmh@gnu.org>
13780 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
13781 exist, issue a proper error message (rely on `ls' for translated
13784 2010-08-08 Robert Millan <rmh@gnu.org>
13786 Fix grub-probe invocation.
13788 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
13790 2010-08-04 Robert Millan <rmh@gnu.org>
13792 * configure.ac: Remove checks for getfsstat() and getmntany().
13793 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
13794 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
13795 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
13796 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
13797 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
13799 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
13800 via find_mount_point_from_dir() and getfsstat() / getmntany().
13802 2010-08-04 Robert Millan <rmh@gnu.org>
13804 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13805 (grub_find_zpool_from_mount_point): Merge into ...
13806 (grub_find_zpool_from_dir): ... this.
13807 * kern/emu/misc.c: Likewise.
13810 (grub_make_system_path_relative_to_its_root): Replace
13811 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
13812 with grub_find_zpool_from_dir().
13813 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
13815 2010-08-04 Robert Millan <rmh@gnu.org>
13817 Support OpenSolaris in ZFS device resolution.
13819 * configure.ac: Check for getmntany().
13820 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
13821 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
13824 2010-08-03 Robert Millan <rmh@gnu.org>
13826 Fix grub-emu build.
13828 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
13829 * include/grub/emu/misc.h: ... here.
13831 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
13832 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
13834 * util/misc.c: Remove `<grub/util/libzfs.h>'.
13835 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
13836 (grub_get_libzfs_handle): Move to ...
13837 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
13838 (grub_get_libzfs_handle): ... here.
13840 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
13842 * script/execute.c (grub_script_execute_cmdline): Check for NULL
13843 as command name case.
13845 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
13847 * disk/raid.c (insert_array): Select unique numbers for named arrays
13848 as well, for use as keys in the disk cache.
13850 2010-08-01 Robert Millan <rmh@gnu.org>
13852 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
13853 kFreeBSD device name, except on ZFS where the filesystem label is
13855 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
13856 `/boot/zfs/zpool.cache'.
13857 Set mountfrom kernel variable using ${kfreebsd_device}.
13859 2010-08-01 Robert Millan <rmh@gnu.org>
13861 Make it even harder to use uninitialized `libzfs_handle' (and
13862 make the interface a bit simpler).
13864 * include/grub/util/misc.h (grub_util_init_libzfs)
13865 (libzfs_handle): Remove.
13866 (grub_get_libzfs_handle): New prototype.
13868 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
13870 (grub_util_init_libzfs): Remove.
13871 (grub_get_libzfs_handle): New function.
13873 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
13874 grub_get_libzfs_handle() to obtain a libzfs handle instead of
13875 accessing `libzfs_handle' directly.
13877 2010-08-01 Robert Millan <rmh@gnu.org>
13879 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13880 (grub_find_zpool_from_mount_point): New function prototypes.
13882 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13883 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13885 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13886 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13887 `static' attribute.
13889 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13890 finding zpool from mount point into ...
13891 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13893 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13894 requested path is part of a ZFS pool, use
13895 grub_find_zpool_from_mount_point() to detect its filesystem name,
13896 and generate a path with `/fsname@path' syntax.
13898 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13900 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
13901 (void) rather than () so that this is a proper prototype.
13903 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13905 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
13907 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13909 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
13910 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
13912 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13914 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
13916 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13918 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
13920 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13922 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
13923 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
13924 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
13925 disable gfxpayload.
13926 (Shell-like scripting): Add real content.
13927 (Serial terminal): Suggest `terminal_input serial; terminal_output
13928 serial' rather than putting the two commands on separate lines,
13929 since console input will be inoperative after the first command.
13930 (menuentry): Document --class, --users, and --hotkey options.
13931 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
13932 Vladimir Serbinenko).
13934 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13935 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13937 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
13939 2010-08-01 Robert Millan <rmh@gnu.org>
13941 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13942 (grub_find_zpool_from_mount_point): New function prototypes.
13944 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13945 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13947 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13948 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13949 `static' attribute.
13951 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13952 finding zpool from mount point into ...
13953 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13955 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13956 requested path is part of a ZFS pool, use
13957 grub_find_zpool_from_mount_point() to detect its filesystem name,
13958 and generate a path with `/fsname@path' syntax.
13960 2010-08-01 Robert Millan <rmh@gnu.org>
13962 Prevent accidental use of uninitialized libzfs_handle.
13964 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
13965 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
13966 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
13968 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13970 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
13971 util/grub.d/10_linux.in). Fixes Debian bug #591093.
13973 2010-08-01 Robert Millan <rmh@gnu.org>
13975 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
13977 2010-07-31 Robert Millan <rmh@gnu.org>
13979 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
13981 2010-07-31 Robert Millan <rmh@gnu.org>
13983 * kern/emu/misc.c: Add missing license header.
13985 2010-07-31 Robert Millan <rmh@gnu.org>
13987 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
13989 * include/grub/util/libnvpair.h: Include `<config.h>'.
13990 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
13991 declaring libnvpair prototypes ourselves.
13992 * include/grub/util/libzfs.h: Include `<config.h>'.
13993 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
13994 declaring libzfs prototypes ourselves.
13996 (libzfs_handle): Moved to ...
13997 * include/grub/util/misc.h (libzfs_handle): ... here.
13998 Include `<grub/util/libzfs.h>'.
14000 2010-07-30 Robert Millan <rmh@gnu.org>
14002 * include/grub/emu/misc.h: Add missing license header.
14004 2010-07-30 Robert Millan <rmh@gnu.org>
14006 Enable `grub-probe -t device' resolution on ZFS.
14008 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
14009 * include/grub/util/libnvpair.h: New file.
14010 * include/grub/util/libzfs.h: New file.
14012 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
14013 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
14014 `<grub/util/libnvpair.h>'.
14015 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
14017 (find_mount_point_from_dir): New static function.
14018 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
14020 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
14021 find_root_device_from_libzfs() before ressorting to find_root_device().
14023 * include/grub/util/misc.h (grub_util_init_libzfs): New function
14025 * util/misc.c: Include `<grub/util/libzfs.h>'.
14026 (grub_util_init_libzfs): New function.
14027 [HAVE_LIBZFS] (libzfs_handle): New global variable.
14028 [HAVE_LIBZFS] (fini_libzfs): New static function.
14029 (grub_util_init_libzfs): New function.
14030 * util/grub-probe.c (main): Call grub_util_init_libzfs().
14032 2010-07-30 Robert Millan <rmh@gnu.org>
14034 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
14035 (xmalloc, xrealloc, xstrdup, xasprintf): Add
14036 `warn_unused_result' attribute.
14037 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
14038 (grub_xasprintf, grub_xvasprintf): Likewise.
14039 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
14041 2010-07-29 Robert Millan <rmh@gnu.org>
14043 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
14044 (probe): Handle `PRINT_FS_LABEL'.
14045 (main): Handle `-t fs_label'.
14047 2010-07-29 Robert Millan <rmh@gnu.org>
14049 * configure.ac: Remove grub-mkisofs checks.
14051 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
14053 * util/ieee1275/grub-install.in: Don't use empty grub_device.
14054 Reported by: Lennart Sorensen.
14056 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14058 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
14059 prior to terminal_input/terminal_output separation. It's been over 1.5
14060 years and those versions weren't widely deployed.
14062 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
14064 * disk/raid.c (insert_array): Don't count named arrays when looking
14065 for unused array numbers.
14066 Reported and tested by: Michael Guntsche.
14068 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14070 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
14071 implementation of this so that grub-emu links again, with a note
14072 that this should support hotplugging in the future.
14074 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14076 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
14078 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14080 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
14082 (grub_loopback_close): Remove empty function.
14083 (grub_loopback_dev): Remove close method.
14085 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14087 Disable EFI cursor when the EFI console becomes inactive.
14089 * term/efi/console.c (grub_efi_console_init): New function.
14090 (grub_efi_console_fini): New function.
14091 (grub_console_term_output): Register init and fini methods.
14093 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14095 * tests/util/grub-shell-tester.in: Remove bashism and declare as
14098 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14100 * disk/loopback.c (grub_loopback): Replace filename with file.
14101 (delete_loopback): Handle new semantics.
14102 (grub_cmd_loopback): Likewise.
14103 (grub_loopback_iterate): Likewise.
14104 (grub_loopback_close): Likewise.
14106 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14108 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
14110 Reported by: Tito Keitel.
14112 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14114 * docs/grub.texi (Naming convention): Document new naming convention.
14116 2010-07-20 Vadim Solomin <vadic052@gmail.com>
14117 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14119 Generate device.map in something closer to the old ordering.
14121 * util/deviceiter.c (struct device): New declaration.
14122 (compare_file_names): Rename to ...
14123 (compare_devices): ... this. Sort by kernel name in preference to
14124 the stable by-id name, but keep the latter as a fallback comparison.
14125 Update header comment.
14126 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
14127 of `struct device' rather than of plain file names.
14129 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
14131 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
14134 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14136 * commands/acpi.c (setup_common_tables): Use sizeof instead of
14138 (setv1table): Likewise.
14140 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14142 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
14143 removing the homehost if present.
14144 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
14145 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
14146 removing the homehost if present.
14147 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
14149 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
14151 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
14152 parameter. Set its pointer target to 0.
14153 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
14154 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
14155 `data_offset' value from the superblock for 1.x metadata.
14156 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
14157 data on the device.
14158 (insert_array): Record the start sector of data on the device.
14159 (grub_raid_register): Pass start_sector parameters to
14160 grub_raid_list->detect and insert_array.
14161 * include/grub/raid.h (struct grub_raid_array): Add start_sector
14163 (struct grub_raid): Add start_sector parameter to `detect'.
14165 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
14166 __attribute__ ((packed)), leaving a comment.
14167 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
14168 (grub_mdraid_detect_09): ... here and ...
14169 (grub_mdraid_detect_1x): ... here.
14171 2010-07-20 Peter Henn <peter.henn@web.de>
14173 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
14174 chunk size and disk size, which are already given as sector counts
14175 as distinct from the 0.90 units. Fetch the correct device number
14176 from the role table instead of using the table index.
14178 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
14180 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
14181 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
14182 (WriteMostly1): New macro.
14183 Set array->name to NULL for metadata format 0.90. Add support for
14184 metadata 1.x. Fix some comments.
14185 * disk/raid.c (): Add support for name based RAID arrays. Fix a
14187 * util/getroot.c (grub_util_get_grub_dev): Add support for
14188 /dev/md/name style devices.
14190 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14192 * .bzrignore: Ignore 20_linux_xen.
14194 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
14196 * util/import_unicode.py: Remove unnecessary imports.
14198 2010-07-17 Aleš Nesrsta <starous@volny.cz>
14200 Hotplugging and USB hub support.
14202 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
14203 (grub_ohci): Likewise.
14204 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
14205 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
14206 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
14207 (GRUB_OHCI_CTRL_EDS): Likewise.
14208 (GRUB_OHCI_BULK_EDS): Likewise.
14209 (GRUB_OHCI_TDS): Likewise.
14210 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
14211 (grub_ohci_ed_phys2virt): New function.
14212 (grub_ohci_virt_to_phys): Likewise.
14213 (grub_ohci_td_phys2virt): Likewise.
14214 (grub_ohci_td_virt2phys): Likewise.
14215 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
14217 (grub_ohci_find_ed): New function.
14218 (grub_ohci_alloc_td): Likewise.
14219 (grub_ohci_free_td): Likewise.
14220 (grub_ohci_free_tds): Likewise.
14221 (grub_ohci_transfer): Use previously allocated memory.
14222 (grub_ohci_portstatus): Reset status changed bit.
14223 (grub_ohci_detect_dev): Supply status changed.
14224 (grub_ohci_fini_hw): Free memory.
14225 (grub_ohci_restore_hw): Reallocate memory.
14226 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
14227 Reset status change.
14228 (grub_uhci_detect_dev): Supply status_change.
14229 * bus/usb/usb.c (attach_hooks): New var.
14230 (grub_usb_device_attach): New function.
14231 (grub_usb_register_attach_hook_class): Likewise.
14232 (grub_usb_unregister_attach_hook_class): Likewise.
14233 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
14234 (grub_usb_add_hub): Reset connection changed bit.
14235 (attach_root_port): New function.
14236 (grub_usb_root_hub): Likewise.
14237 (poll_nonroot_hub): Likewise.
14238 (grub_usb_poll_devices): Likewise.
14239 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
14240 * disk/usbms.c (grub_usbms_open): Use device hooks.
14241 (grub_usbms_iterate) :Poll devices.
14242 (grub_usbms_finddevs): Split into ...
14243 (grub_usbms_attach): ... this ...
14244 (grub_usbms_attach): ... and this.
14245 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
14247 (grub_usb_interface): New fields attached and detach_hook.
14248 (grub_usb_attach_hook_class): New type.
14249 (grub_usb_attach_desc): New struct.
14250 (grub_usb_register_attach_hook_class): New function.
14251 (grub_usb_unregister_attach_hook_class): Likewise.
14252 (grub_usb_poll_devices): Likewise.
14253 (grub_usb_device_attach): Likewise.
14254 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
14255 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
14257 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14259 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
14260 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
14261 delta determination style. Works with most NetBSD partitions too.
14263 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14265 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
14266 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
14268 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14270 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
14272 2010-07-14 Anton Blanchard <anton@samba.org>
14274 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
14277 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
14279 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
14281 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
14283 * kern/partition.c (grub_partition_check_containment): New function to
14284 check that a partition is physically contained in a parent. Since
14285 offsets are relative (and non-negative), this reduces to checking that
14286 the partition ends before its parent.
14287 (grub_partition_map_probe): Discard out-of-range sub-partitions.
14288 (grub_partition_iterate): Likewise.
14289 * include/grub/partition.h (grub_partition_map): Slightly more detailed
14291 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
14292 partitions that start before their parent, and add debug printfs.
14294 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
14296 * Makefile.in (.SUFFIX): Spell correctly, as ...
14297 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
14298 bare module name without `.mod', e.g. `test') tried to invoke a
14301 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
14303 * README: Point to the Info manual.
14305 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
14307 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
14308 2nd superblock position from partition size.
14310 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
14312 * Makefile.in (MAINTAINER_CLEANFILES): Remove
14313 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
14314 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
14317 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14319 Restructure SCSI .id handling.
14320 Reported and tested by: Aleš Nesrsta.
14322 * disk/ata.c (grub_atapi_close): Removed. All users updated.
14323 (grub_atapi_dev): Changed .name to "ata". New field .id.
14324 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
14325 (grub_usbms_dev): New field .id.
14326 * disk/scsi.c (grub_scsi_iterate): Generate name.
14327 (grub_scsi_open): Parse name.
14328 * include/grub/scsi.h (grub_make_scsi_id): New function.
14329 (grub_scsi_dev): Change iterate and open to number instead of naming
14330 busses. All users updated.
14331 (grub_scsi): Remove name. Add .bus.
14333 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14335 * commands/help.c (grub_cmd_help): Fix a typo.
14337 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14339 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
14340 Reported and tested by: Colin Watson.
14342 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14344 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
14347 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14349 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
14351 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
14353 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
14356 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14358 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
14359 and disk/raid6_recover.c.
14360 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
14361 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
14363 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14365 * term/gfxterm.c (repaint_schedulded): Rename to ...
14366 (repaint_scheduled): ... this. Update all callers.
14367 (repaint_was_schedulded): Rename to ...
14368 (repaint_was_scheduled): ... this. Update all callers.
14370 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14372 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
14373 which we expect to be handled by upper layers.
14375 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
14377 * bus/usb/usbhub.c: #include time.h header.
14379 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14381 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
14382 entry_name also for entries without stat blocks (e.g. ".."); fixes
14383 corruption of the first entry in a directory.
14385 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14387 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
14388 after setting gfxterm as the active terminal. GRUB_BACKGROUND
14389 doesn't work otherwise.
14391 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14393 * docs/grub.texi (Features): Update list of supported file systems.
14394 (GNU/Linux): Update for GRUB 2.
14395 (Serial terminal): Remove mention of --disable-serial, which was a
14396 GRUB Legacy configure option. Update instructions to use
14397 `terminal_input' and `terminal_output' rather than `terminal'.
14398 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
14399 configuration' and `Installing GRUB using grub-install'.
14400 (Menu entry editor): Update for GRUB 2.
14401 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
14402 Document new -a, -u, and -v options.
14403 (initrd): New section.
14404 (initrd16): New section.
14405 (linux): New section.
14406 (linux16): New section.
14407 (search): The `var' argument to `--set' is optional.
14408 (GRUB only offers a rescue shell): Go into a little more detail on
14411 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14413 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
14415 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14417 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
14418 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
14420 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14422 * util/i386/pc/grub-setup.c (setup): Rename prefix to
14423 install_prefix, in line with install_dos_part and install_bsd_part.
14424 Add new prefix variable, which is copied to install_prefix after
14425 comparing core.img in memory with the one read from disk in the
14426 no-embedding case, and use that rather than overwriting
14427 install_prefix immediately when installing to a partition.
14428 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
14431 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
14433 * configure.ac: Avoid == in test command, it's not portable.
14434 * util/grub.d/30_os-prober.in: Likewise.
14436 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
14438 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
14440 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
14442 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
14443 multiple (top-level) partmaps.
14445 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14447 * util/i386/efi/grub-install.in: Don't use empty grub_device.
14448 Reported by: Tino Keitel.
14450 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14452 Bidi and diacritics support.
14454 * Makefile.in (widthspec.bin): New target.
14455 (widthspec.h): Likewise.
14456 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
14457 * autogen.sh: Generate unidata.c.
14458 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
14459 * commands/ls.c (grub_ls_list_devices): Likewise.
14460 (grub_ls_list_files): Likewise.
14461 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
14462 (grub_mini_cmd_lsmod): Likewise.
14463 * commands/read.c: Likewise.
14464 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
14465 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
14466 * lib/arg.c (grub_arg_show_help): Likewise.
14467 * lib/crypto.c (grub_password_get): Likewise.
14468 * normal/auth.c (grub_username_get): Likewise.
14469 * normal/misc.c (grub_normal_print_device_info): Likewise.
14470 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
14471 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
14472 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
14473 (normal/charset.c_DEPENDENCIES): New variable.
14474 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
14475 (pkglib_MODULES): Remove charset.mod.
14476 (charset_mod_SOURCES): Removed.
14477 (charset_mod_CFLAGS): Likewise.
14478 (charset_mod_LDFLAGS): Likewise.
14479 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
14480 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
14482 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14483 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14484 (kernel_img_HEADERS): Add terminfo.h.
14485 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
14486 Fill ->font. Reverse ascii bitmaps.
14487 (grub_font_get_xheight): New function.
14488 * font/font.c (grub_font_get_string_width): Moved from here ...
14489 * gfxmenu/font.c (grub_font_get_string_width): ... here.
14490 * font/font.c (grub_font_draw_string): Moved from here ...
14491 * gfxmenu/font.c (grub_font_draw_string): ... here.
14492 * font/font.c (grub_font_dup_glyph): New function.
14493 (grub_font_blit_glyph): Likewise.
14494 (grub_font_blit_glyph_mirror): Likewise.
14495 (blit_comb): Likewise.
14496 (grub_font_construct_dry_run): Likewise.
14497 (grub_font_get_constructed_device_width): Likewise.
14498 (grub_font_construct_glyph): Likewise.
14499 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
14500 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
14501 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
14502 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
14503 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
14504 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
14505 (grub_font_get_xheight): New proto.
14506 (grub_font_get_constructed_device_width): Likewise.
14507 (grub_font_construct_glyph): Likewise.
14508 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
14509 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
14510 * include/grub/font.h (grub_font_draw_string): Moved from here ...
14511 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
14512 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
14513 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
14514 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
14515 (grub_console_getcharwidth): Likewise.
14516 * include/grub/misc.h (grub_xputs): New proto.
14517 (grub_puts): Inlined.
14518 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
14519 (grub_normal_get_line_counter): Removed.
14520 (grub_install_newline_hook): Likewise.
14521 (grub_normal_get_char_counter): New proto.
14522 (grub_normal_reset_more): Likewise.
14523 (grub_xputs_normal): Likewise.
14524 * include/grub/powerpc/ieee1275/console.h: Removed.
14525 * include/grub/sparc64/ieee1275/console.h: Likewise.
14526 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
14527 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
14528 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
14529 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
14530 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
14531 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
14532 (grub_term_input): Pass reference to self. All users updated.
14533 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
14534 Pass reference to self. New fields normal_color, highlight_color and
14535 data. All users updated.
14536 (grub_putchar): Removed.
14537 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
14538 (grub_unicode_estimate_width): New function.
14539 (grub_term_getcharwidth): Add defaults.
14540 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
14541 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
14542 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
14543 (grub_cls): Remove EXPORT_FUNC.
14544 (grub_setcolorstate): Inline.
14545 (grub_newline_hook): Removed.
14546 * include/grub/terminfo.h: Rewritten. All users updated.
14547 * include/grub/unicode.h: New file.
14548 * include/grub/video.h (grub_video_signed_rect): New type.
14549 * kern/emu/console.c (grub_console_highlight_color): Removed.
14550 (grub_console_normal_color): Likewise.
14551 (grub_console_standard_color): Made static.
14552 (grub_ncurses_putchar): Remove mapping.
14553 (grub_ncurses_getcharwidth): Removed.
14554 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
14555 (grub_ncurses_setcolor): Removed.
14556 (grub_ncurses_getcolor): Likewise.
14557 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
14558 (grub_console_putchar): ... this.
14559 (grub_console_putchar): Handle argument difference.
14560 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
14561 console_init_early and console_init_lately.
14562 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
14563 * kern/misc.c (grub_puts): Removed.
14564 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
14565 (grub_vsnprintf_real): Remove str = NULL support.
14566 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
14567 * normal/charset.c (grub_utf8_to_ucs4): ... here.
14568 * kern/term.c (grub_putcode): Renamed to ...
14569 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
14570 (grub_putchar): Removed.
14571 (grub_xputs_dumb): New function.
14572 (grub_xputs): New variable.
14573 * lib/charset.c: Move from here ...
14574 * normal/charset.c: ... to here.
14575 (grub_ucs4_to_utf8): New function.
14576 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
14577 (join_types): New variable.
14578 (unpack_join): New function.
14579 (bidi_types): New variable.
14580 (unpack_bidi): New function.
14581 (get_bidi_type): Likewise.
14582 (get_join_type): Likewise.
14583 (is_mirrored): Likewise.
14584 (grub_unicode_get_comb_type): Likewise.
14585 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
14586 (is_type_after): Likewise.
14587 (grub_unicode_aglomerate_comb): Likewise.
14588 (bidi_line_wrap): Likewise.
14589 (grub_bidi_line_logical_to_visual): Likewise.
14590 (grub_bidi_logical_to_visual): Likewise.
14591 (grub_unicode_mirror_code): Likewise.
14592 (grub_unicode_shape_code): Likewise.
14593 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
14594 Don't use grub_putchar.
14595 * normal/main.c (grub_normal_init_page): Use grub_putcode.
14596 (grub_normal_reader_init): Likewise.
14597 (grub_xputs_saved): New variable.
14598 (GRUB_MOD_INIT): Set grub_xputs.
14599 (GRUB_MOD_FINI): Restore grub_xputs.
14600 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
14601 (menu_init): Avoid printing gfxmenu error.
14602 (show_menu): Use grub_normal_get_char_counter.
14603 * normal/menu_entry.c (update_screen): Fix out-of-array.
14604 (complete): Avoid NULL dereferencing.
14605 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
14606 * normal/menu_text.c (print_spaces): Removed.
14607 (grub_print_ucs4): Likewise.
14608 (grub_print_message_indented): Use grub_print_ucs4.
14609 (print_message): Use grub_putcode.
14610 (print_entry): Hanlde diacritics.
14611 * normal/term.c (term_state): New type.
14612 (grub_more_lines): Removed.
14613 (term_states): New variable.
14614 (grub_normal_line_counter): Renamed to ..
14615 (grub_normal_char_counter): ...this. All users updated.
14616 (grub_normal_get_line_counter): Renamed to ...
14617 (grub_normal_get_char_counter): ... this.
14618 (grub_normal_reset_more): New function.
14619 (process_newline): Removed.
14620 (print_more): New function.
14621 (grub_install_newline_hook): Removed.
14622 (map_code): New function.
14623 (grub_puts_terminal): Use grub_print_ucs4.
14624 (putglyph): New function.
14625 (putcode_real): Likewise.
14626 (grub_putcode): Use putcode_real.
14627 (get_maxwidth): New function.
14628 (get_startwidth): Likewise.
14629 (print_ucs4_terminal): Likewise.
14630 (find_term_state): Likewise.
14631 (put_glyphs_terminal): Likewise.
14632 (print_backlog): Likewise.
14633 (print_ucs4_real): Likewise.
14634 (grub_print_ucs4): Likewise.
14635 (grub_xputs_normal): Likewise.
14636 * term/efi/console.c (grub_console_putchar): Output diacritics.
14637 (grub_console_getcharwidth): Removed.
14638 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14639 * term/gfxterm.c (clear_char): Free chars.
14640 (scroll_up): Avoid leaking memory.
14641 (grub_gfxterm_putchar): Support diacritics.
14642 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14643 * term/i386/pc/console.c (grub_console_term_output): Declare as
14644 GRUB_TERM_CODE_TYPE_VGA.
14645 * term/i386/pc/vga.c (grub_vga_term): Declare as
14646 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
14647 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
14648 GRUB_TERM_CODE_TYPE_VGA.
14649 * term/i386/vga_common.c (map_char): Removed.
14650 (grub_console_putchar): Likewise.
14651 (grub_console_getcharwidth): Likewise.
14652 * term/ieee1275/ofconsole.c: Simplify using terminfo.
14653 (colors): Reordered to match terminfo.
14654 (grub_ofconsole_normal_color): Removed.
14655 (grub_ofconsole_writeesc): Likewise.
14656 (grub_ofconsole_highlight_color): Likewise.
14657 (grub_ofconsole_getcharwidth): Likewise.
14658 (grub_ofconsole_setcolorstate): Likewise.
14659 (grub_ofconsole_setcolor): Likewise.
14660 (grub_ofconsole_getcolor): Likewise.
14661 (grub_ofconsole_readkey): Renamed to ...
14662 (readkey): ... this. Remove escape sequence handling. Return -1 on no
14664 (grub_ofconsole_checkkey): Removed.
14665 (grub_ofconsole_getkey): Likewise.
14666 (grub_ofconsole_getxy): Likewise.
14667 (grub_ofconsole_gotoxy): Likewise.
14668 (grub_ofconsole_cls): Likewise.
14669 (grub_ofconsole_refresh): Likewise.
14670 (grub_ofconsole_terminfo_input): New struct.
14671 (grub_ofconsole_terminfo_output): Likewise.
14672 (grub_ofconsole_term_input): Use terminfo.
14673 (grub_ofconsole_term_output): Likewise.
14674 (grub_console_init): Split into ...
14675 (grub_console_init_early): ...this and ...
14676 (grub_console_init_lately): ...this. Use terminfo.
14677 (grub_ofconsole_putchar): Renamed to ...
14678 (put): ... this. Remove mapping.
14679 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
14680 * term/serial.c: Simplify using terminfo.
14683 (keep_track): Likewise.
14684 (registered): Likewise.
14685 (input_buf): Likewise.
14686 (npending): Likewise.
14687 (serial_translate_key_sequence): Likewise.
14688 (fill_input_buf): Likewise.
14689 (grub_serial_checkkey): Likewise.
14690 (grub_serial_getkey): Likewise.
14691 (grub_serial_getxy): Likewise.
14692 (grub_serial_gotoxy): Likewise.
14693 (grub_serial_putchar): Likewise.
14694 (grub_serial_cls): Likewise.
14695 (grub_serial_setcolorstate): Likewise.
14696 (grub_serial_setcursor): Likewise.
14697 (serial_hw_init): Use serial_hw_fetch.
14698 (grub_serial_terminfo_input): New variable.
14699 (grub_serial_terminfo_output): Likewise.
14700 (grub_serial_term_input): Use terminfo.
14701 (grub_serial_term_output): Likewise.
14702 * term/terminfo.c (putstr): Use put.
14703 (grub_terminfo_all_free): New function
14704 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
14705 (grub_terminfo_output_register): New function.
14706 (grub_terminfo_output_unregister): Likewise.
14707 (grub_terminfo_getxy): Likewise.
14708 (grub_terminfo_readkey): Likewise.
14709 (grub_terminfo_checkkey): Likewise.
14710 (grub_terminfo_getkey): Likewise.
14711 (grub_terminfo_input_init): Likewise.
14712 (print_terminfo): Likewise.
14713 (grub_cmd_terminfo): Handle encoding.
14714 (grub_terminfo_gotoxy): Track position.
14715 (grub_terminfo_cls): Likewise.
14716 (grub_terminfo_putchar): Likewise.
14717 (grub_terminfo_setcolorstate): Handle colors
14718 (grub_terminfo_cursor_on): This ...
14719 (grub_terminfo_cursor_off): ... and this merged into ...
14720 (grub_terminfo_setcursor): ... this.
14721 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
14722 * unicode/ArabicShaping.txt: New file (imported from Unicode).
14723 * unicode/BidiMirroring.txt: Likewise.
14724 * unicode/UnicodeData.txt: Likewise.
14725 * unicode/COPYING: Likewise.
14726 * util/grub-editenv.c (grub_putchar): Removed.
14727 (grub_xputs_real): New function.
14728 (grub_xputs): New variable.
14729 * util/grub-fstest.c (grub_putchar): Removed.
14730 (grub_xputs_real): New function.
14731 (grub_xputs): New variable.
14732 * util/grub-mkdevicemap.c (grub_putchar): Removed.
14733 (grub_xputs_real): New function.
14734 (grub_xputs): New variable.
14735 * util/grub-probe.c (grub_putchar): Removed.
14736 (grub_xputs_real): New function.
14737 (grub_xputs): New variable.
14738 * util/grub-script-check.c (grub_putchar): Removed.
14739 (grub_xputs_real): New function.
14740 (grub_xputs): New variable.
14741 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
14742 (grub_xputs_real): New function.
14743 (grub_xputs): New variable.
14744 * util/import_unicode.py: New file.
14745 * util/grub-mkfont.c (ft_errmsgs): New array.
14746 (grub_glyph_info): Make bitmap a pointer.
14747 (file_formats): New type WIDTH_SPEC.
14748 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
14749 (options): Add width-spec.
14751 (add_char): Renamed to ...
14752 (add_glyph): ... this.
14753 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
14754 (glyph_replace): New type.
14755 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
14756 (add_char): New function.
14757 (add_subst): Likewise.
14758 (process_cursive): Likewise.
14759 (add_font): Handle GSUB.
14760 (write_font_width_spec): New function.
14761 (main): Sort glyphs.
14762 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
14763 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
14764 * kern/term.c (grub_cls): Moved from here...
14765 * normal/term.c (grub_cls): ... here.
14767 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14769 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
14770 suitable for using within the format argument of printf when
14771 converting grub_size_t.
14772 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
14773 "x" to convert grub_size_t arguments.
14775 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14777 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
14779 (list_get_minimal_size): Take selection box into account.
14781 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14783 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
14786 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14788 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
14789 devices when iterating over /dev/disk/by-id; they will be handled
14790 later if appropriate, which they aren't always (e.g. LVM).
14792 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14794 * include/grub/misc.h (grub_reboot): Declare as noreturn.
14795 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
14797 (grub_halt): Likewise.
14798 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
14800 (grub_halt): Don't return, even if all of shut-down, power-off, and
14803 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14805 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
14806 arguments, not three.
14808 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14810 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
14811 * util/grub.d/10_linux.in: Use it to check for LVM, so that
14812 LVM-on-RAID is handled correctly.
14814 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14816 * docs/grub.texi (Changes from GRUB Legacy): New section.
14817 (Future): Fix typo.
14819 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14821 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
14822 grub.d/README accidentally ends up executable for one reason or
14823 another. Ignore it.
14825 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14827 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
14828 (gpt_partition_map_iterate): Support non-512B sectors.
14830 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14832 * kern/efi/init.c (grub_efi_init): Disable watchdog.
14833 Tested by: Seth Goldberg.
14835 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14837 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
14838 Properly align mbi.
14839 Reported by: Seth Goldberg.
14841 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14843 * util/grub-mkrescue.in: Avoid module duplication.
14845 2010-07-01 Sean Finney <seanius@seanius.net>
14847 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
14849 2010-07-01 Sean Finney <seanius@seanius.net>
14851 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
14853 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14855 * disk/lvm.c (grub_lvm_checkvalue): New function.
14856 (grub_lvm_check_flag): Likewise.
14858 2010-07-01 Robert Millan <rmh@gnu.org>
14860 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
14861 Support 'p' as partition separator on kernel of FreeBSD (used
14863 (grub_util_biosdisk_get_grub_dev): Likewise.
14865 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14867 Yeeloong firmware port.
14869 * boot/mips/yeeloong/fwstart.S: New file.
14870 * bus/cs5536.c (gpiodump): New const.
14871 (set_io_space): New function.
14872 (set_iod): Likewise.
14873 (set_p2d): Likewise.
14874 (grub_cs5536_init_geode): Likewise.
14875 * commands/mips/yeeloong/lsspd.c: New file.
14876 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
14877 (serial_mod_SOURCES): New variable.
14878 (serial_mod_CFLAGS): Likewise.
14879 (serial_mod_LDFLAGS): Likewise.
14880 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
14881 term/terminfo.c and term/tparm.c.
14882 (pkglib_IMAGES): Add fwstart.img.
14883 (fwstart_img_SOURCES): New variable.
14884 (fwstart_img_CFLAGS): Likewise.
14885 (fwstart_img_ASFLAGS): Likewise.
14886 (fwstart_img_LDFLAGS): Likewise.
14887 (fwstart_img_FORMAT): Likewise.
14888 (pkglib_MODULES): Add lsspd.mod.
14889 (lsspd_mod_SOURCES): New variable.
14890 (lsspd_mod_CFLAGS): Likewise.
14891 (lsspd_mod_LDFLAGS): Likewise.
14892 (pkglib_MODULES): Add halt.mod.
14893 (halt_mod_SOURCES): New variable.
14894 (halt_mod_CFLAGS): Likewise.
14895 (halt_mod_LDFLAGS): Likewise.
14896 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
14897 (serial_mod_SOURCES): Removed.
14898 (serial_mod_CFLAGS): Likewise.
14899 (serial_mod_LDFLAGS): Likewise.
14900 * disk/ata.c (check_device): New function.
14901 (grub_ata_device_initialize): Use check_device.
14902 (grub_ata_iterate): Recheck devices.
14903 (grub_ata_open): Likewise.
14904 (grub_atapi_iterate): Likewise.
14905 (grub_atapi_open): Likewise.
14906 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
14907 (GRUB_ATA_CH1_PORT1): Likewise.
14908 (GRUB_ATA_CH0_PORT2): Likewise.
14909 (GRUB_ATA_CH1_PORT2): Likewise.
14910 * include/grub/mips/loongson.h: New file.
14911 * include/grub/mips/yeeloong/ec.h: Likewise.
14912 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
14913 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
14914 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
14915 * include/grub/misc.h (grub_halt): Declare as noreturn.
14916 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
14917 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
14918 (UART_ENABLE_FIFO_TRIGGER1): New definition.
14919 (UART_ENABLE_DTRRTS): Likewise.
14920 (UART_ENABLE_MODEM): Removed.
14921 (UART_ENABLE_OUT2): New const.
14922 * include/grub/term.h (grub_term_register_input_active): New function.
14923 (grub_term_register_output_active): Likewise.
14924 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
14926 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
14927 (init_pci): New function.
14928 (grub_machine_init): Execute platform init when firmware. Init serial.
14929 (grub_halt): Implement.
14930 (grub_exit): Likewise.
14931 (grub_reboot): Likewise.
14932 * term/serial.c (serial_hw_init): Update macros.
14933 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
14934 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
14935 (image_targets): New target mipsel-yeeloong-flash.
14936 (generate_image): Support IMAGE_YEELOONG_FLASH.
14937 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
14938 (grub_video_sm712_setup): Init card.
14939 (grub_video_sm712_set_palette): Removed.
14940 * video/sm712_init.c: New file.
14942 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
14944 * Makefile.in (install-local): Temporarily prepend $(builddir) to
14945 PATH when running help2man and then run it on the unadorned
14946 executable names, rather than passing $(builddir)/* paths to
14947 help2man. This avoids the build directory ending up in generated
14950 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14952 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
14953 to avoid accidents when debugging with 'sh -x'.
14954 * util/grub-mkrescue.in: Likewise.
14955 * util/grub.d/00_header.in: Likewise.
14956 * util/grub.d/10_hurd.in: Likewise.
14957 * util/grub.d/10_kfreebsd.in: Likewise.
14958 * util/grub.d/10_linux.in: Likewise.
14959 * util/grub.d/10_netbsd.in: Likewise.
14960 * util/grub.d/10_windows.in: Likewise.
14961 * util/grub.d/20_linux_xen.in: Likewise.
14962 * util/grub.d/30_os-prober.in: Likewise.
14963 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14965 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14967 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
14968 last character in the buffer.
14969 Reported by: Vladimir Serbinenko.
14971 2010-06-29 Robert Millan <rmh@gnu.org>
14973 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
14974 (Command-line and menu entry commands): Document `badram' command.
14976 2010-06-28 Robert Millan <rmh@gnu.org>
14978 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
14979 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
14980 command using ${GRUB_BADRAM} as parameter.
14982 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14984 * docs/grub.texi (Device map): New section.
14985 (Themes): New section (stub).
14986 * Makefile.in (docs/grub.info): The info documentation now builds
14987 without errors. Make sure it stays that way.
14989 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14991 Use normal parser for menu entries.
14992 Reported by: Thomas Frauendorfer
14994 * include/grub/parser.h (grub_parser_execute): Don't export.
14995 * normal/menu.c (grub_menu_execute_entry_real): New function.
14996 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
14998 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
15000 * docs/grub.texi (Embedded configuration): New section (replacing
15001 old "Preset Menu" stub).
15002 (Images): New section.
15003 (configfile): Note that any menu entries defined in `file' are shown
15006 2010-06-28 Josh Triplett <josh@joshtriplett.org>
15008 * mmap/i386/pc/mmap_helper.S: Set CF on return.
15010 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
15012 * util/grub-install.in: Add --debug-image= option.
15014 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
15016 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
15019 * util/deviceiter.c (check_device): Rename to ...
15020 (check_device_readable_unique): ... this. Update all callers.
15021 Maintain and check a list of which devices (by canonicalized name)
15022 have already been seen.
15023 (clear_seen_devices): New function.
15024 (compare_file_names) [__linux__]: New function.
15025 (grub_util_iterate_devices): Clear the list of seen devices on exit
15026 and (just in case) on entry.
15027 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
15028 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
15029 seen-devices list, superseded by general code in check_device.
15031 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
15033 * commands/cat.c (options): New variable.
15034 (grub_cmd_cat): Parse options. If the --dos option is given, print
15035 DOS-style "\r\n" line endings as simple newlines (Debian bug
15037 (GRUB_MOD_INIT): Use extcmd.
15038 (GRUB_MOD_FINI): Likewise.
15039 * docs/grub.texi (cat): Document --dos.
15041 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
15043 XEN with Linux grub-mkconfig support.
15045 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
15046 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
15047 GRUB_CMDLINE_XEN_DEFAULT.
15048 * util/grub.d/20_linux_xen.in: New file.
15050 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
15052 Initialise VGA video on qemu ourselves.
15054 * boot/i386/qemu/boot.S: Don't call 0xc000.
15055 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
15056 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
15057 (kernel_img_HEADERS): Add pci.h.
15058 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
15059 * configure.ac: Force unifont on qemu and yeeloong.
15060 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
15061 (grub_vga_palette_write): Use correct register.
15062 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
15063 Call grub_qemu_init_cirrus.
15064 * kern/i386/qemu/init.c: New file.
15065 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
15067 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
15069 2010-06-26 Pavel Roskin <proski@gnu.org>
15071 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
15074 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
15076 * docs/grub.texi (Simple configuration): Explain that
15077 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
15078 set to `true' to disable their respective recovery entries, not
15081 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
15083 Make the `source' command slightly faster.
15085 * normal/main.c (grub_normal_execute): Don't re-read list files when
15088 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
15090 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
15091 field position and mask size to red fields from mode_info, not
15093 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
15094 Remove redundant tag->common.framebuffer_type assignment.
15095 Reported by: Seth Goldberg.
15097 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
15099 Sync up other versions of the Linux loader with Robert Millan's
15100 change of 2010-01-09, "Make loader output a bit more user-friendly".
15102 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
15104 (grub_cmd_linux): Likewise.
15105 (grub_cmd_initrd): Likewise.
15106 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
15107 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15109 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
15111 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
15112 larger than MEMORY_MAP_SIZE.
15114 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
15116 Fix parallel build.
15118 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
15120 * script/parser.y: #include grub_script.tab.h header.
15122 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15124 Support >3GiB and <16MiB RAM in i386-qemu.
15126 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
15127 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
15128 (grub_lower_mem): Removed.
15129 (grub_upper_mem): Likewise.
15130 (mem_size): Made static.
15131 (above_4g): New variable.
15132 (grub_machine_mmap_init): Detect small mem_size and above_4g.
15133 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
15136 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15138 Cirrus 5446 and Bochs video cards support.
15140 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
15142 (video_cirrus_mod_SOURCES): New variable.
15143 (video_cirrus_mod_CFLAGS): Likewise.
15144 (video_cirrus_mod_LDFLAGS): Likewise.
15145 (video_bochs_mod_SOURCES): Likewise.
15146 (video_bochs_mod_CFLAGS): Likewise.
15147 (video_bochs_mod_LDFLAGS): Likewise.
15148 * include/grub/vga.h: New file.
15149 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
15150 (grub_video_fb_set_page_t): New type.
15151 (grub_video_fb_setup): New prototype.
15152 (grub_video_fb_swap_buffers): Likewise.
15153 (grub_video_fb_get_info_and_fini): Likewise.
15154 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
15155 (CRTC_DATA_PORT): Likewise.
15156 (CRTC_CURSOR): Likewise.
15157 (CRTC_CURSOR_ADDR_HIGH): Likewise.
15158 (CRTC_CURSOR_ADDR_LOW): Likewise.
15159 (CRTC_CURSOR_DISABLE): Likewise.
15160 (update_cursor): Use grub_vga_cr_write.
15161 (grub_vga_text_setcursor): Likewise.
15162 * video/bochs.c: New file.
15163 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
15164 (palette): Likewise.
15165 (palette_size): Likewise.
15166 (framebuffer): New variable.
15167 (grub_video_fb_init): Use 'framebuffer'.
15168 (grub_video_fb_fini): Likewise.
15169 (grub_video_fb_get_info): Likewise.
15170 (grub_video_fb_get_palette): Likewise.
15171 (grub_video_fb_set_palette): Likewise.
15172 (grub_video_fb_set_viewport): Likewise.
15173 (grub_video_fb_get_viewport): Likewise.
15174 (grub_video_fb_map_color): Likewise.
15175 (grub_video_fb_map_rgb): Likewise.
15176 (grub_video_fb_map_rgba): Likewise.
15177 (grub_video_fb_unmap_color): Likewise.
15178 (grub_video_fb_unmap_color_int): Likewise.
15179 (grub_video_fb_fill_rect): Likewise.
15180 (grub_video_fb_blit_bitmap): Likewise.
15181 (grub_video_fb_blit_render_target): Likewise.
15182 (grub_video_fb_scroll): Likewise.
15183 (grub_video_fb_create_render_target): Likewise.
15184 (grub_video_fb_doublebuf_blit_init): Likewise.
15185 (grub_video_fb_set_active_render_target): Handle doublebuffering.
15186 (doublebuf_pageflipping_update_screen): New function.
15187 (doublebuf_pageflipping_init): Likewise.
15188 (grub_video_fb_setup): Likewise.
15189 (grub_video_fb_swap_buffers): Likewise.
15190 (grub_video_fb_get_info_and_fini): Likewise.
15191 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
15193 (doublebuf_pageflipping_commit): Restructured into ...
15194 (doublebuf_pageflipping_set_page): ... this.
15195 (doublebuf_pageflipping_update_screen): Removed.
15196 (doublebuf_pageflipping_init): Likewise.
15197 (double_buffering_init): Likewise.
15198 (grub_video_vbe_setup): Use grub_video_fb_setup.
15199 (grub_video_vbe_swap_buffers): Removed.
15200 (grub_video_vbe_set_active_render_target): Likewise.
15201 (grub_video_vbe_get_active_render_target): Likewise.
15202 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
15203 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
15204 grub_video_fb_set_active_render_target and
15205 grub_video_fb_get_active_render_target.
15206 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
15207 (SEQUENCER_DATA_PORT): Likewise.
15208 (MAP_MASK_REGISTER): Likewise.
15209 (CRTC_ADDR_PORT): Likewise.
15210 (CRTC_DATA_PORT): Likewise.
15211 (START_ADDR_HIGH_REGISTER): Likewise.
15212 (START_ADDR_LOW_REGISTER): Likewise.
15213 (GRAPHICS_ADDR_PORT): Likewise.
15214 (GRAPHICS_DATA_PORT): Likewise.
15215 (READ_MAP_REGISTER): Likewise.
15216 (INPUT_STATUS1_REGISTER): Likewise.
15217 (INPUT_STATUS1_VERTR_BIT): Likewise.
15218 (get_map_mask): Use grub_vga_sr_read.
15219 (set_map_mask): Use grub_vga_sr_write.
15220 (set_read_map): Use grub_vga_gr_write.
15221 (set_start_address): Use grub_vga_cr_write.
15222 * video/sm712.c (framebuffer): Remove leftover fields.
15224 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
15226 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
15227 setting GRUB_VIDEO_BACKEND. Make it available as a user override
15228 instead. Replace the gfxterm backend check with a check that
15229 ${GRUB_PREFIX}/video.lst is non-empty.
15230 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
15232 (load_video): New generated function. Call it before loading
15233 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
15234 * util/grub.d/10_linux.in (linux_entry): Call load_video.
15235 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
15236 * docs/grub.texi (Simple configuration): Document
15237 GRUB_VIDEO_BACKEND.
15239 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15241 Use video functions in linux and xnu loaders.
15243 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
15244 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
15245 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
15246 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
15247 loader/i386/pc/linux.c.
15248 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
15249 (find_line_len): Removed.
15250 (find_framebuf): Likewise.
15251 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
15252 * loader/i386/efi/xnu.c: Removed.
15253 * loader/i386/pc/xnu.c: Moved from here...
15254 * loader/i386/xnu.c: ...here.
15256 Enable priorities in video drivers.
15258 * include/grub/video.h (grub_video_adapter_prio_t): New type.
15259 (grub_video_adapter): New field prio.
15260 (grub_video_register): Respect prio when inserting.
15261 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
15262 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
15263 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
15264 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
15265 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
15266 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
15267 * video/sm712.c (grub_video_sm712_adapter): Likewise.
15271 * include/grub/video.h (grub_video_driver_id_t): New value
15272 GRUB_VIDEO_DRIVER_SDL.
15273 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
15275 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15277 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
15278 argument to printf.
15279 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15281 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15283 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
15284 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15286 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15288 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
15289 directly, and recommend grub-install instead.
15290 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15292 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15294 Fix i386-pc prefix handling with nested partitions (Debian bug
15295 #585068). Note that the case where the core image is booted using
15296 multiboot and relocated from its original location still requires
15299 * kern/i386/pc/init.c (make_install_device): If the prefix starts
15300 with "(,", fill the boot drive in between those two characters, but
15301 expect that a full partition specification including partition map
15303 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
15304 specified, write a prefix without the drive name but including a
15305 full partition specification.
15307 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
15309 * util/grub-mkconfig.in: Ignore non-option arguments, for
15310 compatibility with older versions (before 2010-06-12) which did the
15311 same. In particular, this makes it easier to ship an update-grub
15312 wrapper which is compatible with that used with GRUB Legacy (Debian
15315 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15317 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
15318 for manual page generation.
15320 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15322 * po/POTFILES: Remove leftover commands/handler.c.
15324 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
15326 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
15327 left this script non-functional.
15329 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
15331 * docs/man/grub-emu.h2m: New file.
15333 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
15335 * docs/grub.texi (Commands): Document reduced command set in rescue
15337 (cpuid): New section.
15339 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
15341 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
15342 new partition naming style.
15343 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
15345 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
15347 Add "-o grub.iso" like cmdline options support.
15349 * util/grub-install.in: Improve cmdline option parsing.
15350 * util/grub-mkconfig.in: Likewise.
15351 * util/grub-mkrescue.in: Likewise.
15352 * util/grub-reboot.in: Likewise.
15353 * util/grub-set-default.in: Likewise.
15354 * util/i386/efi/grub-install.in: Likewise.
15355 * util/ieee1275/grub-install.in: Likewise.
15356 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15358 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15360 * .bzrignore: Ignore 41_custom.
15362 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
15364 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
15366 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15368 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
15369 prototype declarations.
15371 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
15372 generating fs, partmap, and video lists.
15373 * include/grub/fs.h (grub_fs_register): Omit prototype if
15374 GRUB_LST_GENERATOR is defined.
15375 * include/grub/partition.h (grub_partition_map_register): Likewise.
15376 * include/grub/video.h (grub_video_register): Likewise.
15378 2010-06-12 Javier Martín <lordhabbit@gmail.com>
15380 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
15382 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
15384 * util/grub-mkrescue.in: Support --xorriso argument.
15386 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15388 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
15389 Suggested by: Thomas Schmitt.
15391 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15393 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
15394 Suggested by: Thomas Schmitt.
15396 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15398 custom.cfg support.
15400 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
15401 * util/grub.d/41_custom.in: New file.
15403 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15405 * util/grub-mkrescue.in (make_image): Remove sh module, which has
15406 been merged back into normal.
15408 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
15410 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
15411 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
15413 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
15415 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
15416 when generating manual pages.
15417 * docs/man/grub-bin2h.h2m: New file.
15418 * docs/man/grub-editenv.h2m: New file.
15419 * docs/man/grub-fstest.h2m: New file.
15420 * docs/man/grub-install.h2m: New file.
15421 * docs/man/grub-macho2img.h2m: New file.
15422 * docs/man/grub-mkconfig.h2m: New file.
15423 * docs/man/grub-mkdevicemap.h2m: New file.
15424 * docs/man/grub-mkfont.h2m: New file.
15425 * docs/man/grub-mkimage.h2m: New file.
15426 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
15427 * docs/man/grub-mkrelpath.h2m: New file.
15428 * docs/man/grub-mkrescue.h2m: New file.
15429 * docs/man/grub-ofpathname.h2m: New file.
15430 * docs/man/grub-pe2elf.h2m: New file.
15431 * docs/man/grub-probe.h2m: New file.
15432 * docs/man/grub-reboot.h2m: New file.
15433 * docs/man/grub-script-check.h2m: New file.
15434 * docs/man/grub-set-default.h2m: New file.
15435 * docs/man/grub-setup.h2m: New file.
15437 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
15439 Use FOR_* macros instead of *_iterate whenever possible.
15441 * commands/handler.c: Removed.
15442 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
15443 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
15444 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15445 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
15446 (grub_probe_SOURCES): Remove kern/parser.c.
15447 (util/grub-script-check.c_DEPENDENCIES): Removed.
15448 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
15449 and grub_script_check_init.c.
15450 (grub_script_check_init.lst): Removed.
15451 (grub_script_check_init.h): Likewise.
15452 (grub_script_check_init.c): Likewise.
15453 (pkglib_MODULES): Remove handler.mod and sh.mod.
15454 (handler_mod_SOURCES): Removed.
15455 (handler_mod_CFLAGS): Likewise.
15456 (handler_mod_LDFLAGS): Likewise.
15457 (normal_mod_SOURCES): Remove normal/handler.c.
15458 Add script/main.c, script/script.c, script/execute.c,
15459 script/function.c, script/lexer.c, grub_script.tab.c
15460 and grub_script.yy.c.
15461 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15462 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15463 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
15464 (grub_setup_SOURCES): Remove kern/parser.c.
15465 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15466 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
15467 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
15468 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15469 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15470 (grub_setup_SOURCES): Remove kern/parser.c.
15471 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15472 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
15473 * include/grub/command.h (grub_command_iterate): Removed.
15474 (FOR_COMMANDS): New macro.
15475 * include/grub/dl.h (grub_dl): New member next.
15476 (grub_dl_iterate): Removed.
15477 (grub_dl_head): New variable declaration.
15478 (FOR_DL_MODULES): New macro.
15479 * include/grub/fs.h: Include list.h.
15480 (grub_fs): Make next first element.
15481 (grub_fs_list): New variable declaration.
15482 (grub_fs_register): Make inline.
15483 (grub_fs_unregister): Likewise.
15484 (grub_fs_iterate): Removed.
15485 (FOR_FILESYSTEMS): New macro.
15486 * include/grub/handler.h: Removed.
15487 * include/grub/list.h (grub_list_hook_t): Removed.
15488 (grub_list_test_t): Likewise.
15489 (grub_list_pop): Likewise.
15490 (grub_list_iterate): Likewise.
15491 (grub_list_insert): Likewise.
15492 (FOR_LIST_ELEMENTS): New macro.
15493 * include/grub/parser.h (grub_parser_class): Removed.
15494 (grub_parser_register): Likewise.
15495 (grub_parser_unregister): Likewise.
15496 (grub_parser_get_current): Likewise.
15497 (grub_parser_set_current): Likewise.
15498 (grub_register_rescue_parser): Likewise.
15499 (grub_rescue_parse_line): New function.
15500 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
15501 * include/grub/script_sh.h (grub_script_function_list): New variable
15503 (FOR_SCRIPT_FUNCTIONS): New macro.
15504 (grub_script_function_iterate): Removed.
15505 (grub_normal_parse_line): New prototype.
15506 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
15507 (FOR_DISABLED_TERM_INPUTS): Likewise.
15508 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
15509 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
15510 * include/grub/video.h (grub_video_adapter): Move 'next' to first
15512 (grub_video_register): Inline.
15513 (grub_video_unregister): Likewise.
15514 (grub_video_adapter_list): New variable declaration.
15515 (grub_video_iterate): Removed.
15516 (FOR_VIDEO_ADAPTERS): New macro.
15517 * kern/dl.c (grub_dl_list): Removed. All users updated.
15518 (grub_dl_iterate): Removed.
15519 * kern/fs.c (grub_fs_list): Make global.
15520 (grub_fs_register): Removed.
15521 (grub_fs_unregister): Likewise.
15522 (grub_fs_iterate): Likewise.
15523 * kern/handler.c: Removed.
15524 * kern/list.c (grub_list_pop): Removed.
15525 (grub_list_iterate): Likewise.
15526 (grub_list_insert): Likewise.
15527 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
15528 (grub_prio_list_insert): Don't use grub_list_insert.
15529 * kern/main.c (grub_register_rescue_parser): Don't call
15530 grub_register_rescue_parser.
15531 * kern/parser.c (grub_parser_class): Removed.
15532 (grub_parser_execute): Use grub_rescue_parse_line.
15533 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
15534 (grub_rescue_parser): Removed.
15535 (grub_register_rescue_parser): Likewise.
15536 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
15537 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
15538 (grub_auth_check_authentication): Likewise.
15539 * normal/completion.c (iterate_command): Removed.
15540 (grub_normal_do_completion): Use FOR_COMMANDS.
15541 * normal/handler.c: Removed.
15542 * normal/main.c (read_config_file): Remove parser changing.
15543 (grub_normal_execute): Don't call read_handler_list.
15544 (grub_normal_read_line_real): Statically allocate prompt.
15545 (grub_cmdline_run): Use grub_normal_parse_line.
15546 (GRUB_MOD_FINI): Don't call free_handler_list.
15547 * normal/menu_entry.c (run): Likewise.
15548 * script/function.c (grub_script_function_list): Make global.
15549 (grub_script_function_iterate): Removed.
15550 * script/main.c (grub_normal_parse_line): Make global.
15551 (grub_sh_parser): Removed.
15552 (GRUB_MOD_INIT): Likewise.
15553 (GRUB_MOD_FINI): Likewise.
15554 * tests/lib/functional_test.c (grub_functional_test): Use
15556 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
15557 (grub_test_run): Use FOR_LIST_ELEMENTS.
15558 * tests/lib/unit_test.c (main): Likewise.
15559 * util/deviceiter.c (grub_util_iterate_devices): Don't use
15561 * util/grub-fstest.c (grub_term_input_class): Removed.
15562 (grub_term_output_class): Likewise.
15563 * util/grub-probe.c: Likewise.
15564 * util/i386/pc/grub-setup.c: Likewise.
15565 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15566 * util/grub-script-check.c (main): Don't call grub_init_all and
15568 * video/video.c (grub_video_adapter_list): Make global.
15569 (grub_video_register): Removed.
15570 (grub_video_unregister): Likewise.
15571 (grub_video_iterate): Likewise.
15573 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
15575 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
15576 reported by Henrique Ferreiro.
15578 2010-06-09 Robert Millan <rmh@gnu.org>
15580 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
15581 ones, when both are available.
15583 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15585 Make --version uniform and avoid hard-coded program name.
15587 * util/grub-mkimage.c (main): Use `program_name' instead of
15589 * util/i386/pc/grub-setup.c (main): Likewise.
15590 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
15591 * util/grub-install.in: Save the basename of $0 in $self, and use the
15592 latter in informational messages. Use the same format for --version
15593 as the binary programs.
15594 * util/grub-mkconfig.in: Likewise.
15595 * util/grub-mkrescue.in: Likewise.
15596 * util/grub-reboot.in: Likewise.
15597 * util/grub-set-default.in: Likewise.
15598 * util/i386/efi/grub-install.in: Likewise.
15599 * util/ieee1275/grub-install.in: Likewise.
15600 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15602 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15604 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
15605 embedding area. Use <= instead of == when checking for non-emptiness.
15607 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15609 * configure.ac: Add `.' to the directories searched for unifont.
15611 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15613 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
15616 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15618 * docs/grub.texi (History): Expand to cover GRUB 2.
15619 (Serial terminal): Refer to `terminal_input' and `terminal_output'
15620 commands, not `terminal'.
15621 (serial): Likewise.
15622 (terminal_input): New section.
15623 (terminal_output): New section.
15624 (uppermem): New section (stub).
15625 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
15627 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15629 * docs/grub.texi (Security): Menu entries are unrestricted by
15630 default, not restricted to superusers as I had previously thought.
15631 Reword to account for this.
15633 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15635 * kern/emu/misc.c (device_mapper_null_log): New function.
15636 (grub_device_mapper_supported): New function.
15637 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
15639 * kern/emu/hostdisk.c (find_partition_start): Check whether
15640 device-mapper is supported before trying to use it.
15641 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
15643 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15645 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
15646 (File name syntax): Likewise.
15647 (help): --all is no longer supported in GRUB 2. Be more precise
15648 about pattern matching.
15650 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15652 * normal/completion.c (grub_normal_do_completion): When completing
15653 arguments to "set" and the current word contains an equals sign,
15654 skip to after the equals sign before starting completion.
15656 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15658 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
15660 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15662 * docs/grub.texi (Network): New section.
15663 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
15664 `(nd)' as in GRUB Legacy.
15665 (pxe_unload): New section.
15667 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15669 * docs/grub.texi (Troubleshooting): `echo' is not usually available
15670 in the rescue shell, so recommend using `set' instead. Thanks,
15673 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15675 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
15676 (password): New section.
15677 (password_pbkdf2): New section.
15678 (search): New section.
15679 (Security): New section.
15680 (Troubleshooting): New section, currently very incomplete.
15681 (Invoking grub-mkpasswd-pbkdf2): New section.
15682 (Internals): New section, currently very incomplete.
15684 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15686 * util/grub.d/00_header.in: Add some more quoting (of
15687 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
15689 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
15691 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15693 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
15694 to `count', fixing variable shadowing that broke the -c option.
15696 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
15698 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
15699 in case they contain spaces.
15701 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15703 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
15704 "part_" to partmap module names, in line with grub-install.
15705 Reported by: Jindřich Makovička (Debian bug #584426).
15707 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15709 * util/grub-mkimage.c: Make target-related error messages slightly
15710 more helpful; -O talks about "format". Explicitly point to the use
15711 of -O if no target is specified.
15712 Reported by: Didier Raboud (Debian bug #584415).
15714 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
15716 * INSTALL: Document several build requirements for optional features
15717 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
15719 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15721 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
15722 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
15723 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
15725 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15727 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
15728 Thanks to Jordan Uggla for spotting this.
15730 2010-06-02 Aleš Nesrsta <starous@volny.cz>
15732 Finally make USB usable.
15734 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
15735 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
15736 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
15737 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
15738 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
15739 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
15740 (GRUB_OHCI_FSMPS): Likewise.
15741 (GRUB_OHCI_PERIODIC_START): Likewise.
15742 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
15743 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
15744 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
15745 (GRUB_OHCI_SET_PORT_RESET): Likewise.
15746 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
15747 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
15748 (grub_ohci_transaction): Likewise.
15749 (grub_ohci_transfer): Improve condition detection algorithms.
15750 Handle toggle property. Program the transactions correctly.
15751 Improve error handling. Various important fixups.
15752 (grub_ohci_portstatus): Put register writes in right order.
15753 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
15754 (grub_uhci_transfer): Don't show "failed" message on success.
15755 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
15757 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
15758 determine its size.
15759 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
15760 before initialization is completed. Use IN direction for empty
15761 transfers. Use last_trans and compute toggle.
15762 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
15763 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
15764 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
15765 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
15766 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
15767 (grub_usb_device): Increase toggle to 256.
15768 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
15769 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
15770 GRUB_USBMS_SUBCLASS_SFF8070.
15771 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
15772 (grub_scsi_inquiry): New member page and alloc_length.
15773 (grub_scsi_request_sense): New structure.
15774 (grub_scsi_request_sense_data): Likewise.
15775 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
15777 * disk/scsi.c (grub_scsi_request_sense): New function.
15778 (grub_scsi_test_unit_ready): Likewise.
15779 (grub_scsi_inquiry): Fill new fields.
15780 (grub_scsi_read_capacity): Likewise.
15781 (grub_scsi_read10): Add request sense at the end.
15782 (grub_scsi_read12): Likewise.
15783 (grub_scsi_write10): Likewise.
15784 (grub_scsi_write12): Likewise.
15785 (grub_scsi_open): Add Test Unit Ready.
15786 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
15787 Support additional subclasses. Con't clear halt yet. Activate the
15788 proper config. Calculate LUNs correctly.
15789 (grub_usbms_transfer): Various important fixups.
15791 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15793 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
15794 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
15795 (grub_ohci_fini_hw): New function.
15796 (grub_ohci_restore_hw): Likewise.
15797 (GRUB_MOD_INIT(ohci)): Register preboot hook.
15798 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
15799 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
15801 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15803 Dedicated DMA allocations.
15805 * bus/pci.c (grub_memalign_dma32): New function
15806 (grub_dma_free): Likewise.
15807 (grub_dma_get_virt): Likewise.
15808 (grub_dma_get_phys): Likewise.
15809 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
15810 (grub_ohci_pci_iter): Use dma32_alloc.
15811 (grub_ohci_transfer): Likewise.
15812 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
15813 (grub_usb_bulk_readwrite): Likewise.
15814 * include/grub/pci.h: Add declarations.
15816 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15820 * bus/cs5536.c: New file.
15821 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
15822 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
15823 (cs5536_mod_SOURCES): New variable.
15824 (cs5536_mod_CFLAGS): Likewise.
15825 (cs5536_mod_LDFLAGS): Likewise.
15826 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
15828 (kernel_img_SOURCES): Add bus/cs5536.c.
15829 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
15831 (usb_mod_SOURCES): New variable.
15832 (usb_mod_CFLAGS): New variable.
15833 (usb_mod_LDFLAGS): New variable.
15834 (usbtest_mod_SOURCES): New variable.
15835 (usbtest_mod_CFLAGS): New variable.
15836 (usbtest_mod_LDFLAGS): New variable.
15837 (ohci_mod_SOURCES): New variable.
15838 (ohci_mod_CFLAGS): New variable.
15839 (ohci_mod_LDFLAGS): New variable.
15840 (usbms_mod_SOURCES): New variable.
15841 (usbms_mod_CFLAGS): New variable.
15842 (usbms_mod_LDFLAGS): New variable.
15843 (usb_keyboard_mod_SOURCES): New variable.
15844 (usb_keyboard_mod_CFLAGS): New variable.
15845 (usb_keyboard_mod_LDFLAGS): New variable.
15846 * include/grub/smbus.h: New file.
15847 * include/grub/cs5536.h: New file.
15849 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15851 * util/grub.d/00_header.in: Add safety check to make sure that
15852 ${locale_dir} exists before trying to probe it.
15854 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15856 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
15857 per the GNU Coding Standards; this is now too obscure to be worth
15860 (chainloader): Remove cross-reference to `SCO UnixWare'.
15862 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15864 * docs/grub.texi (Chain-loading): New section.
15865 (DOS/Windows): New section, borrowed from GRUB Legacy with details
15866 adjusted for GRUB 2.
15867 (SCO UnixWare): Likewise.
15869 (chainloader): Add reference to `Block list syntax'.
15870 (drivemap): New section.
15871 (parttool): New section.
15873 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15875 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
15877 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
15878 (Installing GRUB using grub-install): Remove reference to the grub
15879 shell; mention `grub-mkimage' and `grub-setup' instead.
15880 (Invoking grub-install): Likewise.
15881 (Interface): Add reference to `Menu entry editor'.
15882 (serial): Remove `--device' option.
15884 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15886 * docs/grub.texi (Configuration): New section, documenting
15887 configuration file generation using grub-mkconfig. I've left a slot
15888 for documenting the full shell scripting format but have not yet
15889 started on writing that up.
15890 (Invoking grub-mkconfig): New section.
15892 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15894 * docs/grub.texi (direntry): Remove grub-terminfo reference.
15895 (GNU GRUB manual): Likewise.
15896 (General commands): Update description of `terminfo' for GRUB 2.
15898 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15900 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
15901 (GRUB_MOD_INIT): Fix capitalisation.
15902 * docs/grub.texi (Command-line and menu entry commands): Document
15903 gettext and gptsync commands.
15905 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15907 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
15908 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
15910 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
15912 Add btrfs probing support, currently only in the single-device case.
15914 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
15916 (grub_guess_root_device): Call find_root_device_from_mountinfo
15917 before looking in /dev.
15919 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15921 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
15922 GRUB_DISK_SIZE_UNKNOWN.
15923 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
15925 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
15927 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
15928 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
15929 corrupted or not synced properly.
15931 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15933 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
15934 Reported by: Seth Goldberg.
15936 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15938 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
15940 Reported by: Seth Goldberg.
15942 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15944 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
15945 Reported by: Seth Goldberg.
15947 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15949 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
15950 64-bit address as signed on MIPS.
15952 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15954 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
15955 to the empty string.
15957 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
15959 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
15961 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
15962 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
15963 * kern/misc.c (__enable_execute_stack): Disable on
15966 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15968 Make grub-probe work with symbolic links under /dev/mapper as well
15969 as with real block devices. The Linux world seems to be (at best)
15970 in transition here, and GRUB shouldn't get caught in the middle.
15972 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
15975 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15977 * util/grub-script-check.c (main): Ensure defined behaviour on empty
15978 input files (in which case exit zero).
15980 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15982 * kern/emu/misc.c (canonicalize_file_name): realpath can still
15983 return NULL for various reasons even if it has a maximum-length
15984 buffer: for example, there might be a symlink loop, or the path
15985 might exceed PATH_MAX. If this happens, return NULL.
15987 2010-05-27 Robert Millan <rmh@gnu.org>
15989 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
15990 partmap module to handle cross-partmap setups.
15991 Reported by Orestes Mas. Gràcies!
15993 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15995 * util/grub-mkrescue.in: Initialise override_dir rather than
15996 assuming that it's unset or empty in the environment.
15998 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
16000 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
16001 variable index into p_index to suppress a warning with -Wshadow.
16003 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
16005 * INSTALL: Added flex >= 2.5.35 requirement.
16007 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16009 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
16011 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16015 * commands/i386/cmostest.c: New file.
16016 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
16017 (cmostest_mod_SOURCES): New variable.
16018 (cmostest_mod_CFLAGS): Likewise.
16019 (cmostest_mod_LDFLAGS): Likewise.
16020 * conf/i386-pc.rmk: Likewise.
16021 * docs/grub.texi (Vendor power-on keys): New section.
16022 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
16023 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
16024 and GRUB_BUTTON_CMOS_ADDRESS.
16025 * util/grub.d/00_header.in: Handle powering-on by separate button.
16027 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16029 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
16030 Removed drawing_scrollbar argument. All users updated
16032 Reported by Jo Shields
16034 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16036 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
16037 buffer since gfxterm handles double repaint.
16039 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
16041 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
16042 * term/gfxterm.c (real_scroll): Likewise.
16044 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16046 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
16047 before calling BIOS.
16049 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16051 * include/grub/i18n.h: Always enable grub_gettext.
16053 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16055 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
16056 partition naming style.
16058 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
16060 * util/grub-mkconfig.in: Fix handling of -o so that it works when
16061 not the first option.
16063 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
16065 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
16067 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
16069 * util/misc.c: Move inclusion of <limits.h> to ...
16070 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
16072 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
16074 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
16075 Fix merge error in NetBSD code.
16076 (find_partition_start) [__NetBSD__]: Likewise.
16078 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
16080 Fix grub-mkrescue usage unit testing.
16082 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
16084 2010-05-18 Christian Franke <franke@computer.org>
16086 * util/grub.d/10_windows.in: Use path names instead of
16087 drive letters to prevent warning from Cygwin 1.7.
16088 Add drivemap command to menuentry if needed.
16090 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
16092 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
16093 gnumach and gnumach.gz.
16095 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16097 * include/grub/i18n.h (gettext): Inline instead of using #define.
16098 (grub_gettext): Likewise.
16101 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16103 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
16104 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
16105 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
16106 (main): Add a slash after pkglibdirroot.
16108 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16110 * util/grub-install.in: Add missing "in" keyword.
16112 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16114 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
16115 Reported by: Seth Goldberg.
16117 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16119 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
16121 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16123 * configure.ac: Check for Linux device-mapper support.
16125 * util/hostdisk.c (device_is_mapped): New function.
16126 (find_partition_start): New function, partly broken out from
16127 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
16128 device-mapper support added.
16129 (linux_find_partition): Use find_partition_start.
16130 (convert_system_partition_to_system_disk): Add `st' argument.
16131 Support Linux /dev/mapper/* devices if device-mapper support is
16132 available; only DM-RAID devices are understood at present.
16133 (find_system_device): Add `st' argument. Pass it to
16134 convert_system_partition_to_system_disk.
16135 (grub_util_biosdisk_get_grub_dev): Pass stat result to
16136 find_system_device and convert_system_partition_to_system_disk. Use
16137 find_partition_start.
16139 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
16140 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
16141 * util/deviceiter.c [__linux__]: Define MINOR.
16142 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
16143 * util/mkdevicemap.c (grub_putchar): New function.
16144 (grub_getkey): New function.
16145 (grub_refresh): New function.
16146 (main): Set debug=all if -v -v is used.
16148 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16150 Fix build with non-GNU libcs.
16152 * util/misc.c (canonicalize_file_name): Move to ...
16153 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
16154 grub_make_system_path_relative_to_its_root.
16156 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16158 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
16159 we handle finding grub-mkimage. Default to finding grub-mkimage in
16160 ${bindir} with program_transform_name applied, and provide a
16161 --grub-mkimage option to override this.
16163 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16165 Remove grub-mkisofs.
16167 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
16168 (grub_mkisofs_SOURCES): Removed.
16169 (grub_mkisofs_CFLAGS): Removed.
16170 * util/mkisofs/defaults.h: Removed.
16171 * util/mkisofs/eltorito.c: Likewise.
16172 * util/mkisofs/exclude.h: Likewise.
16173 * util/mkisofs/hash.c: Likewise.
16174 * util/mkisofs/include/: Likewise.
16175 * util/mkisofs/include/fctldefs.h: Likewise.
16176 * util/mkisofs/include/mconfig.h: Likewise.
16177 * util/mkisofs/include/prototyp.h: Likewise.
16178 * util/mkisofs/include/statdefs.h: Likewise.
16179 * util/mkisofs/iso9660.h: Likewise.
16180 * util/mkisofs/joliet.c: Likewise.
16181 * util/mkisofs/match.c: Likewise.
16182 * util/mkisofs/match.h: Likewise.
16183 * util/mkisofs/mkisofs.c: Likewise.
16184 * util/mkisofs/mkisofs.h: Likewise.
16185 * util/mkisofs/msdos_partition.h: Likewise.
16186 * util/mkisofs/multi.c: Likewise.
16187 * util/mkisofs/name.c: Likewise.
16188 * util/mkisofs/rock.c: Likewise.
16189 * util/mkisofs/tree.c: Likewise.
16190 * util/mkisofs/write.c: Likewise.
16192 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16194 Unify grub-mkimage accross platforms.
16196 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
16197 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
16198 (grub_mkelfimage_SOURCES): Removed.
16199 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
16200 (util/grub-mkimage.c_DEPENDENCIES): .. this.
16201 (bin_UTILITIES): Add grub-mkimage.
16202 (grub_mkimage_SOURCES): New variable.
16203 (kernel_img_HEADERS): Remove machine/kernel.h.
16204 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
16205 (pkglib_PROGRAMS): Add kernel.img.
16206 (kernel_img_HEADERS): Add machine/kernel.h.
16207 (kernel_img_FORMAT): Removed.
16208 (bin_UTILITIES): Remove grub-mkimage.
16209 (grub_mkimage_SOURCES): Removed.
16210 (grub_mkimage_CFLAGS): Likewise.
16211 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16212 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
16213 (pkglib_PROGRAMS): Add kernel.img.
16214 (bin_UTILITIES): Remove grub-mkimage.
16215 (grub_mkimage_SOURCES): Removed.
16216 (grub_mkimage_CFLAGS): Likewise.
16217 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16218 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
16219 (pkglib_PROGRAMS): Add kernel.img.
16220 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
16221 (pkglib_PROGRAMS): Add kernel.img.
16222 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
16223 (grub_mkimage_SOURCES): Removed.
16224 (grub_mkimage_CFLAGS): Likewise.
16225 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16226 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
16227 (pkglib_PROGRAMS): Add kernel.img.
16228 (bin_UTILITIES): Remove grub-mkimage.
16229 (grub_mkimage_SOURCES): Removed.
16230 (grub_mkimage_CFLAGS): Likewise.
16231 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16232 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
16233 (grub_mkimage_SOURCES): Removed.
16234 (grub_mkimage_CFLAGS): Likewise.
16235 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16236 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
16237 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
16238 (grub_pe32_optional_header): ... this.
16239 (grub_pe64_optional_header): ... and this. All users updated.
16240 (GRUB_PE32_PE32_MAGIC): Split into ..
16241 (GRUB_PE32_PE32_MAGIC): .. this.
16242 (GRUB_PE32_PE64_MAGIC): .. and this.
16243 (GRUB_PE32_SIGNATURE_SIZE): New definition.
16244 * include/grub/elf.h (PT_GNU_STACK): New definition.
16245 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
16246 * include/grub/i386/efi/kernel.h: Likewise.
16247 * include/grub/i386/kernel.h: Likewise.
16248 * include/grub/i386/pc/kernel.h: Likewise.
16249 * include/grub/i386/qemu/boot.h: Likewise.
16250 * include/grub/mips/kernel.h: Likewise.
16251 * include/grub/mips/qemu-mips/kernel.h: Likewise.
16252 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
16253 * include/grub/powerpc/kernel.h: Likewise.
16254 * include/grub/sparc64/ieee1275/boot.h: Likewise.
16255 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16256 * include/grub/sparc64/kernel.h: Likewise.
16257 * include/grub/x86_64/efi/kernel.h: Likewise.
16258 * include/grub/x86_64/kernel.h: Likewise.
16259 * include/grub/offsets.h: New file.
16260 * include/grub/kernel.h (grub_module_info): Split into ...
16261 (grub_module_info32): ... this.
16262 (grub_module_info64): ... and this.
16263 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
16264 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
16265 (grub_boot_blocklist): Moved from here ...
16266 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
16267 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
16268 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
16269 * include/grub/types.h (grub_target_to_host16): Removed.
16270 (grub_target_to_host32): Likewise.
16271 (grub_target_to_host64): Likewise.
16272 (grub_host_to_target16): Likewise.
16273 (grub_host_to_target32): Likewise.
16274 (grub_host_to_target64): Likewise.
16275 (grub_host_to_target_addr): Likewise.
16277 Support grub-mkrescue for efi, coreboot and qemu.
16279 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
16280 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
16281 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
16282 * util/grub-mkrawimage.c: Moved from here ...
16283 * util/grub-mkimage.c: ... here. All users updated.
16284 (ALIGN_ADDR): Use image_target.
16285 (TARGET_NO_FIELD): New const.
16286 (image_target_desc): New type.
16287 (image_targets): New array.
16288 (grub_target_to_host64): Use image_target.
16289 (grub_target_to_host32): Likewise.
16290 (grub_target_to_host16): Likewise.
16291 (grub_host_to_target64): Likewise.
16292 (grub_host_to_target32): Likewise.
16293 (grub_host_to_target16): Likewise.
16294 (grub_host_to_target_addr): Likewise.
16295 (generate_image): Handle multiimage.
16296 (main): Require -O parameter. All users updated.
16297 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
16298 util/efi/grub-mkimage.c
16299 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
16300 New option --rom-directory.
16302 * util/i386/efi/grub-mkimage.c: Removed.
16303 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
16304 (grub_target_to_host32): Likewise.
16305 (grub_target_to_host64): Likewise.
16306 (grub_host_to_target16): Likewise.
16307 (grub_host_to_target32): Likewise.
16308 (grub_host_to_target64): Likewise.
16309 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
16310 (grub_target_to_host32): Likewise.
16311 (grub_target_to_host64): Likewise.
16312 (grub_host_to_target16): Likewise.
16313 (grub_host_to_target32): Likewise.
16314 (grub_host_to_target64): Likewise.
16316 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
16318 Source tree is reorganized for emu build.
16320 * include/grub/util/console.h: Move from here...
16321 * include/grub/emu/console.h: ...to here.
16322 * include/grub/util/getroot.h: Move from here...
16323 * include/grub/emu/getroot.h: ...to here.
16324 * include/grub/util/hostdisk.h: Move from here...
16325 * include/grub/emu/hostdisk.h: ...to here.
16326 * util/console.c: Move from here...
16327 * kern/emu/console.c: ...to here.
16328 * util/getroot.c: Move from here...
16329 * kern/emu/getroot.c: ...to here.
16330 * util/grub-emu.c: Move from here...
16331 * kern/emu/main.c: ...to here.
16332 * util/hostdisk.c: Move from here...
16333 * kern/emu/hostdisk.c: ...to here.
16334 * util/hostfs.c: Move from here...
16335 * kern/emu/hostfs.c: ...to here.
16336 * util/mm.c: Move from here...
16337 * kern/emu/mm.c: ...to here.
16338 * util/pci.c: Move from here...
16339 * bus/emu/pci.c: ...to here.
16340 * util/sdl.c: Move from here...
16341 * video/emu/sdl.c: ...to here.
16342 * util/time.c: Move from here...
16343 * kern/emu/time.c: ...to here.
16344 * util/usb.c: Move from here...
16345 * bus/usb/emu/usb.c: ...to here.
16347 * include/grub/emu/misc.h: New header for grub-emu functions.
16348 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
16350 * conf/any-emu.rmk: Rule updates for above renames.
16351 * conf/common.rmk: Likewise.
16352 * conf/i386-pc.rmk: Likewise.
16353 * conf/i386-qemu.rmk: Likewise.
16354 * conf/mips.rmk: Likewise.
16355 * conf/sparc64-ieee1275.rmk: Likewise.
16356 * conf/x86-efi.rmk: Likewise.
16358 * disk/lvm.h: #include updates for above renames.
16359 * util/grub-mkrelpath.c: Likewise.
16360 * util/grub-probe.c: Likewise.
16361 * util/i386/pc/grub-setup.c: Likewise.
16362 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16363 * kern/emu/console.c: Likewise.
16364 * kern/emu/getroot.c: Likewise.
16365 * kern/emu/hostdisk.c: Likewise.
16366 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
16368 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
16369 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
16370 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
16371 * util/misc.c: Remove grub-emu functions.
16373 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16376 Reported by: Thorsten Grützmacher.
16378 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
16380 (circprog_set_property): Register and unregister timeout hook.
16381 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
16382 (label_destroy): Free template. and unregister hook.
16383 (label_set_state): New function.
16384 (label_set_property): Handle templates and hooks.
16385 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
16387 (progress_bar_set_property): Register and unregister timeout hook.
16388 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
16389 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
16390 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
16391 (update_timeout_visit): Removed.
16392 (update_timeouts): New function.
16393 (redraw_timeouts): Likewise.
16394 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
16395 (grub_gfxmenu_clear_timeout): Likewise.
16396 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
16397 (grub_gfxmenu_timeout_notify): Likewise.
16398 (grub_gfxmenu_timeout_notifications): New external variable.
16399 (grub_gfxmenu_timeout_register): New function.
16400 (grub_gfxmenu_timeout_unregister): Likewise.
16402 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16404 Transform (broken) vga terminal into (working) vga video driver.
16406 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
16407 video/i386/pc/vga.c.
16408 * include/grub/video.h (grub_video_driver_id):
16409 Add GRUB_VIDEO_DRIVER_VGA.
16410 * term/i386/pc/vga.c: Renamed to ...
16411 * video/i386/pc/vga.c: ...this
16412 (DEBUG_VGA): Removed.
16413 (CHAR_WIDTH): Likewise.
16414 (CHAR_HEIGHT): Likewise.
16415 (TEXT_WIDTH): Likewise.
16416 (TEXT_HEIGHT): Likewise.
16417 (DEFAULT_FG_COLOR): Likewise.
16418 (DEFAULT_BG_COLOR): Likewise.
16419 (colored_char): Likewise.
16422 (cursor_state): Likewise.
16423 (fg_color): Likewise.
16424 (bg_color): Likewise.
16425 (text_buf): Likewise.
16428 (framebuffer): New variable.
16429 (set_read_map): Disabled.
16430 (setup): New variable.
16431 (is_target): Likewise.
16432 (grub_vga_mod_init): Likewise.
16433 (grub_vga_mod_fini): Likewise.
16434 (check_vga_mem): Likewise.
16435 (write_char): Likewise.
16436 (write_cursor): Likewise.
16437 (scroll_up): Likewise.
16438 (grub_vga_putchar): Likewise.
16439 (grub_vga_getcharwidth): Likewise.
16440 (grub_vga_getwh): Likewise.
16441 (grub_vga_getxy): Likewise.
16442 (grub_vga_gotoxy): Likewise.
16443 (grub_vga_cls): Likewise.
16444 (grub_vga_setcolorstate): Likewise.
16445 (grub_vga_setcursor): Likewise.
16446 (grub_video_vga_init): New function.
16447 (grub_video_vga_setup): Likewise.
16448 (grub_video_vga_fini): Likewise.
16449 (update_target): Likewise.
16450 (grub_video_vga_blit_bitmap): Likewise.
16451 (grub_video_vga_blit_render_target): Likewise.
16452 (grub_video_vga_set_active_render_target): Likewise.
16453 (grub_video_vga_get_active_render_target): Likewise.
16454 (grub_video_vga_swap_buffers): Likewise.
16455 (grub_video_vga_set_palette): Likewise.
16456 (grub_video_vga_get_info_and_fini): Likewise.
16457 (grub_vga_term): Removed.
16458 (grub_video_vga_adapter): New variable.
16459 (GRUB_MOD_INIT): Register a video driver instead of terminal.
16460 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
16462 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16464 * video/readers/jpeg.c: Indented.
16466 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16468 Various jpeg cleanups.
16470 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
16471 (grub_jpeg_decode_quan_table): Use sizeof.
16472 (grub_jpeg_decode_du): Use ARRAY_SIZE.
16474 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
16476 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
16477 tables. Ignore non-last ac bit.
16478 (grub_jpeg_decode_quan_table): Likewise.
16480 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16482 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
16483 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
16484 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16485 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
16486 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
16487 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
16489 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16491 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
16494 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16496 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
16498 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16500 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
16503 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16505 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
16508 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16510 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
16513 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16515 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
16517 2010-05-01 Christian Franke <franke@computer.org>
16519 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
16520 Remove broken Cygwin path conversion.
16521 * util/misc.c: [__CYGWIN__] Add include and define.
16522 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
16524 (make_system_path_relative_to_its_root): Simplify loop, replace early
16526 [__CYGWIN__] Add conversion to win32 path.
16527 Include "/" case in trailing slash removal.
16529 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16531 * kern/main.c (grub_load_config): Fix copy-pasted comment.
16532 Reported by: Seth Goldberg
16534 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16536 * commands/help.c (grub_cmd_help): Fix a typo.
16537 Reported by: Seth Goldberg
16539 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16541 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
16543 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
16544 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
16545 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
16546 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
16547 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
16548 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
16549 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
16550 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
16551 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
16552 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
16553 * normal/context.c (GRUB_MOD_INIT): Likewise.
16554 * normal/main.c (GRUB_MOD_INIT): Likewise.
16555 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
16556 * term/serial.c (GRUB_MOD_INIT): Likewise.
16557 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
16559 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16561 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
16564 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16566 * commands/iorw.c: New file.
16567 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
16568 (iorw_mod_SOURCES): New variable.
16569 (iorw_mod_CFLAGS): Likewise.
16570 (iorw_mod_LDFLAGS): Likewise.
16572 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16576 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
16577 * normal/main.c (hotkey_aliases): New variable.
16578 (grub_normal_add_menu_entry): Parse "--hotkey".
16579 * normal/menu_text.c (run_menu): Handle hotkeys.
16581 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16583 * kern/i386/coreboot/init.c (grub_machine_init): Call
16584 grub_machine_mmap_init on qemu.
16586 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16588 * boot/i386/qemu/boot.S: Add a missing .code16.
16590 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16592 Use LBIO on coreboot.
16594 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
16595 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
16596 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
16598 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
16599 grub_machine_mmap_init on coreboot.
16600 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
16601 GRUB_LINUXBIOS_MEMBER_LINK.
16602 (grub_machine_mmap_iterate): Fix declaration.
16603 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
16605 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16607 Split coreboot and multiboot ports.
16609 * conf/i386-multiboot.rmk: New file.
16610 * configure.ac: Add multiboot port.
16611 * include/grub/i386/multiboot/boot.h: New file.
16612 * include/grub/i386/multiboot/console.h: Likewise.
16613 * include/grub/i386/multiboot/init.h: Likewise.
16614 * include/grub/i386/multiboot/kernel.h: Likewise.
16615 * include/grub/i386/multiboot/loader.h: Likewise.
16616 * include/grub/i386/multiboot/memory.h: Likewise.
16617 * include/grub/i386/multiboot/serial.h: Likewise.
16618 * include/grub/i386/multiboot/time.h: Likewise.
16619 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
16620 * loader/multiboot.c: Likewise.
16621 * loader/multiboot_mbi2.c: Likewise.
16622 * util/grub-mkrescue.in: Generate multiboot rescue.
16624 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16626 * kern/parser.c (grub_parser_execute): Cope with read-only config.
16628 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16630 Merge handling of input and output terminals. Fix a hang.
16632 * commands/terminal.c (abstract_terminal): New struct.
16633 (handle_command): New function. Based on grub_cmd_terminal_input.
16634 (grub_cmd_terminal_input): Use handle_command.
16635 (grub_cmd_terminal_output): Use handle_command.
16637 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
16639 Fix comment handling.
16641 * tests/grub_script_comments.in: New testcase.
16642 * conf/tests.rmk: Rules for new testcase.
16643 * script/yylex.l: Updated flex rules.
16645 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
16647 * docs/grub.texi (play): Document that zero pitches produce rests.
16648 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
16651 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
16653 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
16656 2010-04-26 Christian Franke <franke@computer.org>
16658 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
16659 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
16660 (grub_get_prefix): Remove function.
16661 * util/grub-emu.c (main): Replace grub_get_prefix () call by
16662 make_system_path_relative_to_its_root ().
16663 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16665 2010-04-24 Christian Franke <franke@computer.org>
16667 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
16668 (kernel_img_LDFLAGS): Remove -static-libgcc.
16670 2010-04-24 Christian Franke <franke@computer.org>
16672 * configure.ac: Do not CHECK_BSS_START_SYMBOL
16673 and CHECK_END_SYMBOL if grub-emu is built.
16674 Unset TARGET_OBJ2ELF if grub-emu is built
16675 without module support.
16677 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
16681 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
16682 (grub_fstest_SOURCES): Likewise.
16683 (pkglib_MODULES): Add nilfs2.mod.
16684 (nilfs2_mod_SOURCES): New variable.
16685 (nilfs2_mod_CFLAGS): Likewise.
16686 (nilfs2_mod_LDFLAGS): Likewise.
16687 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16688 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16689 * fs/nilfs2.c: New file.
16691 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
16693 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
16696 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
16698 Add grub-mkconfig support for NetBSD.
16700 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
16701 * util/grub-mkconfig.in: export new NetBSD specific variables.
16702 * po/POTFILES-shell: added 10_netbsd.in.
16703 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
16705 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
16707 Fix emu build with grub-emu-pci and grub-emu-modules.
16709 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
16711 * include/grub/libpciaccess.h: New file.
16712 * conf/any-emu.rmk: Update kernel headers for emu build.
16714 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16716 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
16718 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16720 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
16722 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16724 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
16725 Retrieve chosen/bootpath if bootpath isn't hardcoded.
16726 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
16727 util/ieee1275/ofpath.c.
16728 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
16729 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
16730 * include/grub/sparc64/ieee1275/boot.h
16731 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
16732 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
16733 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
16734 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
16736 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
16737 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
16738 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
16741 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
16743 * util/grub-mkconfig.in: Corrected two == equality tests.
16744 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
16745 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
16746 expect a number appended to it.
16747 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
16748 expects a number appended to it.
16750 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16752 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
16754 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16756 * util/hostdisk.c (make_device_name): Change to new partition naming.
16758 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16760 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
16762 2010-04-17 Christian Franke <franke@computer.org>
16764 * Makefile.in: Add missing localedir setting.
16766 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
16768 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
16769 mistake in r2156. Noticed by Anthony Fok.
16771 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
16773 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
16775 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
16777 Fix a spurious, uninitialized variable warning.
16779 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
16780 Initialize variable, shdr.
16781 (grub_freebsd_load_elfmodule): Likewise.
16782 (grub_freebsd_load_elf_meta): Likewise.
16784 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
16786 Fix for escaped dollar in double quoted strings.
16788 * script/yylex.l: Updated flex rules.
16789 * conf/tests.rmk: Rule for new testcase.
16790 * tests/grub_script_dollar.in: New testcase.
16792 2010-04-13 Carles Pina i Estany <carles@pina.cat>
16793 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
16795 Enclose all translated strings in grub.cfg in single quotes, and
16796 escape them appropriately (Ubuntu bug #552921).
16798 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
16799 * util/grub.d/10_hurd.in: Use it.
16800 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
16801 * util/grub.d/10_linux.in (linux_entry): Likewise.
16803 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16805 Fix cygwin compilation.
16807 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
16808 * include/grub/misc.h (__register_frame_info)
16809 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
16810 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16811 * kern/misc.c (__register_frame_info)
16812 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
16813 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16815 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16817 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
16819 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16821 Unify libgcc processing.
16823 * Makefile.in (kernel_img_LDFLAGS): New variable.
16824 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
16825 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
16827 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
16828 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
16829 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
16830 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
16831 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
16832 overwriting. Remove -lgcc and -static-libgcc
16833 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
16834 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16835 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16836 (kernel_img_LDFLAGS): Append instead of overwriting.
16837 Remove -lgcc and -static-libgcc
16838 * conf/sparc64-ieee1275.rmk: Likewise.
16839 * include/grub/powerpc/libgcc.h: Move to ...
16840 * include/grub/libgcc.h: .. this.
16841 * include/grub/libgcc.h: Don't export most of the function on x86.
16842 (__bswapsi2): New export.
16843 (__bswapdi2): Likewise.
16844 * include/grub/mips/libgcc.h: Removed.
16845 * include/grub/sparc64/libgcc.h: Likewise.
16847 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16849 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
16850 disk_info_msg (conflicts with gettexting into languages with cases).
16852 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
16854 Add grub-probe support for NetBSD.
16856 * util/getroot.c (find_root_device): Convert block device to
16857 character device on NetBSD.
16858 * util/probe.c (probe): Require character device on NetBSD.
16859 * util/hostdisk.c: NetBSD specific headers.
16860 (configure_device_driver): new function to tune device driver
16861 parameters (currently only for NetBSD floppy driver).
16862 (grub_util_biosdisk_open): NetBSD specific code (get disk size
16863 via disklabel ioctl).
16864 (open_device): call configure_device_driver on NetBSD.
16865 (convert_system_partition_to_system_disk): NetBSD specific code.
16866 (device_is_wholedisk): Likewise.
16867 (grub_util_biosdisk_get_grub_dev): Likewise.
16868 (make_device_name): Fixed a typo in bsd_part_str.
16869 * configure.ac: check for opendisk() and getrawpartition() on
16870 NetBSD and set LIBUTIL.
16871 * Makefile.in: add LIBUTIL to LIBS.
16873 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16877 * util/grub-script-check.c: Better help message.
16879 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16883 * configure.ac: Flex version check.
16884 * conf/common.rmk: Add -Wno-error to sh.mod.
16885 * script/yylex.l: Remove all #pragma.
16887 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16889 * include/grub/util/misc.h (canonicalise_file_name): Add missing
16891 Reported by: Seth Goldberg.
16893 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16895 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
16896 Rename "module" to "module2".
16897 Reported by: Seth Goldberg.
16899 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16901 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
16903 Reported by: Seth Goldberg.
16905 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16907 * lib/posix_wrap/locale.h: Add missing file.
16908 Reported by: Seth Goldberg.
16910 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16912 grub-emu module load support.
16914 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
16915 NO_DYNAMIC_MODULES switched to this.
16916 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
16917 (CFLAGS): Likewise.
16918 * conf/any-emu.rmk: Generate symlist.
16919 (kernel_img_HEADERS): Add util/datetime.h.
16920 (kernel_img_HEADERS) [sdl]: Add sdl.h.
16921 (kernel_img_HEADERS) [libusb]: Add libusb.h.
16922 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
16923 kern/$(target_cpu)/cache.S.
16924 * configure.ac (grub-emu-modules): New option.
16925 * genmk.rb: Handle multiple source lists.
16926 * include/grub/sdl.h: New file.
16927 * include/grub/libusb.h: Likewise.
16928 * util/grub-emu.c (main): Hanle (host) root.
16929 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
16930 GRUB_ERR_UNKNOWN_DEVICE.
16931 * util/misc.c: Move mm functions to ...
16932 * util/mm.c: ... here. All users updated.
16934 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16936 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
16937 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
16939 (maintainer-clean): Remove libgcrypt-grub.
16941 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16943 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
16945 2010-04-09 EFI Coder <eficoder@hotmail.com>
16947 * normal/menu_text.c (print_message): Clean up the message and show
16948 the Fn information when on EFI
16949 * term/efi/console.c (grub_console_checkkey): Add F4 support.
16951 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16953 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
16955 * normal/crypto.c (read_crypto_list): Likewise.
16956 * normal/dyncmd.c (read_command_list): Likewise.
16957 * normal/term.c (read_terminal_list): Likewise.
16958 * normal/main.c (read_lists): Use explicit prefix.
16959 (read_lists_hook): Use read_lists.
16960 (grub_normal_execute): Likewise.
16962 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16964 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
16965 Reported by: Thomas Schmitt.
16966 Add -no-emul-boot to grub-mkisofs parameters.
16968 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16970 * font/font.c: Indented.
16972 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16974 Elif support to GRUB script (by Deepak Vankadaru).
16976 * tests/grub_script_if.in: New testcase.
16977 * conf/tests.rmk: Rule for new testcase.
16978 * script/parser.y: Grammar rules for elif.
16980 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16982 While and until loops support to GRUB script.
16984 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
16985 (grub_script_create_cmdwhile): New function prototype.
16986 (grub_script_execute_cmdwhile): New function prototype.
16987 * script/execute.c (grub_script_execute_cmdwhile): New function.
16988 * script/parser.y (command): New commands.
16989 (whilecmd): New grammar rule.
16990 (untilcmd): New grammar rule.
16991 * script/script.c (grub_script_create_cmdwhile): New function.
16992 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
16995 * tests/grub_script_while1.in: New testcase.
16996 * conf/tests.rmk: Rule for new testcase.
16998 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17000 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
17003 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
17005 GRUB_BACKGROUND support.
17007 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
17008 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
17010 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17012 Load fonts and modules for gfxmenu in grub-mkconfig.
17013 Idea by: Mario Vazquez
17015 * util/grub.d/00_header.in: Load pf2 and image modules.
17017 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17019 grub-mkconfig multiple terminal support.
17021 * util/grub-mkconfig.in: Handle multiple terminals correctly.
17022 * util/grub.d/00_header.in: Likewise.
17024 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
17026 * Makefile.in: Specify files explicitly instead of using $< and $@ since
17027 we use cd $(srcdir).
17029 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
17031 * util/grub.d/10_linux.in: Only use the first word of
17032 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
17033 spaces in GRUB_DISTRIBUTOR.
17034 * util/grub.d/10_kfreebsd.in: Likewise.
17035 * util/grub.d/10_hurd.in: Likewise.
17037 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
17039 Fix unit testing framework for Qemu 0.12.
17041 * tests/util/grub-shell.in: Remove -serial stdio option.
17043 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17045 POSIX header file wrappers.
17047 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
17049 * lib/posix_wrap/ctype.h: Likewise.
17050 * lib/posix_wrap/errno.h: Likewise.
17051 * lib/posix_wrap/langinfo.h: Likewise.
17052 * lib/posix_wrap/limits.h: Likewise.
17053 * lib/posix_wrap/localcharset.h: Likewise.
17054 * lib/posix_wrap/stdint.h: Likewise.
17055 * lib/posix_wrap/stdio.h: Likewise.
17056 * lib/posix_wrap/stdlib.h: Likewise.
17057 * lib/posix_wrap/string.h: Likewise.
17058 * lib/posix_wrap/sys/types.h: Likewise.
17059 * lib/posix_wrap/unistd.h: Likewise.
17060 * lib/posix_wrap/wchar.h: Likewise.
17061 * lib/posix_wrap/wctype.h: Likewise.
17062 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
17063 (grub_script.yy.h): Likewise.
17064 * script/yylex.l: Remove POSIX emulation #defines.
17065 * Makefile.in (POSIX_CFLAGS): New variable.
17066 (GNULIB_UTIL_CFLAGS): Likewise.
17070 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
17071 (regexp_mod_SOURCES): New variable.
17072 (regexp_mod_CFLAGS): Likewise.
17073 (regexp_mod_LDFLAGS): Likewise.
17074 * commands/regexp.c: New file.
17075 * gnulib/regcomp.c: New file. Imported from gnulib.
17076 * gnulib/regex.c: Likewise.
17077 * gnulib/regex_internal.c: Likewise.
17078 * gnulib/regex_internal.h: Likewise.
17079 * gnulib/regexec.c: Likewise.
17080 * gnulib/regex.h: Likewise.
17082 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17084 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
17085 unsupported video mode types.
17087 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17089 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
17091 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17093 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
17094 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
17096 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
17098 Remove unused grub_vga_get_font.
17100 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
17101 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
17103 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17105 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
17106 * include/grub/misc.h: Likewise.
17108 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17110 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
17111 for which failure is fatal.
17113 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17115 * util/grub-install.in: Use mkdir -p to create grub directory.
17116 * util/i386/efi/grub-install.in: Likewise.
17117 * util/ieee1275/grub-install.in: Likewise.
17119 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17121 * Makefile.in (LEX): new variable.
17123 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17125 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
17126 `=' and added double quotes on operands of this equality test.
17128 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
17130 * Makefile.in (uninstall): Remove a leftover debug echo.
17131 Reported by: Grégoire Sutre
17133 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
17135 MIPS multiboot2 support.
17137 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
17138 (multiboot2_mod_SOURCES): New variable.
17139 (multiboot2_mod_CFLAGS): Likewise.
17140 (multiboot2_mod_LDFLAGS): Likewise.
17141 (multiboot2_mod_ASFLAGS): Likewise.
17142 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
17144 (MULTIBOOT_ENTRY_REGISTER): Likewise.
17145 (MULTIBOOT_MBI_REGISTER): Likewise.
17146 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
17147 (MULTIBOOT_ELF32_MACHINE): Likewise.
17148 (MULTIBOOT_ELF64_MACHINE): Likewise.
17149 * include/grub/mips/multiboot.h: New file.
17150 * include/grub/video.h (grub_video_driver_id): New type
17151 GRUB_VIDEO_DRIVER_SM712.
17152 (grub_video_get_info_and_fini): Export.
17153 (grub_video_get_palette): Likewise.
17154 (grub_video_get_driver_id): Likewise.
17155 * include/multiboot2.h: Resynced with spec.
17156 * loader/i386/multiboot.c: Moved from here ...
17157 * loader/multiboot.c: ... here. All users updated.
17158 (grub_multiboot_boot): Use platform-specific macros.
17159 * loader/i386/multiboot_elfxx.c: Moved from here ...
17160 * loader/multiboot_elfxx.c: ... here. All users updated.
17161 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
17162 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
17163 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
17165 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17167 Import gnulib argp module.
17169 * gnulib/argp-ba.c: New file.
17170 * gnulib/argp-eexst.c: Likewise.
17171 * gnulib/argp-fmtstream.c: Likewise.
17172 * gnulib/argp-fmtstream.h: Likewise.
17173 * gnulib/argp-fs-xinl.c: Likewise.
17174 * gnulib/argp-help.c: Likewise.
17175 * gnulib/argp-namefrob.h: Likewise.
17176 * gnulib/argp-parse.c: Likewise.
17177 * gnulib/argp-pin.c: Likewise.
17178 * gnulib/argp-pv.c: Likewise.
17179 * gnulib/argp-pvh.c: Likewise.
17180 * gnulib/argp-version-etc.c: Likewise.
17181 * gnulib/argp-version-etc.h: Likewise.
17182 * gnulib/argp-xinl.c: Likewise.
17183 * gnulib/argp.h: Likewise.
17185 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17187 * kern/device.c (grub_device_iterate): Clear errors after failed
17190 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17192 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
17193 returned by firmware.
17195 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17197 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
17198 compilation on coreboot and qemu
17200 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
17202 * include/multiboot2.h: Resync with spec.
17204 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
17206 Multiboot2 tag support
17208 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
17209 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
17210 Remove loader/multiboot_loader.c.
17211 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
17212 (grub_multiboot2_real_boot): Likewise.
17213 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
17214 (grub_get_multiboot_mmap_count): New proto.
17215 (grub_fill_multiboot_mmap): Likewise.
17216 (grub_multiboot_set_video_mode): Likewise.
17217 (grub_multiboot_set_console): Likewise.
17218 (grub_multiboot_load): Likewise.
17219 (grub_multiboot_load_elf): Likewise.
17220 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
17221 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
17222 * include/multiboot.h: Resynced with specification.
17223 * include/multiboot2.h: Resynced with specification.
17224 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
17225 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
17226 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
17227 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
17229 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
17230 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
17231 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
17233 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
17235 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
17236 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
17238 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
17239 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
17240 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
17242 * loader/i386/multiboot_mbi2.c: New file.
17244 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
17246 Resync with gnulib.
17248 * Makefile.in (GNULIB_CFLAGS): New variable.
17249 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
17250 (grub_script_check_CFLAGS): New variable.
17251 * gnulib/alloca.h: Resync with gnulib.
17252 * gnulib/error.c: Likewise.
17253 * gnulib/error.h: Likewise.
17254 * gnulib/fnmatch.c: Likewise.
17255 * gnulib/fnmatch_loop.c: Likewise.
17256 * gnulib/getdelim.c: Likewise.
17257 * gnulib/getline.c: Likewise.
17258 * gnulib/getopt.c: Likewise.
17259 * gnulib/getopt1.c: Likewise.
17260 * gnulib/getopt_int.h: Likewise.
17261 * gnulib/gettext.h: Likewise.
17262 * gnulib/progname.c: Likewise.
17263 * gnulib/progname.h: Likewise.
17265 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
17267 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
17268 which is the case with --disabled-nls.
17270 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
17271 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
17272 * util/misc.c: Likewise.
17273 * util/mkisofs/mkisofs.c: Likewise.
17274 * util/mkisofs/mkisofs.h: Likewise.
17276 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
17278 Simplify Apple CC support.
17280 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
17281 Add 0 byte at the end not to have a symbol with empty target.
17282 * mmap/i386/pc/mmap_helper.S: Likewise.
17283 * genmk.rb: Ignore errors 2030 and 2050.
17284 * kern/i386/pc/startup.S: Use LOCAL when possible.
17286 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
17288 Testcase and the fix for final semicolon on cmdline.
17290 * tests/grub_script_final_semicolon.in: New testcase.
17291 * conf/tests.rmk: Rules for the new testcase.
17292 * script/parser.y: Grammar fix.
17294 2010-03-26 BVK Chaitanya <bvk@localhost>
17296 Blank lines testcase for GRUB script.
17298 * tests/grub_script_blanklines.in: New testcase.
17299 * conf/tests.rmk: Rules for the new testcase.
17301 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17303 Don't use __FILE__.
17305 * genmk.rb: Add -DGRUB_FILE to all C targets.
17306 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
17307 * include/grub/list.h: Likewise.
17308 * include/grub/misc.h: Likewise.
17309 * include/grub/mm.h: Likewise.
17310 * include/grub/test.h: Likewise.
17311 * kern/mm.c: Likewise.
17312 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
17314 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17316 Sunpc partitions support.
17318 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
17319 (grub_fstest_SOURCES): Likewise.
17320 (pkglib_MODULES): Add part_sunpc.mod.
17321 (part_sunpc_mod_SOURCES): New variable.
17322 (part_sunpc_mod_CFLAGS): Likewise.
17323 (part_sunpc_mod_LDFLAGS): Likewise.
17324 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
17325 * partmap/sunpc.c: New file.
17327 2010-03-26 BVK Chaitanya <bvk@localhost>
17329 For loop support to GRUB script.
17331 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
17332 (grub_script_create_cmdfor): New function prototype.
17333 (grub_script_execute_cmdfor): New function prototype.
17334 * script/execute.c (grub_script_execute_cmdfor): New function.
17335 * script/parser.y (command): New for command.
17336 (forcmd): New grammar rule.
17337 * script/script.c (grub_script_create_cmdfor): New function.
17338 * util/grub-script-check.c (grub_script_execute_cmdfor): New
17340 * tests/grub_script_for1.in: New testcase.
17341 * conf/tests.rmk: Rules for new testcase.
17343 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17347 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
17348 'partition' is NULL, grub_partition_get_start already does that.
17349 * commands/loadenv.c (check_blocklists): Likewise.
17350 (write_blocklists): Likewise.
17351 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
17352 (grub_fstest_SOURCES): Likewise.
17353 (pkglib_MODULES): Add part_bsd.mod.
17354 (part_bsd_mod_SOURCES): New variable.
17355 (part_bsd_mod_CFLAGS): Likewise.
17356 (part_bsd_mod_LDFLAGS): Likewise.
17357 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
17358 (grub_emu_SOURCES): Likewise.
17359 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17360 * include/grub/bsdlabel.h: New file.
17361 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
17363 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
17364 (grub_partition_map_list): New variable.
17365 (grub_partition_map_register): Inline.
17366 (grub_partition_map_unregister): Likewise.
17367 (FOR_PARTITION_MAPS): New macro.
17368 (grub_partition_map_iterate): Removed.
17369 (grub_partition_get_start): Handle nested partitions.
17370 * include/grub/msdos_partition.h: Remove bsd-related entries.
17371 (grub_pc_partition): Remove.
17372 * kern/disk.c (grub_disk_close): Free partition data.
17373 (grub_disk_adjust_range): Handle nested partitions.
17374 * kern/partition.c (grub_partition_map_probe): New function.
17375 (grub_partition_probe): Parse name to number, handle subpartitions.
17376 (get_partmap): New function.
17377 (grub_partition_iterate): Handle subpartitions.
17378 (grub_partition_get_name): Likewise.
17379 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
17380 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
17381 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
17382 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
17384 (acorn_partition_map_probe): Remove.
17385 (acorn_partition_map_get_name): Likewise.
17386 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
17388 Set 'index' to 0 since there can be only one partition entry per sector.
17389 (amiga_partition_map_probe): Remove.
17390 (amiga_partition_map_get_name): Likewise.
17391 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
17393 Set 'offset' and 'index' to real positions of partitions.
17394 (apple_partition_map_probe): Remove.
17395 (apple_partition_map_get_name): Likewise.
17396 * partmap/bsdlabel.c: New file.
17397 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
17399 Allocate 'data' so it can be correctly freed.
17400 Set 'index' to offset inside sector.
17401 (gpt_partition_map_probe): Remove.
17402 (gpt_partition_map_get_name): Likewise.
17403 * partmap/msdos.c (grub_partition_parse): Remove.
17404 (pc_partition_map_iterate): Don't force raw access.
17406 Make 'ext_offset' a local variable.
17407 (pc_partition_map_probe): Remove.
17408 (pc_partition_map_get_name): Remove.
17409 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
17411 (sun_partition_map_probe): Remove.
17412 (sun_partition_map_get_name): Likewise.
17413 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
17414 (grub_pcpart_type): Likewise.
17415 * util/hostdisk.c (open_device): Handle new numbering scheme.
17416 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
17417 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
17418 * util/grub-probe.c (probe_partmap): Handle nested paritions.
17419 * util/grub-install.in: Insert all subpartition modules.
17420 * util/ieee1275/grub-install.in: Likewise.
17422 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
17424 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
17427 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
17429 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
17431 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
17433 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
17434 match where 'make install' puts them.
17435 * util/i386/efi/grub-install.in: Likewise.
17437 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
17439 * .bzrignore: Add gentrigtables, grub-script-check,
17440 grub_script_check_init.c, grub_script_check_init.h, and
17443 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
17445 * kern/parser.c: Indented.
17447 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
17449 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
17451 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
17453 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
17454 alpha_mask_size == 0 case.
17456 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
17458 GRUB shell lexer and parser improvements.
17460 * conf/any-emu.rmk: Build rule updates.
17461 * conf/common.rmk: Likewise.
17462 * conf/i386-coreboot.rmk: Likewise.
17463 * conf/i386-efi.rmk: Likewise.
17464 * conf/i386-ieee1275.rmk: Likewise.
17465 * conf/i386-pc.rmk: Likewise.
17466 * conf/powerpc-ieee1275.rmk: Likewise.
17467 * conf/x86_64-efi.rmk: Likewise.
17469 * configure.ac: Configure check for flex.
17471 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
17473 (grub_lexer_param): Struct member updates.
17474 (grub_parser_param): Likewise.
17475 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
17476 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
17477 (grub_script_lexer_init): Prototype update.
17478 (grub_script_lexer_record_start): Likewise.
17479 (grub_script_lexer_record_stop): Likewise.
17480 (grub_script_lexer_yywrap): New function prototype.
17481 (grub_script_lexer_fini): Likewise.
17482 (grub_script_execute_argument_to_string): Removed by...
17483 (grub_script_execute_argument_to_argv): ...better version.
17485 * script/execute.c (ROUND_UPTO): New macro.
17486 (grub_script_execute_cmdline): Out of memory fixes.
17487 (grub_script_execute_menuentry): Likewise.
17488 (grub_script_execute_argument_to_string): Removed. Update all
17490 (grub_script_execute_argument_to_argv): ...better version.
17491 * script/function.c (grub_script_function_create): Use
17492 grub_script_execute_argument_to_argv instead of
17493 grub_script_execute_argument_to_string.
17495 * script/lexer.c (check_varstate): Removed.
17496 (check_textstate): Removed.
17497 (grub_script_lexer_record_start): Likewise.
17498 (grub_script_lexer_record_stop): Likewise.
17499 (recordchar): Replaced with...
17500 (grub_script_lexer_record): ...new function.
17501 (nextchar): Removed.
17502 (grub_script_lexer_init): Rewritten.
17503 (grub_script_yylex): Rewritten.
17504 (append_newline): New function.
17505 (grub_script_lexer_yywrap): New function.
17506 (grub_script_lexer_fini): New function.
17507 (grub_script_yyerror): Sets error flag.
17509 * script/yylex.l: New file.
17510 (grub_lexer_yyfree): Wrapper for flex yyffre.
17511 (grub_lexer_yyalloc): Likewise.
17512 (grub_lexer_yyrealloc): Likewise.
17513 * script/parser.y: Refactored.
17515 * script/script.c (grub_script_arg_add): Out of memory fixes.
17516 (grub_script_add_arglist): Likewise.
17517 (grub_script_create_cmdline): Likewise.
17518 (grub_script_create_cmdmenu): Likewise.
17519 (grub_script_add_cmd): Likewise.
17520 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
17521 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
17524 * tests/grub_script_echo1.in: New testcase.
17525 * tests/grub_script_vars1.in: New testcase.
17526 * tests/grub_script_echo_keywords.in: New testcase.
17528 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17530 Remove some redundancy in build system.
17532 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
17533 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
17534 (TARGET_LDFLAGS): Add -nostdlib.
17535 (TARGET_IMG_LDFLAGS): Likewise.
17536 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
17537 anything since mmap isn't available.
17538 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
17540 (pkglib_MODULES): Remove reboot.mod.
17541 (reboot_mod_SOURCES): Removed.
17542 (reboot_mod_CFLAGS): Likewise.
17543 (reboot_mod_LDFLAGS): Likewise.
17544 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
17545 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
17546 (DEFSYMFILES): Add kernel_syms.lst.
17547 (kernel_img_HEADERS): Add common headers.
17548 (symlist.c): New target.
17549 (kernel_syms.lst): Likewise.
17550 (pkglib_MODULES): Add memdisk.mod.
17551 (memdisk_mod_SOURCES): New variable.
17552 (memdisk_mod_CFLAGS): Likewise.
17553 (memdisk_mod_LDFLAGS): Likewise.
17554 (pkglib_MODULES): Add reboot.mod.
17555 (reboot_mod_SOURCES): New variable.
17556 (reboot_mod_CFLAGS): Likewise.
17557 (reboot_mod_LDFLAGS): Likewise.
17558 (pkglib_MODULES): Add date.mod.
17559 (date_mod_SOURCES): New variable.
17560 (date_mod_CFLAGS): Likewise.
17561 (date_mod_LDFLAGS): Likewise.
17562 (pkglib_MODULES): Add datehook.mod.
17563 (datehook_mod_SOURCES): New variable.
17564 (datehook_mod_CFLAGS): Likewise.
17565 (datehook_mod_LDFLAGS): Likewise.
17566 (pkglib_MODULES): Add lsmmap.mod.
17567 (lsmmap_mod_SOURCES): New variable.
17568 (lsmmap_mod_CFLAGS): Likewise.
17569 (lsmmap_mod_LDFLAGS): Likewise.
17570 (pkglib_MODULES): Add boot.mod.
17571 (boot_mod_SOURCES): New variable.
17572 (boot_mod_CFLAGS): Likewise.
17573 (boot_mod_LDFLAGS): Likewise.
17574 * conf/i386-coreboot.rmk: Removed redundant parts.
17575 * conf/i386-ieee1275.rmk: Likewise.
17576 * conf/i386-pc.rmk: Likewise.
17577 * conf/mips-yeeloong.rmk: Likewise.
17578 * conf/mips.rmk: Likewise.
17579 * conf/powerpc-ieee1275.rmk: Likewise.
17580 * conf/sparc64-ieee1275.rmk: Likewise.
17581 * conf/x86_64-efi.rmk: Likewise.
17582 * conf/i386-coreboot.rmk: Moved qemu parts ..
17583 * conf/i386-qemu.rmk: ... here
17584 * conf/i386-efi.rmk: Moved common parts to...
17585 * conf/x86-efi.rmk: ... here.
17586 * conf/i386.rmk: Added modules common to all x86 variants.
17587 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
17588 * disk/memdisk.c: Remove grub/machine/kernel.h.
17589 * gensymlist.sh.in: Include symbol.h.
17590 * hook/datehook.c: Correct module name.
17591 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
17592 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
17593 * include/grub/i386/efi/serial.h: New file.
17594 * include/grub/x86_64/efi/serial.h: Likewise.
17595 * util/time.c: Likewise.
17596 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
17598 2010-03-14 Colin King <colin.king@ubuntu.com>
17599 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
17601 Shrink the pre-partition-table part of boot.img by eight bytes.
17603 * boot/i386/pc/boot.S (ERR): New macro.
17604 (chs_mode): Use ERR.
17605 (geometry_error): Likewise.
17606 (hd_probe_error): Remove. This is only used once, so we wrwite
17608 (read_error): Instead of printing read_error_string, just set up
17609 %si and fall through to ...
17610 (error_message): ... this new function, also used by ERR.
17612 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
17614 Speed up consecutive hostdisk operations on the same device.
17616 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
17617 (grub_util_biosdisk_open): Initialise disk->data.
17618 (struct linux_partition_cache): New structure.
17619 (linux_find_partition): Cache partition start positions; these are
17620 expensive to compute on every read and write.
17621 (open_device): Cache open file descriptor in disk->data, so that we
17622 don't have to reopen it and flush the buffer cache for consecutive
17623 operations on the same device.
17624 (grub_util_biosdisk_close): New function.
17625 (grub_util_biosdisk_dev): Set `close' member.
17627 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
17628 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
17629 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
17630 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
17631 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
17633 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17635 Compile parts of grub-emu as modules.
17637 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
17638 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
17639 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
17640 (all-local): Add $(GRUB_EMU).
17641 (install-local): Install $(GRUB_EMU).
17642 (uninstall): Uninstall $(GRUB_EMU).
17643 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
17644 * kern/dl.c: Likewise.
17645 * commands/sleep.c: Not include machine/time.h.
17646 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
17647 (COMMON_CFLAGS): Likewise.
17648 (sbin_UTILITIES): Remove grub-emu.
17649 (grub_emu_SOURCES): Removed.
17650 (kernel_img_RELOCATABLE): New variable.
17651 (pkglib_PROGRAMS): Add kernel.img.
17652 (kernel_img_SOURCES): New variable
17653 (kernel_img_CFLAGS): Likewise.
17654 (kernel_img_LDFLAGS): Likewise.
17655 (TARGET_NO_STRIP): Likewise.
17656 (TARGET_NO_DYNAMIC_MODULES): Likewise.
17657 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
17658 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
17659 (grub-emu): New target.
17660 (GRUB_EMU): New variable.
17661 * configure.ac: Whitelist -emu as possible x86_64 architecture.
17662 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
17663 * loader/xnu.c: Likewise.
17664 * include/grub/pci.h: Likewise.
17665 * genemuinit.sh: New file.
17666 * genemuinitheader.sh: Likewise.
17667 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
17668 Support TARGET_NO_DYNAMIC_MODULES.
17669 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
17670 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
17671 * disk/loopback.c: Likewise.
17672 * font/font_cmd.c: Likewise.
17673 * partmap/acorn.c: Likewise.
17674 * partmap/amiga.c: Likewise.
17675 * partmap/apple.c: Likewise.
17676 * partmap/gpt.c: Likewise.
17677 * partmap/msdos.c: Likewise.
17678 * partmap/sun.c: Likewise.
17679 * parttool/msdospart.c: Likewise.
17680 * term/gfxterm.c: Likewise.
17681 * video/bitmap.c: Likewise.
17682 * video/readers/jpeg.c: Likewise.
17683 * video/readers/png.c: Likewise.
17684 * video/readers/tga.c: Likewise.
17685 * video/video.c: Likewise.
17686 * util/grub-emu.c (read_command_list): Removed.
17687 (main): Don't call util_init_nls.
17688 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
17689 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
17691 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17693 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
17694 date.mod, datehook.mod.
17695 (datetime_mod_SOURCES): New variable.
17696 (datetime_mod_CFLAGS): Likewise.
17697 (datetime_mod_LDFLAGS): Likewise.
17698 (date_mod_SOURCES): Likewise.
17699 (date_mod_CFLAGS): Likewise.
17700 (date_mod_LDFLAGS): Likewise.
17701 (datehook_mod_SOURCES): Likewise.
17702 (datehook_mod_CFLAGS): Likewise.
17703 (datehook_mod_LDFLAGS): Likewise.
17704 * conf/sparc64-ieee1275.rmk: Likewise.
17705 * lib/ieee1275/datetime.c: New file.
17707 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17709 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
17710 (ieee1275_fb_mod_SOURCES): New variable.
17711 (ieee1275_fb_mod_CFLAGS): Likewise.
17712 (ieee1275_fb_mod_LDFLAGS): Likewise.
17713 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
17715 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
17716 (HEAP_MAX_ADDR): Likewise.
17717 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
17719 Correct stop condition.
17720 (grub_ieee1275_devices_iterate): New function.
17721 * video/ieee1275.c: New file.
17723 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17725 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
17727 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
17729 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
17730 SCRATCH_PAD_DISKBOOT as scratch.
17731 (bootit): Pass Openfirmware pointer in %o4.
17732 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
17734 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
17735 with util/grub-mkrawimage.c.
17736 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
17737 * include/grub/aout.h (AOUT_MID_SUN): New definition.
17738 (grub_aout_get_type) [GRUB_UTIL]: Removed.
17739 (grub_aout_load) [GRUB_UTIL]: Likewise.
17740 * include/grub/kernel.h (grub_modules_get_end): New proto.
17741 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
17742 (SCRATCH_PAD_BOOT): New definition.
17743 (SCRATCH_PAD_DISKBOOT): Likewise.
17744 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
17745 * include/grub/sparc64/ieee1275/ieee1275.h
17746 (grub_ieee1275_original_stack): New variable
17747 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17749 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
17750 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
17751 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
17752 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
17753 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
17754 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
17755 (grub_platform_image_format_t): New type.
17756 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
17757 * kern/main.c (grub_modules_get_end)
17758 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
17759 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
17760 (codestart): Switch stacks.
17761 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
17763 (grub_heap_init): Use grub_modules_get_end.
17764 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
17766 * util/grub-mkrawimage.c (generate_image): Support sparc64.
17768 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
17770 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
17772 * util/grub-mkrescue.in: Base ISO UUID on UTC.
17774 2010-03-08 Matt Kraai <kraai@ftbfs.org>
17776 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
17779 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
17781 * genmoddep.awk: Output all missing symbols and not only first.
17783 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17785 * NEWS: Put the date of 1.98 release.
17787 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17789 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
17792 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17794 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
17795 completition in the middle of string.
17797 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17799 * util/grub-mkrescue.in: Use mktemp with explicit template.
17801 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17803 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
17805 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17807 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
17810 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17812 Fix FreeBSD compilation.
17814 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
17815 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
17817 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17819 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
17821 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17823 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
17825 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17827 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
17829 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
17831 Support relative image path in theme file.
17833 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
17834 (image_set_property): Handle theme_dir and relative path.
17836 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17838 * configure.ac: Alias amd64 to x86_64.
17840 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17842 * NEWS: mention multiboot on EFI.
17844 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17846 * kern/main.c (grub_load_modules): Handle errors from init functions of
17849 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17851 * normal/autofs.c (autoload_fs_module): Handle errors.
17853 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17855 Disable linux.mod on qemu-mips since it's not functional and leads
17856 to compilation failure.
17858 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
17859 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
17860 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
17861 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
17862 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
17863 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
17864 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
17865 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
17866 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
17867 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
17868 Reported by: BVK Chaitanya
17870 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
17872 * INSTALL: Add gettext as a dependency and add qemu to a new section
17873 "Prerequisites for make-check".
17875 2010-03-04 Christian Franke <franke@computer.org>
17877 * util/grub-pe2elf.c: Add missing include "progname.h".
17879 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17881 * normal/crypto.c (read_crypto_list): Fix a typo.
17882 Reported by: Seth Goldberg.
17884 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17886 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
17887 Reported by: Seth Goldberg.
17889 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17891 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
17894 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17896 * genmk.rb: Remove terminal*.lst in make clean.
17897 Reported by: Seth Goldberg.
17899 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17901 * util/i386/efi/grub-install.in: Copy gettext files.
17903 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17905 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
17907 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17909 Wait for user entry basing on presence of output rather than on errors.
17911 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
17912 (grub_install_newline_hook): Likewise.
17913 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
17914 * normal/menu.c (show_menu): Check line_counter to determine presence
17916 * normal/term.c (grub_normal_line_counter): New variable.
17917 (grub_normal_get_line_counter): New function.
17918 (grub_install_newline_hook): Likewise.
17920 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17922 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
17924 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17926 * configure.ac: Update version to 1.98.
17928 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
17930 * util/grub.d/10_linux.in (linux_entry): Don't default to
17931 gfxpayload=keep if Linux doesn't support video handover.
17933 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
17935 Don't compile video modules on yeeloong since video subsystem is part
17938 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
17939 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
17940 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
17941 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
17942 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
17943 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
17944 * include/grub/bitmap_scale.h: Likewise.
17945 * include/grub/bufio.h: Likewise.
17946 * include/grub/font.h: Likewise.
17947 * include/grub/gfxterm.h: Likewise.
17948 * include/grub/video.h: Likewise.
17949 * include/grub/vbe.h: Don't include video_fb.h.
17950 * video/i386/pc/vbe.c: Include video_fb.h.
17951 * commands/i386/pc/vbetest.c: Include video.h.
17953 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
17955 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
17956 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
17957 default entry if GRUB_SAVEDEFAULT=true. This allows using
17958 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
17959 saving a new default on every boot.
17961 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17963 * normal/crypto.c (read_crypto_list): Fix a memory leak.
17964 * normal/term.c (read_terminal_list): Likewise.
17965 * normal/main.c (grub_normal_init_page): Likewise.
17966 (grub_normal_read_line_real): Likewise.
17968 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17970 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
17972 Reported by: Seth Goldberg.
17974 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
17976 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
17977 duplicate declaration of `start'.
17979 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17981 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
17983 Reported by: Georgy Buranov
17985 2010-02-20 Carles Pina i Estany <carles@pina.cat>
17987 * util/grub-mkrawimage.c (usage): Change string formatting to
17990 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
17992 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
17995 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17997 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
17998 Reported by: Michael Suchanek.
18000 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18002 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
18003 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
18005 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
18007 Remove any reference to non-free fonts.
18009 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
18010 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
18011 uses non-free components.
18012 * font/font.c (grub_font_get_name): Remove example name.
18013 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
18014 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
18015 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
18016 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
18018 2010-02-16 Georgy Buranov <gburanov@gmail.com>
18020 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
18022 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
18024 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
18026 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
18028 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
18030 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
18032 * gensymlist.sh.in: Use TARGET_CC instead of CC.
18034 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
18036 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
18037 * docs/grub.texi (Command-line and menu entry commands): Document play
18040 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
18042 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
18043 parse arguments as inline tempo and notes. Move code for playing notes
18045 (play): ... new function.
18047 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
18049 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
18050 grub_uint16_t instead of short.
18051 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
18052 disk from little endian to cpu endianness.
18054 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
18056 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
18057 GRUB_TICKS_PER_SECOND instead of 120.
18059 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18061 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
18062 escape sequence after \e.
18064 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18066 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
18067 non-ASCII characters.
18069 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18071 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
18072 set root in single quotes to prevent \, from being unescaped.
18074 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18076 Prevent unknown commands from stopping menuentry execution.
18078 * script/execute.c (grub_script_execute_cmdline): Print error after
18081 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18083 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
18084 Reported by: Pavel Pisa.
18086 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18088 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
18090 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18092 Merge grub_ieee1275_map_physical into grub_map and rename to
18095 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
18096 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
18098 * kern/ieee1275/openfw.c (grub_map): Rename to ...
18099 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
18101 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
18103 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18105 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
18106 opening and not after.
18108 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18110 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
18113 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18115 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
18116 (alloc_phys): Use ALIGN_UP instead of align_addr.
18118 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18120 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
18122 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18124 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
18126 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18128 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
18131 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18133 Fix over-4GiB seek on sparc64.
18135 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
18136 Replace pos_i and pos_lo with pos. All users updated.
18137 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
18139 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
18141 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
18144 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18146 * util/grub-mkrawimage.c (main): Call set_program_name.
18148 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18150 Properly align 64-bit targets.
18152 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
18153 (generate_image): Use ALIGN_ADDR.
18155 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18157 Properly create cross-endian images.
18159 * include/grub/types.h (grub_host_to_target_addr): New macro
18160 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
18162 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18164 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
18166 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
18168 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
18170 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
18171 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
18172 (grub_linux_boot): Divide by 64K when on VESA.
18174 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
18176 Support GRUB_GFXPAYLOAD_LINUX.
18178 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
18179 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
18181 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
18183 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
18184 to show messages instead of discarding them.
18185 Process errors after executing command and not before. Keep old method
18188 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
18190 * configure.ac: Check for ft2build.h.
18192 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18194 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
18196 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18198 * genkernsyms.sh.in: Use TARGET_CC.
18200 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
18204 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18206 * include/grub/multiboot2.h: Remove leftover file.
18207 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
18208 * include/grub/partition.h [GRUB_UTIL]: Likewise.
18210 2010-02-07 Yves Blusseau <blusseau@zetam.org>
18212 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
18214 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18216 Fix warnings in grub-emu when compiling with maximum warning options.
18218 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
18219 (grub_arch_modules_addr): Return 0 and not NULL.
18220 * util/misc.c (ENABLE_RELOCATABLE): New definition.
18221 (xstrdup): Use newstr instead of dup.
18222 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
18223 of disk to dsk to avoid shadowing.
18224 (find_free_slot): Fix prototype.
18225 * util/getroot.c (grub_util_is_dmraid): Make static.
18226 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
18227 Add missing prototype.
18228 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
18230 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18232 * loader/i386/linux.c (grub_linux_setup_video): Handle error
18235 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18237 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
18240 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18242 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
18243 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
18244 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
18245 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
18246 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
18247 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
18249 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18251 * include/grub/err.h (grub_err_printf): Don't export.
18253 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18255 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
18257 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18259 * include/grub/i18n.h (grub_gettext_dummy): Removed.
18260 * kern/misc.c (grub_gettext_dummy): Make static.
18262 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18264 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
18266 * kern/term.c (grub_putchar): Likewise.
18268 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18270 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
18271 buggy hook call and memory leak.
18273 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18275 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
18277 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18279 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
18281 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18283 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
18285 Return grub_errno on allocation error.
18287 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18289 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
18291 2010-02-06 Yves Blusseau <blusseau@zetam.org>
18293 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
18294 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
18296 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18298 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
18300 (grub_pxefs_open): Likewise.
18302 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18304 * util/grub.d/10_hurd.in: Add --class information to menuentries.
18305 * util/grub.d/10_kfreebsd.in: Likewise.
18306 * util/grub.d/10_linux.in: Likewise.
18308 2010-02-06 Colin D Bennett <colin@gibibit.com>
18310 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
18311 (gfxmenu_mod_SOURCES): New variable.
18312 (gfxmenu_mod_CFLAGS): Likewise.
18313 (gfxmenu_mod_LDFLAGS): Likewise.
18314 * include/grub/term.h (grub_term_set_current_output): Declare
18316 * docs/gfxmenu-theme-example.txt: New file.
18317 * gfxmenu/gfxmenu.c: Likewise.
18318 * gfxmenu/gui_box.c: Likewise.
18319 * gfxmenu/gui_canvas.c: Likewise.
18320 * gfxmenu/gui_circular_progress.c: Likewise.
18321 * gfxmenu/gui_image.c: Likewise.
18322 * gfxmenu/gui_label.c: Likewise.
18323 * gfxmenu/gui_list.c: Likewise.
18324 * gfxmenu/gui_progress_bar.c: Likewise.
18325 * gfxmenu/gui_string_util.c: Likewise.
18326 * gfxmenu/gui_util.c: Likewise.
18327 * gfxmenu/icon_manager.c: Likewise.
18328 * gfxmenu/model.c: Likewise.
18329 * gfxmenu/named_colors.c: Likewise.
18330 * gfxmenu/theme_loader.c: Likewise.
18331 * gfxmenu/view.c: Likewise.
18332 * gfxmenu/widget-box.c: Likewise.
18333 * include/grub/gfxmenu_model.h: Likewise.
18334 * include/grub/gfxmenu_view.h: Likewise.
18335 * include/grub/gfxwidgets.h: Likewise.
18336 * include/grub/gui.h: Likewise.
18337 * include/grub/gui_string_util.h: Likewise.
18338 * include/grub/icon_manager.h: Likewise.
18340 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18342 Agglomerate scrolling in gfxterm.
18344 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
18345 (grub_virtual_screen_setup): Initialise 'total_screen'.
18346 (write_char): Split to ...
18347 (paint_char): ... this ...
18348 (write_char): ... and this.
18349 (paint_char): Handle delayed scrolling.
18350 (draw_cursor): Likewise.
18351 (scroll_up): Split to ...
18352 (real_scroll): ... this ...
18353 (scroll_up): ... and this.
18354 (real_scroll): Handle multi-line scroll and draw below-the-bottom
18356 (grub_gfxterm_refresh): Call real_scroll.
18358 2010-02-06 Colin D Bennett <colin@gibibit.com>
18360 * include/grub/misc.h (grub_iscntrl): New inline function.
18361 (grub_isalnum): Likewise.
18362 (grub_strtol): Likewise.
18364 2010-02-06 Colin D Bennett <colin@gibibit.com>
18366 * normal/menu_text.c (get_entry_number): Move from here ...
18367 * normal/menu.c (get_entry_number): ... moved here.
18368 * include/grub/menu.h (grub_menu_get_default_entry_index):
18370 * normal/menu.c (grub_menu_get_default_entry_index): New function.
18371 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
18372 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
18373 (grub_menu_viewer_should_return): Likewise.
18374 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
18375 * normal/menu_text.c (run_menu): Enable menu switching.
18376 * normal/menu_viewer.c (should_return): New variable.
18377 (menu_viewer_changed): Likewise.
18378 (grub_menu_viewer_show_menu): Handle menu viewer changes.
18379 (grub_menu_viewer_should_return): New function.
18380 (menuviewer_write_hook): Likewise.
18381 (grub_menu_viewer_init): Likewise.
18383 2010-02-06 Colin D Bennet <colin@gibibit.com>
18384 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18386 Support for gfxterm in a window.
18388 * include/grub/gfxterm.h: New file.
18389 * include/grub/video.h (struct grub_video_rect): New declaration.
18390 (grub_video_rect_t): Likewise.
18391 * term/gfxterm.c (struct grub_gfxterm_window): New type.
18392 (refcount): New variable.
18393 (render_target): Likewise.
18394 (window): Likewise.
18395 (repaint_callback): Likewise.
18396 (grub_virtual_screen_setup): Use 'render_target'.
18397 (init_window): New function.
18398 (grub_gfxterm_init_window): Likewise.
18399 (grub_gfxterm_init): Check reference counter.
18401 (destroy_window): New function.
18402 (grub_gfxterm_destroy_window): Likewise.
18403 (grub_gfxterm_fini): Check reference counter.
18404 Use destroy_window.
18405 (redraw_screen_rect): Restore viewport.
18406 Use 'render_target' and 'window'.
18407 Call 'repaint_callback'.
18408 (write_char): Use 'render_target'.
18409 (draw_cursor): Likewise.
18410 (scroll_up): Restore viewport.
18411 Use 'render_target' and 'window'.
18412 Call 'repaint_callback'.
18413 (grub_gfxterm_cls): Likewise.
18414 (grub_gfxterm_refresh): Use 'window'.
18415 (grub_gfxterm_set_repaint_callback): New function.
18416 (grub_gfxterm_background_image_cmd): Use 'window'.
18417 (grub_gfxterm_get_term): New function.
18418 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
18420 2010-02-06 Colin D Bennett <colin@gibibit.com>
18422 Bitmap scaling support.
18424 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
18425 (bitmap_scale_mod_SOURCES): New variable.
18426 (bitmap_scale_mod_CFLAGS): Likewise.
18427 (bitmap_scale_mod_LDFLAGS): Likewise.
18428 * include/grub/bitmap_scale.h: New file.
18429 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
18430 (background_image_cmd_options): New variable.
18431 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
18432 (cmd): Rename and change type to ...
18433 (background_image_cmd_handle): ... this. All users updated.
18434 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
18435 * video/bitmap_scale.c: New file.
18437 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18441 * Makefile.in (LIBSDL): New variable.
18442 (enable_grub_emu_sdl): Likewise.
18443 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
18444 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
18445 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
18446 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
18447 * util/sdl.c: New file.
18449 2010-02-06 Colin D Bennett <colin@gibibit.com>
18450 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18452 Double buffering support.
18454 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
18455 * include/grub/video.h: Update comment.
18456 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
18458 (grub_video_fb_doublebuf_blit_init): New prototype.
18459 * term/gfxterm.c (scroll_up): Support double buffering.
18460 (grub_gfxterm_refresh): Likewise.
18461 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
18462 (grub_video_fb_doublebuf_blit_init): Likewise.
18463 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
18464 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
18465 'displayed_page', 'render_page' and 'update_screen'.
18466 (grub_video_vbe_fini): Free offscreen buffer.
18467 (doublebuf_pageflipping_commit): New function.
18468 (doublebuf_pageflipping_update_screen): Likewise.
18469 (doublebuf_pageflipping_init): Likewise.
18470 (double_buffering_init): Likewise.
18471 (grub_video_vbe_setup): Enable doublebuffering.
18472 (grub_video_vbe_swap_buffers): Implement.
18473 (grub_video_vbe_set_active_render_target): Handle double buffering.
18474 (grub_video_vbe_get_active_render_target): Likewise.
18475 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
18476 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
18477 (grub_video_vbe_enable_double_buffering): Likewise.
18478 (grub_video_vbe_swap_buffers): Use update_screen.
18479 (grub_video_set_mode): Use double buffering.
18481 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18483 * maintainance/gentrigtables.py: Remove.
18484 * lib/trig.c: Likewise.
18486 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
18488 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
18490 (trigtables.c): New rule.
18491 (gentrigtables): Likewise.
18492 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
18494 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18496 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
18499 2010-02-06 Colin D Bennet <colin@gibibit.com>
18501 Trigonometry support.
18503 * include/grub/trig.h: New file.
18504 * lib/trig.c: Likewise.
18505 * maintainance/gentrigtables.py: Likewise.
18506 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
18507 (trig_mod_SOURCES): New variable.
18508 (trig_mod_CFLAGS): Likewise.
18509 (trig_mod_LDFLAGS): Likewise.
18511 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18513 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
18516 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18518 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
18521 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
18523 * util/hostdisk.c (open_device): Don't use partition device when reading
18524 before the partition.
18525 (grub_util_biosdisk_read): Don't read from partition and before the
18526 partition in single operation.
18527 (grub_util_biosdisk_write): Don't write to partition and before the
18528 partition in single operation.
18530 2010-02-03 Torsten Landschoff <torsten@debian.org>
18532 * kern/disk.c (grub_disk_read): Fix offset computation when reading
18535 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
18537 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
18539 (grub_biosdisk_write): Refuse to write to CDROM.
18541 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
18543 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
18545 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
18547 * font/font.c (find_glyph): Check that bmp_idx is available before
18549 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
18550 with (font == NULL).
18552 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
18554 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
18556 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
18558 * include/grub/script_sh.h (sourcecode): Add const qualifier.
18559 * util/grub-script-check.c (getline): Fix empty lines case.
18561 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
18563 * Makefile.in (check): Exit with fail status when one of the tests
18565 * tests/example_functional_test.c (example_test): Fix reversed assert.
18566 * tests/example_unit_test.c (example_test): Likewise.
18568 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
18570 * util/grub.d/10_linux.in: This script does not use any of the
18571 contents of gettext.sh, only the external command `gettext', so stop
18572 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
18573 the same prefix as GRUB.)
18574 * util/grub.d/10_kfreebsd.in: Likewise.
18576 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18578 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
18581 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18583 * kern/disk.c (grub_disk_read): Fix offset computation when reading
18586 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18588 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
18589 having a 4KiB and not 32KiB buffer size.
18591 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18593 * util/hostfs.c: Include `<errno.h>'.
18594 (grub_hostfs_read): Handle errors from fseeko() and fread().
18596 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18598 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
18599 loop when using read hooks on files whose size isn't sector-aligned.
18601 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18603 Remove unused parameter.
18605 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
18606 (grub_iso9660_open): Remove initialization of `data->length'.
18608 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18610 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
18611 memleak conditions.
18613 2010-01-27 Carles Pina i Estany <carles@pina.cat>
18615 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
18616 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
18618 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18620 * util/bin2h.c (usage): Fix warning (space after backslash).
18622 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18624 * font/font.c: Include `grub/fontformat.h.
18625 Remove font file format constants.
18626 (grub_font_load): Use the new macros.
18627 * include/grub/fontformat.h: New file.
18628 * util/grub-mkfont.c: Include `grub/fontformat.c'.
18629 (write_font_pf2): Use the new macros.
18631 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18633 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
18636 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18638 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
18640 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
18641 (_start): Macroify `0x7F'.
18643 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
18644 (make_install_device): Use "(pxe)" as fallback prefix when booting
18647 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
18649 * configure.ac: Reset LIBS after check for libgcc symbols.
18651 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
18653 * util/hostdisk.c (open_device): Add trailing newline to debug
18656 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
18658 * configure.ac: Check for `limits.h'.
18659 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
18661 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
18663 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
18664 capitalize error strings.
18666 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
18668 * util/grub.d/10_hurd.in: Add a recovery mode.
18670 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
18672 * configure.ac: Check for libgcc symbols with -nostdlib.
18674 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
18676 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
18678 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18680 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
18681 stack since heap may be unavailable at that point.
18682 (grub_ofconsole_gotoxy): Likewise.
18684 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18686 * configure.ac: Check for _restgpr_14_x.
18687 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
18688 and _savegpr_* prototypes.
18690 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
18692 Use generic grub_reboot() for i386-efi.
18694 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
18695 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
18696 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
18698 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18700 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
18701 presence of "prefix" variable as it breaks when normal.mod is
18704 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18706 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
18707 stack since heap is unavailable at that point.
18709 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18711 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
18712 (grub_freebsd_bootinfo): Rewritten.
18713 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
18715 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18717 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
18719 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
18721 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
18724 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
18726 * util/misc.c (make_system_path_relative_to_its_root): Change the work
18727 around for handling "/" to the correct fix. Fix a memory leak. Use
18728 xstrdup instead of strdup.
18730 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18732 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
18734 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18736 Optimise glyph lookup by Basic Multilingual Plane lookup array.
18738 * font/font.c (struct grub_font): New member 'bmp_idx'.
18739 (font_init): Initialise 'bmp_idx'.
18740 (load_font_index): Fill 'bmp_idx'.
18741 (find_glyph): Make inline. Use bmp_idx for BMP characters.
18743 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18745 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
18748 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18750 Move context handling out of the kernel.
18752 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
18753 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
18754 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
18755 * conf/i386-efi.rmk: Likewise.
18756 * conf/i386-ieee1275.rmk: Likewise.
18757 * conf/i386-pc.rmk: Likewise.
18758 * conf/powerpc-ieee1275.rmk: Likewise.
18759 * conf/sparc64-ieee1275.rmk: Likewise.
18760 * conf/x86_64-efi.rmk: Likewise.
18761 * include/grub/env.h: Include grub/menu.h.
18762 (grub_env_var_type): Removed.
18763 (grub_env_var): Replaced field 'type' with 'global'.
18764 (grub_env_find): New prototype.
18765 (grub_env_context_open): Remove EXPORT_FUNC.
18766 (grub_env_context_close): Likewise.
18767 (grub_env_export): Likewise.
18768 (grub_env_set_data_slot): Removed.
18769 (grub_env_get_data_slot): Likewise.
18770 (grub_env_unset_data_slot): Likewise.
18771 (grub_env_unset_menu): New prototype.
18772 (grub_env_set_menu): Likewise.
18773 (grub_env_get_menu): Likewise.
18774 * include/grub/env_private.h: New file.
18775 * include/grub/normal.h (grub_context_init): New prototype.
18776 (grub_context_fini): Likewise.
18777 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
18778 * normal/context.c (grub_cmd_export): ... to here.
18779 * kern/env.c: Include env_private.h.
18780 (HASHSZ): Moved to include/grub/env_private.h.
18781 (grub_env_context): Likewise.
18782 (grub_env_sorted_var): Likewise.
18783 (current_context): Renamed from this ...
18784 (grub_current_context): ...to this. 'static' removed. All users updated.
18785 (grub_env_find): Removed 'static'.
18786 (grub_env_context_open): Moved to normal/context.c.
18787 (grub_env_context_close): Likewise.
18788 (grub_env_export): Likewise.
18789 (mangle_data_slot_name): Removed.
18790 (grub_env_set_data_slot): Likewise.
18791 (grub_env_get_data_slot): Likewise.
18792 (grub_env_unset_data_slot): Likewise.
18793 * kern/main.c (grub_set_root_dev): Don't export root.
18794 It will be done later.
18795 (grub_main): Don't export prefix.
18796 It will be done later.
18797 * normal/context.c: New file.
18798 * normal/main.c (free_menu): Use grub_env_unset_menu.
18799 (grub_normal_add_menu_entry): Use grub_env_get_menu.
18800 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
18801 (GRUB_MOD_INIT(normal)): Call grub_context_init.
18802 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
18804 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18808 * commands/setpci.c: New file.
18809 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
18810 (setpci_mod_SOURCES): New variable.
18811 (setpci_mod_CFLAGS): Likewise.
18812 (setpci_mod_LDFLAGS): Likewise.
18814 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18816 Byte-addressable PCI configuration space.
18818 * bus/pci.c (grub_pci_make_address): Use byte address instead of
18820 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
18821 GRUB_PCI_REG_CACHELINE.
18822 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
18823 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
18824 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
18825 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
18826 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
18827 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
18828 grub_pci_make_address.
18829 (lock_rom_area): Likewise.
18830 * commands/lspci.c (grub_lspci_iter): Use macroses
18831 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
18832 of grub_pci_make_address.
18833 * disk/ata.c (grub_ata_pciinit): Likewise.
18834 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
18835 (GRUB_PCI_REG_VENDOR): Likewise.
18836 (GRUB_PCI_REG_DEVICE): Likewise.
18837 (GRUB_PCI_REG_COMMAND): Likewise.
18838 (GRUB_PCI_REG_STATUS): Likewise.
18839 (GRUB_PCI_REG_REVISION): Likewise.
18840 (GRUB_PCI_REG_CLASS): Likewise.
18841 (GRUB_PCI_REG_CACHELINE): Likewise.
18842 (GRUB_PCI_REG_LAT_TIMER): Likewise.
18843 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
18844 (GRUB_PCI_REG_BIST): Likewise.
18845 (GRUB_PCI_REG_ADDRESSES): Likewise.
18846 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18847 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18848 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18849 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18850 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18851 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18852 (GRUB_PCI_REG_CIS_POINTER): Likewise.
18853 (GRUB_PCI_REG_SUBVENDOR): Likewise.
18854 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
18855 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
18856 (GRUB_PCI_REG_CAP_POINTER): Likewise.
18857 (GRUB_PCI_REG_IRQ_LINE): Likewise.
18858 (GRUB_PCI_REG_IRQ_PIN): Likewise.
18859 (GRUB_PCI_REG_MIN_GNT): Likewise.
18860 (GRUB_PCI_REG_MAX_LAT): Likewise.
18861 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
18862 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
18863 * video/efi_uga.c (find_framebuf): Likewise.
18864 * video/sm712.c (grub_video_sm712_setup): Likewise.
18865 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
18868 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18870 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
18871 can be reliably determined to be supported.
18873 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18875 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
18876 that VESA is supported.
18877 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
18880 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18882 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
18884 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18886 * util/misc.c (make_system_path_relative_to_its_root): Work around
18887 special-casing of "/", as previous incarnation of this routine did.
18889 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18891 Fix any-emu compilation.
18893 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
18894 * grub_bin2h_SOURCES: New variable.
18896 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18898 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
18900 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18902 * util/grub.d/00_header.in: Fix handling of locale_dir.
18904 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18906 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
18907 as possible unifont location (Gentoo).
18908 Reported by: Alexander Brüning
18910 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18912 Don't try to generate lists for kernel.img.
18914 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
18915 (pkglib_MODULES): Remove kernel.img.
18916 (kernel_img_EXPORTS): Removed.
18917 (kernel_img_RELOCATABLE): New variable.
18918 * conf/x86_64-efi.rmk: Likewise.
18919 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
18921 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18923 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
18924 grub_xasprintf or grub_snprintf.
18925 (grub_vsprintf): Likewise.
18926 (grub_snprintf): New proto.
18927 (grub_vsnprintf): Likewise.
18928 (grub_xasprintf): Likewise.
18929 (grub_xvasprintf): Likewise.
18930 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
18931 (grub_sprintf): Removed.
18932 (grub_vsnprintf): New function.
18933 (grub_snprintf): Likewise.
18934 (grub_xvasprintf): Likewise.
18935 (grub_xasprintf): Likewise.
18936 (grub_vsprintf): Renamed to ...
18937 (grub_vsnprintf_real): ...this. New argument max_len.
18939 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
18941 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
18942 fix grub-script-check warning.
18944 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18946 * include/grub/font.h (grub_font_load): Fix prototype.
18948 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18950 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
18952 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18954 * include/grub/x86_64/at_keyboard.h: New file.
18956 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18958 * loader/mips/linux.c: Include missing grub/i18n.h.
18960 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18962 * normal/menu.c (notify_execution_failure): Clarify error message.
18964 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18966 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
18967 return value (and revert all return statements). Update users.
18969 2010-01-20 Dan Merillat <debian@dan.merillat.org>
18971 * kern/device.c (grub_device_iterate): Allocate new part_ent
18972 structure based on sizeof (*p) rather than sizeof (p->next), to
18973 account for structure padding.
18975 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
18976 disk is NULL, which might happen for LVM physical volumes with no
18979 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18981 * loader/mips/linux.c (grub_cmd_initrd)
18982 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
18984 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18986 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
18987 (grub_video_video_init, grub_video_bitmap_init)
18988 (grub_font_manager_init, grub_term_gfxterm_init)
18989 (grub_at_keyboard_init): New extern declarations.
18990 (grub_machine_init): Initialize gfxterm and at_keyboard.
18992 * kern/main.c (grub_main): Revert grub_printf delay kludge.
18994 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
18995 `gfxterm.mod' into core image.
18997 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18998 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18999 (kernel_img_FORMAT): Copy to ...
19001 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
19002 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
19003 (kernel_img_FORMAT): ... here, and ...
19005 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
19006 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
19007 (kernel_img_FORMAT): ... here.
19009 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
19010 and input (at_keyboard) terminals in kernel.
19011 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
19013 (pkglib_MODULES): Remove `pci.mod'.
19014 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
19015 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
19016 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
19017 (at_keyboard_mod_LDFLAGS): Remove variables.
19019 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
19021 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
19023 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
19025 * include/grub/mips/libgcc.h: Only export symbols for functions
19026 that libgcc provides.
19028 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
19032 * bus/bonito.c: New file.
19033 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
19034 GRUB_PCI_NUM_DEVICES.
19035 * term/i386/pc/serial.c: Move to ...
19036 * term/serial.c: ... here. All users updated.
19037 * util/i386/pc/grub-mkimage.c: Move to ...
19038 * util/grub-mkrawimage.c: ... here. All users updated.
19039 * term/i386/pc/at_keyboard.c: Move to ...
19040 * term/at_keyboard.c: ... here. All users updated.
19041 * conf/mips-qemu-mips.rmk: New file.
19042 * conf/mips-yeeloong.rmk: Likewise.
19043 * conf/mips.rmk: Likewise.
19044 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
19046 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
19048 (grub_ata_pciinit): Support CS5536.
19049 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
19050 * font/font_cmd.c (loadfont_command): Open file before passing it to
19052 (pseudo_file_read): New function.
19053 (pseudo_file_close): Likewise.
19054 (pseudo_fs): New structure.
19055 (load_font_module): New function.
19056 (GRUB_MOD_INIT(font_manager)): Load embedded font.
19057 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
19058 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
19059 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
19060 * include/grub/i386/at_keyboard.h: Split into ...
19061 * include/grub/at_keyboard.h: ... this ...
19062 * include/grub/i386/at_keyboard.h: ... and this.
19063 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
19065 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
19067 (grub_elf64_size): Likewise.
19068 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
19070 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
19071 * include/grub/i386/coreboot/serial.h: Rewritten.
19072 * include/grub/i386/ieee1275/serial.h: Include
19073 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
19074 * include/grub/i386/pc/serial.h: Moved from here ...
19075 * include/grub/serial.h: ... to here. All users updated.
19076 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
19077 (GRUB_PCI_NUM_BUS): Likewise.
19078 (GRUB_PCI_NUM_DEVICES): Likewise.
19079 (grub_pci_device_map_range): Add missing volatile keyword.
19080 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
19081 * include/grub/mips/at_keyboard.h: New file.
19082 * include/grub/mips/cache.h: Likewise.
19083 * include/grub/mips/io.h: Likewise.
19084 * include/grub/mips/kernel.h: Likewise.
19085 * include/grub/mips/libgcc.h: Likewise.
19086 * include/grub/mips/pci.h: Likewise.
19087 * include/grub/mips/qemu-mips/boot.h: Likewise.
19088 * include/grub/mips/qemu-mips/kernel.h: Likewise.
19089 * include/grub/mips/qemu-mips/loader.h: Likewise.
19090 * include/grub/mips/qemu-mips/memory.h: Likewise.
19091 * include/grub/mips/qemu-mips/serial.h: Likewise.
19092 * include/grub/mips/qemu-mips/time.h: Likewise.
19093 * include/grub/mips/relocator.h: Likewise.
19094 * include/grub/mips/time.h: Likewise.
19095 * include/grub/mips/types.h: Likewise.
19096 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
19097 * include/grub/mips/yeeloong/boot.h: Likewise.
19098 * include/grub/mips/yeeloong/kernel.h: Likewise.
19099 * include/grub/mips/yeeloong/loader.h: Likewise.
19100 * include/grub/mips/yeeloong/memory.h: Likewise.
19101 * include/grub/mips/yeeloong/pci.h: Likewise.
19102 * include/grub/mips/yeeloong/serial.h: Likewise.
19103 * include/grub/mips/yeeloong/time.h: Likewise.
19104 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
19105 * kern/elf.c (grub_elf32_size): New parameter. All users
19107 (grub_elf64_size): Likewise.
19108 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
19109 Load modules before saying "Welcome to GRUB!".
19110 Call grub_refresh after saying "Welcome to GRUB!".
19111 * kern/mips/cache.S: New file.
19112 * kern/mips/cache_flush.S: Likewise.
19113 * kern/mips/dl.c: Likewise.
19114 * kern/mips/init.c: Likewise.
19115 * kern/mips/qemu-mips/init.c: Likewise.
19116 * kern/mips/startup.S: Likewise.
19117 * kern/mips/yeeloong/init.c: Likewise.
19118 * kern/term.c (grub_putcode): Handle NULL terminal.
19119 (grub_getcharwidth): Likewise.
19120 (grub_getkey): Likewise.
19121 (grub_checkkey): Likewise.
19122 (grub_getkeystatus): Likewise.
19123 (grub_getxy): Likewise.
19124 (grub_getwh): Likewise.
19125 (grub_gotoxy): Likewise.
19126 (grub_cls): Likewise.
19127 (grub_setcolorstate): Likewise.
19128 (grub_setcolor): Likewise.
19129 (grub_getcolor): Likewise.
19130 (grub_refresh): Likewise.
19131 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
19132 (write_jump): Add hatch nop.
19133 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
19134 * lib/mips/setjmp.S: New file.
19135 * loader/mips/linux.c: Likewise.
19136 * term/i386/pc/at_keyboard.c: Move from here ...
19137 * term/at_keyboard.c: ... to here.
19138 * term/i386/pc/serial.c: Moved from here ...
19139 * term/serial.c: ... to here. All users updated.
19140 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
19141 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
19142 (serial_translate_key_sequence): Avoid deadlock.
19143 (grub_serial_getkey): Handle backspace.
19144 (grub_serial_putchar): Fix newline handling.
19145 * util/i386/pc/grub-mkimage.c: Move from here ...
19146 * util/grub-mkrawimage.c: ... to here. All users updated.
19147 (generate_image): New parameters 'font_path' and 'format'.
19148 Support embedding font.
19149 Use grub_host_to_target* instead of grub_cpu_to_le*.
19150 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
19151 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
19152 (options): New option "--font".
19154 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
19155 (main): Handle "--font".
19156 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
19157 (grub_virtual_screen_setup): Set bg_color_display.
19158 (redraw_screen_rect): Use bg_color_display instead of incorrect
19160 (grub_gfxterm_cls): Likewise.
19161 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
19162 Support embedding config file.
19163 (add_segments): Likewise.
19164 (options): New option "--config".
19165 (main): Handle "--config".
19166 * video/sm712.c: New file.
19168 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19170 Fix parallel builds.
19172 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
19173 font.c depend on ascii.h).
19175 2010-01-12 Carles Pina i Estany <carles@pina.cat>
19177 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
19179 2010-01-11 Carles Pina i Estany <carles@pina.cat>
19181 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
19182 By default: disabled.
19183 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
19186 2010-01-10 Carles Pina i Estany <carles@pina.cat>
19188 * font/font.c: Update copyright years.
19189 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
19191 2010-01-10 Carles Pina i Estany <carles@pina.cat>
19193 * font/font.c: Include `ascii.h'.
19194 (ASCII_BITMAP_SIZE): New macro.
19195 (ascii_font_glyph): Define.
19196 (ascii_glyph_lookup): New function.
19197 (grub_font_get_string_width): Change comment. If glyph not found, use
19198 ascii_glyph_lookup.
19199 (grub_font_get_glyph_with_fallback): If glyph not available returns
19200 ascii_glyph_lookup.
19201 * util/grub-mkfont.c (file_formats): New enum.
19202 (options): Add `ascii-bitmaps' new option.
19203 (usage): Add `asii-bitmaps' new option.
19204 (write_font_ascii_bitmap): New function.
19205 (write_font): Rename to ...
19206 (write_font_p2): ... this. Remove print_glyphs call.
19207 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
19208 used. Call print_glyphs.
19209 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
19211 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
19213 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
19214 (grub_bin2h_SOURCES): New variable.
19215 * util/bin2h.c: New file.
19217 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19219 * include/multiboot.h: Resynced with spec.
19220 * include/multiboot2.h: Likewise.
19221 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
19222 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
19224 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19226 * include/grub/term.h (grub_term_register_input,
19227 grub_term_register_output): Check return of terminal init()
19228 routines, and abort if errors are raised.
19230 * commands/terminal.c: Update copyright year.
19232 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19234 * commands/terminal.c (grub_cmd_terminal_input)
19235 (grub_cmd_terminal_output): Check return of terminal init()
19236 routines, and abort if errors are raised.
19238 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
19240 * include/grub/i386/bsd.h: Fix include pathes.
19242 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
19244 Add missing *BSD copyright headers.
19246 * include/grub/aout.h: Add BSD licence.
19247 * include/grub/i386/bsd.h: Parts under different licences moved to ...
19248 * include/grub/i386/freebsd_linker.h: ... here,
19249 * include/grub/i386/freebsd_reboot.h: ... here,
19250 * include/grub/i386/netbsd_bootinfo.h: ... here,
19251 * include/grub/i386/netbsd_reboot.h: ... here,
19252 * include/grub/i386/openbsd_bootarg.h: ... here,
19253 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
19254 licence to each file.
19256 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19258 * acinclude.m4: Remove `nop' assembly instruction; it's not
19259 implemented by all architectures.
19261 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19263 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
19264 ELILO. This is no longer necessary.
19266 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
19268 Added new tool, grub-scrit-check to verify grub.cfg syntax.
19270 * util/grub-script-check.c: grub-script-check tool.
19271 * conf/common.rmk: Make rules for grub-script-check.
19273 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19275 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
19276 spotting it back in 2008. Shame on me for forgetting he did.
19278 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
19280 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19282 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
19283 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
19284 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
19285 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
19286 (GRUB_VIDEO_TYPE_EFI): Rename to ...
19287 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
19289 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
19291 * include/grub/test.h: Add license header.
19292 * tests/example_functional_test.c: Likewise.
19293 * tests/example_unit_test.c: Likewise.
19294 * tests/lib/functional_test.c: Likewise.
19295 * tests/lib/test.c: Likewise.
19296 * tests/lib/unit_test.c: Likewise.
19298 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
19300 Use flag-based instead of hook-based video mode selection and "auto"
19303 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
19304 (grub_video_set_mode): Changed prototype. All users updated.
19305 (grub_video_check_mode_flag): New inline function.
19306 * video/video.c (parse_modespec): New function.
19307 (grub_video_set_mode): Parse flags and keywords.
19309 2010-01-17 Carles Pina i Estany <carles@pina.cat>
19311 * util/misc.c (grub_util_info): Fix the order of the parameters in a
19314 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
19316 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
19318 2010-01-16 Carles Pina i Estany <carles@pina.cat>
19320 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
19322 * util/grub-emu.c (usage): Likewise.
19323 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
19324 * util/i386/efi/grub-mkimage.c (usage): Likewise.
19325 * util/i386/pc/grub-mkimage.c (usage): Likewise.
19326 * util/i386/pc/grub-setup.c (usage): Likewise.
19328 2010-01-16 Carles Pina i Estany <carles@pina.cat>
19330 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
19332 (grub_util_info): Likewise.
19333 (grub_util_error): Likewise.
19334 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
19335 and/or new lines in `grub_util_warna', `grub_util_info',
19336 `grub_util_error' calls.
19337 * util/getroot.c: Likewise.
19338 * util/grub-editenv.c: Likewise.
19339 * util/grub-emu.c: Likewise.
19340 * util/grub-fstest.c: Likewise.
19341 * util/grub-mkdevicemap.c: Likewise.
19342 * util/grub-mkfont.c: Likewise.
19343 * util/grub-mkpasswd-pbkdf2.c: Likewise.
19344 * util/grub-mkrelpath.c: Likewise.
19345 * util/grub-pe2elf.c: Likewise.
19346 * util/grub-probe.c: Likewise.
19347 * util/hostdisk.c: Likewise.
19348 * util/i386/efi/grub-mkimage.c: Likewise.
19349 * util/i386/pc/grub-mkimage.c: Likewise.
19350 * util/i386/pc/grub-setup.c: Likewise.
19351 * util/ieee1275/ofpath.c: Likewise.
19352 * util/mkisofs/eltorito.c: Likewise.
19353 * util/mkisofs/rock.c: Likewise.
19354 * util/mkisofs/write.c: Likewise.
19355 * util/raid.c: Likewise.
19356 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
19357 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19359 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19361 Enable multiboot on non-pc.
19363 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
19364 multiboot.mod and multiboot2.mod to ...
19365 * conf/i386.rmk (pkglib_MODULES): ... here.
19366 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
19368 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
19369 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
19371 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
19372 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
19374 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
19375 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
19377 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
19378 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
19380 (ata_mod_SOURCES): Removed.
19381 (ata_mod_CFLAGS): Likewise.
19382 (ata_mod_LDFLAGS): Likewise.
19383 (relocator_mod_SOURCES): Removed.
19384 (relocator_mod_CFLAGS): Likewise.
19385 (relocator_mod_ASFLAGS): Likewise.
19386 (relocator_mod_LDFLAGS): Likewise.
19388 * include/grub/x86_64/multiboot.h: New file.
19389 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
19392 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19394 Video multiboot support.
19396 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
19398 * include/multiboot.h: Resynced with multiboot specification.
19399 * include/multiboot2.h: Likewise.
19400 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
19401 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
19402 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
19403 (HAS_VGA_TEXT): Likewise.
19404 (accepts_video): New variable.
19405 (grub_multiboot_set_accepts_video): New function.
19406 (grub_multiboot_get_mbi_size): Account for video structures.
19407 (set_video_mode): New function.
19408 (retrieve_video_parameters): Likewise.
19409 (grub_multiboot_make_mbi): Fill video fields.
19411 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19415 * include/grub/video.h (grub_video_driver_id): New type.
19416 (grub_video_adapter): New member 'id'. All users updated.
19417 (grub_video_get_driver_id): New proto.
19418 * video/video.c (grub_video_get_driver_id): New function.
19420 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19422 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
19425 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19427 * normal/cmdline.c (print_completion): Gettextizze.
19429 2001-01-14 Carles Pina i Estany <carles@pina.cat>
19431 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
19433 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19435 * gettext/gettext.c (grub_gettext_translate): Push and pop
19437 (grub_gettext_delete_list): Change comment style.
19438 * kern/err.c (grub_error): Gettextizze.
19439 (grub_fatal): Gettextizze.
19441 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
19443 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
19444 (grub_linux16_real_boot): ... this.
19445 * kern/i386/loader.S: Likewise.
19446 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
19447 (grub_linux16_boot): New function. Switches to text mode and calls
19448 grub_linux16_real_boot().
19450 * loader/i386/bsd.c: Include `<grub/video.h>'.
19451 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
19452 text mode before calling grub_unix_real_boot().
19454 * loader/i386/multiboot.c: Include `<grub/video.h>'.
19455 (grub_multiboot_boot): Switch to text mode before calling
19456 grub_relocator32_boot().
19458 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
19459 (grub_chainloader_boot): Switch to text mode before calling
19460 grub_chainloader_real_boot().
19462 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19463 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19465 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
19468 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19469 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19471 * util/grub.d/00_header.in: Define a "savedefault" function for use
19473 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
19475 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19476 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19478 * util/grub-mkconfig_lib.in (save_default_entry): Only set
19479 saved_entry if boot_once is unset.
19480 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
19481 previous saved entry (i.e. grub-reboot).
19483 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19485 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
19487 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19489 * util/grub.d/00_header.in: Use `set var=val' rather than plain
19491 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
19493 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19495 * util/grub-reboot.in: Fix --version output.
19496 * util/grub-set-default.in: Likewise.
19498 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19500 * util/grub.d/00_header.in: Silently ignore zero-sized environment
19503 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19505 * util/grub.d/00_header.in: Quote the value assigned to `default',
19506 in case it contains spaces.
19508 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19510 * util/grub.d/30_os-prober.in: Fix merge error that moved a
19511 `save_default_entry' call from the macosx case to the linux case.
19513 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
19514 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
19516 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
19517 in `chosen' environment variable.
19518 * normal/menu_text.c (get_entry_number): Check if the variable
19519 matches the title of a menu entry.
19520 (run_menu): Pass menu to get_entry_number.
19522 * util/grub-reboot.in: New file.
19523 * util/grub-set-default.in: New file.
19524 * conf/common.rmk (grub-reboot): New utility.
19525 (grub-set-default): New utility.
19527 * util/grub-mkconfig_lib.in (save_default_entry): New function.
19528 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
19529 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
19530 move it to `saved_entry' for the next boot. Load environment on
19532 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
19533 * util/grub.d/10_hurd.in: Likewise.
19534 * util/grub.d/10_linux.in (linux_entry): Likewise.
19535 * util/grub.d/10_windows.in: Likewise.
19536 * util/grub.d/30_os-prober.in: Likewise.
19538 * util/grub-install.in: Create environment block.
19539 * util/i386/efi/grub-install.in: Likewise.
19540 * util/ieee1275/grub-install.in: Likewise.
19541 * util/sparc64/ieee1275/grub-install.in: Likewise.
19543 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
19545 Unit testing framework for GRUB.
19547 * Makefile.in: Test framework build rules for 'make check'.
19548 * conf/tests.rmk: Build rules for individual tests and framework.
19550 * include/grub/test.h: Header file for whitebox tests.
19551 * tests/lib/functional_test.c: Framework support for whitebox
19553 * tests/lib/test.c: Common whitebox testing code for unit and
19555 * tests/lib/unit_test.c: Framework support for whitebox unit
19558 * tests/util/grub-shell-tester.in: Support utility for grub-script
19560 * tests/util/grub-shell.in: Utility to execute grub-script
19561 commands in a Qemu instance.
19563 * tests/example_functional_test.c: Example whitebox functional
19565 * tests/example_grub_script_test.in: Example grub-script test.
19566 * tests/example_scripted_test.in: Example scripted test.
19567 * tests/example_unit_test.c: Example whitebox unit test.
19569 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
19571 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
19572 Add loader/i386/multiboot_mbi.c.
19573 (multiboot2_mod_SOURCES): Likewise.
19574 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
19575 (multiboot2_mod_SOURCES): Likewise.
19576 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
19577 (grub_multiboot_make_mbi): Likewise.
19578 (grub_multiboot_free_mbi): Likewise.
19579 (grub_multiboot_init_mbi): Likewise.
19580 (grub_multiboot_add_module): Likewise.
19581 (grub_multiboot_set_bootdev): Likewise.
19582 * loader/i386/multiboot.c (mbi): Removed.
19583 (mbi_dest): Likewise.
19584 (alloc_mbi): New variable.
19585 (grub_multiboot_payload_size): Removed. All users updated.
19586 (grub_multiboot_pure_size): New variable.
19587 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
19588 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
19589 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
19590 (grub_fill_multiboot_mmap): Likewise.
19591 (grub_multiboot_get_bootdev): Likewise.
19592 (grub_multiboot): Use multiboot_mbi functions.
19593 * loader/i386/multiboot_mbi.c: New file.
19595 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19597 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
19598 it would result in module crash.
19600 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19602 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
19603 (grub_ofconsole_getwh): Split to ...
19604 (grub_ofconsole_getwh): ... this.
19605 (grub_ofconsole_dimensions): ...and this.
19606 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
19608 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
19610 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
19612 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19614 * loader/i386/pc/multiboot2.c: Removed stalled file.
19616 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19618 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
19619 Reported by: Grégoire Sutre
19621 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
19623 * util/misc.c (canonicalize_file_name): New function.
19624 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
19625 instead of realpath().
19627 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
19629 * util/grub-install.in (usage): Clarify meaning of --root-directory,
19630 and make it clearer that it's optional. Based on confusion
19633 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19635 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
19636 in premature implicit newline.
19638 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19640 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
19641 which resulted in garbled command line at the end of screen.
19643 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19645 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
19646 initialization with similar approach as with other Linux loaders.
19648 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19650 Fix i386-ieee1275 build.
19652 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
19653 and grub_term_height() for video_{width,height} initialization.
19655 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19657 Fix grub-emu build.
19659 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
19661 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19662 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19664 Support for multiple terminals.
19666 * Makefile.in (pkglib_DATA): terminal.lst.
19667 (terminal.lst): New target.
19668 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
19669 (GRUB_MOD_INIT(handler)): Likewise.
19670 (GRUB_MOD_FINI(handler)): Likewise.
19671 * commands/help.c (grub_cmd_help): Handle multiple terminals.
19672 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
19673 * commands/sleep.c (do_print): Use grub_term_restore_pos.
19674 (grub_cmd_sleep): Use grub_term_save_pos.
19675 * commands/terminal.c: New file.
19676 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
19677 commands/terminal.c and lib/charset.c.
19678 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
19679 (pkglib_MODULES): Add terminal.mod.
19680 (terminal_mod_SOURCES): New variable.
19681 (terminal_mod_CFLAGS): Likewise.
19682 (terminal_mod_LDFLAGS): Likewise.
19683 * genhandlerlist.sh: Don't handle terminals.
19684 * genmk.rb: Generate terminal-*.lst.
19685 * genterminallist.sh: New file.
19686 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
19687 (grub_is_valid_utf8): Likewise.
19688 (grub_utf8_to_ucs4_alloc): Likewise.
19689 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
19690 (grub_menu_register_viewer): Changed argument.
19691 (grub_menu_try_text): New proto.
19692 (grub_gfxmenu_try_hook): New declaration.
19693 * include/grub/normal.h (grub_normal_exit_level): New declaration.
19694 (grub_menu_init_page): Additional argument term.
19695 (grub_normal_init_page): Likewise.
19696 (grub_cmdline_get): Arguments simplified.
19697 (grub_utf8_to_ucs4_alloc): Removed.
19698 (grub_print_ucs4): Additional argument term.
19699 (grub_getstringwidth): Likewise.
19700 (grub_print_message_indented): Likewise.
19701 (grub_menu_text_register_instances): New proto.
19702 (grub_show_menu): Likewise.
19703 (read_terminal_list): Likewise.
19704 (grub_set_more): Likewise.
19705 * include/grub/parser.h: Include handler.h.
19706 * include/grub/reader.h: Rewritten.
19707 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
19708 (GRUB_TERM_WIDTH): Changed to function.
19709 (GRUB_TERM_HEIGHT): Likewise.
19710 (GRUB_TERM_BORDER_WIDTH): Likewise.
19711 (GRUB_TERM_BORDER_HEIGHT): Likewise.
19712 (GRUB_TERM_NUM_ENTRIES): Likewise.
19713 (GRUB_TERM_ENTRY_WIDTH): Likewise.
19714 (GRUB_TERM_CURSOR_X): Likewise.
19715 (grub_term_input_class): Likewise.
19716 (grub_term_output_class): Likewise.
19717 (grub_term_outputs_disabled): New declaration.
19718 (grub_term_inputs_disabled): Likewise.
19719 (grub_term_outputs): Likewise.
19720 (grub_term_inputs): Likewise.
19721 (grub_term_register_input): Rewritten.
19722 (grub_term_register_output): Likewise.
19723 (grub_term_unregister_input): Likewise.
19724 (grub_term_unregister_output): Likewise.
19725 (FOR_ACTIVE_TERM_INPUTS): New macro.
19726 (FOR_DISABLED_TERM_INPUTS): Likewise.
19727 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19728 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19729 * include/grub/terminfo.h: Add oterm argument to all protypes.
19730 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
19731 Use grub_rescue_run.
19732 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
19734 * kern/reader.c: Removed. All users updated.
19735 * kern/rescue_reader.c (grub_rescue_init): Removed.
19736 (grub_rescue_reader): Likewise.
19737 (grub_register_rescue_reader): Likewise.
19738 (grub_rescue_run): New function based on kern/reader.c.
19739 * kern/term.c: Adapted for multiterm.
19740 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
19741 (grub_is_valid_utf8): Likewise.
19742 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
19743 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
19745 * loader/i386/linux.c (grub_linux_boot): Likewise.
19746 * normal/auth.c (grub_username_get): New function.
19747 (grub_auth_check_authentication): Use grub_username_get.
19748 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
19749 * normal/color.c: Adapt for multiterm.
19750 * normal/main.c (read_config_file): Don't use grub_reader_loop.
19751 (grub_normal_init_page): Additional argument term.
19752 (read_lists): Call read_terminal_lists.
19753 (grub_enter_normal_mode): Call grub_cmdline_run.
19754 Handle grub_normal_exit_level.
19755 (grub_cmd_normal): Make reentrant.
19756 (grub_cmd_normal_exit): New function.
19757 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
19758 * normal/menu.c: Adapt for multiterm.
19759 * normal/menu_entry.c: Likewise.
19760 * normal/menu_text.c: Likewise.
19761 * normal/menu_viewer.c: Removed. All users updated.
19762 * normal/term.c: New file.
19763 * util/console.c: Change order of includes to workaround a bug in
19765 * term/terminfo.c: New argument oterm on all exported functions.
19767 * util/grub-editenv.c (grub_term_input_class): Removed.
19768 (grub_term_output_class): Likewise.
19770 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19772 Make loader output a bit more user-friendly.
19774 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
19775 is being loaded. Likewise for the Hurd.
19777 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
19778 that kernel of FreeBSD ${version} is being loaded.
19780 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
19782 (grub_cmd_initrd): Likewise.
19783 * util/grub.d/10_linux.in (linux_entry): Print message indicating
19784 that Linux ${version} is being loaded. Likewise for initrd.
19786 2010-01-09 Carles Pina i Estany <carles@pina.cat>
19788 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
19790 2010-01-08 Carles Pina i Estany <carles@pina.cat>
19792 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
19793 (GRUB_MOD_INIT): Gettextizze.
19794 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
19795 (GRUB_MOD_INIT): Gettextizze.
19796 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
19797 (grub_cmd_linux): Capitalise Linux.
19798 (GRUB_MOD_INIT): Gettextizze.
19799 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
19800 (grub_cmd_linux): Capitalise Linux.
19801 (GRUB_MOD_INIT): Gettextizze.
19802 * loader/i386/linux.c: Include `<grub/i18n.h>'.
19803 (grub_cmd_linux): Capitalise Linux.
19804 (GRUB_MOD_INIT): Gettextizze.
19805 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
19806 (GRUB_MOD_INIT): Gettextizze.
19807 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
19808 (grub_cmd_linux): Capitalise Linux.
19809 (GRUB_MOD_INIT): Gettextizze.
19810 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
19811 (grub_cpu_xnu_init): Gettextizze.
19812 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
19813 (GRUB_MOD_INIT): Gettextizze.
19814 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
19815 (GRUB_MOD_INIT): Gettextizze.
19816 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
19817 (grub_linux_load64): Capitalise Linux.
19818 (GRUB_MOD_INIT): Gettextizze.
19819 * loader/xnu.c: Include `<grub/i18n.h>'.
19820 (GRUB_MOD_INIT): Gettextizze.
19821 * po/POTFILES: Add `loader/efi/appleloader.c',
19822 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
19823 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
19824 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
19825 `loader/i386/xnu.c', `loader/multiboot_loader.c',
19826 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
19827 and `loader/xnu.c'.
19829 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19831 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
19833 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19835 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
19836 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
19837 * util/mkisofs/mkisofs.c (main): Readjust --version output.
19839 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19841 Reset Multiboot 2 support. New loader implements the draft in
19842 /branches/multiboot2 and shares as much code as possible with the
19843 production Multiboot 1 implementation.
19845 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
19846 * loader/multiboot2.c: Likewise.
19847 * loader/i386/multiboot_helper.S: Likewise.
19848 * include/multiboot2.h: Replace with latest version from the draft
19849 in /branches/multiboot2.
19851 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
19852 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
19853 and `loader/multiboot2.c'.
19854 (pkglib_MODULES): Add `multiboot2.mod'.
19855 (multiboot2_mod_SOURCES): New variable.
19856 (multiboot2_mod_LDFLAGS): Likewise.
19857 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
19859 * conf/i386-pc.rmk: Likewise.
19861 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
19862 (multiboot_mod_SOURCES): Remove variable.
19863 (multiboot_mod_LDFLAGS): Likewise.
19864 (multiboot_mod_CFLAGS): Likewise.
19866 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
19867 `<multiboot2.h>' instead of `<multiboot.h>'.
19868 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
19869 (MULTIBOOT_HEADER_MAGIC): New macros.
19871 * loader/multiboot_loader.c (module_version_status): Remove variable.
19872 (find_multi_boot2_header): Remove function.
19873 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
19874 logic. Always check for the Multiboot version we're compiling for.
19875 (grub_cmd_module_loader): Likewise.
19876 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
19877 command instead of `multiboot'.
19879 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19881 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
19882 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
19885 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19886 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19888 Fix breakage introduced with previous commit.
19890 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
19892 * normal/handler.c (read_handler_list): Revert part of previous commit
19893 affecting this file.
19894 * normal/main.c (read_lists): Move read_handler_list() call back to ...
19895 (grub_normal_execute): ... here.
19897 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19899 Merge prefix-redefinition-fix branch.
19901 * normal/autofs.c (read_fs_list): Make function capable of being
19902 run multiple times, gracefuly replacing the previous data
19904 * normal/dyncmd.c (read_command_list): Likewise.
19905 * normal/handler.c (read_handler_list): Likewise.
19906 * normal/main.c (read_lists): New function. Calls all the
19907 list reading functions.
19908 (grub_normal_execute): Use read_lists() instead of calling all
19909 list reading functions explicitly. Register read_lists() as a
19910 variable hook attached to ${prefix}.
19912 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19914 Merge crypto branch.
19916 * Makefile.in (pkglib_DATA): Add crypto.lst.
19917 (crypto.lst): New target.
19918 * commands/hashsum.c: New file.
19919 * commands/password.c (check_password): Use grub_crypto_memcmp.
19920 * commands/password_pbkdf2.c: New file.
19921 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
19922 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
19923 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
19924 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
19925 -I$(srcdir)/lib/libgcrypt_wrap.
19926 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
19927 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
19928 password_pbkdf2.mod.
19929 (crypto_mod_SOURCES): New variable.
19930 (crypto_mod_CFLAGS): Likewise.
19931 (crypto_mod_LDFLAGS): Likewise.
19932 (hashsum_mod_SOURCES): New variable.
19933 (hashsum_mod_CFLAGS): Likewise.
19934 (hashsum_mod_LDFLAGS): Likewise.
19935 (pbkdf2_mod_SOURCES): New variable.
19936 (pbkdf2_mod_CFLAGS): Likewise.
19937 (pbkdf2_mod_LDFLAGS): Likewise.
19938 (password_pbkdf2_mod_SOURCES): New variable.
19939 (password_pbkdf2_mod_CFLAGS): Likewise.
19940 (password_pbkdf2_mod_LDFLAGS): Likewise.
19941 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
19942 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
19943 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
19944 Include conf/gcry.rmk.
19945 * include/grub/auth.h: Rewritten.
19946 * include/grub/crypto.h: New file.
19947 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
19948 * include/grub/normal.h (read_crypto_list): New prototype.
19949 * lib/crypto.c: New file.
19950 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
19951 * lib/pbkdf2.c: Likewise.
19952 * normal/auth.c (grub_auth_strcmp): Removed.
19953 (grub_iswordseparator): Likewise.
19954 (grub_auth_strword): Likewise.
19955 (is_authenticated): Use grub_strword.
19956 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
19957 and grub_strword. Pass entered password to authentication callback.
19958 * normal/crypto.c: New file.
19959 * normal/main.c: Call read_crypto_list.
19960 * util/grub-mkpasswd-pbkdf2.c: New file.
19961 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
19963 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
19965 Fix descent and ascent calculation.
19967 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
19968 (options): New option "asce".
19970 (add_char): Ignore invalid glyphs for descent calculation.
19971 Calculate ascent from actual content.
19972 (print_glyphs): Use 'asce'.
19973 (write_font): Likewise. Allow ascent override.
19974 (main): Handle "asce" option.
19976 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19978 * kern/err.c: Include `<grub/i18n.h>'.
19979 (grub_print_error): Add full stop. Gettextizze.
19980 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
19981 (grub_bsd_load_elf): Capitalise ELF.
19982 (grub_cmd_freebsd_loadenv): Add `s' in error string.
19983 (grub_cmd_freebsd_module): Likewise.
19984 (grub_cmd_freebsd_module_elf): Likewise.
19985 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
19987 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19989 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
19990 * commands/search_file.c (HELP_MESSAGE): New macro.
19991 * commands/search_label.c (HELP_MESSAGE): Likewise.
19992 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
19993 * po/POTFILES: Add `commands/search_file.c',
19994 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
19995 `commands/search.c'.
19997 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
19999 * config.rpath: Update from Gnulib.
20001 2010-01-05 Yves Blusseau <blusseau@zetam.org>
20003 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
20005 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
20007 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
20009 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
20011 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
20012 arguments to fread so that we get a return value in bytes, rather
20013 than something that will normally be rounded down to 0.
20014 Adjust error handling to avoid producing garbage when size_t is not
20015 the same size as long long.
20017 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
20019 * util/mkisofs/write.c (padblock_write): Check return value of
20022 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
20024 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
20027 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
20029 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
20031 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
20032 instead of manual alignment.
20033 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
20034 verbose). Avoid attempts to read past end of the device
20035 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
20036 but GRUB_DISK_CACHE_SIZE may exceed that).
20038 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
20040 * commands/crc.c (grub_cmd_crc): Abort on read errors.
20041 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
20044 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20046 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
20048 (grub_efi_piwg_device_path): New structure
20049 (grub_efi_piwg_device_path_t): New type.
20050 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
20051 (devpath_1): Transform to a structure. All users updated.
20052 (devpath_2): Likewise.
20053 (devpath_3): Likewise.
20054 (devpath_4): Likewise.
20055 (devpath_5): Likewise.
20057 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
20059 * loader/efi/appleloader.c: Restored. Update all users.
20061 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
20063 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
20065 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
20066 (struct boot_blocklist): Move from here ...
20067 * include/grub/i386/pc/boot.h [ASM_FILE]
20068 (struct grub_boot_blocklist): ... to here. Update all users.
20069 (setup): Only initialize `start' member of `first_block'
20070 structure. Add assert() calls to verify the other members.
20072 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
20073 (generate_image): Fix broken blocklist length initialization.
20074 Add assert() call to verify blocklist `segment' field.
20076 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
20078 * loader/efi/appleloader.c: Remove. Update all users.
20080 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
20082 * boot/i386/pc/boot.S: Update copyright year.
20083 * boot/i386/pc/cdboot.S: Likewise.
20084 * boot/i386/pc/diskboot.S: Likewise.
20085 * boot/i386/pc/lnxboot.S: Likewise.
20086 * boot/i386/pc/pxeboot.S: Likewise.
20087 * bus/pci.c: Likewise.
20088 * commands/cmp.c: Likewise.
20089 * commands/help.c: Likewise.
20090 * commands/hexdump.c: Likewise.
20091 * commands/i386/pc/halt.c: Likewise.
20092 * commands/i386/pc/play.c: Likewise.
20093 * commands/i386/pc/vbeinfo.c: Likewise.
20094 * commands/ls.c: Likewise.
20095 * commands/test.c: Likewise.
20096 * disk/dmraid_nvidia.c: Likewise.
20097 * disk/i386/pc/biosdisk.c: Likewise.
20098 * disk/ieee1275/nand.c: Likewise.
20099 * disk/ieee1275/ofdisk.c: Likewise.
20100 * disk/lvm.c: Likewise.
20101 * disk/raid.c: Likewise.
20102 * disk/raid6_recover.c: Likewise.
20103 * disk/scsi.c: Likewise.
20104 * fs/affs.c: Likewise.
20105 * fs/cpio.c: Likewise.
20106 * fs/ext2.c: Likewise.
20107 * fs/hfs.c: Likewise.
20108 * fs/iso9660.c: Likewise.
20109 * fs/ntfs.c: Likewise.
20110 * fs/sfs.c: Likewise.
20111 * fs/udf.c: Likewise.
20112 * fs/ufs.c: Likewise.
20113 * fs/xfs.c: Likewise.
20114 * gencmdlist.sh: Likewise.
20115 * genmk.rb: Likewise.
20116 * include/grub/disk.h: Likewise.
20117 * include/grub/efi/api.h: Likewise.
20118 * include/grub/efi/efi.h: Likewise.
20119 * include/grub/efi/pe32.h: Likewise.
20120 * include/grub/elf.h: Likewise.
20121 * include/grub/fs.h: Likewise.
20122 * include/grub/i386/at_keyboard.h: Likewise.
20123 * include/grub/i386/pc/memory.h: Likewise.
20124 * include/grub/i386/pc/vbe.h: Likewise.
20125 * include/grub/i386/pci.h: Likewise.
20126 * include/grub/i386/tsc.h: Likewise.
20127 * include/grub/ieee1275/ieee1275.h: Likewise.
20128 * include/grub/ntfs.h: Likewise.
20129 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20130 * include/grub/sparc64/libgcc.h: Likewise.
20131 * include/grub/symbol.h: Likewise.
20132 * include/grub/types.h: Likewise.
20133 * include/multiboot2.h: Likewise.
20134 * io/gzio.c: Likewise.
20135 * kern/device.c: Likewise.
20136 * kern/disk.c: Likewise.
20137 * kern/efi/efi.c: Likewise.
20138 * kern/efi/mm.c: Likewise.
20139 * kern/elf.c: Likewise.
20140 * kern/file.c: Likewise.
20141 * kern/i386/dl.c: Likewise.
20142 * kern/i386/pc/init.c: Likewise.
20143 * kern/i386/pc/startup.S: Likewise.
20144 * kern/ieee1275/ieee1275.c: Likewise.
20145 * kern/ieee1275/init.c: Likewise.
20146 * kern/main.c: Likewise.
20147 * kern/mm.c: Likewise.
20148 * kern/powerpc/dl.c: Likewise.
20149 * kern/sparc64/dl.c: Likewise.
20150 * kern/x86_64/dl.c: Likewise.
20151 * lib/hexdump.c: Likewise.
20152 * loader/efi/appleloader.c: Likewise.
20153 * loader/i386/ieee1275/linux.c: Likewise.
20154 * loader/i386/pc/chainloader.c: Likewise.
20155 * loader/i386/pc/linux.c: Likewise.
20156 * loader/i386/pc/multiboot2.c: Likewise.
20157 * loader/ieee1275/multiboot2.c: Likewise.
20158 * loader/multiboot2.c: Likewise.
20159 * loader/multiboot_loader.c: Likewise.
20160 * loader/powerpc/ieee1275/linux.c: Likewise.
20161 * normal/completion.c: Likewise.
20162 * normal/menu_entry.c: Likewise.
20163 * partmap/apple.c: Likewise.
20164 * util/grub.d/10_hurd.in: Likewise.
20165 * util/hostfs.c: Likewise.
20166 * video/readers/png.c: Likewise.
20168 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
20170 * include/grub/misc.h (GNUC_PREREQ): New macro.
20171 (ATTRIBUTE_ERROR): New macro.
20172 * include/grub/list.h (grub_bad_type_cast_real): Use
20175 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20177 * normal/menu_text.c (print_message): Change messages.
20179 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20181 * normal/menu_entry.c (store_completion): Gettextizze.
20183 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20185 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
20187 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20189 * po/POTFILES: Sort correctly.
20191 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20193 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
20194 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
20195 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
20197 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
20198 summary. Gettextizze the strings.
20199 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
20200 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
20201 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
20203 (GRUB_MOD_INIT): Remove command name from summary.
20204 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
20206 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
20207 * term/i386/pc/serial.c (options): Add full stops.
20208 (GRUB_MOD_INIT): Remove command name from the summary.
20210 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20212 * commands/acpi.c: Gettextizze help strings and/or options. Include
20213 `grub/i18n.h' if needed.
20214 * commands/blocklist.c: Likewise.
20215 * commands/boot.c: Likewise.
20216 * commands/cat.c: Likewise.
20217 * commands/cmp.c: Likewise.
20218 * commands/configfile.c: Likewise.
20219 * commands/crc.c: Likewise.
20220 * commands/date.c: Likewise.
20221 * commands/echo.c: Likewise.
20222 * commands/efi/fixvideo.c: Likewise.
20223 * commands/efi/loadbios.c: Likewise.
20224 * commands/gptsync.c: Likewise.
20225 * commands/halt.c: Likewise.
20226 * commands/handler.c: Likewise.
20227 * commands/hdparm.c: Likewise.
20228 * commands/hexdump.c: Likewise.
20229 * commands/i386/cpuid.c: Likewise.
20230 * commands/i386/pc/drivemap.c: Likewise.
20231 * commands/i386/pc/halt.c: Likewise.
20232 * commands/i386/pc/pxecmd.c: Likewise.
20233 * commands/i386/pc/vbeinfo.c: Likewise.
20234 * commands/i386/pc/vbetest.c: Likewise.
20235 * commands/ieee1275/suspend.c: Likewise.
20236 * commands/keystatus.c: Likewise.
20237 * commands/loadenv.c: Likewise.
20238 * commands/ls.c: Likewise.
20239 * commands/lsmmap.c: Likewise.
20240 * commands/lspci.c: Likewise.
20241 * commands/memrw.c: Likewise.
20242 * commands/minicmd.c: Likewise.
20243 * commands/parttool.c: Likewise.
20244 * commands/password.c: Likewise.
20245 * commands/probe.c: Likewise.
20246 * commands/read.c: Likewise.
20247 * commands/reboot.c: Likewise.
20248 * commands/search.c: Likewise.
20249 * commands/sleep.c: Likewise.
20250 * commands/test.c: Likewise.
20251 * commands/true.c: Likewise.
20252 * commands/usbtest.c: Likewise.
20253 * commands/videotest.c: Likewise.
20254 * commands/xnu_uuid.c: Likewise.
20255 * disk/loopback.c: Likewise.
20256 * hello/hello.c: Likewise.
20257 * loader/i386/bsd.c: Likewise.
20258 * term/i386/pc/serial.c: Likewise.
20259 * po/POTFILES: Add new files.
20261 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
20263 * term/i386/pc/at_keyboard.c
20264 (keyboard_controller_wait_untill_ready): Rename to ...
20265 (keyboard_controller_wait_until_ready): ... this. Update all users.
20267 2010-01-01 Carles Pina i Estany <carles@pina.cat>
20269 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
20270 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
20271 string using string width.
20272 * normal/menu_text.c (grub_print_message_indented): Use
20273 grub_print_spaces and not print_spaces.
20274 (print_timeout): Likewise.
20275 (print_spaces): Move to...
20276 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
20278 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
20280 Import from Gnulib.
20282 * gnulib/getdelim.c: New file.
20283 * gnulib/getline.c: Likewise.
20285 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
20287 * include/grub/list.h (grub_assert_fail): Removed.
20288 (grub_bad_type_cast_real): New function.
20289 (grub_bad_type_cast): New macro.
20290 (GRUB_AS_LIST): Use grub_bad_type_cast.
20291 (GRUB_AS_LIST_P): Likewise.
20292 (GRUB_AS_NAMED_LIST): Likewise.
20293 (GRUB_AS_NAMED_LIST_P): Likewise.
20294 (GRUB_AS_PRIO_LIST): Likewise.
20295 (GRUB_AS_PRIO_LIST_P): Likewise.
20296 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
20298 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
20300 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
20303 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
20305 * configure.ac: Check for TARGET_CFLAGS initialization before we
20306 initialize it ourselves (sigh).
20307 Move a few modifications to TARGET_CFLAGS to be unconditional
20308 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
20311 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
20312 * term/i386/pc/at_keyboard.c
20313 (keyboard_controller_wait_untill_ready): Likewise.
20314 (keyboard_controller_led): Rename `led_status' paramter to avoid
20317 2009-12-28 Carles Pina i Estany <carles@pina.cat>
20319 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
20322 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20324 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
20326 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20328 * normal/menu_text.c (grub_print_message_indented): Prevent
20329 past-the-end-of-array dereference.
20331 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20333 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
20334 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
20336 2009-12-27 Carles Pina i Estany <carles@pina.cat>
20338 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
20339 * normal/main.c (grub_normal_read_line): Remove a space from the
20342 2009-12-27 Carles Pina i Estany <carles@pina.cat>
20344 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
20345 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20346 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
20347 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
20348 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20349 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20350 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20352 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20354 * video/readers/jpeg.c (cmd): Declare.
20355 (grub_cmd_jpegtest): Use `grub_command_t' type.
20356 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20358 (GRUB_MOD_FINI): Use `cmd' to unregister.
20359 * video/readers/png.c (cmd): Declare.
20360 (grub_cmd_pngtest): Use `grub_command_t' type.
20361 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20363 (GRUB_MOD_FINI): Use `cmd' to unregister.
20364 * video/readers/tga.c (cmd): Declare.
20365 (grub_cmd_tgatest): Use `grub_command_t' type.
20366 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20368 (GRUB_MOD_FINI): Use `cmd' to unregister.
20370 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20372 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
20374 * kern/corecmd.c (grub_register_core_commands): Likewise.
20375 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
20376 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
20377 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
20378 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20379 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
20380 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
20381 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
20382 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
20383 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20384 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20385 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20386 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20387 * normal/handler.c (insert_handler): Likewise.
20388 * normal/main.c (GRUB_MOD_INIT): Likewise.
20389 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
20391 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20393 * commands/help.c (grub_cmd_help): Print the command name before the
20395 (GRUB_MOD_INIT): Remove command name from the summary.
20396 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
20398 * lib/arg.c (find_long): Print the command name before the summary.
20399 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
20401 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
20402 * commands/cat.c (GRUB_MOD_INIT): Likewise.
20403 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
20404 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
20405 * commands/crc.c (GRUB_MOD_INIT): Likewise.
20406 * commands/date.c (GRUB_MOD_INIT): Likewise.
20407 * commands/echo.c (GRUB_MOD_INIT): Likewise.
20408 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
20409 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
20410 * commands/handler.c (GRUB_MOD_INIT): Likewise.
20411 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
20412 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
20413 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
20414 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
20415 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
20416 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
20417 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
20418 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
20419 * commands/ls.c (GRUB_MOD_INIT): Likewise.
20420 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
20421 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
20422 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
20423 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
20424 * commands/password.c (GRUB_MOD_INIT): Likewise.
20425 * commands/probe.c (GRUB_MOD_INIT): Likewise.
20426 * commands/read.c (GRUB_MOD_INIT): Likewise.
20427 * commands/search.c (GRUB_MOD_INIT): Likewise.
20428 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
20429 * commands/test.c (GRUB_MOD_INIT): Likewise.
20430 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
20431 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
20432 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
20433 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
20434 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
20435 * lib/arg.c (GRUB_MOD_INIT): Likewise.
20436 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
20437 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
20438 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20439 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20440 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
20441 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
20442 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
20443 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
20445 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20447 Use search command for preliminar UUID search.
20449 * commands/search.c: Split into ...
20450 * commands/search_wrap.c: ...this
20451 * commands/search.c: ...and this.
20452 * commands/search_file.c: New file.
20453 * commands/search_label.c: New file.
20454 * commands/search_uuid.c: New file.
20455 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
20456 Add commands/search_wrap.c, commands/search_file.c,
20457 commands/search_label.c and commands/search_uuid.c.
20458 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
20459 (search_mod_SOURCES): Set to commands/search_wrap.c.
20460 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
20462 (search_fs_file_mod_SOURCES): New variable.
20463 (search_fs_file_mod_CFLAGS): Likewise.
20464 (search_fs_file_mod_LDFLAGS): Likewise.
20465 (search_label_mod_SOURCES): Likewise.
20466 (search_label_mod_CFLAGS): Likewise.
20467 (search_label_mod_LDFLAGS): Likewise.
20468 (search_fs_uuid_mod_SOURCES): New variable.
20469 (search_fs_uuid_mod_CFLAGS): Likewise.
20470 (search_fs_uuid_mod_LDFLAGS): Likewise.
20471 (fs_file_mod_SOURCES): Removed.
20472 (fs_file_mod_CFLAGS): Likewise.
20473 (fs_file_mod_LDFLAGS): Likewise.
20474 (fs_uuid_mod_SOURCES): Removed.
20475 (fs_uuid_mod_CFLAGS): Likewise.
20476 (fs_uuid_mod_LDFLAGS): Likewise.
20477 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
20478 Set to util/grub-install.in.
20479 * disk/fs_file.c: Removed.
20480 * disk/fs_uuid.c: Likewise.
20481 * include/grub/search.h: New file.
20482 * util/grub-install.in: Handle sparc64.
20483 Create and use load.cfg.
20484 * util/sparc64/ieee1275/grub-install.in: Removed.
20486 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20488 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
20489 Ignore return status if CF is cleared.
20490 (grub_biosdisk_get_diskinfo_standard): Likewise.
20492 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
20494 * term/i386/pc/at_keyboard.c
20495 (keyboard_controller_wait_untill_ready): New function.
20496 (grub_keyboard_controller_write, grub_keyboard_controller_read)
20497 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
20498 for keyboard polling, rather than duplicate the same loop. This
20499 saves a few bytes in code size.
20501 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20503 Support for (pxe[:server[:gateway]]) syntax and
20504 use environment variable for PXE.
20506 * commands/i386/pc/pxecmd.c (options): Removed.
20507 (print_ip): Removed.
20508 (grub_cmd_pxe): Removed
20509 (grub_cmd_pxe_unload): New function.
20510 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
20511 (grub_pxe_your_ip): Made static.
20512 (grub_pxe_default_server_ip): Likewise.
20513 (grub_pxe_default_gateway_ip): Likewise.
20514 (grub_pxe_blksize): Likewise.
20515 (parse_ip): New function.
20516 (grub_pxe_open): Support server and gateway specification.
20517 (grub_pxe_close): Free disk->data.
20518 (grub_pxefs_open): Use disk->data.
20519 (grub_pxefs_read): Likewise.
20520 (grub_env_write_readonly): New function.
20521 (set_mac_env): Likewise.
20522 (set_env_limn_ro): Likewise.
20523 (parse_dhcp_vendor): Likewise.
20524 (grub_pxe_detect): Set the environment variables.
20525 (set_ip_env): New function.
20526 (write_ip_env): Likewise.
20527 (grub_env_write_pxe_default_server): Likewise.
20528 (grub_env_write_pxe_default_gateway): Likewise.
20529 (grub_env_write_pxe_blocksize): Likewise.
20530 (GRUB_MOD_INIT(pxe)): Set environment variables.
20531 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
20532 (grub_pxe_mac_addr_t): ... this. All users updated.
20533 (grub_pxe_your_ip): Removed.
20534 (grub_pxe_server_ip): Likewise.
20535 (grub_pxe_gateway_ip): Likewise.
20536 (grub_pxe_blksize): Likewise.
20538 2009-12-25 Carles Pina i Estany <carles@pina.cat>
20540 * commands/help.c: Include `<grub/i18n.h>'.
20541 (grub_cmd_help): Gettextizze.
20542 (GRUB_MOD_INIT): Likewise.
20543 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
20544 (GRUB_MOD_INIT): Gettextizze.
20545 * commands/search.c: Include `<grub/i18n.h>'.
20546 (options): Gettextizze.
20547 (GRUB_MOD_INIT): Gettextizze.
20548 * lib/arg.c: Include `<grub/i18n.h>'.
20549 (help_options): Gettextizze.
20550 (find_long): Likewise.
20551 (grub_arg_show_help): Likewise.
20552 * normal/dyncmd.c: Include `<grub/i18n.h>'.
20553 (read_command_list): Gettextizze.
20554 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
20555 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
20557 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
20559 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
20560 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
20561 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
20562 (led_status): New variable.
20563 (keyboard_controller_led): New function.
20564 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
20565 update led status for caps lock, num lock and scroll lock.
20567 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
20569 * util/hostdisk.c (open_device): Fix a comment.
20571 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20573 * util/grub-install.in (host_os): New variable.
20574 * util/i386/efi/grub-install.in (host_os): Likewise.
20576 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20578 * util/mkisofs/write.c (padblock_write): Abort when given an
20579 excedingly large embed image, instead of silently truncating it.
20581 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20583 * include/multiboot.h: Indentation fixes.
20585 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20587 * include/multiboot.h (struct multiboot_aout_symbol_table)
20588 (struct multiboot_elf_section_header_table): New structure
20589 declarations (stolen from GRUB Legacy).
20590 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
20593 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
20594 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
20597 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20599 * include/multiboot.h: Make comments src2texi-friendly.
20601 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20603 For consistency with [multiboot]/docs/boot.S.
20605 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
20606 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
20607 (MULTIBOOT_MAGIC2): Rename from this ...
20608 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
20610 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20612 * include/multiboot.h: Remove `<grub/types.h>'.
20613 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
20614 types. Update all users.
20616 2009-12-25 Carles Pina i Estany <carles@pina.cat>
20618 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
20619 `couldn't' and `can not' by `cannot'.
20620 * commands/i386/pc/drivemap.c: Likewise.
20621 * disk/ata.c: Likewise.
20622 * disk/ieee1275/nand.c: Likewise.
20623 * fs/affs.c: Likewise.
20624 * fs/fat.c: Likewise.
20625 * fs/hfs.c: Likewise.
20626 * fs/hfsplus.c: Likewise.
20627 * fs/iso9660.c: Likewise.
20628 * fs/jfs.c: Likewise.
20629 * fs/minix.c: Likewise.
20630 * fs/reiserfs.c: Likewise.
20631 * fs/sfs.c: Likewise.
20632 * fs/udf.c: Likewise.
20633 * fs/ufs.c: Likewise.
20634 * fs/xfs.c: Likewise.
20635 * loader/powerpc/ieee1275/linux.c: Likewise.
20636 * loader/sparc64/ieee1275/linux.c: Likewise.
20637 * util/grub-probe.c: Likewise.
20638 * util/misc.c: Likewise.
20640 2009-12-24 Carles Pina i Estany <carles@pina.cat>
20642 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
20644 * commands/acpi.c: Likewise.
20645 * commands/blocklist.c: Likewise.
20646 * commands/efi/loadbios.c: Likewise.
20647 * commands/i386/pc/drivemap.c: Likewise.
20648 * commands/loadenv.c: Likewise.
20649 * commands/memrw.c: Likewise.
20650 * commands/password.c: Likewise.
20651 * commands/videotest.c: Likewise.
20652 * disk/ata.c: Likewise.
20653 * disk/ata_pthru.c: Likewise.
20654 * disk/dmraid_nvidia.c: Likewise.
20655 * disk/ieee1275/nand.c: Likewise.
20656 * disk/ieee1275/ofdisk.c: Likewise.
20657 * disk/loopback.c: Likewise.
20658 * disk/lvm.c: Likewise.
20659 * disk/mdraid_linux.c: Likewise.
20660 * disk/raid.c: Likewise.
20661 * disk/raid6_recover.c: Likewise.
20662 * disk/scsi.c: Likewise.
20663 * efiemu/main.c: Likewise.
20664 * efiemu/mm.c: Likewise.
20665 * efiemu/pnvram.c: Likewise.
20666 * efiemu/symbols.c: Likewise.
20667 * font/font.c: Likewise.
20668 * fs/cpio.c: Likewise.
20669 * fs/hfsplus.c: Likewise.
20670 * fs/iso9660.c: Likewise.
20671 * fs/jfs.c: Likewise.
20672 * fs/minix.c: Likewise.
20673 * fs/ntfs.c: Likewise.
20674 * fs/ntfscomp.c: Likewise.
20675 * fs/reiserfs.c: Likewise.
20676 * fs/ufs.c: Likewise.
20677 * fs/xfs.c: Likewise.
20678 * gettext/gettext.c: Likewise.
20679 * include/grub/auth.h: Likewise.
20680 * kern/elf.c: Likewise.
20681 * kern/file.c: Likewise.
20682 * kern/ieee1275/init.c: Likewise.
20683 * kern/ieee1275/mmap.c: Likewise.
20684 * kern/ieee1275/openfw.c: Likewise.
20685 * kern/powerpc/dl.c: Likewise.
20686 * kern/sparc64/dl.c: Likewise.
20687 * lib/arg.c: Likewise.
20688 * loader/i386/bsd.c: Likewise.
20689 * loader/i386/bsdXX.c: Likewise.
20690 * loader/i386/efi/linux.c: Likewise.
20691 * loader/i386/efi/xnu.c: Likewise.
20692 * loader/i386/ieee1275/linux.c: Likewise.
20693 * loader/i386/linux.c: Likewise.
20694 * loader/i386/multiboot.c: Likewise.
20695 * loader/i386/pc/linux.c: Likewise.
20696 * loader/i386/pc/multiboot2.c: Likewise.
20697 * loader/i386/xnu.c: Likewise.
20698 * loader/ieee1275/multiboot2.c: Likewise.
20699 * loader/macho.c: Likewise.
20700 * loader/machoXX.c: Likewise.
20701 * loader/multiboot2.c: Likewise.
20702 * loader/multiboot_loader.c: Likewise.
20703 * loader/powerpc/ieee1275/linux.c: Likewise.
20704 * loader/sparc64/ieee1275/linux.c: Likewise.
20705 * loader/xnu.c: Likewise.
20706 * loader/xnu_resume.c: Likewise.
20707 * mmap/i386/pc/mmap.c: Likewise.
20708 * normal/menu_viewer.c: Likewise.
20709 * partmap/acorn.c: Likewise.
20710 * partmap/amiga.c: Likewise.
20711 * partmap/apple.c: Likewise.
20712 * script/lexer.c: Likewise.
20713 * term/gfxterm.c: Likewise.
20714 * term/i386/pc/serial.c: Likewise.
20715 * term/i386/pc/vga.c: Likewise.
20716 * term/ieee1275/ofconsole.c: Likewise.
20717 * term/terminfo.c: Likewise.
20718 * video/bitmap.c: Likewise.
20719 * video/efi_gop.c: Likewise.
20720 * video/efi_uga.c: Likewise.
20721 * video/fb/video_fb.c: Likewise.
20722 * video/i386/pc/vbe.c: Likewise.
20723 * video/readers/tga.c: Likewise.
20724 * video/video.c: Likewise.
20726 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
20728 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
20729 * commands/lspci.c: Likewise.
20730 * commands/probe.c: Likewise.
20731 * commands/xnu_uuid.c: Likewise.
20732 * conf/i386-coreboot.rmk: Likewise.
20733 * conf/i386-efi.rmk: Likewise.
20734 * conf/i386-ieee1275.rmk: Likewise.
20735 * conf/i386-pc.rmk: Likewise.
20736 * conf/powerpc-ieee1275.rmk: Likewise.
20737 * conf/sparc64-ieee1275.rmk: Likewise.
20738 * conf/x86_64-efi.rmk: Likewise.
20739 * fs/i386/pc/pxe.c: Likewise.
20740 * gettext/gettext.c: Likewise.
20741 * include/grub/efi/graphics_output.h: Likewise.
20742 * include/grub/i386/pc/memory.h: Likewise.
20743 * kern/env.c: Likewise.
20744 * kern/i386/qemu/startup.S: Likewise.
20745 * lib/i386/pc/biosnum.c: Likewise.
20746 * lib/i386/relocator.c: Likewise.
20747 * lib/i386/relocator_asm.S: Likewise.
20748 * lib/relocator.c: Likewise.
20749 * loader/i386/bsd.c: Likewise.
20750 * loader/i386/multiboot.c: Likewise.
20751 * loader/i386/pc/chainloader.c: Likewise.
20752 * loader/i386/xnu.c: Likewise.
20753 * loader/xnu.c: Likewise.
20754 * normal/main.c: Likewise.
20755 * normal/menu_text.c: Likewise.
20756 * util/getroot.c: Likewise.
20757 * util/grub-mkconfig_lib.in: Likewise.
20758 * util/grub.d/00_header.in: Likewise.
20759 * util/i386/pc/grub-mkimage.c: Likewise.
20760 * util/mkisofs/eltorito.c: Likewise.
20761 * util/mkisofs/exclude.h: Likewise.
20762 * util/mkisofs/hash.c: Likewise.
20763 * util/mkisofs/iso9660.h: Likewise.
20764 * util/mkisofs/joliet.c: Likewise.
20765 * util/mkisofs/mkisofs.c: Likewise.
20766 * util/mkisofs/mkisofs.h: Likewise.
20767 * util/mkisofs/multi.c: Likewise.
20768 * util/mkisofs/name.c: Likewise.
20769 * util/mkisofs/rock.c: Likewise.
20770 * util/mkisofs/tree.c: Likewise.
20771 * util/mkisofs/write.c: Likewise.
20772 * video/efi_gop.c: Likewise.
20774 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
20776 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
20779 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20781 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
20782 * genmk.rb (class SCRIPT): Modify the target file instead of source.
20784 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20786 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
20787 (GRUB_MOD_INIT(memrw)): Update help line.
20789 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20791 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
20792 Use grub_extcmd_t. All users updated.
20793 (options): New variable.
20794 (grub_cmd_read): Restructure for readability. Support "-v" option.
20795 (grub_cmd_write): Restructure for readability.
20797 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20799 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
20801 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20803 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
20804 with the actual contents of the correspondending make variable.
20805 * util/grub-mkrescue.in (pkglib_DATA): New variable.
20806 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
20807 specifying `*.lst' and `efiemu??.o'
20809 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20811 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
20812 after function name.
20813 Noticed by Rene Engelhard <rene@debian.org>.
20815 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20817 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
20818 (options): New variable.
20819 (iospace): Likewise.
20820 (grub_lspci_iter): List IO spaces if "-i" was given.
20821 (grub_cmd_lspci): Parse options.
20822 (GRUB_MOD_INIT(lspci)): Use extcmd.
20823 (GRUB_MOD_FINI(lspci)): Likewise.
20825 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20827 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
20828 `function' keyword.
20829 Patch by Tony Mancill <tmancill@debian.org>.
20831 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20833 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
20834 (grub_uhci_portstatus): Likewise.
20835 (grub_uhci_portstatus): Add necessary delay.
20836 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
20838 2009-12-21 Carles Pina i Estany <carles@pina.cat>
20840 * commands/acpi.c (options): Fix capitalizations and/or full stops.
20841 (GRUB_MOD_INIT): Likewise.
20842 * commands/boot.c (GRUB_MOD_INIT): Likewise.
20843 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
20844 * commands/echo.c (options): Fix capitalizations and/or full stops.
20845 * commands/efi/loadbios.c (enable_rom_area): Likewise.
20846 (enable_rom_area): Likewise.
20847 (GRUB_MOD_INIT): Likewise.
20848 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
20849 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
20850 * commands/handler.c (GRUB_MOD_INIT): Likewise.
20851 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
20852 * commands/hexdump.c (options): Likewise.
20853 * commands/i386/cpuid.c (options): Likewise.
20854 (GRUB_MOD_INIT): Likewise.
20855 * commands/i386/pc/drivemap.c (options): Likewise.
20856 (GRUB_MOD_INIT): Likewise.
20857 * commands/i386/pc/halt (options): Likewise.
20858 (GRUB_MOD_INIT): Likewise.
20859 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
20860 * commands/i386/pc/pxecmd.c (options): Likewise.
20861 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
20862 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
20863 * commands/keystatus.c (options): Likewise.
20864 (GRUB_MOD_INIT): Likewise.
20865 * commands/loadenv.c (options): Likewise.
20866 * commands/ls.c (options): Likewise.
20867 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
20868 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
20869 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
20870 * commands/parttool.c (helpmsg): Likewise.
20871 * commands/probe.c (options): Likewise.
20872 * commands/read.c (GRUB_MOD_INIT): Likewise.
20873 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
20874 * commands/search.c (options): Likewise.
20875 * commands/sleep.c (options): Likewise.
20876 * commands/test.c (GRUB_MOD_INIT): Likewise.
20877 * commands/true.c (GRUB_MOD_INIT): Likewise.
20878 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
20879 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
20880 * lib/arg.c (help_options): Likewise.
20881 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
20883 * po/POTFILES: Add `commands/loadenv.c'.
20885 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
20887 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
20888 instead of specifying them explicit.
20890 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20892 * NEWS: Add grub-probe support for GNU/Hurd.
20894 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20896 * NEWS: gettext was added after 1.97.
20898 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20900 * util/mkisofs/msdos_partition.h: New file (based on
20901 include/grub/msdos_partition.h).
20902 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
20903 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
20904 (ld_options, main): Recognize --protective-msdos-label.
20905 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
20906 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
20907 (padblock_write): If `use_protective_msdos_label' is set, patch a
20908 protective DOS-style label in the output image.
20910 * util/grub-mkrescue.in: Use --protective-msdos-label.
20912 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20914 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
20917 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20919 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
20921 (ld_options, main): Recognize `--embedded-boot'.
20922 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
20924 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
20925 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
20926 (padblock_write): Likewise. Rewrite to support embedded boot image.
20928 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
20929 for BIOS-based disk boot instead of only ElTorito.
20931 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20933 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
20934 build (not needed for bootstrap).
20936 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20938 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
20939 from i386-pc build (not needed for bootstrap).
20940 Rewrite a pair of strings.
20942 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20944 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
20946 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
20948 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
20950 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20952 * kern/env.c (grub_env_context_open): Mark exported variable for
20955 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20957 * kern/env.c (grub_env_export): Create nonexistent variables before
20960 2009-12-20 Carles Pina i Estany <carles@pina.cat>
20962 * include/grub/auth.h: Include `<grub/i18n.h>'.
20963 (GRUB_GET_PASSWORD): Gettextizze string.
20964 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
20966 (grub_utf8_to_ucs4_alloc): Fix indentation.
20967 (grub_print_ucs4): Likewise.
20968 (grub_getstringwidth): Likewise.
20969 (print_message_indented): New declaration.
20970 * normal/auth.c: Include `<grub/i18n.h>'.
20971 (grub_auth_check_authentication): Gettexttize string.
20972 * normal/cmdline.c: Include `<grub/i18n.h>'.
20973 (grub_cmdline_get): Gettextizze.
20974 * normal/color.c: Include `<grub/i18n.h>'.
20975 (grub_parse_color_name_pair): Gettexttize strings.
20976 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
20977 string (use `print_message_indented').
20978 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
20979 `include/grub/normal.h'.
20980 (print_message_indented): Renamed to ...
20981 (grub_print_message_indented): ... this. Remove `static' qualifer (now
20982 used in normal/main.c).
20983 (print_message): Use `grub_print_message_indented' instead of
20984 `print_message_indented'.
20985 (print_timeout): Likewise.
20986 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
20987 (grub_normal_print_device_info): Gettexttize strings.
20988 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
20990 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20992 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
20993 of arguments. Return number of tokens and not arguments. All users
20996 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20998 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
20999 non-MSDOS paritions.
21001 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21003 * include/grub/types.h (UNUSED): Removed since it conflicts with
21004 NetBSD headers. All users changed to direct __attribute__ ((unused)).
21005 Reported by Grégoire Sutre.
21007 2009-12-19 Carles Pina i Estany <carles@pina.cat>
21009 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
21010 (grub_print_ucs4_alloc): Likewise.
21011 (grub_getstringwidth): Likewise.
21012 * normal/main.c (grub_normal_init_page): Gettextize version string.
21013 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
21014 (getstringwidth): Renamed to ...
21015 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
21016 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
21017 (grub_print_ucs4): Remove `static' qualifer (now used in
21019 * po/POTFILES: Add normal/main.c.
21021 2009-12-19 Carles Pina i Estany <carles@pina.cat>
21023 * normal/menu_text.c (STANDARD_MARGIN): New macro.
21024 (print_message_indented): Add `margin_left' and `margin_right'
21026 (print_message): Update `print_message_indented' calls. Adds '\n' to the
21028 (print_timeout): Use `print_message_indented' to print the message.
21029 Deletes `second_stage' parameter.
21030 (run_menu): Update `print_timeout' calls.
21032 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21034 Fix console palette on OpenFirmware.
21036 * term/ieee1275/ofconsole.c (MAX): Removed.
21037 (colors): Redone based on VGA palette.
21038 (grub_ofconsole_setcolor): Discard brightness bit since only 8
21039 colors are supported.
21040 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
21042 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21044 Fix potential EfiEmu double prepare.
21046 * efiemu/main.c (prepared): New variable
21047 (grub_efiemu_unload): Set prepare to '0'.
21048 (grub_efiemu_prepare): Return if already prepared. Set prepared.
21050 set_virtual_address_map support.
21052 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
21054 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
21056 (grub_efiemu_crc32): Likewise.
21057 (grub_efiemu_crc64): Likewise.
21058 (grub_efiemu_set_virtual_address_map): Likewise.
21059 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
21061 (grub_autoefi_set_virtual_address_map): Likewise.
21062 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
21063 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
21064 Restructure flow to accomodate it.
21065 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
21066 (grub_efiemu_crc): Recompute CRC32.
21067 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
21068 (efiemu_ptv_relocated): ... this. Made global. All users updated.
21069 * efiemu/symbols.c (relocated_handle): New variable.
21070 (grub_efiemu_free_syms): Free relocated_handle.
21071 (grub_efiemu_alloc_syms): Allocate relocated_handle.
21072 (grub_efiemu_write_sym_markers): New function.
21073 (grub_efiemu_set_virtual_address_map): Likewise.
21075 Newer XNU parameters.
21077 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
21078 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
21079 (grub_xnu_fill_devicetree): New prototype.
21080 (grub_xnu_heap_real_start): New variable.
21081 * loader/xnu.c (get_name_ptr): New function.
21082 (grub_xnu_load_driver): Fill namelen and name.
21084 64-bit xnu support.
21086 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
21087 and 'loader/macho64.c'.
21088 * conf/i386-pc.rmk: Likewise.
21089 * conf/x86_64-efi.rmk: Likewise.
21090 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
21091 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
21092 * include/grub/macho.h (grub_macho_segment64): New structure.
21093 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
21094 (grub_macho_size32): ... to this.
21095 (grub_macho32_get_entry_point): Renamed from ...
21096 (grub_macho_get_entry_point32): ... to this.
21097 (grub_macho_contains_macho64): New prototype.
21098 (grub_macho_size64): Likewise.
21099 (grub_macho_get_entry_point64): Likewise.
21100 (grub_macho32_load): Renamed from ...
21101 (grub_macho_load32): ... to this.
21102 (grub_macho32_filesize): Renamed from ...
21103 (grub_macho_filesize32): ... to this.
21104 (grub_macho32_readfile): Renamed from ...
21105 (grub_macho_readfile32): ... to this.
21106 (grub_macho_filesize64): New prototype.
21107 (grub_macho_readfile64): Likewise.
21108 (grub_macho_parse32): Likewise.
21109 (grub_macho_parse64): Likewise.
21110 * loader/macho.c: Split into ...
21111 * loader/machoXX.c: ... and this. Replace 32 with XX.
21112 * loader/macho32.c: New file.
21113 * loader/macho64.c: Likewise.
21114 * loader/xnu.c (grub_xnu_is_64bit): New variable.
21115 (grub_cmd_xnu_kernel): Make 32-bit only.
21116 (grub_cmd_xnu_kernel64): New function.
21117 (grub_xnu_load_driver): Support Mach-O 64.
21118 (grub_cmd_xnu_mkext): Likewise.
21119 * util/grub.d/30_os-prober.in (osx_entry): New function.
21120 Generate entries for 64-bit boot too.
21122 Eliminate ad-hoc tree format in XNU and EfiEmu.
21124 * efiemu/main.c (grub_efiemu_prepare): Update comment.
21125 * efiemu/pnvram.c: Rewritten to use environment variables.
21128 Inline utf16_to_utf8.
21130 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
21131 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
21133 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
21135 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
21136 * commands/usbtest.c (grub_usb_get_string): ... move here.
21137 (usb_print_str): Fix error handling.
21138 * include/grub/usb.h (grub_usb_get_string): Remove.
21140 UTF-8 to UTF-16 transformation.
21142 * conf/common.rmk (pkglib_MODULES): Add charset.mod
21143 (charset_mod_SOURCES): New variable.
21144 (charset_mod_CFLAGS): Likewise.
21145 (charset_mod_LDFLAGS): Likewise.
21146 * include/grub/utf.h: New file.
21147 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
21149 Support for device properties.
21151 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
21152 (grub_xnu_devprop_device_header): Likewise.
21153 (grub_xnu_devprop_device_descriptor): Likewise.
21154 (grub_xnu_devprop_add_device): New prototype.
21155 (grub_xnu_devprop_remove_device): Likewise.
21156 (grub_xnu_devprop_remove_property): Likewise.
21157 (grub_xnu_devprop_add_property_utf8): Likewise.
21158 (grub_xnu_devprop_add_property_utf16): Likewise.
21159 (grub_cpu_xnu_init): Likewise.
21160 (grub_cpu_xnu_fini): Likewise.
21161 (grub_cpu_xnu_unload): Likewise.
21162 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
21163 (property_descriptor): Likewise.
21164 (devices): New variable.
21165 (grub_xnu_devprop_remove_property): New function.
21166 (grub_xnu_devprop_add_device): Likewise.
21167 (grub_xnu_devprop_remove_device): Likewise.
21168 (grub_xnu_devprop_add_property): Likewise.
21169 (grub_xnu_devprop_add_property_utf8): Likewise.
21170 (grub_xnu_devprop_add_property_utf16): Likewise.
21171 (hextoval): Likewise.
21172 (grub_cpu_xnu_fill_devprop): Likewise.
21173 (grub_cmd_devprop_load): Likewise.
21174 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
21175 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
21176 (cmd_devprop_load): New variable.
21177 (grub_cpu_xnu_init): New function.
21178 (grub_cpu_xnu_fini): Likewise.
21179 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
21180 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
21181 (grub_cmd_xnu_devtree): Likewise.
21182 (hextoval): New function.
21183 (unescape): Likewise.
21184 (grub_xnu_fill_devicetree): Likewise.
21186 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
21187 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
21189 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21191 Workaround for broken ATI VBE.
21193 * video/i386/pc/vbe.c (last_set_mode): New variable.
21194 (grub_vbe_set_video_mode): Set 'last_set_mode'.
21195 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
21196 (grub_video_vbe_setup): Don't check for reserved flag.
21198 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
21200 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
21201 the `find' command.
21203 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
21205 UUID support for HFS.
21207 * fs/hfs.c (grub_hfs_uuid): New function.
21208 (grub_hfs_fs): New value .uuid.
21209 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
21211 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
21213 Fix a segfault with parsing unknown long options.
21215 * util/grub-mkrelpath.c (options): Zero terminate it.
21217 2009-12-13 Carles Pina i Estany <carles@pina.cat>
21219 * include/grub/misc.h (grub_puts): New declaration.
21220 (grub_puts_): Likewise.
21221 * kern/misc.c (grub_puts): New definition.
21222 (grub_puts_): Likewise.
21224 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
21226 * util/grub-probe.c (probe): Improve error message.
21228 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
21230 * loader/i386/multiboot_elfxx.c
21231 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
21234 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
21236 Relocator framework
21238 * loader/i386/xnu_helper.S: Removed. All users updated.
21239 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
21240 (relocator_mod_SOURCES): New variable.
21241 (relocator_mod_CFLAGS): Likewise.
21242 (relocator_mod_LDFLAGS): Likewise.
21243 (relocator_mod_ASFLAGS): Likewise.
21244 * conf/x86_64.rmk: Likewise.
21245 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
21246 (grub_multiboot_payload_entry_offset): Likewise.
21247 (grub_multiboot_forward_relocator): Likewise.
21248 (grub_multiboot_forward_relocator_end): Likewise.
21249 (grub_multiboot_backward_relocator): Likewise.
21250 (grub_multiboot_backward_relocator_end): Likewise.
21251 (grub_multiboot_payload_eip): New variable.
21252 (grub_multiboot_payload_orig): Likewise.
21253 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
21254 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
21255 * include/grub/i386/memory.h
21256 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
21257 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
21258 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
21259 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
21260 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
21261 * include/grub/i386/relocator.h: New file.
21262 * include/grub/x86_64/relocator.h: Likewise.
21263 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
21264 (XNU_RELOCATOR): New macro.
21265 (grub_xnu_launcher_start): Remove.
21266 (grub_xnu_launcher_end): Likewise.
21267 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
21268 (grub_xnu_heap_real_start): Remove.
21269 (grub_xnu_heap_start): Change to void *. All users updated.
21270 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
21271 * lib/i386/relocator.c: New file.
21272 * lib/i386/relocator_asm.S: Likewise.
21273 * lib/i386/relocator_backward.S: Likewise.
21274 * lib/mips/relocator.c: Likewise.
21275 * lib/mips/relocator_asm.S: Likewise.
21276 * lib/relocator.c: Likewise.
21277 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
21279 (playground): Likewise.
21280 (grub_multiboot_payload_orig): New variable.
21281 (grub_multiboot_payload_dest): Likewise.
21282 (grub_multiboot_payload_size): Likewise.
21283 (grub_multiboot_payload_eip): Likewise.
21284 (grub_multiboot_payload_esp): Likewise.
21285 (grub_multiboot_boot): Use grub_relocator32_boot.
21286 (grub_multiboot_unload): Free relocators.
21287 (grub_multiboot): Setup stack. Use relocators.
21288 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
21289 (grub_multiboot_load_elfXX): Use relocators.
21290 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
21291 (grub_multiboot_payload_size): Likewise.
21292 (grub_multiboot_payload_dest): Likewise.
21293 (grub_multiboot_payload_entry_offset): Likewise.
21294 (grub_multiboot_forward_relocator): Likewise.
21295 (grub_multiboot_backward_relocator): Likewise.
21296 (grub_multiboot_real_boot): Likewise.
21297 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
21298 (grub_xnu_entry_point): Likewise.
21299 (grub_xnu_arg1): Likewise.
21300 (grub_xnu_stack): Likewise.
21301 (grub_xnu_launch): Removed.
21302 (grub_xnu_boot_resume): New function.
21303 (grub_xnu_boot): Use relocators.
21304 * loader/i386/xnu_helper.S: Removed.
21305 * loader/xnu.c (grub_xnu_heap_start): New variable.
21306 (grub_xnu_heap_size): Likewise.
21307 (grub_xnu_heap_malloc): Use relocators.
21308 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
21310 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
21312 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
21315 2009-12-13 Carles Pina i Estany <carles@pina.cat>
21317 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
21318 GRUB_ERR_NONE before calling grub_env_set.
21320 2009-12-12 Robert Millan <rmh@aybabtu.com>
21322 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
21323 * genmk.rb (video): New variable.
21324 (CLEANFILES, VIDEOFILES): Add #{video}.
21325 (#{video}): New target rule.
21326 * genvideolist.sh: New file.
21327 * Makefile.in (pkglib_DATA): Add video.lst.
21328 (video.lst): New target rule.
21329 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
21331 * util/grub.d/30_os-prober.in: Replace `vbe' with
21332 ${GRUB_VIDEO_BACKEND}.
21334 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
21336 * THANKS: Add David Miller.
21338 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
21340 libpciaccess support.
21342 * Makefile.in (LIBPCIACCESS): New variable.
21343 (enable_grub_emu_pci): Likewise.
21344 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
21345 util/pci.c and commands/lspci.c.
21346 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
21347 * configure.ac (grub-emu-pci): New option.
21348 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
21349 (grub_pci_device_unmap_range): Likewise.
21350 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
21351 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
21352 (grub_pci_address_t) [!GRUB_UTIL]: New type.
21353 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
21354 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
21355 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
21356 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
21357 * include/grub/pciutils.h: New file.
21358 * util/pci.c: Likewise.
21360 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
21362 * util/misc.c: Don't include <errno.h> twice.
21364 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
21366 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
21367 name in an error message.
21368 (grub_biosdisk_rw): Likewise.
21370 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21372 Eliminate NTFS 4Gib barrier.
21374 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
21375 (read_run_data): Likewise.
21376 (grub_ntfs_read_run_list): Likewise.
21377 (grub_ntfs_read_block): Likewise.
21378 (grub_ntfs_iterate_dir): Likewise.
21379 (read_mft): Likewise.
21380 (read_data): Likewise.
21382 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
21383 to avoid 64-bit division
21384 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
21385 (grub_ntfs_rlst): Use grub_disk_addr_t.
21387 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21389 Eliminate grub-fstest 4Gib barrier.
21391 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
21392 (read_file): Fix error reporting.
21394 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21396 Eliminate hexdump 4Gib barrier.
21398 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
21399 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
21401 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21403 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
21406 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
21408 Remove miscellaneous files in distclean target.
21410 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
21412 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
21414 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
21415 if they're already set. This resolves the conflict between my
21416 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
21417 fixing the --grub-probe option again.
21418 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
21419 change on 2009-10-06, so that we now once again source
21420 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
21422 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
21424 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
21425 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
21426 `util/devicemap.c'.
21428 2009-12-08 Carles Pina i Estany <carles@pina.cat>
21430 * include/grub/misc.h (grub_printf_): New declaration.
21431 * kern/misc.c (grub_printf_): New definition.
21432 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
21433 instead of `grub_printf' and `_'.
21434 * normal/menu_entry.c (store_completion): Likewise.
21436 (grub_menu_entry_run): Likewise.
21437 * normal/menu_text.c (grub_wait_after_message): Likewise.
21438 (notify_booting): Likewise.
21439 (notify_fallback): Likewise.
21440 (notify_execution_failure): Likewise.
21442 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
21444 * configure.ac: Check for vasprintf.
21445 * util/misc.c (asprintf): Move allocation from here ...
21446 (vasprintf): ... to here. New function.
21447 (xasprintf): New function.
21448 * include/grub/util/misc.h (vasprintf, xasprintf): Add
21450 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
21451 * util/grub-mkfont.c (write_font): Likewise.
21452 * util/grub-probe.c (probe): Likewise.
21453 * util/hostdisk.c (make_device_name): Likewise.
21455 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
21457 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
21458 anything even prefixed with 'cdrom' as a cdrom.
21460 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
21462 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
21465 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21467 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
21468 grub_gettext_msg_list.
21469 (grub_gettext_gettranslation_from_position): Return const char *
21471 (grub_gettext_translate): Add the translated strings into a list,
21472 returns from the list if existing there.
21473 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
21474 (grub_gettext_delete_list): Delete the list.
21475 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
21476 lang environment variable is changed.
21477 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
21479 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
21481 Rename kernel.mod to kernel.img.
21483 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
21484 (kernel_mod_EXPORTS): Rename to ...
21485 (kernel_img_EXPORTS): ... this.
21486 (kernel_mod_SOURCES): Rename to ...
21487 (kernel_img_SOURCES): ... this.
21488 (kernel_mod_HEADERS): Rename to ...
21489 (kernel_img_HEADERS): ... this. All users updated.
21490 (kernel_mod_CFLAGS): Rename to ...
21491 (kernel_img_CFLAGS): ... this.
21492 (kernel_mod_ASFLAGS): Rename to ...
21493 (kernel_img_ASFLAGS): ... this.
21494 (kernel_mod_LDFLAGS): Rename to ...
21495 (kernel_img_LDFLAGS): ... this.
21496 * conf/x86_64-efi.rmk: Likewise.
21497 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
21498 (read_kernel_image): ... this. All users updated.
21499 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
21501 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21503 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
21504 (print_spaces): New function.
21505 (grub_print_ucs4): New function.
21506 (getstringwidth): New function.
21507 (print_message_indented): New function.
21508 (print_message): Gettexttize strings using print_message_indented.
21509 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
21511 (get_entry_number): Gettextize and uses dynamic terminal width.
21512 (notify_booting, notify_fallback, notify_execution_failure):
21514 * normal/menu_entry.c (store_completion): Cleanup the gettextized
21517 (grub_menu_entry_run): Likewise.
21518 * PO/POTFILES: Add normal/menu_entry.c.
21520 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
21522 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
21524 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21526 * util/grub-install.in: Install gettext .mo files.
21527 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
21529 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21531 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
21534 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
21536 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
21537 non-firmware-dependant one in realmode.S takes precedence.
21539 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
21541 * commands/halt.c: Replace misc arch-specific headers with
21543 * commands/reboot.c: Likewise.
21544 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
21546 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
21547 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
21548 (kernel_img_SOURCES): ... to here.
21550 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
21551 * include/grub/i386/pc/init.h: Likewise.
21552 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21553 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21555 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
21557 * include/grub/i386/halt.h: Remove.
21558 * include/grub/i386/reboot.h: Likewise.
21560 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
21562 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
21564 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
21565 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
21566 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
21568 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
21569 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21570 (usage): Add missing comma in printf.
21572 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
21574 Use the same reboot approach on i386 coreboot and qemu as we do on
21577 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
21578 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
21579 * kern/i386/reboot.c: Remove.
21580 * include/grub/i386/reboot.h (grub_reboot): Export function.
21581 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
21582 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
21583 0xf000:0xfff0 instead of 0xffff:0x0000.
21584 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
21585 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
21587 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
21589 Fix $srcdir != $objdir build.
21591 * Makefile.in (po/%.po): Rewrite as ...
21592 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
21594 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
21596 Fix GNU/Hurd grub-install crash.
21597 * util/grub-probe.c (probe): Try to access `path' only when it is not
21600 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21602 Correct module naming.
21604 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
21605 (GRUB_MOD_INIT(efi_uga)): ... to this
21606 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21607 (GRUB_MOD_FINI(efi_uga)): ... to this
21608 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
21609 (GRUB_MOD_INIT(efi_gop)): ... to this
21610 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21611 (GRUB_MOD_FINI(efi_gop)): ... to this
21613 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
21615 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
21617 (usage): Translate `arg' strings using gettext().
21618 Thanks to Jordi Mallach for the suggestion.
21620 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21622 GOP support. Based on patch from Bean
21623 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21625 * video/efi_gop.c: New file.
21626 * include/grub/efi/graphics_output.h: Likewise.
21627 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
21628 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21630 * conf/x86_64-efi.rmk: Likewise.
21632 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21634 Rename efi_fb to efi_uga.
21636 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21638 (efi_fb_mod_SOURCES): Rename this ...
21639 (efi_uga_mod_SOURCES): ... to this.
21640 (efi_fb_mod_CFLAGS): Rename this ...
21641 (efi_uga_mod_CFLAGS): ... to this.
21642 (efi_fb_mod_LDFLAGS): Rename this ...
21643 (efi_uga_mod_LDFLAGS): ... to this.
21644 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21646 (efi_fb_mod_SOURCES): Rename this ...
21647 (efi_uga_mod_SOURCES): ... to this.
21648 (efi_fb_mod_CFLAGS): Rename this ...
21649 (efi_uga_mod_CFLAGS): ... to this.
21650 (efi_fb_mod_LDFLAGS): Rename this ...
21651 (efi_uga_mod_LDFLAGS): ... to this.
21652 * video/efi_fb.c: Move this ...
21653 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
21655 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21657 * po/README: New file. Explain our PO file workflow.
21659 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21661 * po/ChangeLog: Remove. Move relevant entries back to ...
21662 * ChangeLog: ... here.
21663 * po/ca.po: Remove (now handled by TLP).
21664 * po/id.po: Likewise.
21665 * po/zh_CN.po: Likewise.
21666 * Makefile.in (LINGUAS): Initialize in a way that supports
21669 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21671 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
21672 reliing on po/LINGUAS.
21673 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
21674 (po/%.po): ... this.
21676 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21678 * util/i386/efi/grub-mkimage.c: Include "progname.h".
21679 (main): Use `program_name' instead of nonexistent `progname'.
21681 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21683 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21684 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
21686 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21688 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
21690 * conf/i386-efi.rmk: Likewise.
21691 * conf/i386-ieee1275.rmk: Likewise.
21692 * conf/powerpc-ieee1275.rmk: Likewise.
21693 * conf/sparc64-ieee1275.rmk: Likewise.
21694 * conf/x86_64-efi.rmk: Likewise.
21696 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21698 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
21700 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21702 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
21704 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21706 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
21707 (grub_mkdevicemap_SOURCES): New variable.
21708 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
21709 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
21710 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
21711 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
21712 (grub_mkdevicemap_SOURCES): Remove.
21713 * conf/i386-efi.rmk: Likewise.
21714 * conf/i386-ieee1275.rmk: Likewise.
21715 * conf/i386-pc.rmk: Likewise.
21716 * conf/powerpc-ieee1275.rmk: Likewise.
21717 * conf/sparc64-ieee1275.rmk: Likewise.
21718 * conf/x86_64-efi.rmk: Likewise.
21719 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
21720 (usage): Fix strings to use `program_name'.
21721 (main): Initialize gettext.
21722 * util/grub-editenv.c: Likewise.
21723 * util/grub-emu.c: Likewise.
21724 * util/grub-fstest.c: Likewise.
21725 * util/grub-mkdevicemap.c: Likewise.
21726 * util/grub-mkfont.c: Likewise.
21727 * util/grub-mkrelpath.c: Likewise.
21728 * util/grub-pe2elf.c: Likewise.
21729 * util/grub-probe.c: Likewise.
21730 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
21731 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
21732 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21734 * util/misc.c: Include `"progname.h"'.
21735 (progname): Remove variable.
21736 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
21738 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21740 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
21741 printf and print a newline after the menuentry header line.
21742 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21744 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21746 autoconf >= 2.60 support $(localedir).
21748 * INSTALL: Note that autoconf 2.60 is required.
21749 * configure.ac (AC_PREREQ): Bump to 2.60.
21750 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
21751 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21753 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
21755 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
21758 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21760 * normal/main.c (grub_normal_read_line): Fix off-by-one
21763 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21765 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
21766 "parser.grub" in grub_command_execute() call.
21768 2009-11-24 Carles Pina i Estany <carles@pina.cat>
21770 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
21771 * conf/i386-efi.rmk: Likewise.
21772 * conf/i386-ieee1275.rmk: Likewise.
21773 * conf/i386-pc.rmk: Likewise.
21774 * conf/powerpc-ieee1275.rmk: Likewise.
21775 * conf/sparc64-ieee1275.rmk: Likewise.
21776 * conf/x86_64-efi.rmk: Likewise.
21777 * gettext/gettex.c: Include <grub/i18n.h>.
21778 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
21780 * include/grub/i18n.h: ... to here
21781 * include/grub/i18n.h: ... to here.
21782 * kern/misc.c: Include <grub/i18n.h>
21783 (grub_gettext_dummy): Move above user.
21785 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21787 * util/Makefile.in (install-local): Convert a `for' into a normal
21790 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
21792 * autogen.sh: Add automake call.
21793 * config.guess: Remove.
21794 * config.sub: Likewise.
21795 * install-sh: Likewise.
21797 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21799 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
21801 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21803 * util/Makefile.in (install-local): Convert a make `$(foreach)'
21804 function to a normal shell `for'.
21806 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21808 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21810 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21812 * util/grub-mkrelpath.c: New file.
21813 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
21814 (grub_mkrelpath_SOURCES): New variable.
21815 * include/grub/util/misc.h: New function prototype.
21816 * util/misc.c (make_system_path_relative_to_its_root): New function.
21818 * util/grub-mkconfig_lib.in (bindir): New variable.
21819 (grub_mkrelpath): Likewise.
21820 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
21822 * util/probe.c (probe): Make the file path relative to its root.
21823 Change a info message to use the GRUB path. Enable again the
21824 check if we can read the file with GRUB facilities.
21826 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
21829 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21831 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
21834 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21836 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
21839 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21841 * util/getroot.c (grub_util_is_dmraid): New function.
21842 (grub_util_get_dev_abstraction): Treat dmraid and multipath
21843 devices as normal ones, not as LVM.
21845 2009-11-23 Carles Pina i Estany <carles@pina.cat>
21847 * conf/common.rmk: Add grub-gettext_lib target and updates
21848 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
21850 * gettext/gettext.c: New file. (Reads mo files).
21851 * include/grub/file.h (grub_file_pread): New prototype.
21852 * include/grub/i18n.h (_): New prototype.
21853 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
21855 * kern/misc.c (grub_gettext_dummy): New function.
21856 * normal/menu_text.c: Include <grub/i18n.h>.
21857 * normal/menu_text.c (print_timeout): Gettexttize string.
21858 * normal/menu_text.c (print_message): Gettexttize string.
21859 * po/POTFILES: Add `normal/menu_text.c'.
21860 * po/ca.po: Add new translations.
21861 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
21862 gettext module and defines locale_dir and lang in grub.cfg.
21863 * NEWS: Add gettext support.
21865 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21867 * util/hostdisk.c: Include `<grub/i18n.h>'.
21868 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
21869 (make_device_name): Rewrite using asprintf.
21870 (convert_system_partition_to_system_disk): Replace 0 with NULL.
21871 (find_system_device): If a device is not found, generate one just
21872 by reusing the OS path name.
21873 (read_device_map): Make it permissible for device.map not to exist.
21875 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21877 * script/sh/execute.c: Move from here ...
21878 * script/execute.c: ... to here. Update all users.
21879 * script/sh/function.c: Move from here ...
21880 * script/function.c: ... to here. Update all users.
21881 * script/sh/lexer.c: Move from here ...
21882 * script/lexer.c: ... to here. Update all users.
21883 * script/sh/main.c: Move from here ...
21884 * script/main.c: ... to here. Update all users.
21885 * script/sh/parser.y: Move from here ...
21886 * script/parser.y: ... to here. Update all users.
21887 * script/sh/script.c: Move from here ...
21888 * script/script.c: ... to here. Update all users.
21890 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21892 * configure.ac: Detect all `emu' platforms. Define
21893 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
21894 --enable-grub-emu logic. Disable include/grub/machine
21895 symlink on `emu' platforms.
21897 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
21898 * gensymlist.sh.in: Likewise.
21900 * include/grub/i386/coreboot/machine.h: Remove file.
21901 * include/grub/i386/efi/machine.h: Likewise.
21902 * include/grub/i386/ieee1275/machine.h: Likewise.
21903 * include/grub/i386/pc/machine.h: Likewise.
21904 * include/grub/i386/qemu/machine.h: Likewise.
21905 * include/grub/powerpc/ieee1275/machine.h: Likewise.
21906 * include/grub/sparc64/ieee1275/machine.h: Likewise.
21907 * include/grub/x86_64/efi/machine.h: Likewise.
21909 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
21910 * commands/halt.c: Likewise.
21911 * commands/reboot.c: Likewise.
21912 * include/grub/autoefi.h: Likewise.
21913 * include/grub/i386/at_keyboard.h: Likewise.
21914 * include/grub/i386/kernel.h: Likewise.
21915 * include/grub/i386/loader.h: Likewise.
21916 * include/grub/i386/pc/memory.h: Likewise.
21917 * kern/dl.c: Likewise.
21918 * kern/i386/coreboot/init.c: Likewise.
21919 * loader/i386/bsd.c: Likewise.
21920 * loader/i386/linux.c: Likewise.
21921 * loader/multiboot_loader.c: Likewise.
21922 * term/i386/pc/serial.c: Likewise.
21923 * term/usb_keyboard.c: Likewise.
21925 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
21926 `<grub/machine/machine.h>'
21927 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
21928 * util/misc.c: Remove `<grub/machine/machine.h>' and
21929 `<grub/machine/time.h>'.
21931 * Makefile.in (enable_grub_emu): Remove variable.
21932 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
21934 * conf/any-emu.rmk: New file.
21935 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
21936 (grub_emu_init.c): Move from here ...
21937 * conf/any-emu.rmk: ... to here.
21939 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
21940 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
21941 * conf/any-emu.rmk: ... to here.
21943 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21945 * include/grub/parser.h (grub_parser_register): Document need
21946 of `name' parameter.
21947 * normal/main.c (grub_normal_read_line): Simplify prompt string.
21948 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
21951 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21953 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
21955 * include/grub/i18n.h (N_): New macro.
21956 * util/mkisofs/mkisofs.h: Likewise.
21957 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
21959 (usage): Use gettext() to translate help strings when printing them.
21961 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21963 Based on patch from Bean
21964 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21966 * video/efi_fb.c: New file.
21967 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
21968 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21970 * conf/x86_64-efi.rmk: Likewise.
21972 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
21974 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
21975 * util/i386/pc/grub-setup.c: Likewise.
21977 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21979 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
21981 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
21982 file_get_storage_info to implement grub_guess_root_device.
21984 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21986 * Makefile.in (target): Use make's builtin $(shell) function
21987 instead of calling directly $(SHELL) to create the locale directories,
21988 inside the $(foreach) function.
21990 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21992 * util/grub-mkrescue.in: Print an error and usage if output option
21993 has not been given.
21995 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21997 Patch from Loïc Minier <loic.minier@ubuntu.com>.
21998 * util/grub.d/30_os-prober.in: Cope with Linux entries where
21999 root and /boot are on different devices.
22001 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
22003 Fix build for srcdir != objdir.
22005 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
22006 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
22008 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
22009 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
22010 reference for input.
22012 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
22014 * util/grub-mkrescue.in: Use source directory direcly (without copiing
22015 or hardlinking it). Remove -J option, Joliet is not compatible with
22016 multiple source directories.
22018 2009-11-21 Carles Pina i Estany <carles@pina.cat>
22019 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
22021 * util/grub-mkrescue.in: Recognize `--override-directory' option.
22022 (process_input_dir): New function. Process an arbitrary input
22024 Misc adjustments to support both "override mode" and system-wide mode.
22026 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
22028 * configure.ac (UNIFONT_BDF): Rename to ...
22029 (FONT_SOURCE): ... this. Update all users.
22031 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
22033 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
22034 to the list of unifont files to look for.
22036 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
22038 Patch from Joe Auricchio <jauricchio@gmail.com>
22039 * commands/minicmd.c (grub_mini_cmd_clear): New function.
22040 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
22041 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
22043 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
22045 * Makefile.in (install-local): Add a missing backslash.
22047 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
22049 * include/grub/x86_64/io.h: New file.
22051 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
22053 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
22054 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
22055 Include `"progname.h"'.
22056 (main): Initialize gettext.
22057 * util/i386/pc/grub-setup.c: Gettexttize.
22058 * util/i386/pc/grub-mkimage.c: Likewise.
22060 * Makefile.in (po/*.po): Redefine as ...
22061 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
22063 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
22065 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
22067 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
22068 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
22069 (program_name): Remove.
22070 (main): Initialize gettext support.
22071 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
22072 Include `<libintl.h>'.
22075 * util/mkisofs/eltorito.c: Gettexttize.
22076 * util/mkisofs/joliet.c: Likewise.
22077 * util/mkisofs/mkisofs.c: Likewise.
22078 * util/mkisofs/multi.c: Likewise.
22079 * util/mkisofs/rock.c: Likewise.
22080 * util/mkisofs/tree.c: Likewise.
22081 * util/mkisofs/write.c: Likewise.
22083 * po/POTFILES: Update with new files.
22085 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22087 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
22088 * util/mkisofs/iso9660.h: Likewise.
22089 * util/mkisofs/joliet.c: Likewise.
22090 * util/mkisofs/mkisofs.c: Likewise.
22091 * util/mkisofs/mkisofs.h: Likewise.
22092 * util/mkisofs/rock.c: Likewise.
22093 * util/mkisofs/tree.c: Likewise.
22094 * util/mkisofs/write.c: Likewise.
22096 * util/mkisofs/eltorito.c (rcsid): Remove.
22097 * util/mkisofs/hash.c: Likewise.
22098 * util/mkisofs/joliet.c: Likewise.
22099 * util/mkisofs/name.c: Likewise.
22100 * util/mkisofs/rock.c: Likewise.
22101 * util/mkisofs/tree.c: Likewise.
22102 * util/mkisofs/write.c: Likewise.
22104 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22106 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
22107 instead of static allocation.
22108 * util/mkisofs/match.h: Likewise.
22110 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22112 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
22113 and `util/grub.d/10_linux.in'.
22114 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
22115 translatable Shell files.
22117 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22119 * Makefile.in ($(srcdir)/aclocal.m4): New target.
22121 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22123 * INSTALL: Document Automake is needed for bootstrap.
22124 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
22125 * util/grub.d/10_kfreebsd.in (bindir): New variable.
22126 Add gettext initialization.
22127 (kfreebsd_entry): Make menuentry output translatable.
22129 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22131 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
22132 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
22133 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
22134 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
22135 (LINGUAS): Auto-generate using `po/LINGUAS'.
22136 * po/LINGUAS: New file.
22138 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22140 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
22142 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
22143 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
22144 bindtextdomain() calls for gettext initialization.
22146 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22148 * gnulib/progname.c: New file (imported from Gnulib).
22149 * gnulib/progname.h: Likewise.
22150 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
22151 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
22152 (usage): Replace `progname' with `program_name'.
22153 (main): Use set_program_name() for program name initialization.
22155 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22157 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
22159 * Makefile.in (CPPFLAGS): ... to here.
22161 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22163 * aclocal.m4: Move from here ...
22164 * acinclude.m4: ... to here.
22165 * autogen.sh: Add call to `aclocal'.
22166 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
22168 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22170 * Makefile.in (CLEANFILES): Add `po/*.mo'.
22171 (LINGUAS): New variable.
22172 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
22173 (install-local): Install MO files.
22174 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
22175 * include/grub/i18n.h: New file.
22176 * po/POTFILES: New file.
22177 * po/ca.po: New file.
22178 * util/grub.d/10_linux.in (bindir): New variable.
22179 Add gettext initialization.
22180 (linux_entry): Make menuentry output translatable.
22181 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
22182 (usage): Make --help output translatable.
22183 (main): Initialize gettext.
22185 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22187 * import_gcry.py: New file (written by Vladimir with minor
22189 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
22191 * INSTALL: Document that Python is required for bootstrap.
22193 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22195 Import ciphers from libgcrypt 1.4.4.
22197 * lib/libgcrypt/cipher/ChangeLog
22198 * lib/libgcrypt/cipher/ac.c
22199 * lib/libgcrypt/cipher/arcfour.c
22200 * lib/libgcrypt/cipher/bithelp.h
22201 * lib/libgcrypt/cipher/blowfish.c
22202 * lib/libgcrypt/cipher/camellia-glue.c
22203 * lib/libgcrypt/cipher/camellia.c
22204 * lib/libgcrypt/cipher/camellia.h
22205 * lib/libgcrypt/cipher/cast5.c
22206 * lib/libgcrypt/cipher/cipher.c
22207 * lib/libgcrypt/cipher/crc.c
22208 * lib/libgcrypt/cipher/des.c
22209 * lib/libgcrypt/cipher/dsa.c
22210 * lib/libgcrypt/cipher/ecc.c
22211 * lib/libgcrypt/cipher/elgamal.c
22212 * lib/libgcrypt/cipher/hash-common.c
22213 * lib/libgcrypt/cipher/hash-common.h
22214 * lib/libgcrypt/cipher/hmac-tests.c
22215 * lib/libgcrypt/cipher/md.c
22216 * lib/libgcrypt/cipher/md4.c
22217 * lib/libgcrypt/cipher/md5.c
22218 * lib/libgcrypt/cipher/primegen.c
22219 * lib/libgcrypt/cipher/pubkey.c
22220 * lib/libgcrypt/cipher/rfc2268.c
22221 * lib/libgcrypt/cipher/rijndael-tables.h
22222 * lib/libgcrypt/cipher/rijndael.c
22223 * lib/libgcrypt/cipher/rmd.h
22224 * lib/libgcrypt/cipher/rmd160.c
22225 * lib/libgcrypt/cipher/rsa.c
22226 * lib/libgcrypt/cipher/seed.c
22227 * lib/libgcrypt/cipher/serpent.c
22228 * lib/libgcrypt/cipher/sha1.c
22229 * lib/libgcrypt/cipher/sha256.c
22230 * lib/libgcrypt/cipher/sha512.c
22231 * lib/libgcrypt/cipher/tiger.c
22232 * lib/libgcrypt/cipher/twofish.c
22233 * lib/libgcrypt/cipher/whirlpool.c
22235 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22237 Fix build for systems without error().
22239 * gnulib/error.c: New file (imported from Gnulib).
22240 * gnulib/error.h: Likewise.
22241 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
22242 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
22243 (this variable is now used by error()).
22245 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
22247 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
22248 instead of relying that char is signed.
22250 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22252 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
22253 blocksize different from specified.
22254 (grub_pxefs_read): Likewise.
22256 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
22258 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
22260 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
22261 (grub_ata_readwrite): Likewise. Update 2 format strings.
22262 (grub_atapi_read): Likewise.
22264 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
22265 * conf/i386.rmk (pkglib_MODULES): ... to here ...
22266 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
22267 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
22268 (ata_mod_LDFLAGS): Move from here ...
22269 * conf/i386.rmk: ... to here ...
22270 * conf/x86_64-efi.rmk: ... and here.
22271 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
22272 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
22274 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22276 Relicense multiboot.h, with RMS' blessing.
22278 * include/multiboot.h: Change to X11 license.
22280 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
22282 Support --version in grub-mkisofs.
22284 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
22285 (OPTION_VERSION): New macro.
22286 (ld_options): Recognize --version.
22287 (usage): Move `program_name' from here ...
22288 (program_name): ... to here. Add `static' qualifier.
22289 (main): Recognize `OPTION_VERSION'.
22291 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
22293 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
22294 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
22296 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
22298 Fix help2man generation for mkisofs.
22300 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
22301 (usage): Send output to stdout (rather than stderr).
22303 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
22305 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
22306 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
22307 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
22308 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
22309 (bin_SCRIPTS): Add `grub-mkfloppy'.
22310 (grub_mkfloppy_SOURCES): New variable.
22312 * util/grub-mkrescue.in: New file.
22313 * util/i386/pc/grub-mkfloppy.in: New file.
22315 * util/i386/coreboot/grub-mkrescue.in: Remove.
22316 * util/i386/pc/grub-mkrescue.in: Remove.
22318 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22320 * include/grub/multiboot.h (struct grub_multiboot_header): Move
22322 * include/multiboot.h (struct multiboot_header): ... to here. Update
22324 * include/grub/multiboot.h (struct grub_multiboot_info): Move
22326 * include/multiboot.h (struct multiboot_info): ... to here. Update
22328 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
22330 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
22332 * include/grub/multiboot.h (struct grub_mod_list): Move
22334 * include/multiboot.h (struct multiboot_mod_list): ... to here.
22337 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22339 * include/multiboot2.h (multiboot_word): Rename from this ...
22340 (multiboot2_word): ... to this. Update all users.
22341 (multiboot_header): Rename from this ...
22342 (multiboot2_header): ... to this. Update all users.
22343 (multiboot_tag_header): Rename from this ...
22344 (multiboot2_tag_header): ... to this. Update all users.
22345 (multiboot_tag_start): Rename from this ...
22346 (multiboot2_tag_start): ... to this. Update all users.
22347 (multiboot_tag_name): Rename from this ...
22348 (multiboot2_tag_name): ... to this. Update all users.
22349 (multiboot_tag_module): Rename from this ...
22350 (multiboot2_tag_module): ... to this. Update all users.
22351 (multiboot_tag_memory): Rename from this ...
22352 (multiboot2_tag_memory): ... to this. Update all users.
22353 (multiboot_tag_unused): Rename from this ...
22354 (multiboot2_tag_unused): ... to this. Update all users.
22355 (multiboot_tag_end): Rename from this ...
22356 (multiboot2_tag_end): ... to this. Update all users.
22358 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22360 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
22361 this platform we should support Multiboot1 first.
22363 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
22364 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
22365 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
22367 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
22369 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
22370 of write calls (converting them to fwrite() if they aren't already).
22371 (get_torito_desc): Likewise.
22372 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
22374 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
22376 * util/i386/pc/grub-install.in: Move from here ...
22377 * util/grub-install.in: ... to here. Update all users.
22379 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
22381 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
22383 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
22385 Support for El Torito without floppy emulation.
22387 * util/mkisofs/eltorito.c: Include `<errno.h>'.
22388 (init_boot_catalog): Improve error handling.
22389 (get_torito_desc): Don't use floppy emulation unless requested by
22390 user. Patch boot information table when requested via
22391 `-boot-info-table'.
22392 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
22393 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
22394 (use_boot_info_table): New variables.
22395 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
22396 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
22397 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
22398 `--eltorito-emul-floppy'.
22399 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
22400 and `OPTION_ELTORITO_EMUL_FLOPPY'.
22401 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
22402 (use_boot_info_table, get_731): New prototypes.
22403 * util/mkisofs/write.c (get_731): New function.
22405 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
22407 Fix the generation of the man page.
22409 * util/pc/i386/grub-install.in: Source
22410 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
22412 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
22414 Large file support for grub-mkisofs.
22416 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
22417 * util/mkisofs/mkisofs.c (next_extent, last_extent)
22418 (session_start): Upgrade type to `uint64_t'. Update all users.
22419 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
22420 (struct directory_entry): Upgrade type of `starting_block' and
22421 `size' to `uint64_t'. Update all users.
22422 (struct deferred): Remove unused structure.
22423 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
22425 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
22426 file is larger than `UINT32_MAX'.
22427 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
22428 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
22430 (struct deferred_write): Upgrade type of `extent' and `size' to
22431 `uint64_t'. Update all users.
22432 (last_extent_written): Upgrade type to `uint64_t'. Update all
22434 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
22435 Update all users. Upgrade type of `remain' to `int64_t' and
22436 `use' to `size_t'. Use error() to handle fread() errors.
22437 (write_files): Rely on write_one_file() rather than calling
22438 xfwrite() directly.
22440 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
22442 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
22444 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22446 * util/mkisofs/fnmatch.c: Remove.
22447 * util/mkisofs/getopt1.c: Likewise.
22448 * util/mkisofs/getopt.c: Likewise.
22449 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
22450 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
22451 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
22452 `gnulib/getopt1.c' and `gnulib/getopt.c'.
22453 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
22455 * configure.ac: Detect `mingw32msvc' host_os.
22456 Check for lstat(), getuid() and getgid().
22458 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
22459 instances of `u_char' with `uint8_t'.
22461 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
22462 [!HAVE_GETUID] (getuid): New function (stub).
22463 [!HAVE_GETGID] (getgid): Likewise.
22464 [!HAVE_LSTAT] (lstat): Likewise.
22465 [!S_IROTH] (S_IROTH): New macro (dummy).
22466 [!S_IRGRP] (S_IRGRP): Likewise.
22468 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22470 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
22471 conditional expression).
22473 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22475 Import from Gnulib.
22477 * gnulib/fnmatch.c: New file.
22478 * gnulib/fnmatch.h: Likewise.
22479 * gnulib/fnmatch_loop.c: Likewise.
22480 * gnulib/getopt.c: Likewise.
22481 * gnulib/getopt.h: Likewise.
22482 * gnulib/getopt1.c: Likewise.
22483 * gnulib/getopt_int.h: Likewise.
22484 * gnulib/gettext.h: Likewise.
22486 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22488 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
22489 * normal/handler.c (read_handler_list): Likewise.
22491 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22495 * kern/command.c (grub_register_command_prio): Use
22496 grub_zalloc() instead of explicitly zeroing data.
22497 * kern/list.c: Include `<grub/mm.h>'.
22498 (grub_named_list_find): Replace `0' with `NULL'.
22499 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
22500 (fs_module_list): Change type to `grub_named_list_t'. Update all
22502 * normal/dyncmd.c (read_command_list): Add space between function
22503 call and parenthesis.
22504 * normal/handler.c (read_handler_list): Likewise.
22506 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22508 * normal/auth.c (punishment_delay): Moved from here ...
22509 (grub_auth_strcmp): ... to here (inside function).
22511 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22513 * include/grub/list.h (struct grub_named_list): Remove `const'
22514 qualifier from `name'.
22515 (struct grub_prio_list): Likewise.
22517 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22519 * normal/auth.c: Include `<grub/time.h>'.
22520 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
22522 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22524 * normal/auth.c (punishment_delay): New variable.
22525 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
22526 (grub_auth_check_authentication): Punish failed login attempts with
22527 an incremental (2^N) delay.
22529 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22531 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
22532 path with $(srcdir).
22534 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
22536 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
22538 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22540 * util/i386/coreboot/grub-mkrescue.in: New file.
22541 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
22544 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
22545 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
22546 * configure.ac: Add header and function checks to satisfy grub-mkisofs
22548 * util/mkisofs/defaults.h: New file.
22549 * util/mkisofs/eltorito.c: Likewise.
22550 * util/mkisofs/exclude.h: Likewise.
22551 * util/mkisofs/fnmatch.c: Likewise.
22552 * util/mkisofs/getopt.c: Likewise.
22553 * util/mkisofs/getopt1.c: Likewise.
22554 * util/mkisofs/hash.c: Likewise.
22555 * util/mkisofs/include/fctldefs.h: Likewise.
22556 * util/mkisofs/include/mconfig.h: Likewise.
22557 * util/mkisofs/include/prototyp.h: Likewise.
22558 * util/mkisofs/include/statdefs.h: Likewise.
22559 * util/mkisofs/iso9660.h: Likewise.
22560 * util/mkisofs/joliet.c: Likewise.
22561 * util/mkisofs/match.c: Likewise.
22562 * util/mkisofs/match.h: Likewise.
22563 * util/mkisofs/mkisofs.c: Likewise.
22564 * util/mkisofs/mkisofs.h: Likewise.
22565 * util/mkisofs/multi.c: Likewise.
22566 * util/mkisofs/name.c: Likewise.
22567 * util/mkisofs/rock.c: Likewise.
22568 * util/mkisofs/tree.c: Likewise.
22569 * util/mkisofs/write.c: Likewise.
22571 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
22573 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
22576 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22578 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
22579 `grub-mkimage' (and use $0 when possible).
22581 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22583 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
22584 error message for excessively large memory map.
22586 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22588 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
22591 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22593 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
22594 message for coreboot users.
22596 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
22598 Fix build with GNU gold.
22600 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
22601 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
22602 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
22604 * aclocal.m4: Likewise.
22606 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
22608 * configure.ac (AC_PREREQ): Bump to 2.59d.
22609 * INSTALL: Make it more clear when Autoconf and Ruby are
22610 needed and when to run `./autogen.sh'.
22612 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22614 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
22617 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22619 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
22621 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22623 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
22624 giving it to GNU Mach.
22626 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22628 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
22629 GNU partition number to get internal GRUB partition number.
22631 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22633 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
22634 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
22636 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
22638 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
22639 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
22642 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
22644 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
22646 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22650 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
22651 `-isystem=$(srcdir)/include'.
22653 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22655 * util/i386/pc/grub-install.in: Remove hint that device.map should be
22656 checked (grub-install doesn't currently rely on it).
22658 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
22662 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
22663 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22664 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
22665 * conf/i386-ieee1275.rmk: Likewise.
22666 * conf/i386-pc.rmk: Likewise.
22667 * conf/powerpc-ieee1275.rmk: Likewise.
22668 * conf/sparc64-ieee1275.rmk: Likewise.
22669 * conf/x86_64-efi.rmk: Likewise.
22671 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22673 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
22675 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22677 * include/grub/misc.h: Stop checking for APPLE_CC.
22679 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22681 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
22682 doesn't cause an infinite call loop.
22684 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
22686 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
22689 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22691 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
22693 * Makefile.in: Likewise.
22695 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22697 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
22699 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22701 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
22703 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22705 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
22707 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22709 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
22711 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
22713 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22715 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
22716 in $(MAKEINFO) invocation. This makes it clear in output that
22717 errors are being ignored.
22719 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22721 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
22723 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22724 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
22725 * conf/i386-ieee1275.rmk: Likewise.
22726 * conf/i386-pc.rmk: Likewise.
22727 * conf/powerpc-ieee1275.rmk: Likewise.
22728 * conf/sparc64-ieee1275.rmk: Likewise.
22729 * conf/x86_64-efi.rmk: Likewise.
22731 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22733 * util/grub-editenv.c (main): If only a command is given, use
22734 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
22735 (usage): FILENAME is now optional and has a default.
22737 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22739 Improve grub-mkconfig performance when there are several menu
22740 entries on a single filesystem.
22742 * util/grub.d/10_linux.in (linux_entry): Cache the output of
22743 prepare_grub_to_access_device.
22744 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22745 * util/grub.d/30_os-prober.in: Likewise.
22747 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22749 * util/grub.d/10_freebsd.in: Remove.
22750 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
22751 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
22753 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22755 * docs/grub.cfg: Fix example usage of *BSD loaders.
22757 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22759 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
22760 grub_util_error() call.
22762 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22764 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
22765 `reserved_first_sector' member.
22766 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
22767 `reserved_first_sector' to 1.
22768 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
22769 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
22770 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
22771 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
22772 filesystems which begin at first sector.
22773 (options): New option --skip-fs-probe.
22774 (main): Handle --skip-fs-probe and pass it to setup().
22776 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22778 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
22779 (memset): Fix function prototype.
22781 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22782 2009-10-25 Vasily Averin <vvs@parallels.com>
22784 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
22785 `dirent.direntlen == 0'.
22787 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22789 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
22791 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
22793 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22795 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
22796 `__trampoline_setup' and `__ucmpdi2'.
22797 * include/grub/powerpc/libgcc.h: Only export symbols for functions
22798 that libgcc provides.
22800 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22802 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
22803 * include/grub/sparc64/libgcc.h (memset): Likewise.
22804 * include/grub/misc.h (memset, memcmp): New function prototypes.
22806 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22808 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
22810 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
22812 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22814 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
22815 * docs/grub.cfg: Compensate for recent change in multiboot
22816 loader (since 2009-08-14 it won't pass filename to payload).
22817 * util/grub.d/10_hurd.in: Likewise.
22819 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
22821 * config.guess: Update to latest version from config git
22823 * config.sub: Likewise.
22825 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
22827 Fix build on sparc64.
22829 * configure.ac: Perform checks for libgcc symbols before
22830 adding `-nostdlib' to LDFLAGS.
22832 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22834 Let user specify OpenBSD root device.
22836 * loader/i386/bsd.c (openbsd_root): New variable.
22837 (openbsd_opts): New option 'root'.
22838 (OPENBSD_ROOT_ARG): New macro.
22839 (grub_openbsd_boot): Use 'openbsd_root'.
22840 (grub_cmd_openbsd): Fill 'openbsd_root'.
22842 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22844 * NEWS: Misc adjustments.
22846 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22848 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
22850 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22852 * configure.ac: Bump version to 1.97.
22854 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
22856 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
22857 -mno-3dnow on x86 architectures. Some toolchains enable these
22858 features by default, but they rely on registers that aren't enabled
22859 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
22861 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
22863 Make entry text a bit more readable.
22865 * util/grub.d/10_linux.in: Add `with' before `Linux'.
22867 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22869 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
22871 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22873 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
22876 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22878 * configure.ac: Add missing dollar.
22880 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22882 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
22884 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
22885 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
22887 * include/grub/sparc64/libgcc.h: Likewise. Use
22888 preprocessor conditionals.
22890 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22892 * conf/common.rmk (grub-dumpbios): Remove rule.
22893 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
22894 * util/grub-dumpbios.in: Remove file.
22896 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22898 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
22899 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
22901 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
22902 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
22905 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
22906 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
22907 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
22908 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
22911 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
22913 * term/tparm.c: Switch to GPLv3.
22915 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22917 * include/grub/i386/cpuid.h: Add header protection.
22919 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22921 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
22923 * include/grub/i386/cpuid.h: New file.
22924 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
22925 (has_longmode): Rename to ...
22926 (grub_cpuid_has_longmode): ... this. Update all users. Remove
22927 `static' attribute.
22928 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
22929 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
22930 on a CPU that doesn't implement AMD64 instruction set.
22932 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22934 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
22935 that version.texi is rebuilt on version number changes.
22937 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22939 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
22942 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22944 * util/i386/pc/grub-install.in: Source
22945 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
22946 that the --grub-probe option will work.
22947 * util/sparc64/ieee1275/grub-install.in: Likewise.
22949 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
22951 * configure.ac: Bump version to 1.97~beta4.
22953 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
22955 Resync grub-mkdevicemap in x86_64-efi.
22957 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
22958 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
22959 `util/devicemap.c'.
22961 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
22963 * util/grub-editenv.c (create_envblk_file): Write new block with a
22964 .new suffix and then rename it into place, to ensure atomic
22967 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
22969 Do not automatically install headers.
22971 * Makefile.in (include_DATA): Remove. Update all users.
22973 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
22975 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
22976 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
22978 * util/osdetect.lua: Remove.
22979 * script/lua/lauxlib.c: Likewise.
22980 * script/lua/ldebug.c: Likewise.
22981 * script/lua/grub_main.c: Likewise.
22982 * script/lua/lauxlib.h: Likewise.
22983 * script/lua/ldebug.h: Likewise.
22984 * script/lua/ltablib.c: Likewise.
22985 * script/lua/liolib.c: Likewise.
22986 * script/lua/lstrlib.c: Likewise.
22987 * script/lua/lualib.h: Likewise.
22988 * script/lua/ldo.c: Likewise.
22989 * script/lua/ldump.c: Likewise.
22990 * script/lua/ldo.h: Likewise.
22991 * script/lua/loslib.c: Likewise.
22992 * script/lua/lundump.c: Likewise.
22993 * script/lua/grub_lib.c: Likewise.
22994 * script/lua/ldblib.c: Likewise.
22995 * script/lua/lundump.h: Likewise.
22996 * script/lua/lmem.c: Likewise.
22997 * script/lua/grub_lib.h: Likewise.
22998 * script/lua/lmathlib.c: Likewise.
22999 * script/lua/lstate.c: Likewise.
23000 * script/lua/ltm.c: Likewise.
23001 * script/lua/lvm.c: Likewise.
23002 * script/lua/lmem.h: Likewise.
23003 * script/lua/lstate.h: Likewise.
23004 * script/lua/ltm.h: Likewise.
23005 * script/lua/ltable.c: Likewise.
23006 * script/lua/lvm.h: Likewise.
23007 * script/lua/llex.c: Likewise.
23008 * script/lua/lgc.c: Likewise.
23009 * script/lua/grub_lua.h: Likewise.
23010 * script/lua/loadlib.c: Likewise.
23011 * script/lua/lfunc.c: Likewise.
23012 * script/lua/lopcodes.c: Likewise.
23013 * script/lua/lparser.c: Likewise.
23014 * script/lua/ltable.h: Likewise.
23015 * script/lua/llex.h: Likewise.
23016 * script/lua/lgc.h: Likewise.
23017 * script/lua/lfunc.h: Likewise.
23018 * script/lua/lbaselib.c: Likewise.
23019 * script/lua/lopcodes.h: Likewise.
23020 * script/lua/lparser.h: Likewise.
23021 * script/lua/lzio.c: Likewise.
23022 * script/lua/linit.c: Likewise.
23023 * script/lua/lobject.c: Likewise.
23024 * script/lua/llimits.h: Likewise.
23025 * script/lua/lstring.c: Likewise.
23026 * script/lua/lzio.h: Likewise.
23027 * script/lua/lapi.c: Likewise.
23028 * script/lua/lcode.c: Likewise.
23029 * script/lua/lua.h: Likewise.
23030 * script/lua/lobject.h: Likewise.
23031 * script/lua/lstring.h: Likewise.
23032 * script/lua/lapi.h: Likewise.
23033 * script/lua/lcode.h: Likewise.
23034 * script/lua/luaconf.h: Likewise.
23036 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
23038 * docs/grub.texi (Command-line and menu entry commands): Document
23039 date and echo commands.
23041 2009-09-24 Pavel Roskin <proski@gnu.org>
23043 * include/grub/kernel.h (struct grub_module_header): Remove
23044 `grub_module_header_types'. Make `type' unsigned. Make `size'
23045 32-bit on all platforms.
23046 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
23047 8-bit field. Use grub_host_to_target32() for `size'.
23048 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
23049 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
23050 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
23052 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
23054 Fix "lost keypress" bug in at_keyboard.
23056 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
23057 Checks for readyness of input buffer (without flushing it).
23058 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
23059 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
23061 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
23063 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
23064 size check within GRUB_MACHINE_PCBIOS section.
23066 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
23068 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
23070 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
23071 KEYBOARD_ISREADY check.
23072 (grub_at_keyboard_checkkey): Rename to ...
23073 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
23074 Remove gratuitous cast.
23076 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
23078 * configure.ac: Call AC_PROG_MKDIR_P.
23079 * Makefile.in (docs/stamp-vti): Create docs directory. Create
23080 version.texi in $(builddir) rather than $(srcdir).
23081 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
23082 to makeinfo's @include search path.
23084 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
23086 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
23088 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
23090 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
23093 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
23095 Build info documentation. Some code borrowed from Automake.
23097 * configure.ac: Check for makeinfo.
23098 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
23099 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
23101 (MOSTLYCLEANFILES): Add vti.tmp.
23102 (docs/version.texi, docs/stamp-vti): Update automatically.
23103 (docs/grub.info): Build info documentation. Use --force and ignore
23105 (all-local): Add $(INFOS).
23106 (install-local): Install info files.
23107 (uninstall): Uninstall info files.
23108 * docs/version.texi: Remove from revision control. This file is
23109 automatically generated on build now.
23110 * gendistlist.sh: Add `*.info'.
23112 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
23114 * kern/term.c: Fix indentation.
23116 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
23118 * util/hostdisk.c: Fix a comment.
23120 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
23122 Fix regression introduced in r2539.
23124 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
23127 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
23129 * util/grub.d/30_os-prober.in: Don't throw away stderr from
23130 os-prober. Under normal operation, it does not print anything to
23131 stderr; if it does, we need to debug it, and throwing away stderr
23132 makes that excessively difficult.
23134 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
23136 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
23138 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
23140 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
23141 AC_LANG_PROGRAM from autoconf.
23142 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
23143 prototypes (fixes warning).
23145 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
23146 `--disable-werror' was used.
23148 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
23150 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
23151 uninitialized `lastaddr'.
23153 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23155 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
23157 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
23159 * commands/test.c (get_fileinfo): Return immediately if
23160 grub_fs_probe fails.
23162 2009-09-14 José Martínez <xosemp@gmail.com>
23164 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
23166 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
23168 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
23171 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
23173 * configure.ac: Remove --enable-grub-pe2elf. Only build
23174 grub-pe2elf when needed by the build system itself.
23175 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
23177 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
23179 * configure.ac: Bump version to 1.97~beta3.
23180 * docs/version.texi: Likewise.
23182 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
23184 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
23185 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
23187 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
23188 (grub_linux_setup_video): ... to here (with some adjustments).
23190 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
23192 Fix memory corruption issue (spotted by Colin Watson).
23194 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
23195 causing returned size to be stored in an incorrect memory location.
23196 Fix use of uninitialized value when storing the returned size.
23198 2009-09-12 Yves Blusseau <blusseau@zetam.org>
23200 Change clean rules to properly remove files
23202 * genmk.rb: add new clean rules
23203 * Makefile.in (clean): add the new targets
23204 (mostlyclean): likewise
23206 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
23208 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
23210 * fs/ntfs.c (init_file): Understand 64-bit sizes for
23211 non-resident files.
23213 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
23215 * configure.ac: Don't look for help2man when cross-compiling. Fixes
23216 part of bug #27349.
23218 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
23220 * util/grub-mkconfig.in: Make the created config mode 400 and
23221 print a warning if it fails.
23223 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
23225 * util/grub.d/40_custom.in: Ask user to type custom entries below
23226 comment, rather than below 'exec tail' line.
23228 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
23230 * util/grub.d/40_custom.in: Make sure that the explanatory text is
23231 visible in grub.cfg.
23233 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
23235 * util/grub.d/40_custom.in: Make it a little clearer how to use this
23238 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
23240 * docs/grub.cfg: Add an example menu entry for memtest86+.
23242 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
23244 * config.guess: Update to latest version from config git.
23245 * config.sub: Likewise.
23247 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
23249 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
23250 unknown-command case. Fixes bug #27320.
23252 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
23254 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
23255 `help' if the command exists.
23257 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
23259 * INSTALL: Require GCC 4.1.3 or later.
23261 2009-09-06 Yves Blusseau <blusseau@zetam.org>
23263 * Makefile.in (RMKFILES): add i386-qemu.rmk
23264 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
23265 $(srcdir)/stamp-h.in
23267 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
23269 * util/grub-probe.c (probe): Comment out buggy codepath, which
23270 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
23271 should be re-enabled after 1.97.
23273 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
23275 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
23278 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
23280 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
23281 unnecessary calls to grub_error.
23283 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
23285 * NEWS: Mention `keystatus' and Unicode fonts.
23287 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
23289 * configure.ac: Bump version to 1.97~beta2.
23290 * docs/version.texi: Likewise.
23292 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
23294 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
23295 containing unwind information in some cases where it previously did
23296 not. Use -fno-dwarf2-cfi-asm if available to restore the old
23297 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
23300 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
23302 Embedding loadenv module into grub-emu
23304 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
23306 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
23307 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
23308 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
23309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
23310 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
23311 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
23313 2009-09-03 Magnus Granberg <zorry@ume.nu>
23315 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
23316 include -fPIE in the default specs.
23317 * configure.ac: Check if pie_possible is yes and add -fno-PIE
23320 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
23322 * INSTALL: Note that GNU Bison 2.3 or later is required.
23324 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
23326 * kern/i386/pc/startup.S: Fix typo.
23328 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23330 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
23333 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23335 * docs/grub.texi (Naming convention): Describe one-based partition
23337 (Device syntax): Likewise.
23338 (File name syntax): Likewise.
23339 (Block list syntax): Likewise.
23340 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
23342 (File name syntax): Likewise.
23343 (Command-line and menu entry commands): Document acpi, blocklist,
23344 crc, export, insmod, keystatus, ls, set, and unset commands.
23346 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23348 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
23349 to avoid implying that only one of --shift, --ctrl, or --alt may be
23352 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23354 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
23355 rather than comparing against S_IFREG, which will almost never work.
23357 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
23359 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
23360 (write_blocklists): Likewise.
23362 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
23364 * script/lua/grub_lua.h (fputs): Supply a format string as the first
23365 argument to grub_printf.
23367 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
23369 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
23372 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23374 * kern/file.c (grub_file_read): Spelling fix
23376 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23378 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
23379 loading of headers in some cases.
23381 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
23383 * configure.ac: Bump version to 1.97~beta1.
23384 * docs/version.texi: Likewise.
23386 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23388 * include/grub/i386/xnu.h: Add license header.
23389 include grub/err.h explicitly.
23391 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
23393 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
23394 to `ufs' in the vfs.root.mountfrom kernel parameter.
23396 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
23398 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
23400 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
23401 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
23403 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
23404 `ARRAY_SIZE' macro.
23406 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23408 * kern/file.c (grub_file_read): Check offset.
23409 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
23410 * fs/jfs.c (grub_jfs_read_file): Likewise.
23411 * fs/ntfs.c (grub_ntfs_read): Likewise.
23412 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
23413 * fs/minix.c (grub_minix_read_file): Correct offset check.
23414 * fs/ufs.c (grub_ufs_read_file): Likewise.
23416 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23418 * term/i386/pc/console.c (bios_data_area): Cast
23419 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
23421 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23423 1-bit optimised blitters.
23425 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
23427 (grub_video_fbblit_replace_24bit_1bit): Likewise.
23428 (grub_video_fbblit_replace_16bit_1bit): Likewise.
23429 (grub_video_fbblit_replace_8bit_1bit): Likewise.
23430 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
23431 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
23432 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
23433 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
23435 (grub_video_fbblit_replace_24bit_1bit): Likewise.
23436 (grub_video_fbblit_replace_16bit_1bit): Likewise.
23437 (grub_video_fbblit_replace_8bit_1bit): Likewise.
23438 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
23439 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
23440 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
23441 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
23443 * video/video.c (grub_video_get_blit_format): Return
23444 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
23446 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23448 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
23449 the first argument to grub_printf.
23451 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23452 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
23454 Add `getkeystatus' terminal method. Add a new `keystatus' command
23457 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
23458 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
23459 modifier key bitmasks.
23460 (struct grub_term_input): Add `getkeystatus' member.
23461 (grub_getkeystatus): Add prototype.
23462 * kern/term.c (grub_getkeystatus): New function.
23464 * include/grub/i386/pc/memory.h
23465 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
23466 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
23468 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
23469 (grub_console_term_input): Set `getkeystatus' member.
23470 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
23472 (grub_usb_keyboard_getreport): Likewise.
23473 (grub_usb_keyboard_checkkey): Likewise.
23474 (grub_usb_keyboard_getkeystatus): New function.
23475 (grub_usb_keyboard_term): Set `getkeystatus' member.
23477 * commands/keystatus.c: New file.
23478 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
23479 (keystatus_mod_SOURCES): New variable.
23480 (keystatus_mod_CFLAGS): Likewise.
23481 (keystatus_mod_LDFLAGS): Likewise.
23482 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
23483 commands/keystatus.c.
23484 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23485 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23486 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23488 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23489 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23491 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23493 Split befs.mod and afs.mod into *_be.mod and *.mod
23495 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
23496 (grub_fstest_SOURCES): Likewise.
23497 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
23498 (afs_be_mod_SOURCES): New variable.
23499 (afs_be_mod_CFLAGS): Likewise.
23500 (afs_be_mod_LDFLAGS): Likewise.
23501 (befs_be_mod_SOURCES): Likewise.
23502 (befs_be_mod_CFLAGS): Likewise.
23503 (befs_be_mod_LDFLAGS): Likewise.
23504 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
23505 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23506 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23507 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23508 (grub_emu_SOURCES): Likewise.
23509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23510 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23511 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23512 * fs/afs_be.c: New file.
23513 * fs/befs_be.c: New file.
23514 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
23515 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
23516 (U16): Replaced with ...
23517 (grub_afs_to_cpu16): ...this. All users updated.
23518 (U32): Replaced with ...
23519 (grub_afs_to_cpu32): ...this. All users updated.
23520 (U64): Replaced with ...
23521 (grub_afs_to_cpu64): ...this. All users updated.
23522 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
23523 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
23524 (grub_afs_validate_sblock): Check only one endianness.
23525 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
23526 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
23527 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
23528 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
23529 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
23530 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
23531 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
23532 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
23534 2009-08-26 Bean <bean123ch@gmail.com>
23536 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
23538 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
23539 (grub_xfs_inode_block): Change return type to grub_uint64_t.
23540 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
23542 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23544 NetBSD memory map support.
23546 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
23547 (grub_netbsd_btinfo_mmap_header): New structure.
23548 (grub_netbsd_btinfo_mmap_entry): Likewise.
23549 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
23551 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23553 Enable bsd.mod on coreboot.
23555 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
23556 (bsd_mod_SOURCES): New variable.
23557 (bsd_mod_CFLAGS): Likewise.
23558 (bsd_mod_LDFLAGS): Likewise.
23559 (bsd_mod_ASFLAGS): Likewise.
23560 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
23561 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
23563 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23565 Cleanup NetBSD root support.
23567 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
23568 grub_bsd_get_device.
23571 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
23573 * util/grub.d/00_header.in: Move check for the video backend of
23574 gfxterm from here ...
23575 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
23576 a suitable video backend.
23578 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23580 Fix breakage in grub-setup.
23582 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
23583 "msdos_partition_map".
23585 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23587 Fix breakage in normal/auth.c.
23589 * normal/auth.c (grub_iswordseparator): New function.
23591 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23593 Authentication support.
23595 * commands/password.c: New file.
23596 * conf/common.rmk (pkglib_MODULES): Add password.mod.
23597 (password_mod_SOURCES): New variable.
23598 (password_mod_CFLAGS): Likewise.
23599 (password_mod_LDFLAGS): Likewise.
23600 (normal_mod_SOURCES): Add normal/auth.c.
23601 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
23603 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23604 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23605 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23606 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23607 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23608 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23609 * include/grub/auth.h: New file.
23610 * include/grub/err.h (grub_err_t): New enum value
23611 GRUB_ERR_ACCESS_DENIED.
23612 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
23614 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
23615 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
23617 * normal/auth.c: New file.
23618 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
23619 (grub_cmdline_run): Don't allow to go to command line without
23621 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
23622 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
23623 menuentry without superuser rights.
23624 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
23625 user isn't a superuser.
23627 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23629 Save space by inlining misc.c functions.
23631 * kern/misc.c (grub_iswordseparator): Made static.
23632 * kern/misc.c (grub_strcat): Moved from here ...
23633 * include/grub/misc.h (grub_strcat): ... here. Inlined.
23634 * kern/misc.c (grub_strncat): Moved from here ...
23635 * include/grub/misc.h (grub_strncat): ... here. Inlined.
23636 * kern/misc.c (grub_strcasecmp): Moved from here ...
23637 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
23638 * kern/misc.c (grub_strncasecmp): Moved from here ...
23639 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
23640 * kern/misc.c (grub_isalpha): Moved from here ...
23641 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
23642 * kern/misc.c (grub_isdigit): Moved from here ...
23643 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
23644 * kern/misc.c (grub_isgraph): Moved from here ...
23645 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
23646 * kern/misc.c (grub_tolower): Moved from here ...
23647 * include/grub/misc.h (grub_tolower): ... here. Inlined.
23649 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23651 * script/sh/function.c (grub_script_function_find): Cut error message
23652 not to flood terminal.
23653 * script/sh/lexer.c (grub_script_yylex): Remove command line length
23655 * script/sh/script.c (grub_script_arg_add): Duplicate string.
23657 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
23659 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
23660 `report' grub_uint8_t *.
23661 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
23662 Use a 50-millisecond timeout rather than just repeating
23663 grub_usb_keyboard_getreport 50 times.
23664 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
23666 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23668 Rename *_partition_map to part_*
23670 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
23671 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
23672 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
23673 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
23675 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
23677 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
23678 * util/grub-probe.c (probe_partmap): Don't transform partition name
23679 to get module name.
23681 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23683 Fix OpenBSD and NetBSD support.
23685 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
23686 memory address conflict.
23687 (OPENBSD_MMAP_ACPI): New definition.
23688 (OPENBSD_MMAP_NVS): Likewise.
23689 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
23690 and OPENBSD_MMAP_NVS.
23691 Add memory map terminator
23692 Explicit cast when calling grub_unix_real_boot.
23693 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
23695 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23697 Let user specify NetBSD root device.
23699 * loader/i386/bsd.c (netbsd_root): New variable.
23700 (netbsd_opts): New option 'root'.
23701 (NETBSD_ROOT_ARG): New macro.
23702 (grub_netbsd_boot): Use 'netbsd_root'.
23703 (grub_bsd_unload): Free 'netbsd_root'.
23704 (grub_cmd_netbsd): Fill 'netbsd_root'.
23706 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23708 Support for 64-bit NetBSD.
23710 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
23711 point when booting non-FreeBSD.
23713 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23715 Support --no-smp and --no-acpi for NetBSD.
23717 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
23718 (NETBSD_AB_NOACPI): Likewise.
23719 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
23720 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
23722 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23724 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
23726 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
23727 errors. Call grub_error when needed.
23729 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23731 * commands/search.c (search_fs): Try searching without autoload first.
23732 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
23733 filesystem module explicitly for faster booting.
23735 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23737 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
23739 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23741 * util/grub.d/30_os-prober.in: Disable os-prober if
23742 `GRUB_DISABLE_OS_PROBER' was set to true.
23744 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
23746 * partmap/pc.c: Rename to ...
23747 * partmap/msdos.c: ... this. Update all users.
23748 (grub_pc_partition_map): Rename to ...
23749 (grub_msdos_partition_map): ... this. Update all users.
23751 * parttool/pcpart.c: Rename to ...
23752 * parttool/msdospart.c: ... this. Update all users.
23754 * include/grub/pc_partition.h: Rename to ...
23755 * include/grub/msdos_partition.h: ... this. Update all users.
23756 (grub_pc_partition_bsd_entry): Rename to ...
23757 (grub_msdos_partition_bsd_entry): ... this. Update all users.
23758 (grub_pc_partition_disk_label): Rename to ...
23759 (grub_msdos_partition_disk_label): ... this. Update all users.
23760 (grub_pc_partition_entry): Rename to ...
23761 (grub_msdos_partition_entry): ... this. Update all users.
23762 (grub_pc_partition_mbr): Rename to ...
23763 (grub_msdos_partition_mbr): ... this. Update all users.
23764 (grub_pc_partition): Rename to ...
23765 (grub_msdos_partition): ... this. Update all users.
23766 (grub_pc_partition_is_empty): Rename to ...
23767 (grub_msdos_partition_is_empty): ... this. Update all users.
23768 (grub_pc_partition_is_extended): Rename to ...
23769 (grub_msdos_partition_is_extended): ... this. Update all users.
23770 (grub_pc_partition_is_bsd): Rename to ...
23771 (grub_msdos_partition_is_bsd): ... this. Update all users.
23773 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
23774 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
23775 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
23776 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
23777 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
23778 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
23779 (gpt_mod_LDFLAGS): Rename to ...
23780 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
23781 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
23782 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
23783 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
23784 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
23785 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
23786 (part_gpt_mod_LDFLAGS): ... this.
23787 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
23788 `pcpart.mod' to `msdospart.mod'.
23789 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
23791 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
23792 (msdospart_mod_LDFLAGS): ... this.
23794 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23796 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
23797 (openbsd_opts): Likewise.
23798 (netbsd_opts): Likewise.
23799 (freebsd_flags): Added 0 terminator.
23800 (openbsd_flags): Likewise.
23801 (netbsd_flags): Likewise.
23802 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
23803 (grub_cmd_freebsd): Transformed into extended command.
23804 (grub_cmd_openbsd): Likewise.
23805 (grub_cmd_netbsd): Likewise.
23806 (cmd_freebsd): Changed type to grub_extcmd_t.
23807 (cmd_openbsd): Likewise.
23808 (cmd_netbsd): Likewise.
23809 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
23810 grub_cmd_openbsd as extended commands.
23811 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
23812 cmd_netbsd and cmd_openbsd
23814 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
23816 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
23818 2009-08-21 Pavel Roskin <proski@gnu.org>
23820 * Makefile.in (install-local): When checking if a file is in the
23821 build directory, use "test -e" to detect symlinks.
23823 * Makefile.in (install-local): Remove all files in
23824 $(DESTDIR)$(pkglibdir) before installing new files there.
23826 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23828 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
23831 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23833 * util/grub-mkconfig.in: Don't use gfxterm by default if not
23834 explicitly specified by the user.
23836 2009-08-18 Pavel Roskin <proski@gnu.org>
23838 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
23839 grub_uint8_t pointer for data.
23840 * include/grub/fbutil.h (struct grub_video_fbblit_info):
23842 * video/fb/fbutil.c: Remove unnecessary casts.
23844 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23848 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
23849 (grub_vbe_set_video_mode): Save active mode info
23850 only after setting the mode.
23851 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
23854 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23856 Rename variables for clarity.
23858 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
23859 (active_vbe_mode_info): ... this. All users updated.
23860 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
23862 (initial_mode): Rename to ...
23863 (initial_vbe_mode): ... this. All users updated.
23864 (mode_in_use): Rename to ..
23865 (vbe_mode_in_use): ... this. All users updated.
23866 (mode_list): Rename to ..
23867 (vbe_mode_list): ... this. All users updated.
23868 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
23869 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
23870 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
23871 'mode_list_size' to 'vbe_mode_list_size'.
23872 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
23873 'best_mode_info' to 'best_vbe_mode_info' and
23874 'best_mode' to 'best_vbe_mode'
23876 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23878 Remove duplicate grub_video_fb_get_video_ptr.
23880 * include/grub/fbutil.h (get_data_ptr): Rename to ...
23881 (grub_video_fb_get_video_ptr): ... this.
23882 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
23883 * video/fb/fbutil.c: Add comment about addressing.
23884 (get_data_ptr): Rename to ...
23885 (grub_video_fb_get_video_ptr): ... this. All users updated.
23886 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
23888 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23890 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
23891 grub_dprintf() that was just added.
23893 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23895 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
23896 (DEFAULT_VIDEO_MODE): Remove macros.
23897 (grub_linux_boot): Remove assumption that Linux has FB support,
23898 and use "text" as default video mode.
23900 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
23902 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
23904 * fs/fat.c (grub_fat_read_data): Likewise.
23906 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23908 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
23910 (grub_module): Likewise.
23912 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23914 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
23915 mbi->cmdline but free playground.
23917 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23919 Handle group offset on UFS1.
23921 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
23922 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
23924 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23926 Split ufs.mod into ufs1.mod and ufs2.mod.
23928 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
23929 (grub_fstest_SOURCES): Likewise.
23930 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
23931 (ufs_mod_SOURCES): Remove.
23932 (ufs_mod_CFLAGS): Likewise.
23933 (ufs_mod_LDFLAGS): Likewise.
23934 (ufs1_mod_SOURCES): New variable.
23935 (ufs1_mod_CFLAGS): Likewise.
23936 (ufs1_mod_LDFLAGS): Likewise.
23937 (ufs2_mod_SOURCES): New variable.
23938 (ufs2_mod_CFLAGS): Likewise.
23939 (ufs2_mod_LDFLAGS): Likewise.
23940 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
23941 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23943 (grub_emu_SOURCES): Likewise.
23944 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23945 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23946 (grub_setup_SOURCES): Likewise.
23947 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23948 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
23949 (grub_setup_SOURCES): Likewise.
23950 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23952 * fs/ufs2.c: New file.
23953 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
23955 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23959 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
23960 subsystem at the end.
23961 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
23962 (video_fb_mod_SOURCES): New variable.
23963 (video_fb_mod_CFLAGS): Likewise.
23964 (video_fb_mod_LDFLAGS): Likewise.
23965 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
23966 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
23967 * video/i386/pc/vbeblit.c: Moved from here ...
23968 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
23969 * video/i386/pc/vbefill.c: Moved from here ...
23970 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
23971 * video/i386/pc/vbeutil.c: Moved from here ...
23972 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
23973 * include/grub/i386/pc/vbeblit.h: Moved from here ...
23974 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
23975 * include/grub/i386/pc/vbefill.h: Moved from here ...
23976 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
23977 * include/grub/i386/pc/vbeutil.h: Moved from here ...
23978 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
23979 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
23980 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
23981 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
23982 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
23983 (grub_video_adapter): Added 'get_info_and_fini'.
23984 (grub_video_get_info_and_fini): New prototype.
23985 (grub_video_set_mode): make modestring const char *.
23986 * loader/i386/linux.c (grub_linux_setup_video): Use
23987 grub_video_get_info_and_fini.
23988 (grub_linux_boot): Move modesetting just before booting.
23989 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
23990 grub_video_get_info_and_fini.
23991 * video/i386/pc/vbe.c: Moved framebuffer part ...
23992 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
23993 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
23994 grub_video_fbstd_colors and grub_video_fb_set_palette.
23995 (grub_video_vbe_init): Clear 'framebuffer' variable and use
23996 grub_video_fb_init.
23997 (grub_video_vbe_fini): Use grub_video_fb_fini.
23998 (grub_video_vbe_setup): Use framebuffer.render_target instead of
23999 render_target and use grub_video_fb_set_active_render_target and
24000 grub_video_fb_set_palette.
24001 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
24002 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
24003 (grub_video_vbe_adapter): Use framebuffer.
24004 * video/video.c (grub_video_get_info_and_fini): New function.
24005 (grub_video_set_mode): Make modestring const char *.
24006 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
24007 values are already initialised.
24009 2009-08-14 Pavel Roskin <proski@gnu.org>
24011 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
24013 * boot/i386/pc/diskboot.S: Likewise.
24014 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
24015 sectors allow compilation on MacOSX.
24016 * conf/i386-pc.rmk: Enable unconditional compilation of
24019 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
24021 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
24022 * util/grub.d/00_header.in: Enter interruptible sleep if
24023 GRUB_HIDDEN_TIMEOUT is set.
24025 2009-08-13 Yves Blusseau <blusseau@zetam.org>
24027 * include/grub/symbol.h: Add the LOCAL macro.
24028 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
24029 starting with "L_".
24031 2009-08-13 Pavel Roskin <proski@gnu.org>
24033 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
24034 any modern compilers we support.
24036 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
24037 Use local labels starting with "L_" so that Apple assembler
24038 knows they are local.
24040 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
24042 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
24043 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
24044 (bsd_kernel_types): ... this enum.
24046 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
24047 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
24048 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
24050 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
24051 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
24052 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
24055 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
24057 * util/grub-dumpdevtree: Moved from here ...
24058 * util/i386/efi/grub-dumpdevtree: ... to here.
24059 (hexify): New function. Converts a string to its hex version.
24060 Generate hex versions of "efi" and "device-properties" by calling
24061 hexify() on the ASCII strings rather than by hardcoding numbers.
24063 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
24065 * fs/jfs.c: Update copyright year.
24067 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
24069 * util/grub.d/00_header.in: Fix a comment.
24070 * util/grub.d/10_linux.in: Likewise.
24071 * util/grub.d/10_windows.in: Likewise.
24072 * util/grub.d/10_hurd.in: Likewise.
24074 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
24076 * util/grub-mkconfig.in: Allow the user to specify the used font
24079 2009-08-08 Pavel Roskin <proski@gnu.org>
24081 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
24082 available, xfs.mod needs it now.
24084 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
24085 the "g" modifier in sed when the intention is to strip something
24086 once. This fixes comparison of kernels with multiple dashes.
24088 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
24089 on it. Add missing space before closing bracket. Fix
24090 misleading formatting.
24092 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24094 * docs/grub.texi: Major overhaul. Remove all sections that are
24095 specific to GRUB Legacy, or mostly composed of Legacy-specific
24098 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24100 * docs/version.texi: New file. Provides version information for
24103 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24105 * docs/grub.texi: Update CVS information to SVN.
24106 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
24108 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24110 * util/grub-mkconfig.in: Remove a wrong `fi'.
24112 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24114 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
24115 (grub_jfs_uuid): New function.
24116 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
24118 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24120 * util/grub-mkconfig_lib.in (font_path): Move the functionality
24122 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
24123 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
24125 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24127 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
24128 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
24131 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
24132 not just "vmlinu[zx]".
24133 Moved from here ...
24134 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
24137 * util/grub.d/10_linux.in (find_latest): Moved from here ...
24138 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
24141 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24143 * util/grub.d/10_freebsd.in: Use an absolute device path for
24144 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
24146 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
24148 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
24149 handling of multiple abstraction modules.
24151 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
24153 Fix a bug resulting in black screen when loading Linux using a
24156 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
24159 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
24160 (grub_vbe_bios_getset_dac_palette_width): New function.
24161 (grub_vbe_bios_get_dac_palette_width)
24162 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
24163 grub_vbe_bios_getset_dac_palette_width()).
24165 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
24166 check for return status.
24167 (grub_vbe_get_video_mode_info): When getting information for a packed
24168 mode (<= 8 bpp), obtain DAC palette width using
24169 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
24170 {red,green,blue}_mark_size.
24172 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
24174 * commands/search.c (options): Fix help output to match actual code.
24176 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
24178 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
24181 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24183 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
24184 on XFS or ReiserFS.
24186 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24188 Support Apple partition map with sector size different from 512 bytes.
24190 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
24191 (apple_partition_map_iterate): Respect 'aheader.blocksize'
24192 and 'apart.partmap_size'.
24194 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24195 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
24199 * commands/i386/cpuid.c (options): New variable.
24200 (grub_cmd_cpuid): Return real error.
24201 (GRUB_MOD_INIT(cpuid)): Declare options.
24203 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
24205 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
24208 2009-07-31 Bean <bean123ch@gmail.com>
24210 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
24212 (grub_fshelp_node): Move inode field to the end.
24213 (grub_xfs_data): Remove inode field.
24214 (grub_xfs_inode_block): Calculate inode size using sblock.
24215 (grub_xfs_inode_offset): Likewise.
24216 (grub_xfs_read_inode): Calculate inode size using sblock.
24217 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
24218 (grub_xfs_iterate_dir): Calculate inode size using sblock.
24219 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
24220 to match inode size.
24221 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
24222 not accessible when data is null.
24223 (grub_xfs_open): Likewise.
24225 2009-07-31 Bean <bean123ch@gmail.com>
24227 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
24228 Don't change pv->disk if it's already set.
24230 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
24231 (grub_raid_register): ... here.
24232 (grub_raid_rescan): Removed.
24234 * include/grub/raid.h (grub_raid_rescan): Removed.
24236 * util/grub-fstest.c: Remove include file <grub/raid.h>.
24237 (fstest): Replace grub_raid_rescan with module fini function followed
24240 * util/grub-probe.c: Add include file <grub/raid.h>.
24241 (probe_raid_level): New function.
24242 (probe): Detect abstraction by walking the disk device, support two
24243 level of abstraction (LVM on RAID) when detecting partition map.
24245 2009-07-31 Pavel Roskin <proski@gnu.org>
24247 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
24248 to grub_zalloc(), it was erroneous.
24249 Reported by Bean <bean123ch@gmail.com>
24251 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
24253 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
24254 embedding zone, not only the first one.
24256 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
24258 * term/gfxterm.c (clear_char): New function.
24259 (grub_virtual_screen_setup): Use clear_char.
24260 (scroll_up): Likewise.
24261 (grub_virtual_screen_cls): Likewise.
24263 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
24265 * util/deviceiter.c (get_acceleraid_disk_name): New static
24267 (grub_util_iterate_devices): Handle Accelraid devices.
24268 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
24270 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
24272 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
24273 separator for the suggested gfxpayload string (';' collides with the
24274 parser and needs escaping).
24276 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
24278 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
24279 Clear direction flag before jumping to OS.
24280 (grub_multiboot2_real_boot): Likewise.
24282 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
24284 * util/i386/pc/grub-install: Fix parsing of --disk-module
24287 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
24289 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
24292 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
24294 * util/grub-mkconfig.in (package_version): New variable.
24295 Use it do display the version.
24297 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
24299 * kern/file.c (grub_file_open): Revert to previous check with
24302 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
24304 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
24305 from help line. It's out of sync with code.
24307 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
24309 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
24310 entries on failed boot.
24312 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
24314 * kern/file.c (grub_file_open): Fix an error check.
24316 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
24318 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
24319 partition map couldn't be identified.
24321 2009-07-23 Pavel Roskin <proski@gnu.org>
24323 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
24324 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
24325 case of little endian words becomes just an optimization.
24326 Respect const modifier.
24327 (md5_final): Use code that doesn't depend on endianness.
24329 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
24330 to avoid loss of upper bits if align is unsigned and shorter
24333 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
24335 UUID support for UFS
24337 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
24338 (grub_ufs_uuid): New function.
24339 (grub_ufs_fs): add .uuid
24341 2009-07-21 Pavel Roskin <proski@gnu.org>
24343 * kern/dl.c (grub_dl_check_header): Make static.
24345 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
24347 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
24348 add drivemap for Vista. It breaks Windows 7.
24350 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
24352 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
24355 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24359 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
24360 (grub_fstest_SOURCES): Likewise.
24361 (pkglib_MODULES): Add befs.mod.
24362 (befs_mod_SOURCES): New variable.
24363 (befs_mod_CFLAGS): Likewise.
24364 (befs_mod_LDFLAGS): Likewise.
24365 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24366 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24367 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24368 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24369 (grub_setup_SOURCES): Likewise.
24370 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24371 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24372 (grub_setup_SOURCES): Likewise.
24373 * fs/befs.c: New file.
24374 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
24375 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
24376 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
24377 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
24378 (B_KEY_INDEX_ALIGN): New declaration.
24379 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
24380 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
24381 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
24382 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
24383 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
24384 (grub_afs_mount) [MODE_BFS]: Likewise.
24385 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
24386 (grub_afs_fs): Use GRUB_AFS_FSNAME
24387 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
24388 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
24389 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
24390 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
24392 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
24394 * util/getroot.c (find_root_device): Add support for MacOSX.
24395 * util/hostdisk.c: Likewise.
24397 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24399 * font/font.c (find_glyph): Check whether a font is present to avoid
24400 segmentation fault.
24402 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
24404 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
24406 2009-07-20 Pavel Roskin <proski@gnu.org>
24408 * configure.ac: Trim excessively wordy excuses.
24410 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24412 Add symlink, mtime and label support to AtheFS.
24414 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
24415 (grub_afs_iterate_dir): Handle symlinks.
24416 (grub_afs_open): Use grub_afs_read_symlink.
24417 (grub_afs_dir): Likewise.
24419 (grub_afs_label): New function.
24420 (grub_afs_fs): Add grub_afs_label.
24421 (grub_afs_read_symlink): New function.
24423 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24425 Fix AtheFS support.
24427 * fs/afs.c: Fix comments style.
24428 (grub_afs_blockrun): Declare as packed.
24429 (grub_afs_datastream): Likewise.
24430 (grub_afs_bnode): Likewise.
24431 (grub_afs_btree): Likewise.
24432 (grub_afs_sblock): Likewise.
24433 Declare `name' as char.
24434 (grub_afs_inode): Declare as packed.
24435 Change void *vnode to grub_uint32_t unused.
24436 (grub_afs_iterate_dir): Check that key_size is positive.
24437 (grub_afs_mount): Don't read superblock twice.
24438 (grub_afs_dir): Don't free node in case of error,
24439 grub_fshelp_find_file already handles this.
24440 (grub_afs_open): Likewise.
24442 2009-07-19 Pavel Roskin <proski@gnu.org>
24444 * Makefile.in: Remove LIBLZO and enable_lzo.
24445 * conf/i386-pc.rmk: Remove lzo support.
24446 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
24447 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
24449 * kern/i386/pc/lzo1x.S: Remove.
24450 * kern/i386/pc/startup.S: Remove lzo support.
24451 * util/i386/pc/grub-mkimage.c: Likewise.
24453 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
24455 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
24456 * fs/xfs.c (grub_xfs_dir): Likewise.
24457 * fs/afs.c (grub_afs_dir): Likewise.
24458 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
24459 (grub_iso9660_open): Likewise.
24460 * fs/jfs.c (grub_jfs_open): Likewise.
24461 * fs/ext2.c (grub_ext2_dir): Likewise.
24462 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
24463 * script/sh/lexer.c (grub_script_yylex): Likewise.
24465 2009-07-16 Pavel Roskin <proski@gnu.org>
24467 * configure.ac: Never add "-c" to CFLAGS.
24469 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
24471 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
24472 grub_cv_cc_efiemu should be used.
24474 * configure.ac: Typo fixes.
24476 * kern/mm.c (grub_zalloc): New function.
24477 (grub_debug_zalloc): Likewise.
24478 * include/grub/mm.h: Declare grub_zalloc() and
24479 grub_debug_zalloc().
24480 * util/misc.c (grub_zalloc): New function.
24481 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
24482 instead of grub_malloc(), remove unneeded initializations.
24483 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
24484 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
24485 * commands/parttool.c (grub_cmd_parttool): Likewise.
24486 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
24487 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
24488 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
24489 * disk/usbms.c (grub_usbms_finddevs): Likewise.
24490 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
24491 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
24492 (grub_cmd_efiemu_pnvram): Likewise.
24493 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
24494 * fs/iso9660.c (grub_iso9660_mount): Likewise.
24495 (grub_iso9660_iterate_dir): Likewise.
24496 * fs/jfs.c (grub_jfs_opendir): Likewise.
24497 * fs/ntfs.c (list_file): Likewise.
24498 (grub_ntfs_mount): Likewise.
24499 * kern/disk.c (grub_disk_open): Likewise.
24500 * kern/dl.c (grub_dl_load_core): Likewise.
24501 * kern/elf.c (grub_elf_file): Likewise.
24502 * kern/env.c (grub_env_context_open): Likewise.
24503 (grub_env_set): Likewise.
24504 (grub_env_set_data_slot): Likewise.
24505 * kern/file.c (grub_file_open): Likewise.
24506 * kern/fs.c (grub_fs_blocklist_open): Likewise.
24507 * loader/i386/multiboot.c (grub_module): Likewise.
24508 * loader/xnu.c (grub_xnu_create_key): Likewise.
24509 (grub_xnu_create_value): Likewise.
24510 * normal/main.c (grub_normal_add_menu_entry): Likewise.
24511 (read_config_file): Likewise.
24512 * normal/menu_entry.c (make_screen): Likewise.
24513 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24514 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
24515 * script/sh/script.c (grub_script_parse): Likewise.
24516 * video/bitmap.c (grub_video_bitmap_create): Likewise.
24517 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
24518 * video/readers/png.c (grub_png_output_byte): Likewise.
24519 (grub_video_reader_png): Likewise.
24521 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24523 Enable all targets that can be built by default
24525 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
24526 grub-mkfont and grub-fstest if they can be built
24528 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24530 Fix hang and segmentation fault in grub-emu-usb
24532 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
24533 * util/usb.c (grub_libusb_devices): likewise
24534 (grub_libusb_init): rename to ...
24535 (GRUB_MOD_INIT (libusb)):...this
24536 (grub_libusb_fini): rename to ..
24537 (GRUB_MOD_FINI (libusb)):...this
24538 * disk/usbms.c (grub_usbms_transfer): fix retry logic
24539 * include/grub/disk.h (grub_raid_init): removed, it's useless
24540 (grub_raid_fini): likewise
24541 (grub_lvm_init): likewise
24542 (grub_lvm_fini): likewise
24543 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
24546 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24550 * Makefile.in (LIBUSB): new macro
24551 * genmk.rb (Utility/print_tail): new method
24552 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
24553 (top level): call util.print_tail at the end.
24555 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24557 Make FreeBSD accept zpool.cache
24559 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
24560 type is /boot/zfs/zpool.cache
24562 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24566 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
24567 correct wrong typedef
24568 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
24570 2009-07-15 Pavel Roskin <proski@gnu.org>
24572 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
24573 * kern/disk.c (struct grub_disk_cache): Likewise.
24575 * commands/probe.c (options): Typo fix.
24577 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
24578 Increase to 0x5a to accommodate FAT32. Adjust other offsets
24580 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
24582 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
24583 the end of "Error" to make the message more readable.
24585 * boot/i386/pc/boot.S (kernel_segment): Remove.
24586 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
24589 * boot/i386/pc/boot.S (boot_version): Remove.
24590 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
24593 * include/grub/i386/pc/boot.h: Sort all offsets.
24594 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
24595 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
24596 * boot/i386/pc/boot.S: Assert location of every offset listed in
24597 include/grub/i386/pc/boot.h.
24599 2009-07-13 Pavel Roskin <proski@gnu.org>
24601 * include/grub/i386/coreboot/machine.h: Rename
24602 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
24603 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
24604 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
24606 * kern/dl.c: Force native word size to suppress warnings when
24607 compiling grub-emu.
24609 * kern/device.c (grub_device_iterate): Change struct part_ent to
24610 hold the name, not a pointer to it. Use one grub_malloc() per
24611 partition, not two. Free partition_name if grub_malloc() fails.
24612 Set ents to NULL only before grub_partition_iterate() is called.
24614 2009-07-11 Bean <bean123ch@gmail.com>
24616 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
24619 2009-07-10 Bean <bean123ch@gmail.com>
24620 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
24622 * kern/ieee1275/openfw.c (grub_children_iterate)
24623 (grub_devalias_iterate): Fix size evaluation for property or path
24624 strings, which was broken since r2132.
24626 2009-07-07 Pavel Roskin <proski@gnu.org>
24628 * commands/search.c (search_file): Merge into ...
24629 (search_fs): ... this. Accept search type as argument.
24630 (grub_cmd_search): Pass search type to search_fs().
24632 * include/grub/util/console.h: New file.
24633 * util/console.c: Use it instead of grub/machine/console.h.
24634 * util/grub-emu.c: Likewise.
24636 * lib/arg.c (find_long_option): Remove.
24637 (find_long): Add `len' argument, make `s' const char *.
24638 (grub_arg_parse): Parse long options in place, not in a
24641 2009-07-06 Pavel Roskin <proski@gnu.org>
24643 * commands/search.c (search_fs): Fix potential NULL pointer
24646 * commands/search.c (search_fs): Replace QUID macro with quid_fn
24649 2009-07-06 Daniel Mierswa <impulze@impulze.org>
24651 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
24654 2009-07-05 Pavel Roskin <proski@gnu.org>
24656 * include/grub/i386/linux.h (struct linux_kernel_params):
24657 Restore padding3, it's still needed.
24659 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
24661 * util/osdetect.lua: Likewise.
24663 2009-07-05 Bean <bean123ch@gmail.com>
24665 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
24667 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
24668 (grub_lua_getenv): Likewise.
24669 (grub_lua_setenv): Likewise.
24670 (save_errno): New function.
24671 (push_result): Likewise.
24672 (grub_lua_enum_device): Likewise.
24673 (grub_lua_enum_file): Likewise.
24674 (grub_lua_file_open): Likewise.
24675 (grub_lua_file_close): Likewise.
24676 (grub_lua_file_seek): Likewise.
24677 (grub_lua_file_read): Likewise.
24678 (grub_lua_file_getline): Likewise.
24679 (grub_lua_file_getsize): Likewise.
24680 (grub_lua_file_getpos): Likewise.
24681 (grub_lua_file_eof): Likewise.
24682 (grub_lua_file_exist): Likewise.
24683 (grub_lua_add_menu): Likewise.
24685 * script/lua/grub_lua.h (isupper): New inline function.
24686 (islower): Likewise.
24687 (ispunct): Likewise.
24688 (isxdigit): Likewise.
24689 (strcspn): Change to normal function.
24690 (strpbkr): New function declaration.
24691 (memchr): Likewise.
24693 * script/lua/grub_main.c (scan_str): New function.
24694 (strcspn): Likewise.
24695 (strpbrk): Likewise.
24696 (memchr): Likewise.
24698 * script/lua/linit.c (lualibs): Enable the string library.
24700 * util/osdetect.lua: New file.
24702 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
24704 * include/grub/i386/linux.h (struct linux_kernel_params): Add
24705 `capabilities' member.
24707 2009-07-02 Pavel Roskin <proski@gnu.org>
24709 * genparttoollist.sh: Add missing newline at the end.
24711 2009-07-01 Pavel Roskin <proski@gnu.org>
24713 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
24715 * util/hostdisk.c (open_device): Remove `const' from
24716 `sysctl_size', as sysctlbyname() can change it (in this case it
24717 doesn't actually happen).
24719 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
24720 using signed long int constants.
24722 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
24723 constant to avoid a warning on FreeBSD.
24725 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
24728 * Makefile.in: Install include/grub/machine symlink.
24730 * Makefile.in: When installing symlinks, use "cp -fR", which
24731 works on FreeBSD and MacOSX.
24732 From Yves Blusseau <cl7m42e02@sneakemail.com>
24734 * kern/dl.c (grub_dl_resolve_symbol): Make static.
24735 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
24737 * util/misc.c: Move grub_reboot() and grub_halt() ...
24738 * util/grub-emu.c: ... here. Make main_env static.
24739 * include/grub/util/misc.h: Remove main_env.
24741 * kern/mm.c: Use correct format to print size_t.
24743 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
24744 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
24745 * kern/powerpc/dl.c: Likewise.
24746 * kern/sparc64/dl.c: Likewise.
24747 * kern/x86_64/dl.c: Likewise.
24749 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24751 Fix grub-emu build on sparc64-ieee1275.
24753 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
24754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
24756 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24758 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
24759 (grub_reboot, grub_halt): New functions.
24761 * util/i386/pc/misc.c: Delete. Update all users.
24762 * util/sparc64/ieee1275/misc.c: Likewise.
24763 * util/powerpc/ieee1275/misc.c: Likewise.
24765 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24767 * conf/i386.rmk (setjmp_mod_SOURCES)
24768 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
24769 * conf/common.rmk (setjmp_mod_SOURCES)
24770 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
24771 to use $(target_cpu).
24772 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
24773 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
24774 * conf/powerpc-ieee1275.rmk: Likewise.
24775 * conf/sparc64-ieee1275.rmk: Likewise.
24777 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
24778 $(target_cpu) for kern/$(target_cpu)/dl.c.
24779 * conf/i386-efi.rmk: Likewise.
24780 * conf/i386-ieee1275.rmk: Likewise.
24781 * conf/x86_64-efi.rmk: Likewise.
24782 * conf/i386-coreboot.rmk: Likewise.
24783 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
24784 $(target_cpu) for kern/$(target_cpu)/dl.c and for
24785 kern/$(target_cpu)/cache.S.
24786 * conf/sparc64-ieee1275.rmk: Likewise.
24788 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24790 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
24791 type to `grub_uint8_t', and adjust `padding9' accordingly.
24793 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24795 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
24797 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
24798 assembly in final jump, using register constraints.
24800 (grub_linux_boot): For text mode, initialize `have_vga' using
24801 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
24803 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
24804 right before the final jump.
24806 Set `video_mode' to 0x3.
24808 Document initialization of `video_page', `video_mode' and
24811 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24813 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
24814 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
24815 and set GRUB_LINUX_FLAG_QUIET appropriately.
24817 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24819 Fix build on Debian / sparc.
24821 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
24823 2009-06-28 Pavel Roskin <proski@gnu.org>
24825 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
24828 * util/grub.d/10_linux.in: Match SUSE style initrd names.
24830 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24832 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
24835 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24839 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
24840 file can't be opened. grub_file_open() is already supposed to set
24841 grub_errno / grub_errmsg appropriately.
24842 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24844 2009-06-27 Pavel Roskin <proski@gnu.org>
24845 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24847 * include/grub/dl.h: Include grub/elf.h.
24848 (struct grub_dl): Add symtab field.
24849 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
24850 GRUB_MODULES_MACHINE_READONLY.
24851 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
24852 of the header for read-only modules.
24853 (grub_dl_unload): Free mod->symtab for read-only modules.
24854 * kern/i386/dl.c: Use mod->symtab.
24855 * kern/powerpc/dl.c: Likewise.
24856 * kern/sparc64/dl.c: Likewise.
24857 * kern/x86_64/dl.c: Likewise.
24859 * conf/i386-qemu.rmk: New file.
24860 * kern/i386/qemu/startup.S: Likewise.
24861 * kern/i386/qemu/mmap.c: Likewise.
24862 * boot/i386/qemu/boot.S: Likewise.
24863 * include/grub/i386/qemu/time.h: Likewise.
24864 * include/grub/i386/qemu/serial.h: Likewise.
24865 * include/grub/i386/qemu/kernel.h: Likewise.
24866 * include/grub/i386/qemu/console.h: Likewise.
24867 * include/grub/i386/qemu/boot.h: Likewise.
24868 * include/grub/i386/qemu/init.h: Likewise.
24869 * include/grub/i386/qemu/machine.h: Likewise.
24870 * include/grub/i386/qemu/loader.h: Likewise.
24871 * include/grub/i386/qemu/memory.h: Likewise.
24873 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
24874 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
24875 [qemu] (pkglib_IMAGES): Add `boot.img'.
24876 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
24877 [qemu] (boot_img_FORMAT): New variables.
24878 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
24879 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
24880 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
24881 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24882 [qemu] (kernel_img_FORMAT): New variables.
24884 * configure.ac: Recognise `i386-qemu'.
24886 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
24887 (for no compression).
24888 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
24889 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
24890 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
24891 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
24894 2009-06-27 Pavel Roskin <proski@gnu.org>
24896 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
24898 * efiemu/prepare32.c: Likewise.
24899 * efiemu/prepare64.c: Likewise.
24901 2009-06-26 Pavel Roskin <proski@gnu.org>
24903 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
24904 * include/grub/elf.h: Define symbols without "32" or "64" based
24905 on GRUB_TARGET_WORDSIZE.
24906 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
24907 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
24909 * efiemu/loadcore64.c: Likewise.
24910 * loader/i386/bsd32.c: Likewise.
24911 * loader/i386/bsd64.c: Likewise.
24912 * kern/dl.c: Remove own ELF definitions.
24913 * util/i386/efi/grub-mkimage.c: Likewise.
24915 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
24917 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
24918 segment 0x0 unconditionally, because the reference generated by
24919 GAS is an absolute address.
24921 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24923 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
24924 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
24926 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24928 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
24929 indexes. Check for -f explicitly.
24930 (search_file): Improve error message.
24931 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
24933 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24935 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
24936 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
24938 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24940 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
24941 * conf/i386-ieee1275.rmk: Likewise.
24942 * conf/i386-coreboot.rmk: Likewise.
24944 * kern/i386/pc/startup.S (grub_stop): Remove function.
24945 * kern/i386/ieee1275/startup.S: Likewise.
24946 * kern/i386/coreboot/startup.S: Likewise.
24947 * kern/i386/misc.S (grub_stop): New function.
24949 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24951 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
24952 * kern/i386/realmode.S (real_to_prot): ... to here.
24954 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24956 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
24958 (kernel_elf_SOURCES): Rename to ...
24959 (kernel_img_SOURCES): ... this.
24960 (kernel_elf_HEADERS): Rename to ...
24961 (kernel_img_HEADERS): ... this. Update all users.
24962 (kernel_elf_ASFLAGS): Rename to ...
24963 (kernel_img_ASFLAGS): ... this.
24964 (kernel_elf_CFLAGS): Rename to ...
24965 (kernel_img_CFLAGS): ... this.
24966 (kernel_elf_LDFLAGS): Rename to ...
24967 (kernel_img_LDFLAGS): ... this.
24968 * conf/i386-coreboot.rmk: Likewise.
24969 * conf/powerpc-ieee1275.rmk: Likewise.
24971 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
24974 2009-06-21 Pavel Roskin <proski@gnu.org>
24976 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
24977 to match nested functions.
24978 * loader/sparc64/ieee1275/linux.c: Likewise.
24980 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
24982 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24984 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
24985 all i386 platforms.
24987 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24989 Fix asm file handling on ELF, and remove workarounds.
24991 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
24992 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
24993 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
24994 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
24996 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
24998 Load BSD ELF modules
25000 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
25001 and loader/i386/bsd64.c
25002 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
25003 (FREEBSD_MODTYPE_ELF_MODULE): New definition
25004 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
25005 (grub_freebsd_load_elfmodule32): New declaration
25006 (grub_freebsd_load_elfmoduleobj64): Likewise
25007 (grub_freebsd_load_elf_meta32): Likewise
25008 (grub_freebsd_load_elf_meta64): Likewise
25009 (grub_freebsd_add_meta): Likewise
25010 (grub_freebsd_add_meta_module): Likewise
25011 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
25012 (grub_freebsd_add_meta_module): Likewise and move module-specific
25013 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
25014 (grub_cmd_freebsd): Add elf-kernel specific parts
25015 based on grub_freebsd_add_meta_module
25016 (grub_cmd_freebsd_module): Add type parsing moved from
25017 grub_freebsd_add_meta_module
25018 (grub_cmd_freebsd_module_elf): New function
25019 (cmd_freebsd_module_elf): New variable
25020 (GRUB_MOD_INIT): Register freebsd_module_elf
25021 * loader/i386/bsd32.c: New file
25022 * loader/i386/bsd64.c: Likewise
25023 * loader/i386/bsdXX.c: Likewise
25024 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
25025 (grub_elf64_load): Likewise
25026 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
25028 (grub_elf64_load_hook_t): Likewise
25030 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
25032 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
25034 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
25035 don't write a menu entry for recovery mode.
25037 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
25039 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
25040 after it's no longer needed.
25042 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
25044 * include/grub/i386/loader.h (grub_linux_prot_size)
25045 (grub_linux_tmp_addr, grub_linux_real_addr)
25046 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
25047 GRUB_MACHINE_PCBIOS.
25048 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
25049 common grub_util_info() call to ...
25050 (generate_image): ... here.
25051 Fix use of uninitialized memory, comparison of signed with
25052 unsigned integers and memory leak.
25053 Remove bogus module address message.
25055 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
25057 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
25059 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
25061 2009-06-19 Pavel Roskin <proski@gnu.org>
25063 * configure.ac: Remove stray AC_MSG_CHECKING.
25065 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
25067 * disk/scsi.c (grub_scsi_open): use continue instead of big if
25069 2009-06-18 Pavel Roskin <proski@gnu.org>
25071 * conf/common.rmk: Add fs_file.mod.
25072 * disk/fs_file.c: New file.
25073 * include/grub/disk.h (enum grub_disk_dev_id): Add
25074 GRUB_DISK_DEVICE_FILE_ID.
25076 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
25078 Fix build with Apple's toolchain. Part 2
25080 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
25083 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
25085 Fix build with Apple's toolchain. Part 1
25087 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
25089 * configure.ac: remove a leftover AC_MSG_RESULT
25090 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
25093 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
25097 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
25098 (decomp_block): initialize ch
25099 use grub_memcpy instead of memcpy
25101 2009-06-17 Pavel Roskin <proski@gnu.org>
25103 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
25104 version, use declarations needed to use vga_text as the startup
25107 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
25108 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
25110 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
25111 and grub_at_keyboard_fini(), it's done on module load and
25114 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
25116 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
25117 file can't be found.
25118 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
25120 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
25122 Fix newline handling
25124 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
25125 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
25126 (grub_script_yylex): don't segfault on unterminated script
25127 newline terminates command and variable
25129 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
25131 avoid double grub_adjust_range call. Bug reported by David Simner
25133 * kern/disk.c (grub_disk_write): change to raw disk access before
25136 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
25138 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
25139 spaces, for the benefit of help2man.
25140 * util/i386/efi/grub-mkimage.c (usage): Likewise.
25142 2009-06-16 Pavel Roskin <proski@gnu.org>
25144 * kern/i386/halt.c: Include grub/machine/init.h.
25145 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
25147 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
25149 * util/grub.d/30_os-prober.in: Use ${root} in the generated
25150 drivemap menuentry.
25152 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
25154 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
25157 2009-06-16 Pavel Roskin <proski@gnu.org>
25159 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
25160 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
25161 save %dx, we only need %dl and we never change it.
25162 * boot/i386/pc/cdboot.S: Don't set the root drive.
25163 * boot/i386/pc/pxeboot.S: Likewise.
25164 * include/grub/i386/pc/boot.h: Remove
25165 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
25166 GRUB_BOOT_MACHINE_DRIVE_CHECK.
25167 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
25168 * kern/i386/pc/init.c (make_install_device): Remove references
25169 to grub_root_drive.
25170 * kern/i386/pc/startup.S: Likewise.
25171 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
25173 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
25177 * commands/xnu_uuid.c: new file
25178 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
25179 (xnu_uuid_mod_SOURCES): new variable
25180 (xnu_uuid_mod_CFLAGS): likewise
25181 (xnu_uuid_mod_LDFLAGS): likewise
25182 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
25183 * conf/i386-ieee1275.rmk: likewise
25184 * conf/i386-pc.rmk: likewise
25185 * conf/powerpc-ieee1275.rmk: likewise
25186 * conf/sparc64-ieee1275.rmk: likewise
25187 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
25189 2009-06-16 Pavel Roskin <proski@gnu.org>
25191 * configure.ac: Avoid '==' in test command, it's not portable.
25193 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
25197 * commands/probe.c: new file
25198 * conf/common.rmk (pkglib_MODULES): add probe.mod
25199 (probe_mod_SOURCES): new variable
25200 (probe_mod_CFLAGS): likewise
25201 (probe_mod_LDFLAGS): likewise
25202 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
25203 * conf/i386-ieee1275.rmk: likewise
25204 * conf/i386-pc.rmk: likewise
25205 * conf/powerpc-ieee1275.rmk: likewise
25206 * conf/sparc64-ieee1275.rmk: likewise
25208 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
25210 Fix handling of string like \"hello\" and "a
25213 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
25214 (grub_script_yylex): fix parsing of quoting, escaping and newline
25216 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
25218 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
25221 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
25223 * util/grub-mkconfig.in: Fix parsing of --output option.
25225 2009-06-12 Pavel Roskin <proski@gnu.org>
25227 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
25228 genmk.rb don't need to be generated or installed.
25230 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
25232 * commands/i386/pc/drivemap_int13h.S: add more comments
25234 2009-06-11 Pavel Roskin <proski@gnu.org>
25236 * Makefile.in (uninstall): Uninstall manuals.
25238 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
25239 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
25240 and update-grub_lib in two places.
25241 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
25243 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
25244 a compiler warning.
25246 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
25247 `entry_lo' to fix variable shadowing.
25249 2009-06-11 Christian Franke <franke@computer.org>
25251 * kern/misc.c (__enable_execute_stack): Add missing return type
25252 to prevent gcc warning.
25254 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
25256 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
25258 2009-06-11 Pavel Roskin <proski@gnu.org>
25260 * Makefile.in: Don't rely on any scripts being executable.
25261 Always use $(SHELL) to run shell scripts.
25263 * configure.ac: Always define ___main if using -nostdlib. This
25264 fixes tests on Cygwin.
25266 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
25270 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
25271 is in bytes and not in blocks
25273 2009-06-11 Pavel Roskin <proski@gnu.org>
25275 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
25278 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
25280 * util/grub.d/30_os-prober.in: Fix a comment. Source
25281 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
25282 to set the root device. Place drivemap command in the generated
25285 2009-06-11 Pavel Roskin <proski@gnu.org>
25287 * configure.ac: Remove host_m32. Issues with 64-bit utilities
25288 have long been resolved.
25290 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
25292 * util/grub.d/10_linux.in: Capitalise "Linux".
25294 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
25296 2009-06-11 Pavel Roskin <proski@gnu.org>
25298 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
25299 fix a gcc warning and ensure that the function won't ever exit.
25301 * kern/i386/ieee1275/init.c: Add missing prototype for
25302 grub_stop_floppy().
25304 * loader/ieee1275/multiboot2.c [__i386__]: Include
25305 grub/cpu/multiboot.h.
25307 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
25308 casts to short - they are not portable and cause warnings. Fix
25309 use of uninitialized values in input_buf. Use ARRAY_SIZE.
25311 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
25315 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
25317 (grub_get_root_biosnumber_saved): new variable
25318 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
25319 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
25320 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
25321 %dx after the call if necessary
25322 * conf/common.rmk (pkglib_MODULES): remove boot.mod
25323 (boot_mod_SOURCES): remove
25324 (boot_mod_CFLAGS): remove
25325 (boot_mod_LDFLAGS): remove
25326 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
25327 (boot_mod_SOURCES): new variable
25328 (boot_mod_CFLAGS): likewise
25329 (boot_mod_LDFLAGS): likewise
25330 * conf/i386-efi.rmk: likewise
25331 * conf/i386-ieee1275.rmk: likewise
25332 * conf/i386-pc.rmk: likewise
25333 * conf/powerpc-ieee1275.rmk: likewise
25334 * conf/sparc64-ieee1275.rmk: likewise
25335 * conf/x86_64-efi.rmk: likewise
25336 * include/grub/i386/pc/biosnum.h: new file
25337 * lib/i386/pc/biosnum.c: likewise
25338 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
25339 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
25340 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
25342 2009-06-10 Pavel Roskin <proski@gnu.org>
25344 * io/gzio.c (test_header): Don't reuse one buffer for all data.
25345 Use separate variables. Read only the file size at the end, but
25346 not the checksum that we don't use.
25348 * kern/file.c (grub_file_read): Use void pointer for the buffer.
25349 Adjust all callers.
25351 * kern/ieee1275/openfw.c: Remove libc includes.
25352 * kern/ieee1275/cmain.c: Likewise.
25353 * include/grub/ieee1275/ieee1275.h: Likewise.
25355 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
25358 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
25360 * Makefile.in: Remove all trailing whitespace.
25361 * conf/i386-pc.rmk: Likewise.
25362 * conf/powerpc-ieee1275.rmk: Likewise.
25363 * conf/sparc64-ieee1275.rmk: Likewise.
25364 * docs/grub.texi: Likewise.
25365 * docs/texinfo.tex: Likewise.
25366 * disk/fs_uuid.c: Likewise.
25367 * disk/lvm.c: Likewise.
25368 * disk/scsi.c: Likewise.
25369 * disk/ata.c: Likewise.
25370 * disk/ieee1275/ofdisk.c: Likewise.
25371 * disk/i386/pc/biosdisk.c: Likewise.
25372 * disk/host.c: Likewise.
25373 * disk/raid.c: Likewise.
25374 * disk/efi/efidisk.c: Likewise.
25375 * disk/usbms.c: Likewise.
25376 * disk/memdisk.c: Likewise.
25377 * disk/loopback.c: Likewise.
25378 * kern/powerpc/dl.c: Likewise.
25379 * kern/device.c: Likewise.
25380 * kern/dl.c: Likewise.
25381 * kern/sparc64/dl.c: Likewise.
25382 * kern/ieee1275/ieee1275.c: Likewise.
25383 * kern/term.c: Likewise.
25384 * kern/fs.c: Likewise.
25385 * kern/i386/dl.c: Likewise.
25386 * kern/i386/pc/startup.S: Likewise.
25387 * kern/i386/pc/init.c: Likewise.
25388 * kern/i386/pc/mmap.c: Likewise.
25389 * kern/i386/pc/lzo1x.S: Likewise.
25390 * kern/i386/ieee1275/init.c: Likewise.
25391 * kern/i386/realmode.S: Likewise.
25392 * kern/i386/tsc.c: Likewise.
25393 * kern/partition.c: Likewise.
25394 * kern/corecmd.c: Likewise.
25395 * kern/file.c: Likewise.
25396 * kern/efi/efi.c: Likewise.
25397 * kern/efi/init.c: Likewise.
25398 * kern/efi/mm.c: Likewise.
25399 * kern/main.c: Likewise.
25400 * kern/err.c: Likewise.
25401 * kern/env.c: Likewise.
25402 * kern/disk.c: Likewise.
25403 * kern/generic/millisleep.c: Likewise.
25404 * kern/generic/rtc_get_time_ms.c: Likewise.
25405 * kern/misc.c: Likewise.
25406 * kern/parser.c: Likewise.
25407 * genmk.rb: Likewise.
25408 * configure.ac: Likewise.
25409 * boot/i386/pc/diskboot.S: Likewise.
25410 * boot/i386/pc/pxeboot.S: Likewise.
25411 * boot/i386/pc/boot.S: Likewise.
25412 * boot/i386/pc/lnxboot.S: Likewise.
25413 * boot/i386/pc/cdboot.S: Likewise.
25414 * parttool/pcpart.c: Likewise.
25415 * video/readers/tga.c: Likewise.
25416 * video/video.c: Likewise.
25417 * video/bitmap.c: Likewise.
25418 * lib/envblk.c: Likewise.
25419 * lib/i386/setjmp.S: Likewise.
25420 * fs/xfs.c: Likewise.
25421 * fs/afs.c: Likewise.
25422 * fs/fat.c: Likewise.
25423 * fs/ntfs.c: Likewise.
25424 * fs/udf.c: Likewise.
25425 * fs/affs.c: Likewise.
25426 * fs/iso9660.c: Likewise.
25427 * fs/hfs.c: Likewise.
25428 * fs/fshelp.c: Likewise.
25429 * fs/ext2.c: Likewise.
25430 * fs/jfs.c: Likewise.
25431 * fs/reiserfs.c: Likewise.
25432 * fs/hfsplus.c: Likewise.
25433 * fs/minix.c: Likewise.
25434 * fs/cpio.c: Likewise.
25435 * fs/sfs.c: Likewise.
25436 * fs/ufs.c: Likewise.
25437 * efiemu/prepare.c: Likewise.
25438 * efiemu/loadcore_common.c: Likewise.
25439 * efiemu/runtime/efiemu.sh: Likewise.
25440 * efiemu/runtime/efiemu.S: Likewise.
25441 * efiemu/runtime/efiemu.c: Likewise.
25442 * efiemu/pnvram.c: Likewise.
25443 * efiemu/main.c: Likewise.
25444 * efiemu/i386/pc/cfgtables.c: Likewise.
25445 * efiemu/i386/loadcore64.c: Likewise.
25446 * efiemu/i386/loadcore32.c: Likewise.
25447 * efiemu/loadcore.c: Likewise.
25448 * efiemu/symbols.c: Likewise.
25449 * efiemu/mm.c: Likewise.
25450 * include/grub/autoefi.h: Likewise.
25451 * include/grub/datetime.h: Likewise.
25452 * include/grub/term.h: Likewise.
25453 * include/grub/hfs.h: Likewise.
25454 * include/grub/lvm.h: Likewise.
25455 * include/grub/i386/tsc.h: Likewise.
25456 * include/grub/i386/linux.h: Likewise.
25457 * include/grub/i386/xnu.h: Likewise.
25458 * include/grub/i386/efiemu.h: Likewise.
25459 * include/grub/i386/pc/biosdisk.h: Likewise.
25460 * include/grub/i386/pc/memory.h: Likewise.
25461 * include/grub/i386/pc/vbe.h: Likewise.
25462 * include/grub/parttool.h: Likewise.
25463 * include/grub/video.h: Likewise.
25464 * include/grub/memory.h: Likewise.
25465 * include/grub/fs.h: Likewise.
25466 * include/grub/partition.h: Likewise.
25467 * include/grub/xnu.h: Likewise.
25468 * include/grub/efi/api.h: Likewise.
25469 * include/grub/efi/pe32.h: Likewise.
25470 * include/grub/efi/memory.h: Likewise.
25471 * include/grub/multiboot.h: Likewise.
25472 * include/grub/usbdesc.h: Likewise.
25473 * include/grub/multiboot2.h: Likewise.
25474 * include/grub/acpi.h: Likewise.
25475 * include/grub/efiemu/efiemu.h: Likewise.
25476 * include/grub/disk.h: Likewise.
25477 * include/grub/ieee1275/ieee1275.h: Likewise.
25478 * include/grub/net.h: Likewise.
25479 * include/grub/machoload.h: Likewise.
25480 * include/grub/macho.h: Likewise.
25481 * include/multiboot.h: Likewise.
25482 * genmoddep.awk: Likewise.
25483 * normal/main.c: Likewise.
25484 * normal/menu_entry.c: Likewise.
25485 * normal/menu_viewer.c: Likewise.
25486 * normal/completion.c: Likewise.
25487 * normal/cmdline.c: Likewise.
25488 * normal/misc.c: Likewise.
25489 * normal/datetime.c: Likewise.
25490 * bus/usb/usbtrans.c: Likewise.
25491 * bus/usb/ohci.c: Likewise.
25492 * bus/usb/uhci.c: Likewise.
25493 * bus/usb/usb.c: Likewise.
25494 * mmap/efi/mmap.c: Likewise.
25495 * mmap/i386/pc/mmap_helper.S: Likewise.
25496 * mmap/i386/pc/mmap.c: Likewise.
25497 * mmap/i386/mmap.c: Likewise.
25498 * mmap/i386/uppermem.c: Likewise.
25499 * mmap/mmap.c: Likewise.
25500 * commands/acpi.c: Likewise.
25501 * commands/echo.c: Likewise.
25502 * commands/blocklist.c: Likewise.
25503 * commands/loadenv.c: Likewise.
25504 * commands/usbtest.c: Likewise.
25505 * commands/boot.c: Likewise.
25506 * commands/parttool.c: Likewise.
25507 * commands/search.c: Likewise.
25508 * commands/cat.c: Likewise.
25509 * commands/i386/pc/play.c: Likewise.
25510 * commands/i386/pc/drivemap.c: Likewise.
25511 * commands/i386/pc/vbeinfo.c: Likewise.
25512 * commands/i386/pc/acpi.c: Likewise.
25513 * commands/i386/pc/vbetest.c: Likewise.
25514 * commands/ls.c: Likewise.
25515 * commands/cmp.c: Likewise.
25516 * commands/test.c: Likewise.
25517 * commands/efi/acpi.c: Likewise.
25518 * commands/gptsync.c: Likewise.
25519 * commands/help.c: Likewise.
25520 * partmap/amiga.c: Likewise.
25521 * partmap/apple.c: Likewise.
25522 * partmap/acorn.c: Likewise.
25523 * partmap/pc.c: Likewise.
25524 * partmap/sun.c: Likewise.
25525 * partmap/gpt.c: Likewise.
25526 * script/sh/lexer.c: Likewise.
25527 * script/sh/function.c: Likewise.
25528 * font/font.c: Likewise.
25529 * font/font_cmd.c: Likewise.
25530 * loader/powerpc/ieee1275/linux.c: Likewise.
25531 * loader/efi/chainloader.c: Likewise.
25532 * loader/multiboot_loader.c: Likewise.
25533 * loader/macho.c: Likewise.
25534 * loader/i386/multiboot.c: Likewise.
25535 * loader/i386/linux.c: Likewise.
25536 * loader/i386/pc/linux.c: Likewise.
25537 * loader/i386/pc/multiboot2.c: Likewise.
25538 * loader/i386/pc/chainloader.c: Likewise.
25539 * loader/i386/pc/xnu.c: Likewise.
25540 * loader/i386/bsd_trampoline.S: Likewise.
25541 * loader/i386/efi/linux.c: Likewise.
25542 * loader/i386/multiboot_elfxx.c: Likewise.
25543 * loader/i386/bsd_helper.S: Likewise.
25544 * loader/i386/bsd.c: Likewise.
25545 * loader/i386/linux_trampoline.S: Likewise.
25546 * loader/i386/xnu_helper.S: Likewise.
25547 * loader/i386/xnu.c: Likewise.
25548 * loader/i386/bsd_pagetable.c: Likewise.
25549 * loader/i386/multiboot_helper.S: Likewise.
25550 * loader/xnu.c: Likewise.
25551 * loader/xnu_resume.c: Likewise.
25552 * io/gzio.c: Likewise.
25553 * term/efi/console.c: Likewise.
25554 * term/terminfo.c: Likewise.
25555 * term/ieee1275/ofconsole.c: Likewise.
25556 * term/i386/pc/serial.c: Likewise.
25557 * term/i386/pc/vesafb.c: Likewise.
25558 * term/i386/pc/vga.c: Likewise.
25559 * term/usb_keyboard.c: Likewise.
25560 * term/gfxterm.c: Likewise.
25561 * aclocal.m4: Likewise.
25562 * util/lvm.c: Likewise.
25563 * util/grub.d/30_os-prober.in: Likewise.
25564 * util/grub.d/10_hurd.in: Likewise.
25565 * util/console.c: Likewise.
25566 * util/grub-macho2img.c: Likewise.
25567 * util/grub-probe.c: Likewise.
25568 * util/hostfs.c: Likewise.
25569 * util/i386/pc/grub-mkimage.c: Likewise.
25570 * util/i386/pc/grub-setup.c: Likewise.
25571 * util/i386/efi/grub-mkimage.c: Likewise.
25572 * util/grub-mkconfig.in: Likewise.
25573 * util/raid.c: Likewise.
25574 * util/resolve.c: Likewise.
25575 * util/grub-mkdevicemap.c: Likewise.
25576 * util/grub-emu.c: Likewise.
25577 * util/getroot.c: Likewise.
25578 * util/hostdisk.c: Likewise.
25579 * util/usb.c: Likewise.
25580 * util/grub-editenv.c: Likewise.
25581 * util/misc.c: Likewise.
25583 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
25585 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
25586 `genparttoollist.sh'.
25587 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
25588 Add `*.sh' to the list find searches for and change `mdate.sh'
25591 2009-06-10 Pavel Roskin <proski@gnu.org>
25593 * include/grub/multiboot2.h: Provide compatibility defines for
25595 * include/multiboot2.h: Include stdint.h only if needed, using
25597 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
25599 * loader/ieee1275/multiboot2.c: Likewise.
25600 * loader/multiboot2.c: Likewise.
25601 * loader/multiboot_loader.c: Likewise.
25603 * configure.ac: Use -nostdlib when probing for the target. It
25604 should not be required to have libc for the target.
25606 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
25607 they fail without libc headers for the target.
25608 * include/grub/powerpc/libgcc.h: Use weak attribute for all
25610 * include/grub/sparc64/libgcc.h: Likewise. Don't use
25611 preprocessor conditionals.
25613 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
25614 build system doesn't need to be aware of the tar.c internals.
25616 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
25618 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
25620 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
25622 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
25623 disk limit to 26 for IDE, Virtio, Xen and SCSI.
25625 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
25627 * util/i386/pc/grub-install.in: Change the error message if UUIDs
25628 aren't available if ata.mod gets used.
25630 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
25632 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
25633 initialising controller.
25634 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25636 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25638 * util/i386/pc/grub-install.in: Add a parameter --disk-module
25639 to choose between ata and biosdisk module on i386-pc.
25641 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
25643 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
25644 Subclass and Programming Interface fields in terms of the 3 byte
25645 Class Code register.
25646 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25648 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
25649 interface is OHCI. Add grub_dprintf for symmetry with
25651 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
25652 interface is UHCI. Add interf variable for programming
25653 interface. Print interface with class/subclass.
25655 * bus/usb/ohci.c: Set interf with correct field.
25657 * bus/usb/uhci.c: Remove unneeded doubled lines.
25658 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
25659 Remove whitespace inside comment.
25661 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
25663 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
25664 as fallback an equivalent option without depth.
25666 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25668 Not fail if unable to retrieve C/H/S on LBA disks
25670 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
25671 if unable to retrieve C/H/S on LBA disks
25673 2009-06-08 Pavel Roskin <proski@gnu.org>
25675 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
25678 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25680 * Makefile.in (uninstall): Remove all $lib_DATA files.
25682 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25684 Bugfix: install on partitionless device
25686 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
25689 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25691 * Makefile.in (uninstall): Remove all $include_DATA files.
25693 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25695 * commands/true.c: New file. Implement the true and false commands.
25696 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
25697 (true_mod_SOURCES): New variable.
25698 (true_mod_CFLAGS): Likewise.
25699 (true_mod_LDFLAGS): Likewise.
25701 2009-06-05 Colin D Bennett <colin@gibibit.com>
25703 Optimized font character lookup using binary search instead of linear
25704 search. Fonts now are required to have the character index ordered by
25707 * font/font.c (load_font_index): Verify that fonts have ordered
25709 (find_glyph): Use binary search instead of linear search to find a
25710 character in a font.
25712 2009-06-05 Michael Scherer <misc@mandriva.org>
25714 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
25715 uses case sensitive btree.
25716 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
25717 only for case insensitive filesystems.
25719 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
25721 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
25722 * conf/common.rmk (search_mod_CFLAGS): likewise
25724 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25726 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
25727 compensate a compiler bug
25729 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25731 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
25734 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25736 Definitions for creating asm symbols with Apple's CC
25738 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
25739 [APPLE_CC] (VARIABLE): likewise
25741 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25743 Disable lnxboot.img when compiled
25746 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
25747 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
25748 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
25749 [! APPLE_CC] (CODE_LENG): skip
25750 [! APPLE_CC] (setup_sects): likewise
25751 [! APPLE_CC]: skip filling
25753 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25755 Address in trampolines based on 32-bit registers when compiled
25758 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
25760 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
25762 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25764 Avoid aliases when compiling with Apple's CC for PCBIOS machine
25766 * kern/misc.c [APPLE_CC] (memcpy): new function
25767 [APPLE_CC] (memmove): likewise
25768 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
25769 (memcpy): define alias conditionally on !APPLE_CC
25772 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
25773 APPLE_CC are defined
25774 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
25775 (grub_assert_fail): make prototype conditional
25777 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25779 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
25781 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
25783 (CLEANFILES): add grub-macho2img
25784 (grub_macho2img_SOURCES): new variable
25785 * kern/i386/pc/startup.S (bss_start): new variable
25786 (bss_end): likewise
25787 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
25788 * util/grub-macho2img.c: new file
25790 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25792 Use objconv when compiling with Apple's CC
25794 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
25795 (efiemu64.o): likewise
25796 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
25797 when compiling with Apple's CC
25798 (efiemu64_s.o): likewise
25799 * configure.ac: check for objconv when compiling with Apple's CC
25800 * genmk.rb: use objconv for modules when compiled with Apple's CC
25802 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25804 Define segment as well as section when compiling with
25807 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
25808 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
25809 (efiemu_convert_pointer): likewise
25810 (efiemu_set_virtual_address_map): likewise
25811 (efiemu_convert_pointer): likewise
25812 (efiemu_getcrc32): likewise
25813 (init_crc32_table): likewise
25814 (reflect): likewise
25815 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
25816 (GRUB_MOD_DEP): likewise
25818 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25820 Allow a compilation without -mcmodel=large
25822 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
25823 when compiled without -mcmodel=large
25824 (filter_memory_map): remove memory post 4 GiB when compiled
25825 without -mcmodel=large
25826 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
25827 TARGET_CFLAGS when -mcmodel=large isn't supported
25829 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25831 Remove nested functions in efiemu core
25833 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
25835 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25837 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
25839 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
25841 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
25843 (grub_cpu_is_tsc_supported): likewise
25844 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
25846 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25848 Absolute addressing through constant with Apple's cc
25850 * kern/i386/pc/startup.S: Define necessary constants
25851 and address through it when using ABS with Apple's CC
25852 * boot/i386/pc/diskboot.S: likewise
25853 * boot/i386/pc/boot.S: likewise
25854 * boot/i386/pc/lnxboot.S: likewise
25855 * boot/i386/pc/cdboot.S: likewise
25856 * mmap/i386/pc/mmap_helper.S: likewise
25857 * commands/i386/pc/drivemap_int13h.S: likewise
25859 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25861 Check if compiler is apple cc
25863 * Makefile.in (ASFLAGS): new variable
25864 (TARGET_ASFLAGS): likewise
25865 (TARGET_MODULE_FORMAT): likewise
25866 (TARGET_APPLE_CC): likewise
25867 (OBJCONV): likewise
25868 (TARGET_IMG_CFLAGS): likewise
25869 (TARGET_CPPFLAGS): add includedir
25870 * configure.ac: call grub_apple_cc and grub_apple_target_cc
25871 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
25872 Check for linker script only if compiler isn't Apple's CC
25873 (TARGET_MODULE_FORMAT): set
25874 (TARGET_APPLE_CC): likewise
25875 (TARGET_ASFLAGS): likewise
25876 (ASFLAGS): likewise
25877 Check for objcopy only if compiler isn't Apple's CC
25878 Check for BSS symbol only if compiler isn't Apple's CC
25879 * genmk.rb: adapt nm options if we use Apple's utils
25880 * aclocal.m4 (grub_apple_cc): new test
25881 (grub_apple_target_cc): likewise
25883 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25885 Simplify sed expressions and improve awk
25887 * Makefile.in (install-local): simplify sed expression
25888 * gencmdlist.sh: likewise
25889 * genmoddep.awk: avoid adding module as a dependency of itself
25891 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25893 Add missing start symbols
25895 * boot/i386/pc/boot.S: add start
25896 * boot/i386/pc/pxeboot.S: likewise
25898 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25900 Fix wrong assumptions with grub-mkimage on EFI
25902 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
25903 (relocate_addresses): consider both r_addend and value at offset
25904 (make_mods_section): zerofill modinfo and header
25905 (convert_elf): write prefix here
25907 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25909 Use .asciz instead of .string
25911 * i386/pc/diskboot.S: use .asciz instead of .string
25912 * i386/pc/boot.S: likewise
25913 * include/grub/dl.h (GRUB_MOD_DEP): likewise
25914 (GRUB_MOD_NAME): likewise
25916 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25920 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
25921 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
25922 (grub_video_setup): remove
25923 (grub_video_set_mode): new prototype
25924 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
25926 (linux_vesafb_res): compile only on PCBIOS
25927 (grub_linux_boot): support gfxpayload
25928 * loader/i386/pc/xnu.c (video_hook): new function
25929 (grub_xnu_set_video): support gfxpayload
25930 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
25931 (DEFAULT_VIDEO_HEIGHT): likewise
25932 (DEFAULT_VIDEO_FLAGS): likewise
25933 (DEFAULT_VIDEO_MODE): new definition
25934 (video_hook): new function
25935 (grub_gfxterm_init): use grub_video_set_mode
25936 * util/grub.d/30_os-prober.in: remove explicit modesetting before
25938 * video/video.c (grub_video_setup): removed
25939 (grub_video_set_mode): new function based on grub_gfxterm_init and
25942 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25944 Avoid calling biosdisk in drivemap
25946 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
25947 (revparse_biosdisk): likewise
25948 (list_mappings): derive name from id directly
25949 (grub_cmd_drivemap): use tryparse_diskstring
25951 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25955 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
25956 (grub_lexer_param): add tokenonhold
25957 (grub_script_create_cmdline): remove cmdline. All callers updated
25958 (grub_script_function_create): make functionname
25959 grub_script_arg. All callers updated
25960 (grub_script_execute_argument_to_string): new prototype
25961 * kern/parser.c (state_transitions): reorder
25962 (grub_parser_cmdline_state): fix a bug and make more compact
25963 * script/sh/execute.c (grub_script_execute_argument_to_string):
25965 (grub_script_execute_cmdline): use new format
25966 * script/sh/function.c (grub_script_function_create): make functionname
25967 grub_script_arg. All callers updated
25968 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
25969 (grub_script_yylex): remove
25970 (grub_script_yylex2): renamed to ...
25971 (grub_script_yylex): ...renamed
25972 parse the expressions like a${b}c
25973 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
25974 (GRUB_PARSER_TOKEN_VAR): remove
25975 (GRUB_PARSER_TOKEN_NAME): likewise
25976 ("if"): declare as typeless
25977 ("while"): likewise
25978 ("function"): likewise
25983 (argument): likewise
25984 (script): accept empty scripts and make exit on error
25985 (arguments): use GRUB_PARSER_TOKEN_ARG
25986 (function): likewise
25987 (command): move error handling to script
25988 (menuentry): move grub_script_lexer_ref before
25989 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
25990 argument. All callers updated
25992 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
25994 Prevent GRUB from probing floppies during boot.
25996 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
25997 * commands/search.c (options): Add --no-floppy.
25998 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
25999 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
26000 --no-floppy when searching for UUIDs.
26002 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
26004 Simplify the code duplication in commands/search.c.
26006 * commands/search.c (search_label, search_fs_uuid): Merge into ...
26007 (search_fs): ... this. Update all users.
26009 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
26011 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
26013 2009-05-28 Pavel Roskin <proski@gnu.org>
26015 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
26016 Remove the original symlink explicitly.
26018 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
26019 just one slash. That's how grub_fshelp_find_file() does it.
26021 2009-05-26 Pavel Roskin <proski@gnu.org>
26023 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
26026 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
26029 2009-05-25 Christian Franke <franke@computer.org>
26031 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
26033 (grub_atapi_identify): Add wait after drive select.
26034 (grub_ata_identify): Do more strict status register check before
26035 calling grub_atapi_identify (). Suppress error message if status
26036 register is 0x00 after command failure. Add status register
26037 check after PIO read to avoid bogus identify due to stuck DRQ.
26038 Thanks to Pavel Roskin for testing.
26039 (grub_device_initialize): Remove unsafe status register check.
26040 Thanks to 'phcoder' for problem report and patch.
26041 Prevent sign extension in debug message.
26043 2009-05-23 Colin D Bennett <colin@gibibit.com>
26045 Cleaned up `include/grub/normal.h'. Grouped prototypes by
26046 definition file, and functions defined in `normal/menu.c' have had
26047 their prototypes moved to `include/grub/menu.h' for consistency.
26049 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
26051 (grub_menu_get_entry): Likewise.
26052 (grub_menu_get_timeout): Likewise.
26053 (grub_menu_set_timeout): Likewise.
26054 (grub_menu_execute_entry): Likewise.
26055 (grub_menu_execute_with_fallback): Likewise.
26056 (grub_menu_entry_run): Likewise.
26058 * include/grub/normal.h: Re-ordered and grouped function
26059 prototypes by file that the function is defined in.
26060 (grub_menu_execute_callback): Removed; moved to menu.h.
26061 (grub_menu_get_entry): Likewise.
26062 (grub_menu_get_timeout): Likewise.
26063 (grub_menu_set_timeout): Likewise.
26064 (grub_menu_execute_entry): Likewise.
26065 (grub_menu_execute_with_fallback): Likewise.
26066 (grub_menu_entry_run): Likewise.
26067 (grub_menu_addentry): Renamed from this ...
26068 (grub_normal_add_menu_entry): ... to this.
26070 * normal/main.c (grub_menu_addentry): Renamed from this ...
26071 (grub_normal_add_menu_entry): ... to this.
26073 * script/sh/execute.c (grub_script_execute_menuentry): Update
26074 reference to renamed grub_menu_addentry function.
26076 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
26078 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
26080 2009-05-22 Pavel Roskin <proski@gnu.org>
26082 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
26083 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
26084 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
26085 compiling for the i386 targets, but not for the utilities.
26087 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
26089 (grub_root_drive): Likewise.
26090 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
26092 (grub_root_drive): Change size to byte.
26093 (grub_start_addr): Remove.
26094 (grub_end_addr): Likewise.
26095 (grub_apm_bios_info): Likewise.
26097 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
26099 * normal/i386: Remove.
26100 * normal/powerpc: Likewise.
26101 * normal/sparc64: Likewise.
26102 * normal/x86_64: Likewise.
26104 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
26106 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
26107 * loader/i386/linux_trampoline.S: Fix indentation
26108 * loader/i386/xnu_helper.S: Likewise
26110 2009-05-18 Colin D Bennett <colin@gibibit.com>
26112 Display error messages when parsing a Lua statement fails.
26113 Previously, executing a syntactically invalid statement like
26114 ")foo" or "bar;" would silently fail.
26116 * script/lua/grub_main.c (handle_lua_error): New function.
26117 (grub_lua_parse_line): Improved reporting of Lua parser and
26120 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
26122 Remove -Werror which causes build to fail on some systems
26124 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
26125 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
26126 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
26128 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
26130 trampoline for linux on 64-bit platform
26132 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
26133 loader/i386/efi/linux_trampoline.S
26134 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
26136 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
26138 * loader/i386/linux_trampoline.S: moved here
26139 * loader/i386/efi/linux.c (allocate_pages): reserve space for
26141 (jumpvector): removed
26142 (grub_linux_trampoline_start): new declaration
26143 (grub_linux_trampoline_end): likewise
26144 (grub_linux_boot): use trampoline when on 64-bit platform
26145 * loader/i386/linux.c: likewise
26147 2009-05-16 Pavel Roskin <proski@gnu.org>
26149 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
26150 const to avoid a warning.
26151 (grub_lua_setenv): Likewise.
26152 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
26153 lmsg to fix a warning.
26155 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
26157 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
26158 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26159 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
26160 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26161 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
26162 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26163 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
26164 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26166 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
26168 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
26170 2009-05-16 Bean <bean123ch@gmail.com>
26172 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
26173 (lua_mod_SOURCES): New variable.
26174 (lua_mod_CFLAGS): Likewise.
26175 (lua_mod_LDFLAGS): Likewise.
26177 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
26178 (setjmp_mod_SOURCES): New variable.
26179 (setjmp_mod_CFLAGS): Likewise.
26180 (setjmp_LDFLAGS): Likewise.
26182 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
26183 (setjmp_mod_SOURCES): New variable.
26184 (setjmp_mod_CFLAGS): Likewise.
26185 (setjmp_LDFLAGS): Likewise.
26187 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
26188 (setjmp_mod_SOURCES): New variable.
26189 (setjmp_mod_CFLAGS): Likewise.
26190 (setjmp_LDFLAGS): Likewise.
26192 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
26193 (setjmp_mod_SOURCES): New variable.
26194 (setjmp_mod_CFLAGS): Likewise.
26195 (setjmp_LDFLAGS): Likewise.
26197 * normal/i386/setjmp.S: Moved from here ...
26198 * lib/i386/setjmp.S: ... Moved here
26199 * normal/x86_64/setjmp.S: Moved from here ...
26200 * lib/x86_64/setjmp.S: ... Moved here
26201 * normal/powerpc/setjmp.S: Moved from here ...
26202 * lib/powerpc/setjmp.S: ... Moved here
26203 * normal/sparc64/setjmp.S: Moved from here ...
26204 * lib/sparc64/setjmp.S: ... Moved here
26206 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
26207 returns_twice in mingw.
26209 * script/lua/grub_lib.c: New file.
26210 * script/lua/grub_lib.h: Likewise.
26211 * script/lua/grub_lua.h: Likewise.
26212 * script/lua/grub_main.c: Likewise.
26213 * script/lua/lapi.c: Likewise.
26214 * script/lua/lapi.h: Likewise.
26215 * script/lua/lauxlib.c: Likewise.
26216 * script/lua/lauxlib.h: Likewise.
26217 * script/lua/lbaselib.c: Likewise.
26218 * script/lua/lcode.c: Likewise.
26219 * script/lua/lcode.h: Likewise.
26220 * script/lua/ldblib.c: Likewise.
26221 * script/lua/ldebug.c: Likewise.
26222 * script/lua/ldebug.h: Likewise.
26223 * script/lua/ldo.c: Likewise.
26224 * script/lua/ldo.h: Likewise.
26225 * script/lua/ldump.c: Likewise.
26226 * script/lua/lfunc.c: Likewise.
26227 * script/lua/lfunc.h: Likewise.
26228 * script/lua/lgc.c: Likewise.
26229 * script/lua/lgc.h: Likewise.
26230 * script/lua/linit.c: Likewise.
26231 * script/lua/liolib.c: Likewise.
26232 * script/lua/llex.c: Likewise.
26233 * script/lua/llex.h: Likewise.
26234 * script/lua/llimits.h: Likewise.
26235 * script/lua/lmathlib.c: Likewise.
26236 * script/lua/lmem.c: Likewise.
26237 * script/lua/lmem.h: Likewise.
26238 * script/lua/loadlib.c: Likewise.
26239 * script/lua/lobject.c: Likewise.
26240 * script/lua/lobject.h: Likewise.
26241 * script/lua/lopcodes.c: Likewise.
26242 * script/lua/lopcodes.h: Likewise.
26243 * script/lua/loslib.c: Likewise.
26244 * script/lua/lparser.c: Likewise.
26245 * script/lua/lparser.h: Likewise.
26246 * script/lua/lstate.c: Likewise.
26247 * script/lua/lstate.h: Likewise.
26248 * script/lua/lstring.c: Likewise.
26249 * script/lua/lstring.h: Likewise.
26250 * script/lua/lstrlib.c: Likewise.
26251 * script/lua/ltable.c: Likewise.
26252 * script/lua/ltable.h: Likewise.
26253 * script/lua/ltablib.c: Likewise.
26254 * script/lua/ltm.c: Likewise.
26255 * script/lua/ltm.h: Likewise.
26256 * script/lua/lua.h: Likewise.
26257 * script/lua/luaconf.h: Likewise.
26258 * script/lua/lualib.h: Likewise.
26259 * script/lua/lundump.c: Likewise.
26260 * script/lua/lundump.h: Likewise.
26261 * script/lua/lvm.c: Likewise.
26262 * script/lua/lvm.h: Likewise.
26263 * script/lua/lzio.c: Likewise.
26264 * script/lua/lzio.h: Likewise.
26266 2009-05-16 Bean <bean123ch@gmail.com>
26268 * include/grub/kernel.h (grub_module_header_types): Add type
26271 * kern/main.c (grub_load_config): New function.
26272 (grub_main): Call grub_load_config to read boot config.
26274 * grub-mkimage (generate_image): New parameter config_path.
26275 (options): New option --config.
26276 (main): Parse --config option, and pass it to generate_image.
26278 2009-05-14 Christian Franke <franke@computer.org>
26280 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
26281 This fixes build on Cygwin.
26283 2009-05-14 Pavel Roskin <proski@gnu.org>
26285 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
26286 jump. This saves two bytes, so the typical case of 2 swapped
26287 drives would fit 32 bytes.
26289 2009-05-13 Pavel Roskin <proski@gnu.org>
26291 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
26292 grub_uint32_t to avoid a warning.
26294 * loader/i386/linux.c (allocate_pages): When assigning
26295 real_mode_mem, cast through grub_size_t to fix a warning. The
26296 code already makes sure that the value would fit a pointer.
26297 (grub_linux_setup_video): Cast render_target->data to
26298 grub_size_t to fix a warning.
26300 2009-05-13 Javier Martín <lordhabbit@gmail.com>
26302 * commands/i386/pc/drivemap.c: New file - implement drivemap
26304 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
26305 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
26307 2009-05-13 Pavel Roskin <proski@gnu.org>
26309 * util/i386/pc/grub-setup.c (setup): Remove unused variable
26310 embedding_area_exists.
26312 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
26314 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
26315 it easier to understand / work with.
26316 Improve warning messages for cases where there's no embedding area,
26317 or when it is too small (or core.img too large).
26319 2009-05-13 Pavel Roskin <proski@gnu.org>
26321 * loader/i386/pc/multiboot2.c: Add necessary includes for
26322 grub_multiboot2_real_boot().
26324 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
26325 PX record is always little-endian. We only need the lower 2
26328 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
26329 facilitate code reuse.
26330 (grub_cpio_mount): Use "struct head", not a char buffer. This
26331 fixes a warning reported by gcc 4.4.
26333 * kernel/disk.c (grub_disk_read): Use void pointer for the
26335 (grub_disk_write): Use const void pointer for the buffer.
26336 Adjust all callers. Remove unnecessary casts.
26338 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
26340 * util/i386/pc/grub-install.in: Update copyright year.
26342 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
26346 * commands/gptsync.c: new file
26347 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
26348 (gptsync_mod_SOURCES): new variable
26349 (gptsync_mod_CFLAGS): likewise
26350 (gptsync_mod_LDFLAGS): likewise
26351 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
26353 (GRUB_PC_PARTITION_TYPE_HFS): likewise
26354 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
26355 * conf/i386-ieee1275.rmk: likewise
26356 * conf/i386-pc.rmk: likewise
26357 * conf/powerpc-ieee1275.rmk: likewise
26359 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
26363 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
26364 (grub_dl_ref): likewise
26366 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
26368 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
26369 split in two functions (one for msdos and one for gpt).
26371 2009-05-08 Pavel Roskin <proski@gnu.org>
26373 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
26376 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
26377 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
26378 Initialize them with -1. Add sanity check for bad1. Eliminate
26381 2009-05-08 David S. Miller <davem@davemloft.net>
26383 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
26385 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
26387 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
26390 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
26392 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26393 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
26395 2009-05-05 David S. Miller <davem@davemloft.net>
26397 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
26399 2009-05-05 Pavel Roskin <proski@gnu.org>
26401 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
26402 of grub_dl_ref() and grub_dl_unref().
26403 * commands/parttool.c: Remove preprocessor conditionals around
26404 grub_dl_ref() and grub_dl_unref().
26405 * fs/affs.c: Likewise.
26406 * fs/afs.c: Likewise.
26407 * fs/cpio.c: Likewise.
26408 * fs/ext2.c: Likewise.
26409 * fs/fat.c: Likewise.
26410 * fs/hfs.c: Likewise.
26411 * fs/hfsplus.c: Likewise.
26412 * fs/iso9660.c: Likewise.
26413 * fs/jfs.c: Likewise.
26414 * fs/minix.c: Likewise.
26415 * fs/ntfs.c: Likewise.
26416 * fs/reiserfs.c: Likewise.
26417 * fs/sfs.c: Likewise.
26418 * fs/udf.c: Likewise.
26419 * fs/ufs.c: Likewise.
26420 * fs/xfs.c: Likewise.
26421 * include/grub/dl.h: Likewise.
26422 * loader/xnu.c: Likewise.
26424 2009-05-04 Pavel Roskin <proski@gnu.org>
26426 * commands/acpi.c: Remove unused variable my_mod.
26427 * partmap/amiga.c: Likewise.
26428 * partmap/apple.c: Likewise.
26429 * partmap/gpt.c: Likewise.
26430 * partmap/pc.c: Likewise.
26431 * partmap/sun.c: Likewise.
26432 * term/gfxterm.c: Likewise.
26433 * term/i386/pc/vesafb.c: Likewise.
26434 * term/i386/pc/vga.c: Likewise.
26436 2009-05-04 David S. Miller <davem@davemloft.net>
26438 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
26439 pointer args to grub_ieee1275_get_property().
26441 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
26443 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
26444 devices, and do not traverse down under controller nodes.
26446 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
26447 (grub_ofdisk_open): Use it to un-escape "," characters.
26448 * kern/disk.c (find_part_sep): New.
26449 (grub_disk_open): Use it to find the first non-escaped ','
26450 character in the disk name.
26451 * util/ieee1275/devicemap.c (escape_of_path): New.
26452 (grub_util_emit_devicemap_entry): Use it.
26453 * util/sparc64/ieee1275/grub-install.in: Update script to
26454 strip partition specifiers properly by not triggering on
26455 '\' escaped ',' characters.
26457 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26459 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
26461 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
26463 (linux_vesafb_modes): Add a lot of additional modes to the list (based
26464 on documentation from Wikipedia).
26466 2009-05-04 Pavel Roskin <proski@gnu.org>
26468 * disk/ata.c: Spelling fixes.
26469 * disk/raid.c: Likewise.
26470 * disk/usbms.c: Likewise.
26471 * disk/dmraid_nvidia.c: Likewise.
26472 * kern/ieee1275/openfw.c: Likewise.
26473 * kern/ieee1275/init.c: Likewise.
26474 * kern/ieee1275/cmain.c: Likewise.
26475 * boot/i386/pc/cdboot.S: Likewise.
26476 * video/readers/png.c: Likewise.
26477 * video/i386/pc/vbe.c: Likewise.
26478 * fs/udf.c: Likewise.
26479 * fs/hfs.c: Likewise.
26480 * fs/reiserfs.c: Likewise.
26481 * efiemu/runtime/efiemu.c: Likewise.
26482 * efiemu/main.c: Likewise.
26483 * efiemu/mm.c: Likewise.
26484 * include/grub/elf.h: Likewise.
26485 * include/grub/xnu.h: Likewise.
26486 * include/grub/usbdesc.h: Likewise.
26487 * include/grub/usb.h: Likewise.
26488 * include/grub/script_sh.h: Likewise.
26489 * include/grub/lib/LzmaEnc.h: Likewise.
26490 * include/grub/efiemu/efiemu.h: Likewise.
26491 * include/grub/command.h: Likewise.
26492 * normal/menu.c: Likewise.
26493 * normal/main.c: Likewise.
26494 * normal/datetime.c: Likewise.
26495 * bus/usb/uhci.c: Likewise.
26496 * mmap/i386/uppermem.c: Likewise.
26497 * mmap/mmap.c: Likewise.
26498 * commands/acpi.c: Likewise.
26499 * commands/test.c: Likewise.
26500 * partmap/apple.c: Likewise.
26501 * font/font.c: Likewise.
26502 * loader/sparc64/ieee1275/linux.c: Likewise.
26503 * loader/macho.c: Likewise.
26504 * loader/i386/bsd_trampoline.S: Likewise.
26505 * loader/i386/bsd.c: Likewise.
26506 * loader/xnu.c: Likewise.
26507 * term/i386/pc/vesafb.c: Likewise.
26508 * term/usb_keyboard.c: Likewise.
26509 * util/resolve.c: Likewise.
26510 * util/getroot.c: Likewise.
26512 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
26514 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
26516 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26518 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
26521 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26523 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
26524 parameter only available on BIOS.
26526 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26528 Removed wrong semicolon in declaration
26530 * grub/misc.h (grub_dprintf): remove semicolon
26532 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26534 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
26535 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
26536 is done by grub_cmd_linux() now).
26537 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
26538 restore video to text mode.
26539 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
26540 indicates lack of "vga=" parameter. "vga=0" is mapped to
26541 `GRUB_LINUX_VID_MODE_NORMAL'.
26543 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
26545 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
26546 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
26547 and `normal/script.c'. Add `kern/rescue_reader.c',
26548 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
26549 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
26550 `grub_script.tab.c'.
26552 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26553 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26554 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26555 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26556 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26558 * Makefile.in: Remove duplicated 2008 in Copyright line.
26560 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26562 * util/misc.c (grub_util_warn): New function. Emits a warning
26564 * include/grub/util/misc.h (grub_util_warn): New declaration.
26566 * util/i386/pc/grub-install.in: Understand --force and pass it down
26569 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
26571 (setup): Improve error messages and add warnings when requested to
26572 install in odd layouts. Refuse to install using blocklists unless
26575 2009-05-04 martin f. krafft <madduck@madduck.net>
26577 * disk/raid.c (grub_raid_scan_device): Improve debug message.
26579 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26581 Updated copyright year
26583 * fs/hfsplus.c: updated copyright year
26585 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26589 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
26590 in the space previously used by unused3
26591 (grub_hfsplus_uuid): new function
26592 (grub_hfsplus_fs): added uuid field
26594 2009-05-03 Pavel Roskin <proski@gnu.org>
26596 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
26597 suppress warnings. It's no longer needed.
26598 * disk/host.c: Likewise.
26599 * disk/ata_pthru.c: Likewise.
26600 * disk/loopback.c: Likewise.
26601 * hook/datehook.c: Likewise.
26602 * parttool/pcpart.c: Likewise.
26603 * fs/i386/pc/pxe.c: Likewise.
26604 * fs/ntfscomp.c: Likewise.
26605 * efiemu/main.c: Likewise.
26606 * mmap/mmap.c: Likewise.
26607 * commands/crc.c: Likewise.
26608 * commands/hexdump.c: Likewise.
26609 * commands/hdparm.c: Likewise.
26610 * commands/acpi.c: Likewise.
26611 * commands/echo.c: Likewise.
26612 * commands/minicmd.c: Likewise.
26613 * commands/blocklist.c: Likewise.
26614 * commands/memrw.c: Likewise.
26615 * commands/loadenv.c: Likewise.
26616 * commands/usbtest.c: Likewise.
26617 * commands/lsmmap.c: Likewise.
26618 * commands/boot.c: Likewise.
26619 * commands/parttool.c: Likewise.
26620 * commands/configfile.c: Likewise.
26621 * commands/search.c: Likewise.
26622 * commands/ieee1275/suspend.c: Likewise.
26623 * commands/cat.c: Likewise.
26624 * commands/i386/pc/pxecmd.c: Likewise.
26625 * commands/i386/pc/play.c: Likewise.
26626 * commands/i386/pc/halt.c: Likewise.
26627 * commands/i386/pc/vbeinfo.c: Likewise.
26628 * commands/i386/pc/vbetest.c: Likewise.
26629 * commands/lspci.c: Likewise.
26630 * commands/date.c: Likewise.
26631 * commands/handler.c: Likewise.
26632 * commands/ls.c: Likewise.
26633 * commands/test.c: Likewise.
26634 * commands/cmp.c: Likewise.
26635 * commands/efi/loadbios.c: Likewise.
26636 * commands/efi/fixvideo.c: Likewise.
26637 * commands/halt.c: Likewise.
26638 * commands/help.c: Likewise.
26639 * commands/reboot.c: Likewise.
26640 * hello/hello.c: Likewise.
26641 * script/sh/main.c: Likewise.
26642 * loader/xnu.c: Likewise.
26643 * term/terminfo.c: Likewise.
26644 * term/i386/pc/serial.c: Likewise.
26645 * term/usb_keyboard.c: Likewise.
26647 2009-05-03 David S. Miller <davem@davemloft.net>
26649 * normal/menu.c: Include grub/parser.h
26651 2009-05-03 Pavel Roskin <proski@gnu.org>
26653 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
26655 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
26656 Suggested by Javier Martín <lordhabbit@gmail.com>
26658 * util/i386/pc/grub-mkrescue.in: Allow for the case when
26659 efiemu??.o doesn't exist.
26660 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
26663 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
26665 FreeBSD 64-bit support
26667 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
26668 and loader/i386/bsd_trampoline.S
26669 (bsd_mod_ASFLAGS): new variable
26670 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
26671 (FREEBSD_MODTYPE_KERNEL64): likewise
26672 (grub_bsd64_trampoline_start): likewise
26673 (grub_bsd64_trampoline_end): likewise
26674 (grub_bsd64_trampoline_selfjump): likewise
26675 (grub_bsd64_trampoline_gdt): likewise
26676 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
26677 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
26678 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
26679 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
26680 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
26682 * loader/i386/bsd_pagetable.c: new file
26683 * loader/i386/bsd_trampoline.S: likewise
26684 * loader/i386/bsd.c (ALIGN_QWORD): new macro
26685 (ALIGN_VAR): likewise
26686 (entry_hi): new variable
26687 (kern_end_mdofs): likewise
26688 (is_64bit): likewise
26689 (grub_freebsd_add_meta): use ALIGN_VAR
26690 (grub_e820_mmap): new declaration
26691 (grub_freebsd_add_mmap): new function
26692 (grub_freebsd_add_meta_module): support 64 bit kernels
26693 (grub_freebsd_list_modules): use ALIGN_VAR
26694 (gdt_descriptor): new declaration
26695 (grub_freebsd_boot): support 64 bit kernels
26696 (grub_bsd_elf64_hook): new function
26697 (grub_bsd_load_elf): support elf64
26699 2009-05-03 Bean <bean123ch@gmail.com>
26701 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
26702 after we get the result of if statement.
26704 2009-05-03 Bean <bean123ch@gmail.com>
26706 * Makefile.in (enable_efiemu): New variable.
26708 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
26710 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
26712 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
26713 path, add -mno-red-zone option.
26714 (efiemu64_s.o): Likewise.
26715 (efiemu64.o): Use macro $^ for source file.
26717 * configure.ac (--enable-efiemu): New option.
26719 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
26723 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
26724 (pkglib_MODULES): add xnu.mod
26725 (xnu_mod_SOURCES): new variable
26726 (xnu_mod_CFLAGS): likewise
26727 (xnu_mod_LDFLAGS): likewise
26728 (xnu_mod_ASFLAGS): likewise
26729 * conf/i386-pc.rmk: likewise
26730 * conf/x86_64-efi.rmk: likewise
26731 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
26733 * include/grub/i386/macho.h: new file
26734 * include/grub/i386/xnu.h: likewise
26735 * include/grub/macho.h: likewise
26736 * include/grub/machoload.h: likewise
26737 * include/grub/x86_64/macho.h: likewise
26738 * include/grub/x86_64/xnu.h: likewise
26739 * include/grub/xnu.h: likewise
26740 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
26741 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
26742 * loader/i386/efi/xnu.c: new file
26743 * loader/i386/pc/xnu.c: likewise
26744 * loader/i386/xnu.c: likewise
26745 * loader/i386/xnu_helper.S: likewise
26746 * loader/macho.c: likewise
26747 * loader/xnu.c: likewise
26748 * loader/xnu_resume.c: likewise
26749 * util/grub-dumpdevtree: likewise
26750 * include/grub/i386/pit.h: include grub/err.h
26751 (grub_pit_wait): export
26752 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
26754 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26758 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
26759 _linux_efi, linux_efi.
26760 new files in grub-emu
26761 new targets efiemu32.o and efiemu64.o
26762 * loader/linux_normal_efiemu.c: likewise
26763 * loader/i386/efi/linux.c: added preliminary efiemu support
26764 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
26766 * include/grub/autoefi.h: new file
26767 * include/grub/i386/efiemu.h: likewise
26768 * include/grub/i386/pc/efiemu.h: likewise
26769 * include/grub/efi/api.h: add LL suffix when necessary
26770 new definitions relating to tables
26771 * include/grub/efiemu/efiemu.h: new file
26772 * include/grub/efiemu/runtime.h: likewise
26773 * efiemu/prepare.c: likewise
26774 * efiemu/loadcore_common.c: likewise
26775 * efiemu/loadcore64.c: likewise
26776 * efiemu/runtime/efiemu.sh: likewise
26777 * efiemu/runtime/efiemu.S: likewise
26778 * efiemu/runtime/efiemu.c: likewise
26779 * efiemu/runtime/config.h: likewise
26780 * efiemu/prepare32.c: likewise
26781 * efiemu/main.c: likewise
26782 * efiemu/modules/pnvram.c: likewise
26783 * efiemu/modules/i386: likewise
26784 * efiemu/modules/i386/pc: likewise
26785 * efiemu/modules/acpi.c: likewise
26786 * efiemu/i386/pc/cfgtables.c: likewise
26787 * efiemu/i386/loadcore64.c: likewise
26788 * efiemu/i386/loadcore32.c: likewise
26789 * efiemu/prepare64.c: likewise
26790 * efiemu/loadcore.c: likewise
26791 * efiemu/symbols.c: likewise
26792 * efiemu/mm.c: likewise
26793 * efiemu/loadcore32.c: likewise
26795 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26799 * commands/acpi.c: new file
26800 * commands/i386/pc/acpi.c: likewise
26801 * commands/efi/acpi.c: likewise
26802 * include/grub/acpi.h: likewise
26803 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
26804 (acpi_mod_SOURCES): new variable
26805 (acpi_mod_CFLAGS): likewise
26806 (acpi_mod_LDFLAGS): likewise
26807 * conf/i386-efi.rmk: likewise
26808 * conf/x86_64-efi.rmk: likewise
26810 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26812 Missing part from mmap patch
26814 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
26815 (grub_mmap_unregister)
26816 (grub_mmap_free_and_unregister): use grub_mmap_register
26818 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26822 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
26823 * loader/i386/linux.c (find_mmap_size): likewise
26824 (allocate_pages): likewise
26825 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
26826 (grub_fill_multiboot_mmap): likewise
26827 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
26828 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
26829 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
26830 (OPENBSD_MMAP_RESERVED): likewise
26831 * include/grub/i386/pc/memory.h: include grub/memory.h
26832 (grub_lower_mem): removed
26833 (grub_upper_mem): likewise
26834 (GRUB_MACHINE_MEMORY_ACPI): new definition
26835 (GRUB_MACHINE_MEMORY_NVS): likewise
26836 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
26837 (GRUB_MACHINE_MEMORY_HOLE): likewise
26838 (grub_machine_mmap_register): likewise
26839 (grub_machine_mmap_unregister): likewise
26840 (grub_machine_get_upper): likewise
26841 (grub_machine_get_lower): likewise
26842 (grub_machine_get_post64): likewise
26843 * include/grub/i386/efi/memory.h: new file
26844 * include/grub/x86_64/efi/memory.h: likewise
26845 * include/grub/efi/memory.h: likewise
26846 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
26847 (mmap_mod_SOURCES): new variable
26848 (mmap_mod_LDFLAGS): likewise
26849 (mmap_mod_ASFLAGS): likewise
26850 * conf/i386-coreboot.rmk: likewise
26851 * conf/i386-ieee1275.rmk: likewise
26852 * conf/i386-efi.rmk: likewise
26853 * conf/x86_64-efi.rmk: likewise
26854 * include/grub/types.h (UINT_TO_PTR): new macro
26855 (PTR_TO_UINT32): likewise
26856 (PTR_TO_UINT64): likewise
26857 * include/grub/memory.h: new file
26858 * mmap/i386/pc/mmap.c: likewise
26859 * mmap/i386/pc/mmap_helper.S: likewise
26860 * mmap/i386/uppermem.c: likewise
26861 * mmap/mmap.c: likewise
26862 * mmap/efi/mmap.c: likewise
26863 * kern/i386/coreboot/init.c (grub_machine_init): don't use
26865 * kern/i386/pc/init.c (grub_lower_mem): removed variable
26866 (grub_upper_mem): likewise
26867 (grub_machine_init): don't use grub_upper_mem,
26868 make grub_lower_mem local
26869 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
26870 grub_mmap_iterate and grub_mmap_get_upper
26871 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
26873 2009-05-02 Bean <bean123ch@gmail.com>
26875 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
26876 script/sh/parser.y.
26877 (pkglib_MODULES): Add normal.mod and sh.mod.
26878 (normal_SOURCES): New variable.
26879 (normal_mod_CFLAGS): Likewise.
26880 (normal_mod_LDFLAGS): Likewise.
26881 (sh_mod_SOURCES): Likewise.
26882 (sh_mod_CFLAGS): Likewise.
26883 (sh_mod_LDFLAGS): Likewise.
26885 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
26886 script/sh/lexer.c_DEPENDENCIES.
26887 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
26888 kern/rescue_reader.c and kern/rescue_parser.c.
26889 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
26890 (grub_emu_SOURCES): Change source files.
26891 (pkglib_MODULES): Remove normal.mod.
26892 (normal_SOURCES): Removed.
26893 (normal_mod_CFLAGS): Likewise.
26894 (normal_mod_LDFLAGS): Likewise.
26895 * conf/i386-coreboot.rmk: Likewise.
26896 * conf/i386-efi.rmk: Likewise.
26897 * conf/i386-ieee1276.rmk: Likewise.
26898 * conf/powerpc-ieee1275.rmk: Likewise.
26899 * conf/sparc64-ieee1275.rmk: Likewise.
26900 * conf/x86_64-efi.rmk: Likewise.
26902 * include/grub/command.h (grub_command_execute): New inline function.
26904 * include/grub/menu.h (grub_menu_entry): Removed commands field.
26906 * include/grub/normal.h: Remove <grub/setjmp.h>.
26907 (grub_fs_module_list): Moved to normal/autofs.c.
26908 (grub_exit_env): Removed.
26909 (grub_command_execute): Likewise.
26910 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
26912 (read_command_list): New function declaration.
26913 (read_fs_list): Likewise.
26915 * include/parser.h: Include <grub/reader.h>.
26916 (grub_parser_split_cmdline): Change type of getline parameter.
26917 (grub_parser): New structure.
26918 (grub_parser_class): New variable.
26919 (grub_parser_execute): New function declaration.
26920 (grub_register_rescue_parser): Likewise.
26921 (grub_parser_register): New inline function.
26922 (grub_parser_unregister): Likewise.
26923 (grub_parser_get_current): Likewise.
26924 (grub_parser_set_current): Likewise.
26926 * include/grub/reader.h: New file.
26927 * kern/reader.c: Likewise.
26928 * kern/rescue_parser.c: Likewise.
26929 * kern/rescue_reader.c: Likewise.
26930 * normal/autofs.c: Likewise.
26931 * normal/dyncmd.c: Likewise.
26933 * include/grub/rescue.h: Removed.
26934 * normal/command.h: Likewise.
26936 * include/grub/script.h: Moved to ...
26937 * include/grub/script_sh.h: ... Moved here.
26938 * normal/execute.c: Moved to ...
26939 * script/sh/execute.c: ... Moved here.
26940 * normal/function.c: Moved to ...
26941 * script/sh/function.c: ... Moved here.
26942 * normal/lexer.c: Moved to ...
26943 * script/sh/lexer.c: ... Moved here.
26944 * normal/parser.y: Moved to ...
26945 * script/sh/parser.y: ... Moved here.
26946 * normal/script.c: Moved to ...
26947 * script/sh/script.c: ... Moved here.
26949 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
26951 (grub_exit_env): Removed.
26952 (fs_module_list): Moved to normal/autofs.c.
26953 (grub_file_getline): Don't handle comment here.
26954 (free_menu): Skip removed field entry->commands.
26955 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
26957 (read_config_file): Removed nested parameter, change getline function.
26958 (grub_enter_normal_mode): Removed.
26959 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
26960 (read_command_list): Likewise.
26961 (autoload_fs_module): Moved to normal/autofs.c.
26962 (read_fs_list): Likewise.
26963 (reader_nested): New variable.
26964 (grub_normal_execute): Run parser.sh to switch to sh parser.
26965 (grub_cmd_rescue): Removed.
26966 (cmd_normal): Removed.
26967 (grub_cmd_normal): Unregister itself at the beginning. Don't register
26969 (grub_cmdline_run): New function.
26970 (grub_normal_reader_init): Likewise.
26971 (grub_normal_read_line): Likewise.
26972 (grub_env_write_pager): Likewise.
26973 (cmdline): New variable.
26974 (grub_normal_reader): Likewise.
26975 (GRUB_MOD_INIT): Register normal reader and set as current, register
26976 pager hook, register normal command with grub_register_command_prio,
26977 so that it won't show up in command.lst.
26978 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
26979 grub_fs_autoload_hook.
26981 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
26982 (grub_menu_execute_entry): Replace grub_script_execute with
26983 grub_parser_execute, change parameter to grub_command_execute.
26985 * normal/menu_text.c: Remove <grub/script.h>.
26987 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
26988 and <grub/parser.h>.
26989 (run): Change editor_getline to use new parser interface. Change
26990 parameter to grub_command_execute.
26992 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
26993 <grub/reader.h> and <grub/parser.h>.
26994 (grub_load_normal_mode): Execute normal command.
26995 (grub_main): Call grub_register_core_commands,
26996 grub_register_rescue_parser and grub_register_rescue_reader, use
26997 grub_reader_loop to enter input loop.
26999 * kern/parser.c (grub_parser_split_cmdline): Change type of
27001 (grub_parser_class): New variable.
27002 (grub_parser_execute): New function.
27004 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
27005 * loader/multiboot2.c: Likewise.
27006 * loader/sparc64/ieee1275/linux.c: Likewise.
27008 * util/grub-emu.c (read_command_list): New dummy function.
27010 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
27012 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
27013 count to 16 for CCISS and IDA.
27015 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
27017 * normal/menu_text.c (grub_wait_after_message): Print a newline
27018 after waiting for user input.
27020 * loader/i386/linux.c: Include `<grub/normal.h>'.
27021 (grub_cmd_linux): Improve the error message about `ask' mode, by
27022 waiting for user input so it's not missed (we can do this, since
27023 user requested interaction).
27025 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
27027 Added missing lst to grub-mkrescue
27029 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
27030 and ${input_dir}/parttool.lst
27032 2009-04-30 David S. Miller <davem@davemloft.net>
27034 * util/hostdisk.c (device_is_wholedisk): New function.
27035 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
27036 zero only if device_is_wholedisk() returns true.
27038 * util/hostdisk.c (convert_system_partition_to_system_disk):
27039 Handle virtual disk devices named /dev/vdiskX as found on sparc
27042 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
27043 lettered partition specifier is found, convert to numbered.
27045 2009-04-29 David S. Miller <davem@davemloft.net>
27047 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
27048 * include/grub/sparc64/ieee1275/memory.h: Likewise.
27050 * normal/command.c: Add missing newline at end of file.
27052 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
27054 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
27055 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
27056 grub_ofdisk_read): Likewise, and deal similarly with the fact that
27057 ihandles have a 32-bit type but need to be stored in a "void *".
27059 2009-04-28 Pavel Roskin <proski@gnu.org>
27061 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
27062 not disk. Adjust all dependencies.
27063 (grub_fs_uuid_close): Use grub_device_close(), not
27066 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
27067 parent's partition, don't copy it by reference, as it gets freed
27070 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
27072 Preboot hooks support
27074 * commands/boot.c (struct grub_preboot_t): new declaration
27075 (preboots_head): new variable
27076 (preboots_tail): likewise
27077 (grub_loader_register_preboot_hook): new function
27078 (grub_loader_unregister_preboot_hook): likewise
27079 (grub_loader_set): launch preboot hooks
27080 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
27081 (grub_loader_register_preboot_hook): new declaration
27082 (grub_loader_unregister_preboot_hook): likewise
27084 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
27088 * disk/scsi.c (grub_scsi_open): added missing cast when
27089 calling grub_dprintf
27091 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
27093 Bug and warning fixes
27095 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
27097 * commands/test.c (test_parse): fixed bug with file tests and corrected
27098 declaration of find_file
27100 2009-04-26 Pavel Roskin <proski@gnu.org>
27102 * Makefile.in: Don't install empty manual pages if help2man is
27103 missing. Use help2man option for output, not shell redirection.
27105 2009-04-26 David S. Miller <davem@davemloft.net>
27107 * util/grub-mkdevicemap.c (make_device_map): Add missing
27108 NESTED_FUNC_ATTR to process_device().
27110 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
27114 * commands/test.c: rewritten to use bash-like test
27116 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
27118 Parttool autoloading and improvements
27120 * Makefile.in (pkglib_DATA): add parttool.lst
27121 (parttool.lst): new target
27122 * genmk.rb: generate parttool-*
27123 (CLEANFILES): add #{parttool}
27124 (PARTTOOLFILES): new variable
27125 * genparttoollist.sh: new file
27126 * parttool/pcpart.c (grub_pcpart_boot): more feedback
27127 (grub_pcpart_type): likewise
27128 * commands/parttool.c (helpmsg): new variable
27129 (grub_cmd_parttool): output help if not enough arguments are supplied
27131 (GRUB_MOD_INIT(parttool)): use helpmsg
27133 2009-04-24 David S. Miller <davem@davemloft.net>
27135 Avoiding opening same device multiple times in device iterator.
27137 * kern/device.c: (grub_device_iterate): Define struct part_ent,
27138 and use it to build a list of partitions in iterate_disk() and
27139 iterate_partition().
27141 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
27144 * disk/ieee1275/nand.c (grub_nand_iterate): Return
27145 grub_devalias_iterate() result instead of unconditional 0.
27146 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
27147 Also, capture hook return value, either directly or via
27148 grub_children_iterate(), and propagate to caller.
27149 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
27150 grub_children_iterate): Return value is now 'int' instead of
27152 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
27153 like a proper iterator, stopping when hooks return non-zero.
27154 (grub_devalias_iterate): Likewise.
27156 2009-04-23 David S. Miller <davem@davemloft.net>
27158 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
27160 2009-04-22 David S. Miller <davem@davemloft.net>
27162 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
27163 is larger than address_cells, use that value for address_cells too.
27165 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
27166 IEEE1275_MAX_PATH_LEN): Define.
27167 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
27168 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
27169 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
27170 'devtype'. Explicitly NULL terminate devalias expansion.
27172 * util/sparc64/ieee1275/misc.c: New file.
27173 * util/sparc64/ieee1275/grub-setup.c: New file.
27174 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
27175 * util/sparc64/ieee1275/grub-mkimage.c: New file.
27176 * util/sparc64/ieee1275/grub-install.in: New file.
27177 * util/ieee1275/ofpath.c: New file.
27178 * util/ieee1275/devicemap.c: New file.
27179 * util/devicemap.c: New file.
27180 * util/deviceiter.c: New file.
27181 * kern/sparc64/ieee1275/init.c: New file.
27182 * include/grub/util/ofpath.h: New file.
27183 * include/grub/util/deviceiter.h: New file.
27184 * util/grub-mkdevicemap.c: Include deviceiter.h.
27185 Implement using grub_util_emit_devicemap_entry and
27186 grub_util_iterate_devices.
27187 * conf/i386-corebook.rmk: Build util/deviceiter.c and
27188 util/devicemap.c into grub-mkdevicemap
27189 * conf/i386-efi.rmk: Likewise.
27190 * conf/i386-ieee1275.rmk: Likewise.
27191 * conf/i386-pc.rmk: Likewise.
27192 * conf/powerpc-ieee1275.rmk: Likewise.
27193 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
27194 images and installation utilities. Build kernel as image
27195 instead of as elf binary. Use common rules as much as possible.
27197 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27199 Correct GPT definition
27201 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
27204 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
27206 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
27208 2009-04-19 David S. Miller <davem@davemloft.net>
27210 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
27211 (grub_rescue_cmd_linux): Rename to...
27212 (grub_cmd_linux): and fix prototype.
27213 (grub_rescue_cmd_initrd): Rename to...
27214 (grub_cmd_initrd): and fix prototype.
27215 (cmd_linux, cmd_initrd): New.
27216 (GRUB_MOD_INIT(linux)): Use grub_register_command().
27217 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
27219 2009-04-17 Pavel Roskin <proski@gnu.org>
27221 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
27223 (grub_ohci_transfer): Likewise.
27225 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
27227 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
27228 return without a value. Fix inconsistent indentation.
27230 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
27231 match struct grub_fs.
27233 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
27234 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
27235 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
27236 * commands/lspci.c (grub_lspci_iter): Likewise.
27238 2009-04-16 Bean <bean123ch@gmail.com>
27240 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
27243 2009-04-15 Pavel Roskin <proski@gnu.org>
27245 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
27246 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
27247 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
27250 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
27252 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
27253 that no multiple data or metadata areas are supported and `Unknown
27256 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27258 Move loader out of the kernel
27260 * kern/loader.c: moved to ...
27261 * commands/boot.c: ... moved here
27262 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
27263 * commands/boot.c (grub_cmd_boot): moved here. All users updated
27264 * include/grub/kernel.h (grub_machine_fini): export
27265 * include/grub/loader.h (grub_loader_is_loaded): update declaration
27266 (grub_loader_set): likewise
27267 (grub_loader_unset): likewise
27268 (grub_loader_boot): likewise
27269 * conf/common.rmk: new module boot.mod
27270 (pkglib_MODULES): add boot.mod
27271 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
27272 (grub_emu_SOURCES): likewise
27273 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
27274 (grub_emu_SOURCES): likewise
27275 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
27276 (grub_emu_SOURCES): likewise
27277 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
27278 (grub_emu_SOURCES): likewise
27279 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
27280 (grub_emu_SOURCES): likewise
27281 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
27282 (grub_emu_SOURCES): likewise
27283 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
27284 (grub_emu_SOURCES): likewise
27286 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27288 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
27290 * kern/misc.c (grub_itoa): Removed function
27291 (grub_ltoa): likewise
27292 (grub_vsprintf): use grub_lltoa
27294 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27298 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
27299 * conf/i386-coreboot.rmk: likewise
27300 * conf/i386-ieee1275.rmk: likewise
27301 * conf/powerpc-ieee1275.rmk: likewise
27303 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
27305 * INSTALL: Add that `./autogen.sh' needs to be run before
27308 2009-04-14 Bean <bean123ch@gmail.com>
27310 * Makefile.in (pkglib_DATA): Add handler.lst.
27311 (handler.lst): New rule.
27313 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
27314 * conf/i386-coreboot.rmk: Likewise.
27315 * conf/i386-ieee1275.rmk: Likewise.
27316 * conf/i386-efi.rmk: Likewise.
27317 * conf/x86_64-efi.rmk: Likewise.
27318 * conf/powerpc-ieee1275.rmk: Likewise.
27319 * conf/sparc64-ieee1275.rmk: Likewise.
27321 * genhandlerlist.sh: New file.
27323 * genmk.rb: Add rules to generate handler.lst.
27325 * include/grub/normal.h (grub_file_getline): New function definition.
27326 (read_handler_list): Likewise.
27327 (free_handler_list): Likewise.
27329 * include/grub/term.h (grub_term_register_input): Add name parameter
27330 for auto generation of handler.lst.
27331 (grub_term_register_output): Likewise.
27333 * normal/handler.c: New file.
27335 * normal/main.c (get_line): Renamed to grub_file_getline.
27336 (read_config_file): Use the newly renamed grub_file_getline.
27337 (read_command_list): Likewise.
27338 (read_fs_list): Likewise.
27339 (grub_normal_execute): Call read_handler_list to parse handler.lst.
27340 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
27342 * term/efi/console.c (grub_console_init): Add name parameter for auto
27343 generation of handler.lst.
27344 * term/gfxterm.c: Likewise.
27345 * term/i386/pc/at_keyboard.c: Likewise.
27346 * term/i386/pc/console.c: Likewise.
27347 * term/i386/pc/serial.c: Likewise.
27348 * term/i386/pc/vesafb.c: Likewise.
27349 * term/i386/pc/vga.c: Likewise.
27350 * term/i386/pc/vga_text.c: Likewise.
27351 * term/ieee1275/ofconsole.c: Likewise.
27352 * term/usb_keyboard.c: Likewise.
27354 2009-04-14 Bean <bean123ch@gmail.com>
27356 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
27357 properly with null character.
27359 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
27361 * configure: Remove.
27362 * config.h.in: Likewise.
27363 * stamp-h.in: Likewise.
27364 * DISTLIST: Likewise.
27365 * conf/common.mk: Likewise.
27366 * conf/i386-coreboot.mk: Likewise.
27367 * conf/i386-efi.mk: Likewise.
27368 * conf/i386-ieee1275.mk: Likewise.
27369 * conf/i386.mk: Likewise.
27370 * conf/i386-pc.mk: Likewise.
27371 * conf/powerpc-ieee1275.mk: Likewise.
27372 * conf/sparc64-ieee1275.mk: Likewise.
27373 * conf/x86_64-efi.mk: Likewise.
27375 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
27378 2009-04-14 John Stanley <jpsinthemix@verizon.net>
27379 David S. Miller <davem@davemloft.net>
27381 * util/hostdisk.c (make_device_name): Fix buffer length
27384 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
27386 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
27387 <sys/param.h> and <sys/sysctl.h>.
27388 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
27389 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
27390 opening the device and reset them afterwards.
27392 2009-04-13 Pavel Roskin <proski@gnu.org>
27394 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
27395 Reported by John Stanley <jpsinthemix@verizon.net>
27397 2009-04-13 Robert Millan <rmh@aybabtu.com>
27399 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
27400 that name for menuentries when appropriate.
27402 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27404 * util/grub.d/10_freebsd.in: Add a missing `fi'.
27406 2009-04-13 Robert Millan <rmh@aybabtu.com>
27408 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
27409 to Linux, simply abort telling the user it's no longer supported.
27411 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27413 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
27414 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
27415 `freebsd_loadenv' only when devices.hints exist.
27417 2009-04-13 Pavel Roskin <proski@gnu.org>
27419 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
27421 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27423 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
27425 (grub_drive): Likewise.
27427 2009-04-13 David S. Miller <davem@davemloft.net>
27429 * kern/sparc64/ieee1275/ieee1275.c: New file.
27430 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
27431 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
27432 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
27433 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
27434 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
27435 grub_ieee1275_alloc_physmem): Declare new exported functions.
27437 * include/grub/sparc64/ieee1275/loader.h: New file.
27438 * include/grub/sparc64/ieee1275/memory.h: Likewise.
27439 * include/grub/sparc64/kernel.h: Likewise.
27440 * loader/sparc64/ieee1275/linux.c: Likewise.
27442 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
27443 (grub_fstest_SOURCES): Likewise.
27445 * util/hostdisk.c (make_device_name): Do not make any assumptions
27446 about the length of drive names.
27448 * kern/dl.c (grub_dl_load_file): Close file immediately when
27449 we are done using it.
27451 2009-04-12 David S. Miller <davem@davemloft.net>
27453 * kern/misc.c (grub_ltoa): Fix cast when handling negative
27454 values. Noticed by Pavel Roskin.
27456 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
27459 * genmk.rb: Add more flexible image type specification, also
27460 pass --strip-unneeded to objcopy.
27461 * conf/i386-pc.rmk: Use *_FORMAT.
27462 * conf/i386-pc.mk: Rebuilt.
27464 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
27465 (OFDISK_HASH_SZ): Define.
27466 (ofdisk_hash): New hash table.
27467 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
27468 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
27469 instead of device phandle which is not unique.
27471 * kern/sparc64/ieee1275/init.c: Delete, replace with...
27472 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
27473 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
27474 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
27475 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
27476 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
27477 GRUB_KERNEL_MACHINE_DATA_END): Define.
27478 (grub_kernel_image_size, grub_total_module_size): Declare.
27480 2009-04-12 Pavel Roskin <proski@gnu.org>
27482 * configure.ac: Change the logic when we check for target tools.
27483 Do it when the target is specified and it's different from the
27484 specified value of the host.
27486 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
27488 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
27489 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
27490 GNU/kFreeBSD. Check if a device is a character device. Use
27491 DIOCGMEDIASIZE to get the size.
27492 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
27493 support for GNU/kFreeBSD.
27494 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
27495 is a character device instead of a block device. Add support for
27496 FreeBSD device names.
27498 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
27499 is a character device instead of a block device.
27501 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
27502 is a character device instead of a block device.
27504 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
27506 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
27507 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
27508 FreeBSD. Check if a device is a character device. Use
27509 DIOCGMEDIASIZE to get the size.
27510 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
27511 support for FreeBSD.
27512 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
27513 is a character device instead of a block device. Add support for
27514 FreeBSD device names.
27516 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
27517 a character device instead of a block device.
27518 (grub_util_check_char_device): New function.
27520 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
27521 a character device instead of a block device.
27523 * include/grub/util/getroot.h (grub_util_check_char_device): New
27526 2009-04-11 David S. Miller <davem@davemloft.net>
27528 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
27530 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
27531 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
27532 function, if present.
27533 (__bswapdi2): Likewise.
27535 * include/grub/sparc64/ieee1275/boot.h: New file.
27536 * boot/sparc64/ieee1275/boot.S: Likewise.
27537 * boot/sparc64/ieee1275/diskboot.S: Likewise.
27539 * kern/misc.c (grub_ltoa): New function.
27540 (grub_vsprintf): Use it to format 'long' integers.
27542 2009-04-10 David S. Miller <davem@davemloft.net>
27544 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
27545 slots are of type grub_ieee1275_cell_t.
27546 (grub_nand_read): Likewise.
27547 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
27548 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
27549 macros are used to compare values in arg/ret block of the call.
27550 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
27551 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
27552 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
27553 grub_ieee1275_instance_to_path, grub_ieee1275_write,
27554 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
27555 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
27556 grub_ieee1275_close, grub_ieee1275_set_property,
27557 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
27558 grub_ieee1275_cell_t.
27559 * kern/ieee1275/openfw.c (grub_map): Likewise.
27560 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
27561 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
27563 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
27564 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
27565 (grub_devalias_iterate): Likewise.
27567 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27571 * fs/ufs.c (INODE_NBLOCKS): new definition
27572 (struct grub_ufs_dirent): added fields for non-BSD dirents
27573 (grub_ufs_get_file_block): fixed double indirect handling
27574 (grub_ufs_lookup_symlink): use more robust way to determine whether
27576 (grub_ufs_find_file): support for non-BSD dirents
27577 (grub_ufs_dir): support for non-BSD dirents
27579 2009-04-10 Bean <bean123ch@gnail.com>
27581 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
27582 attribute, otherwise the size would be wrong for i386 platform.
27584 * include/grub/pci.h (grub_pci_read_word): New inline function.
27585 (grub_pci_read_byte): Likewise.
27586 (grub_pci_write): Likewise.
27587 (grub_pci_write_word): Likewise.
27588 (grub_pci_write_byte): Likewise.
27590 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
27592 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
27593 (find_framebuf): Scan pci to locate the frame buffer address.
27595 * commands/efi/fixvideo.c: New file.
27597 * commands/efi/loadbios.c: Likewise.
27599 * commands/memrw.c: Likewise.
27601 * util/grub-dumpbios.in: Likewise.
27603 * conf/common.rmk (grub-dumpbios): New utility.
27604 (pkglib_MODULES): New module memrw.mod.
27605 (memrw_mod_SOURCE): New macro.
27606 (memrw_mod_CFLAGS): Likewise.
27607 (memrw_mod_LDFLAGS): Likewise.
27609 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
27611 (loadbios_mod_SOURCE): New macro.
27612 (loadbios_mod_CFLAGS): Likewise.
27613 (loadbios_mod_LDFLAGS): Likewise.
27614 (fixvideo_mod_SOURCE): Likewise.
27615 (fixvideo_mod_CFLAGS): Likewise.
27616 (fixvideo_mod_LDFLAGS): Likewise.
27618 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
27620 (loadbios_mod_SOURCE): New macro.
27621 (loadbios_mod_CFLAGS): Likewise.
27622 (loadbios_mod_LDFLAGS): Likewise.
27623 (fixvideo_mod_SOURCE): Likewise.
27624 (fixvideo_mod_CFLAGS): Likewise.
27625 (fixvideo_mod_LDFLAGS): Likewise.
27627 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
27629 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
27631 2009-04-07 David S. Miller <davem@davemloft.net>
27633 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
27634 support for R_SPARC_OLO10 relocations. Fix compile warning for
27635 R_SPARC_WDISP30 case.
27636 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
27638 2009-04-06 Pavel Roskin <proski@gnu.org>
27640 * include/grub/misc.h (ARRAY_SIZE): New macro.
27641 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
27643 * loader/i386/linux.c (allocate_pages): Use free_pages().
27644 (grub_linux_unload): Don't use free_pages().
27645 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
27646 wrong index. Treat all other modes as text modes.
27647 (grub_cmd_linux): Initialize vid_mode unconditionally to
27648 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
27650 * commands/help.c (print_command_help): Use cmd->prio, not
27651 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
27653 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
27657 * parttool/pcpart.c: new file
27658 * commands/parttool.c: likewise
27659 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
27660 (parttool_mod_SOURCES): new variable
27661 (parttool_mod_CFLAGS): likewise
27662 (parttool_mod_LDFLAGS): likewise
27663 (pcpart_mod_SOURCES): likewise
27664 (pcpart_mod_CFLAGS): likewise
27665 (pcpart_mod_LDFLAGS): likewise
27666 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
27667 and parttool/pcpart.c
27668 * conf/i386-efi.rmk: likewise
27669 * conf/i386-ieee1275.rmk: likewise
27670 * conf/i386-pc.rmk: likewise
27671 * conf/powerpc-ieee1275.rmk: likewise
27672 * conf/sparc64-ieee1275.rmk: likewise
27673 * conf/x86_64-ieee1275.rmk: likewise
27675 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27677 Support for mtime and further expandability of dir command
27679 * include/grub/lib/datetime.h: moved to ...
27680 * include/grub/datetime.h: ... moved here and added
27681 declaration of grub_unixtime2datetime. All users updated
27682 * include/grub/fs.h: new syntax for dir and mtime functions in
27684 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
27685 and GRUB_FSHELP_FLAGS_MASK
27686 * commands/ls.c (grub_ls_list_files): Write mtime in long format
27687 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
27688 (grub_ext2_mtime): new function
27689 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
27690 (grub_hfsplus_mtime): new function
27691 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
27692 (GRUB_UFS_ATTR_FILE): likewise
27693 (GRUB_UFS_ATTR_LNK): likewise
27694 (struct grub_ufs_sblock): new fields mtime
27695 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
27697 (grub_ufs_dir): mtime support
27698 (grub_ufs_mtime): new function
27699 * fs/affs.c (grub_affs_dir): use new dir syntax
27700 * fs/afs.c (grub_afs_dir): likewise
27701 * fs/cpio.c (grub_cpio_dir): likewise
27702 * fs/fat.c (grub_fat_find_dir): likewise
27703 * fs/hfs.c (grub_hfs_dir): likewise
27704 * fs/iso9660.c (grub_iso9660_dir): likewise
27705 * fs/jfs.c (grub_jfs_dir): likewise
27706 * fs/minix.c (grub_minix_dir): likewise
27707 * fs/ntfs.c (grub_ntfs_dir): likewise
27708 * fs/reiserfs.c (grub_reiserfs_dir): likewise
27709 * fs/sfs.c (grub_sfs_dir): likewise
27710 * fs/xfs.c (grub_xfs_dir): likewise
27711 * util/hostfs.c (grub_hostfs_dir): likewise
27712 * lib/datetime.c: moved to ...
27713 * normal/datetime.c: ... moved here
27714 (grub_unixtime2datetime): new function
27715 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
27716 * normal/completion.c (iterate_dir): use new dir syntax
27717 * normal/misc.c (grub_normal_print_device_info): tell the
27718 last modification time of a volume
27719 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
27720 * conf/common.rmk: added lib/datetime.c to ls.mod
27721 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
27722 (normal_mod_SOURCES): likewise
27723 (datetime_mod_SOURCES): Removed lib/datetime.c
27724 * conf/i386-efi.rmk: likewise
27725 * conf/i386-ieee1275.rmk: likewise
27726 * conf/i386-pc.rmk: likewise
27727 * conf/powerpc-ieee1275.rmk: likewise
27728 * conf/sparc64-ieee1275.rmk: likewise
27729 * conf/x86_64-efi.rmk: likewise
27731 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27733 Trim trailing spaces in FAT label and support mtools-like labels
27735 * fs/fat.c (grub_fat_iterate_dir): New function based
27736 on grub_fat_find_dir
27737 (grub_fat_find_dir): use grub_fat_iterate_dir
27738 (grub_fat_label): likewise
27740 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
27742 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
27744 remove extraneous kernel_elf_HEADERS
27746 2009-04-04 Bean <bean123ch@gnail.com>
27748 * include/grub/util/misc.h: Add dummy function fsync for mingw.
27750 * util/misc.c: Likewise.
27752 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27754 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
27755 instead of grub_printf.
27757 2009-04-03 Robert Millan <rmh@aybabtu.com>
27759 * loader/i386/linux.c (grub_linux_setup_video): Fill
27760 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
27761 values from `mode info' structure instead of hardcoded
27764 2009-04-01 Pavel Roskin <proski@gnu.org>
27766 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
27768 * genmk.rb: Likewise.
27769 * configure.ac: Likewise.
27771 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
27773 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
27774 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
27776 2009-04-01 David S. Miller <davem@davemloft.net>
27778 * normal/sparc64/setjmp.S: Fix setjmp implementation.
27779 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
27780 (grub_setjmp): Mark with 'returns_twice' attribute.
27781 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
27782 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
27783 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
27785 2009-04-01 Robert Millan <rmh@aybabtu.com>
27787 Reapply fix from 2008-07-28 which was accidentally reverted; also
27788 perform the same fix to a similar check in same function.
27790 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
27791 with the same number are found, just use issue a warning with
27792 grub_dprintf(), as this error has been reported to be non-fatal.
27794 2009-03-31 Pavel Roskin <proski@gnu.org>
27796 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
27797 for cross-compilation.
27799 2009-03-30 Robert Millan <rmh@aybabtu.com>
27801 Fix i386-ieee1275 build.
27803 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
27804 Remove declaration.
27806 2009-03-30 Pavel Roskin <proski@gnu.org>
27808 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
27809 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
27810 zero-terminated, rely only on the strlen value. Fix comparison
27811 of strings differing in length.
27813 2009-03-30 Robert Millan <rmh@aybabtu.com>
27815 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
27816 checking for abi version. Improve error messages on BIOS to notify
27817 user about `linux16' command.
27819 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
27823 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
27824 in case of collision
27825 * disk/scsi.c (grub_scsi_open): free scsi in case of error
27827 2009-03-29 Robert Millan <rmh@aybabtu.com>
27829 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
27830 set `vid_mode' accordingly.
27831 (grub_linux_boot): Process `vid_mode' and set video mode.
27833 2009-03-29 Robert Millan <rmh@aybabtu.com>
27835 * util/grub.d/10_linux.in (linux_entry): New function.
27836 Factorize generation of Linux boot entries.
27838 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
27840 Make the format of Environment Block plain text. The boot loader
27841 part is not tested well yet.
27843 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
27845 (envblk): Likewise.
27846 (usage): Remove "info" and "clear". Add "unset". Update the
27847 description of "set", as this does not delete variables any
27849 (create_envblk_file): Complete rewrite.
27850 (open_envblk_file): Likewise.
27851 (cmd_info): Removed.
27852 (cmd_list): Likewise.
27853 (cmd_set): Likewise.
27854 (cmd_clear): Likewise.
27855 (list_variables): New function.
27856 (write_envblk): Likewise.
27857 (set_variables): Likewise.
27858 (unset_variables): Likewise.
27859 (main): Complete rewrite.
27861 * commands/loadenv.c (buffer): Removed.
27862 (envblk): Likewise.
27863 (open_envblk_file): New function.
27864 (read_envblk_file): Complete rewrite.
27865 (grub_cmd_load_env): Likewise.
27866 (grub_cmd_list_env): Likewise.
27867 (struct blocklist): New struct.
27868 (free_blocklists): New function.
27869 (check_blocklists): Likewise.
27870 (write_blocklists): Likewise.
27871 (grub_cmd_save_env): Complete rewrite.
27873 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
27874 a plain text signature.
27875 (GRUB_ENVBLK_MAXLEN): Removed.
27876 (struct grub_envblk): Complete rewrite.
27877 (grub_envblk_find): Removed.
27878 (grub_envblk_insert): Likewise.
27879 (grub_envblk_open): New prototype.
27880 (grub_envblk_set): Likewise.
27881 (grub_envblk_delete): Put const to VALUE.
27882 (grub_envblk_iterate): Put const to NAME and VALUE.
27883 (grub_envblk_close): New prototype.
27884 (grub_envblk_buffer): New inline function.
27885 (grub_envblk_size): Likewise.
27887 * lib/envblk.c: Include grub/mm.h.
27888 (grub_env_find): Removed.
27889 (grub_envblk_open): New function.
27890 (grub_envblk_close): Likewise.
27891 (escaped_value_len): Likewise.
27892 (find_next_line): Likewise.
27893 (grub_envblk_insert): Removed.
27894 (grub_envblk_set): New function.
27895 (grub_envblk_delete): Complete rewrite.
27896 (grub_envblk_iterate): Likewise.
27898 2009-03-28 Robert Millan <rmh@aybabtu.com>
27900 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
27901 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
27902 variables. Use 16-bit loader.
27903 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
27905 * kern/i386/loader.S (grub_linux_boot): Rename to ...
27906 (grub_linux16_boot): ... this. Update all users.
27907 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
27908 (grub_linux_boot): ... this. Update all users.
27910 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
27911 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
27912 commands to `linux16' and `initrd16'.
27913 (GRUB_MOD_FINI(linux)): Rename to ...
27914 (GRUB_MOD_FINI(linux16)): ... this.
27916 2009-03-24 Pavel Roskin <proski@gnu.org>
27918 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
27919 not just for compilation.
27921 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
27923 Move multiboot helper out of kernel
27925 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
27926 `loader/i386/multiboot_helper.S'.
27927 * conf/i386-coreboot.rmk: Likewise
27928 * conf/i386-ieee1275.rmk: Likewise
27930 * kern/i386/loader.S: Move multiboot helpers from here...
27931 * loader/i386/multiboot_helper.S: ...moved here
27932 * include/grub/i386/loader.h: Move declarations of multiboot
27933 helpers from here...
27934 * include/grub/i386/multiboot.h: ...moved here
27935 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
27937 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27939 * kern/env.c (grub_env_context_open): Added an argument to specify
27940 whether a new context inherits exported variables from current
27941 one. This is useful when making a sandbox to interpret a config
27943 All callers updated.
27945 * include/grub/env.h (grub_env_context_open): Updated the prototype.
27947 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27949 * kern/env.c (grub_env_context_close): Fix memory leaks.
27951 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27953 * normal/main.c (grub_normal_execute): Added an argument
27954 BATCH to specify if an interactive interface should be provided
27955 after reading a config file.
27956 All callers updated.
27957 (read_command_list): Prevent being executed twice.
27958 (read_fs_list): Likewise.
27960 * include/grub/normal.h (grub_normal_execute): Updated the
27963 2009-03-22 Pavel Roskin <proski@gno.org>
27965 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
27967 * kern/i386/pc/startup.S: Likewise.
27968 * kern/i386/efi/startup.S: Likewise.
27969 * kern/i386/ieee1275/startup.S: Likewise.
27970 * kern/i386/coreboot/startup.S: Likewise.
27971 * kern/x86_64/efi/startup.S: Likewise.
27973 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
27974 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
27975 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
27977 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
27979 Bugfixes in multiboot for bugs uncovered by solaris kernel.
27981 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
27983 Use vaddr of correct segment for entry_point.
27985 2009-03-21 Bean <bean123ch@gmail.com>
27987 * commands/blocklist.c: Add include file <grub/command.h>, remove
27988 <grub/normal.h> and <grub/arg.h>.
27989 (grub_cmd_blocklist): Use the new command interface.
27990 (GRUB_MOD_INIT): Likewise.
27991 (GRUB_MOD_FINI): Likewise.
27992 * commands/boot.c: Likewise.
27993 * commands/cat.c: Likewise.
27994 * commands/cmp.c: Likewise.
27995 * commands/configfile.c: Likewise.
27996 * commands/crc.c: Likewise.
27997 * commands/echo.c: Likewise.
27998 * commands/halt.c: Likewise.
27999 * commands/handler.c: Likewise.
28000 * commands/hdparm.c: Likewise.
28001 * commands/help.c: Likewise.
28002 * commands/hexdump.c: Likewise.
28003 * commands/loadenv.c: Likewise.
28004 * commands/ls.c: Likewise.
28005 * commands/lsmmap.c: Likewise.
28006 * commands/lspci.c: Likewise.
28007 * commands/loadenv.c: Likewise.
28008 * commands/read.c: Likewise.
28009 * commands/reboot.c: Likewise.
28010 * commands/search.c: Likewise.
28011 * commands/sleep.c: Likewise.
28012 * commands/test.c: Likewise.
28013 * commands/usbtest.c: Likewise.
28014 * commands/videotest.c: Likewise.
28015 * commands/i386/cpuid.c: Likewise.
28016 * commands/i386/pc/halt.c: Likewise.
28017 * commands/i386/pc/play.c: Likewise.
28018 * commands/i386/pc/pxecmd.c: Likewise.
28019 * commands/i386/pc/vbeinfo.c: Likewise.
28020 * commands/i386/pc/vbetest.c: Likewise.
28021 * commands/ieee1275/suspend.c: Likewise.
28022 * disk/loopback.c: Likewise.
28023 * font/font_cmd.c: Likewise.
28024 * hello/hello.c: Likewise.
28025 * loader/efi/appleloader.c: Likewise.
28026 * loader/efi/chainloader.c: Likewise.
28027 * loader/i386/bsd.c: Likewise.
28028 * loader/i386/efi/linux.c: Likewise.
28029 * loader/i386/ieee1275/linux.c: Likewise.
28030 * loader/i386/linux.c: Likewise.
28031 * loader/i386/pc/chainloader.c: Likewise.
28032 * loader/i386/pc/linux.c: Likewise.
28033 * loader/powerpc/ieee1275/linux.c: Likewise.
28034 * loader/multiboot_loader.c: Likewise.
28035 * term/gfxterm.c: Likewise.
28036 * term/i386/pc/serial.c: Likewise.
28037 * term/terminfo.c: Likewise.
28039 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
28040 * term/i386/pc/vga.c: Likewise.
28041 * video/readers/jpeg.c: Likewise.
28042 * video/readers/png.c: Likewise.
28043 * video/readers/tga.c: Likewise.
28045 * util/grub-fstest (cmd_loopback): Removed.
28046 (cmd_blocklist): Likewise.
28047 (cmd_ls): Likewise.
28048 (grub_register_command): Likewise.
28049 (grub_unregister_command): Likewise.
28050 (execute_command): Use grub_command_find to locate command and execute
28053 * include/grub/efi/chainloader.h: Removed.
28054 * loader/efi/chainloader_normal.c: Likewise.
28055 * loader/i386/bsd_normal.c: Likewise.
28056 * loader/i386/pc/chainloader_normal.c: Likewise.
28057 * loader/i386/pc/multiboot_normal.c: Likewise.
28058 * loader/linux_normal.c: Likewise.
28059 * loader/multiboot_loader_normal.c: Likewise.
28060 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
28062 * gencmdlist.sh: Scan new registration command grub_register_extcmd
28063 and grub_register_command_p1.
28065 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
28066 kern/command.c, lib/arg.c and commands/extcmd.c.
28067 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
28068 (minicmd_mod_SOURCES): New variable.
28069 (minicmd_mod_CFLAGS): Likewise.
28070 (minicmd_mod_LDFLAGS): Likewise.
28071 (extcmd_mod_SOURCES): Likewise.
28072 (extcmd_mod_CFLAGS): Likewise.
28073 (extcmd_mod_LDFLAGS): Likewise.
28074 (boot_mod_SOURCES): Removed.
28075 (boot_mod_CFLAGS): Likewise.
28076 (boot_mod_LDFLAGS): Likewise.
28078 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
28080 (kernel_img_HEADERS): Add command.h.
28081 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
28082 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
28084 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
28085 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
28086 remove the corresponding normal mode command.
28087 (normal_mod_SOURCES): Remove normal/arg.c.
28088 * conf/i386-coreboot.rmk: Likewise.
28089 * conf/i386-efi.rmk: Likewise.
28090 * conf/i386-ieee1275.rmk: Likewise.
28091 * conf/powerpc-ieee1275.rmk: Likewise.
28092 * conf/x86_64-efi.rmk: Likewise.
28094 * include/grub/arg.h: Move from here ...
28095 * include/grub/lib/arg.h: ... to here.
28097 * normal/arg.c: Move from here ...
28098 * lib/arg.c: ... to here.
28100 * commands/extcmd.c: New file.
28101 * commands/minicmd.c: Likewise.
28102 * include/grub/command.h: Likewise.
28103 * include/grub/extcmd.h: Likewise.
28104 * kern/command.c: Likewise.
28105 * kern/corecmd.c: Likewise.
28107 * kern/list.c (grub_list_iterate): Return int instead of void.
28108 (grub_list_insert): New function.
28109 (grub_prio_list_insert): Likewise.
28111 * kern/rescue.c (grub_rescue_command): Removed.
28112 (grub_rescue_command_list): Likewise.
28113 (grub_rescue_register_command): Likewise.
28114 (grub_rescue_unregister_command): Likewise.
28115 (grub_rescue_cmd_boot): Move to minicmd.c
28116 (grub_rescue_cmd_help): Likewise.
28117 (grub_rescue_cmd_info): Likewise.
28118 (grub_rescue_cmd_boot): Likewise.
28119 (grub_rescue_cmd_testload): Likewise.
28120 (grub_rescue_cmd_dump): Likewise.
28121 (grub_rescue_cmd_rmmod): Likewise.
28122 (grub_rescue_cmd_lsmod): Likewise.
28123 (grub_rescue_cmd_exit): Likewise.
28124 (grub_rescue_print_devices): Moved to corecmd.c.
28125 (grub_rescue_print_files): Likewise.
28126 (grub_rescue_cmd_ls): Likewise.
28127 (grub_rescue_cmd_insmod): Likewise.
28128 (grub_rescue_cmd_set): Likewise.
28129 (grub_rescue_cmd_unset): Likewise.
28130 (attempt_normal_mode): Use grub_command_find to get normal module.
28131 (grub_enter_rescue_mode): Use grub_register_core_commands to register
28132 commands, remove grub_rescue_register_command calls.
28134 * normal/command.c (grub_register_command): Removed.
28135 (grub_unregister_command): Likewise.
28136 (grub_command_find): Likewise.
28137 (grub_iterate_commands): Likewise.
28138 (rescue_command): Likewise.
28139 (export_command): Moved to corecmd.c.
28140 (set_command): Removed.
28141 (unset_command): Likewise.
28142 (insmod_command): Likewise.
28143 (rmmod_command): Likewise.
28144 (lsmod_command): Likewise.
28145 (grub_command_init): Likewise.
28147 * normal/completion.c (iterate_command): Use cmd->prio to check for
28149 (complete_arguments): Use grub_extcmd_t structure to find options.
28150 (grub_normal_do_completion): Change function grub_iterate_commands to
28151 grub_command_iterate.
28153 * normal/execute.c (grub_script_execute_cmd): No need to parse
28156 * normal/main.c (grub_dyncmd_dispatcher): New function.
28157 (read_command_list): Register unload commands as dyncmd.
28158 (grub_cmd_normal): Use new command interface, register rescue,
28159 unregister normal at entry, register normal, unregister rescue at exit.
28161 * include/grub/list.h (grub_list_test_t): New type.
28162 (grub_list_iterate): Return int instead of void.
28163 (grub_list_insert): New function.
28164 (GRUB_AS_NAMED_LIST_P): New macro.
28165 (GRUB_AS_PRIO_LIST): Likewise.
28166 (GRUB_AS_PRIO_LIST_P): Likewise.
28167 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
28168 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
28169 (grub_prio_list): New structure.
28170 (grub_prio_list_insert): New function.
28171 (grub_prio_list_remove): New inline function.
28173 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
28174 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
28175 (GRUB_COMMAND_FLAG_MENU): Likewise.
28176 (GRUB_COMMAND_FLAG_BOTH): Likewise.
28177 (GRUB_COMMAND_FLAG_TITLE): Likewise.
28178 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
28179 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
28180 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
28181 (grub_command): Likewise.
28182 (grub_register_command): Likewise.
28183 (grub_command_find): Likewise.
28184 (grub_iterate_commands): Likewise.
28185 (grub_command_init): Likewise.
28186 (grub_arg_parse): Likewise.
28187 (grub_arg_show_help): Likewise.
28189 * include/grub/rescue.h (grub_rescue_register_command): Removed.
28190 (grub_rescue_unregister_command): Likewise.
28192 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
28193 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
28194 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
28196 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
28197 grub_rescue_cmd_initrd.
28198 * include/grub/i386/loader.h: Likewise.
28199 * include/grub/x86_64/loader.h: Likewise.
28201 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
28203 2009-03-21 Bean <bean123ch@gmail.com>
28205 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
28206 instead of stat in mingw environment.
28208 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
28210 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
28212 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
28215 2009-03-21 Bean <bean123ch@gmail.com>
28217 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
28218 out of range error.
28220 2009-03-18 Michel Dänzer <michel@daenzer.net>
28222 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
28223 checking inode flags for EXT4_EXTENTS_FLAG.
28225 2009-03-18 Robert Millan <rmh@aybabtu.com>
28227 * loader/i386/linux.c: Include `<grub/video.h>' and
28228 `<grub/i386/pc/vbe.h>'..
28229 (grub_linux_setup_video): New function. Loosely based on the EFI one.
28230 (grub_linux32_boot): Attempt to configure video settings with
28231 grub_linux_setup_video().
28232 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
28233 to avoid grub_console_fini() which would step out of graphical mode
28236 2009-03-14 Robert Millan <rmh@aybabtu.com>
28238 Fix build on powerpc.
28239 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
28241 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
28243 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
28244 background image command.
28246 2009-03-12 Colin D Bennett <colin@gibibit.com>
28248 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
28249 (grub_gfxterm_putchar): Extract pairs of identical calls to
28250 draw_cursor out of conditional blocks.
28252 2009-03-11 Pavel Roskin <proski@gnu.org>
28254 * fs/hfs.c (grub_hfs_strncasecmp): New function.
28255 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
28257 2009-03-11 Robert Millan <rmh@aybabtu.com>
28259 * loader/i386/multiboot_elfxx.c
28260 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
28262 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
28264 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
28267 2009-03-11 Robert Millan <rmh@aybabtu.com>
28269 * loader/i386/multiboot.c (code_size): New variable.
28270 (grub_multiboot): Define offsets by adding to `code_size' rather
28271 than subtracting from `grub_multiboot_payload_size'. Provide
28272 4-byte alignment to MBI and others by increasing
28273 `boot_loader_name_length' appropriately.
28275 * loader/i386/multiboot_elfxx.c
28276 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
28278 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
28280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
28283 2009-03-08 Robert Millan <rmh@aybabtu.com>
28285 Make loader/i386/linux.c usable on i386-pc again.
28287 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
28289 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
28292 2009-03-07 Bean <bean123ch@gmail.com>
28294 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
28297 2009-03-06 Robert Millan <rmh@aybabtu.com>
28299 Fix display issue on terminals with screen size other than 80x25
28300 (e.g. gfxterm with resolution higher than 640x480).
28302 * normal/main.c (grub_normal_init_page): Display title text in a
28303 position relative to the center of the terminal instead of relying
28304 on a hardcoded offset.
28306 2009-03-04 Robert Millan <rmh@aybabtu.com>
28308 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
28311 * Makefile.in (host_kernel): New variable.
28312 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
28313 scripts instead of just the windows one.
28314 * configure.ac: Initialize and AC_SUBST `host_kernel'.
28316 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28318 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
28320 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28321 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28322 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28324 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28325 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28327 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28329 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
28330 or if there's no space for the disk label and print the partition number on a
28333 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28335 * util/misc.c: Include <time.h>.
28336 (grub_millisleep): New function.
28338 2009-03-04 Bean <bean123ch@gmail.com>
28340 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
28341 another option -mno-red-zone.
28343 * commands/handler.c: Change module description.
28345 * kern/handler.c: Add missing space at the end of description line.
28347 * kern/list.c: Likewise.
28349 2009-03-03 Robert Millan <rmh@aybabtu.com>
28351 Move more components to the relocation area, and fix mbi pointer
28352 handling to use the destination rather than the origin (thanks to
28353 Vladimir Serbinenko for spotting).
28355 * loader/i386/multiboot.c (mbi_dest): New variable.
28356 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
28357 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
28360 2009-03-01 Bean <bean123ch@gmail.com>
28362 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
28363 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
28364 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
28365 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
28367 * loader/i386/efi/linux.c (acpi_guid): New variable.
28368 (acpi_guid): Likewise.
28369 (EBDA_SEG_ADDR): New constant.
28370 (LOW_MEM_ADDR): Likewise.
28371 (FAKE_EBDA_SEG): Likewise.
28372 (fake_bios_data): New function.
28373 (grub_linux_boot): Call fake_bios_data.
28375 2009-03-01 Bean <bean123ch@gmail.com>
28377 * commands/terminal.c: Removed.
28379 * commands/handler.c: New file.
28381 * include/grub/list.h: Likewise.
28383 * include/grub/handler.h: Likewise.
28385 * kern/list.c: Likewise.
28387 * kern/handler.c: Likewise.
28389 * kern/term.h: Include header file <grub/handler.h>.
28390 (grub_term_input): Move next field to the beginning.
28391 (grub_term_output): Likewise.
28392 (grub_term_input_class): New variable.
28393 (grub_term_output_class): Likewise.
28394 (grub_term_register_input): Changed to inline function.
28395 (grub_term_register_output): Likewise.
28396 (grub_term_unregister_input): Likewise.
28397 (grub_term_unregister_output): Likewise.
28398 (grub_term_set_current_input): Likewise.
28399 (grub_term_set_current_output): Likewise.
28400 (grub_term_get_current_input): Likewise.
28401 (grub_term_get_current_output): Likewise.
28402 (grub_term_iterate_input): Removed.
28403 (grub_term_iterate_output): Likewise.
28405 * kern/term.c (grub_term_list_input): Removed.
28406 (grub_term_list_output): Likewise.
28407 (grub_term_input_class): New variable.
28408 (grub_term_output_class): Likewise.
28409 (grub_cur_term_input): Change variable as macro.
28410 (grub_cur_term_output): Likewise.
28411 (grub_term_register_input): Removed.
28412 (grub_term_register_output): Likewise.
28413 (grub_term_unregister_input): Likewise.
28414 (grub_term_unregister_output): Likewise.
28415 (grub_term_set_current_input): Likewise.
28416 (grub_term_set_current_output): Likewise.
28417 (grub_term_iterate_input): Likewise.
28418 (grub_term_iterate_output): Likewise.
28419 (grub_term_get_current_input): Likewise.
28420 (grub_term_get_current_output): Likewise.
28422 * util/grub-editenv.c: Include header file <grub/handler.h>.
28423 (grub_term_get_current_input): Removed.
28424 (grub_term_get_current_output): Likewise.
28425 (grub_term_input_class): New variable.
28426 (grub_term_output_class): Likewise.
28428 * util/grub-fstest.c (grub_term_get_current_input): Removed.
28429 (grub_term_get_current_output): Likewise.
28430 (grub_term_input_class): New variable.
28431 (grub_term_output_class): Likewise.
28433 * util/grub-probe.c (grub_term_get_current_input): Removed.
28434 (grub_term_get_current_output): Likewise.
28435 (grub_term_input_class): New variable.
28436 (grub_term_output_class): Likewise.
28438 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
28439 (grub_term_get_current_output): Likewise.
28440 (grub_term_input_class): New variable.
28441 (grub_term_output_class): Likewise.
28443 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
28444 (terminal_mod_SOURCES): Likewise.
28445 (terminal_mod_CFLAGS): Likewise.
28446 (terminal_mod_LDFLAGS): Likewise.
28448 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
28450 (kernel_img_SOURCES): Add list.c and handler.c.
28451 (kernel_img_HEADERS): Add list.h and handler.h.
28453 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
28455 (kernel_mod_SOURCES): Add list.c and handler.c.
28456 (kernel_mod_HEADERS): Add list.h and handler.h.
28458 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
28460 (kernel_elf_SOURCES): Add list.c and handler.c.
28461 (kernel_elf_HEADERS): Add list.h and handler.h.
28463 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
28465 (kernel_elf_SOURCES): Add list.c and handler.c.
28466 (kernel_elf_HEADERS): Add list.h and handler.h.
28468 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
28470 (kernel_mod_SOURCES): Add list.c and handler.c.
28471 (kernel_mod_HEADERS): Add list.h and handler.h.
28473 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
28475 (kernel_elf_SOURCES): Add list.c and handler.c.
28476 (kernel_elf_HEADERS): Add list.h and handler.h.
28478 2009-02-27 Robert Millan <rmh@aybabtu.com>
28480 Factorize elf32 / elf64 code in Multiboot loader. This will
28481 prevent it from getting out of sync again.
28483 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
28484 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
28485 grub_multiboot_load_elf64): Move from here ...
28486 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
28487 grub_multiboot_load_elf): ... to here (new file).
28489 2009-02-27 Robert Millan <rmh@aybabtu.com>
28491 * util/grub.d/10_linux.in: Rename "single-user mode" to
28494 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
28496 Don't leak in SCSI code.
28497 * disk/scsi.c (grub_scsi_close): free `scsi'.
28499 2009-02-27 Robert Millan <rmh@aybabtu.com>
28501 * loader/i386/pc/multiboot.c: Move from here ...
28502 * loader/i386/multiboot.c: ... to here. Update all users.
28504 2009-02-27 Robert Millan <rmh@aybabtu.com>
28506 Patch from Alexandre Bique <bique.alexandre@gmail.com>
28507 * util/i386/pc/grub-setup.c (setup): Fix directory path.
28509 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
28511 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
28514 2009-02-27 Robert Millan <rmh@aybabtu.com>
28516 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
28517 `0x' qualifier as 0 when base is specified as parameter).
28519 2009-02-24 Bean <bean123ch@gmail.com>
28521 * configure.ac: Check for -mcmodel=large in x86_64 target.
28523 * include/grub/efi/api.h (efi_call_10): New macro.
28524 (efi_wrap_10): New function.
28526 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
28527 (GRUB_PE32_REL_BASED_HIGH): Likewise.
28528 (GRUB_PE32_REL_BASED_LOW): Likewise.
28529 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
28530 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
28531 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
28532 (GRUB_PE32_REL_BASED_SECTION): Likewise.
28533 (GRUB_PE32_REL_BASED_REL): Likewise.
28534 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
28535 (GRUB_PE32_REL_BASED_DIR64): Likewise.
28536 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
28538 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
28541 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
28542 (efi_wrap_10): New function.
28544 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
28546 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
28547 MB/MBP model (NV chipset).
28548 (devdata_devs): Add devpath_5 to the list.
28550 * load/i386/efi/linux.c (video_base): Remove variable.
28551 (RGB_MASK): New macro.
28552 (RGB_MAGIC): Likewise.
28553 (LINE_MIN): Likewise.
28554 (LINE_MAX): Likewise.
28555 (FBTEST_STEP): Likewise.
28556 (FBTEST_COUNT): Likewise.
28557 (fb_list): New variable.
28558 (grub_find_video_card): Remove function.
28559 (find_framebuf): New function.
28560 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
28563 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
28564 problem for x86_64.
28566 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
28568 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
28570 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
28573 2009-02-22 Robert Millan <rmh@aybabtu.com>
28575 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
28576 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
28577 in our relocation, instead of using it directly from heap. Also
28578 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
28580 2009-02-21 Robert Millan <rmh@aybabtu.com>
28582 Implement USB keyboard support (based on patch by Marco Gerards)
28584 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
28585 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
28586 (usb_keyboard_mod_LDFLAGS): New variables.
28588 * term/usb_keyboard.c: New file.
28590 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28592 Corrected wrong declaration
28594 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
28596 2009-02-14 Christian Franke <franke@computer.org>
28598 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
28599 (grub_lspci_iter): Print class code and programming interface byte.
28601 2009-02-14 Christian Franke <franke@computer.org>
28603 * gendistlist.sh: Ignore `.svn' directories.
28605 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
28607 * fs/fat.c: Add 2009 to Copyright line.
28609 2009-02-14 Christian Franke <franke@computer.org>
28611 * commands/hdparm.c: New file. Provides `hdparm' command
28612 which sends ATA commands via grub_disk_ata_pass_through ().
28614 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
28616 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
28617 and <grub/cpu/io.h> to include/grub/ata.h.
28618 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
28619 (GRUB_CDROM_SECTOR_SIZE): Remove.
28620 (GRUB_ATA_*): Move to include/grub/ata.h.
28621 (GRUB_ATAPI_*): Likewise.
28622 (enum grub_ata_commands): Likewise.
28623 (enum grub_ata_timeout_milliseconds): Likewise.
28624 (struct grub_ata_device): Likewise.
28625 (grub_ata_regset): Likewise.
28626 (grub_ata_regget): Likewise.
28627 (grub_ata_regset2): Likewise.
28628 (grub_ata_regget2): Likewise.
28629 (grub_ata_check_ready): Likewise.
28630 (grub_ata_wait_not_busy): Remove static, exported in
28631 include/grub/ata.h.
28632 (grub_ata_wait_drq): Likewise.
28633 (grub_ata_pio_read): Likewise.
28635 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
28636 function for hdparm.mod.
28638 * include/grub/ata.h: New file, contains declarations from
28640 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
28642 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
28643 (grub_disk_ata_pass_through): New exported variable.
28645 * kern/disk.c (grub_disk_ata_pass_through): New variable.
28647 2009-02-13 Colin D Bennett <colin@gibibit.com>
28649 Support multiple fallback entries, and provide an API to support
28650 executing default+fallback menu entries. Renamed the `terminal' menu
28653 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
28654 variable declaration.
28655 (grub_menu_execute_callback): New structure declaration.
28656 (grub_menu_execute_callback_t): New typedef.
28657 (grub_menu_execute_with_fallback): New function declaration.
28658 (grub_menu_get_entry): Likewise.
28659 (grub_menu_get_timeout): Likewise.
28660 (grub_menu_set_timeout): Likewise.
28662 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
28664 * normal/menu.c (grub_wait_after_message): Moved to
28665 `normal/menu_text.c'.
28666 (draw_border): Likewise.
28667 (print_message): Likewise.
28668 (print_entry): Likewise.
28669 (print_entries): Likewise.
28670 (grub_menu_init_page): Likewise.
28671 (get_entry_number): Likewise.
28672 (print_timeout): Likewise.
28673 (run_menu): Likewise.
28674 (grub_menu_execute_entry): Likewise.
28675 (show_text_menu): Likewise.
28676 (get_and_remove_first_entry_number): New function.
28677 (grub_menu_execute_with_fallback): Likewise.
28678 (get_entry): Renamed to ...
28679 (grub_menu_get_entry): .. this and made it global.
28680 (get_timeout): Renamed to ...
28681 (grub_menu_get_timeout): ... this and made it global.
28682 (set_timeout): Renamed to ...
28683 (grub_menu_set_timeout): ... this and made it global.
28684 (grub_normal_terminal_menu_viewer): Renamed to ...
28685 (grub_normal_text_menu_viewer): ... this.
28687 * normal/menu_text.c: New file. Extracted text-menu-specific code
28688 from normal/menu.c.
28690 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
28691 (normal_mod_SOURCES): Likewise.
28693 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28694 (normal_mod_SOURCES): Likewise.
28696 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28697 (normal_mod_SOURCES): Likewise.
28699 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
28700 (normal_mod_SOURCES): Likewise.
28702 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28703 (normal_mod_SOURCES): Likewise.
28705 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28706 (normal_mod_SOURCES): Likewise.
28708 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28709 (normal_mod_SOURCES): Likewise.
28711 2009-02-11 Robert Millan <rmh@aybabtu.com>
28713 * util/grub.d/00_header.in: Update old reference to `font' command.
28715 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
28717 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
28719 Based on patch from Javier Martín.
28721 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28723 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
28724 to avoid false positives with FAT.
28725 (grub_fstest_SOURCES): Likewise.
28726 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28727 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28728 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28729 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28730 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28731 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28733 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28735 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
28736 bpb.version_specific.fat12_or_fat16.fstype and
28737 bpb.version_specific.fat32.fstype.
28739 2009-02-08 Robert Millan <rmh@aybabtu.com>
28741 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
28743 2009-02-08 Robert Millan <rmh@aybabtu.com>
28745 * Makefile.in (host_os, host_cpu): New variables.
28746 (target_os): Remove. Update all users.
28748 2009-02-08 Marco Gerards <marco@gnu.org>
28750 * Makefile.in (enable_grub_emu_usb): New variable.
28751 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
28752 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
28753 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
28754 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
28755 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
28756 `usbtest.mod' and `usbms.mod'.
28757 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
28758 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
28759 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
28760 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
28761 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
28764 * disk/usbms.c: New file.
28766 * include/grub/usb.h: Likewise.
28768 * include/grub/usbtrans.h: Likewise.
28770 * include/grub/usbdesc.h: Likewise.
28772 * bus/usb/usbtrans.c: Likewise.
28774 * bus/usb/ohci.c: Likewise.
28776 * bus/usb/uhci.c: Likewise.
28778 * bus/usb/usbhub.c: Likewise.
28780 * bus/usb/usb.c: Likewise.
28782 * commands/usbtest.c: Likewise.
28784 * util/usb.c: Likewise.
28786 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
28788 * configure.ac: Test for libusb presence.
28790 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
28792 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
28794 * kern/mm.c: Add more comments.
28796 2009-02-08 Robert Millan <rmh@aybabtu.com>
28798 Patch from Javier Martín.
28799 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
28800 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
28802 2009-02-08 Robert Millan <rmh@aybabtu.com>
28804 * fs/cpio.c: Split tar functionality to ...
28805 * fs/tar.c: ... here (new file). Update all users.
28807 2009-02-07 Robert Millan <rmh@aybabtu.com>
28809 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
28810 backward-incompatible features.
28812 Based on patch from Javier Martín, with some adjustments.
28814 2009-02-07 Michael Scherer <misc@mandriva.org>
28816 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
28818 2009-02-07 Robert Millan <rmh@aybabtu.com>
28820 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
28821 position of `disk/lvm.c' to ensure grub_init_all() always picks it
28822 after the RAID stuff.
28824 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
28826 Fixes problem when running vbetest command as reported by
28827 Vladimir Serbinenko <phcoder@gmail.com>.
28829 * (grub_vbe_set_video_mode): Fixed problem with text modes.
28831 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
28833 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
28834 /dev/md/NpN style mdraid devices.
28836 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28838 * util/unifont2pff.rb: Remove.
28840 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28842 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
28845 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28847 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
28848 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28849 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28850 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28851 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28852 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28853 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28855 2009-02-02 Christian Franke <franke@computer.org>
28857 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
28859 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
28861 * INSTALL: Note that we now require at least autoconf 2.59 and
28862 that LZO is optional.
28864 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28866 Base on patch on bug #24154 created by Tomas Tintera
28867 <trosos@seznam.cz>.
28869 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
28871 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28873 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
28874 <bero@arklinux.org>.
28876 * normal/parser.y (script_init): Add missing semicolon.
28878 2009-01-31 Colin D Bennett <colin@gibibit.com>
28880 * normal/main.c: Add include to grub/menu_viewer.h.
28881 (free_menu_entry_classes): Added.
28882 (grub_normal_menu_addentry): Added class property handling.
28883 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
28884 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
28886 * normal/menu_viewer.c: New file.
28888 * normal/menu.c (run_menu_entry): Renamed to ...
28889 (grub_menu_execute_entry): ... this and made it as global.
28890 (grub_menu_run): Renamed to ...
28891 (show_text_menu): ... this and made it local.
28892 (show_text_menu): Adapt to new function names.
28893 (grub_normal_terminal_menu_viewer): New global variable.
28895 * include/grub/menu.h: New file.
28897 * include/grub/menu_viewer.h: New file.
28899 * include/grub/normal.h: Added include to grub/menu.h.
28900 (grub_menu_entry): Moved to include/grub/menu.h.
28901 (grub_menu_entry_t): Likewise.
28902 (grub_menu): Likewise.
28903 (grub_menu_t): Likewise.
28904 (grub_normal_terminal_menu_viewer): Added.
28905 (grub_menu_execute_entry): Likewise.
28906 (grub_menu_run): Removed.
28908 * DISTLIST: Added include/grub/menu.h.
28909 Added include/grub/menu_viewer.h.
28910 Added normal/menu_viewer.c.
28912 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
28914 * normal/execute.c (grub_script_execute_menuentry): Changed to use
28915 arglist for menutitle arguments.
28917 * normal/main.c (grub_normal_menu_addentry): Likewise.
28919 * normal/parser.y (menuentry): Likewise.
28921 * normal/script.c (grub_script_create_cmdmenu): Likewise.
28923 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
28924 (grub_script_create_cmdmenu): Likewise.
28926 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
28928 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
28931 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
28933 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
28935 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
28937 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28939 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28941 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28943 2009-01-30 Christian Franke <franke@computer.org>
28945 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
28946 in option help text.
28948 2009-01-27 Pavel Roskin <proski@gnu.org>
28950 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
28952 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28954 * commands/lsmmap.c: Add include to grub/machine/memory.h.
28956 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
28958 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
28959 unregister function.
28961 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28963 * disk/scsi.c (grub_scsi_read): Fix sign problem.
28965 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
28967 * util/grub-mkfont.c (usage): Fix typo.
28969 * util/elf/grub-mkimage.c (load_modules): Fix warning.
28971 2009-01-26 Daniel Mierswa <impulze@impulze.org>
28973 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
28975 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
28977 * kern/misc.c (grub_strcasecmp): New function.
28978 (grub_strcasecmp): Use grub_size_t instead of int for length.
28980 * include/grub/misc.h: Update function prototypes.
28982 2009-01-26 Robert Millan <rmh@aybabtu.com>
28984 * configure.ac: Fix cross-compilation check.
28986 2009-01-22 Christian Franke <franke@computer.org>
28988 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
28989 (precision) digit string. Allow `.format2' without `format1' (width).
28990 Limit input chars for `%s' output to `format2' if specified. This is
28991 compatible with standard printf ().
28993 2009-01-22 Christian Franke <franke@computer.org>
28995 * disk/ata.c (grub_ata_wait_status): Replace by ...
28996 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
28997 other status bits may be invalid while BSY is asserted.
28998 (grub_ata_check_ready): New function.
28999 (grub_ata_cmd): Removed.
29000 (grub_ata_wait_drq): New function.
29001 (grub_ata_strncpy): Remove inline.
29002 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
29003 and error check now done by grub_ata_wait_drq ().
29004 (grub_ata_pio_write): Likewise.
29005 (grub_atapi_identify): Set DEV before check for !BSY. Use
29006 grub_ata_wait_drq () to wait for data.
29007 (grub_ata_device_initialize): Add status register check to
29008 detect missing SATA slave devices. Add debug messages.
29009 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
29010 (grub_atapi_packet): Set DEV before check for !BSY. Replace
29011 transfer loop by grub_ata_pio_write ().
29012 (grub_ata_identify): Set DEV before check for !BSY. Use
29013 grub_ata_wait_drq () to wait for data.
29014 (grub_ata_setaddress): Set DEV before check for !BSY.
29015 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
29016 read/write in one loop. Fix invalid command on write. Fix incomplete
29017 command on (size % batch) == 0. Add missing error check after write of
29018 last block. Add debug messages.
29019 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
29021 2009-01-19 Christian Franke <franke@computer.org>
29023 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
29024 (GRUB_ATAPI_IREASON_*): Likewise.
29025 (grub_ata_pio_write): Fix timeout error return.
29026 (grub_atapi_identify): Add grub_ata_wait () after cmd.
29027 (grub_atapi_wait_drq): New function.
29028 (grub_atapi_packet): New parameter `size'.
29029 Use grub_atapi_wait_drq () and direct write instead of
29030 grub_ata_pio_write ().
29031 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
29032 reads the number of bytes requested by the device for each DRQ
29034 (grub_atapi_write): Remove old implementation, return not
29035 implemented instead.
29037 2009-01-19 Christian Franke <franke@computer.org>
29039 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
29040 of 512 to calculate data size.
29041 (grub_scsi_read12): Likewise.
29042 (grub_scsi_write10): Likewise.
29043 (grub_scsi_write12): Likewise.
29044 (grub_scsi_read): Adjust size according to blocksize.
29045 Add checks for invalid blocksize and unaligned transfer.
29047 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
29049 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
29051 * term/gfxterm.c (write_char): Fix background rendering for wide
29054 2009-01-19 Robert Millan <rmh@aybabtu.com>
29056 * config.guess: Update to latest version from config git.
29057 * config.sub: Likewise.
29059 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
29061 * Makefile.in: Change font compilation to use new grub-mkfont instead
29064 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
29065 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
29066 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29067 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29068 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
29069 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
29070 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
29071 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
29072 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
29074 2009-01-16 Christian Franke <franke@computer.org>
29076 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
29077 (enum grub_ata_timeout_milliseconds): New enum.
29078 (grub_ata_wait_status): Add parameter milliseconds.
29079 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
29080 recovery from timed-out commands.
29081 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
29082 return grub_errno instead of REG_ERROR.
29083 (grub_ata_pio_write): Add parameter milliseconds.
29084 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
29085 Pass milliseconds to grub_ata_wait_status () and
29086 grub_ata_pio_read ().
29087 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
29088 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
29089 grub_ata_wait_status (). Fix IDENTIFY timeout check.
29090 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
29091 It is not suitable for device detection, because DEV bit is ignored,
29092 the command may run too long, and not all devices set the signature
29094 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
29095 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
29096 Fix device selection, DEV bit must be set first to address the registers
29097 of the correct device.
29098 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
29099 grub_ata_pio_read/write ().
29100 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
29101 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
29103 2009-01-13 Carles Pina i Estany <carles@pina.cat>
29105 * util/grub-editenv.c (main): Use fseeko(), not fseek().
29107 2009-01-13 Bean <bean123ch@gmail.com>
29109 * util/grub-mkfont.c (write_font): forget to remove some debug code.
29111 2009-01-13 Bean <bean123ch@gmail.com>
29113 * Makefile.in: (enable_grub_mkfont): New variable.
29114 (freetype_cflags): Likewise.
29115 (freetype_libs): Likewise.
29117 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
29118 (grub_mkfont_SOURCES): New variable.
29119 (grub_mkfont_CFLAGS): Likewise.
29120 (grub_mkfont_LDFLAGS): Likewise.
29122 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
29123 library if `--enable-grub-mkfont' is requested.
29124 (enable_grub_mkfont): New variable.
29125 (freetype_cflags): Likewise.
29126 (freetype_libs): Likewise.
29128 * util/grub-mkfont.c: New file.
29130 2009-01-12 Christian Franke <franke@computer.org>
29132 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
29133 mode check. Fix setting of compat_use[].
29135 2009-01-10 Robert Millan <rmh@aybabtu.com>
29137 Update a few copyright years which we forgot to do in 2008 (only for
29138 files whose changes made in 2008 were copyright-significant)
29140 * Makefile.in: Add 2008 to Copyright line.
29141 * disk/ieee1275/ofdisk.c: Likewise.
29142 * disk/efi/efidisk.c: Likewise.
29143 * kern/dl.c: Likewise.
29144 * kern/sparc64/ieee1275/init.c: Likewise.
29145 * kern/mm.c: Likewise.
29146 * kern/efi/mm.c: Likewise.
29147 * boot/i386/pc/boot.S: Likewise.
29148 * genfslist.sh: Likewise.
29149 * fs/iso9660.c: Likewise.
29150 * fs/hfs.c: Likewise.
29151 * fs/jfs.c: Likewise.
29152 * fs/minix.c: Likewise.
29153 * fs/ufs.c: Likewise.
29154 * gensymlist.sh.in: Likewise.
29155 * genkernsyms.sh.in: Likewise.
29156 * include/grub/misc.h: Likewise.
29157 * include/grub/types.h: Likewise.
29158 * include/grub/symbol.h: Likewise.
29159 * include/grub/elf.h: Likewise.
29160 * include/grub/kernel.h: Likewise.
29161 * include/grub/disk.h: Likewise.
29162 * include/grub/dl.h: Likewise.
29163 * include/grub/i386/linux.h: Likewise.
29164 * include/grub/i386/pc/biosdisk.h: Likewise.
29165 * include/grub/efi/api.h: Likewise.
29166 * include/grub/efi/pe32.h: Likewise.
29167 * include/grub/util/misc.h: Likewise.
29168 * normal/execute.c: Likewise.
29169 * normal/arg.c: Likewise.
29170 * normal/completion.c: Likewise.
29171 * normal/lexer.c: Likewise.
29172 * normal/parser.y: Likewise.
29173 * normal/misc.c: Likewise.
29174 * commands/i386/pc/vbeinfo.c: Likewise.
29175 * commands/hexdump.c: Likewise.
29176 * commands/terminal.c: Likewise.
29177 * commands/ls.c: Likewise.
29178 * commands/help.c: Likewise.
29179 * partmap/pc.c: Likewise.
29180 * loader/efi/chainloader.c: Likewise.
29181 * loader/multiboot_loader.c: Likewise.
29182 * loader/i386/pc/multiboot2.c: Likewise.
29183 * term/efi/console.c: Likewise.
29184 * term/i386/pc/serial.c: Likewise.
29185 * util/lvm.c: Likewise.
29186 * util/console.c: Likewise.
29187 * util/i386/efi/grub-mkimage.c: Likewise.
29188 * util/raid.c: Likewise.
29190 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
29192 * commands/videotest.c: Removed include to grub/machine/memory.h.
29194 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
29195 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
29196 (video_mod_SOURCES): Removed.
29197 (video_mod_CFLAGS): Likewise.
29198 (video_mod_LDFLAGS): Likewise.
29199 (gfxterm_mod_SOURCES): Likewise.
29200 (gfxterm_mod_CFLAGS): Likewise.
29201 (gfxterm_mod_LDFLAGS): Likewise.
29202 (videotest_mod_SOURCES): Likewise.
29203 (videotest_mod_CFLAGS): Likewise.
29204 (videotest_mod_LDFLAGS): Likewise.
29205 (bitmap_mod_SOURCES): Likewise.
29206 (bitmap_mod_CFLAGS): Likewise.
29207 (bitmap_mod_LDFLAGS): Likewise.
29208 (tga_mod_SOURCES): Likewise.
29209 (tga_mod_CFLAGS): Likewise.
29210 (tga_mod_LDFLAGS): Likewise.
29211 (jpeg_mod_SOURCES): Likewise.
29212 (jpeg_mod_CFLAGS): Likewise.
29213 (jpeg_mod_LDFLAGS): Likewise.
29214 (png_mod_SOURCES): Likewise.
29215 (png_mod_CFLAGS): Likewise.
29216 (png_mod_LDFLAGS): Likewise.
29218 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
29219 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
29220 (video_mod_SOURCES): Added.
29221 (video_mod_CFLAGS): Likewise.
29222 (video_mod_LDFLAGS): Likewise.
29223 (videotest_mod_SOURCES): Likewise.
29224 (videotest_mod_CFLAGS): Likewise.
29225 (videotest_mod_LDFLAGS): Likewise.
29226 (bitmap_mod_SOURCES): Likewise.
29227 (bitmap_mod_CFLAGS): Likewise.
29228 (bitmap_mod_LDFLAGS): Likewise.
29229 (tga_mod_SOURCES): Likewise.
29230 (tga_mod_CFLAGS): Likewise.
29231 (tga_mod_LDFLAGS): Likewise.
29232 (jpeg_mod_SOURCES): Likewise.
29233 (jpeg_mod_CFLAGS): Likewise.
29234 (jpeg_mod_LDFLAGS): Likewise.
29235 (png_mod_SOURCES): Likewise.
29236 (png_mod_CFLAGS): Likewise.
29237 (png_mod_LDFLAGS): Likewise.
29238 (gfxterm_mod_SOURCES): Likewise.
29239 (gfxterm_mod_CFLAGS): Likewise.
29240 (gfxterm_mod_LDFLAGS): Likewise.
29242 * term/gfxterm.c: Removed include to grub/machine/memory.h,
29243 grub/machine/console.h.
29245 2009-01-04 Jerone Young <jerone@gmail.com>
29247 Make on screen instructions clearer
29249 Based on patch created by Jidanni <jidanni@jidanni.org>
29251 * normal/menu.c: print clearer instructions on the screen
29253 2009-01-02 Colin D Bennett <colin@gibibit.com>
29257 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
29258 build system and fixed gfxterm.c to work with different sized fonts.
29260 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
29262 * configure: Re-generated.
29264 * DISTLIST: Removed font/manager.c.
29266 Added font/font_cmd.c.
29268 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
29271 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
29273 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
29275 * kern/term.c: Changed users of grub_utf8_to_ucs4.
29277 * normal/menu.c: Likewise.
29279 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
29280 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
29282 * include/grub/font.h: Replaced with new file.
29284 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
29285 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
29286 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
29287 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
29288 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
29289 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
29290 fg_red, fg_green, fg_blue, fg_alpha.
29291 (grub_video_adapter): Removed blit_glyph.
29292 (grub_video_blit_glyph): Removed.
29294 * font/manager.c: Removed file.
29296 * font/font.c: New file.
29298 * font/font_cmd.c: Likewise.
29300 * video/video.c (grub_video_blit_glyph): Removed.
29302 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
29303 (grub_video_vbe_map_rgba): Likewise.
29304 (grub_video_vbe_unmap_color_int): Likewise.
29305 (grub_video_vbe_blit_glyph): Removed.
29306 (grub_video_vbe_adapter): Removed blit_glyph.
29308 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
29309 (get_pixel): Likewise.
29310 (set_pixel): Likewise.
29312 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
29314 * term/gfxterm.c: Adapted to new font engine.
29316 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
29318 * term/i386/pc/vga.c: Likewise.
29320 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
29322 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
29324 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29326 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29328 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
29330 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
29332 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
29334 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
29336 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
29338 * util/grub.d/00_header.in: Changed to use new loadfont command.
29340 * util/grub-mkconfig_lib.in: Changed font extension.
29342 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
29344 * util/getroot.c (grub_util_get_grub_dev): Add support for
29345 /dev/md/dNNpNN style partitionable mdraid devices.
29347 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
29349 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
29350 at a time limit of the PXE TFTP API correctly.
29351 (grub_pxefs_close): Likewise.
29353 2008-11-29 Robert Millan <rmh@aybabtu.com>
29355 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
29356 grub_ata_device_initialize() calls.
29358 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
29360 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
29362 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
29364 2008-11-28 Robert Millan <rmh@aybabtu.com>
29366 Fix build on powerpc-ieee1275. Based on patch created by
29367 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
29368 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
29369 `kern/ieee1275/mmap.c'.
29370 * include/grub/powerpc/ieee1275/memory.h: New file.
29372 Provide grub-install on coreboot.
29373 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
29374 (grub_install_SOURCES): New variable.
29375 * util/i386/pc/grub-install.in: Add a few condition checks to make it
29376 usable on coreboot.
29378 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
29380 * util/grub-fstest.c (grub_term_get_current_input): Change return type
29381 to `grub_term_input_t'.
29382 (grub_term_get_current_output): Change return type to
29383 `grub_term_output_t'.
29385 2008-11-22 Robert Millan <rmh@aybabtu.com>
29387 Fix breakage on coreboot due to declaration mismatch.
29388 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
29389 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
29390 grub_vga_text_cls().
29392 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
29393 comments. Avoid copying one more byte than necessary (just in case).
29395 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
29396 to 0x200000 (avoids trouble with some OFW implementations, and matches
29397 with the one in Yaboot).
29398 Reported by Manoel Abranches
29400 2008-11-20 Robert Millan <rmh@aybabtu.com>
29402 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
29403 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
29405 * util/grub-mkconfig_lib.in (grub_warn): New function.
29406 (convert_system_path_to_grub_path): Use grub_warn() when issuing
29407 warnings, to obtain consistent formatting.
29408 * util/grub.d/00_header.in: Likewise.
29409 * util/update-grub_lib.in: Likewise.
29411 * loader/i386/linux.c (allocate_pages): Fix a warning.
29412 Move comment text to `#error' stanza.
29414 Harmonize ieee1275's grub_available_iterate() with the generic
29415 grub_machine_mmap_iterate() interface (fixes a recently-introduced
29416 build problem on i386-ieee1275):
29417 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
29418 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
29419 parameter `type'. Update all users of this function.
29420 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
29421 `kern/ieee1275/mmap.c'.
29422 * kern/ieee1275/init.c
29423 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
29425 (grub_machine_mmap_iterate): ... this.
29426 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
29427 return type to `grub_err_t'. Update all implementations of this
29428 function prototype.
29429 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
29432 Add `lsmmap' command (lists firmware-provided memory map):
29433 * commands/lsmmap.c: New file.
29434 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
29435 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
29437 * conf/powerpc-ieee1275.rmk: Likewise.
29438 * conf/i386-coreboot.rmk: Likewise.
29439 * conf/i386-ieee1275.rmk: Likewise.
29441 2008-11-19 Robert Millan <rmh@aybabtu.com>
29443 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
29444 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
29445 constraints to initrd allocation (based on code from
29446 loader/i386/pc/linux.c). Without them, initrd was allocated too high
29447 for Linux to find it.
29449 2008-11-14 Robert Millan <rmh@aybabtu.com>
29451 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
29452 order to cope with duplicate slashes.
29454 2008-11-14 Robert Millan <rmh@aybabtu.com>
29456 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
29457 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
29458 don't want to mess with lower memory, because it is used in the Linux
29461 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
29462 an appropriate place in lower memory, between 0x10000 and 0x90000,
29463 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
29464 is in our heap (probably as a result of it being corrupted during
29465 decompression). Add #error instance with comment to explain why this
29466 loader isn't currently usable on PC/BIOS.
29468 2008-11-14 Robert Millan <rmh@aybabtu.com>
29470 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
29471 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
29473 2008-11-12 Robert Millan <rmh@aybabtu.com>
29475 Make loader/i386/linux.c buildable on i386-pc (although disabled).
29477 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
29478 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
29480 * include/grub/i386/pc/memory.h: ... to here.
29482 2008-11-12 Robert Millan <rmh@aybabtu.com>
29484 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
29487 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
29488 (grub_console_cur_color, grub_console_real_putchar)
29489 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
29490 (grub_console_setcolorstate, grub_console_setcolor)
29491 (grub_console_getcolor): Move from here ...
29492 * include/grub/i386/vga_common.h: ... to here (new file).
29494 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
29495 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
29496 `<grub/i386/io.h>'.
29497 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
29498 `<grub/i386/vga_common.h>'.
29500 2008-11-12 Robert Millan <rmh@aybabtu.com>
29502 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
29503 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
29504 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
29506 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
29507 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
29509 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
29510 grub_console_init() with call to grub_vga_text_init().
29511 (grub_machine_fini): Replace call to
29512 grub_console_fini() with call to grub_vga_text_fini() and
29513 grub_at_keyboard_fini().
29515 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
29516 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
29517 (grub_console_setcolorstate, grub_console_setcolor)
29518 (grub_console_getcolor): New function prototypes.
29520 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
29521 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
29522 (grub_vga_text_setcursor): Static-ize.
29523 (grub_vga_text_term): New structure.
29524 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
29526 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
29527 (grub_console_cur_color, grub_console_standard_color)
29528 (grub_console_normal_color, grub_console_highlight_color)
29529 (map_char, grub_console_putchar, grub_console_getcharwidth)
29530 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
29531 (grub_console_getcolor): Move from here ...
29532 * term/i386/vga_common.c: ... to here (same function names).
29534 2008-11-12 Robert Millan <rmh@aybabtu.com>
29536 Use newly-added Multiboot support in coreboot.
29538 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
29539 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
29541 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
29542 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
29543 (codestart): Store the MBI in `startup_multiboot_info' when we're
29544 being loaded using Multiboot.
29546 * kern/i386/coreboot/init.c (grub_machine_init): Move
29547 grub_at_keyboard_init() call to beginning of function (useful for
29548 debugging). Call grub_machine_mmap_init() before attempting to use
29549 grub_machine_mmap_iterate().
29550 (grub_lower_mem, grub_upper_mem): Move from here ...
29551 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
29554 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
29555 function prototype.
29557 2008-11-12 Robert Millan <rmh@aybabtu.com>
29559 Fix a regression introduced by the at_keyboard.mod split. Because
29560 some terminals are default on some platforms and non-default on
29561 others, the first terminal being registered determines which is
29562 going to be default.
29564 * kern/term.c (grub_term_register_input): If this is the first
29565 terminal being registered, set it as the current one.
29566 (grub_term_register_output): Likewise.
29568 * term/efi/console.c (grub_console_init): Do not call
29569 grub_term_set_current_output() or grub_term_set_current_input().
29570 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
29571 * term/i386/pc/console.c (grub_console_init): Likewise.
29572 (grub_console_fini): Do not call grub_term_set_current_input()
29573 (but leave grub_term_set_current_output() to restore text mode).
29575 2008-11-10 Robert Millan <rmh@aybabtu.com>
29577 * util/grub.d/00_header.in: Add backward compatibility check for
29578 versions of terminal.mod that don't understand `terminal_input' or
29581 2008-11-09 Robert Millan <rmh@aybabtu.com>
29583 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
29584 `terminal_input' / `terminal_output', not `terminal'.
29586 2008-11-08 Robert Millan <rmh@aybabtu.com>
29588 * Makefile.in (include_DATA): Fix srcdir=. assumption.
29589 (DISTCLEANFILES): Add `build_env.mk'.
29591 2008-11-08 Robert Millan <rmh@aybabtu.com>
29593 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
29594 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29595 members. Update all users.
29596 * util/console.c (grub_ncurses_term): Split in ...
29597 (grub_ncurses_term_input): ... this, and ...
29598 (grub_ncurses_term_output): ... this. Update all users.
29599 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
29601 2008-11-08 Robert Millan <rmh@aybabtu.com>
29603 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
29604 (PKGDATA): Add $(pkgdata_SRCDIR).
29605 (pkglib_BUILDDIR): New variable.
29606 (pkgdata_SRCDIR): New variable.
29607 (build_env.mk): New target.
29608 (include_DATA): New variable.
29609 (install-local): Install $(include_DATA) files in $(includedir).
29611 2008-11-07 Pavel Roskin <proski@gnu.org>
29613 * gendistlist.sh: Use C locale for sorting to ensure consistent
29614 output on all systems.
29616 * util/grub.d/00_header.in: Remove incorrect space before
29619 2008-11-07 Robert Millan <rmh@aybabtu.com>
29621 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
29623 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
29624 * loader/multiboot_loader.c (find_multi_boot2_header): New function
29625 (based on find_multi_boot1_header).
29626 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
29627 using find_multi_boot2_header(), and abort if neither Multiboot or
29628 Multiboot headers were found.
29630 2008-11-07 Robert Millan <rmh@aybabtu.com>
29632 Modularize at_keyboard.mod:
29634 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
29635 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
29636 (at_keyboard_mod_LDFLAGS): New variables.
29638 Actual terminal split:
29640 * include/grub/term.h (struct grub_term): Split in ...
29641 (struct grub_term_input): ... this, and ...
29642 (struct grub_term_output): ... this. Update all users.
29643 (grub_term_set_current): Split in ...
29644 (grub_term_set_current_input): ... this, and ...
29645 (grub_term_set_current_output): ... this.
29646 (grub_term_get_current): Split in ...
29647 (grub_term_get_current_input): ... this, and ...
29648 (grub_term_get_current_output): ... this.
29649 (grub_term_register): Split in ...
29650 (grub_term_register_input): ... this, and ...
29651 (grub_term_register_output): ... this.
29652 (grub_term_unregister): Split in ...
29653 (grub_term_unregister_input): ... this, and ...
29654 (grub_term_unregister_output): ... this.
29655 (grub_term_iterate): Split in ...
29656 (grub_term_iterate_input): ... this, and ...
29657 (grub_term_iterate_output): ... this.
29659 * kern/term.c (grub_term_list): Split in ...
29660 (grub_term_list_input): ... this, and ...
29661 (grub_term_list_output): ... this. Update all users.
29662 (grub_cur_term): Split in ...
29663 (grub_cur_term_input): ... this, and ...
29664 (grub_cur_term_output): ... this. Update all users.
29665 (grub_term_set_current): Split in ...
29666 (grub_term_set_current_input): ... this, and ...
29667 (grub_term_set_current_output): ... this.
29668 (grub_term_get_current): Split in ...
29669 (grub_term_get_current_input): ... this, and ...
29670 (grub_term_get_current_output): ... this.
29671 (grub_term_register): Split in ...
29672 (grub_term_register_input): ... this, and ...
29673 (grub_term_register_output): ... this.
29674 (grub_term_unregister): Split in ...
29675 (grub_term_unregister_input): ... this, and ...
29676 (grub_term_unregister_output): ... this.
29677 (grub_term_iterate): Split in ...
29678 (grub_term_iterate_input): ... this, and ...
29679 (grub_term_iterate_output): ... this.
29681 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
29682 a check for input and one for output (and only attempt to get keys
29683 from user when input works).
29685 * util/grub-probe.c (grub_term_get_current): Split in ...
29686 (grub_term_get_current_input): ... this, and ...
29687 (grub_term_get_current_output): ... this.
29688 * util/grub-fstest.c: Likewise.
29689 * util/i386/pc/grub-setup.c: Likewise.
29690 * util/grub-editenv.c: Likewise.
29692 Portability adjustments:
29694 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
29695 `term/i386/pc/at_keyboard.c'.
29696 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
29697 grub_keyboard_controller_init() (now handled by terminal .init).
29698 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
29699 grub_at_keyboard_init().
29700 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
29701 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
29702 at_keyboard.mod via input terminal interface).
29703 * include/grub/i386/coreboot/console.h: Convert into a stub for
29704 `<grub/i386/pc/console.h>'.
29706 Migrate full terminals to new API:
29708 * term/efi/console.c (grub_console_term): Split into ...
29709 (grub_console_term_input): ... this, and ...
29710 (grub_console_term_output): ... this. Update all users.
29711 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
29712 (grub_ofconsole_init): Split into ...
29713 (grub_ofconsole_init_input): ... this, and ...
29714 (grub_ofconsole_init_output): ... this.
29715 (grub_ofconsole_term): Split into ...
29716 (grub_ofconsole_term_input): ... this, and ...
29717 (grub_ofconsole_term_output): ... this. Update all users.
29718 * term/i386/pc/serial.c (grub_serial_term): Split into ...
29719 (grub_serial_term_input): ... this, and ...
29720 (grub_serial_term_output): ... this. Update all users.
29721 * term/i386/pc/console.c (grub_console_term): Split into ...
29722 (grub_console_term_input): ... this, and ...
29723 (grub_console_term_output): ... this. Update all users.
29724 (grub_console_term_input): Only enable it on PC/BIOS platform.
29725 (grub_console_init): Remove grub_keyboard_controller_init() call.
29727 Migrate input terminals to new API:
29729 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
29730 `i386' and `i386/pc' to enable build on x86_64 (this driver is
29731 i386-specific anyway).
29732 (grub_console_checkkey): Rename to ...
29733 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
29735 (grub_keyboard_controller_orig): New variable.
29736 (grub_console_getkey): Rename to ...
29737 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
29739 (grub_keyboard_controller_init): Static-ize. Save original
29740 controller value so that it can be restored ...
29741 (grub_keyboard_controller_fini): ... here (new function).
29742 (grub_at_keyboard_term): New structure.
29743 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
29746 Migrate output terminals to new API:
29748 * term/i386/pc/vga.c (grub_vga_term): Change type to
29749 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29750 members. Update all users.
29751 * term/gfxterm.c (grub_video_term): Change type to
29752 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29753 members. Update all users.
29754 * include/grub/i386/pc/console.h (grub_console_checkkey)
29755 (grub_console_getkey): Do not export (no longer needed by gfxterm,
29758 Migrate `terminal' command and userland tools to new API:
29760 * commands/terminal.c (grub_cmd_terminal): Split into ...
29761 (grub_cmd_terminal_input): ... this, and ...
29762 (grub_cmd_terminal_output): ... this.
29763 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
29764 `terminal_input' and `terminal_output'.
29765 * util/grub.d/00_header.in: Adjust `terminal' calls to new
29766 `terminal_input' / `terminal_output' API.
29767 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
29768 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
29769 provided ${GRUB_TERMINAL}, convert it).
29771 2008-11-04 Robert Millan <rmh@aybabtu.com>
29773 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
29775 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
29777 2008-11-03 Bean <bean123ch@gmail.com>
29779 * kern/elf.c (grub_elf32_load): Revert to previous code.
29780 (grub_elf64_load): Likewise.
29782 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
29784 2008-11-01 Robert Millan <rmh@aybabtu.com>
29786 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
29787 (TARGET_CPPFLAGS): Likewise.
29788 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
29790 2008-11-01 Carles Pina i Estany <carles@pina.cat>
29792 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
29794 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29796 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
29797 addition of objects until the code is not going to be able to fail.
29799 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29801 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
29802 (add a missing NULL check, and correct them by moving the pointer
29803 operations after the actual check).
29805 2008-10-29 Robert Millan <rmh@aybabtu.com>
29807 * util/i386/pc/grub-install.in: Handle empty string as output from
29808 make_system_path_relative_to_its_root().
29810 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
29812 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
29813 circular metadata worst case scenario. If the metadata is circular
29814 then copy the wrap in place.
29815 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
29816 project lib/format_text/layout.h
29817 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
29819 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29821 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
29823 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29825 * util/update-grub_lib.in: Mention filename in warning message.
29827 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29829 * NEWS: Update for rename of update-grub to grub-mkconfig.
29831 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29833 * util/update-grub_lib.in: Copy to ...
29834 * util/grub-mkconfig_lib.in: ... this. Update all users.
29835 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
29836 * util/update-grub.in: Rename to ...
29837 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
29838 option. Add `--output' option to allow users to specify the generated
29839 configuration file. Default to stdout.
29840 (update_grub_dir): Rename to ...
29841 (grub_mkconfig_dir): ... this.
29842 (grub_cfg): Default to an empty string.
29843 * conf/common.rmk (update-grub): Rename to ...
29844 (grub-mkconfig): ... this.
29845 (update-grub_lib): Copy to ...
29846 (grub-mkconfig_lib): ... this.
29847 (update-grub_SCRIPTS): Copy to ...
29848 (grub-mkconfig_SCRIPTS): ... this. Update all users.
29849 (update-grub_DATA): Rename to ...
29850 (grub-mkconfig_DATA): ... this.
29852 2008-09-28 Robert Millan <rmh@aybabtu.com>
29854 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
29855 to `modified'. Add the real `created' field.
29856 (grub_iso9660_uuid): Use `modified' rather than `created' for
29857 constructing the UUID.
29859 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
29861 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
29862 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
29864 2008-09-28 Bean <bean123ch@gmail.com>
29866 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
29867 Thanks to Christian Franke for finding this bug.
29869 2008-09-25 Robert Millan <rmh@aybabtu.com>
29871 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
29872 instances of grub_util_get_disk_name() (see previous commit).
29874 2008-09-25 Robert Millan <rmh@aybabtu.com>
29876 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
29877 `util/i386/get_disk_name.c'.
29878 * conf/i386-efi.rmk: Likewise.
29879 * conf/x86_64-efi.rmk: Likewise.
29880 * conf/i386-coreboot.rmk: Likewise.
29881 * conf/i386-ieee1275.rmk: Likewise.
29882 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
29883 `util/ieee1275/get_disk_name.c'.
29884 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
29885 * util/ieee1275/get_disk_name.c: Remove file.
29886 * util/i386/get_disk_name.c: Remove file.
29887 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
29888 "hd%d" for device.map entries, rather than using
29889 grub_util_get_disk_name().
29891 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29893 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
29895 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
29897 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29899 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
29901 (GRUB_TERM_PPAGE): Changed to 0x4900.
29903 2008-09-24 Robert Millan <rmh@aybabtu.com>
29905 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
29906 macros (they were i386-pc specific).
29907 * include/grub/sparc64/ieee1275/console.h: Likewise.
29908 * include/grub/efi/console.h: Likewise.
29910 2008-09-22 Bean <bean123ch@gmail.com>
29912 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
29913 resident and in attribute list.
29915 * include/grub/ntfs.h (BMP_LEN): Removed.
29917 2008-09-22 Bean <bean123ch@gmail.com>
29919 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
29920 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
29922 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
29923 error occurs, as grub_disk_open will call grub_disk_close, which will
29924 call p->close (scsi).
29926 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29928 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
29929 (AC_PREREQ): Bumped to 2.59.
29930 (AC_TRY_COMPILE): Replace obsolete macro with ...
29931 (AC_COMPILE_IFELSE): ... this.
29932 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
29933 (AC_LINK_IFELSE): ... this.
29935 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29937 * autogen.sh: Add a call to `gendistlist.sh'.
29939 2008-09-19 Christian Franke <franke@computer.org>
29941 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
29942 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
29943 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
29944 Export __enable_execute_stack() to modules.
29945 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
29948 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29950 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
29953 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29955 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
29956 #include <grub/util/hostdisk.h>.
29958 2008-09-08 Robert Millan <rmh@aybabtu.com>
29960 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
29961 segments when their filesz is zero (grub_file_read() interprets
29962 zero-size as "read until EOF", which results in memory corruption).
29963 Use `lowest_segment' rather than 0 for calculating the current
29964 segment load address.
29966 2008-09-08 Robert Millan <rmh@aybabtu.com>
29968 * util/hostdisk.c (open_device): Replace a grub_util_info() call
29969 with grub_dprintf("hostdisk", ...), as it was so verbose that it
29970 clobbered useful information.
29972 2008-09-08 Robert Millan <rmh@aybabtu.com>
29974 * include/grub/util/biosdisk.h: Move to ...
29975 * include/grub/util/hostdisk.h: ... here. Update all users.
29976 * util/biosdisk.c: Move to ...
29977 * util/hostdisk.c: ... here. Update all users.
29979 2008-09-07 Robert Millan <rmh@aybabtu.com>
29981 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
29983 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
29984 and length can be stored directly in the `mbi->mmap_addr' and
29985 `mbi->mmap_length' struct fields.
29987 2008-09-07 Robert Millan <rmh@aybabtu.com>
29989 * conf/i386.rmk: New file. Provides declaration for building
29991 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
29992 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
29994 Include `conf/i386.mk'.
29995 * conf/i386-efi.rmk: Likewise.
29996 * conf/x86_64-efi.rmk: Likewise.
29997 * conf/i386-coreboot.rmk: Likewise.
29998 * conf/i386-ieee1275.rmk: Likewise.
30000 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
30002 Based on patch created by Colin D Bennett <colin@gibibit.com>.
30003 Adds optimization support for BGR based modes.
30005 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
30006 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
30007 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
30008 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
30009 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
30010 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
30011 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
30012 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
30013 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
30014 (grub_video_i386_vbeblit_index_index): Likewise.
30015 (grub_video_i386_vbeblit_replace_directN): Added.
30016 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
30017 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
30018 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
30019 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
30020 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
30021 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
30022 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
30023 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
30024 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
30025 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
30026 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
30027 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
30028 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
30030 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
30031 (grub_video_i386_vbefill_R8G8B8): Likewise.
30032 (grub_video_i386_vbefill_index): Likewise.
30033 (grub_video_i386_vbefill_direct32): Added.
30034 (grub_video_i386_vbefill_direct24): Likewise.
30035 (grub_video_i386_vbefill_direct16): Likewise.
30036 (grub_video_i386_vbefill_direct8): Likewise.
30038 * include/grub/video.h (grub_video_blit_format): Removed
30039 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
30040 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
30041 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
30042 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
30043 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
30045 * video/video.c (grub_video_get_blit_format): Updated to use new
30046 blit formats. Added handling for 16 bit color modes.
30048 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
30050 (common_blitter): Updated to use new blitters.
30052 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
30054 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
30055 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
30056 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
30057 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
30058 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
30059 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
30060 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
30061 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
30062 (grub_video_i386_vbeblit_index_index): Likewise.
30063 (grub_video_i386_vbeblit_replace_directN): Added.
30064 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
30065 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
30066 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
30067 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
30068 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
30069 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
30070 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
30071 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
30072 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
30073 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
30074 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
30075 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
30076 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
30078 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
30079 (grub_video_i386_vbefill_R8G8B8): Likewise.
30080 (grub_video_i386_vbefill_index): Likewise.
30081 (grub_video_i386_vbefill_direct32): Added.
30082 (grub_video_i386_vbefill_direct24): Likewise.
30083 (grub_video_i386_vbefill_direct16): Likewise.
30084 (grub_video_i386_vbefill_direct8): Likewise.
30086 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
30089 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
30092 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
30095 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
30098 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
30100 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
30103 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
30105 * fs/iso9660.c (grub_iso9660_date): New structure.
30106 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
30107 (grub_iso9660_uuid): New function.
30109 2008-09-05 Bean <bean123ch@gmail.com>
30111 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
30113 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
30114 insensitive bit for names in Win32 and Win32 & DOS namespace.
30116 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
30118 * include/grub/types.h (LONG_MAX): Likewise.
30120 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
30122 * util/getroot.c: Include <config.h>.
30123 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
30124 add support for /dev/md/N devices and handle LVM double dash escaping.
30126 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
30128 * config.guess: Update to latest version from config git.
30129 * config.sub: Likewise.
30131 2008-09-03 Robert Millan <rmh@aybabtu.com>
30133 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
30134 `disk->total_sectors'.
30136 2008-09-01 Colin D Bennett <colin@gibibit.com>
30138 * include/grub/normal.h: Fixed incorrect comment for
30139 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
30141 2008-09-01 Colin D Bennett <colin@gibibit.com>
30143 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
30144 values with defines.
30146 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
30147 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
30148 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
30149 (GRUB_VBE_MODEATTR_COLOR): Likewise.
30150 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
30151 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
30152 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
30153 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
30154 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
30155 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
30156 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
30157 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
30158 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
30159 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
30160 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
30161 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
30162 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
30163 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
30164 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
30166 2008-08-31 Robert Millan <rmh@aybabtu.com>
30168 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
30170 (grub_multiboot): Fix a few warnings.
30172 2008-08-31 Robert Millan <rmh@aybabtu.com>
30174 * loader/i386/pc/multiboot.c: Update comment not to say that
30175 boot_device support is unimplemented.
30177 2008-08-31 Robert Millan <rmh@aybabtu.com>
30179 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
30180 or memory map support are unimplemented.
30182 2008-08-31 Colin D Bennett <colin@gibibit.com>
30184 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
30186 2008-08-31 Colin D Bennett <colin@gibibit.com>
30188 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
30189 total video memory in 'vbeinfo' output; show color format details for
30192 2008-08-30 Pavel Roskin <proski@gnu.org>
30194 * util/genmoddep.c: Remove for real this time.
30195 * DISTLIST: Remove util/genmoddep.c.
30197 2008-08-30 Robert Millan <rmh@aybabtu.com>
30199 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
30200 as required by Multiboot spec (it was already 4-byte aligned, but
30203 2008-08-29 Pavel Roskin <proski@gnu.org>
30205 * kern/powerpc/ieee1275/crt0.S: Rename to ...
30206 * kern/powerpc/ieee1275/startup.S: ... this.
30207 * conf/powerpc-ieee1275.rmk: Adjust for the above.
30208 * DISTLIST: Likewise.
30210 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
30211 grub/cpu/kernel.h. Add start label for consistency with other
30212 platforms. Add grub_prefix immediately after start. Add jump
30213 to the code after grub_prefix.
30214 * include/grub/powerpc/kernel.h: Provide valid values for
30215 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
30217 2008-08-29 Bean <bean123ch@gmail.com>
30219 * configure.ac: Change host_os to cygwin for mingw.
30220 (asprintf): New check for function.
30222 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
30223 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
30225 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
30226 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
30227 sync, sleep and grub_util_get_disk_size for mingw.
30229 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
30230 to get size in mingw.
30231 (open_device): Use flag O_BINARY if it's defined.
30232 (find_root_device): Add dummy code for mingw.
30234 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
30235 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
30236 (get_scsi_disk_name): Return 0 for mingw.
30238 * util/hostfs.c: #include <grub/util/misc.h>.
30239 (grub_hostfs_open): Use "rb" flag to open file, use
30240 grub_util_get_disk_size to get disk size for mingw.
30242 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
30243 (asprintf): New function if HAVE_ASPRINTF is not set.
30244 (sync): New function for mingw.
30246 (grub_util_get_disk_size): Likewise.
30248 2008-08-28 Pavel Roskin <proski@gnu.org>
30250 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30253 2008-08-28 Robert Millan <rmh@aybabtu.com>
30255 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
30257 2008-08-28 Robert Millan <rmh@aybabtu.com>
30259 Change find_grub_drive() syntax so it doesn't prevent it from
30260 detecting NULL names as errors.
30262 * util/biosdisk.c (find_grub_drive): Move free slot search code
30264 (find_free_slot): ... to here.
30265 (read_device_map): Use find_free_slot() to search for free slots.
30267 2008-08-27 Marco Gerards <marco@gnu.org>
30269 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
30270 (scsi_mod_SOURCES): New variable.
30271 (scsi_mod_CFLAGS): Likewise
30272 (scsi_mod_LDFLAGS): Likewise.
30274 * disk/scsi.c: New file.
30276 * include/grub/scsi.h: Likewise.
30278 * include/grub/scsicmd.h: Likewise.
30280 * disk/ata.c: Include <grub/scsi.h>.
30281 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
30283 (grub_ata_iterate): Skip ATAPI devices.
30284 (grub_ata_open): Only handle ATAPI devices.
30285 (struct grub_atapi_read): Removed.
30286 (grub_atapi_readsector): Likewise.
30287 (grub_ata_read): No longer handle ATAPI devices.
30288 (grub_ata_write): Likewise.
30289 (grub_atapi_iterate): New function.
30290 (grub_atapi_read): Likewise.
30291 (grub_atapi_write): Likewise.
30292 (grub_atapi_open): Likewise.
30293 (grub_atapi_close): Likewise.
30294 (grub_atapi_dev): New variable.
30295 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
30296 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
30298 * include/grub/disk.h (enum grub_disk_dev_id): Add
30299 `GRUB_DISK_DEVICE_SCSI_ID'.
30301 2008-08-26 Robert Millan <rmh@aybabtu.com>
30303 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
30304 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
30307 2008-08-23 Bean <bean123ch@gmail.com>
30309 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
30310 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
30311 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
30312 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
30314 (raid5rec_mod_SOURCES): New macro.
30315 (raid5rec_mod_CFLAGS): Likewise.
30316 (raid5rec_mod_LDFLAGS): Likewise.
30317 (raid6rec_mod_SOURCES): Likewise.
30318 (raid6rec_mod_CFLAGS): Likewise.
30319 (raid6rec_mod_LDFLAGS): Likewise.
30320 (mdraid_mod_SOURCES): Likewise.
30321 (mdraid_mod_CFLAGS): Likewise.
30322 (mdraid_mod_LDFLAGS): Likewise.
30323 (dm_nv_mod_SOURCES): Likewise.
30324 (dm_nv_mod_CFLAGS): Likewise.
30325 (dm_nv_mod_LDFLAGS): Likewise.
30327 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
30328 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
30329 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
30331 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
30332 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
30334 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30336 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30338 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30340 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30342 * disk/raid5_recover.c: New file.
30344 * disk/raid6_recover.c: Likewise.
30346 * disk/mdraid_linux.c: Likewise.
30348 * disk/dmraid_nvidia.c: Likewise.
30350 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
30353 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
30354 calculate the size of raid device.
30355 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
30356 different layout of raid5.
30357 (grub_raid_scan_device): Remove code specific to mdraid.
30358 (grub_raid_list): New variable.
30359 (free_array): New function.
30360 (grub_raid_register): Likewise.
30361 (grub_raid_unregister): Likewise.
30362 (grub_raid_rescan): Likewise.
30363 (GRUB_MOD_INIT): Don't iterate device here.
30364 (GRUB_MOD_FINI): Use free_array to release resource.
30366 * include/grub/raid.h: Remove macro and structure specific to mdraid.
30367 (grub_raid5_recover_func_t): New function variable type.
30368 (grub_raid6_recover_func_t): Likewise.
30369 (grub_raid5_recover_func): New variable.
30370 (grub_raid6_recover_func): Likewise.
30371 (grub_raid_register): New function.
30372 (grub_raid_unregister): Likewise.
30373 (grub_raid_rescan): Likewise.
30374 (grub_raid_block_xor): Likewise.
30376 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
30377 (CMD_CRC): New macro.
30379 (read_file): Handle device as well as file.
30380 (cmd_crc): New function.
30381 (fstest): Handle multiple disks.
30382 (options): Remove part, raw and long, add root and diskcount.
30383 (usage): Add crc, remove -p, -r, -l, add -r and -c.
30384 (main): Find the first non option entry and ignore subsequent options,
30385 add handling for the new options, support multiple disks.
30387 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
30389 2008-08-23 Bean <bean123ch@gmail.com>
30391 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
30393 * genfslist.sh: Ignore kernel.mod.
30395 * genpartmaplist.sh: Likewise.
30397 2008-08-23 Robert Millan <rmh@aybabtu.com>
30399 * util/getroot.c (find_root_device): Skip anything that starts with
30400 a dot, not just directories. This avoids things like /dev/.tmp.md0.
30402 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
30404 * util/update-grub.in (GRUB_GFXMODE): Export variable.
30405 * util/grub.d/00_header.in: Allow the administrator to change default
30406 gfxmode via ${GRUB_GFXMODE}.
30408 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
30410 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
30412 2008-08-21 Robert Millan <rmh@aybabtu.com>
30414 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
30416 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
30417 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
30419 2008-08-20 Carles Pina i Estany <carles@pina.cat>
30421 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
30422 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
30424 2008-08-19 Robert Millan <rmh@aybabtu.com>
30426 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
30427 (struct grub_virtual_screen): Remove `cursor_color'.
30428 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
30430 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
30432 2008-08-18 Robert Millan <rmh@aybabtu.com>
30434 Unify (identical) linux_normal.c files.
30435 * loader/i386/efi/linux_normal.c: Move from here ...
30436 * loader/linux_normal.c: ... to here. Update all users.
30437 * loader/i386/pc/linux_normal.c: Delete. Update all users.
30438 * loader/i386/ieee1275/linux_normal.c: Likewise.
30440 2008-08-18 Robert Millan <rmh@aybabtu.com>
30442 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
30443 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
30444 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
30445 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
30446 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
30448 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
30449 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
30450 (GRUB_LINUX_CL_END_OFFSET): ... to here.
30451 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
30452 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
30453 (GRUB_EFI_CL_END_OFFSET): Rename to ...
30454 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
30455 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
30456 Initialize `params->video_cursor_x' and `params->video_cursor_y'
30457 portably using grub_getxy().
30458 Replace `-EFI' with `-bzImage' in boot message.
30460 2008-08-17 Robert Millan <rmh@aybabtu.com>
30462 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
30464 2008-08-17 Robert Millan <rmh@aybabtu.com>
30466 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
30468 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
30469 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
30470 (grub_machine_mmap_iterate): New function declaration.
30471 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
30473 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
30476 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
30477 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
30478 Move e820 parsing from here ...
30479 * kern/i386/pc/mmap.c: New file.
30480 (grub_machine_mmap_iterate): ... to here.
30482 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
30483 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
30484 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
30485 (grub_available_iterate): Redeclare to return `void', and redeclare
30486 its hook to use grub_uint64_t as addr and size parameters, and rename
30488 (grub_machine_mmap_iterate): ... this. Update all users.
30490 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
30491 to make it more readable. Rename to ...
30492 (grub_machine_mmap_iterate): ... this.
30494 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
30495 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
30496 (grub_multiboot): Allocate an extra region after the payload, and fill
30497 it with a Multiboot memory map. Adjust a.out loader to calculate size
30498 with the extra space.
30499 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
30500 with the extra space.
30502 2008-08-17 Carles Pina i Estany <carles@pina.cat>
30504 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
30506 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
30508 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
30509 mdate-sh to the list `find' searches for.
30510 * DISTLIST: Regenerated.
30512 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
30514 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
30515 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
30516 genmoddep.awk, gensymlist.sh.in.
30517 (DISTDIRS): Add bus, docs, hook, lib.
30518 * DISTLIST: Regenerated.
30519 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
30521 2008-08-16 Robert Millan <rmh@aybabtu.com>
30523 * disk/raid.c (grub_raid_init): Handle/report errors set by
30524 grub_device_iterate().
30525 * disk/lvm.c (grub_lvm_init): Likewise.
30527 2008-08-15 Bean <bean123ch@gmail.com>
30529 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30531 (datetime_mod_SOURCES): New macro.
30532 (datetime_mod_CFLAGS): Likewise.
30533 (datetime_mod_LDFLAGS): Likewise.
30534 (date_mod_SOURCES): Likewise.
30535 (date_mod_CFLAGS): Likewise.
30536 (date_mod_LDFLAGS): Likewise.
30537 (datehook_mod_SOURCES): Likewise.
30538 (datehook_mod_CFLAGS): Likewise.
30539 (datehook_mod_LDFLAGS): Likewise.
30541 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30543 (datetime_mod_SOURCES): New macro.
30544 (datetime_mod_CFLAGS): Likewise.
30545 (datetime_mod_LDFLAGS): Likewise.
30546 (date_mod_SOURCES): Likewise.
30547 (date_mod_CFLAGS): Likewise.
30548 (date_mod_LDFLAGS): Likewise.
30549 (datehook_mod_SOURCES): Likewise.
30550 (datehook_mod_CFLAGS): Likewise.
30551 (datehook_mod_LDFLAGS): Likewise.
30553 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30555 (datetime_mod_SOURCES): New macro.
30556 (datetime_mod_CFLAGS): Likewise.
30557 (datetime_mod_LDFLAGS): Likewise.
30558 (date_mod_SOURCES): Likewise.
30559 (date_mod_CFLAGS): Likewise.
30560 (date_mod_LDFLAGS): Likewise.
30561 (datehook_mod_SOURCES): Likewise.
30562 (datehook_mod_CFLAGS): Likewise.
30563 (datehook_mod_LDFLAGS): Likewise.
30565 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30567 (datetime_mod_SOURCES): New macro.
30568 (datetime_mod_CFLAGS): Likewise.
30569 (datetime_mod_LDFLAGS): Likewise.
30570 (date_mod_SOURCES): Likewise.
30571 (date_mod_CFLAGS): Likewise.
30572 (date_mod_LDFLAGS): Likewise.
30573 (datehook_mod_SOURCES): Likewise.
30574 (datehook_mod_CFLAGS): Likewise.
30575 (datehook_mod_LDFLAGS): Likewise.
30577 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30579 (datetime_mod_SOURCES): New macro.
30580 (datetime_mod_CFLAGS): Likewise.
30581 (datetime_mod_LDFLAGS): Likewise.
30582 (date_mod_SOURCES): Likewise.
30583 (date_mod_CFLAGS): Likewise.
30584 (date_mod_LDFLAGS): Likewise.
30585 (datehook_mod_SOURCES): Likewise.
30586 (datehook_mod_CFLAGS): Likewise.
30587 (datehook_mod_LDFLAGS): Likewise.
30589 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
30591 * commands/date.c: New file.
30593 * hook/datehook.c: Likewise.
30595 * include/grub/lib/datetime.h: Likewise.
30597 * include/grub/i386/cmos.h: Likewise.
30599 * lib/datetime.c: Likewise.
30601 * lib/i386/datetime.c: Likewise.
30603 * lib/efi/datetime.c: Likewise.
30605 2008-08-14 Robert Millan <rmh@aybabtu.com>
30607 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
30608 (grub_mkelfimage_SOURCES): New variable.
30609 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
30611 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
30612 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
30613 * conf/powerpc-ieee1275.rmk: Likewise.
30614 * conf/i386-ieee1275.rmk: Likewise.
30616 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
30617 * kern/i386/coreboot/init.c: Likewise.
30619 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
30620 with `<grub/cpu/kernel.h>'.
30621 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
30623 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
30624 * kern/i386/coreboot/startup.S: Likewise.
30626 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
30627 (GRUB_MOD_GAP): Remove.
30628 * include/grub/powerpc/kernel.h: New file.
30629 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
30630 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30631 * include/grub/i386/kernel.h: New file.
30632 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
30633 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
30634 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30636 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
30638 Use --directory when invoking grub_mkimage.
30640 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
30641 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
30642 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
30643 and GRUB_KERNEL_CPU_PREFIX.
30645 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
30647 * include/grub/err.h (grub_err_printf): New function prototype.
30648 * util/misc.c (grub_err_printf): New function.
30649 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
30651 * kern/err.c (grub_print_error): Use grub_err_printf.
30653 2008-08-13 Robert Millan <rmh@aybabtu.com>
30655 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
30657 2008-08-13 Robert Millan <rmh@aybabtu.com>
30659 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
30662 2008-08-12 Robert Millan <rmh@aybabtu.com>
30664 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
30665 of the relocation code from here ...
30666 (grub_multiboot): ... to here.
30667 (forward_relocator, backward_relocator): Move from here ...
30668 * kern/i386/loader.S (grub_multiboot_forward_relocator)
30669 (grub_multiboot_backward_relocator): ... to here.
30670 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
30671 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
30672 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
30673 (grub_multiboot_forward_relocator_end)
30674 (grub_multiboot_backward_relocator)
30675 (grub_multiboot_backward_relocator_end): New variables.
30677 2008-08-12 Bean <bean123ch@gmail.com>
30679 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
30681 2008-08-11 Robert Millan <rmh@aybabtu.com>
30683 * kern/i386/linuxbios/startup.S: Move from here ...
30684 * kern/i386/coreboot/startup.S: ... to here.
30686 * kern/i386/linuxbios/init.c: Move from here ...
30687 * kern/i386/coreboot/init.c: ... to here.
30689 * kern/i386/linuxbios/table.c: Move from here ...
30690 * kern/i386/coreboot/mmap.c: ... to here.
30692 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
30694 2008-08-11 Robert Millan <rmh@aybabtu.com>
30696 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
30697 errors. Leave it to the upper layer to handle them.
30699 2008-08-09 Christian Franke <franke@computer.org>
30701 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
30702 * conf/common.rmk: Install `grub-pe2elf' only if requested.
30703 Install `grub.d/10_windows' only on Cygwin.
30704 * configure.ac: Add subst of `target_os'.
30705 Check `target_os' also before setting TARGET_OBJ2ELF.
30706 Add `--enable-grub-pe2elf'.
30708 2008-08-08 Robert Millan <rmh@aybabtu.com>
30710 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30711 (grub_last_time): Change type to grub_uint64_t.
30712 (grub_disk_open): Migrate code from to using grub_get_time_ms().
30713 (grub_disk_close): Likewise.
30715 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30716 (run_menu): Migrate code from to using grub_get_time_ms().
30718 * util/misc.c (grub_get_time_ms): New function.
30720 2008-08-08 Marco Gerards <marco@gnu.org>
30722 * disk/ata.c (grub_ata_regget): Change return type to
30724 (grub_ata_regget2): Likewise.
30725 (grub_ata_wait_status): New function.
30726 (grub_ata_wait_busy): Removed function, updated all users to use
30727 `grub_ata_wait_status'.
30728 (grub_ata_wait_drq): Likewise.
30729 (grub_ata_cmd): New function.
30730 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
30732 (grub_ata_pio_write): Add error handling.
30733 (grub_atapi_identify): Likewise.
30734 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
30736 (grub_ata_identify): Use `grub_ata_cmd' and improve error
30737 handling. Actually use the detected registers. Reorder the
30738 detection logic such that it is easier to read.
30739 (grub_ata_pciinit): Do not assign the same ID to each controller.
30740 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
30742 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
30744 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
30746 2008-08-08 Marco Gerards <marco@gnu.org>
30750 2008-08-07 Bean <bean123ch@gmail.com>
30752 * include/grub/x86_64/pci.h: New file.
30754 2008-08-07 Christian Franke <franke@computer.org>
30756 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
30757 (TIMER2_GATE): Likewise.
30758 (grub_pit_wait): Add enable/disable of the timer2 gate
30759 bit of port 0x61. This fixes a possible infinite loop.
30761 2008-08-07 Bean <bean123ch@gmail.com>
30763 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
30764 kern/i386/tsc.c and kern/i386/pit.c.
30766 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
30769 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
30772 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
30774 2008-08-07 Bean <bean123ch@gmail.com>
30776 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
30778 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
30780 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
30781 multiple inclusion. Add #include <grub/types.h>.
30783 2008-08-06 Christian Franke <franke@computer.org>
30785 * conf/common.rmk: Build and install `10_windows'.
30786 * util/grub.d/10_windows.in: New script.
30788 2008-08-06 Pavel Roskin <proski@gnu.org>
30790 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
30792 2008-08-06 Robert Millan <rmh@aybabtu.com>
30794 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
30795 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
30797 2008-08-06 Bean <bean123ch@gmail.com>
30799 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
30800 (grub_pxefs_fs_int): Remove dummy definition.
30801 (grub_pxefs_open): Use data->block_size to store the current block
30803 (grub_pxefs_read): Use block size stored in data->block_size. As the
30804 value of grub_pxe_blksize can be changed after the file is opened.
30806 2008-08-06 Bean <bean123ch@gmail.com>
30808 * fs/i386/pc/pxe.c (curr_file): new variable.
30809 (grub_pxefs_open): Simply the handling of pxe file system. Don't
30810 require the dummy internal file system anymore.
30811 (grub_pxefs_read): Removed.
30812 (grub_pxefs_close): Likewise.
30813 (grub_pxefs_fs_int): Likewise.
30814 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
30815 connection when we switch file.
30816 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
30818 2008-08-06 Robert Millan <rmh@aybabtu.com>
30820 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
30822 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
30823 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
30825 * kern/i386/halt.c: New file.
30826 * kern/i386/reboot.c: Likewise.
30827 * include/grub/i386/reboot.h: Likewise.
30828 * include/grub/i386/halt.h: Likewise.
30830 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
30831 Include `<grub/cpu/halt.h>'.
30832 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
30833 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
30835 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
30836 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
30837 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
30838 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
30839 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
30840 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
30842 * include/grub/i386/at_keyboard.h: ... to here.
30844 2008-08-05 Robert Millan <rmh@aybabtu.com>
30846 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
30847 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
30848 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
30849 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30850 `kern/generic/millisleep.c'.
30852 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
30853 instead of grub_get_rtc().
30854 (grub_tsc_init): Initialize `tsc_boot_time'.
30856 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
30857 (grub_machine_init): Use grub_tsc_init() rather than
30858 installing an RTC-based handler via grub_install_get_time_ms().
30860 * kern/i386/pit.c: New file.
30861 * include/grub/i386/pit.h: Likewise.
30863 2008-08-05 Bean <bean123ch@gmail.com>
30865 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
30867 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
30868 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
30869 (pxe_mod_SOURCES): New macro.
30870 (pxe_mod_CFLAGS): Likewise.
30871 (pxe_mod_LDFLAGS): Likewise.
30872 (pxecmd_mod_SOURCES): Likewise.
30873 (pxecmd_mod_CFLAGS): Likewise.
30874 (pxecmd_mod_LDFLAGS): Likewise.
30876 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
30877 (grub_pxe_call): Likewise.
30879 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
30881 * commands/i386/pc/pxecmd.c: New file.
30883 * fs/i386/pc/pxe.c: Likewise.
30885 * include/grub/i386/pc/pxe.h: Likewise.
30887 2008-08-05 Bean <bean123ch@gmail.com>
30889 * util/console.c (grub_console_cur_color): New variable.
30890 (grub_console_standard_color): Likewise.
30891 (grub_console_normal_color): Likewise.
30892 (grub_console_highlight_color): Likewise.
30893 (color_map): Likewise.
30894 (use_color): Likewise.
30895 (NUM_COLORS): New macro.
30896 (grub_ncurses_setcolorstate): Handle color properly.
30897 (grub_ncurses_setcolor): Don't change color here, just remember the
30898 settings, color will be set in grub_ncurses_setcolorstate.
30899 (grub_ncurses_getcolor): New function.
30900 (grub_ncurses_init): Initialize color pairs.
30901 (grub_ncurses_term): New member grub_ncurses_getcolor.
30903 2008-08-05 Colin D Bennett <colin@gibibit.com>
30905 High resolution timer support. Implemented for x86 CPUs using TSC.
30906 Extracted generic grub_millisleep() so it's linked in only as needed.
30907 This requires a Pentium compatible CPU; if the RDTSC instruction is
30908 not supported, then it falls back on the generic grub_get_time_ms()
30909 implementation that uses the machine's RTC.
30911 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
30912 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30913 `kern/generic/millisleep.c'.
30915 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
30916 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
30918 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
30919 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
30921 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30923 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30924 `kern/generic/millisleep.c'.
30926 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30928 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
30930 * kern/generic/rtc_get_time_ms.c: New file.
30932 * kern/generic/millisleep.c: New file.
30934 * kern/misc.c: Don't include
30935 <kern/time.h> anymore.
30936 (grub_millisleep_generic): Removed.
30938 * commands/sleep.c (grub_interruptible_millisleep): Uses
30939 grub_get_time_ms() instead of grub_get_rtc().
30941 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
30943 (grub_cpu_is_cpuid_supported): New inline function.
30944 (grub_cpu_is_tsc_supported): New inline function.
30945 (grub_tsc_init): New function prototype.
30946 (grub_tsc_get_time_ms): New function prototype.
30948 * kern/i386/tsc.c (grub_get_time_ms): New file.
30950 * include/grub/time.h: Include <grub/types.h.
30951 (grub_millisleep_generic): Removed.
30952 (grub_get_time_ms): New prototype.
30953 (grub_install_get_time_ms): New prototype.
30954 (grub_rtc_get_time_ms): New prototype.
30956 * kern/time.c (grub_get_time_ms): New function.
30957 (grub_install_get_time_ms): New function.
30959 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
30960 <grub/time.h> anymore.
30961 (grub_millisleep): Removed.
30962 (grub_machine_init): Call grub_tsc_init.
30964 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
30965 get_time_ms() implementation.
30967 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
30968 (ieee1275_get_time_ms): New function.
30969 (grub_machine_init): Install get_time_ms() implementation.
30971 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
30972 (grub_machine_init): Call grub_tsc_init().
30973 (grub_millisleep): Removed.
30975 * kern/ieee1275/init.c (grub_millisleep): Removed.
30976 (grub_machine_init): Install ieee1275_get_time_ms()
30978 (ieee1275_get_time_ms): New function.
30979 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
30982 2008-08-05 Marco Gerards <marco@gnu.org>
30984 * disk/ata.c: Include <grub/pci.h>.
30985 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
30986 (grub_ata_initialize): Rewritten.
30987 (grub_ata_device_initialize): New function.
30989 2008-08-04 Pavel Roskin <proski@gnu.org>
30991 * kern/main.c: Include grub/mm.h.
30993 2008-08-04 Robert Millan <rmh@aybabtu.com>
30995 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
30996 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
30997 corruption problem).
30999 2008-08-04 Robert Millan <rmh@aybabtu.com>
31001 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
31002 warnings introduced in my last commit.
31004 2008-08-03 Robert Millan <rmh@aybabtu.com>
31006 Make PCI available on all i386 architectures.
31008 * include/grub/i386/pc/pci.h: Move from here ...
31009 * include/grub/i386/pci.h: ... to here.
31011 * include/grub/i386/pc/pci.h: Remove.
31012 * include/grub/i386/efi/pci.h: Remove.
31013 * include/grub/x86_64/efi/pci.h: Remove.
31015 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
31016 `<grub/cpu/pci.h>'.
31018 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
31019 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
31020 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
31022 * conf/i386-ieee1275.rmk: Likewise.
31024 2008-08-03 Robert Millan <rmh@aybabtu.com>
31026 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
31027 (grub_console_setcursor): Make it possible to set cursor off.
31029 2008-08-03 Robert Millan <rmh@aybabtu.com>
31031 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
31032 of modules instead of assuming which platform provides what.
31033 * util/update-grub.in: Likewise.
31035 2008-08-03 Robert Millan <rmh@aybabtu.com>
31037 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
31038 instead of `grub_install_dos_part' to determine whether a drive needs
31039 to be prepended to prefix (`grub_install_dos_part' is not reliable,
31040 because it can be overridden when loading GRUB via Multiboot).
31042 2008-08-02 Robert Millan <rmh@aybabtu.com>
31044 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
31046 2008-08-02 Robert Millan <rmh@aybabtu.com>
31048 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
31049 of informational grub_dprintf() calls.
31051 2008-08-02 Robert Millan <rmh@aybabtu.com>
31053 * disk/memdisk.c (memdisk_size): Don't initialize.
31054 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
31056 * include/grub/i386/pc/kernel.h
31057 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
31058 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
31059 (grub_memdisk_image_size, grub_arch_memdisk_addr)
31060 (grub_arch_memdisk_size): Remove.
31062 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
31063 field (was only used to transfer a constant). Add `type' field to
31064 support multiple module types.
31065 (grub_module_iterate): New function.
31067 * kern/device.c (grub_device_open): Do not hide error messages
31068 when grub_disk_open() fails. Use grub_print_error() instead.
31070 * kern/i386/pc/init.c (grub_arch_modules_addr)
31071 (grub_arch_memdisk_size): Remove functions.
31072 (grub_arch_modules_addr): Return the module address in high memory
31073 (now that it isn't copied anymore).
31075 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
31076 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
31077 decompression routine (grub_total_module_size already includes that
31078 now). Don't copy modules back to low memory.
31080 * kern/main.c: Include `<grub/mm.h>'.
31081 (grub_load_modules): Split out (and use) ...
31082 (grub_module_iterate): ... this function, which iterates through
31083 module objects and runs a hook.
31084 Comment out grub_mm_init_region() call, as it would cause non-ELF
31085 modules to be overwritten.
31087 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
31088 the memdisk image in its own region, make it part of the module list.
31089 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
31090 (main): Parse --memdisk|-m option, and pass user-provided path as
31091 parameter to generate_image().
31092 (add_segments): Pass `memdisk_path' down to load_modules().
31093 (load_modules): Embed memdisk image in module section when requested.
31094 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
31095 `header.type' instead of `header.offset'.
31097 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
31098 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
31099 (memdisk_mod_LDFLAGS): New variables.
31100 * conf/i386-coreboot.rmk: Likewise.
31101 * conf/i386-ieee1275.rmk: Likewise.
31103 2008-08-02 Robert Millan <rmh@aybabtu.com>
31105 * loader/i386/pc/multiboot.c (playground, forward_relocator)
31106 (backward_relocator): New variables. Used to allocate and relocate
31107 the payload, respectively.
31108 (grub_multiboot_load_elf32): Load into heap instead of requested
31109 address, install the appropriate relocator code in each bound of
31110 the payload, and set the entry point such that
31111 grub_multiboot_real_boot() will jump to one of them.
31113 * kern/i386/loader.S (grub_multiboot_payload_size)
31114 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
31115 (grub_multiboot_payload_entry_offset): New variables.
31116 (grub_multiboot_real_boot): Set cpu context to what the relocator
31117 expects, and jump to the relocator instead of the payload.
31119 * include/grub/i386/loader.h (grub_multiboot_payload_size)
31120 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
31121 (grub_multiboot_payload_entry_offset): Export.
31123 2008-08-01 Bean <bean123ch@gmail.com>
31125 * normal/menu_entry.c (editor_getline): Don't return the original
31126 string as result, as it will be released by lexer once it has done
31129 2008-08-01 Robert Millan <rmh@aybabtu.com>
31131 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
31132 within menuentries, not before them.
31133 util/grub.d/10_hurd.in: Likewise.
31135 2008-08-01 Bean <bean123ch@gmail.com>
31137 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
31138 (bufio_mod_SOURCES): New macro.
31139 (bufio_mod_CFLAGS): Likewise.
31140 (bufio_mod_LDFLAGS): Likewise.
31142 * include/grub/bufio.h: New file.
31144 * io/bufio.c: Likewise.
31146 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
31147 (grub_video_reader_png): Use grub_buffile_open to open file.
31149 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
31150 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
31152 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
31153 (grub_video_reader_tga): Use grub_buffile_open to open file.
31155 * font/manager.c: Include <grub/bufio.h>.
31156 (add_font): Use grub_buffile_open to open file.
31158 2008-07-31 Robert Millan <rmh@aybabtu.com>
31160 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
31161 ELF segments, use a macro for arbitrarily accessing any of them instead
31162 of preparing a pointer that allows access to one at a time.
31163 (grub_multiboot_load_elf64): Likewise.
31165 2008-07-31 Bean <bean123ch@gmail.com>
31167 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
31168 GRUB_KERNEL_MACHINE_DATA_END.
31170 2008-07-30 Robert Millan <rmh@aybabtu.com>
31172 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
31173 Increase from 0x50 to 0x60.
31174 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
31175 use UUIDs to identify the root drive for them. If that's not
31177 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
31178 check, for cross-disk installs.
31180 2008-07-30 Robert Millan <rmh@aybabtu.com>
31182 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
31183 is non-empty, use it to set the `prefix' environment variable instead
31184 of the usual approach.
31185 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
31186 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
31187 environment variable instead of dummy make_install_device().
31189 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
31190 (start): Insert a data section, with `grub_prefix' variable.
31191 * kern/i386/linuxbios/startup.S: Likewise.
31193 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
31194 New variable reference.
31195 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
31196 New macro. Defines offset of `grub_prefix' within startup.S (relative
31198 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
31199 section within startup.S (relative to `start').
31200 * include/grub/i386/coreboot/kernel.h: Likewise.
31202 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
31203 Overwrite grub_prefix with its contents, at the beginning of the
31205 (main): Understand -p|--prefix.
31207 2008-07-30 Robert Millan <rmh@aybabtu.com>
31209 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
31211 2008-07-30 Robert Millan <rmh@aybabtu.com>
31213 * term/i386/pc/vga_text.c (grub_console_cls): Use
31214 grub_console_gotoxy() to go back to beginning of the screen.
31215 Found by Patrick Georgi <patrick.georgi@coresystems.de>
31217 2008-07-29 Christian Franke <franke@computer.org>
31219 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
31220 Add conversion of emulated mount points on Cygwin.
31222 2008-07-29 Christian Franke <franke@computer.org>
31224 * util/update-grub.in: Add a check for admin
31226 Remove old `grub.cfg.new' before creation.
31227 Add `-f' to `mv' to handle the different filesystem
31228 semantics of Windows.
31230 2008-07-29 Bean <bean123ch@gmail.com>
31232 * normal/main.c (get_line): Fix buffer overflow bug.
31234 2008-07-28 Robert Millan <rmh@aybabtu.com>
31236 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
31237 (struct grub_apple_header): New struct. Describes the layout of
31238 the partmap header.
31239 (apple_partition_map_iterate): Check the header magic as well as the
31240 partition magic (which was already being checked).
31242 2008-07-28 Pavel Roskin <proski@gnu.org>
31244 * genmk.rb: Add a warning to the beginning of the output that
31245 it's a generated file and should not be edited.
31247 2008-07-28 Robert Millan <rmh@aybabtu.com>
31249 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
31250 with the same number are found, just use issue a warning with
31251 grub_dprintf(), as this error has been reported to be non-fatal.
31253 2008-07-27 Robert Millan <rmh@aybabtu.com>
31255 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
31258 2008-07-27 Bean <bean123ch@gmail.com>
31260 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
31261 (grub_fat_find_dir): Ignore case when comparing filename.
31263 2008-07-27 Bean <bean123ch@gmail.com>
31265 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
31266 smallino, as it's more descriptive, and i8count can be confused with
31267 the other field count.
31268 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
31271 2008-07-27 Bean <bean123ch@gmail.com>
31273 * commands/crc.c: New file.
31275 * lib/crc.c: Likewise.
31277 * include/grub/lib/crc.h: Likewise.
31279 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
31281 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
31282 (hexdump): Move this function to ...
31284 * lib/hexdump.c: ... here.
31286 * include/grub/hexdump.h: Renamed to ...
31288 * include/grub/lib/hexdump.h: ... this.
31290 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
31292 * util/grub-editenv.c: Likewise.
31294 * include/envblk.h: Renamed to ...
31296 * include/lib/envblk.h: ... this.
31298 * util/envblk.c: Renamed to ...
31300 * lib/envblk.c: ... this.
31302 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
31304 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
31305 (pkglib_MODULES): Add crc.mod.
31306 (hexdump_mod_SOURCES): Add lib/hexdump.c.
31307 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
31308 (crc_mod_SOURCES): New macro.
31309 (crc_mod_CFLAGS): Likewise.
31310 (crc_mod_LDFLAGS): Likewise.
31312 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
31314 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31316 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31318 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31320 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31322 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
31324 * commands/help.c: Include <grub/term.h>.
31325 (TERM_WIDTH): Removed. Updated all users.
31327 2008-07-27 Pavel Roskin <proski@gnu.org>
31329 * util/getroot.c (find_root_device): Rephrase a comment to avoid
31330 spurious warnings about a comment within a comment.
31332 2008-07-25 Robert Millan <rmh@aybabtu.com>
31334 * util/getroot.c (find_root_device): Skip devices that match
31335 /dev/dm-[0-9]. This lets the real device be found for any type of
31336 abstraction (LVM, EVMS, RAID..).
31337 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
31338 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
31339 device is found first, find_root_device() will now skip it.
31341 2008-07-24 Pavel Roskin <proski@gnu.org>
31343 * include/grub/types.h: Use __builtin_bswap32() and
31344 __builtin_bswap64() with gcc 4.3 and newer.
31346 2008-07-24 Christian Franke <franke@computer.org>
31348 * util/i386/pc/grub-install.in: If `--debug' is specified,
31349 pass `--verbose' to grub-setup.
31350 Abort script if make_system_path_relative_to_its_root() fails.
31352 2008-07-24 Bean <bean123ch@gmail.com>
31354 * configure.ac: Fixed a bug caused by the previous cygwin patch,
31355 variable `target_platform' should be `platform'.
31357 2008-07-24 Bean <bean123ch@gmail.com>
31359 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
31360 (grub_png_init_fixed_block): New function.
31361 (grub_png_decode_image_data): Handle fixed huffman code compression.
31363 2008-07-24 Bean <bean123ch@gmail.com>
31365 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
31366 (grub_pe2elf_SOURCES): New macro.
31367 (CLEANFILES): Add grub-pe2elf.
31369 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
31370 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
31371 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
31372 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
31373 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
31374 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
31375 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
31376 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
31377 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
31378 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
31379 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
31380 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
31381 (GRUB_PE32_DT_FUNCTION): Likewise.
31382 (GRUB_PE32_REL_I386_DIR32): Likewise.
31383 (GRUB_PE32_REL_I386_REL32): Likewise.
31384 (grub_pe32_symbol): New structure.
31385 (grub_pe32_reloc): Likewise.
31387 * util/grub-pe2elf.c: New file.
31389 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
31390 start symbol in non pc platform.
31392 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
31394 The following patches are from Christian Franke.
31396 * include/grub/dl.h: Remove .previous, gas supports this only
31399 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
31400 Remove .type, gas supports this only for ELF format.
31402 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
31403 nullbytes in symbol table. This fixes an infinite loop if table is
31406 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
31407 TARGET_IMG_LDFLAGS and EXEEXT.
31409 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
31410 TARGET_IMG_LDFLAGS_AC.
31411 (grub_CHECK_STACK_ARG_PROBE): New function.
31413 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
31415 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
31417 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
31418 to set TARGET_IMG_LD* accordingly.
31419 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
31420 Add call to grub_CHECK_STACK_ARG_PROBE.
31421 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
31423 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
31425 * genmk.rb: Add EXEEXT to CLEANFILES.
31427 2008-07-23 Robert Millan <rmh@aybabtu.com>
31429 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
31430 define the codes for arrows and lines used for the menu).
31431 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
31434 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
31435 fonts, because the latter are too slow.
31437 2008-07-21 Bean <bean123ch@gmail.com>
31439 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
31440 a20. Run keyboard test last, as it will cause macbook to halt.
31442 2008-07-18 Pavel Roskin <proski@gnu.org>
31444 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
31445 load foreign architecture modules correctly anyway. Keep
31446 support for loading host architecture modules, whether we
31447 compile them or not.
31449 2008-07-17 Pavel Roskin <proski@gnu.org>
31451 * configure.ac: Use -m32 or -m64 regardless of whether we had to
31452 change target_cpu. The compiler default can mismatch target_cpu
31455 * disk/efi/efidisk.c: Fix format warnings on x86_64.
31456 * kern/efi/efi.c: Likewise.
31458 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
31459 target compiler is functional.
31460 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
31463 * configure.ac: Default to efi platform for x86_64-apple. Allow
31464 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
31465 adjustments from the rest, only do them if target is not
31466 explicitly given. Merge other adjustments with the final sanity
31467 check. Remove an extraneous check for supported CPU. Be
31468 specific which CPU and which platform is not supported.
31470 * configure.ac: Default to pc platform for x86_64.
31472 2008-07-17 Robert Millan <rmh@aybabtu.com>
31474 Partial LinuxBIOS -> Coreboot rename.
31476 * conf/i386-linuxbios.rmk: Renamed to ...
31477 * conf/i386-coreboot.rmk: ... this.
31478 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
31479 * configure.ac: Accept "coreboot" as input platform (but maintain
31480 compatibility with "linuxbios").
31481 * include/grub/i386/linuxbios: Renamed to ...
31482 * include/grub/i386/coreboot: ... this.
31484 2008-07-17 Bean <bean123ch@gmail.com>
31486 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
31487 (appleldr_mod_SOURCE): New variable.
31488 (appleldr_mod_CFLAGS): Likewise.
31489 (appleldr_mod_LDFLAGS): Likewise.
31490 (pci_mod_SOURCES): Likewise.
31491 (pci_mod_CFLAGS): Likewise.
31492 (pci_mod_LDFLAGS): Likewise.
31493 (lspci_mod_SOURCES): Likewise.
31494 (lspci_mod_CFLAGS): Likewise.
31495 (lspci_mod_LDFLAGS): Likewise.
31497 * conf/x86_64-efi.rmk: New file.
31499 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
31501 (grub_efidisk_write): Likewise.
31503 * include/efi/api.h (efi_call_0): New macro.
31504 (efi_call_1): Likewise.
31505 (efi_call_2): Likewise.
31506 (efi_call_3): Likewise.
31507 (efi_call_4): Likewise.
31508 (efi_call_5): Likewise.
31509 (efi_call_6): Likewise.
31511 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
31512 grub_rescue_cmd_chainloader.
31514 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
31515 (grub_pe32_optional_header): Change some fields based on i386 or
31517 (GRUB_PE32_PE32_MAGIC): Likewise.
31519 * include/grub/efi/uga_draw.h: New file.
31521 * include/grub/elf.h (STN_ABS): New constant.
31522 (R_X86_64_NONE): Relocation constant for x86_64.
31523 (R_X86_64_64): Likewise.
31524 (R_X86_64_PC32): Likewise.
31525 (R_X86_64_GOT32): Likewise.
31526 (R_X86_64_PLT32): Likewise.
31527 (R_X86_64_COPY): Likewise.
31528 (R_X86_64_GLOB_DAT): Likewise.
31529 (R_X86_64_JUMP_SLOT): Likewise.
31530 (R_X86_64_RELATIVE): Likewise.
31531 (R_X86_64_GOTPCREL): Likewise.
31532 (R_X86_64_32): Likewise.
31533 (R_X86_64_32S): Likewise.
31534 (R_X86_64_16): Likewise.
31535 (R_X86_64_PC16): Likewise.
31536 (R_X86_64_8): Likewise.
31537 (R_X86_64_PC8): Likewise.
31539 * include/grub/i386/efi/pci.h: New file.
31541 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
31542 Change it value based on platform.
31543 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
31544 (GRUB_E820_RAM): Likewise.
31545 (GRUB_E820_RESERVED): Likewise.
31546 (GRUB_E820_ACPI): Likewise.
31547 (GRUB_E820_NVS): Likewise.
31548 (GRUB_E820_EXEC_CODE): Likewise.
31549 (GRUB_E820_MAX_ENTRY): Likewise.
31550 (grub_e820_mmap): New structure.
31551 (linux_kernel_header): Change the efi field according to different
31552 kernel version, also field from linux_kernel_header.
31554 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
31556 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
31557 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
31558 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
31559 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
31560 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
31561 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
31562 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
31563 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
31564 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
31565 (GRUB_PCI_ADDR_IO_MASK): Likewise.
31567 * include/grub/x86_64/efi/kernel.h: New file.
31569 * include/grub/x86_64/efi/loader.h: Likewise.
31571 * include/grub/x86_64/efi/machine.h: Likewise.
31573 * include/grub/x86_64/efi/pci.h: Likewise.
31575 * include/grub/x86_64/efi/time.h: Likewise.
31577 * include/grub/x86_64/linux.h: Likewise.
31579 * include/grub/x86_64/setjmp.h: Likewise.
31581 * include/grub/x86_64/time.h: Likewise.
31583 * include/grub/x86_64/types.h: Likewise.
31585 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
31586 GRUB_TARGET_SIZEOF_VOID_P.
31588 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
31589 (grub_efi_locate_handle): Likewise.
31590 (grub_efi_open_protocol): Likewise.
31591 (grub_efi_set_text_mode): Likewise.
31592 (grub_efi_stall): Likewise.
31593 (grub_exit): Likewise.
31594 (grub_reboot): Likewise.
31595 (grub_halt): Likewise.
31596 (grub_efi_exit_boot_services): Likewise.
31597 (grub_get_rtc): Likewise.
31599 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
31600 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
31601 (grub_efi_allocate_pages): Wrap efi calls.
31602 (grub_efi_free_pages): Wrap efi calls.
31603 (grub_efi_get_memory_map): Wrap efi calls.
31605 * kern/x86_64/dl.c: New file.
31607 * kern/x86_64/efi/callwrap.S: Likewise.
31609 * kern/x86_64/efi/startup.S: Likewise.
31611 * loader/efi/appleloader.c: Likewise.
31613 * loader/efi/chainloader.c (cmdline): New variable.
31614 (grub_chainloader_unload): Wrap efi calls.
31615 (grub_chainloader_boot): Likewise.
31616 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
31619 * loader/efi/chainloader_normal.c (chainloader_command):
31620 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
31623 * loader/i386/efi/linux.c (allocate_pages): Change allocation
31625 (grub_e820_add_region): New function.
31626 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
31628 (grub_find_video_card): New function.
31629 (grub_linux_setup_video): New function.
31630 (grub_rescue_cmd_linux): Probe for video information.
31632 * normal/x86_64/setjmp.S: New file.
31634 * term/efi/console.c (map_char): New function.
31635 (grub_console_putchar): Map unicode char.
31636 (grub_console_checkkey): Wrap efi calls.
31637 (grub_console_getkey): Likewise.
31638 (grub_console_getwh): Likewise.
31639 (grub_console_gotoxy): Likewise.
31640 (grub_console_cls): Likewise.
31641 (grub_console_setcolorstate): Likewise.
31642 (grub_console_setcursor): Likewise.
31644 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
31646 2008-07-16 Pavel Roskin <proski@gnu.org>
31648 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
31651 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
31652 pointer, not an integer. This fixes a warning and prevents
31653 precision loss on 64-bit systems.
31654 (relocate_addresses): Remove unneeded cast.
31656 2008-07-15 Pavel Roskin <proski@gnu.org>
31658 * kern/i386/ieee1275/init.c: Include grub/cache.h.
31660 * term/ieee1275/ofconsole.c: Disable code unused on i386.
31662 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
31663 Fix comparison between signed and unsigned.
31665 * include/grub/i386/ieee1275/console.h: Declare
31666 grub_console_init() and grub_console_fini().
31668 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
31669 It's empty and unused.
31671 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
31672 beginning to avoid warnings with some compilers.
31674 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
31675 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
31677 2008-07-14 Pavel Roskin <proski@gnu.org>
31679 * kern/env.c (grub_register_variable_hook): Don't copy empty
31680 string, it leaks memory. Pass "" to grub_env_set(), it should
31681 handle constant strings.
31683 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
31684 * commands/cmp.c (grub_cmd_cmp): Likewise.
31685 * kern/dl.c (grub_dl_flush_cache): Likewise.
31686 (grub_dl_load_core): Likewise.
31687 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
31688 (grub_elf64_load_phdrs): Likewise.
31690 2008-07-13 Pavel Roskin <proski@gnu.org>
31692 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
31693 between signed and unsigned.
31694 (LzmaEnc_Finish): Fix warning about an unused parameter.
31696 2008-07-13 Bean <bean123ch@gmail.com>
31698 * Makefile.in (enable_lzo): New rule.
31700 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
31702 * configure.ac (ENABLE_LZO): New option --enable-lzo.
31704 * boot/i386/pc/lnxboot.S: #include <config.h>.
31706 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
31707 its value according to the compression algorithm used, lzo or lzma.
31709 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
31710 compression algorithm according to configure macro.
31712 * kern/i386/pc/startup.S (codestart): Likewise.
31714 * kern/i386/pc/lzma_decode.S: New file.
31716 * include/grub/lib/LzFind.h: Likewise.
31718 * include/grub/lib/LzHash.h: Likewise.
31720 * include/grub/lib/LzmaDec.h: Likewise.
31722 * include/grub/lib/LzmaEnc.h: Likewise.
31724 * include/grub/lib/LzmaTypes.h: Likewise.
31726 * lib/LzFind.c: Likewise.
31728 * lib/LzmaDec.c: Likewise.
31730 * lib/LzmaEnc.c: Likewise.
31732 2008-07-13 Bean <bean123ch@gmail.com>
31734 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
31735 (grub_ext4_extent_header): New structure.
31736 (grub_ext4_extent): Likewise.
31737 (grub_ext4_extent_idx): Likewise.
31738 (grub_ext4_find_leaf): New function.
31739 (grub_ext2_read_block): Handle extents.
31741 2008-07-12 Robert Millan <rmh@aybabtu.com>
31743 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
31745 2008-07-11 Robert Millan <rmh@aybabtu.com>
31747 * util/grub.d/40_custom.in: New file. Example on how to add custom
31748 entries to /etc/grub.d.
31749 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
31750 40_custom (implicitly, by merging all the grub.d rules).
31752 2008-07-11 Pavel Roskin <proski@gnu.org>
31754 * commands/read.c (grub_getline): Fix invalid memory access.
31755 Don't add newline to the variable value.
31757 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
31758 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
31759 (serial_hw_get_port): Check validity of the port number.
31760 (grub_cmd_serial): Check return value of serial_hw_get_port().
31762 2008-07-07 Pavel Roskin <proski@gnu.org>
31764 * boot/i386/pc/diskboot.S (notification_string): Replace
31765 "Loading kernel" with just "loading". This is shorter, less
31766 confusing and saves a few bytes for possible future changes.
31768 2008-07-05 Pavel Roskin <proski@gnu.org>
31770 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
31771 size for ATAPI devices, they are undefined. Output sector
31772 number in decimal form.
31774 * disk/ata.c: Use named constants for status bits.
31776 2008-07-04 Pavel Roskin <proski@gnu.org>
31778 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
31779 grub_addr_t before casting it to the void pointer to fix a
31780 warning. Non-addressable regions are discarded earlier.
31781 (grub_arch_modules_addr): Cast _end to grub_addr_t.
31782 * kern/i386/linuxbios/table.c: Include grub/misc.h.
31783 (check_signature): Don't shadow table_header.
31784 (grub_linuxbios_table_iterate): Cast numeric constants to
31785 grub_linuxbios_table_header_t.
31786 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
31789 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
31792 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
31793 pointer, which can cause warnings. Support 64-bit addresses.
31795 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
31796 of sizeof(long). This fixes PowerPC image generation on x86_64.
31798 2008-07-04 Robert Millan <rmh@aybabtu.com>
31800 This fixes a performance issue when pc & gpt partmap iterators
31801 didn't abort iteration even after our hook found what it was
31802 looking for (often causing expensive probes of non-existent drives).
31804 Some callers relied on previous buggy behaviour, since they would
31805 raise an error when their own hooks caused early abortion of its
31808 * kern/device.c (grub_device_open): Improve error message.
31809 * disk/lvm.c (grub_lvm_open): Likewise.
31810 * disk/raid.c (grub_raid_open): Likewise.
31812 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
31813 when hook requests it, independently of grub_errno.
31814 (pc_partition_map_probe): Do not fail when find_func() caused
31815 early abortion of pc_partition_map_iterate().
31817 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
31818 when hook requests it, independently of grub_errno.
31819 (gpt_partition_map_probe): Do not fail when find_func() caused
31820 early abortion of gpt_partition_map_iterate().
31822 * kern/partition.c (grub_partition_iterate): Abort parent iteration
31823 when hook requests it, independently of grub_errno. Do not fail when
31824 part_map_iterate_hook() caused early abortion of p->iterate().
31826 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
31827 when grub_partition_iterate() returned with non-zero.
31829 2008-07-03 Pavel Roskin <proski@gnu.org>
31831 * disk/ata.c (grub_ata_pio_write): Check status before writing,
31832 like we do in grub_ata_pio_read().
31833 (grub_ata_readwrite): Always write individual sectors. Fix the
31834 sector count for the remainder.
31835 (grub_ata_write): Enable writing to ATA devices. Correctly
31836 report error for ATAPI devices.
31838 2008-07-02 Pavel Roskin <proski@gnu.org>
31840 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
31843 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
31844 for every read sector, we already increment it for the whole
31845 batch. This fixes reading more than 256 sectors at once.
31847 * util/grub-editenv.c (cmd_info): Cast argument to long
31848 explicitly. ptrdiff_t reduces to int on i386.
31850 * util/grub-editenv.c (main): Be specific which parameter is
31853 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
31854 (memdisk): Make memdisk_orig_addr a pointer.
31856 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
31857 for file offsets, use grub_off_t instead. Fix printf format
31860 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
31861 there. Real unexpected warnings should not drown in the noise
31862 about known problems.
31864 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
31865 grub_disk_addr_t for memory addresses.
31867 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
31868 explicitly to fix a warning.
31870 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
31872 * Makefile.in (MODULE_LDFLAGS): New variable.
31873 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
31874 the linker accepts --build-id=none.
31875 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
31877 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
31879 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
31880 those in Linux XFS code. Provide a way to access 64-bit parent
31882 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
31883 the end of struct grub_xfs_dir_header.
31885 2008-07-02 Bean <bean123ch@gmail.com>
31887 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
31888 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31889 and GRUB_IEEE1275_FLAG_NO_ANSI.
31891 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
31892 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31893 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
31895 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
31896 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
31898 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
31899 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
31901 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
31902 esc sequence on non ANSI terminal.
31903 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
31905 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
31908 2008-07-02 Bean <bean123ch@gmail.com>
31910 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
31911 (grub_editenv_SOURCES): New variable.
31912 (pkglib_MODULES): Add loadenv.mod.
31913 (loadenv_mod_SOURCES): New variable.
31914 (loadenv_mod_CFLAGS): Likewise.
31915 (loadenv_mod_LDFLAGS): Likewise.
31917 * include/grub/envblk.h: New file.
31919 * util/envblk.c: New file.
31921 * util/grub-editenv.c: New file.
31923 * commands/loadenv.c: New file.
31925 2008-07-01 Pavel Roskin <proski@gnu.org>
31927 * include/multiboot2.h (struct multiboot_tag_module): Use char,
31928 not unsigned char. This fixes warnings and is consistent with
31931 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
31933 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
31935 * term/tparm.c (analyze): Always set *popcount.
31937 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
31938 cast to fix a warning.
31940 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
31941 cast to suppress a warning.
31943 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
31944 grub_fshelp_read_file() expects.
31946 * fs/fat.c: Fix UUID calculation on big-endian systems. We
31947 write uuid as a 32-bit value in CPU byte order, so declare and
31950 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
31951 long if the format specifier expects it.
31952 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
31953 * partmap/pc.c (pc_partition_map_iterate): Likewise.
31954 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
31955 long to fix a warning.
31956 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
31957 grub_dprintf() arguments to fix warnings.
31959 2008-06-30 Pavel Roskin <proski@gnu.org>
31961 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
31962 install_bsd_part immediately before core.img is embedded or
31963 modified on disk. This fixes core.img verification if core.img
31964 cannot be embedded.
31966 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
31967 core_path to calculate the blocklist.
31968 Patch from Javier Martín <lordhabbit@gmail.com>
31970 2008-06-29 Robert Millan <rmh@aybabtu.com>
31972 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
31973 block to disk block.
31974 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
31975 Patch from Niels Böhm <bitbucket@arcor.de>
31977 2008-06-29 Robert Millan <rmh@aybabtu.com>
31979 * util/update-grub_lib.in (font_path): Search for fonts in
31980 /boot/grub first, which is more likely to be readable (we aren't
31981 deciding where fonts live, just looking for them).
31983 2008-06-26 Pavel Roskin <proski@gnu.org>
31985 * util/biosdisk.c (read_device_map): Don't leave dead map
31986 entries for devices failing stat() check.
31988 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
31989 core_path_dev for the core.img path on the target device.
31991 2008-06-26 Robert Millan <rmh@aybabtu.com>
31993 * disk/fs_uuid.c: New file.
31994 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
31995 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
31996 (fs_uuid_mod_LDFLAGS): New variables.
31997 * include/grub/disk.h (grub_disk_dev_id): Add
31998 `GRUB_DISK_DEVICE_UUID_ID'.
31999 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
32000 implement iterate().
32002 2008-06-26 Robert Millan <rmh@aybabtu.com>
32004 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
32005 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
32006 Linux image includes no initrd.
32008 2008-06-21 Javier Martín <lordhabbit@gmail.com>
32010 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
32011 call to resolve the core image location that effectively appended the
32014 2008-06-21 Robert Millan <rmh@aybabtu.com>
32016 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
32019 * util/grub.d/10_hurd.in: ... to here ...
32020 * util/grub.d/10_linux.in: ... and here.
32022 2008-06-19 Robert Millan <rmh@aybabtu.com>
32024 * kern/main.c (grub_main): Export `prefix' variable immediately
32025 after it has been set by grub_machine_set_prefix().
32027 2008-06-19 Robert Millan <rmh@aybabtu.com>
32029 * commands/search.c (search_label, search_fs_uuid, search_file): Print
32030 search result when not saving to variable, not the other way around.
32031 When saving to variable, abort iteration as soon as a match is found.
32033 2008-06-19 Robert Millan <rmh@aybabtu.com>
32035 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
32036 check for partition that provides /boot/grub. Its logic is flawed,
32037 as it prevents prepare_grub_to_access_device() from being called
32040 2008-06-19 Robert Millan <rmh@aybabtu.com>
32042 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
32043 "insmod" command directly when abstraction modules are needed,
32044 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
32045 since it had already been processed).
32047 2008-06-19 Pavel Roskin <proski@gnu.org>
32049 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
32050 changed. This is needed in case GRUB_LIBDIR changes.
32051 * conf/i386-ieee1275.rmk: Likewise.
32052 * conf/i386-linuxbios.rmk: Likewise.
32053 * conf/i386-pc.rmk: Likewise.
32054 * conf/powerpc-ieee1275.rmk: Likewise.
32056 2008-06-18 Pavel Roskin <proski@gnu.org>
32058 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
32059 kernel_elf_symlist.c to symlist.c for consistency with other
32060 architectures. Update all users.
32061 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
32063 2008-06-18 Robert Millan <rmh@aybabtu.com>
32065 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
32068 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
32069 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
32070 a RAID device, run setup() for all members independently on whether
32071 LVM abstraction is being used.
32072 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
32073 If grub-mkimage has set `*install_dos_part == -2', don't override this
32075 Perform *install_dos_part adjustments independently on whether
32076 we're embedding or not.
32077 Clarify error message when image is too big for embedding.
32078 Remove duplicate *install_dos_part stanza.
32080 2008-06-17 Robert Millan <rmh@aybabtu.com>
32082 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
32083 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
32085 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
32086 values in grub_ofconsole_normal_color and
32087 grub_ofconsole_highlight_color (they're not directly related to
32088 background and foreground).
32089 (grub_ofconsole_setcolorstate): Extract background and foreground
32090 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
32092 2008-06-17 Robert Millan <rmh@aybabtu.com>
32094 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
32095 /boot/grub for the check in last commit, not /boot (they could be
32096 different partitions).
32098 2008-06-16 Robert Millan <rmh@aybabtu.com>
32100 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
32101 asked to setup access for the same partition that provides /boot,
32102 don't bother using UUIDs since our root already has the value we
32105 2008-06-16 Robert Millan <rmh@aybabtu.com>
32107 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
32109 Patch from Sven Mueller <sven@debian.org>.
32111 2008-06-16 Robert Millan <rmh@aybabtu.com>
32113 * util/update-grub.in: Check for $EUID instead of $UID.
32114 Reported by Vincent Zweije.
32116 2008-06-16 Bean <bean123ch@gmail.com>
32118 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
32119 (grub_ext2_read_block): Likewise.
32120 (grub_ext2_read_inode): Likewise.
32121 (grub_ext2_mount): Likewise.
32122 (grub_ext2_close): Likewise.
32123 (grub_ext3_get_journal): Removed.
32125 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
32126 (grub_reiserfs_read_symlink): Likewise.
32127 (grub_reiserfs_mount): Likewise.
32128 (grub_reiserfs_open): Likewise.
32129 (grub_reiserfs_read): Likewise.
32130 (grub_reiserfs_close): Likewise.
32131 (grub_reiserfs_get_journal): Removed.
32133 * fs/fshelp.c (grub_fshelp_read): Removed.
32134 (grub_fshelp_map_block): Likewise.
32136 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
32137 (grub_fshelp_journal): Likewise.
32138 (grub_fshelp_read): Likewise.
32139 (grub_fshelp_map_block): Likewise.
32141 2008-06-16 Pavel Roskin <proski@gnu.org>
32143 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
32144 floating point anymore.
32145 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
32147 2008-06-15 Pavel Roskin <proski@gnu.org>
32149 * commands/ls.c (grub_ls_list_files): Use integer calculations
32150 for human readable format, avoid floating point use.
32151 * kern/misc.c (grub_ftoa): Remove.
32152 (grub_vsprintf): Remove floating point support.
32154 2008-06-15 Robert Millan <rmh@aybabtu.com>
32156 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
32158 Reported by Max Vozeler.
32160 2008-06-15 Robert Millan <rmh@aybabtu.com>
32162 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
32163 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
32165 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
32166 the beginning of the prefix.
32168 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
32169 It is assumed that if we have a memdisk, grub-mkimage has set
32170 grub_prefix to include the "(memdisk)" drive in it.
32172 2008-06-15 Robert Millan <rmh@aybabtu.com>
32174 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
32175 Initialize keyboard controller after registering the terminal, so that
32176 grub_printf() can be called from grub_keyboard_controller_init().
32178 2008-06-15 Robert Millan <rmh@aybabtu.com>
32180 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
32181 extent-btree which is written as big endian on disk.
32182 Reported by Alain Greppin <al@chilibi.org>.
32184 2008-06-14 Robert Millan <rmh@aybabtu.com>
32186 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
32187 * util/i386/pc/grub-install.in (modules): Likewise.
32189 2008-06-13 Pavel Roskin <proski@gnu.org>
32191 * commands/ls.c (grub_ls_list_files): Fix format warnings.
32193 2008-06-13 Bean <bean123ch@gmail.com>
32195 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
32197 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
32199 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
32200 to indicate sparse block.
32202 2008-06-12 Pavel Roskin <proski@gnu.org>
32204 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
32205 number, grub_fshelp_read() does it for us.
32207 * fs/fshelp.c (grub_fshelp_read): New function. Implement
32208 linear disk read with journal translation.
32209 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
32210 * include/grub/fshelp.h: Declare grub_fshelp_read().
32212 2008-06-09 Pavel Roskin <proski@gnu.org>
32214 * fs/minix.c (grub_minix_mount): Handle error reading
32217 2008-06-08 Robert Millan <rmh@aybabtu.com>
32219 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
32220 don't append the RAID prefix afterwards.
32221 Reported by Clint Adams.
32223 2008-06-08 Robert Millan <rmh@aybabtu.com>
32225 Based on description from Pavel:
32226 * kern/disk.c (grub_disk_check_range): Rename to ...
32227 (grub_disk_adjust_range): ... this. Add a comment explaining the
32228 tasks performed by this function.
32230 2008-06-08 Robert Millan <rmh@aybabtu.com>
32232 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
32233 `num_serial' (for consistency with other variables).
32234 (struct grub_ntfs_data): Add `uuid' member.
32235 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
32236 (grub_ntfs_uuid): New function.
32237 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
32239 2008-06-07 Pavel Roskin <proski@gnu.org>
32241 * util/biosdisk.c (open_device): Revert last change to the
32242 function, it broke installation. The sector needs to be
32243 different dependent on which device is opened.
32245 2008-06-06 Robert Millan <rmh@aybabtu.com>
32247 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
32248 rest of GRUB, and breakage doesn't happen if its value were modified.
32250 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
32251 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
32252 a constant (same value).
32253 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
32254 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
32256 2008-06-06 Robert Millan <rmh@aybabtu.com>
32258 * util/biosdisk.c (open_device): Do not modify sector offset when
32259 accessing a partition. kern/disk.c already handles this for us.
32261 2008-06-06 Robert Millan <rmh@aybabtu.com>
32263 * util/grub-emu.c (grub_machine_init): Move code in this function from
32265 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
32266 segfault in case grub_printf() is called).
32268 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
32269 grub_probe. Update all users not to explicitly add it again.
32270 (grub_device): New variable; contains corresponding device for grubdir.
32271 (fs_module, partmap_module, devabstraction_module): Pass
32272 `--device ${grub_device}' to grub_probe to avoid traversing /dev
32275 2008-06-05 Robert Millan <rmh@aybabtu.com>
32277 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
32278 is found, print it (same layout as with labels).
32280 2008-06-04 Robert Millan <rmh@aybabtu.com>
32282 * util/biosdisk.c (get_drive): Rename to ...
32283 (find_grub_drive): ... this. Update all users.
32285 (get_os_disk): Rename to ...
32286 (convert_system_partition_to_system_disk): ... this. Update all users.
32288 (find_drive): Rename to ...
32289 (find_system_device): ... this. Update all users.
32291 2008-06-04 Robert Millan <rmh@aybabtu.com>
32293 * util/biosdisk.c (get_os_disk): Handle IDA devices.
32294 * util/grub-mkdevicemap.c (get_mmc_disk_name)
32295 (make_device_map): Likewise.
32297 2008-06-01 Robert Millan <rmh@aybabtu.com>
32299 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
32300 before dereferencing it.
32302 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
32303 union with fat12/fat16-specific ones. Add some new fields, including
32304 `num_serial' for both versions.
32305 (struct grub_fat_data): Add `uuid' member.
32306 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
32307 names. Initialize `data->uuid' using `num_serial'.
32308 (grub_fat_uuid): New function.
32309 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
32311 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
32312 (grub_reiserfs_uuid): New function.
32313 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
32316 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
32317 (grub_xfs_uuid): New function.
32318 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
32320 2008-06-01 Robert Millan <rmh@aybabtu.com>
32322 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
32323 code that is backward compatible with pre-uuid search command.
32325 2008-05-31 Robert Millan <rmh@aybabtu.com>
32327 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
32328 floppies after everything else, to ensure floppy drive isn't accessed
32329 unnecessarily (patch from Bean).
32331 2008-05-31 Robert Millan <rmh@aybabtu.com>
32333 * commands/search.c (search_label, search_fs_uuid, search_file): Do
32334 not print device names when we were asked to set a variable.
32336 2008-05-31 Robert Millan <rmh@aybabtu.com>
32338 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
32339 using "cursor-on" and "cursor-off" commands (understood at least by
32340 the Open Firmware flavour on OLPC).
32342 2008-05-31 Michael Gorven <michael@gorven.za.net>
32344 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
32345 on and off sequences.
32347 2008-05-31 Robert Millan <rmh@aybabtu.com>
32349 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
32350 * util/update-grub.in: Likewise.
32352 2008-05-30 Pavel Roskin <proski@gnu.org>
32354 * util/biosdisk.c (linux_find_partition): Simplify logic and
32355 make the code more universal. Keep special processing for
32356 devfs, but use a simple rule for all other devices. If the
32357 device ends with a number, append 'p' and the partition number.
32358 Otherwise, append only the partition number.
32360 2008-05-30 Robert Millan <rmh@aybabtu.com>
32362 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
32363 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
32364 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
32365 the `root' parameter to Linux.
32367 2008-05-30 Robert Millan <rmh@aybabtu.com>
32369 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
32370 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
32371 --fs_uuid with --fs-uuid.
32372 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
32373 all filesystems support them).
32375 2008-05-30 Robert Millan <rmh@aybabtu.com>
32377 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
32378 grub_printf() flags, since we're printing in units of 2 bytes.
32380 2008-05-30 Robert Millan <rmh@aybabtu.com>
32382 * util/grub.d/00_header.in: Remove obsolete comment referencing
32383 convert_system_path_to_grub_path().
32384 * util/update-grub.in: Likewise.
32385 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
32386 (convert_system_path_to_grub_path): Add a warning message explaining
32387 that this function is deprecated. Rely on is_path_readable_by_grub()
32388 for the readability checks.
32389 (font_path): Use is_path_readable_by_grub() for the readability
32390 check rather than convert_system_path_to_grub_path().
32392 2008-05-30 Robert Millan <rmh@aybabtu.com>
32394 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
32395 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
32396 converting it first.
32397 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
32398 grub.cfg for access to font file, and afterwards call it again to set
32401 2008-05-30 Robert Millan <rmh@aybabtu.com>
32403 * commands/search.c (options): Add --fs_uuid option.
32404 (search_fs_uuid): New function.
32405 (grub_cmd_search): Fix --set argument passing.
32406 Use search_fs_uuid() when requested via --fs_uuid.
32407 (grub_search_init): Update help message.
32408 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
32409 and redeclare it as an array of 16-bit words.
32410 (grub_ext2_uuid): New function.
32411 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
32412 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
32413 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
32414 (GRUB_DEVICE_BOOT_UUID): New variables.
32415 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
32416 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
32418 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
32419 just assume `root' variable has the right value.
32420 * util/grub.d/10_linux.in: Likewise.
32421 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
32423 (main): Recognise `-t fs_uuid' argument.
32425 2008-05-30 Robert Millan <rmh@aybabtu.com>
32427 * util/biosdisk.c (map): Redefine structure to hold information
32428 about GRUB drive name.
32429 (get_drive): Reimplement without assuming (and verifying) BIOS-like
32431 (call_hook): Remove.
32432 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
32433 member. Assume drive has partitions.
32434 (grub_util_biosdisk_open): Access device names via `.device' struct
32436 (open_device): Likewise.
32437 (find_drive): Likewise.
32438 (read_device_map): Adjust map[] usage to match the new struct
32439 definition. Don't check for duplicates (still possible, but not cheap
32441 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
32442 (make_device_name): Remove assumption of BIOS-like drive names.
32444 2008-05-30 Pavel Roskin <proski@gnu.org>
32446 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
32447 compiling execute.c doesn't need grub_script.tab.h anymore.
32448 (normal/command.c_DEPENDENCIES): Likewise.
32449 (normal/function.c_DEPENDENCIES): Likewise.
32450 * conf/i386-ieee1275.rmk: Likewise.
32451 * conf/i386-linuxbios.rmk: Likewise.
32452 * conf/i386-pc.rmk: Likewise.
32453 * conf/powerpc-ieee1275.rmk: Likewise.
32454 * conf/sparc64-ieee1275.rmk: Likewise.
32456 2008-05-29 Pavel Roskin <proski@gnu.org>
32458 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
32459 when scanning metadata for volume group name.
32461 * include/grub/script.h: Don't include grub_script.tab.h. It's
32462 a generated file, which may only be included from the files with
32463 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
32464 use union YYSTYPE, as the later allows forward declaration.
32465 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
32467 2008-05-29 Robert Millan <rmh@aybabtu.com>
32469 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
32470 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
32471 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
32472 (grub_console_checkkey): Add grub_dprintf() call to report unknown
32475 2008-05-29 Robert Millan <rmh@aybabtu.com>
32477 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
32478 control key combinations.
32480 2008-05-29 Robert Millan <rmh@aybabtu.com>
32482 * util/powerpc/ieee1275/grub-install.in: Move from here ...
32483 * util/ieee1275/grub-install.in: ... to here.
32484 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
32485 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
32486 (grub_install_SOURCES): Likewise.
32488 2008-05-29 Robert Millan <rmh@aybabtu.com>
32490 * fs/affs.c: Update copyright year.
32491 * fs/ext2.c: Likewise.
32492 * fs/fshelp.c: Likewise.
32493 * fs/hfsplus.c: Likewise.
32494 * fs/ntfs.c: Likewise.
32495 * fs/xfs.c: Likewise.
32496 * include/grub/fshelp.h: Likewise.
32497 * util/grub-mkdevicemap.c: Likewise.
32499 2008-05-28 Robert Millan <rmh@aybabtu.com>
32501 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
32502 might need to be fatfs to support some firmware implementations
32505 2008-05-28 Robert Millan <rmh@aybabtu.com>
32507 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
32509 * util/grub-mkdevicemap.c (get_mmc_disk_name)
32510 (make_device_map): Likewise.
32512 2008-05-20 Bean <bean123ch@gmail.com>
32514 * fs/fshelp.c (grub_fshelp_map_block): New function.
32515 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
32516 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
32518 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
32519 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
32520 (grub_fshelp_journal): New structure.
32521 (grub_fshelp_map_block): New function prototype.
32522 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
32523 (grub_fshelp_map_block): Likewise.
32525 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
32526 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
32527 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
32528 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
32529 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
32530 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
32531 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
32532 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
32533 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
32534 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
32535 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
32536 (grub_ext2_sblock): New members for journal support.
32537 (grub_ext3_journal_header): New structure.
32538 (grub_ext3_journal_revoke_header): Likewise.
32539 (grub_ext3_journal_block_tag): Likewise.
32540 (grub_ext3_journal_sblock): Likewise.
32541 (grub_fshelp_node): New members logfile and journal.
32542 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
32543 grub_fshelp_map_block to get real block number.
32544 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
32546 (grub_ext2_read_inode): Likewise.
32547 (grub_ext3_get_journal): New function.
32548 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
32549 (grub_ext2_close): Release memory used by journal.
32551 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
32552 (REISERFS_MAGIC_DESC_BLOCK): New macro.
32553 (grub_reiserfs_transaction_header): Renamed to
32554 grub_reiserfs_description_block, replace field data with real_blocks.
32555 (grub_reiserfs_commit_block): New structure.
32556 (grub_reiserfs_data): New member journal.
32557 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
32559 (grub_reiserfs_read_symlink): Likewise.
32560 (grub_reiserfs_iterate_dir): Likewise.
32561 (grub_reiserfs_open): Likewise.
32562 (grub_reiserfs_read): Likewise.
32563 (grub_reiserfs_get_journal): New function.
32564 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
32565 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
32566 using grub_reiserfs_get_journal.
32567 (grub_reiserfs_close): Release memory used by journal.
32569 * fs/affs.c (grub_affs_read_block): Change block type to
32570 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
32572 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
32574 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
32576 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
32578 * fs/udf.c (grub_udf_read_block): Change block type to
32579 grub_disk_addr_t. Use type cast to avoid warning.
32581 * fs/xfs.c (grub_xfs_read_block): Likewise.
32583 2008-05-16 Christian Franke <franke@computer.org>
32585 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
32586 to ensure that break with ESC will always work.
32587 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
32588 Remove ESC from keyboard queue.
32590 2008-05-16 Christian Franke <franke@computer.org>
32592 * util/biosdisk.c: [__CYGWIN__] Add includes.
32593 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
32594 (get_os_disk): Move variable declarations to OS specific
32595 parts to avoid warning.
32596 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
32597 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
32598 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
32600 * util/getroot.c: [__CYGWIN__] Add includes.
32601 (strip_extra_slashes): Fix "/" case.
32602 [__CYGWIN__] (get_win32_path): New function.
32603 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
32604 [__CYGWIN__] (find_root_device): Disable.
32605 [__CYGWIN__] (get_bootsec_serial): New function.
32606 [__CYGWIN__] (find_cygwin_root_device): Likewise.
32607 [__linux__] (grub_guess_root_device): Add early returns to simplify
32609 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
32610 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
32611 check for Linux only.
32613 2008-05-15 Bean <bean123ch@gmail.com>
32615 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
32616 keyboard hang problem in apple's intel mac.
32618 2008-05-09 Robert Millan <rmh@aybabtu.com>
32620 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
32622 * util/grub-mkdevicemap.c (get_virtio_disk_name)
32623 (make_device_map): Likewise.
32624 Reported by Aurelien Jarno <aurel32@debian.org>
32626 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
32628 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
32629 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
32630 (make_device_map): Output entries for xvd type disks.
32632 2008-05-07 Robert Millan <rmh@aybabtu.com>
32634 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
32636 * util/grub-mkdevicemap.c (get_cciss_disk_name)
32637 (make_device_map): Likewise.
32638 Reported by Roland Dreier <rdreier@cisco.com>
32640 2008-05-07 Robert Millan <rmh@aybabtu.com>
32642 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
32643 grub_strstr() call. Correct a few mistakes in failure path handling.
32645 2008-05-06 Robert Millan <rmh@aybabtu.com>
32647 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
32648 Do not print a trailing slash (therefore, the root directory is an
32650 (convert_system_path_to_grub_path): Do not remove trailing slash
32651 from make_system_path_relative_to_its_root() output.
32653 * util/i386/pc/grub-install.in: Add trailing slash to output from
32654 make_system_path_relative_to_its_root().
32656 2008-05-06 Robert Millan <rmh@aybabtu.com>
32658 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
32659 ensures that output lines aren't intermangled with those sent to
32660 stderr (via grub_util_info()).
32661 * util/grub-probe.c (grub_refresh): Likewise.
32662 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
32664 2008-05-05 Christian Franke <franke@computer.org>
32666 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
32667 Add Cygwin device names.
32668 (get_ide_disk_name) [__CYGWIN__]: Likewise.
32669 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
32670 (check_device): Return error instead of success on empty name.
32671 (make_device_map): Move label inside linux specific code to
32672 prevent compiler warning.
32674 2008-04-30 Robert Millan <rmh@aybabtu.com>
32676 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
32677 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
32679 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
32681 2008-04-29 Robert Millan <rmh@aybabtu.com>
32683 * docs/grub.cfg: New file (example GRUB configuration).
32685 2008-04-26 Robert Millan <rmh@aybabtu.com>
32687 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
32688 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
32689 and `disk/ieee1275/nand.c'.
32691 2008-04-25 Bean <bean123ch@gmail.com>
32693 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
32696 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
32697 change the buffer size to 4096 for cdrom device.
32699 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
32701 (_linux_mod_SOURCES): New variable.
32702 (_linux_mod_CFLAGS): Likewise.
32703 (_linux_mod_LDFLAGS): Likewise.
32704 (linux_mod_SOURCES): Likewise.
32705 (linux_mod_CFLAGS): Likewise.
32706 (linux_mod_LDFLAGS): Likewise.
32707 (nand_mod_SOURCES): Likewise.
32708 (nand_mod_CFLAGS): Likewise.
32709 (nand_mod_LDFLAGS): Likewise.
32711 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
32712 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
32713 type property. (nand device in olpc don't have this property)
32715 * include/grub/disk.h (grub_disk_dev_id): New macro
32716 GRUB_DISK_DEVICE_NAND_ID.
32718 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
32719 function prototype.
32720 (grub_rescue_cmd_initrd): Likewise.
32722 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
32723 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
32724 ofw_cif_handler and ofw_idt, adjust padding number.
32726 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
32727 GRUB_MACHINE_IEEE1275 is defined.
32729 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
32730 Use NESTED_FUNC_ATTR attribute on the hook parameter.
32732 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
32733 on nested function heap_init.
32734 (grub_upper_mem): New variable for i386-ieee1275.
32735 (grub_get_extended_memory): New function for i386-ieee1275.
32736 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
32738 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
32739 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
32742 * loader/i386/ieee1275/linux.c: New file.
32744 * loader/i386/ieee1275/linux_normal.c: New file.
32746 * disk/ieee1275/nand.c: New file.
32748 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
32750 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
32752 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
32754 2008-04-18 Robert Millan <rmh@aybabtu.com>
32756 Restructures early code path on ieee1275 to unify grub_main() as
32757 the first C function that is executed in every platform.
32759 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
32760 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
32762 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
32763 * kern/ieee1275/cmain.c (cmain): Rename to ...
32764 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
32765 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
32768 2008-04-18 Robert Millan <rmh@aybabtu.com>
32770 * util/update-grub.in: Fix syntax error when setting
32771 `GRUB_PRELOAD_MODULES'.
32772 Reported by Stephane Chazelas <stephane@artesyncp.com>
32774 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
32776 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
32777 section into account, newer toolchains generate unique build ids
32778 * configure.ac: remove the test for --build-id=none acceptance,
32779 we want build ids to be preserved
32780 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
32781 far from other sections don't cause the raw binary images grow
32784 2008-04-15 Robert Millan <rmh@aybabtu.com>
32786 * disk/lvm.c: Update copyright year.
32787 * kern/misc.c: Likewise.
32789 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32791 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
32792 there is no memory left for physical volume name.
32794 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32796 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
32797 volume name mapping to support bigger than 9 character names properly.
32799 2008-04-13 Robert Millan <rmh@aybabtu.com>
32801 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
32802 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
32804 2008-04-13 Christian Franke <franke@computer.org>
32806 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
32807 to create a floppy emulation boot CD when non emulation mode
32809 Enable Joliet CD filesystem extension.
32811 2008-04-13 Robert Millan <rmh@aybabtu.com>
32813 * kern/misc.c (grub_strncat): Fix off-by-one error.
32814 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
32816 * kern/env.c (grub_env_context_close): Clear current context, not
32818 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
32820 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
32822 2008-04-13 Robert Millan <rmh@aybabtu.com>
32824 Improve robustness when handling LVM.
32826 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
32827 (and leave `*p' unmodified).
32828 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
32830 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
32831 iterating through it.
32832 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
32834 (grub_lvm_scan_device): Check the return value (and fail gracefully
32835 when due) on each grub_lvm_getvalue() or grub_strstr() call.
32836 Don't assume `vg->pvs != NULL' when iterating through it.
32838 2008-04-13 Robert Millan <rmh@aybabtu.com>
32840 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
32841 * genmk.rb (partmap): New variable.
32842 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
32843 (#{partmap}): New target rule.
32844 * genpartmaplist.sh: New file.
32845 * Makefile.in (pkglib_DATA): Add partmap.lst.
32846 (partmap.lst): New target rule.
32847 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
32848 modules (including all partition maps), instead of preloading them.
32850 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
32852 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
32853 `linux-boot-prober' (if installed) to detect other operating
32854 systems which are installed on the computer and add them to
32856 * conf/common.rmk: Build and install 30_os-prober.
32858 2008-04-12 Robert Millan <rmh@aybabtu.com>
32860 * kern/powerpc/ieee1275/init.c: Move from here ...
32861 * kern/ieee1275/init.c: ... to here. Update all users.
32863 * kern/powerpc/ieee1275/cmain.c: Move from here ...
32864 * kern/ieee1275/cmain.c: ... to here. Update all users.
32866 * kern/powerpc/ieee1275/openfw.c: Move from here ...
32867 * kern/ieee1275/openfw.c: ... to here. Update all users.
32869 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
32870 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
32872 2008-04-10 Pavel Roskin <proski@gnu.org>
32874 * configure.ac: Always use "_cv_" in cache variables for
32875 compatibility with Autoconf 2.62.
32877 2008-04-07 Robert Millan <rmh@aybabtu.com>
32879 Revert grub/machine/init.h addition by Pavel (since it breaks on
32880 i386-ieee1275 and others):
32881 * util/i386/pc/misc.c: Remove grub/machine/init.h.
32882 * util/powerpc/ieee1275/misc.c: Likewise.
32884 2008-04-07 Robert Millan <rmh@aybabtu.com>
32886 * util/grub-probe.c (probe): Improve error message.
32888 2008-04-07 Robert Millan <rmh@aybabtu.com>
32890 * util/biosdisk.c (read_device_map): Skip devices that don't exist
32891 (this prevents the presence of a bogus entry from ruining the whole
32894 2008-04-06 Pavel Roskin <proski@gnu.org>
32896 * util/biosdisk.c: Include grub/util/biosdisk.h.
32897 * util/grub-fstest.c (execute_command): Make static.
32898 * util/grub-mkdevicemap.c (check_device): Likewise.
32899 * util/i386/pc/misc.c: Include grub/machine/init.h.
32900 * util/powerpc/ieee1275/misc.c: Likewise.
32901 * util/lvm.c: Include grub/util/lvm.h.
32902 * util/misc.c: Include grub/kernel.h, grub/misc.h and
32904 * util/raid.c: Include grub/util/raid.h.
32905 (grub_util_getdiskname): Make static.
32907 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
32908 grub_hostfs_fini(), as they are called from grub_init_all() and
32909 grub_fini_all() respectively. This fixes an infinite loop in
32910 grub-fstest due to double registration of hostfs.
32911 Reported by Christian Franke <Christian.Franke@t-online.de>
32913 2008-04-05 Pavel Roskin <proski@gnu.org>
32915 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
32916 all 8 functions. Otherwise, probe function 0 only.
32918 2008-04-04 Pavel Roskin <proski@gnu.org>
32920 * commands/lspci.c (grub_lspci_iter): Print the bus number
32923 * commands/lspci.c (grub_pci_classes): Fix typos.
32924 (grub_lspci_iter): Don't print func twice. Print vendor ID
32925 before device ID, as it's normally done.
32927 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
32928 Fix signedness warnings.
32929 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
32931 * util/ieee1275/get_disk_name.c: Include config.h so that
32932 _GNU_SOURCE is defined and getline() is declared. Mark an
32933 unused argument as such. Fix a signedness warning.
32935 2008-04-02 Pavel Roskin <proski@gnu.org>
32937 * genkernsyms.sh.in: Use more robust assignments for CC and
32938 srcdir. Quote srcdir.
32939 * gensymlist.sh.in: Likewise. Assert at the compile time that
32940 the symbol table is not empty.
32942 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
32943 * fs/cpio.c (grub_cpio_read): Likewise.
32945 2008-04-01 Pavel Roskin <proski@gnu.org>
32947 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
32948 * disk/host.c (grub_host_open): Likewise.
32949 * disk/loopback.c (grub_loopback_open): Likewise.
32950 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
32951 disk->id as in disk/host.c, not a multi-character constant.
32953 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
32954 later is obsolete, potentially dangerous and sets a bad example.
32955 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
32956 * util/misc.c (grub_util_get_image_size): Likewise.
32958 * disk/loopback.c (options): Improve help for "--partitions".
32960 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
32961 options to align them with the short options, e.g. "echo -e".
32963 2008-03-31 Bean <bean123ch@gmail.com>
32965 * video/reader/png.c (grub_png_data): New member is_16bit and
32967 (grub_png_decode_image_header): Detect 16 bit png image.
32968 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
32969 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
32970 (grub_video_reader_png): Release memory occupied by image_data.
32972 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
32974 (grub_nfs_mount): Skip the test for sector per cluster.
32976 * include/grub/ntfs.h (MAX_SPC): Removed.
32978 2008-03-31 Bean <bean123ch@gmail.com>
32980 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
32981 (grub_probe_SOURCES): Add fs/afs.c.
32982 (grub_fstest_SOURCES): Likewise.
32983 (afs_mod_SOURCES): New variable.
32984 (afs_mod_CFLAGS): Likewise.
32985 (afs_mod_LDFLAGS): Likewise.
32987 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
32988 (grub_emu_SOURCES): Likewise.
32990 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32992 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32994 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32996 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32998 * fs/afs.c: New file.
33000 2008-03-30 Pavel Roskin <proski@gnu.org>
33002 * disk/host.c: Include grub/misc.h to fix a warning.
33003 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
33004 warnings about implicit declarations.
33006 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
33008 * include/grub/i386/loader.h: Change declaration of
33009 grub_linux_boot() to match what grub_loader_set() expects.
33010 * util/getroot.c (grub_guess_root_device): Return const char* to
33012 * util/grub-probe.c (probe): Fix a warning about uninitialized
33013 abstraction_name variable.
33014 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
33015 second argument as unused to fix a warning.
33017 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
33018 missing grub_error() call.
33020 * util/update-grub_lib.in: Define datarootdir, since Autoconf
33021 2.60 and newer uses it to define datadir.
33023 * commands/sleep.c: Fix warning about implicit declaration.
33024 * disk/memdisk.c: Likewise.
33025 * loader/aout.c: Likewise.
33026 * loader/i386/bsd_normal.c: Likewise.
33027 * util/grub-probe.c: Likewise.
33029 * commands/i386/cpuid.c (has_longmode): Make static.
33030 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
33031 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
33033 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
33034 GDT. This is more robust, as %ds can change.
33035 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
33036 calling real_to_prot().
33037 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
33039 2008-03-28 Pavel Roskin <proski@gnu.org>
33041 * kern/i386/pc/startup.S: Assert that uncompressed functions
33042 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
33043 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
33044 code, as they push parts of the code (error handlers) beyond
33045 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
33046 code as correctness and size.
33048 2008-03-28 Pavel Roskin <proski@gnu.org>
33050 * kern/i386/pc/startup.S
33051 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
33052 data block address to the real mode, keep offset minimal. This
33053 works around a bug in AWARD BIOS on old Athlon systems, which
33054 makes CD detection hang.
33056 2008-03-26 Pavel Roskin <proski@gnu.org>
33058 * normal/color.c (grub_parse_color_name_pair): Make `name' a
33060 * include/grub/normal.h: Add grub_parse_color_name_pair()
33063 2008-03-24 Bean <bean123ch@gmail.com>
33065 * disk/i386/pc/biosdisk.c (cd_start): Removed.
33066 (cd_count): Removed.
33067 (cd_drive): New variable.
33068 (grub_biosdisk_get_drive): Don't check for (cdN) device.
33069 (grub_biosdisk_call_hook): Likewise.
33070 (grub_biosdisk_iterate): Change cdrom detection method.
33071 (grub_biosdisk_open): Replace cd_start with cd_drive.
33072 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
33073 detect cdrom device.
33075 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
33077 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
33078 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
33079 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
33080 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
33081 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
33082 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
33083 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
33084 (grub_biosdisk_cdrp): New structure.
33085 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
33087 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
33089 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
33092 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
33095 2008-03-20 Robert Millan <rmh@aybabtu.com>
33097 Remove 2 TiB limit in ata.mod.
33098 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
33099 (grub_ata_dumpinfo): Print sector count with 0x%llx.
33100 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
33101 grub_uint64_t instead of grub_uint32_t.
33103 2008-03-05 Bean <bean123ch@gmail.com>
33105 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
33106 (grub_multiboot): Set boot device.
33108 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
33110 2008-03-02 Bean <bean123ch@gmail.com>
33112 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
33115 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
33117 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
33120 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
33123 * docs/fdl.texi: New file.
33125 * docs/mdate-sh: New file. Copied from gnulib.
33126 * docs/texinfo.tex: Likewise.
33128 * config.guess: Updated from gnulib.
33129 * install-sh: Likewise.
33131 2008-02-28 Robert Millan <rmh@aybabtu.com>
33133 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
33134 (aout_mod_SOURCES): New variable.
33135 (aout_mod_CFLAGS): Likewise.
33136 (aout_mod_LDFLAGS): Likewise.
33138 * conf/i386-ieee1275.rmk: Likewise.
33140 2008-02-28 Robert Millan <rmh@aybabtu.com>
33142 * util/update-grub.in: Reorganise terminal validity check. Accept
33143 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
33144 Based on suggestion by Franklin PIAT.
33146 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
33148 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
33150 * util/getroot.c (grub_util_check_block_device): New function that
33151 returns the given argument if it is a block device and returns NULL else.
33152 * util/grub-probe.c (argument_is_device): New variable.
33153 (probe): Promote device_name from a variable to an argument. Receive
33154 device_name from grub_util_check_block_device() if path is NULL and from
33155 grub_guess_root_device() else. Do not free() device_name anymore.
33156 (options): Introduce new parameter '-d, --device'.
33157 (main): Add description of the new parameter to the help screen.
33158 Rename path variable to argument. Set argument_is_device if the '-d'
33159 option is given. Pass argument to probe() depending on
33160 argument_is_device.
33162 2008-02-24 Bean <bean123ch@gmail.com>
33164 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
33165 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
33166 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
33167 (GRUB_ISO9660_VOLDESC_PART): Likewise.
33168 (GRUB_ISO9660_VOLDESC_END): Likewise.
33169 (grub_iso9660_primary_voldesc): New member escape.
33170 (grub_iso9660_data): New member joliet.
33171 (grub_iso9660_convert_string): New function.
33172 (grub_iso9660_mount): Detect joliet extension.
33173 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
33174 (grub_iso9660_iso9660_label): Likewise.
33176 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
33177 (grub_setup_SOURCES): Add fs/udf.c.
33178 (grub_fstest_SOURCES): Likewise.
33179 (udf_mod_SOURCES): New variable.
33180 (udf_mod_CFLAGS): Likewise.
33181 (udf_mod_LDFLAGS): Likewise.
33183 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
33184 (grub_emu_SOURCES): Likewise.
33186 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33188 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33190 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33192 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33194 * fs/udf.c: New file.
33196 2008-02-24 Robert Millan <rmh@aybabtu.com>
33198 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
33199 (normal/lexer.c_DEPENDENCIES): New variables.
33200 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33201 (normal/lexer.c_DEPENDENCIES): Likewise.
33202 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
33203 (normal/lexer.c_DEPENDENCIES): Likewise.
33204 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
33205 (normal/lexer.c_DEPENDENCIES): Likewise.
33206 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33207 (normal/lexer.c_DEPENDENCIES): Likewise.
33208 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33209 (normal/lexer.c_DEPENDENCIES): Likewise.
33211 2008-02-23 Robert Millan <rmh@aybabtu.com>
33213 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
33214 since they were intended to be in hex. This didn't break previously
33215 because of a bug in gpt_partition_map_iterate() (see below).
33217 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
33218 when checking the validity of GPT header.
33219 Remove `partno', since it always provides the same information as `i'.
33221 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
33223 * include/grub/efi/time.h: Fix a wrong comment.
33225 2008-02-19 Pavel Roskin <proski@gnu.org>
33227 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
33230 2008-02-19 Bean <bean123ch@gmail.com>
33232 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
33233 (aout_mod_SOURCES): New variable.
33234 (aout_mod_CFLAGS): Likewise.
33235 (aout_mod_LDFLAGS): Likewise.
33236 (_bsd_mod_SOURCES): New variable.
33237 (_bsd_mod_CFLAGS): Likewise.
33238 (_bsd_mod_LDFLAGS): Likewise.
33239 (bsd_mod_SOURCES): New variable.
33240 (bsd_mod_CFLAGS): Likewise.
33241 (bsd_mod_LDFLAGS): Likewise.
33243 * include/grub/aout.h: New file.
33245 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
33247 * include/grub/i386/bsd.h: New file.
33249 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
33252 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
33253 function is called, so that it's possible to change it inside the hook.
33254 (grub_elf64_load): Likewise.
33255 (grub_elf_file): Don't close the file if elf header is not found.
33256 (grub_elf_close): Close the file if grub_elf_file fails (The new
33257 grub_elf_file won't close it).
33258 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
33259 (grub_elf64_size): Likewise.
33261 * kern/i386/loader.S (grub_unix_real_boot): New function.
33263 * loader/aout.c: New file.
33265 * loader/i386/bsd.c: New file.
33267 * loader/i386/bsd_normal.c: New file.
33269 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
33271 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
33272 can test other formats.
33274 2008-02-19 Robert Millan <rmh@aybabtu.com>
33276 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
33277 (grub_gpt_partition_type_empty): Redefine with macro from
33278 `<grub/gpt_partition.h>'.
33279 (gpt_partition_map_iterate): Adjust partition type comparison.
33281 Export `entry' as partmap-specific `part.data' struct.
33282 (grub_gpt_header, grub_gpt_partentry): Move from here ...
33284 * include/grub/gpt_partition.h (grub_gpt_header)
33285 (grub_gpt_partentry): ... to here (new file).
33287 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
33289 (grub_gpt_partition_type_bios_boot): New const variable, defined
33290 with macro from `<grub/gpt_partition.h>'.
33292 (setup): Replace `first_start' with `embed_region', which keeps
33293 track of the embed region (and is partmap-agnostic).
33295 Replace find_first_partition_start() with find_usable_region(),
33296 which finds a usable region for embedding using partmap-specific
33297 knowledge (supports PC/MSDOS and GPT).
33299 Fix all assumptions that the embed region start at sector 1, using
33300 `embed_region.start' from now on. Similarly, use `embed_region.end'
33301 rather than `first_start' to calculate available size.
33303 In grub_util_info() message, replace "into after the MBR" with an
33304 indication of the specific sector our embed region starts at.
33306 2008-02-19 Robert Millan <rmh@aybabtu.com>
33308 * DISTLIST: Replace `commands/ieee1275/halt.c' and
33309 `commands/ieee1275/reboot.c' with `commands/halt.c' and
33310 `commands/reboot.c'.
33311 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
33312 (halt_mod_SOURCES): Likewise.
33313 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
33314 (halt_mod_SOURCES): Likewise.
33316 2008-02-17 Christian Franke <franke@computer.org>
33318 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
33320 2008-02-17 Robert Millan <rmh@aybabtu.com>
33322 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
33323 set `first_start' to 0 for non-PC/MSDOS partition maps.
33325 2008-02-16 Robert Millan <rmh@aybabtu.com>
33327 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
33328 do not assume partition map is PC/MSDOS before performing checks that
33329 are specific to that layout.
33331 2008-02-13 Robert Millan <rmh@aybabtu.com>
33333 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
33334 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
33335 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
33337 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
33339 * configure.ac: Only a cosmetic change on the handling of
33340 -fno-stack-protector.
33342 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
33344 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
33345 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
33347 (grub_install_SOURCES): Add halt.mod and reboot.mod.
33348 (halt_mod_SOURCES): New variable.
33349 (halt_mod_CFLAGS): Likewise.
33350 (halt_mod_LDFLAGS): Likewise.
33351 (reboot_mod_SOURCES): Likewise.
33352 (reboot_mod_CFLAGS): Likewise.
33353 (reboot_mod_LDFLAGS): Likewise.
33355 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
33356 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
33358 (halt_mod_SOURCES): Likewise.
33359 (reboot_mod_SOURCES): Likewise.
33361 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
33362 commands/i386/pc/reboot.c by commands/reboot.c.
33363 (reboot_mod_SOURCES): Likewise.
33365 * commands/i386/pc/reboot.c: merge this file ...
33367 * commands/ieee1275/reboot.c: ... and this file ...
33369 * commands/reboot.c: ... to this file.
33370 Add some precompiler directive to include the correct header for
33373 * commands/ieee1275/halt.c: move this file ...
33375 * commands/halt.c: ... to here.
33376 Add some precompiler directive to include the correct header for
33379 * include/grub/efi/efi.h (grub_reboot): New function declaration.
33380 (grub_halt): Likewise.
33382 * kern/efi/efi.c (grub_reboot): New function.
33383 (grub_halt): Likewise.
33385 2008-02-12 Robert Millan <rmh@aybabtu.com>
33387 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
33388 /dev (like it is done for /dev/mapper). This doesn't provide support
33389 for EVMS, but at least it is now easy to identify the problem when it
33392 2008-02-11 Robert Millan <rmh@aybabtu.com>
33394 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
33395 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
33396 comparing it with -1, not 0.
33398 2008-02-10 Robert Millan <rmh@aybabtu.com>
33400 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
33402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33403 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
33405 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
33406 `disk/lvm.c' to the end of the list.
33407 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33408 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33410 2008-02-10 Robert Millan <rmh@aybabtu.com>
33412 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
33413 grub_print_error() instead. This will let user know why we're entering
33415 Based on suggestions from Sam Morris.
33417 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
33419 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
33420 on remaining N args, instead of "--" arg N times.
33422 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
33424 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
33425 (fill_with_default_glyph): Changed to use unknown_glyph for fill
33426 pattern for unknown glyphs.
33428 2008-02-09 Robert Millan <rmh@aybabtu.com>
33430 * configure.ac: Probe for `help2man'.
33431 * Makefile.in (builddir): New variable.
33432 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
33433 or otherwise add a few flags/options to it.
33434 (install-local): For every executable utility or script that is
33435 installed, invoke $(HELP2MAN) to install a manpage based on --help
33438 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
33439 that it doesn't prevent --help from working in build tree.
33441 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
33442 with `bug-grub@gnu.org'.
33443 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
33444 * util/update-grub.in (usage): New function.
33445 Implement proper argument check, with support for --help and --version
33446 (as well as existing -y).
33448 2008-02-09 Christian Franke <franke@computer.org>
33450 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
33451 avoid overwriting previous output.
33452 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
33454 2008-02-09 Robert Millan <rmh@aybabtu.com>
33456 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
33459 2008-02-09 Robert Millan <rmh@aybabtu.com>
33461 * commands/sleep.c: New file.
33462 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
33463 (sleep_mod_SOURCES): New variable.
33464 (sleep_mod_CFLAGS): Likewise.
33465 (sleep_mod_LDFLAGS): Likewise.
33467 2008-02-09 Robert Millan <rmh@aybabtu.com>
33469 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
33470 situations in which we can deduce the RAID size and the superblock
33473 2008-02-09 Robert Millan <rmh@aybabtu.com>
33475 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
33476 and return a grub_diskmemberlist_t composed of LVM physical volumes.
33477 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
33479 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
33480 and return a grub_diskmemberlist_t composed of physical array members.
33481 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
33483 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
33485 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
33486 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
33487 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
33489 * util/grub-probe.c (probe): Move partmap probing code from here ...
33490 (probe_partmap): ... to here.
33491 (probe): Use probe_partmap() once for the disk we're probing, and
33492 additionally, when such disk contains a memberlist() struct member,
33493 once for each disk that is contained in the structure returned by
33496 2008-02-09 Robert Millan <rmh@aybabtu.com>
33498 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
33499 environment variable to 'all' in order to obtain debug output from
33501 * util/i386/pc/grub-setup.c (main): Likewise.
33503 2008-02-08 Robert Millan <rmh@aybabtu.com>
33505 * disk/raid.c (grub_raid_scan_device): Check for
33506 `array->device[sb.this_disk.number]' rather than for
33507 `array->device[sb.this_disk.number]->name', since the latter is not
33508 guaranteed to be accessible.
33510 2008-02-08 Robert Millan <rmh@aybabtu.com>
33512 * disk/raid.c: Update copyright.
33513 * fs/cpio.c: Likewise.
33514 * include/grub/raid.h: Likewise.
33515 * loader/i386/pc/multiboot.c: Likewise.
33516 * util/hostfs.c: Likewise.
33518 2008-02-08 Robert Millan <rmh@aybabtu.com>
33520 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
33521 to a grub_disk_t array.
33522 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
33524 (grub_raid_scan_device): Replace `device[x].name' accesses with
33525 `device[x]->name'. Simplify initialization of `array->device[x]'.
33527 2008-02-08 Robert Millan <rmh@aybabtu.com>
33529 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
33530 grub_dprintf() calls.
33531 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
33534 2008-02-07 Christian Franke <franke@computer.org>
33536 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
33537 instead of fseek and ftell to support large files.
33538 (grub_hostfs_read): Likewise.
33540 2008-02-07 Robert Millan <rmh@aybabtu.com>
33542 Patch from Jeroen Dekkers.
33543 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
33544 failure, since successfully reading all array members might not be
33547 2008-02-06 Robert Millan <rmh@aybabtu.com>
33549 * util/grub-probe.c (probe): Simplify partmap probing (with the
33550 assumption that the first word up to the underscore equals to
33553 2008-02-06 Christian Franke <franke@computer.org>
33555 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
33556 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
33557 last block of a cpio or tar stream.
33558 Check for "TRAILER!!!" instead of any empty data
33559 block to detect last block of a cpio stream.
33560 (grub_cpio_dir): Fix constness of variable np.
33561 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
33562 cpio or tar trailer is detected. This fixes a crash
33563 on open of a non existing file.
33565 2008-02-05 Bean <bean123ch@gmail.com>
33567 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
33569 (grub_multiboot_load_elf64): Likewise.
33570 (grub_multiboot): Initialize mbi structure.
33572 * util/grub-fstest.c: Don't include unused header file script.h.
33574 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
33576 (grub_fstest_SOURCES): Likewise.
33578 2008-02-05 Robert Millan <rmh@aybabtu.com>
33580 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
33581 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
33582 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
33583 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
33585 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
33586 (translation_table): Replace hardcoded values with macros
33587 provided by `<grub/term.h>'.
33589 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
33590 (keyboard_map): Correct/add a few values, with macros provided
33591 by `<grub/term.h>'.
33592 (keyboard_map_shift): Zero values that don't differ from their
33593 `keyboard_map' equivalents.
33594 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
33595 Discard the second scan code that is always sent by Caps lock.
33596 Only use `keyboard_map_shift' when it provides a non-zero value,
33597 otherwise fallback to `keyboard_map'.
33599 2008-02-04 Bean <bean123ch@gmail.com>
33601 * Makefile.in (enable_grub_fstest): New variable.
33603 * conf/common.rmk (grub_fstest_init.lst): New rule.
33604 (grub_fstest_init.h): Likewise.
33605 (grub_fstest_init.c): Likewise.
33606 (util/grub-fstest.c_DEPENDENCIES): New variable.
33607 (grub_fstest_SOURCES): Likewise.
33609 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
33611 * util/grub-fstest.c: New file.
33613 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33615 Make grub-setup handle a separate root device.
33617 * util/i386/pc/grub-setup.c (setup): Always open the root device,
33618 so that the root device can be compared with the destination
33620 When embedding the core image, if the root and destination devices
33621 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
33623 When not embedding, set ROOT_DRIVE to 0xFF.
33625 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33627 Add support for having a grub directory in a different drive. This
33628 is still only the data handling part.
33630 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
33631 (codestart): Save %dh in GRUB_ROOT_DRIVE.
33632 (grub_root_drive): New variable.
33634 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
33635 instead of GRUB_BOOT_DRIVE to construct a device name. Set
33636 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
33639 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
33641 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
33643 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
33645 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
33646 is bogus, because PXE booting does not specify any drive
33649 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
33650 am not sure if this is really correct.
33652 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
33653 is always identical to the boot drive when booting from a CD.
33655 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
33657 (root_drive): New variable.
33658 (real_start): Unconditionally set %dh to ROOT_DRIVE.
33659 (setup_sectors): Push %dx right after popping it, because %dh will
33661 (copy_buffer): Restore %dx.
33663 2008-02-03 Robert Millan <rmh@aybabtu.com>
33665 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
33666 use `cdboot.img' for cdrom images.
33668 2008-02-03 Robert Millan <rmh@aybabtu.com>
33670 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
33671 only setup gfxterm when `font' command has succeeded.
33673 2008-02-03 Robert Millan <rmh@aybabtu.com>
33675 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
33676 (grub_rescue_cmd_multiboot_loader)
33677 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
33679 2008-02-03 Pavel Roskin <proski@gnu.org>
33681 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
33682 %edx and %esi from stack only after grub_gate_a20() is called.
33683 grub_gate_a20() clobbers %edx.
33685 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33687 * configure.ac (AC_INIT): Bumped to 1.96.
33689 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
33690 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
33691 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
33692 video/readers/png.c.
33694 2008-02-03 Bean <bean123ch@gmail.com>
33696 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
33697 (cdboot_img_SOURCES): New variable.
33698 (cdboot_img_ASFLAGS): New variable.
33699 (cdboot_img_LDFLAGS): New variable.
33701 * boot/i386/pc/cdboot.S: New file.
33703 * disk/i386/pc/biosdisk.c (cd_start): New variable.
33704 (cd_count): Likewise.
33705 (grub_biosdisk_get_drive): Add support for cd device.
33706 (grub_biosdisk_call_hook): Likewise.
33707 (grub_biosdisk_iterate): Likewise.
33708 (grub_biosdisk_open): Likewise.
33709 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
33710 (grub_biosdisk_rw): Support reading from cd device.
33711 (GRUB_MOD_INIT): Iterate cd devices.
33713 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
33714 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
33715 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
33717 * kern/i386/pc/init.c (make_install_device): Check for cd device.
33719 2008-02-02 Robert Millan <rmh@aybabtu.com>
33721 * commands/read.c: New file.
33722 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
33723 (read_mod_SOURCES): New variable.
33724 (read_mod_CFLAGS): Likewise.
33725 (read_mod_LDFLAGS): Likewise.
33727 2008-02-02 Robert Millan <rmh@aybabtu.com>
33729 * normal/main.c (grub_normal_execute): Check for `menu->size' when
33730 determining whether menu has to be displayed.
33732 2008-02-02 Marco Gerards <marco@gnu.org>
33734 * bus/pci.c: New file.
33736 * include/grub/pci.h: Likewise.
33738 * include/grub/i386/pc/pci.h: Likewise.
33740 * commands/lspci.c: Likewise.
33742 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
33744 (pci_mod_SOURCES): New variable.
33745 (pci_mod_CFLAGS): Likewise.
33746 (pci_mod_LDFLAGS): Likewise.
33747 (lspci_mod_SOURCES): Likewise.
33748 (lspci_mod_CFLAGS): Likewise.
33749 (lspci_mod_LDFLAGS): Likewise.
33751 2008-02-02 Bean <bean123ch@gmail.com>
33753 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
33754 (grub_ufs_get_file_block): Fix indirect block calculation problem.
33756 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
33757 (grub_xfs_btree_node): New structure.
33758 (grub_xfs_btree_root): New structure.
33759 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
33760 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
33761 (GRUB_XFS_EXTENT_BLOCK): Likewise.
33762 (GRUB_XFS_EXTENT_SIZE): Likewise.
33763 (grub_xfs_read_block): Support btree format type.
33764 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
33765 Use directory block as basic unit.
33767 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
33769 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
33770 __attribute__ ((__regparm__ (1))).
33772 2008-02-01 Robert Millan <rmh@aybabtu.com>
33774 Correct a mistake in previous commit.
33776 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
33778 (normal/command.c_DEPENDENCIES): New variable.
33780 2008-02-01 Robert Millan <rmh@aybabtu.com>
33782 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
33784 (normal/command.c_DEPENDENCIES): New variable.
33785 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
33786 * conf/i386-ieee1275.rmk: Likewise.
33787 * conf/i386-linuxbios.rmk: Likewise.
33788 * conf/i386-pc.rmk: Likewise.
33789 * conf/sparc64-ieee1275.rmk: Likewise.
33790 * conf/powerpc-ieee1275.rmk: Likewise.
33791 (grub_emu_SOURCES): Add `fs/fshelp.c'.
33793 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
33795 2008-02-01 Robert Millan <rmh@aybabtu.com>
33797 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
33798 call at beginning of function.
33800 2008-01-31 Pavel Roskin <proski@gnu.org>
33802 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
33803 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
33804 (grub_mkrescue_SOURCES): Likewise.
33805 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
33807 2008-01-30 Robert Millan <rmh@aybabtu.com>
33809 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
33810 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
33811 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
33812 (grub_probe_SOURCES): ... to here.
33814 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
33815 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
33816 * conf/i386-ieee1275.rmk: Likewise.
33817 * conf/i386-linuxbios.rmk: Likewise.
33818 * conf/powerpc-ieee1275.rmk: Likewise.
33820 2008-01-30 Tristan Gingold <gingold@free.fr>
33822 * kern/rescue.c: Silently accept empty lines.
33824 2008-01-29 Bean <bean123ch@gmail.com>
33826 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
33827 (real_code_2): Code cleanup and change comment style.
33828 (move_memory): Avoid using 32-bit address mode.
33830 2008-01-29 Bean <bean123ch@gmail.com>
33832 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
33833 (png_mod_SOURCES): New variable.
33834 (png_mod_CFLAGS): Likewise.
33835 (png_mod_LDFLAGS): Likewise.
33837 * video/readers/png.c: New file.
33839 2008-01-28 Robert Millan <rmh@aybabtu.com>
33841 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
33842 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
33843 `ifndef GRUB_MOD_GAP' hack.
33844 * util/elf/grub-mkimage.c (add_segments): Likewise.
33846 2008-01-27 Robert Millan <rmh@aybabtu.com>
33848 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
33849 `GRUB_MOD_GAP' for platforms in which it's not defined.
33850 * util/elf/grub-mkimage.c (add_segments): Likewise.
33852 2008-01-27 Robert Millan <rmh@aybabtu.com>
33854 Get grub-emu to build again (including parallel builds).
33856 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
33858 (util/grub-emu.c_DEPENDENCIES): ... this, ...
33859 (normal/execute.c_DEPENDENCIES): ... this, ...
33860 (grub-emu_DEPENDENCIES): ... and this.
33862 * conf/i386-efi.rmk: Likewise.
33863 * conf/i386-linuxbios.rmk: Likewise.
33864 * conf/i386-ieee1275.rmk: Likewise.
33865 * conf/powerpc-ieee1275.rmk: Likewise.
33866 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
33868 2008-01-27 Robert Millan <rmh@aybabtu.com>
33870 * NEWS: Add a few items.
33872 2008-01-27 Robert Millan <rmh@aybabtu.com>
33874 Fix parallel builds with grub-emu. Based on earlier commit for
33875 grub-probe and grub-setup.
33877 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33878 (util/grub-emu.c_DEPENDENCIES): ... this.
33879 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33880 (util/grub-emu.c_DEPENDENCIES): ... this.
33881 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33882 (util/grub-emu.c_DEPENDENCIES): ... this.
33883 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33884 (util/grub-emu.c_DEPENDENCIES): ... this.
33885 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33886 (util/grub-emu.c_DEPENDENCIES): ... this.
33888 2008-01-27 Pavel Roskin <proski@gnu.org>
33890 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
33891 to create a gap between _end and the modules added to the image
33892 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
33893 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
33894 * util/elf/grub-mkimage.c (add_segments): Likewise.
33896 2008-01-26 Pavel Roskin <proski@gnu.org>
33898 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
33899 just return an error.
33901 2008-01-26 Bean <bean123ch@gmail.com>
33903 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
33904 (grub_reiserfs_get_item): Save offset of the next item.
33905 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
33907 2008-01-25 Robert Millan <rmh@aybabtu.com>
33909 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
33910 make all filesystem sources appear together (possibly fixing omissions
33912 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33913 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33914 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33915 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33917 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
33919 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
33920 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33921 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
33922 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33924 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
33925 (probe): Add a sanity check to make sure of our ability to read
33926 requested files when probing for filesystem type.
33928 * genmk.rb: Update copyright year (2007).
33930 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
33931 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
33932 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
33933 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
33934 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
33935 : Remove function prototypes.
33937 2008-01-25 Robert Millan <rmh@aybabtu.com>
33939 Revert my previous commits (based on wrong assumption of how grub_errno
33942 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
33943 * kern/file.c (grub_file_open): Likewise.
33945 2008-01-24 Pavel Roskin <proski@gnu.org>
33947 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
33948 that hang if GRUB tries to setup colors.
33949 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
33950 colors for firmwares that don't support it.
33951 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
33952 Recognize Open Hack'Ware, set flags to work around its
33955 2008-01-24 Robert Millan <rmh@aybabtu.com>
33957 * kern/file.c (grub_file_open): Do not account previous failures of
33958 unrelated functions when grub_errno is checked for.
33959 Reported by Oleg Strikov.
33961 2008-01-24 Bean <bean123ch@gmail.com>
33963 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
33964 (grub_ufs_sblock): New member volume name.
33965 (grub_ufs_find_file): Fix string copy bug.
33966 (grub_ufs_label): Implement this function properly.
33968 * fs/hfs.c (grub_hfs_cnid_type): New enum.
33969 (grub_hfs_iterate_records): Use the correct file number for extents
33970 and catalog file. Fix problem in next index calculation.
33971 (grub_hfs_find_node): Replace recursive function call with loop.
33972 (grub_hfs_iterate_dir): Replace recursive function call with loop.
33974 2008-01-23 Robert Millan <rmh@aybabtu.com>
33976 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
33977 `<grub/symbol.h>' and `<grub/multiboot.h>'.
33978 (grub_multiboot2_real_boot): New function prototype.
33980 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
33981 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
33983 * kern/i386/ieee1275/init.c (grub_os_area_addr)
33984 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
33986 2008-01-23 Robert Millan <rmh@aybabtu.com>
33988 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
33989 #ifdef'ed out grub_printf().
33991 2008-01-23 Robert Millan <rmh@aybabtu.com>
33993 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
33994 grub_dprintf calls, since they make "debug=all" mode unusable.
33995 (grub_console_checkkey): Likewise.
33997 2008-01-23 Robert Millan <rmh@aybabtu.com>
33999 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34000 `term/i386/pc/at_keyboard.c'.
34001 (pkglib_MODULES): Add `serial.mod'.
34002 (serial_mod_SOURCES): New variable.
34003 (serial_mod_CFLAGS): Likewise.
34004 (serial_mod_LDFLAGS): Likewise.
34006 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
34007 `<grub/powerpc/ieee1275/console.h>'.
34008 (grub_keyboard_controller_init): New function prototype.
34009 (grub_console_checkkey): Likewise.
34010 (grub_console_getkey): Likewise.
34012 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
34015 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
34016 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
34018 2008-01-23 Robert Millan <rmh@aybabtu.com>
34020 * kern/i386/pc/init.c (make_install_device): When memdisk image is
34021 present, "(memdisk)/boot/grub" becomes the default prefix.
34023 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
34024 a memdisk tarball with all the modules. Add --overlay=DIR option that
34025 allows users to overlay additional files into the image.
34027 2008-01-23 Robert Millan <rmh@aybabtu.com>
34029 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
34030 and `machine/memory.h'.
34031 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
34032 (_multiboot_mod_SOURCES): New variable.
34033 (_multiboot_mod_CFLAGS): Likewise.
34034 (_multiboot_mod_LDFLAGS): Likewise.
34035 (multiboot_mod_SOURCES): Likewise.
34036 (multiboot_mod_CFLAGS): Likewise.
34037 (multiboot_mod_LDFLAGS): Likewise.
34039 * include/grub/i386/ieee1275/loader.h: New file.
34041 * include/grub/i386/ieee1275/machine.h: Likewise.
34043 * include/grub/i386/ieee1275/memory.h: Likewise.
34045 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
34046 variable declaration.
34047 (grub_os_area_size): Likewise.
34049 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
34050 (grub_lower_mem, grub_upper_mem): New variables.
34051 (grub_stop_floppy): New function (just to make
34052 grub_multiboot2_real_boot() happy).
34054 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
34055 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
34056 (grub_stop): New function.
34057 Include `"../realmode.S"' and `"../loader.S"'.
34059 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
34060 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
34062 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
34063 rely on grub_multiboot2_real_boot() for final boot.
34065 2008-01-22 Robert Millan <rmh@aybabtu.com>
34067 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
34068 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
34069 device that doesn't look like an SD card.
34070 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
34071 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
34072 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
34073 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
34076 2008-01-22 Robert Millan <rmh@aybabtu.com>
34078 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
34079 avoid claiming over our own code.
34081 2008-01-22 Bean <bean123ch@gmail.com>
34083 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
34084 (jpeg_mod_SOURCES): New variable.
34085 (jpeg_mod_CFLAGS): Likewise.
34086 (jpeg_mod_LDFLAGS): Likewise.
34088 * video/readers/jpeg.c : New file.
34090 2008-01-22 Bean <bean123ch@gmail.com>
34092 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
34093 there are no more items.
34095 2008-01-21 Robert Millan <rmh@aybabtu.com>
34097 * kern/mm.c (grub_mm_init_region): Improve debug message.
34099 2008-01-21 Robert Millan <rmh@aybabtu.com>
34101 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
34102 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
34104 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
34106 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
34107 Indicates start of upper memory.
34108 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
34109 (generate_image): Abort when image size is big enough to corrupt
34112 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
34113 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
34114 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
34115 instead of hardcoding 0xA0000.
34116 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
34117 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
34118 instead of hardcoding 0xA0000.
34120 2008-01-21 Robert Millan <rmh@aybabtu.com>
34122 * disk/memdisk.c (memdisk_size): New variable.
34123 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
34125 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
34126 image to dynamic memory.
34127 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
34128 `memdisk_size'. Free memdisk block.
34130 2008-01-21 Robert Millan <rmh@aybabtu.com>
34132 Fix detection of very small filesystems (like tar).
34134 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
34135 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
34136 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
34137 a problem with this disk).
34139 2008-01-21 Robert Millan <rmh@aybabtu.com>
34141 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
34142 on grub_biosdisk_rw_standard() error.
34144 2008-01-21 Robert Millan <rmh@aybabtu.com>
34146 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
34148 * kern/elf.c: Likewise.
34149 * kern/ieee1275/ieee1275.c: Likewise.
34150 * kern/powerpc/ieee1275/openfw.c: Likewise.
34151 * term/ieee1275/ofconsole.c: Likewise.
34153 2008-01-21 Robert Millan <rmh@aybabtu.com>
34155 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
34157 * include/grub/kernel.h (grub_arch_memdisk_addr)
34158 (grub_arch_memdisk_size): Moved from here ...
34160 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
34161 (grub_arch_memdisk_size): ... to here.
34163 2008-01-21 Robert Millan <rmh@aybabtu.com>
34165 Mostly based on bugfix from Bean.
34167 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
34168 attribute with hook() parameter.
34169 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
34171 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
34172 attribute with hook() parameter.
34173 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
34176 2008-01-21 Robert Millan <rmh@aybabtu.com>
34178 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
34179 (pkglib_MODULES): Add `memdisk.mod'.
34180 (memdisk_mod_SOURCES): New variable.
34181 (memdisk_mod_CFLAGS): Likewise.
34182 (memdisk_mod_LDFLAGS): Likewise.
34184 * disk/memdisk.c: New file.
34186 * include/grub/disk.h (grub_disk_dev_id): Add
34187 `GRUB_DISK_DEVICE_MEMDISK_ID'.
34189 * include/grub/i386/pc/kernel.h
34190 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
34191 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
34192 (grub_kernel_image_size): New variable declaration.
34193 (grub_total_module_size): Likewise.
34194 (grub_memdisk_image_size): Likewise.
34196 * include/grub/i386/pc/memory.h
34197 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
34199 * include/grub/kernel.h: Include `<grub/symbol.h>'.
34200 (grub_arch_memdisk_addr): New variable declaration.
34201 (grub_arch_memdisk_size): Likewise.
34203 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
34204 (grub_arch_memdisk_size): Likewise.
34206 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
34207 (codestart): Replace hardcoded `0x100000' with
34208 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
34210 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
34211 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
34212 not NULL, append the contents of the file it refers to, at the end of
34213 the compressed kernel image. Initialize `grub_memdisk_image_size'
34214 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
34215 (options): Add "memdisk"|'m' option.
34216 (main): Parse --memdisk|-m option, and pass user-provided path as
34217 parameter to generate_image().
34219 2008-01-20 Robert Millan <rmh@aybabtu.com>
34221 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
34222 grub_dprintf() calls from here ...
34223 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
34225 2008-01-20 Robert Millan <rmh@aybabtu.com>
34227 Fix detection of "real mode" when /options/real-mode? doesn't exist.
34229 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
34231 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
34232 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
34233 `GRUB_IEEE1275_FLAG_REAL_MODE'.
34234 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
34236 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
34237 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
34239 2008-01-19 Robert Millan <rmh@aybabtu.com>
34241 Get rid of confusing function (superseded by
34242 `grub_ieee1275_get_integer_property')
34243 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
34245 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
34247 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
34248 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
34249 in native endianness from grub_ieee1275_get_integer_property().
34251 2008-01-19 Robert Millan <rmh@aybabtu.com>
34253 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
34254 command after "shut-down", since implementations differ on which
34255 the command for halt is.
34257 2008-01-19 Robert Millan <rmh@aybabtu.com>
34259 * include/grub/i386/linuxbios/console.h: Add header protection.
34260 (grub_keyboard_controller_init): New function prototype.
34261 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
34262 (KEYBOARD_COMMAND_READ): Likewise.
34263 (KEYBOARD_COMMAND_WRITE): Likewise.
34264 (KEYBOARD_SCANCODE_SET1): Likewise.
34265 (grub_keyboard_controller_write): New function.
34266 (grub_keyboard_controller_read): Likewise.
34267 (grub_keyboard_controller_init): Likewise.
34269 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
34270 (grub_console_init): On coreboot/LinuxBIOS, call
34271 grub_keyboard_controller_init().
34273 2008-01-19 Robert Millan <rmh@aybabtu.com>
34275 PowerPC changes provided by Pavel Roskin.
34277 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
34278 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
34279 don't rely on cmain() doing it.
34280 * kern/i386/ieee1275/startup.S (_start): Store %eax in
34281 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
34283 2008-01-16 Robert Millan <rmh@aybabtu.com>
34285 * include/grub/i386/linuxbios/memory.h
34286 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
34287 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
34288 receive `table_header' as argument. Instead, probe for it in the
34289 known memory ranges where it can be present.
34290 (grub_available_iterate): Do not pass a fixed `table_header' address
34291 to grub_linuxbios_table_iterate().
34293 2008-01-15 Robert Millan <rmh@aybabtu.com>
34295 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
34296 * conf/i386-ieee1275.rmk: New file.
34297 * include/grub/i386/ieee1275/console.h: Likewise.
34298 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
34299 * include/grub/i386/ieee1275/kernel.h: Likewise.
34300 * include/grub/i386/ieee1275/time.h: Likewise.
34301 * kern/i386/ieee1275/init.c: Likewise.
34302 * kern/i386/ieee1275/startup.S: Likewise.
34304 2008-01-15 Robert Millan <rmh@aybabtu.com>
34306 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
34307 when pointers are 32-bit (but still do set it to one when they are
34310 2008-01-15 Robert Millan <rmh@aybabtu.com>
34312 * include/grub/ieee1275/ieee1275.h
34313 (grub_ieee1275_get_integer_property): New function prototype.
34315 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
34316 (grub_ieee1275_get_integer_property): New function. Wraps around
34317 grub_ieee1275_get_property() to handle endianness.
34319 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
34320 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
34322 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
34323 (grub_map): Likewise.
34324 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
34326 2008-01-15 Bean <bean123ch@gmail.com>
34328 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
34329 (grub_script_execute_cmdline): Reset grub_errno.
34331 * normal/main.c (read_config_file): Reset grub_errno.
34333 * normal/parse.y (script_init): New.
34334 (script): Move function and menuentry here.
34336 (command): Add delimiter at the end of command.
34337 (commands): Adjust to match the new command.
34338 (commandblock): Remove grub_script_lexer_record_start.
34339 (menuentry): Add grub_script_lexer_record_start, use the new commands.
34340 (if): Use the new commands.
34342 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
34344 2008-01-15 Robert Millan <rmh@aybabtu.com>
34346 * normal/menu.c (run_menu): Move timeout message from here ...
34347 (print_timeout): ... to here.
34348 (run_menu): Use print_timeout() once during initial draw to print
34349 the whole message, and again in every clock tick to update only
34350 the number of seconds.
34352 2008-01-15 Robert Millan <rmh@aybabtu.com>
34354 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
34355 actual size of `available' from grub_ieee1275_get_property(), and
34356 restrict parsing to that bound.
34358 2008-01-15 Christian Franke <franke@computer.org>
34360 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
34361 (argp_program_version): Remove variable.
34362 (argp_program_bug_address): Likewise.
34363 (options): Convert from struct argp_option to struct option.
34364 (struct arguments): Remove.
34365 (parse_opt): Remove.
34366 (usage): New function.
34367 (main): Replace struct args members by simple variables.
34368 Replace argp_parse() by getopt_long().
34369 Add switch to evaluate options.
34370 Add missing "(...)" around root_dev in prefix string.
34372 2008-01-14 Robert Millan <rmh@aybabtu.com>
34374 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
34375 for grub_ieee1275_exit(), in order to improve portability.
34377 2008-01-14 Robert Millan <rmh@aybabtu.com>
34379 * util/grub.d/10_linux.in (prefix): Define.
34380 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
34382 2008-01-13 Pavel Roskin <proski@gnu.org>
34384 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
34385 grub_errno if no errors have been detected.
34387 2008-01-12 Robert Millan <rmh@aybabtu.com>
34389 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
34390 (grub_util_get_dev_abstraction): New function prototype.
34392 * util/getroot.c: Include `<grub/util/getroot.h>'
34393 (grub_util_get_grub_dev): Move detection of abstraction type to ...
34394 (grub_util_get_dev_abstraction): ... here (new function).
34396 * util/grub-probe.c: Convert PRINT_* to an enum. Add
34397 `PRINT_ABSTRACTION'.
34398 (probe): Probe for abstraction type when requested.
34399 (main): Understand `--target=abstraction'.
34401 * util/i386/efi/grub-install.in: Add abstraction module to core
34402 image when it is found to be necessary.
34403 * util/i386/pc/grub-install.in: Likewise.
34404 * util/powerpc/ieee1275/grub-install.in: Likewise.
34406 * util/update-grub_lib.in (font_path): Return system path without
34407 converting to GRUB path.
34408 * util/update-grub.in: Convert system path returned by font_path()
34409 to a GRUB path. Use `grub-probe -t abstraction' to determine what
34410 abstraction module is needed for loading fonts (if any). Export
34411 that as `GRUB_PRELOAD_MODULES'.
34412 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
34415 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
34417 Remove some unused code from reiserfs.
34419 * fs/reiserfs.c (struct grub_reiserfs_key)
34420 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
34421 (struct grub_reiserfs_node_body): Removed.
34422 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
34424 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34426 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34428 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34430 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
34432 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
34434 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34435 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34436 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34438 2008-01-10 Robert Millan <rmh@aybabtu.com>
34440 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
34441 Determines if a file is garbage left by packaging systems, etc.
34442 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
34443 for processing /etc/grub.d scripts.
34444 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
34445 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
34446 as a condition for processing Linux images.
34448 2008-01-10 Pavel Roskin <proski@gnu.org>
34450 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
34451 to compile reiserfs.c on PowerPC.
34453 2008-01-10 Robert Millan <rmh@aybabtu.com>
34455 * kern/device.c (grub_device_iterate): Do not abort device iteration
34456 when one of the devices cannot be opened.
34457 * kern/disk.c (grub_disk_open): Do not account previous failures of
34458 unrelated functions when grub_errno is checked for.
34460 2008-01-08 Robert Millan <rmh@aybabtu.com>
34462 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
34463 `! grub_linux_is_bzimage', change order of address comparison to make
34464 it more intuitive, and improve "too big zImage" error message.
34466 2008-01-08 Robert Millan <rmh@aybabtu.com>
34468 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
34469 `$(update-grub_DATA)'.
34470 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
34473 2008-01-07 Robert Millan <rmh@aybabtu.com>
34475 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
34476 which instruction is modified by grub-setup during installation
34477 (since it wasn't obvious by only looking at this file).
34479 2008-01-07 Robert Millan <rmh@aybabtu.com>
34481 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
34482 listing actual TODO items.
34484 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34486 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
34488 (grub_reiserfs_get_key_offset): Likewise.
34489 (grub_reiserfs_set_key_offset): Likewise.
34490 (grub_reiserfs_set_key_type): Likewise.
34491 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
34493 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
34494 better to remove the bitfield version completely.
34496 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34498 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
34499 allocated from the heap, due to the fshelp implementation.
34500 (grub_reiserfs_dir): Free NODE, due to the same reason.
34502 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34504 Mostly from Vincent Pelletier:
34506 * fs/reiserfs.c: New file.
34508 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
34509 (reiserfs_mod_SOURCES): New variable.
34510 (reiserfs_mod_CFLAGS): Likewise.
34511 (reiserfs_mod_LDFLAGS): Likewise.
34513 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
34514 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
34515 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
34518 2008-01-06 Robert Millan <rmh@aybabtu.com>
34520 * normal/color.c: Remove `<grub/env.h>'.
34522 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
34524 * include/grub/normal.h: Include <grub/env.h>.
34526 2008-01-05 Robert Millan <rmh@aybabtu.com>
34528 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
34529 usage example with `(hd0,1)'.
34530 Reported by Samuel Thibault.
34532 2008-01-05 Robert Millan <rmh@aybabtu.com>
34534 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
34535 (grub_linux_boot_zimage): Rename to ...
34536 (grub_linux_boot): ... this.
34537 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
34538 (grub_linux_boot_zimage): Conditionalize zImage copy.
34540 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
34541 (grub_linux_boot_bzimage): Remove prototype.
34542 (grub_linux_boot_zimage): Rename to ...
34543 (grub_linux_boot): ... this.
34545 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
34546 (grub_linux_boot): Remove function.
34548 2008-01-05 Robert Millan <rmh@aybabtu.com>
34550 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
34551 (grub_env_write_color_highlight): Likewise.
34552 (grub_wait_after_message): Likewise.
34554 * normal/color.c: New file.
34556 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34557 (normal_mod_DEPENDENCIES): Likewise.
34559 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34560 (normal_mod_DEPENDENCIES): Likewise.
34562 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34563 (normal_mod_DEPENDENCIES): Likewise.
34565 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34566 (normal_mod_DEPENDENCIES): Likewise.
34568 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
34569 for waiting after a message is printed.
34570 * normal/main.c (read_config_file): Likewise.
34571 (grub_normal_init): Register grub_env_write_color_normal() and
34572 grub_env_write_color_highlight() hooks. Mark `color_normal' and
34573 `color_highlight' variables as global.
34575 * normal/menu.c (grub_wait_after_message): New function.
34576 (grub_color_menu_normal): New variable. Replaces ...
34577 (GRUB_COLOR_MENU_NORMAL): ... this macro.
34578 (grub_color_menu_highlight): New variable. Replaces ...
34579 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
34580 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
34581 `GRUB_TERM_COLOR_STANDARD'.
34582 (print_message): Use `grub_setcolorstate' to reload colors. Rename
34583 `normal_code' and `highlight_code' to `old_color_normal' and
34584 `old_color_highlight', respectively.
34585 (grub_menu_init_page): Update colors when drawing the menu, based on
34586 `menu_color_normal' and `menu_color_highlight' variables.
34587 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
34588 a message is printed.
34590 2008-01-05 Robert Millan <rmh@aybabtu.com>
34592 * kern/env.c (grub_env_context_open): Propagate hooks for global
34593 variables to new context.
34595 * kern/main.c (grub_set_root_dev): Export `root' variable.
34597 2008-01-05 Robert Millan <rmh@aybabtu.com>
34599 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
34600 discs unconditionally, since udev and others have options to provide
34603 2008-01-05 Robert Millan <rmh@aybabtu.com>
34605 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
34607 2008-01-04 Christian Franke <franke@computer.org>
34609 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
34612 2008-01-03 Pavel Roskin <proski@gnu.org>
34614 * kern/i386/linuxbios/init.c: Put "void" to all function
34615 declarations with no arguments.
34616 * kern/powerpc/ieee1275/init.c: Likewise.
34617 * term/i386/pc/at_keyboard.c: Likewise.
34618 * term/i386/pc/vga_text.c: Likewise.
34619 * util/grub-mkdevicemap.c: Likewise.
34621 2008-01-02 Robert Millan <rmh@aybabtu.com>
34623 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
34624 message when loaded image is out of bounds.
34625 (grub_multiboot_load_elf64): Likewise.
34627 2008-01-02 Pavel Roskin <proski@gnu.org>
34629 * util/grub.d/10_linux.in: Try version without ".old" when
34630 looking for initrd. It's better to use initrd from the newer
34631 kernel of the same version than no initrd at all.
34633 2008-01-01 Robert Millan <rmh@aybabtu.com>
34635 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
34637 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
34639 * include/grub/video.h: Added grub_video_unmap_color and
34640 grub_video_get_active_render_target.
34641 (grub_video_adapter): Added unmap_color and get_active_render_target.
34643 * video/video.c: Added grub_video_unmap_color and
34644 grub_video_get_active_render_target.
34645 (grub_video_get_info): Changed method to accept NULL pointer as an
34646 argument to allow detection of active video adapter.
34648 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
34649 grub_video_vbe_unmap_color_int.
34650 Added grub_video_vbe_unmap_color and
34651 grub_video_vbe_get_active_render_target.
34652 (grub_video_vbe_adapter): Added unmap_color and
34653 get_active_render_target.
34655 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
34656 with grub_video_vbe_unmap_color_int.
34658 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
34659 (DEFAULT_NORMAL_COLOR): Likewise.
34660 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
34661 (DEFAULT_FG_COLOR): Removed.
34662 (DEFAULT_BG_COLOR): Likewise.
34663 (DEFAULT_CURSOR_COLOR): Changed value.
34664 (grub_virtual_screen): Added standard_color_setting,
34665 normal_color_setting, highlight_color_setting and term_color.
34666 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
34667 (bitmap_width): Added.
34668 (bitmap_height): Likewise.
34669 (bitmap): Likewise.
34670 (set_term_color): Likewise.
34671 (grub_virtual_screen_setup): Changed to use new terminal coloring
34673 (grub_gfxterm_init): Added init for bitmap.
34674 (grub_gfxterm_fini): Added destroy for bitmap.
34675 (redraw_screen_rect): Updated to use background bitmap and new
34677 (scroll_up): Added optimization for case when there is no bitmap.
34678 (grub_gfxterm_cls): Fixed to use correct background color.
34679 (grub_virtual_screen_setcolorstate): Changed to use new terminal
34681 (grub_virtual_screen_setcolor): Likewise.
34682 (grub_virtual_screen_getcolor): Added.
34683 (grub_gfxterm_background_image_cmd): Likewise.
34684 (grub_video_term): Added setcolor and getcolor.
34685 (MOD_INIT): Added registration of background_image command.
34686 (MOD_TERM): Added unregistration for background_image command.
34688 2007-12-30 Pavel Roskin <proski@gnu.org>
34690 * loader/multiboot_loader.c: Fix multiboot command
34691 unregistration. Fix all typos in the word "multiboot".
34693 2007-12-29 Pavel Roskin <proski@gnu.org>
34695 * util/grub.d/10_linux.in: Refactor search for initrd. Add
34696 support for initrd names used in Fedora.
34698 2007-12-26 Bean <bean123ch@gmail.com>
34700 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
34701 (cpio_mod_SOURCES): New variable.
34702 (cpio_mod_CFLAGS): Likewise.
34703 (cpio_mod_LDFLAGS): Likewise.
34705 * fs/cpio.c: New file.
34707 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
34709 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34711 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34713 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34715 2007-12-25 Robert Millan <rmh@aybabtu.com>
34717 * include/grub/term.h (struct grub_term): Add `getcolor' function.
34718 (grub_getcolor): New function.
34720 * kern/term.c (grub_getcolor): New function.
34721 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
34722 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
34723 (print_entry): Set normal and highlight colors to
34724 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
34725 respectively, before printing and restore them to old
34727 (grub_menu_init_page): Likewise. Fill an additional colored space
34728 that would otherwise be left blank.
34730 * term/efi/console.c (grub_console_getcolor): New function.
34731 (struct grub_console_term.getcolor): New variable.
34732 * term/i386/pc/console.c (grub_console_getcolor): New function.
34733 (struct grub_console_term.getcolor): New variable.
34734 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
34735 (struct grub_console_term.getcolor): New variable.
34737 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
34738 (struct grub_console_term.setcolor): Remove variable.
34739 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
34740 (struct grub_console_term.setcolor): Remove variable.
34741 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
34742 (struct grub_console_term.setcolor): Remove variable.
34743 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
34744 (struct grub_console_term.setcolor): Remove variable.
34746 2007-12-25 Robert Millan <rmh@aybabtu.com>
34748 * configure.ac: Search for possible unifont.hex locations, and
34749 define UNIFONT_HEX if found.
34751 * Makefile.in (UNIFONT_HEX): Define variable.
34752 (DATA): Rename to ...
34753 (PKGLIB): ... this. Update all users.
34754 (PKGDATA): New variable.
34755 (pkgdata_IMAGES): Rename to ...
34756 (pkglib_IMAGES): ... this. Update all users.
34757 (pkgdata_MODULES): Rename to ...
34758 (pkglib_MODULES): ... this. Update all users.
34759 (pkgdata_PROGRAMS): Rename to ...
34760 (pkglib_PROGRAMS): ... this. Update all users.
34761 (pkgdata_DATA): Rename to ...
34762 (pkglib_DATA): ... this. Update all users.
34763 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
34764 (unicode.pff, ascii.pff): New rules.
34765 (all-local): Add `$(PKGDATA)' dependency.
34766 (install-local): Process `$(PKGDATA)'.
34768 * util/update-grub_lib.in (font_path): Search for *.pff files in
34769 a few more locations, including `${pkgdata}'.
34771 2007-12-23 Robert Millan <rmh@aybabtu.com>
34773 Patch from Bean <bean123ch@gmail.com>:
34774 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
34777 2007-12-21 Bean <bean123ch@gmail.com>
34779 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
34780 (ntfscomp_mod_SOURCES): New variable.
34781 (ntfscomp_mod_CFLAGS): Likewise.
34782 (ntfscomp_mod_LDFLAGS): Likewise.
34784 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
34785 (grub_probe_SOURCES): Likewise.
34786 (grub_emu_SOURCES): Likewise.
34788 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34789 (grub_emu_SOURCES): Likewise.
34791 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34792 (grub_emu_SOURCES): Likewise.
34794 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34795 (grub_emu_SOURCES): Likewise.
34797 * fs/ntfs.c (grub_ntfscomp_func): New variable.
34798 (read_run_list): Renamed to grub_ntfs_read_run_list.
34799 (decomp_nextvcn): Moved to ntfscomp.c.
34800 (decomp_getch): Likewise.
34801 (decomp_get16): Likewise.
34802 (decomp_block): Likewise.
34803 (read_block): Likewise.
34804 (read_data): Partially moved to ntfscomp.c.
34805 (fixup): Change unsigned to grub_uint16_t.
34806 (read_mft): Change unsigned long to grub_uint32_t.
34807 (read_attr): Likewise.
34808 (read_data): Likewise.
34809 (read_run_data): Likewise.
34810 (read_run_list): Likewise.
34811 (read_mft): Likewise.
34813 * fs/ntfscomp.c: New file.
34815 * include/grub/ntfs.h: New file.
34817 2007-12-16 Robert Millan <rmh@aybabtu.com>
34819 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
34820 IDE disk check, since Linux is known to support 20 IDE disks.
34821 Reported by Colin Watson.
34823 2007-12-15 Bean <bean123ch@gmail.com>
34825 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
34826 (lnxboot_img_SOURCES): New variable.
34827 (lnxboot_img_ASFLAGS): Likewise.
34828 (lnxboot_img_LDFLAGS): Likewise.
34830 * boot/i386/pc/lnxboot.S: New file.
34832 2007-11-24 Pavel Roskin <proski@gnu.org>
34834 * configure.ac: Test if '--build-id=none' is supported by the
34835 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
34836 objcopy to generate incorrect binary files (binutils
34837 2.17.50.0.18-1 as shipped by Fedora 8).
34838 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
34839 linking, so that build ID doesn't break the test.
34841 2007-11-24 Pavel Roskin <proski@gnu.org>
34843 * include/grub/i386/time.h: use "void" in the argument list
34844 of grub_cpu_idle().
34845 * include/grub/powerpc/time.h: Likewise.
34846 * include/grub/sparc64/time.h: Likewise.
34848 2007-11-18 Christian Franke <franke@computer.org>
34850 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
34851 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
34852 This fixes the problem that function keys did not work in grub-emu.
34854 2007-11-18 Christian Franke <franke@computer.org>
34856 * disk/host.c (grub_host_open): Remove attribute unused from
34857 name parameter. Add check for "host". This fixes the problem
34858 that grub-emu does not find partitions.
34860 2007-11-18 Christian Franke <franke@computer.org>
34862 * util/hostfs.c (is_dir): New function.
34863 (grub_hostfs_dir): Handle missing dirent.d_type case.
34864 (grub_hostfs_read): Add missing fseek().
34865 (grub_hostfs_label): Clear label pointer. This fixes a crash
34866 of grub-emu on "ls (host)".
34868 2007-11-18 Christian Franke <franke@computer.org>
34870 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
34871 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
34872 to 64 bit boundary by default.
34874 2007-11-18 Bean <bean123ch@gmail.com>
34876 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
34877 (hexdump_mod_SOURCES): New variable.
34878 (hexdump_mod_CFLAGS): Likewise.
34879 (hexdump_mod_LDFLAGS): Likewise.
34881 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34883 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34885 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34889 * include/grub/hexdump.h: New file.
34891 * commands/hexdump.c: New file.
34893 2007-11-10 Robert Millan <rmh@aybabtu.com>
34895 * commands/i386/pc/play.c (beep_off): Switch order of arguments
34896 in grub_outb() calls.
34897 (beep_on): Likewise.
34899 2007-11-10 Christian Franke <franke@computer.org>
34901 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
34902 (grub_menu_run): Likewise.
34904 2007-11-10 Robert Millan <rmh@aybabtu.com>
34906 * include/grub/i386/efi/machine.h: New file.
34907 * include/grub/i386/linuxbios/machine.h: Likewise.
34908 * include/grub/i386/pc/machine.h: Likewise.
34909 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34910 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34912 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
34913 (serial_hw_io_addr): New variable.
34914 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
34915 instead of `(unsigned short *) 0x400'.
34917 2007-11-10 Bean <bean123ch@gmail.com>
34919 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
34921 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34923 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
34924 (vga_mod_SOURCES): Added.
34925 (vga_mod_CFLAGS): Likewise.
34926 (vga_mod_LDFLAGS): Likewise.
34928 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
34930 (set_map_mask): Likewise.
34931 (set_read_map): Likewise.
34932 (set_read_address): Likewise.
34933 (vga_font): Removed variable.
34934 (get_vga_glyph): Removed function.
34935 (invalidate_char): Likewise.
34936 (write_char): Changed to use grub_font_get_glyph() for font
34938 (grub_vga_putchar): Likewise.
34939 (grub_vga_getcharwidth): Likewise.
34941 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34943 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
34945 (pxeboot_img_LDFLAGS): Likewise.
34946 (diskboot_img_LDFLAGS): Likewise.
34947 (kernel_img_LDFLAGS): Likewise.
34949 2007-11-06 Robert Millan <rmh@aybabtu.com>
34951 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
34952 in grub_outb() calls.
34953 (serial_hw_init): Likewise.
34955 2007-11-05 Robert Millan <rmh@aybabtu.com>
34957 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
34958 spaces. Skip non-regular files.
34960 2007-11-05 Robert Millan <rmh@aybabtu.com>
34962 * kern/disk.c (grub_disk_firmware_fini)
34963 (grub_disk_firmware_is_tainted): New variables.
34965 * include/grub/disk.h (grub_disk_firmware_fini)
34966 (grub_disk_firmware_is_tainted): Likewise.
34968 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
34969 (grub_disk_biosdisk_fini): ... to here.
34970 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
34971 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
34972 is set. Register grub_disk_biosdisk_fini() in
34973 `grub_disk_firmware_fini'.
34975 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
34976 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
34977 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
34978 to finish existing firmware disk interface.
34980 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
34981 (ata_mod_SOURCES): New variable.
34982 (ata_mod_CFLAGS): Likewise.
34983 (ata_mod_LDFLAGS): Likewise.
34985 2007-11-05 Robert Millan <rmh@aybabtu.com>
34987 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
34988 (grub_ata_wait): Reimplement using grub_millisleep().
34990 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
34991 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
34993 2007-11-03 Marco Gerards <marco@gnu.org>
34995 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
34996 (CRTC_ADDR_PORT): New macro.
34997 (CRTC_DATA_PORT): Likewise.
34998 (CRTC_CURSOR): Likewise.
34999 (CRTC_CURSOR_ADDR_HIGH): Likewise.
35000 (CRTC_CURSOR_ADDR_LOW): Likewise.
35001 (update_cursor): New function.
35002 (grub_console_real_putchar): Call `update_cursor'.
35003 (grub_console_gotoxy): Likewise.
35004 (grub_console_cls): Set the default color when clearing the
35006 (grub_console_setcursor): Implemented.
35008 2007-11-03 Marco Gerards <marco@gnu.org>
35010 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
35012 (grub_ata_pio_write): Likewise.
35014 (grub_atapi_identify): Wait after issuing an ATA command.
35015 (grub_atapi_packet): Likewise.
35016 (grub_ata_identify): Likewise.
35017 (grub_ata_readwrite): Likewise.
35019 2007-11-03 Marco Gerards <marco@gnu.org>
35021 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
35022 (grub_ata_pio_write): Likewise.
35023 (grub_ata_readwrite): Use `grub_error', instead of
35024 returning `grub_errno'.
35026 2007-11-03 Marco Gerards <marco@gnu.org>
35028 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
35029 grub_ata_pio_write once for every single sector, instead of for
35032 2007-10-31 Robert Millan <rmh@aybabtu.com>
35034 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
35036 * conf/i386-linuxbios.rmk: New file.
35038 * kern/i386/pc/hardware.c: Likewise.
35039 * term/i386/pc/at_keyboard.c: Likewise.
35040 * term/i386/pc/vga_text.c: Likewise.
35042 * include/grub/i386/linuxbios/boot.h: Likewise.
35043 * include/grub/i386/linuxbios/console.h: Likewise.
35044 * include/grub/i386/linuxbios/init.h: Likewise.
35045 * include/grub/i386/linuxbios/kernel.h: Likewise.
35046 * include/grub/i386/linuxbios/loader.h: Likewise.
35047 * include/grub/i386/linuxbios/memory.h: Likewise.
35048 * include/grub/i386/linuxbios/serial.h: Likewise.
35049 * include/grub/i386/linuxbios/time.h: Likewise.
35051 * kern/i386/linuxbios/init.c: Likewise.
35052 * kern/i386/linuxbios/startup.S: Likewise.
35053 * kern/i386/linuxbios/table.c: Likewise.
35055 2007-10-31 Marco Gerards <marco@gnu.org>
35057 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
35058 (ata_mod_SOURCES): New variable.
35059 (ata_mod_CFLAGS): Likewise.
35060 (ata_mod_LDFLAGS): Likewise.
35062 * disk/ata.c: New file.
35064 * include/grub/disk.h (grub_disk_dev_id): Add
35065 `GRUB_DISK_DEV_ATA_ID'.
35067 2007-10-31 Robert Millan <rmh@aybabtu.com>
35069 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
35070 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
35072 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
35073 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
35075 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
35078 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
35080 2007-10-27 Robert Millan <rmh@aybabtu.com>
35082 * include/grub/types.h (ULONG_MAX): Define macro.
35084 2007-10-22 Robert Millan <rmh@aybabtu.com>
35086 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
35088 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
35090 2007-10-22 Robert Millan <rmh@aybabtu.com>
35092 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
35093 (pkgdata_MODULES): Add `biosdisk.mod'.
35094 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
35097 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
35098 (grub_biosdisk_init): Replace with ...
35099 (GRUB_MOD_INIT(biosdisk)): ... this.
35100 (grub_biosdisk_fini): Replace with ...
35101 (GRUB_MOD_FINI(biosdisk)): ... this.
35103 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
35104 (grub_machine_init): Remove call to grub_biosdisk_init().
35105 (grub_machine_fini): Remove call to grub_machine_fini().
35107 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
35109 2007-10-22 Robert Millan <rmh@aybabtu.com>
35111 * include/grub/time.h: New file.
35112 * include/grub/i386/time.h: Likewise.
35113 * include/grub/powerpc/time.h: Likewise.
35114 * include/grub/sparc64/time.h: Likewise.
35116 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
35118 (KERNEL_MACHINE_TIME_HEADER): ... this.
35119 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
35121 (KERNEL_MACHINE_TIME_HEADER): ... this.
35122 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
35124 (KERNEL_MACHINE_TIME_HEADER): ... this.
35126 * kern/i386/efi/init.c: Include `<grub/time.h>'.
35127 (grub_millisleep): New function.
35128 * kern/i386/pc/init.c: Include `<grub/time.h>'.
35129 (grub_millisleep): New function.
35130 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
35131 Remove `grub/machine/time.h' include.
35132 (grub_millisleep): New function.
35133 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
35134 Remove `grub/machine/time.h' include.
35135 (grub_millisleep): New function.
35137 * include/grub/misc.h (grub_div_roundup): New function.
35139 * kern/misc.c: Include `<grub/time.h>'.
35140 (grub_millisleep_generic): New function.
35142 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
35144 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
35146 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
35147 `machine/time.h'. Add `time.h'.
35148 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
35150 2007-10-21 Robert Millan <rmh@aybabtu.com>
35152 * include/grub/misc.h (grub_max): New function.
35154 2007-10-21 Robert Millan <rmh@aybabtu.com>
35156 * util/misc.c (grub_util_info): Call fflush() before returning.
35158 2007-10-20 Robert Millan <rmh@aybabtu.com>
35160 * genmk.rb (Image): Copy `extra_flags' from here ...
35161 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
35163 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
35164 to `argc' and `args' arguments.
35166 2007-10-17 Robert Millan <rmh@aybabtu.com>
35168 * kern/i386/loader.S: New file.
35170 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
35171 * kern/i386/loader.S (grub_linux_prot_size)... to here.
35172 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
35173 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
35174 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
35175 * kern/i386/loader.S (grub_linux_real_addr)... to here.
35176 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
35177 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
35178 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
35179 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
35180 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
35181 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
35182 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
35183 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
35185 * kern/i386/realmode.S: New file.
35187 * kern/i386/pc/startup.S (protstack): Moved from here ...
35188 * kern/i386/realmode.S (protstack)... to here.
35189 * kern/i386/pc/startup.S (gdt): Moved from here ...
35190 * kern/i386/realmode.S (gdt)... to here.
35191 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
35192 * kern/i386/realmode.S (prot_to_real)... to here.
35194 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
35195 `kern/i386/realmode.S'.
35197 2007-10-17 Robert Millan <rmh@aybabtu.com>
35199 * include/grub/i386/loader.h: New file.
35201 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
35202 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
35203 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
35204 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
35205 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
35206 * include/grub/i386/loader.h (grub_linux_prot_size)
35207 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
35208 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
35209 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
35210 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
35212 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
35214 2007-10-15 Robert Millan <rmh@aybabtu.com>
35216 * normal/misc.c (grub_normal_print_device_info): Do not probe for
35217 filesystem when dev->disk is unset.
35218 Do probe for filesystem even when dev->disk->has_partitions is set.
35219 In case a filesystem is found, always report it.
35220 In case it isn't, if dev->disk->has_partitions is set, report that
35221 a partition table was found instead of reporting that no filesystem
35222 could be identified.
35224 2007-10-12 Robert Millan <rmh@aybabtu.com>
35226 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
35227 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
35229 * include/grub/types.h (grub_host_to_target16): New macro.
35230 (grub_host_to_target32): Likewise.
35231 (grub_host_to_target64): Likewise.
35232 (grub_target_to_host16): Likewise.
35233 (grub_target_to_host32): Likewise.
35234 (grub_target_to_host64): Likewise.
35236 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
35237 Renamed from to ...
35238 (GRUB_MOD_ALIGN): ...this. Update all users.
35240 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
35241 grub_host_to_target32.
35242 Replace grub_be_to_cpu32 with grub_target_to_host32.
35243 (load_modules): Likewise.
35244 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
35245 Replace grub_be_to_cpu32 with grub_target_to_host32.
35246 Replace grub_cpu_to_be16 with grub_host_to_target16.
35247 Replace grub_cpu_to_be32 grub_host_to_target32.
35249 2007-10-12 Robert Millan <rmh@aybabtu.com>
35251 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
35252 * util/elf/grub-mkimage.c: ... here.
35254 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
35255 `util/powerpc/ieee1275/grub-mkimage.c'.
35257 2007-10-07 Robert Millan <rmh@aybabtu.com>
35259 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
35260 and make it easier to figure out.
35261 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
35262 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
35263 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
35264 leave us with less than HEAP_MIN_SIZE total heap.
35265 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
35267 2007-10-03 Robert Millan <rmh@aybabtu.com>
35269 * include/grub/i386/io.h: New file.
35270 * commands/i386/pc/play.c (inb): Removed.
35272 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35274 * term/i386/pc/serial.c (inb): Removed.
35276 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35278 * term/i386/pc/vga.c (inb): Removed.
35280 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35283 2007-10-02 Robert Millan <rmh@aybabtu.com>
35285 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
35286 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35287 Reported by Marcin Kurek.
35289 2007-09-07 Robert Millan <rmh@aybabtu.com>
35291 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
35292 SmartFirmware version updates (as released by Sven Luther), and avoid
35293 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
35294 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
35297 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35299 From Hitoshi Ozeki:
35300 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
35301 when merging two regions.
35303 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35305 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
35306 * normal/completion.c (grub_normal_do_completion): Likewise.
35307 Reported by Hitoshi Ozeki.
35309 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35311 Do not use devices at boot in chainloading.
35313 * loader/i386/pc/chainloader.c (boot_drive): New variable.
35314 (boot_part_addr): Likewise.
35315 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
35316 with BOOT_DRIVE and BOOT_PART_ADDR.
35317 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
35318 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
35320 2007-08-29 Robert Millan <rmh@aybabtu.com>
35322 Patch from Simon Peter <dn.tlp@gmx.net>:
35323 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
35324 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
35325 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
35326 util/i386/pc/grub-setup.c_DEPENDENCIES.
35327 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
35328 util/grub-probe.c_DEPENDENCIES.
35329 * conf/powerpc-ieee1275.rmk: Likewise.
35331 2007-08-28 Robert Millan <rmh@aybabtu.com>
35333 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
35334 to tell grub-mkdevicemap how to name devices.
35335 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
35338 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
35339 util/i386/get_disk_name.c.
35340 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
35341 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
35342 util/ieee1275/get_disk_name.c.
35344 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
35346 * DISTLIST: Add util/i386/get_disk_name.c and
35347 util/ieee1275/get_disk_name.c.
35349 * util/grub-mkdevicemap.c: Replace device naming logic with
35350 grub_util_get_disk_name() calls.
35352 2007-08-20 Robert Millan <rmh@aybabtu.com>
35354 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
35355 (so that it works for both plural and singular quantities).
35357 2007-08-05 Robert Millan <rmh@aybabtu.com>
35359 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
35360 so that [xz] isn't taken into account when determining order.
35362 2007-08-02 Marco Gerards <marco@gnu.org>
35364 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
35365 `include/multiboot2.h', `include/grub/elfload.h',
35366 `include/multiboot.h', `include/grub/multiboot.h',
35367 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
35368 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
35369 `kern/elf.c', `loader/multiboot_loader.c',
35370 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
35371 `loader/i386/pc/multiboot2.c',
35372 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
35373 `util/i386/pc/grub-mkrescue.in'. Remove
35374 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
35375 `include/grub/i386/pc/util/biosdisk.h' and
35376 `include/grub/powerpc/ieee1275/multiboot.h'.
35378 2007-08-02 Bean <bean123ch@gmail.com>
35380 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
35381 (ntfs_mod_SOURCES): New variable.
35382 (ntfs_mod_CFLAGS): Likewise.
35383 (ntfs_mod_LDFLAGS): Likewise.
35385 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
35386 (grub_probe_SOURCES): Likewise.
35387 (grub_emu_SOURCES): Likewise.
35389 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
35390 (grub_emu_SOURCES): Likewise.
35392 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
35393 (grub_emu_SOURCES): Likewise.
35395 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
35397 * fs/ntfs.c: New file.
35399 2007-08-02 Bean <bean123ch@gmail.com>
35401 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
35403 * file.h (grub_file): Likewise.
35405 * fshelp.h (grub_fshelp_read_file): Likewise.
35407 * util/i386/pc/grub-setup.c (setup): Likewise.
35408 (save_first_sector): Likewise.
35409 (save_blocklists): Likewise.
35411 * fs/affs.c (grub_affs_read_file): Likewise.
35413 * fs/ext2.c (grub_ext2_read_file): Likewise.
35415 * fs/fat.c (grub_fat_read_data): Likewise.
35417 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
35419 * fs/hfs.c (grub_hfs_read_file): Likewise.
35421 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
35423 * fs/jfs.c (grub_jfs_read_file): Likewise.
35425 * fs/minix.c (grub_minix_read_file): Likewise.
35427 * fs/sfs.c (grub_sfs_read_file): Likewise.
35429 * fs/ufs.c (grub_ufs_read_file): Likewise.
35431 * fs/xfs.c (grub_xfs_read_file): Likewise.
35433 * command/blocklist.c (read_blocklist): Likewise.
35434 (print_blocklist): Likewise.
35436 2007-08-02 Marco Gerards <marco@gnu.org>
35438 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
35441 * disk/host.c: New file.
35443 * util/hostfs.c: Likewise.
35445 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
35446 return `GRUB_ERR_BAD_FS'.
35447 * fs/sfs.c (grub_sfs_mount): Likewise.
35448 * fs/xfs.c (grub_xfs_mount): Likewise.
35450 * include/grub/disk.h (enum grub_disk_dev_id): Add
35451 `GRUB_DISK_DEVICE_HOST_ID'.
35453 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
35455 2007-07-24 Jerone Young <jerone@gmail.com>
35457 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
35458 modules for compilation.
35459 * conf/powerpc-ieee1275.rmk: Likewise.
35461 * include/multiboot.h: Move multiboot definitions to one file. Rename
35462 many definitions to not get grub specific.
35463 * include/multiboot2.h: Create header with multiboot 2 definitions.
35464 * include/grub/multiboot.h: Header for grub specific function
35465 prototypes and definitions.
35466 * include/grub/multiboot2.h: Likewise.
35467 * include/grub/multiboot_loader.h: Likewise.
35468 * include/grub/i386/pc/multiboot.h: Removed.
35469 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
35471 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
35472 and 2 to allow for one multiboot and module commands.
35473 * loader/multiboot2.c: Add multiboot2 functionality.
35474 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
35475 and definition names.
35476 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
35478 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
35479 ieee1275 specific multiboot2 code.
35481 * kern/i386/pc/startup.S: Change headers and definition names for
35482 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
35484 2007-07-22 Robert Millan <rmh@aybabtu.com>
35486 * geninitheader.sh: Process file specified in first parameter rather
35487 than hardcoding grub_modules_init.lst.
35488 * geninit.sh: Likewise. Also, construct header name dynamically rather
35489 than hardcoding grub_modules_init.h.
35491 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
35492 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
35493 grub_probe_init.[ch] and grub_setup_init.[ch].
35495 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
35496 grub_modules_init.h with grub_emu_init.h.
35497 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
35498 grub_probe_init.[ch] files.
35499 * conf/i386-efi.rmk: Likewise.
35500 * conf/i386-pc.rmk: Likewise.
35501 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
35502 grub_setup_init.[ch] files.
35504 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
35505 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
35506 to initialize modules rather than a list of hardcoded functions.
35507 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
35508 grub_init_all() to initialize modules rather than a list of hardcoded
35511 2007-07-22 Robert Millan <rmh@aybabtu.com>
35513 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
35514 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
35516 2007-07-22 Robert Millan <rmh@aybabtu.com>
35518 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
35519 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
35520 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
35521 flag when running on SmartFirmware.
35522 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
35523 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
35526 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
35527 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
35528 rather than decreasing it.
35530 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
35531 there's not enough space to do it, fail in the same way as when it
35532 can't be done because there are no partitions.
35534 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
35535 when nvsetenv failed.
35537 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
35539 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
35540 because this rule is automatically generated.
35541 (grub-mkrescue): Removed for the same reason as above.
35543 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
35545 Migrate to GNU General Public License Version 3.
35547 * COPYING: Replaced with the plain text version of GPLv3.
35549 * config.guess: Updated from gnulib.
35550 * config.sub: Likewise.
35552 * geninit.sh: Output a GPLv3 copyright notice.
35553 * geninitheader.sh: Likewise.
35554 * genmodsrc.sh: Likewise.
35555 * gensymlist.sh.in: Likewise.
35557 * boot/i386/pc/boot.S: Upgraded to GPLv3.
35558 * boot/i386/pc/diskboot.S: Likewise.
35559 * boot/i386/pc/pxeboot.S: Likewise.
35560 * commands/blocklist.c: Likewise.
35561 * commands/boot.c: Likewise.
35562 * commands/cat.c: Likewise.
35563 * commands/cmp.c: Likewise.
35564 * commands/configfile.c: Likewise.
35565 * commands/echo.c: Likewise.
35566 * commands/help.c: Likewise.
35567 * commands/ls.c: Likewise.
35568 * commands/search.c: Likewise.
35569 * commands/terminal.c: Likewise.
35570 * commands/test.c: Likewise.
35571 * commands/videotest.c: Likewise.
35572 * commands/i386/cpuid.c: Likewise.
35573 * commands/i386/pc/halt.c: Likewise.
35574 * commands/i386/pc/play.c: Likewise.
35575 * commands/i386/pc/reboot.c: Likewise.
35576 * commands/i386/pc/vbeinfo.c: Likewise.
35577 * commands/i386/pc/vbetest.c: Likewise.
35578 * commands/ieee1275/halt.c: Likewise.
35579 * commands/ieee1275/reboot.c: Likewise.
35580 * commands/ieee1275/suspend.c: Likewise.
35581 * disk/loopback.c: Likewise.
35582 * disk/lvm.c: Likewise.
35583 * disk/raid.c: Likewise.
35584 * disk/efi/efidisk.c: Likewise.
35585 * disk/i386/pc/biosdisk.c: Likewise.
35586 * disk/ieee1275/ofdisk.c: Likewise.
35587 * font/manager.c: Likewise.
35588 * fs/affs.c: Likewise.
35589 * fs/ext2.c: Likewise.
35590 * fs/fat.c: Likewise.
35591 * fs/fshelp.c: Likewise.
35592 * fs/hfs.c: Likewise.
35593 * fs/hfsplus.c: Likewise.
35594 * fs/iso9660.c: Likewise.
35595 * fs/jfs.c: Likewise.
35596 * fs/minix.c: Likewise.
35597 * fs/sfs.c: Likewise.
35598 * fs/ufs.c: Likewise.
35599 * fs/xfs.c: Likewise.
35600 * hello/hello.c: Likewise.
35601 * include/grub/acorn_filecore.h: Likewise.
35602 * include/grub/arg.h: Likewise.
35603 * include/grub/bitmap.h: Likewise.
35604 * include/grub/boot.h: Likewise.
35605 * include/grub/cache.h: Likewise.
35606 * include/grub/device.h: Likewise.
35607 * include/grub/disk.h: Likewise.
35608 * include/grub/dl.h: Likewise.
35609 * include/grub/elfload.h: Likewise.
35610 * include/grub/env.h: Likewise.
35611 * include/grub/err.h: Likewise.
35612 * include/grub/file.h: Likewise.
35613 * include/grub/font.h: Likewise.
35614 * include/grub/fs.h: Likewise.
35615 * include/grub/fshelp.h: Likewise.
35616 * include/grub/gzio.h: Likewise.
35617 * include/grub/hfs.h: Likewise.
35618 * include/grub/kernel.h: Likewise.
35619 * include/grub/loader.h: Likewise.
35620 * include/grub/lvm.h: Likewise.
35621 * include/grub/misc.h: Likewise.
35622 * include/grub/mm.h: Likewise.
35623 * include/grub/net.h: Likewise.
35624 * include/grub/normal.h: Likewise.
35625 * include/grub/parser.h: Likewise.
35626 * include/grub/partition.h: Likewise.
35627 * include/grub/pc_partition.h: Likewise.
35628 * include/grub/raid.h: Likewise.
35629 * include/grub/rescue.h: Likewise.
35630 * include/grub/script.h: Likewise.
35631 * include/grub/setjmp.h: Likewise.
35632 * include/grub/symbol.h: Likewise.
35633 * include/grub/term.h: Likewise.
35634 * include/grub/terminfo.h: Likewise.
35635 * include/grub/tparm.h: Likewise.
35636 * include/grub/types.h: Likewise.
35637 * include/grub/video.h: Likewise.
35638 * include/grub/efi/api.h: Likewise.
35639 * include/grub/efi/chainloader.h: Likewise.
35640 * include/grub/efi/console.h: Likewise.
35641 * include/grub/efi/console_control.h: Likewise.
35642 * include/grub/efi/disk.h: Likewise.
35643 * include/grub/efi/efi.h: Likewise.
35644 * include/grub/efi/pe32.h: Likewise.
35645 * include/grub/efi/time.h: Likewise.
35646 * include/grub/i386/linux.h: Likewise.
35647 * include/grub/i386/setjmp.h: Likewise.
35648 * include/grub/i386/types.h: Likewise.
35649 * include/grub/i386/efi/kernel.h: Likewise.
35650 * include/grub/i386/efi/loader.h: Likewise.
35651 * include/grub/i386/efi/time.h: Likewise.
35652 * include/grub/i386/pc/biosdisk.h: Likewise.
35653 * include/grub/i386/pc/boot.h: Likewise.
35654 * include/grub/i386/pc/chainloader.h: Likewise.
35655 * include/grub/i386/pc/console.h: Likewise.
35656 * include/grub/i386/pc/init.h: Likewise.
35657 * include/grub/i386/pc/kernel.h: Likewise.
35658 * include/grub/i386/pc/loader.h: Likewise.
35659 * include/grub/i386/pc/memory.h: Likewise.
35660 * include/grub/i386/pc/multiboot.h: Likewise.
35661 * include/grub/i386/pc/serial.h: Likewise.
35662 * include/grub/i386/pc/time.h: Likewise.
35663 * include/grub/i386/pc/vbe.h: Likewise.
35664 * include/grub/i386/pc/vbeblit.h: Likewise.
35665 * include/grub/i386/pc/vbefill.h: Likewise.
35666 * include/grub/i386/pc/vbeutil.h: Likewise.
35667 * include/grub/i386/pc/vga.h: Likewise.
35668 * include/grub/ieee1275/ieee1275.h: Likewise.
35669 * include/grub/ieee1275/ofdisk.h: Likewise.
35670 * include/grub/powerpc/libgcc.h: Likewise.
35671 * include/grub/powerpc/setjmp.h: Likewise.
35672 * include/grub/powerpc/types.h: Likewise.
35673 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
35674 * include/grub/powerpc/ieee1275/console.h: Likewise.
35675 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
35676 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
35677 * include/grub/powerpc/ieee1275/loader.h: Likewise.
35678 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
35679 * include/grub/powerpc/ieee1275/time.h: Likewise.
35680 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
35681 * include/grub/sparc64/libgcc.h: Likewise.
35682 * include/grub/sparc64/setjmp.h: Likewise.
35683 * include/grub/sparc64/types.h: Likewise.
35684 * include/grub/sparc64/ieee1275/console.h: Likewise.
35685 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
35686 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
35687 * include/grub/sparc64/ieee1275/time.h: Likewise.
35688 * include/grub/util/biosdisk.h: Likewise.
35689 * include/grub/util/getroot.h: Likewise.
35690 * include/grub/util/lvm.h: Likewise.
35691 * include/grub/util/misc.h: Likewise.
35692 * include/grub/util/raid.h: Likewise.
35693 * include/grub/util/resolve.h: Likewise.
35694 * io/gzio.c: Likewise.
35695 * kern/device.c: Likewise.
35696 * kern/disk.c: Likewise.
35697 * kern/dl.c: Likewise.
35698 * kern/elf.c: Likewise.
35699 * kern/env.c: Likewise.
35700 * kern/err.c: Likewise.
35701 * kern/file.c: Likewise.
35702 * kern/fs.c: Likewise.
35703 * kern/loader.c: Likewise.
35704 * kern/main.c: Likewise.
35705 * kern/misc.c: Likewise.
35706 * kern/mm.c: Likewise.
35707 * kern/parser.c: Likewise.
35708 * kern/partition.c: Likewise.
35709 * kern/rescue.c: Likewise.
35710 * kern/term.c: Likewise.
35711 * kern/efi/efi.c: Likewise.
35712 * kern/efi/init.c: Likewise.
35713 * kern/efi/mm.c: Likewise.
35714 * kern/i386/dl.c: Likewise.
35715 * kern/i386/efi/init.c: Likewise.
35716 * kern/i386/efi/startup.S: Likewise.
35717 * kern/i386/pc/init.c: Likewise.
35718 * kern/i386/pc/lzo1x.S: Likewise.
35719 * kern/i386/pc/startup.S: Likewise.
35720 * kern/ieee1275/ieee1275.c: Likewise.
35721 * kern/powerpc/cache.S: Likewise.
35722 * kern/powerpc/dl.c: Likewise.
35723 * kern/powerpc/ieee1275/cmain.c: Likewise.
35724 * kern/powerpc/ieee1275/crt0.S: Likewise.
35725 * kern/powerpc/ieee1275/init.c: Likewise.
35726 * kern/powerpc/ieee1275/openfw.c: Likewise.
35727 * kern/sparc64/cache.S: Likewise.
35728 * kern/sparc64/dl.c: Likewise.
35729 * kern/sparc64/ieee1275/init.c: Likewise.
35730 * kern/sparc64/ieee1275/openfw.c: Likewise.
35731 * loader/efi/chainloader.c: Likewise.
35732 * loader/efi/chainloader_normal.c: Likewise.
35733 * loader/i386/efi/linux.c: Likewise.
35734 * loader/i386/efi/linux_normal.c: Likewise.
35735 * loader/i386/pc/chainloader.c: Likewise.
35736 * loader/i386/pc/chainloader_normal.c: Likewise.
35737 * loader/i386/pc/linux.c: Likewise.
35738 * loader/i386/pc/linux_normal.c: Likewise.
35739 * loader/i386/pc/multiboot.c: Likewise.
35740 * loader/i386/pc/multiboot_normal.c: Likewise.
35741 * loader/powerpc/ieee1275/linux.c: Likewise.
35742 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35743 * normal/arg.c: Likewise.
35744 * normal/cmdline.c: Likewise.
35745 * normal/command.c: Likewise.
35746 * normal/completion.c: Likewise.
35747 * normal/execute.c: Likewise.
35748 * normal/function.c: Likewise.
35749 * normal/lexer.c: Likewise.
35750 * normal/main.c: Likewise.
35751 * normal/menu.c: Likewise.
35752 * normal/menu_entry.c: Likewise.
35753 * normal/misc.c: Likewise.
35754 * normal/parser.y: Likewise.
35755 * normal/script.c: Likewise.
35756 * normal/i386/setjmp.S: Likewise.
35757 * normal/powerpc/setjmp.S: Likewise.
35758 * normal/sparc64/setjmp.S: Likewise.
35759 * partmap/acorn.c: Likewise.
35760 * partmap/amiga.c: Likewise.
35761 * partmap/apple.c: Likewise.
35762 * partmap/gpt.c: Likewise.
35763 * partmap/pc.c: Likewise.
35764 * partmap/sun.c: Likewise.
35765 * term/gfxterm.c: Likewise.
35766 * term/terminfo.c: Likewise.
35767 * term/efi/console.c: Likewise.
35768 * term/i386/pc/console.c: Likewise.
35769 * term/i386/pc/serial.c: Likewise.
35770 * term/i386/pc/vesafb.c: Likewise.
35771 * term/i386/pc/vga.c: Likewise.
35772 * term/ieee1275/ofconsole.c: Likewise.
35773 * util/biosdisk.c: Likewise.
35774 * util/console.c: Likewise.
35775 * util/genmoddep.c: Likewise.
35776 * util/getroot.c: Likewise.
35777 * util/grub-emu.c: Likewise.
35778 * util/grub-mkdevicemap.c: Likewise.
35779 * util/grub-probe.c: Likewise.
35780 * util/lvm.c: Likewise.
35781 * util/misc.c: Likewise.
35782 * util/raid.c: Likewise.
35783 * util/resolve.c: Likewise.
35784 * util/update-grub.in: Likewise.
35785 * util/update-grub_lib.in: Likewise.
35786 * util/grub.d/00_header.in: Likewise.
35787 * util/grub.d/10_hurd.in: Likewise.
35788 * util/grub.d/10_linux.in: Likewise.
35789 * util/i386/efi/grub-install.in: Likewise.
35790 * util/i386/efi/grub-mkimage.c: Likewise.
35791 * util/i386/pc/grub-install.in: Likewise.
35792 * util/i386/pc/grub-mkimage.c: Likewise.
35793 * util/i386/pc/grub-mkrescue.in: Likewise.
35794 * util/i386/pc/grub-setup.c: Likewise.
35795 * util/i386/pc/misc.c: Likewise.
35796 * util/powerpc/ieee1275/grub-install.in: Likewise.
35797 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
35798 * util/powerpc/ieee1275/misc.c: Likewise.
35799 * video/bitmap.c: Likewise.
35800 * video/video.c: Likewise.
35801 * video/i386/pc/vbe.c: Likewise.
35802 * video/i386/pc/vbeblit.c: Likewise.
35803 * video/i386/pc/vbefill.c: Likewise.
35804 * video/i386/pc/vbeutil.c: Likewise.
35805 * video/readers/tga.c: Likewise.
35807 2007-07-02 Robert Millan <rmh@aybabtu.com>
35809 * conf/i386-efi.rmk: Replace obsolete reference to
35810 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
35811 with util/getroot.c.
35812 * conf/powerpc-ieee1275.rmk: Likewise.
35813 * conf/sparc64-ieee1275.rmk: Likewise.
35815 * util/grub-emu.c (main): Fix unchecked pointer handling.
35817 2007-07-02 Robert Millan <rmh@aybabtu.com>
35819 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
35820 invocation to fail, in order to support partition-less media.
35822 * util/i386/pc/grub-install.in: Likewise.
35824 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
35825 which fs or partmap modules are needed (akin to its sister scripts).
35827 Also use grub-probe to get rid of unportable /proc/mounts check.
35829 Print the same informational message that the other scripts do, before
35832 2007-06-23 Robert Millan <rmh@aybabtu.com>
35834 * util/update-grub_lib.in (font_path): New function. Determine whether
35835 a font file can be found and, if so, echo the GRUB path to it.
35837 * util/update-grub.in: Handle multiple terminals depending on user
35838 input, platform availability and font file presence. Propagate
35839 variables of our findings to /etc/grub.d/ children.
35841 * util/grub.d/00_header.in: Handle multiple terminals, based on
35842 environment setup by update-grub.
35844 2007-06-23 Robert Millan <rmh@aybabtu.com>
35846 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
35848 2007-06-21 Robert Millan <rmh@aybabtu.com>
35850 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
35851 indicate end of data section in kernel image.
35852 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
35853 GRUB_KERNEL_MACHINE_DATA_END.
35855 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
35857 * kern/i386/efi/startup.S: Likewise.
35859 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
35860 during image generation. Implement --prefix option to override this
35862 * util/i386/efi/grub-mkimage.c: Likewise.
35864 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
35865 code to make path relative to its root into a separate function.
35867 * util/i386/pc/grub-install.in: Use newly provided
35868 make_system_path_relative_to_its_root() to convert ${grubdir}, then
35869 pass the result to grub-install --prefix.
35871 2007-06-13 Robert Millan <rmh@aybabtu.com>
35873 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
35874 DEFAULT_DEVICE_MAP.
35875 * util/grub-emu.c: Use above definitions from misc.h instead of
35877 * util/grub-mkdevicemap.c: Likewise.
35878 * util/i386/pc/grub-setup.c: Likewise.
35879 * util/grub-probe.c: Likewise.
35880 (probe): Abort with grub_util_error() when either
35881 grub_guess_root_device or grub_util_get_grub_dev fails.
35883 2007-06-12 Robert Millan <rmh@aybabtu.com>
35885 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
35886 "pager" assignment.
35887 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
35889 * util/grub-probe.c (probe): Likewise for "drive_name".
35891 2007-06-11 Robert Millan <rmh@aybabtu.com>
35893 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
35894 not just the cdrom one.
35896 2007-06-11 Robert Millan <rmh@aybabtu.com>
35898 * util/i386/pc/grub-mkrescue.in: Add "set -e".
35899 Add --pkglibdir=DIR option to override pkglibdir.
35900 Mention --image-type=TYPE in help output.
35901 Fix --grub-mkimage (it was a no-op).
35902 Abort gracefully when no parameter is given.
35904 2007-06-11 Robert Millan <rmh@aybabtu.com>
35906 * util/i386/pc/grub-mkrescue.in: New file.
35907 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
35908 * Makefile.in: Handle bin_SCRIPTS.
35910 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
35912 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
35913 list of video modes.
35915 2007-06-06 Robert Millan <rmh@aybabtu.com>
35917 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
35918 file doesn't exist, or if it is in a filesystem grub can't read.
35920 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
35921 not abort if GRUB_DRIVE could not be defined. Rearrange generated
35922 header comment to fit in 80 columns when the variables are resolved.
35924 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
35925 could be identified by update-grub. Remove redundant check for
35926 unifont.pff existence (since convert_system_path_to_grub_path now
35929 2007-06-04 Robert Millan <rmh@aybabtu.com>
35931 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
35933 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
35935 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
35937 2007-06-04 Robert Millan <rmh@aybabtu.com>
35939 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
35941 * include/grub/partition.h: Declare grub_apple_partition_map_init and
35942 grub_apple_partition_map_fini.
35945 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
35946 to access >2 TiB disks).
35948 Print disk->total_sectors with %llu instead of %lu, since this
35949 variable is always 64-bit (prevents wrong disk size from being displayed
35950 on either >2 TiB disk or big-endian CPU).
35952 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
35953 into a generic case that supports all (sane) partition maps.
35955 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
35958 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
35959 and grub_apple_partition_map_fini() after that.
35961 2007-06-01 Robert Millan <rmh@aybabtu.com>
35963 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
35965 * util/grub.d/00_header.in: Only enable gfxterm when
35966 convert_system_path_to_grub_path() succeeds.
35968 2007-05-20 Robert Millan <rmh@aybabtu.com>
35970 * util/update-grub_lib.in: New file.
35971 * DISTLIST: Add update-grub_lib.in.
35972 * conf/common.rmk: Generate update-grub_lib and install it in
35974 * Makefile.in: Add install routine for $(lib_DATA).
35976 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
35977 function provided by update-grub_lib to support arbitrary paths of
35979 * util/update-grub.in: Use convert_system_path_to_grub_path() to
35980 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
35982 2007-05-19 Robert Millan <rmh@aybabtu.com>
35984 * commands/i386/cpuid.c: New module.
35985 * DISTLIST: Add it.
35986 * conf/i386-efi.rmk: Enable cpuid.mod.
35987 * conf/i386-pc.rmk: Likewise.
35989 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35991 * kern/disk.c (grub_disk_read): Check return value of
35994 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35996 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
35998 * disk/raid.c (grub_raid_open): Likewise.
36000 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
36002 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
36003 stack instead of on the heap.
36005 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
36006 before doing a read on it.
36008 * configure.ac: Only use -fno-stack-protector for the target
36011 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
36013 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
36014 __attribute_ ((unused)) to mode_type argument.
36016 * util/getroot.c (grub_guess_root_device): Fix #endif.
36018 * kern/misc.c (memcmp): Fix prototype.
36020 * include/grub/partition.h [GRUB_UTIL]
36021 (grub_gpt_partition_map_init): Add prototype.
36022 (grub_gpt_partition_map_fini): Likewise.
36024 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
36025 at the right place.
36027 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
36028 (grub_fat_read_data): Likewise.
36029 (grub_fat_find_dir): Likewise.
36031 * font/manager.c (find_glyph): Make table a const.
36032 (grub_font_get_glyph): Remove bitmap from if statement.
36034 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
36036 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
36037 code, first search for device in /dev/mapper, then in /dev.
36038 (grub_util_get_grub_dev): New function.
36039 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
36041 * util/grub-probe.c (probe): Remove check for RAID, call
36042 grub_util_get_grub_dev() instead of
36043 grub_util_biosdisk_get_grub_dev().
36044 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
36045 grub_util_biosdisk_get_grub_dev().
36046 * util/i386/pc/grub-setup.c (main): Likewise.
36048 2007-05-16 Robert Millan <rmh@aybabtu.com>
36050 * DISTLIST: Update for the latest changes.
36051 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
36052 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
36053 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
36054 grub/util/biosdisk.h.
36055 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
36056 grub/util/biosdisk.h.
36058 2007-05-16 Robert Millan <rmh@aybabtu.com>
36060 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
36062 2007-05-16 Robert Millan <rmh@aybabtu.com>
36064 * util/i386/efi/grub-install.in: New.
36065 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
36066 newly added grub-install.
36067 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
36069 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
36070 grub/util/biosdisk.h.
36071 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
36072 grub/util/biosdisk.h.
36074 2007-05-16 Robert Millan <rmh@aybabtu.com>
36076 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
36077 * include/grub/util/biosdisk.h: ... here.
36078 * util/i386/pc/biosdisk.c: Moved to ...
36079 * util/biosdisk.c: ... here.
36080 * util/i386/pc/getroot.c: Moved to ...
36081 * util/getroot.c: ... here.
36082 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
36083 * util/grub-mkdevicemap.c: ... here.
36084 * util/i386/pc/grub-probe.c: Moved to ...
36085 * util/grub-probe.c: ... here.
36087 2007-05-15 Robert Millan <rmh@aybabtu.com>
36089 * util/update-grub.in: Remove duplicated line in grub.cfg header
36092 2007-05-13 Robert Millan <rmh@aybabtu.com>
36094 * util/update-grub.in: Fix a few assumptions about the devices holding
36095 /, /boot and /boot/grub being the same.
36096 * util/grub.d/00_header.in: Likewise.
36097 * util/grub.d/10_hurd.in: Likewise.
36098 * util/grub.d/10_linux.in: Likewise.
36100 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
36101 patterns. Use that to define the `.old' suffix as older than `'.
36103 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
36105 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
36106 the grub.cfg header message.
36108 2007-05-11 Robert Millan <rmh@aybabtu.com>
36110 * util/update-grub.in: Create device.map if it doesn't already exist,
36111 before attempting to run grub-probe.
36112 Check for grub-probe and grub-mkdevicemap with the same code
36113 grub-install is using.
36116 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
36118 * Makefile.in: Add the datarootdir autoconf variable.
36120 2007-05-09 Robert Millan <rmh@aybabtu.com>
36122 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
36123 fail gracefully if dev->disk->partition == NULL.
36125 2007-05-07 Robert Millan <rmh@aybabtu.com>
36127 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
36128 determine partition map module.
36129 * util/i386/pc/grub-install.in: Use this feature to decide which
36130 partition module to load, instead of hardcoding pc and gpt.
36132 2007-05-07 Robert Millan <rmh@aybabtu.com>
36134 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
36135 source directory differs from build directory.
36137 2007-05-05 Robert Millan <rmh@aybabtu.com>
36139 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
36142 2007-05-05 Robert Millan <rmh@aybabtu.com>
36144 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
36146 2007-05-05 Robert Millan <rmh@aybabtu.com>
36148 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
36149 command-line arguments via ${GRUB_CMDLINE_LINUX}.
36151 2007-05-05 Robert Millan <rmh@aybabtu.com>
36153 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
36154 (grub_probe_SOURCES): Likewise.
36155 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
36156 GPT and initialize dos_part and bsd_part accordingly.
36157 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
36159 (main): Activate gpt module for use during partition identification,
36160 and deactivate it afterwards.
36161 * util/i386/pc/grub-install.in: Add gpt module to core.img.
36162 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
36163 partition identification, and deactivate it afterwards.
36165 2007-05-05 Robert Millan <rmh@aybabtu.com>
36167 * term/i386/pc/console.c (grub_console_fini): Call
36168 grub_term_set_current() before grub_term_unregister().
36170 2007-05-04 Robert Millan <rmh@aybabtu.com>
36172 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
36173 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
36174 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
36175 and update-grub_DATA.
36176 * conf/common.rmk: Build and install update-grub components.
36177 * conf/common.mk: Regenerate.
36178 * util/update-grub.in: New. Core of update-grub.
36179 * util/grub.d/00_header.in: New. Generates grub.cfg header.
36180 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
36181 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
36182 * util/grub.d/README: New. Document grub.d directory layout.
36184 2007-05-01 Robert Millan <rmh@aybabtu.com>
36186 * util/grub-emu.c: Move initialization functions
36187 grub_util_biosdisk_init() and grub_init_all() before
36188 grub_util_biosdisk_get_grub_dev(), which relies on them.
36190 2007-04-19 Robert Millan <rmh@aybabtu.com>
36192 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
36195 2007-04-18 Jerone Young <jerone@gmail.com>
36197 * kernel/elf.c: Add missing parenthesis for conditional statement
36200 2007-04-10 Jerone Young <jerone@gmail.com>
36202 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
36203 continue on and look for device node with real device name.
36205 2007-04-10 Jerone Young <jerone@gmail.com>
36207 * configure.ac: Add argument for autoconf to use transformation
36209 * Makefile.in: Add autoconf package transformation code.
36210 * util/i386/pc/grub-install.in: Likewise.
36211 * util/powerpc/ieee1275/grub-install.in: Likewise.
36213 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
36215 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
36216 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
36217 (EXT2_REVISION): Likewise.
36218 (EXT2_INODE_SIZE): Likewise.
36219 (struct grub_ext2_block_group): Added a missing member
36221 (grub_ext2_read_inode): Divide by the inode size in a superblock
36222 instead of 128 to obtain INODES_PER_BLOCK.
36223 Use the macro EXT2_INODE_SIZE instead of directly using
36224 SBLOCK->INODE_SIZE.
36226 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
36228 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
36229 superblock instead of the structure size to compute an
36230 offset. This fixes the problem that GRUB could not read a
36231 filesystem when inode size is different from 128-byte.
36233 2007-03-05 Marco Gerards <marco@gnu.org>
36235 * normal/main.c (read_config_file): When "menu" is not set, create
36236 an initial context.
36238 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
36240 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
36241 (HEAP_LIMIT): New macro.
36242 (grub_claim_heap): Claim memory up to `heaplimit'.
36244 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
36246 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
36247 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
36248 (_start): Likewise.
36249 (grub_arch_modules_addr): Return address after `_end'.
36250 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
36251 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
36252 (add_segments): Calculate `_end' from phdr size and location.
36253 (ALIGN_UP): Moved to ...
36254 * include/grub/misc.h: here.
36255 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
36257 (GRUB_IEEE1275_MODULE_BASE): Removed.
36259 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36261 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
36264 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36266 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
36268 (grub_elf64_load_hook_t): Likewise.
36269 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
36272 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36274 * kern/mm.c: Update copyright.
36275 (grub_mm_debug): Correct syntax error.
36276 (grub_mm_dump_free): New function.
36277 (grub_debug_free): Call `grub_free'.
36278 * include/grub/mm.h: Update copyright.
36279 (grub_mm_dump_free): Add declaration.
36281 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
36283 * include/grub/ieee1275/ieee1275.h: Update copyright.
36284 * kern/powerpc/ieee1275/init.c: Likewise.
36285 * kern/powerpc/ieee1275/openfw.c: Likewise.
36287 * loader/powerpc/ieee1275/linux.c: Likewise.
36288 * include/grub/elfload.h: Likewise.
36289 * kern/elf.c: Likewise.
36290 (grub_elf32_load): Pass `base' and `size' parameters. Update all
36292 (grub_elf64_load): Likewise.
36293 (grub_elf32_load_segment): Move to a nested function.
36294 (grub_elf64_load_segment): Likewise.
36296 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
36298 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
36300 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
36301 (grub_heap_len): Likewise.
36302 (HEAP_SIZE): New macro.
36303 (grub_claim_heap): New function.
36304 (grub_machine_init): Don't claim heap directly. Call
36306 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
36307 (grub_available_iterate): New function.
36309 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
36311 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
36312 * configure.ac: Use it for testing the HOST and TARGET compilers.
36314 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
36316 * Makefile.in (enable_grub_emu): New variable.
36317 * configure.ac (--enable-grub-emu): New option.
36318 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
36319 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
36320 * conf/i386-pc.rmk: Likewise.
36321 * conf/powerpc-ieee1275.rmk: Likewise.
36322 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
36324 2006-12-12 Marco Gerards <marco@gnu.org>
36326 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
36328 * kern/env.c (grub_env_unset): Don't free the member `value' when
36329 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
36332 * normal/main.c (current_menu): Removed.
36333 (free_menu): Unset the `menu' environment variable.
36334 (grub_normal_menu_addentry): Make use of the environment variable
36335 `menu', instead of using the global `current_menu'. Allocate
36336 memory for the sourcecode of this entry.
36337 (read_config_file): New argument `nested', changed all callers.
36338 Only in the case of a new context, initialize a new menu. Set the
36339 `menu' environment variable.
36340 (grub_normal_execute): Don't set and unset the environment
36341 variable `menu' here anymore. Only free the menu when leaving the
36344 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
36347 2006-12-11 Marco Gerards <marco@gnu.org>
36349 * normal/menu_entry.c (run): Fix off by one bug so the last line
36350 is executed. Move the loader check to outside the loop.
36352 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
36354 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
36356 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
36358 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
36359 the number of sectors. Reported by Andrey Shuvikov
36360 <mr_hyro@yahoo.com>.
36362 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
36364 * kern/disk.c (grub_disk_read): When there is a read error, always
36365 try to read only the necessary data.
36367 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
36369 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
36371 [GRUB_UTIL] (grub_raid_fini): Likewise.
36372 [GRUB_UTIL] (grub_lvm_init): Likewise.
36373 [GRUB_UTIL] (grub_lvm_fini): Likewise.
36374 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
36375 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
36376 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
36377 and grub_raid_fini().
36379 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
36381 * include/grub/types.h (__unused): Rename to UNUSED.
36382 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
36383 (grub_elf64_size): Likewise.
36385 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
36387 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
36388 grub_error_push and grub_error_pop in the error-handling path.
36389 (grub_elf32_load_segment): Only call grub_file_read with non-zero
36392 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
36394 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
36395 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36397 (kernel_elf_SOURCES): Likewise.
36398 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
36399 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
36400 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
36401 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
36402 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
36403 (elf_mod_SOURCES): New variable.
36404 (elf_mod_CFLAGS): Likewise.
36405 (elf_mod_LDFLAGS): Likewise.
36406 * include/grub/types.h (__unused): New macro.
36407 * include/grub/elfload.h: New file.
36408 * kern/elf.c: Likewise.
36409 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
36410 (ELF32_LOADMASK): New macro.
36411 (ELF64_LOADMASK): Likewise.
36412 (vmlinux): Removed.
36413 (grub_linux_load32): New function.
36414 (grub_linux_load64): Likewise.
36415 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
36416 Use grub_elf_t instead of grub_file_t.
36418 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
36420 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
36421 `catch_result' to struct set_color_args.
36423 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
36425 * normal/menu.c: Include grub/script.h.
36426 * normal/menu_entry.c: Likewise.
36427 * include/grub/normal.h: Do not include grub/script.h.
36429 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36431 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
36433 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36435 * kern/disk.c (grub_disk_open): Print debug messages when opening a
36437 (grub_disk_close): Print debug messages when closing a disk.
36438 (grub_disk_read): Print debug messages when disk read fails.
36439 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
36441 * kern/partition.c: Include misc.h.
36442 (grub_partition_iterate): Print debug messages when detecting
36445 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36447 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
36449 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
36451 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
36453 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
36454 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
36456 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
36458 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
36459 instead of sizeof(lv). Patch by Michael Guntsche.
36461 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
36463 * disk/lvm.c: Rename VGS to VG_LIST.
36464 (grub_lvm_iterate): Change VGS->LV to VG-LV.
36465 (grub_lvm_open): Likewise.
36466 Thanks to Michael Guntsche for finding this bug.
36468 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36470 * configure.ac (AC_INIT): Bumped to 1.95.
36472 2006-10-14 Robert Millan <rmh@aybabtu.com>
36474 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
36475 with "/dev/.static/dev/md".
36477 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
36479 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
36480 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
36481 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
36482 DRIVE_NAME are always freed.
36484 * util/i386/pc/biosdisk.c (make_device_name): Add one into
36485 DOS_PART, as a DOS partition is counted from one instead of zero
36486 now. Reported by Robert Millan.
36488 2006-10-14 Robert Millan <rmh@aybabtu.com>
36490 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
36491 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
36492 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
36493 string returned by grub_guess_root_device.
36494 * util/i386/pc/grub-setup.c: Likewise.
36495 * util/i386/pc/grub-probefs.c: Likewise.
36497 * util/i386/pc/grub-probefs.c: Rename to ...
36498 * util/i386/pc/grub-probe.c: ... this.
36499 * DISTLIST: Remove grub-probefs, add grub-probe.
36500 * conf/i386-efi.rmk: Likewise.
36501 * conf/i386-pc.rmk: Likewise.
36502 * util/i386/pc/grub-install.in: Likewise.
36504 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
36505 choose which information we want to print.
36507 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
36509 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
36510 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
36511 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
36512 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
36513 video/readers/tga.c and video/i386/pc/vbeutil.c.
36515 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
36517 Added support for RAID and LVM.
36519 * disk/lvm.c: New file.
36520 * disk/raid.c: Likewise.
36521 * include/grub/lvm.h: Likewise.
36522 * include/grub/raid.h: Likewise.
36523 * include/grub/util/lvm.h: Likewise.
36524 * include/grub/util/raid.h: Likewise.
36525 * util/lvm.c: Likewise.
36526 * util/raid.c: Likewise.
36528 * include/grub/disk.h (grub_disk_dev_id): Add
36529 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
36530 (grub_disk_get_size): New prototype.
36531 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
36532 returns a partition.
36533 (grub_disk_get_size): New function.
36535 * kern/i386/pc/init.c (make_install_device): Copy the prefix
36536 verbatim if grub_install_dos_part is -2.
36538 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
36541 * util/i386/pc/grub-setup.c (setup): New argument
36542 MUST_EMBED. Force embedding of GRUB when the argument is
36543 true. Close FILE before returning.
36544 (main): Add support for RAID and LVM.
36546 * conf/common.rmk: Add RAID and LVM modules.
36547 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
36549 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
36551 * kern/misc.c (grub_strstr): New function.
36552 * include/grub/misc.h (grub_strstr): New prototype.
36554 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
36556 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
36558 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
36560 * kern/misc.c (grub_strtoull): Guess the base only if not
36563 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36565 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
36568 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36570 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
36572 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
36573 Remove `flags' argument. All callers changed.
36574 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
36575 (IEEE1275_IHANDLE_INVALID): New variable.
36576 (IEEE1275_CELL_INVALID): New variable.
36577 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36578 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
36579 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
36580 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
36581 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
36582 codes from Open Firmware. All callers updated.
36583 (grub_ieee1275_next_property): Directly return Open Firmware return
36585 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
36586 Standardize error checking from `grub_ieee1275_get_property'.
36587 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
36588 `devalias' to `aliases'. Correct comments. Consolidate error paths.
36590 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36592 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
36593 `instance_to_package_args' to `instance_to_path_args'.
36595 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
36596 `grub_ieee1275_chosen'.
36598 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
36599 `grub_ieee1275_interpret'.
36601 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
36603 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
36605 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
36607 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
36608 (__cmpdi): Likewise.
36610 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
36611 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
36614 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
36616 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
36617 to type `grub_ssize_t'.
36618 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
36620 2006-09-22 Marco Gerards <marco@gnu.org>
36622 * normal/script.c (grub_script_create_cmdmenu): Skip leading
36625 2006-09-22 Marco Gerards <marco@gnu.org>
36627 * commands/echo.c: New file.
36629 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
36631 * conf/common.rmk (echo_mod_SOURCES): New variable.
36632 (echo_mod_CFLAGS): Likewise.
36633 (echo_mod_LDFLAGS): Likewise.
36635 2006-09-22 Marco Gerards <marco@gnu.org>
36637 * normal/main.c (get_line): Malloc memory instead of using
36638 preallocated memory. Removed the arguments `cmdline' and
36639 `max_len'. Updated all callers.
36641 2006-09-22 Marco Gerards <marco@gnu.org>
36643 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
36644 (normal_mod_DEPENDENCIES): Likewise.
36646 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
36647 (normal_mod_DEPENDENCIES): Likewise.
36649 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
36651 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
36653 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
36655 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
36656 (normal_mod_DEPENDENCIES): Likewise.
36657 * conf/i386-pc.mk: Regenerate.
36658 * conf/i386-efi.mk: Likewise
36659 * conf/common.mk: Likewise.
36660 * conf/powerpc-ieee1275.mk: Likewise.
36661 * conf/sparc64-ieee1275.mk: Likewise.
36663 2006-09-22 Robert Millan <rmh@aybabtu.com>
36665 Sync with i386 version.
36666 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
36667 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
36669 2006-09-21 Robert Millan <rmh@aybabtu.com>
36671 Import from GRUB Legacy (lib/device.c):
36672 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
36673 (init_device_map) [__linux__]: Add support for I2O devices.
36675 2006-09-14 Marco Gerards <marco@gnu.org>
36677 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
36680 2006-09-14 Robert Millan <rmh@aybabtu.com>
36682 * util/i386/pc/grub-install.in: Skip menu.lst when removing
36685 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
36687 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
36688 before adding it to device.map.
36690 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
36692 * genmk.rb: Let GCC generate dependencies the first time it
36693 compiles a file; using the -MD option.
36694 * conf/common.mk: Regenerate.
36695 * conf/i386-pc.mk: Likewise.
36696 * conf/i386-efi.mk: Likewise.
36697 * conf/powerpc-ieee1275.mk: Likewise.
36698 * conf/sparc64-ieee1275.mk: Likewise.
36700 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
36702 Move the prototypes of grub_setjmp and grub_longjmp to
36703 cpu/setjmp.h, so that each architecture may specify different
36706 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
36707 (grub_longjmp): Likewise.
36708 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
36709 (grub_longjmp): Likewise.
36710 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
36711 (grub_longjmp): Likewise.
36713 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
36714 [!GRUB_UTIL] (grub_longjmp): Removed.
36716 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
36718 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
36719 "color!" method does not return any value.
36721 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36723 * include/grub/bitmap.h: New file.
36725 * include/grub/i386/pc/vbeutil.h: Likewise.
36727 * video/bitmap.c: Likewise.
36729 * video/readers/tga.c: Likewise.
36731 * video/i386/pc/vbeutil.c: Likewise.
36733 * commands/videotest.c: Code cleanup and updated to reflect to new
36736 * term/gfxterm.c: Likewise.
36738 * video/video.c: Likewise.
36740 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
36741 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
36742 (bitmap_mod_SOURCES): New entry.
36743 (bitmap_mod_CFLAGS): Likewise.
36744 (bitmap_mod_LDFLAGS): Likewise.
36745 (tga_mod_SOURCES): Likewise.
36746 (tga_mod_CFLAGS): Likewise.
36747 (tga_mod_LDFLAGS): Likewise.
36749 * include/grub/video.h (grub_video_blit_operators): New enum type.
36750 (grub_video_render_target): Changed as forward declaration and moved
36751 actual definition to be video driver specific.
36752 (grub_video_adapter.blit_bitmap): Added blitting operator.
36753 (grub_video_adapter.blit_render_target): Likewise.
36754 (grub_video_blit_bitmap): Likewise.
36755 (grub_video_blit_render_target): Likewise.
36757 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
36758 driver specific render target definition.
36759 (grub_video_vbe_map_rgba): Added driver internal helper.
36760 (grub_video_vbe_unmap_color): Updated to use
36761 grub_video_i386_vbeblit_info.
36762 (grub_video_vbe_get_video_ptr): Likewise.
36764 * include/grub/i386/pc/vbeblit.h
36765 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
36766 grub_video_i386_vbeblit_info.
36767 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36768 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36769 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36770 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36771 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36772 (grub_video_i386_vbeblit_index_index): Likewise.
36773 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
36774 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36775 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36776 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
36778 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
36781 * video/i386/pc/vbeblit.c: Updated to reflect changes on
36782 include/grub/i386/pc/vbeblit.h.
36784 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
36785 Updated to use grub_video_i386_vbeblit_info.
36786 (grub_video_i386_vbefill_R8G8B8): Likewise.
36787 (grub_video_i386_vbefill_index): Likewise.
36788 (grub_video_i386_vbefill): Added generic filler.
36790 * video/i386/pc/vbefill.c: Updated to reflect changes on
36791 include/grub/i386/pc/vbefill.h.
36793 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
36794 grub_video_i386_vbeblit_info.
36795 (grub_video_vbe_unmap_color): Likewise.
36796 (grub_video_vbe_blit_glyph): Likewise.
36797 (grub_video_vbe_scroll): Likewise.
36798 (grub_video_vbe_draw_pixel): Removed function.
36799 (grub_video_vbe_get_pixel): Likewise.
36800 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
36801 updated code to use it.
36802 (common_blitter): Added common blitter for render target and bitmap.
36803 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
36804 (grub_video_vbe_blit_render_target): Likewise.
36806 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
36808 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
36809 is in text mode if there is no console control protocol instance
36812 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36814 * include/grub/video.h: Code cleanup.
36816 * include/grub/i386/pc/vbe.h: Likewise.
36818 * video/i386/pc/vbe.c: Likewise.
36820 * video/i386/pc/vbeblit.c: Likewise.
36822 * video/i386/pc/vbefill.c: Likewise.
36824 * video/video.c: Likewise. Also added more comments.
36826 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36828 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
36829 (struct grub_biosdisk_dap): Likewise.
36831 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
36832 linkage settings for all functions.
36834 2006-07-12 Marco Gerards <marco@gnu.org>
36836 * configure.ac (--enable-mm-debug): Fix typo.
36838 * genkernsyms.sh.in: Use proper quoting for `CC'.
36840 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
36842 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
36843 (normal_mod_ASFLAGS): Remove "-m32".
36845 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
36847 * util/misc.c: Include config.h.
36848 [!HAVE_MEMALIGN]: Do not include malloc.h.
36849 (grub_memalign): Use posix_memalign, if present. Then, use
36850 memalign, if present. Otherwise, emit an error.
36852 * util/grub-emu.c: Do not include malloc.h.
36854 * include/grub/util/misc.h: Include unistd.h. This is required for
36855 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
36856 D. Eades III <hde@foobar-qux.org>.
36858 * configure.ac (AC_GNU_SOURCE): Added.
36859 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
36862 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
36864 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
36865 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
36867 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
36869 * include/grub/types.h (grub_host_addr_t): Rename to
36870 grub_target_addr_t.
36871 (grub_host_off_t): Rename to grub_target_off_t.
36872 (grub_host_size_t): Rename to grub_target_size_t.
36873 (grub_host_ssize_t): Rename to grub_target_ssize_t.
36874 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
36876 * include/grub/kernel.h (struct grub_module_header): Change type
36877 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
36878 (grub_module_info): Likewise.
36880 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36882 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
36883 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
36884 Velazquez <jesus.velazquez@gmail.com>.
36886 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36888 Count partitions from 1 instead of 0 in the string representation
36889 of partitions. Still use 0-based internally.
36891 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
36892 (sun_partition_map_iterate): Use grub_partition_t instead of
36893 struct grub_partition *. Cast DESC->START_CYLINDER to
36894 grub_uint64_t after converting the endian.
36895 (sun_partition_map_probe): Subtract 1 for PARTNUM.
36896 (sun_partition_map_get_name): Add 1 to P->INDEX.
36898 * partmap/pc.c (grub_partition_parse): Subtract 1 for
36900 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
36902 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
36903 zero instead of one.
36904 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
36905 (gpt_partition_map_get_name): Add 1 into P->INDEX.
36907 * partmap/apple.c (apple_partition_map_iterate): Change the type
36908 of POS to unsigned.
36909 (apple_partition_map_probe): Subtract 1 for PARTNUM.
36910 (apple_partition_map_get_name): Add 1 into P->INDEX.
36912 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
36913 of POS to unsigned.
36914 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
36915 calculate the offset of a partition.
36916 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
36917 (amiga_partition_map_get_name): Add 1 into P->INDEX.
36919 * partmap/acorn.c (acorn_partition_map_find): Change the type of
36920 SECTOR to grub_disk_addr_t.
36921 (acorn_partition_map_iterate): Likewise.
36922 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
36923 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
36925 (acorn_partition_map_get_name): Add 1 into P->INDEX.
36927 * kern/i386/pc/init.c (make_install_device): Add 1 into
36928 GRUB_INSTALL_DOS_PART.
36930 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
36933 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
36935 Clean up the code to support 64-bit addressing in disks and
36936 files. This change is not enough for filesystems yet.
36938 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
36939 type of "start" to grub_uint64_t.
36940 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
36941 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
36942 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
36945 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
36946 to grub_disk_addr_t.
36948 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
36951 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36953 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
36956 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
36958 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
36960 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
36962 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
36963 to grub_off_t, to detect an error from grub_file_seek.
36964 (grub_multiboot_load_elf32): Likewise.
36966 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
36967 maximum unsigned long value when an overflow is detected.
36968 (grub_strtoull): New function.
36969 (grub_divmod64): Likewise.
36970 (grub_lltoa): use grub_divmod64.
36972 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
36974 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
36975 the pointer to next character. Use grub_strtoull instead of
36977 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
36978 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
36981 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
36982 return value is signed.
36983 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
36984 test if OFFSET is less than zero, as OFFSET is unsigned now.
36986 * kern/disk.c (struct grub_disk_cache): Change the type of
36987 "sector" to grub_disk_addr_t.
36988 (grub_disk_cache_get_index): Change the type of SECTOR to
36989 grub_disk_addr_t. Calculate the hash with SECTOR casted to
36990 unsigned after shifting.
36991 (grub_disk_cache_invalidate): Change the type of SECTOR to
36993 (grub_disk_cache_unlock): Likewise.
36994 (grub_disk_cache_store): Likewise.
36995 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
36996 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
36997 grub_disk_addr_t and grub_uint64_t, respectively.
36998 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
36999 body, as the value of OFFSET is tweaked by
37000 grub_disk_check_range. Change the types of START_SECTOR, LEN and
37001 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
37003 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
37004 body, as the value of OFFSET is tweaked by
37005 grub_disk_check_range. Change the types of LEN and N to
37008 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
37009 and "saved_offset" to grub_off_t.
37010 (test_header): Cast BUF to char *.
37011 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
37013 (grub_gzio_read): Change the types of OFFSET and SIZE to
37014 grub_off_t and grub_size_t, respectively.
37016 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
37018 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
37019 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
37020 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
37021 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
37022 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
37024 * include/grub/types.h (grub_off_t): Unconditionally set to
37026 (grub_disk_addr_t): Changed to grub_uint64_t.
37028 * include/grub/partition.h (struct grub_partition): Change the
37029 types of "start", "len" and "offset" to grub_disk_addr_t,
37030 grub_uint64_t and grub_disk_addr_t, respectively.
37031 (grub_partition_get_start): Return grub_disk_addr_t.
37032 (grub_partition_get_len): Return grub_uint64_t.
37034 * include/grub/misc.h (grub_strtoull): New prototype.
37035 (grub_divmod64): Likewise.
37037 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
37038 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
37039 grub_off_t, respectively.
37040 All callers and references changed.
37042 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
37043 grub_size_t in "read".
37044 All callers and references changed.
37046 * include/grub/file.h (struct grub_file): Change the types of
37047 "offset" and "size" to grub_off_t and grub_off_t,
37048 respectively. Change the type of SECTOR to grub_disk_addr_t in
37050 (grub_file_read): Change the type of LEN to grub_size_t.
37051 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
37053 (grub_file_size): Return grub_off_t.
37054 (grub_file_tell): Likewise.
37055 All callers and references changed.
37057 * include/grub/disk.h (struct grub_disk_dev): Change the types of
37058 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
37060 (struct grub_disk): Change the type of "total_sectors" to
37061 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
37063 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
37064 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
37065 (grub_disk_write): Likewise.
37066 All callers and references changed.
37068 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
37069 char * for grub_strncmp to silence gcc.
37070 (grub_iso9660_mount): Likewise.
37071 (grub_iso9660_mount): Likewise.
37072 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
37074 (grub_iso9660_iterate_dir): Likewise.
37075 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
37077 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
37078 LEN to grub_disk_addr_t and grub_size_t, respectively.
37080 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
37082 * fs/jfs.c (grub_jfs_read_file): Likewise.
37084 * fs/minix.c (grub_jfs_read_file): Likewise.
37086 * fs/sfs.c (grub_jfs_read_file): Likewise.
37088 * fs/ufs.c (grub_jfs_read_file): Likewise.
37090 * fs/xfs.c (grub_jfs_read_file): Likewise.
37092 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
37093 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
37096 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
37097 BLKNR to -1 instead of returning GRUB_ERRNO.
37098 (grub_ext2_read_file): Change the types of SECTOR and
37099 LEN to grub_disk_addr_t and grub_size_t, respectively.
37101 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
37102 LEN to grub_disk_addr_t and grub_size_t, respectively.
37104 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
37107 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
37108 string. Do not cast SECTOR explicitly.
37110 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
37111 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
37112 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
37113 grub_disk_addr_t and grub_size_t, respectively. If the sector is
37114 over 2TB and LBA mode is not supported, raise an error.
37115 (get_safe_sectors): New function.
37116 (grub_biosdisk_read): Use get_safe_sectors.
37117 (grub_biosdisk_write): Likewise.
37119 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
37120 (grub_efidisk_write): Likewise.
37122 * disk/loopback.c (delete_loopback): Cosmetic changes.
37123 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
37125 (grub_loopback_open): Likewise.
37126 (grub_loopback_read): Likewise. Also, change the type of POS to
37127 grub_off_t, and fix the usage of grub_memset.
37129 * commands/i386/pc/play.c: Include grub/machine/time.h.
37131 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
37134 * commands/configfile.c: Include grub/env.h.
37136 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
37137 GRUB_ERRNO directly instead. Change the type of POS to
37138 grub_off_t. Follow the coding standard.
37140 * commands/blocklist.c: Include grub/partition.h.
37141 (grub_cmd_blocklist): Return an error if the underlying device is
37142 not a disk. Take the starting sector of a partition into account,
37143 if a partition is used.
37145 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
37147 (lba_mode): Support 64-bit addresses.
37148 (chs_mode): Likewise.
37149 (copy_buffer): Adapted to the new offsets of a length field and a
37151 (blocklist_default_start): Allocate 64-bit space.
37153 * boot/i386/pc/boot.S (force_lba): Removed.
37154 (boot_drive): Moved to under KERNEL_SECTOR.
37155 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
37157 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
37159 (lba_mode): Refactored to support a 64-bit address. More size
37161 (setup_sectors): Likewise.
37163 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
37165 * DISTLIST: Added include/grub/i386/linux.h. Removed
37166 include/grub/i386/pc/linux.h
37168 * configure.ac (AC_INIT): Bumped to 1.94.
37170 * config.guess: Updated from gnulib.
37171 * config.sub: Likewise.
37172 * install-sh: Likewise.
37173 * mkinstalldirs: Likewise.
37175 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
37177 * conf/common.rmk (grub_modules_init.lst): Depended on
37178 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
37181 * genmk.rb (PModule::rule): Reverted the previous change.
37183 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
37185 * conf/common.rmk (grub_modules_init.lst): Depends on
37186 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
37187 that the target does not exist before producing.
37188 (grub_modules_init.h): Remove the target before generating.
37189 (grub_emu_init.c): Likewise.
37191 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
37193 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
37195 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
37196 for the target-specific tests. Make sure that we also have the
37197 up-to-date target variables for those tests.
37199 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
37201 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
37202 (PModule::rule): Likewise.
37204 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
37206 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
37207 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
37208 target-specific flags should be prefixed.
37209 (PModule::rule): Likewise.
37211 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
37213 * configure.ac (CMP): Check if cmp is available explicitly.
37215 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
37217 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
37218 (target_cpu): New variable.
37219 (pkglibdir): Use target_cpu instead of host_cpu.
37221 * util/i386/pc/grub-install.in (host_cpu): Removed.
37222 (target_cpu): New variable.
37223 (pkglibdir): Use target_cpu instead of host_cpu.
37225 * util/genmoddep.c: Removed.
37227 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
37228 instead of GRUB_HOST_SIZEOF_VOID_P.
37229 * kern/dl.c: Likewise.
37231 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
37233 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37234 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37235 (GRUB_TARGET_SIZEOF_LONG): ... this.
37236 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37237 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37238 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
37240 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37241 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37242 (GRUB_TARGET_SIZEOF_LONG): ... this.
37243 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37244 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37245 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
37247 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37248 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37249 (GRUB_TARGET_SIZEOF_LONG): ... this.
37250 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37251 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37253 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
37254 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
37255 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
37256 instead of GRUB_HOST_SIZEOF_LONG.
37257 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
37258 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
37259 GRUB_CPU_WORDS_BIGENDIAN.
37260 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
37261 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
37264 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
37265 (genmoddep_SOURCES): Likewise.
37266 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
37267 (genmoddep_SOURCES): Likewise.
37268 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
37269 (genmoddep_SOURCES): Likewise.
37270 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
37272 (genmoddep_SOURCES): Likewise.
37274 * genmoddep.awk: New file.
37276 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
37277 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
37278 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
37279 (PModule::rule): Likewise.
37280 (Program::rule): Likewise.
37281 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
37282 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
37285 * configure.ac: Rewritten intensively to use host and target
37286 instead of build and host, respectively.
37288 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
37289 (host_cpu): Removed.
37290 (target_cpu): New variable.
37291 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
37292 (BUILD_CC): Removed.
37293 (BUILD_CFLAGS): Likewise.
37294 (BUILD_CPPFLAGS): Likewise.
37295 (TARGET_CC): New variable.
37296 (TARGET_CFLAGS): Likewise.
37297 (TARGET_CPPFLAGS): Likewise.
37298 (TARGET_LDFLAGS): Likewise.
37300 (include): Use target_cpu instead of host_cpu.
37301 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
37303 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
37305 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
37307 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
37308 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
37309 field 'false' to 'exec_on_false'.
37310 (grub_script_create_cmdif): Renamed argument names to reflect above
37313 * normal/execute.c (grub_script_execute_cmdif): Likewise.
37315 * normal/script.c (grub_script_create_cmdif): Likewise.
37317 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
37319 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
37321 (grub_hfsplus_btree_recptr): Likewise.
37322 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
37323 FILEBLOCK both to pass a block number and store next block
37325 (grub_hfsplus_read_block): Rewritten heavily to support an extent
37326 overflow file correctly. Specify errors appropriately, because
37327 fshelp expects that GRUB_ERRNO is set when fails. Reuse
37328 grub_hfsplus_btree_recptr to get the pointer to a found key.
37329 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
37332 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
37334 (_linux_mod_SOURCES): New variable.
37335 (_linux_mod_CFLAGS): Likewise.
37336 (_linux_mod_LDFLAGS): Likewise.
37337 (linux_mod_SOURCES): Likewise.
37338 (linux_mod_CFLAGS): Likewise.
37339 (linux_mod_LDFLAGS): Likewise.
37341 * DISTLIST: Added loader/i386/efi/linux.c,
37342 loader/i386/efi/linux_normal.c and
37343 include/grub/i386/efi/loader.h.
37345 * loader/i386/efi/linux.c: New file.
37346 * loader/i386/efi/linux_normal.c: Likewise.
37347 * include/grub/i386/efi/loader.h: Likewise.
37349 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
37351 * commands/blocklist.c: New file.
37353 * DISTLIST: Added commands/blocklist.c.
37355 * term/efi/console.c (grub_console_highlight_color): Use a lighter
37356 color for the background, and a darker color for the foreground.
37357 (grub_console_checkkey): Return READ_KEY.
37358 (grub_console_cls): Set the background to
37359 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
37361 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
37363 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
37364 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
37366 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
37369 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
37370 BG. The spec is wrong again.
37372 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
37374 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
37376 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
37377 commands/blocklist.c.
37378 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37380 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
37381 (blocklist_mod_SOURCES): New variable.
37382 (blocklist_mod_CFLAGS): Likewise.
37383 (blocklist_mod_LDFLAGS): Likewise.
37385 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
37387 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
37389 (lba_mode): Use %eax more intensively to reduce the code size.
37391 2006-05-20 Marco Gerards <marco@gnu.org>
37393 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
37395 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
37397 (script): Accept leading newlines.
37398 (newlines): New rule to describe 0 or more newlines.
37399 (commands): Accept `command' with trailing newline. Fixed the
37400 order in which arguments were passed to `grub_script_add_cmd'.
37401 Accept commands separated by newlines.
37402 (function): Changed to accept newlines.
37403 (menuentry) Rewritten.
37405 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
37406 front of the list, instead of to the end.
37408 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
37410 * util/i386/pc/grub-install.in (bindir): New variable.
37411 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
37412 Shaver <lbgwjl@gmail.com>.
37414 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
37416 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
37417 grub/machine/linux.h
37418 * loader/i386/pc/linux.c: Likewise.
37420 * include/grub/i386/pc/linux.h: Moved to ...
37421 * include/grub/i386/linux.h: ... here.
37423 * include/grub/i386/linux.h (struct linux_kernel_params): New
37426 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
37428 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
37430 (grub_video_vbe_blit_glyph): Likewise.
37431 (grub_video_vbe_blit_bitmap): Likewise.
37432 (grub_video_vbe_blit_render_target): Likewise.
37434 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
37436 * configure.ac (--with-platform): Properly quote the square
37439 2006-05-08 Marco Gerards <marco@gnu.org>
37441 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
37443 (kernel_elf_HEADERS): ...to this. Updated all users.
37444 (grubof_symlist.c): Renamed from this...
37445 (kernel_elf_symlist.c): ...to this. Updated all users.
37446 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
37447 (grubof_SOURCES): Renamed from this...
37448 (kernel_elf_SOURCES): ...to this.
37449 (grubof_HEADERS): Renamed from this...
37450 (kernel_elf_HEADERS): ...to this.
37451 (grubof_CFLAGS): Renamed from this...
37452 (kernel_elf_CFLAGS): ...to this.
37453 (grubof_ASFLAGS): Renamed from this...
37454 (kernel_elf_ASFLAGS): ...to this.
37455 (grubof_LDFLAGS): Renamed from this...
37456 (kernel_elf_LDFLAGS): ...to this.
37458 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
37460 (kernel_elf_HEADERS): ...to this. Updated all users.
37461 (grubof_symlist.c): Renamed from this...
37462 (kernel_elf_symlist.c): ...to this. Updated all users.
37463 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
37464 (grubof_SOURCES): Renamed from this...
37465 (kernel_elf_SOURCES): ...to this.
37466 (grubof_HEADERS): Renamed from this...
37467 (kernel_elf_HEADERS): ...to this.
37468 (grubof_CFLAGS): Renamed from this...
37469 (kernel_elf_CFLAGS): ...to this.
37470 (grubof_ASFLAGS): Renamed from this...
37471 (kernel_elf_ASFLAGS): ...to this.
37472 (grubof_LDFLAGS): Renamed from this...
37473 (kernel_elf_LDFLAGS): ...to this.
37475 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
37476 `kernel.elf' instead of `grubof'.
37478 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
37480 Add --with-platform to configure. Use pkglibdir instead of
37481 pkgdatadir. This is reported by Roger Leigh.
37483 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
37484 (host_vendor): Likewise.
37485 (host_os): Likewise.
37486 (pkgdatadir): Likewise.
37487 (platform): New variable.
37488 (pkglibdir): Likewise.
37489 Use PKGLIBDIR instead of PKGDATADIR.
37491 * util/i386/pc/grub-install.in (datadir): Removed.
37492 (host_vendor): Likewise.
37493 (host_os): Likewise.
37494 (pkgdatadir): Likewise.
37495 (platform): New variable.
37496 (pkglibdir): Likewise.
37497 Use PKGLIBDIR instead of PKGDATADIR.
37499 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
37500 instead of GRUB_DATADIR.
37502 * util/i386/pc/grub-mkimage.c (usage): Likewise.
37504 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37507 * configure.ac (--with-platform): New option.
37508 Use PLATFORM instead of HOST_VENDOR to specify a platform.
37510 * Makefile.in: Include a makefile based on PLATFORM instead of
37512 (pkgdatadir): Not appended by the machine type.
37513 (pkglibdir): Appended by the machine type.
37514 (host_vendor): Removed.
37515 (platform): New variable.
37516 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
37517 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
37518 (uninstall): Likewise.
37520 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
37522 Use the environment context in the menu. Remove the commands
37523 "default" and "timeout", and use variables instead.
37525 * normal/menu.c: Include grub/env.h.
37526 (print_entry): Cast TITLE to silence gcc.
37527 (get_timeout): New function.
37528 (set_timeout): Likewise.
37529 (get_entry_number): Likewise.
37530 (run_menu): Use a default entry, a fallback entry and a timeout
37531 in the environment variables "default", "fallback" and
37532 "timeout". Also, tweak the default entry if it is not within the
37533 current menu entries.
37534 (grub_menu_run): Use a fallback entry in the environment variable
37537 * normal/main.c (read_config_file): Do not initialize
37538 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
37540 (grub_normal_execute): Use a data slot to store the menu.
37542 * include/grub/normal.h (struct grub_menu): Removed default_entry,
37543 fallback_entry and timeout.
37544 (struct grub_menu_list): Removed.
37545 (grub_menu_list_t): Likewise.
37546 (struct grub_context): Likewise.
37547 (grub_context_t): Likewise.
37548 (grub_context_get): Likewise.
37549 (grub_context_get_current_menu): Likewise.
37550 (grub_context_push_menu): Likewise.
37551 (grub_context_pop_menu): Likewise.
37552 (grub_default_init): Likewise.
37553 (grub_default_fini): Likewise.
37554 (grub_timeout_init): Likewise.
37555 (grub_timeout_fini): Likewise.
37557 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
37559 (normal_mod_SOURCES): Removed normal/context.c.
37561 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
37562 commands/default.c, commands/timeout.c and normal/context.c.
37563 (normal_mod_SOURCES): Removed normal/context.c.
37565 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
37566 commands/timeout.c and normal/context.c.
37567 (normal_mod_SOURCES): Removed normal/context.c.
37569 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
37570 commands/default.c, commands/timeout.c and normal/context.c.
37571 (normal_mod_SOURCES): Removed normal/context.c.
37573 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
37575 (default_mod_SOURCES): Removed.
37576 (default_mod_CFLAGS): Likewise.
37577 (default_mod_LDFLAGS): Likewise.
37578 (timeout_mod_SOURCES): Removed.
37579 (timeout_mod_CFLAGS): Likewise.
37580 (timeout_mod_LDFLAGS): Likewise.
37582 * DISTLIST: Removed commands/default.c, commands/timeout.c and
37585 * commands/default.c: Removed.
37586 * commands/timeout.c: Likewise.
37587 * normal/context.c: Likewise.
37589 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
37591 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
37593 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
37595 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
37596 "next" to "prev" for readability.
37597 (struct grub_env_sorted_var): New struct.
37598 (grub_env_context): Renamed to ...
37599 (initial_context): ... this.
37600 (grub_env_var_context): Renamed to ...
37601 (current_context): ... this.
37602 (grub_env_find): Look only at CURRENT_CONTEXT.
37603 (grub_env_context_open): Rewritten to copy exported variables from
37605 (grub_env_context_close): Rewritten according to the new
37606 scheme. Also, add an assertion to prevent the initial context from
37608 (grub_env_insert): Removed the code for the sorted list.
37609 (grub_env_remove): Likewise.
37610 (grub_env_export): Simply mark the variable with
37611 GRUB_ENV_VAR_GLOBAL.
37612 (grub_env_set): A cosmetic change for naming consistency.
37613 (grub_env_get): Likewise.
37614 (grub_env_unset): Likewise.
37615 (grub_env_iterate): Rewritten to sort variables within this
37617 (grub_register_variable_hook): Fixed for naming consistency. Call
37618 grub_env_find again, only if NAME is not found at the first time.
37619 (mangle_data_slot_name): New function.
37620 (grub_env_set_data_slot): Likewise.
37621 (grub_env_get_data_slot): Likewise.
37622 (grub_env_unset_data_slot): Likewise.
37624 * include/grub/env.h (grub_env_var_type): New enum.
37625 (GRUB_ENV_VAR_LOCAL): New constant.
37626 (GRUB_ENV_VAR_GLOBAL): Likewise.
37627 (GRUB_ENV_VAR_DATA): Likewise.
37628 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
37630 (grub_env_set): Replace VAR with NAME for consistency.
37631 (grub_register_variable_hook): Likewise.
37632 (grub_env_export): Specify the name of the argument.
37633 (grub_env_set_data_slot): New prototype.
37634 (grub_env_get_data_slot): Likewise.
37635 (grub_env_unset_data_slot): Likewise.
37637 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37639 Extend the loader so that GRUB can accept a loader which comes
37640 back to GRUB when a loaded image exits. Also, this change adds
37641 support for a chainloader on EFI.
37643 * term/efi/console.c: Include grub/misc.h.
37644 (grub_console_checkkey): Display a scan code on the top for
37645 debugging. This will be removed once the EFI port gets stable.
37646 Correct the scan code mapping.
37648 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
37649 allocate memory from larger regions, in order to reduce the number
37650 of allocated regions. Otherwise, the MacOSX loader panics.
37651 (filter_memory_map): Avoid less than 1MB for compatibility with
37653 (add_memory_regions): Allocate from the tail of a region, if
37654 possible, to avoid allocating a region near to 1MB, for the MacOSX
37657 * kern/efi/init.c (grub_efi_set_prefix): Specify
37658 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
37660 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
37661 argument IMAGE_HANDLE and specify it to get a loaded image.
37662 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
37663 grub_efi_get_loaded_image.
37664 (grub_efi_get_filename): Divide the length by the size of
37666 (grub_efi_get_device_path): New function.
37667 (grub_efi_print_device_path): Print End Device Path nodes. Divide
37668 the length by the size of grub_efi_char16_t for a file path device
37671 * kern/loader.c (grub_loader_noreturn): New variable.
37672 (grub_loader_set): Accept a new argument NORETURN. Set
37673 GRUB_LOADER_NORETURN to NORETURN.
37674 All callers changed.
37675 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
37678 * include/grub/efi/efi.h (grub_efi_get_device_path): New
37680 (grub_efi_get_loaded_image): Take an argument to specify an image
37683 * include/grub/loader.h (grub_loader_set): Added one more argument
37686 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
37687 instead of grub_efi_open_protocol.
37688 (grub_efidisk_get_device_name): Likewise.
37689 (grub_efidisk_close): Print a newline.
37690 (grub_efidisk_get_device_handle): Fixed to use
37691 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
37692 GRUB_EFI_DEVICE_PATH_TYPE.
37694 * disk/efi/efidisk.c (device_path_guid): Moved to ...
37695 * kern/efi/efi.c (device_path_guid): ... here.
37697 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
37699 (kernel_mod_HEADERS): Added efi/disk.h.
37700 (_chain_mod_SOURCES): New variable.
37701 (_chain_mod_CFLAGS): Likewise.
37702 (_chain_mod_LDFLAGS): Likewise.
37703 (chain_mod_SOURCES): Likewise.
37704 (chain_mod_CFLAGS): Likewise.
37705 (chain_mod_LDFLAGS): Likewise.
37707 * DISTLIST: Added include/grub/efi/chainloader.h,
37708 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
37710 * include/grub/efi/chainloader.h: New file.
37711 * loader/efi/chainloader.c: Likewise.
37712 * loader/efi/chainloader_normal.c: Likewise.
37714 2006-04-30 Marco Gerards <marco@gnu.org>
37716 * commands/configfile.c (grub_cmd_source): New function.
37717 (GRUB_MOD_INIT): Register the commands `source' and `.'.
37718 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
37720 2006-04-30 Marco Gerards <marco@gnu.org>
37722 * normal/execute.c (grub_script_execute_cmd): Change the return
37723 type to `grub_err_t'. Correctly return the error.
37724 (grub_script_execute_cmdline): In case a command line is not a
37725 command or a function, try to interpret it as an assignment.
37727 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37729 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
37730 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
37731 skip a node whose name is obviously invalid as UTF-16,
37732 i.e. contains a NUL character. Stop the iteration when the last
37733 directory entry is found. Instead of using the return value of
37734 grub_hfsplus_btree_iterate_node, store the value in RET and use
37735 it, because the iterator can be stopped by the last directory
37738 2006-04-30 Marco Gerards <marco@gnu.org>
37740 * include/grub/env.h (grub_env_export): New prototype. Reported
37741 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
37743 2006-04-30 Marco Gerards <marco@gnu.org>
37745 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
37746 size of the extents in a catalog file record.
37748 2006-04-29 Marco Gerards <marco@gnu.org>
37750 * commands/configfile.c (grub_cmd_configfile): Execute the
37751 configfile within its own context.
37753 * include/grub/env.h (grub_env_context_open): New prototype.
37754 (grub_env_context_close): Likewise.
37756 * kern/env.c (grub_env): Removed.
37757 (grub_env_sorted): Likewise.
37758 (grub_env_context): New variable.
37759 (grub_env_var_context): Likewise.
37760 (grub_env_find): Search both the active context and the global
37762 (grub_env_context_open): New function.
37763 (grub_env_context_close): Likewise.
37764 (grub_env_insert): Likewise.
37765 (grub_env_remove): Likewise.
37766 (grub_env_export): Likewise.
37767 (grub_env_set): Changed to use helper functions to avoid code
37769 (grub_env_iterate): Rewritten so both the current context and the
37770 global context are being used.
37772 * normal/command.c (export_command): New function.
37773 (grub_command_init): Register the `export' function.
37775 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
37777 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
37778 explicitly to suppress gcc's warnings.
37779 * fs/fat.c (grub_fat_find_dir): Likewise.
37780 (grub_fat_label): Likewise.
37781 * fs/xfs.c (grub_xfs_read_inode): Likewise.
37782 (grub_xfs_mount): Likewise.
37783 (grub_xfs_label): Likewise.
37784 * fs/affs.c (grub_affs_mount): Likewise.
37785 (grub_affs_label): Likewise.
37786 (grub_affs_iterate_dir): Likewise.
37787 * fs/sfs.c (grub_sfs_mount): Likewise.
37788 (grub_sfs_iterate_dir): Likewise.
37789 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
37790 * fs/hfs.c (grub_hfs_mount): Likewise.
37791 (grub_hfs_cmp_catkeys): Likewise.
37792 (grub_hfs_find_dir): Likewise.
37793 (grub_hfs_dir): Likewise.
37794 (grub_hfs_label): Likewise.
37795 * fs/jfs.c (grub_jfs_mount): Likewise.
37796 (grub_jfs_opendir): Likewise.
37797 (grub_jfs_getent): Likewise.
37798 (grub_jfs_lookup_symlink): Likewise.
37799 (grub_jfs_label): Likewise.
37800 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
37801 (grub_hfsplus_iterate_dir): Likewise.
37802 (grub_hfsplus_btree_iterate_node): Made static.
37804 * util/grub-emu.c (prefix): New variable.
37805 (grub_machine_set_prefix): New function.
37806 (main): Do not set the environment variable "prefix" here. Only
37807 set PREFIX, which is used later by grub_machine_set_prefix.
37809 * include/grub/video.h: Do not include grub/symbol.h.
37810 (grub_video_register): Not exported. This symbol is not defined in
37812 (grub_video_unregister): Likewise.
37813 (grub_video_iterate): Likewise.
37814 (grub_video_setup): Likewise.
37815 (grub_video_restore): Likewise.
37816 (grub_video_get_info): Likewise.
37817 (grub_video_get_blit_format): Likewise.
37818 (grub_video_set_palette): Likewise.
37819 (grub_video_get_palette): Likewise.
37820 (grub_video_set_viewport): Likewise.
37821 (grub_video_get_viewport): Likewise.
37822 (grub_video_map_color): Likewise.
37823 (grub_video_map_rgb): Likewise.
37824 (grub_video_map_rgba): Likewise.
37825 (grub_video_fill_rect): Likewise.
37826 (grub_video_blit_glyph): Likewise.
37827 (grub_video_blit_bitmap): Likewise.
37828 (grub_video_blit_render_target): Likewise.
37829 (grub_video_scroll): Likewise.
37830 (grub_video_swap_buffers): Likewise.
37831 (grub_video_create_render_target): Likewise.
37832 (grub_video_delete_render_target): Likewise.
37833 (grub_video_set_active_render_target): Likewise.
37835 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
37837 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
37839 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
37840 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37841 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37842 instead of $(srcdir)/genkernsyms.sh.
37844 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
37845 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37846 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37847 instead of $(srcdir)/genkernsyms.sh.
37849 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
37850 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37851 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37852 instead of $(srcdir)/genkernsyms.sh.
37854 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
37855 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37856 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37857 instead of $(srcdir)/genkernsyms.sh.
37859 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
37862 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
37864 (gensymlist.sh): New target.
37865 (genkernsyms.sh): Likewise.
37867 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
37868 genkernsyms.sh.in and gensymlist.sh.in.
37870 * genkernsyms.sh: Removed.
37871 * gensymlist.sh: Likewise.
37873 * genkernsyms.sh.in: New file.
37874 * gensymlist.sh.in: Likewise.
37876 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37878 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
37879 clobber "prefix", since we may have already set it manually.
37881 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37883 * kern/misc.c (abort): New alias for grub_abort.
37885 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
37887 A new machine-specific function "grub_machine_set_prefix" is
37888 defined. This is called after loading modules, so that a prefix
37889 initialization can use modules. Also, this change adds an
37890 intensive debugging feature for the memory manager via the
37891 configure option "--enable-mm-debug".
37893 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
37896 * kern/sparc64/ieee1275/init.c (abort): Removed.
37897 (grub_stop): Likewise.
37898 (grub_exit): New function.
37899 (grub_set_prefix): Renamed to ...
37900 (grub_machine_set_prefix): ... this.
37901 (grub_machine_init): Do not call grub_set_prefix.
37903 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
37904 (grub_machine_set_prefix): ... this.
37905 (grub_machine_init): Do not call grub_set_prefix.
37907 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
37908 (grub_machine_init): Do not set the prefix here.
37910 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
37912 * kern/efi/init.c: Include grub/mm.h.
37913 (grub_efi_set_prefix): New function.
37915 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
37916 (grub_efi_get_filename): New function.
37917 (grub_print_device_path): Renamed to ...
37918 (grub_efi_print_device_path): ... this.
37920 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
37921 [MM_DEBUG] (grub_realloc): Likewise.
37922 [MM_DEBUG] (grub_free): Likewise.
37923 [MM_DEBUG] (grub_memalign): Likewise.
37924 [MM_DEBUG] (grub_mm_debug): New variable.
37925 [MM_DEBUG] (grub_debug_malloc): New function.
37926 [MM_DEBUG] (grub_debug_free): New function.
37927 [MM_DEBUG] (grub_debug_realloc): New function.
37928 [MM_DEBUG] (grub_debug_memalign): New function.
37930 * kern/misc.c (grub_abort): Print a newline to distinguish
37933 * kern/main.c (grub_main): Call grub_machine_set_prefix and
37934 grub_set_root_dev after loading modules. This is necessary when
37935 setting a prefix depends on modules.
37937 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
37938 (grub_efi_print_device_path): ... this.
37939 (grub_efi_get_filename): New prototype.
37940 (grub_efi_set_prefix): Likewise.
37942 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
37944 (grub_efidisk_get_device_handle): New prototype.
37945 (grub_efidisk_get_device_name): Likewise.
37947 * include/grub/mm.h: Include config.h.
37948 (MM_DEBUG): Removed.
37949 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
37950 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
37951 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
37952 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
37953 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
37954 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
37955 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
37956 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
37957 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
37959 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
37961 * disk/efi/efidisk.c: Include grub/partition.h.
37962 (iterate_child_devices): New function.
37963 (add_device): First, compare only last device path nodes, so that
37964 devices are sorted by the types.
37965 (grub_efidisk_get_device_handle): New function.
37966 (grub_efidisk_get_device_name): Likewise.
37968 * configure.ac (--enable-mm-debug): New option to enable the
37969 memory manager debugging feature. This makes the binary much
37970 bigger, so is disabled by default.
37972 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
37974 Use grub_abort instead of grub_stop, and grub_exit must be
37975 define in each architecture now. Also, this change adds support
37978 * util/i386/pc/grub-probefs.c: Include grub/term.h.
37979 (grub_getkey): New function.
37980 (grub_term_get_current): Likewise.
37982 * util/i386/pc/grub-setup.c: Include grub/term.h.
37983 (grub_getkey): New function.
37984 (grub_term_get_current): Likewise.
37986 * util/misc.c (grub_stop): Renamed to ...
37987 (grub_exit): ... this.
37989 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
37990 (grub_exit): ... this.
37991 (grub_machine_init): Use grub_abort instead of abort.
37992 (grub_stop): Removed.
37994 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
37997 * kern/i386/pc/startup.S (grub_exit): New function.
37998 (cold_reboot): New label.
38000 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
38001 (grub_efi_init): Call grub_efidisk_init.
38002 (grub_efi_fini): Call grub_efidisk_fini.
38004 * kern/efi/efi.c: Include grub/mm.h.
38005 (grub_efi_console_control_guid): Renamed to ...
38006 (console_control_guid): ... this.
38007 (grub_efi_loaded_image_guid): Renamed to ...
38008 (loaded_image_guid): ... this.
38009 (grub_efi_locate_handle): New function.
38010 (grub_efi_open_protocol): Likewise.
38011 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
38012 GRUB_EFI_CONSOLE_CONTROL_GUID.
38013 (grub_efi_exit): Removed.
38014 (grub_stop): Likewise.
38015 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
38016 (grub_exit): New function.
38017 (grub_print_device_path): Likewise.
38019 * kern/rescue.c (grub_rescue_cmd_exit): New function.
38020 (grub_enter_rescue_mode): Register "exit".
38022 * kern/misc.c (grub_real_dprintf): A cosmetic change.
38023 (grub_abort): New function.
38025 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
38027 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
38029 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
38031 * include/grub/efi/efi.h (grub_efi_exit): Removed.
38032 (grub_print_device_path): New prototype.
38033 (grub_efi_locate_handle): Likewise.
38034 (grub_efi_open_protocol): Likewise.
38036 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
38037 * disk/efi/efidisk.c: Likewise.
38039 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
38041 * include/grub/efi/console_control.h
38042 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
38044 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
38045 last 8 bytes as an array.
38046 (GRUB_EFI_DISK_IO_GUID): New macro.
38047 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
38048 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
38049 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
38051 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
38052 (struct grub_efi_device_path): Rename the member "sub_type" to
38054 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
38055 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
38056 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
38057 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
38058 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
38059 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
38060 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
38061 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
38062 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
38063 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
38064 (struct grub_efi_pci_device_path): New structure.
38065 (grub_efi_pci_device_path_t): New type.
38066 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
38067 (struct grub_efi_pccard_device_path): New structure.
38068 (grub_efi_pccard_device_path_t): New type.
38069 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
38070 (struct grub_efi_memory_mapped_device_path): New structure.
38071 (grub_efi_memory_mapped_device_path_t): New type.
38072 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
38073 (struct grub_efi_vendor_device_path): New structure.
38074 (grub_efi_vendor_device_path_t): New type.
38075 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
38076 (struct grub_efi_controller_device_path): New structure.
38077 (grub_efi_controller_device_path_t): New type.
38078 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
38079 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
38080 (struct grub_efi_acpi_device_path): New structure.
38081 (grub_efi_acpi_device_path_t): New type.
38082 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
38083 (struct grub_efi_expanded_acpi_device_path): New structure.
38084 (grub_efi_expanded_acpi_device_path_t): New type.
38085 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
38086 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
38087 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
38088 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
38089 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
38090 (struct grub_efi_atapi_device_path): New structure.
38091 (grub_efi_atapi_device_path_t): New type.
38092 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
38093 (struct grub_efi_fibre_channel_device_path): New structure.
38094 (grub_efi_fibre_channel_device_path_t): New type.
38095 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
38096 (struct grub_efi_1394_device_path): New structure.
38097 (grub_efi_1394_device_path_t): New type.
38098 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
38099 (struct grub_efi_usb_device_path): New structure.
38100 (grub_efi_usb_device_path_t): New type.
38101 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
38102 (struct grub_efi_usb_class_device_path): New structure.
38103 (grub_efi_usb_class_device_path_t): New type.
38104 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
38105 (struct grub_efi_i2o_device_path): New structure.
38106 (grub_efi_i2o_device_path_t): New type.
38107 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
38108 (struct grub_efi_mac_address_device_path): New structure.
38109 (grub_efi_mac_address_device_path_t): New type.
38110 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
38111 (struct grub_efi_ipv4_device_path): New structure.
38112 (grub_efi_ipv4_device_path_t): New type.
38113 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
38114 (struct grub_efi_ipv6_device_path): New structure.
38115 (grub_efi_ipv6_device_path_t): New type.
38116 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
38117 (struct grub_efi_infiniband_device_path): New structure.
38118 (grub_efi_infiniband_device_path_t): New type.
38119 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
38120 (struct grub_efi_uart_device_path): New structure.
38121 (grub_efi_uart_device_path_t): New type.
38122 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
38123 (struct grub_efi_vendor_messaging_device_path): New structure.
38124 (grub_efi_vendor_messaging_device_path_t): New type.
38125 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
38126 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
38127 (struct grub_efi_hard_drive_device_path): New structure.
38128 (grub_efi_hard_drive_device_path_t): New type.
38129 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
38130 (struct grub_efi_cdrom_device_path): New structure.
38131 (grub_efi_cdrom_device_path_t): New type.
38132 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
38133 (struct grub_efi_vendor_media_device_path): New structure.
38134 (grub_efi_vendor_media_device_path_t): New type.
38135 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
38136 (struct grub_efi_file_path_device_path): New structure.
38137 (grub_efi_file_path_device_path_t): New type.
38138 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
38139 (struct grub_efi_protocol_device_path): New structure.
38140 (grub_efi_protocol_device_path_t): New type.
38141 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
38142 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
38143 (struct grub_efi_bios_device_path): New structure.
38144 (grub_efi_bios_device_path_t): New type.
38145 (struct grub_efi_disk_io): New structure.
38146 (grub_efi_disk_io_t): New type.
38147 (struct grub_efi_block_io_media): New structure.
38148 (grub_efi_block_io_media_t): New type.
38149 (struct grub_efi_block_io): New structure.
38150 (grub_efi_block_io_t): New type.
38152 * include/grub/misc.h (grub_stop): Removed.
38153 (grub_exit): New prototype.
38154 (grub_abort): Likewise.
38156 * include/grub/disk.h (enum grub_disk_dev_id): Added
38157 GRUB_DISK_DEVICE_EFIDISK_ID.
38159 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
38160 disk/efi/efidisk.c.
38161 (kernel_syms.lst): Remove the target if an error occurs.
38163 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
38165 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
38166 as it was simply too buggy.
38168 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
38170 * kern/misc.c (grub_lltoa): New function.
38171 (grub_vsprintf): Added support for the long long suffix,
38174 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
38176 * Makefile.in (LDFLAGS): Add variable.
38177 (LD): Remove variable.
38178 * configure.ac: Add -m32 to LDFLAGS.
38179 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
38180 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
38181 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
38182 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
38183 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
38185 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
38186 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
38187 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
38189 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
38191 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
38192 length for unknown glyph.
38194 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
38196 Add support for pre-loaded modules into the EFI port.
38198 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
38199 completely. Accept one more argument DIR. The caller has changed.
38201 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
38203 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
38204 (grub_efi_loaded_image_guid): New variable.
38205 (grub_efi_get_loaded_image): New function.
38206 (grub_arch_modules_addr): Likewise.
38208 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
38211 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
38212 (struct grub_efi_loaded_image): New structure.
38213 (grub_efi_loaded_image_t): New type.
38215 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
38217 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
38218 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
38219 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
38221 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
38223 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
38225 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
38227 * DISTLIST: Added include/grub/efi/console.h,
38228 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
38229 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
38231 * include/grub/efi/console.h: New file.
38232 * include/grub/efi/time.h: Likewise.
38233 * include/grub/i386/efi/kernel.h: Likewise.
38234 * kern/efi/init.c: Likewise.
38235 * kern/efi/mm.c: Likewise.
38236 * term/efi/console.c: Likewise.
38238 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
38239 (grub_stop): Removed.
38240 (grub_get_rtc): Likewise.
38241 (grub_machine_init): Simply call grub_efi_init.
38242 (grub_machine_fini): Call grub_efi_fini.
38244 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
38245 (grub_efi_output_string): Removed.
38246 (grub_efi_stall): New function.
38247 (grub_stop): Likewise.
38248 (grub_get_rtc): Likewise.
38250 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
38251 (grub_efi_stall): New prototype.
38252 (grub_efi_allocate_pages): Likewise.
38253 (grub_efi_free_pages): Likewise.
38254 (grub_efi_get_memory_map): Likewise.
38255 (grub_efi_mm_init): Likewise.
38256 (grub_efi_mm_fini): Likewise.
38257 (grub_efi_init): Likewise.
38258 (grub_efi_fini): Likewise.
38260 * include/grub/i386/efi/time.h: Do not include
38261 grub/symbol.h. Include grub/efi/time.h.
38262 (GRUB_TICKS_PER_SECOND): Removed.
38263 (grub_get_rtc): Likewise.
38265 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
38266 Added padding. The EFI spec is buggy.
38267 (GRUB_EFI_BLACK): New macro.
38268 (GRUB_EFI_BLUE): Likewise.
38269 (GRUB_EFI_GREEN): Likewise.
38270 (GRUB_EFI_CYAN): Likewise.
38271 (GRUB_EFI_RED): Likewise.
38272 (GRUB_EFI_MAGENTA): Likewise.
38273 (GRUB_EFI_BROWN): Likewise.
38274 (GRUB_EFI_LIGHTGRAY): Likewise.
38275 (GRUB_EFI_BRIGHT): Likewise.
38276 (GRUB_EFI_DARKGRAY): Likewise.
38277 (GRUB_EFI_LIGHTBLUE): Likewise.
38278 (GRUB_EFI_LIGHTGREEN): Likewise.
38279 (GRUB_EFI_LIGHTCYAN): Likewise.
38280 (GRUB_EFI_LIGHTRED): Likewise.
38281 (GRUB_EFI_LIGHTMAGENTA): Likewise.
38282 (GRUB_EFI_YELLOW): Likewise.
38283 (GRUB_EFI_WHITE): Likewise.
38284 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
38285 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
38286 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
38287 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
38288 (GRUB_EFI_BACKGROUND_RED): Likewise.
38289 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
38290 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
38291 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
38292 (GRUB_EFI_TEXT_ATTR): Likewise.
38294 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
38295 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
38296 (kernel_mod_HEADERS): Added efi/time.h.
38298 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
38300 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
38301 include/grub/efi/api.h, include/grub/efi/console_control.h,
38302 include/grub/efi/efi.h, include/grub/efi/pe32.h,
38303 include/grub/i386/efi/time.h, kern/efi/efi.c,
38304 kern/i386/efi/init.c, kern/i386/efi/startup.S,
38305 and util/i386/efi/grub-mkimage.c.
38307 * Makefile.in (RMKFILES): Added i386-efi.rmk.
38309 * genmk.rb (PModule#rule): Do not export symbols if
38310 #{prefix}_EXPORTS is set to "no".
38312 * conf/i386-efi.mk: New file.
38313 * conf/i386-efi.rmk: Likewise.
38314 * include/grub/efi/api.h: Likewise.
38315 * include/grub/efi/console_control.h: Likewise.
38316 * include/grub/efi/efi.h: Likewise.
38317 * include/grub/efi/pe32.h: Likewise.
38318 * include/grub/i386/efi/time.h: Likewise.
38319 * kern/efi/efi.c: Likewise.
38320 * kern/i386/efi/init.c: Likewise.
38321 * kern/i386/efi/startup.S: Likewise.
38322 * util/i386/efi/grub-mkimage.c: Likewise.
38324 2006-04-17 Marco Gerards <marco@gnu.org>
38326 * include/grub/script.h: Include <grub/parser.h> and
38327 "grub_script.tab.h".
38328 (struct grub_lexer_param): New struct.
38329 (struct grub_parser_param): Likewise.
38330 (grub_script_create_arglist): Pass the state in an argument.
38331 (grub_script_add_arglist): Likewise.
38332 (grub_script_create_cmdline): Likewise.
38333 (grub_script_create_cmdblock): Likewise.
38334 (grub_script_create_cmdif): Likewise.
38335 (grub_script_create_cmdmenu): Likewise.
38336 (grub_script_add_cmd): Likewise.
38337 (grub_script_arg_add): Likewise.
38338 (grub_script_lexer_ref): Likewise.
38339 (grub_script_lexer_deref): Likewise.
38340 (grub_script_lexer_record_start): Likewise.
38341 (grub_script_lexer_record_stop): Likewise.
38342 (grub_script_mem_record): Likewise.
38343 (grub_script_mem_record_stop): Likewise.
38344 (grub_script_malloc): Likewise.
38345 (grub_script_yylex): Likewise.
38346 (grub_script_yyparse): Likewise.
38347 (grub_script_yyerror): Likewise.
38348 (grub_script_yylex): Likewise.
38349 (grub_script_lexer_init): Return the state.
38351 * normal/lexer.c (grub_script_lexer_state): Removed variable.
38352 (grub_script_lexer_done): Likewise.
38353 (grub_script_lexer_getline): Likewise.
38354 (grub_script_lexer_refs): Likewise.
38355 (script): Likewise.
38356 (newscript): Likewise.
38357 (record): Likewise.
38358 (recording): Likewise.
38359 (recordpos): Likewise.
38360 (recordlen): Likewise.
38361 (grub_script_lexer_init): Return the state instead of setting
38363 (grub_script_lexer_ref): Use the newly added argument for state
38364 instead of globals.
38365 (grub_script_lexer_deref): Likewise.
38366 (grub_script_lexer_record_start): Likewise.
38367 (grub_script_lexer_record_stop): Likewise.
38368 (recordchar): Likewise.
38369 (nextchar): Likewise.
38370 (grub_script_yylex2): Likewise.
38371 (grub_script_yylex): Likewise.
38372 (grub_script_yyerror): Likewise.
38374 * normal/parser.y (func_mem): Removed variable.
38375 (menu_entry): Likewise.
38377 (%lex-param): New parser option.
38378 (%parse-param): Likewise.
38379 (script): Always return the AST.
38380 (argument): Pass the state around.
38381 (arguments): Likewise.
38382 (grubcmd): Likewise.
38383 (commands): Likewise.
38384 (function): Likewise.
38385 (menuentry): Likewise.
38386 (if_statement): Likewise.
38389 * normal/script.c (grub_script_memused): Removed variable.
38390 (grub_script_parsed): Likewise.
38391 (grub_script_malloc): Added a state argument. Use that instead of
38393 (grub_script_mem_record): Likewise.
38394 (grub_script_mem_record_stop): Likewise.
38395 (grub_script_arg_add): Likewise.
38396 (grub_script_add_arglist): Likewise.
38397 (grub_script_create_cmdline): Likewise.
38398 (grub_script_create_cmdif): Likewise.
38399 (grub_script_create_cmdmenu): Likewise.
38400 (grub_script_add_cmd): Likewise.
38401 (grub_script_parse): Setup the state before calling the parser.
38403 2006-04-16 Marco Gerards <marco@gnu.org>
38405 * normal/command.c (grub_command_init): Remove the title command.
38407 * normal/lexer.c (grub_script_yylex): Renamed from this...
38408 (grub_script_yylex2): ... to this.
38409 (grub_script_yylex): New function. Temporary
38410 introduced to filter some tokens.
38411 (grub_script_yyerror): Print a newline.
38413 * normal/main.c (read_config_file): Output information about the
38414 lines that contain errors. Wait for a key after all lines have
38415 been processed. Don't return an empty menu.
38417 * normal/parser.y (func_mem): Don't initialize.
38418 (menu_entry): Likewise.
38419 (err): New variable.
38420 (script): Don't return anything when an error was encountered.
38421 (ws, returns): Removed rules.
38422 (argument): Disabled concatenated variable support.
38423 (arguments): Remove explicit separators.
38424 (grubcmd): Likewise.
38425 (function): Likewise.
38426 (menuentry): Likewise.
38428 (commands): Likewise. Add error handling.
38430 * normal/script.c (grub_script_create_cmdline): If
38431 `grub_script_parsed' is 0, assume the parser encountered an error.
38433 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
38435 * configure.ac: Add support for EFI. Fix the typo
38436 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
38438 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
38440 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
38441 foreign multibyte characters should be shown correctly.
38443 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
38445 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
38447 (read_config_file): Made it to close file before returning.
38449 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
38451 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
38452 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
38453 video/i386/pc/vbefill.c.
38455 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
38456 video/i386/pc/vbefill.c.
38458 * include/grub/video.h (grub_video_blit_format): New enum.
38459 (grub_video_mode_info): Added new member blit_format.
38460 (grub_video_get_blit_format): New function prototype.
38462 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
38463 function prototype.
38464 (grub_video_vbe_map_rgb): Likewise.
38465 (grub_video_vbe_unmap_color): Likewise.
38467 * include/grub/i386/pc/vbeblit.h: New file.
38469 * include/grub/i386/pc/vbefill.h: New file.
38471 * video/video.c (grub_video_get_blit_format): New function.
38472 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
38473 (grub_video_vbe_map_rgb): Likewise.
38474 (grub_video_vbe_unmap_color): Likewise.
38476 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
38478 (grub_video_vbe_blit_render_target): Changed to use more optimized
38480 (grub_video_vbe_setup): Added detection for optimized settings.
38481 (grub_video_vbe_create_render_target): Likewise.
38483 * video/i386/pc/vbeblit.c: New file.
38485 * video/i386/pc/vbefill.c: New file.
38487 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
38489 * font/manager.c (grub_font_get_glyph): Removed font fixup from
38492 * util/unifont2pff.rb: ... and moved it to here. Improved argument
38493 parsing to support both hex and dec ranges. If filename was missing
38494 show usage information.
38496 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
38498 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
38499 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
38501 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
38502 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
38503 (video_mod_SOURCES): Added.
38504 (video_mod_CFLAGS): Likewise.
38505 (video_mod_LDFLAGS): Likewise.
38506 (gfxterm_mod_SOURCES): Likewise.
38507 (gfxterm_mod_CFLAGS): Likewise.
38508 (gfxterm_mod_LDFLAGS): Likewise.
38509 (videotest_mod_SOURCES): Likewise.
38510 (videotest_mod_CFLAGS): Likewise.
38511 (videotest_mod_LDFLAGS): Likewise.
38512 (vesafb_mod_SOURCES): Removed.
38513 (vesafb_mod_CFLAGS): Likewise.
38514 (vesafb_mod_LDFLAGS): Likewise.
38515 (vga_mod_SOURCES): Likewise.
38516 (vga_mod_CFLAGS): Likewise.
38517 (vga_mod_LDFLAGS): Likewise.
38519 * commands/videotest.c: New file.
38521 * font/manager.c (fill_with_default_glyph): Modified to use
38523 (grub_font_get_glyph): Likewise.
38524 (fontmanager): Renamed from this...
38525 (font_manager): ... to this.
38527 * include/grub/font.h (grub_font_glyph): Added new structure.
38528 (grub_font_get_glyph): Modified to use grub_font_glyph.
38530 * include/grub/misc.h (grub_abs): Added as inline function.
38532 * include/grub/video.h: New file.
38534 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
38535 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
38536 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
38537 (grub_vbe_get_controller_info): Renamed from this...
38538 (grub_vbe_bios_get_controller_info): ... to this.
38539 (grub_vbe_get_mode_info): Renamed from this...
38540 (grub_vbe_bios_get_mode_info): ... to this.
38541 (grub_vbe_set_mode): Renamed from this...
38542 (grub_vbe_bios_set_mode): ... to this.
38543 (grub_vbe_get_mode): Renamed from this...
38544 (grub_vbe_bios_get_mode): ... to this.
38545 (grub_vbe_set_memory_window): Renamed from this...
38546 (grub_vbe_bios_set_memory_window): ... to this.
38547 (grub_vbe_get_memory_window): Renamed from this...
38548 (grub_vbe_bios_get_memory_window): ... to this.
38549 (grub_vbe_set_scanline_length): Renamed from this...
38550 (grub_vbe_set_scanline_length): ... to this.
38551 (grub_vbe_get_scanline_length): Renamed from this...
38552 (grub_vbe_bios_get_scanline_length): ... to this.
38553 (grub_vbe_set_display_start): Renamed from this...
38554 (grub_vbe_bios_set_display_start): ... to this.
38555 (grub_vbe_get_display_start): Renamed from this...
38556 (grub_vbe_bios_get_display_start): ... to this.
38557 (grub_vbe_set_palette_data): Renamed from this...
38558 (grub_vbe_bios_set_palette_data): ... to this.
38559 (grub_vbe_set_pixel_rgb): Removed.
38560 (grub_vbe_set_pixel_index): Likewise.
38562 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
38564 (grub_vbe_bios_get_controller_info): ... to this.
38565 (grub_vbe_get_mode_info): Renamed from this...
38566 (grub_vbe_bios_get_mode_info): ... to this.
38567 (grub_vbe_set_mode): Renamed from this...
38568 (grub_vbe_bios_set_mode): ... to this.
38569 (grub_vbe_get_mode): Renamed from this...
38570 (grub_vbe_bios_get_mode): ... to this.
38571 (grub_vbe_set_memory_window): Renamed from this...
38572 (grub_vbe_bios_set_memory_window): ... to this.
38573 (grub_vbe_get_memory_window): Renamed from this...
38574 (grub_vbe_bios_get_memory_window): ... to this.
38575 (grub_vbe_set_scanline_length): Renamed from this...
38576 (grub_vbe_set_scanline_length): ... to this.
38577 (grub_vbe_get_scanline_length): Renamed from this...
38578 (grub_vbe_bios_get_scanline_length): ... to this.
38579 (grub_vbe_set_display_start): Renamed from this...
38580 (grub_vbe_bios_set_display_start): ... to this.
38581 (grub_vbe_get_display_start): Renamed from this...
38582 (grub_vbe_bios_get_display_start): ... to this.
38583 (grub_vbe_set_palette_data): Renamed from this...
38584 (grub_vbe_bios_set_palette_data): ... to this.
38585 (grub_vbe_bios_get_controller_info): Fixed problem with registers
38586 getting corrupted after calling it. Added more pushes and pops.
38587 (grub_vbe_bios_set_mode): Likewise.
38588 (grub_vbe_bios_get_mode): Likewise.
38589 (grub_vbe_bios_get_memory_window): Likewise.
38590 (grub_vbe_bios_set_scanline_length): Likewise.
38591 (grub_vbe_bios_get_scanline_length): Likewise.
38592 (grub_vbe_bios_get_display_start): Likewise.
38593 (grub_vbe_bios_set_palette_data): Likewise.
38595 * normal/cmdline.c (cl_set_pos): Refresh the screen.
38596 (cl_insert): Likewise.
38597 (cl_delete): Likewise.
38599 * term/gfxterm.c: New file.
38601 * term/i386/pc/vesafb.c: Removed file.
38603 * video/video.c: New file.
38605 * video/i386/pc/vbe.c (real2pm): Added new function.
38606 (grub_video_vbe_draw_pixel): Likewise.
38607 (grub_video_vbe_get_video_ptr): Likewise.
38608 (grub_video_vbe_get_pixel): Likewise
38609 (grub_video_vbe_init): Likewise.
38610 (grub_video_vbe_fini): Likewise.
38611 (grub_video_vbe_setup): Likewise.
38612 (grub_video_vbe_get_info): Likewise.
38613 (grub_video_vbe_set_palette): Likewise.
38614 (grub_video_vbe_get_palette): Likewise.
38615 (grub_video_vbe_set_viewport): Likewise.
38616 (grub_video_vbe_get_viewport): Likewise.
38617 (grub_video_vbe_map_color): Likewise.
38618 (grub_video_vbe_map_rgb): Likewise.
38619 (grub_video_vbe_map_rgba): Likewise.
38620 (grub_video_vbe_unmap_color): Likewise.
38621 (grub_video_vbe_fill_rect): Likewise.
38622 (grub_video_vbe_blit_glyph): Likewise.
38623 (grub_video_vbe_blit_bitmap): Likewise.
38624 (grub_video_vbe_blit_render_target): Likewise.
38625 (grub_video_vbe_scroll): Likewise.
38626 (grub_video_vbe_swap_buffers): Likewise.
38627 (grub_video_vbe_create_render_target): Likewise.
38628 (grub_video_vbe_delete_render_target): Likewise.
38629 (grub_video_vbe_set_active_render_target): Likewise.
38630 (grub_vbe_set_pixel_rgb): Remove function.
38631 (grub_vbe_set_pixel_index): Likewise.
38632 (index_color_mode): Remove static variable.
38633 (active_mode): Likewise.
38634 (framebuffer): Likewise.
38635 (bytes_per_scan_line): Likewise.
38636 (grub_video_vbe_adapter): Added new static variable.
38637 (framebuffer): Likewise.
38638 (render_target): Likewise.
38639 (initial_mode): Likewise.
38640 (mode_in_use): Likewise.
38641 (mode_list): Likewise.
38643 2006-03-10 Marco Gerards <marco@gnu.org>
38645 * configure.ac (AC_INIT): Bumped to 1.93.
38647 * DISTLIST: Added `include/grub/hfs.h'.
38649 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
38651 * boot/i386/pc/boot.S (general_error): Before looping, try INT
38652 18H, which might help the BIOS falling back to next boot media.
38654 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
38656 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
38657 Poe Chen <poe.poechen@gmail.com>.
38659 2006-01-17 Marco Gerards <marco@gnu.org>
38661 * include/grub/normal.h: Include <grub/script.h>.
38662 (grub_command_list): Removed struct.
38663 (grub_command_list_t): Removed type.
38664 (grub_menu_entry): Remove members `num' and `command_list'. Add
38665 members `commands' and `sourcecode'.
38666 * include/grub/script.h: Add inclusion guards.
38667 (grub_script_cmd_menuentry): New struct.
38668 (grub_script_execute_menuentry): New prototype.
38669 (grub_script_lexer_record_start): Likewise.
38670 (grub_script_lexer_record_stop): Likewise.
38671 * normal/execute.c (grub_script_execute_menuentry): New function.
38672 * normal/lexer.c (record, recording, recordpos, recordlen): New
38674 (grub_script_lexer_record_start): New function.
38675 (grub_script_lexer_record_stop): Likewise.
38676 (recordchar): Likewise.
38677 (nextchar): Likewise.
38678 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
38679 2048 as the buffer size. Add the tokens `menuentry' and `@'.
38680 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
38681 (current_menu): New variable.
38682 (free_menu): Mainly rewritten.
38683 (grub_normal_menu_addentry): New function.
38684 (read_config_file): Rewritten.
38685 * normal/menu.c (run_menu_entry): Mainly rewritten.
38686 * normal/menu_entry.c (make_screen): Rewritten the code to insert
38688 (run): Mainly rewritten.
38689 * normal/parser.y (menu_entry): New variable.
38690 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
38691 (menuentry): New rule.
38692 (command): Add `menuentry'.
38693 (if_statement): Allow additional returns before `fi'.
38694 * normal/script.c (grub_script_create_cmdmenu): New function.
38696 2006-01-03 Marco Gerards <marco@gnu.org>
38698 * INSTALL: GNU Bison is required.
38699 * configure.ac: Rewritten the test to detect Bison.
38700 * Makefile.in (YACC): New variable. Reported by Xun Sun
38701 <xun.sun.cn@gmail.com>.
38703 2006-01-03 Marco Gerards <marco@gnu.org>
38705 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
38706 the HFS+ filesystem to filesystem blocks.
38707 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
38708 GCC warning is silenced.
38710 2006-01-03 Marco Gerards <marco@gnu.org>
38712 * partmap/apple.c (apple_partition_map_iterate): Convert the data
38713 read from disk from big endian to host byte order.
38715 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
38717 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
38719 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
38720 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
38721 embedded HFS+ filesystem.
38722 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
38723 (grub_hfs_sblock): Move from here...
38724 * include/grub/hfs.h: To here... New file.
38725 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
38727 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
38729 (grub_hfsplus_volheader): Change type of member `magic' to
38731 (grub_hfsplus_data): Add new member `embedded_offset'.
38732 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
38734 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
38735 Calculate the offset.
38737 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38739 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
38741 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
38743 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38745 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
38746 ENV->NAME is NULL after allocating ENV->VALUE.
38748 2005-12-25 Marco Gerards <marco@gnu.org>
38750 * kern/env.c (grub_env_set): Rewritten the error handling code.
38752 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38754 * geninit.sh: Made more robust, and more portable.
38756 2005-12-25 Marco Gerards <marco@gnu.org>
38758 Add support for Apple HFS+ filesystems.
38760 * fs/hfsplus.c: New file.
38762 * DISTLIST: Added `fs/hfsplus.c'.
38764 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
38765 (hfsplus_mod_SOURCES): New variable.
38766 (hfsplus_mod_CFLAGS): Likewise.
38767 (hfsplus_mod_LDFLAGS): Likewise.
38768 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
38769 (grub_setup_SOURCES): Likewise.
38770 (grub_mkdevicemap_SOURCES): Likewise.
38771 (grub_emu_SOURCES): Likewise.
38772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38774 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
38776 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
38778 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38780 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
38781 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
38782 include/grub/parser.h, include/grub/script.h, kern/parser.c,
38783 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
38784 normal/lexer.c, normal/parser.y, normal/script.c, and
38786 Removed kern/sparc64/cache.c.
38788 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
38789 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
38792 * configure.ac (AC_INIT): Bumped to 1.92.
38794 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
38796 * kern/err.c (grub_error_push): Added new function to support error
38798 (grub_error_pop): Likewise.
38799 (grub_error_stack_items): New local variable to support error stacks.
38800 (grub_error_stack_pos): Likewise.
38801 (grub_error_stack_assert): Likewise.
38802 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
38804 (grub_print_error): Added support to print errors from error stack.
38806 * include/grub/err.h (grub_error_push): Added function prototype.
38807 (grub_error_pop): Likewise.
38809 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
38811 * configure.ac: Accept `powerpc64' as host_cpu.
38812 (amd64): Rename to `biarch32'.
38814 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
38815 non-cacheline-aligned addresses.
38817 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
38818 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
38819 if `size' is non-zero.
38821 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
38823 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
38824 and `cd' to make sure the filename is not prefixed with a
38826 (pkgdata_MODULES): Add `gpt.mod'.
38827 (gpt_mod_SOURCES): New variable.
38828 (gpt_mod_CFLAGS): Likewise.
38829 (gpt_mod_LDFLAGS): Likewise.
38831 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
38833 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
38836 * partmap/gpt.c: New file.
38838 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
38839 GPT partition map is detected.
38841 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
38843 * commands/i386/pc/play.c: New file.
38844 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
38845 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
38848 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
38850 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
38851 ((unused))' to silence gcc warning.
38853 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
38855 * configure.ac: Correct `AC_PROG_YACC' test.
38857 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38859 * util/powerpc/ieee1275/grub-install.in: Run the mount point
38860 check before installing files.
38862 2005-11-22 Mike Small <smallm@panix.com>
38864 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
38865 number regex so multidigit numbers are recognized correctly.
38867 2005-11-22 Mike Small <smallm@panix.com>
38869 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
38870 debugging message before attempting to claim memory.
38871 (grub_rescue_cmd_initrd): Add a claim debugging message and try
38872 multiple addresses in case of failure.
38874 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38876 * term/tparm.c (get_space): Remove empty `if' statement.
38878 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
38880 * kern/parser.c (check_varstate): Rename `state' to 's'.
38882 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38884 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
38885 variable definitions to the beginning of each function. Sort stack
38887 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
38888 `buf' argument to `char *'.
38890 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38892 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
38893 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38894 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38895 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38896 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38897 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38898 configfile.mod, search.mod, gzio.mod and test.mod.
38899 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38900 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38901 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38902 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38903 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38904 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38905 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38906 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38907 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38908 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38909 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38910 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38911 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38912 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38913 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38914 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38915 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38916 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38917 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38918 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38919 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38920 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38921 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
38923 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
38925 (pkgdata_MODULES): Add test.mod.
38927 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38929 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
38930 appending to variables with "+=".
38931 (PModule): Use full pathname to generate *.lst filenames.
38933 * Makefile.in: Fixed list rules moved from genmk.rb.
38934 (.DELETE_ON_ERROR): New special target.
38935 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
38937 * conf/i386-pc.rmk: Include conf/common.mk.
38938 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38939 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38940 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38941 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38942 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38943 configfile.mod, search.mod, gzio.mod and test.mod.
38944 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38945 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38946 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38947 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38948 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38949 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38950 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38951 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38952 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38953 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38954 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38955 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38956 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38957 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38958 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38959 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38960 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38961 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38962 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38963 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38964 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38965 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38966 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
38968 * conf/common.rmk: ... to here. New file.
38970 * conf/common.mk: New file.
38972 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
38974 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
38975 (grub_script.tab.c): ... here.
38977 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
38978 (grub_script.tab.c): ... here.
38980 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
38981 (grub_script.tab.c): ... here.
38983 * normal/command.c (grub_command_find): Fixed a memory leak of
38984 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
38986 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38988 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
38989 "@" which marks the start of a comment on ARM.
38990 (VARIABLE): Likewise.
38992 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38994 Add support for Linux/ADFS partition tables.
38996 * partmap/acorn.c: New file.
38998 * include/grub/acorn_filecore.h: Likewise.
39000 * DISTLIST: Added `partmap/acorn.c' and
39001 `include/grub/acorn_filecore.h'.
39003 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39005 (pkgdata_MODULES): Add `acorn.mod'.
39006 (acorn_mod_SOURCES): New variable.
39007 (acorn_mod_CFLAGS): Likewise.
39009 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
39011 (pkgdata_MODULES): Add `acorn.mod'.
39012 (acorn_mod_SOURCES): New variable.
39013 (acorn_mod_CFLAGS): Likewise.
39015 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
39016 (pkgdata_MODULES): Add `acorn.mod'.
39017 (acorn_mod_SOURCES): New variable.
39018 (acorn_mod_CFLAGS): Likewise.
39019 (acorn_mod_LDFLAGS): Likewise.
39021 * include/types.h (grub_disk_addr_t): New typedef.
39023 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
39025 * geninit.sh: New file.
39027 * geninitheader.sh: Likewise.
39029 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
39030 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
39031 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
39032 * commands/configfile.c (grub_configfile_init)
39033 (grub_configfile_fini): Likewise.
39034 * commands/default.c (grub_default_init, grub_default_fini):
39036 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
39037 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
39038 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
39039 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
39041 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
39042 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
39044 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
39045 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
39047 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
39049 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
39051 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
39052 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
39053 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
39054 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
39055 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
39056 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
39057 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
39058 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
39059 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
39060 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
39061 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
39062 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
39063 * partmap/amiga.c (grub_amiga_partition_map_init)
39064 (grub_amiga_partition_map_fini): Likewise.
39065 * partmap/apple.c (grub_apple_partition_map_init)
39066 (grub_apple_partition_map_fini): Likewise.
39067 * partmap/pc.c (grub_pc_partition_map_init)
39068 (grub_pc_partition_map_fini): Likewise.
39069 * partmap/sun.c (grub_sun_partition_map_init,
39070 grub_sun_partition_map_fini): Likewise.
39071 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
39074 * util/grub-emu.c: Include <grub_modules_init.h>.
39075 (main): Don't initialize and de-initialize any modules directly,
39076 use `grub_init_all' and `grub_fini_all' instead.
39078 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
39079 `grub_vesafb_mod_init'.
39080 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
39082 * term/i386/pc/vga.c (grub_vga_init): Renamed to
39083 `grub_vga_mod_init'. Updated all users.
39084 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
39086 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
39087 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
39090 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
39091 Generate a function to initialize the module in utilities.
39092 Updated all callers.
39093 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
39094 initialize the module in utilities. Updated all callers.
39096 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
39098 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
39099 escape sequence and a literal ^L to clear the screen.
39101 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
39102 when returning from Open Firmware.
39104 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
39106 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
39107 (grub_ofconsole_height): Likewise.
39108 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
39109 manually insert a '\n'.
39110 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
39111 `grub_ofconsole_height'. Return early if these are already set.
39113 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
39115 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
39116 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
39117 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
39118 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
39119 and `normal/script.c'.
39120 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39121 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39122 (test_mod_SOURCES): New variable.
39123 (test_mod_CFLAGS): Likewise.
39124 (test_mod_LDFLAGS): Likewise.
39125 (pkgdata_MODULES): Add `test.mod'.
39126 (grub_script.tab.c): New rule.
39127 (grub_script.tab.h): Likewise.
39129 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
39131 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39132 `commands/test.c', `normal/execute.c', `normal/lexer.c',
39133 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39134 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39135 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39136 (test_mod_SOURCES): New variable.
39137 (test_mod_CFLAGS): Likewise.
39138 (pkgdata_MODULES): Add `test.mod'.
39139 (grub_script.tab.c): New rule.
39140 (grub_script.tab.h): Likewise.
39142 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
39144 Add initial scripting support.
39146 * commands/test.c: New file.
39147 * include/grub/script.h: Likewise.
39148 * normal/execute.c: Likewise.
39149 * normal/function.c: Likewise.
39150 * normal/lexer.c: Likewise.
39151 * normal/parser.y: Likewise.
39152 * normal/script.c: Likewise.
39154 * configure.ac: Add `AC_PROG_YACC' test.
39156 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
39157 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
39158 `normal/function.c' and `normal/script.c'.
39159 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39160 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39161 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
39163 (pkgdata_MODULES): Add `test.mod'.
39164 (grub_script.tab.c): New rule.
39165 (grub_script.tab.h): Likewise.
39167 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
39169 * include/grub/normal.h (grub_test_init): New prototype.
39170 (grub_test_fini): Likewise.
39172 * normal/command.c: Include <grub/script.h>.
39173 (grub_command_execute): Rewritten.
39175 * util/grub-emu.c (main): Call `grub_test_init' and
39178 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
39180 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
39182 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
39183 there are no pending characters.
39185 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
39187 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
39188 `grub_strndup' to drop device arguments. Replace unnecessary
39189 `grub_strndup' with `grub_strdup'.
39191 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
39193 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
39194 `debug' environment variable has been set.
39196 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
39198 * Makefile.in (install-local): Use $(DATA).
39199 (uninstall): Likewise.
39200 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
39201 (sbin_UTILITIES): ... to here.
39202 (sbin_SCRIPTS): New variable.
39203 (grub_install_SOURCES): New variable.
39204 * util/powerpc/ieee1275/grub-install.in: New file.
39205 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
39207 (add_segments): Call `grub_util_get_path'.
39209 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
39211 From Timothy Baldwin:
39212 * commands/ls.c (grub_ls_list_files): Close FILE with
39214 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
39216 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
39218 * include/grub/parser.h: New file.
39220 * kern/parser.c: Likewise.
39222 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
39223 (grub_setup_SOURCES): Likewise.
39224 (grub_probefs_SOURCES): Likewise.
39225 (grub_emu_SOURCES): Likewise.
39226 (kernel_img_HEADERS): Add `parser.h'.
39228 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
39229 (grub_emu_SOURCES): Add `kern/parser.c'.
39230 (grubof_SOURCES): Likewise.
39232 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
39233 (grubof_SOURCES): Add `kern/parser.c'.
39235 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
39237 * kern/misc.c (grub_split_cmdline): Removed function.
39239 * kern/rescue.c: Include <grub/parser.h>.
39240 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
39241 of `grub_split_cmdline'.
39243 * normal/command.c: Include <grub/parser.h>.
39244 (grub_command_execute): Use `grub_parser_split_cmdline' instead
39245 of `grub_split_cmdline'.
39247 * normal/completion.c: Include <grub/parser.h>.
39248 (cmdline_state): New variable.
39249 (iterate_dir): End the filename with a quote depending on the
39250 command line state.
39251 (get_state): new function.
39252 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
39253 split the arguments and determine the current argument. When the
39254 argument string is not quoted, escape all spaces.
39256 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39258 * normal/sparc64/setjmp.S: New file.
39260 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39262 * include/grub/sparc64/libgcc.h: New file.
39263 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
39264 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
39265 normal/sparc64/setjmp.c.
39267 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39269 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
39270 * kern/sparc64/cache.S: New file.
39271 * kern/sparc64/cache.c: Removed.
39272 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
39273 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
39275 (COMMON_LDFLAGS): Add -melf64_sparc.
39276 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
39277 (grubof_SOURCES): Use cache.S instead of cache.c.
39278 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
39279 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
39280 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
39282 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
39283 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
39284 (linux_mod_CFLAGS): Commented out.
39285 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
39286 out because module isn't built.
39287 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
39288 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
39289 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
39290 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
39291 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
39292 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
39293 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
39294 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
39295 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
39296 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
39297 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
39298 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
39299 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
39300 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
39302 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
39304 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
39305 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
39306 longer, because HFS should not be used on PC.
39308 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39310 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
39311 consistently within the loop.
39313 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
39315 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
39316 directory can not be read.
39318 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39320 * configure.ac (AC_INIT): Increase the version number to 1.91.
39322 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
39323 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
39324 term/i386/pc/serial.c.
39326 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39328 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
39329 file size must be permitted.
39331 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
39332 between %ah and %al.
39334 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39336 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
39338 Call the hook with a NUL-terminated filename.
39339 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
39342 * kern/term.c (cursor_state): New variable.
39343 (grub_term_set_current): Reset the cursor state on a new
39345 (grub_setcursor): Rewritten to use CURSOR_STATE.
39346 (grub_getcursor): New function.
39348 * include/grub/term.h (grub_getcursor): New prototype.
39350 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
39351 integers on ARM. Reported by Timothy Baldwin
39352 <T.E.Baldwin99@members.leeds.ac.uk>.
39354 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
39356 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
39358 (grub_sfs_dir): Likewise.
39360 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
39362 Add support for the SFS filesystem.
39364 * fs/sfs.c: New file.
39366 * DISTLIST: Added `fs/sfs.c'.
39368 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
39369 (grub_probefs_SOURCES): Likewise.
39370 (grub_emu_SOURCES): Likewise.
39371 (pkgdata_MODULES): Add `sfs.mod'.
39372 (sfs_mod_SOURCES): New variable.
39373 (sfs_mod_CFLAGS): Likewise.
39374 (sfs_mod_LDFLAGS): Likewise.
39376 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
39377 (pkgdata_MODULES): Add `sfs.mod'.
39378 (sfs_mod_SOURCES): New variable.
39379 (sfs_mod_CFLAGS): Likewise.
39381 * util/grub-emu.c (main): Call `grub_sfs_init' and
39384 * include/grub/fs.h (grub_sfs_init): New prototype.
39385 (grub_sfs_fini): Likewise.
39387 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
39389 Add support for the AFFS filesystem.
39391 * fs/affs.c: New file.
39393 * DISTLIST: Added `fs/affs.c'.
39395 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
39396 (grub_probefs_SOURCES): Likewise.
39397 (grub_emu_SOURCES): Likewise.
39398 (pkgdata_MODULES): Add `affs.mod'.
39399 (affs_mod_SOURCES): New variable.
39400 (affs_mod_CFLAGS): Likewise.
39401 (affs_mod_LDFLAGS): Likewise.
39403 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
39404 (pkgdata_MODULES): Add `affs.mod'.
39405 (affs_mod_SOURCES): New variable.
39406 (affs_mod_CFLAGS): Likewise.
39408 * util/grub-emu.c (main): Call `grub_affs_init' and
39411 * include/grub/fs.h (grub_affs_init): New prototype.
39412 (grub_affs_fini): Likewise.
39414 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
39416 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
39418 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
39420 * configure.ac: Accept `x86_64' as host_cpu. In that case add
39423 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
39426 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
39427 (COMMON_LDFLAGS): New variable.
39428 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
39429 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
39430 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
39431 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
39432 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
39433 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
39434 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
39435 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
39436 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
39437 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
39438 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
39439 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
39440 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
39441 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
39442 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
39444 (normal_mod_ASFLAGS): Add `-m32'.
39446 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
39447 (grub_host_size_t, grub_host_ssize_t): New types.
39448 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
39449 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
39450 `GRUB_HOST_SIZEOF_VOID_P'.
39452 * include/grub/kernel.h (struct grub_module_header): Type of
39453 member offset changed to `grub_host_off_t'. Type of member size
39454 changed to `grub_host_size_t'.
39455 (struct grub_module_info): Type of member offset changed to
39456 `grub_host_off_t'. Type of member size changed to
39457 `grub_host_size_t'.
39459 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
39461 Make GRUB's kernel compliant to Multiboot Specification.
39463 * kern/i386/pc/startup.S (multiboot_header): New label.
39464 (multiboot_entry): Likewise.
39465 (multiboot_trampoline): Likewise.
39467 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
39468 Increased to 0x4A0.
39470 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
39471 put parentheses after a question mark.
39472 [!GRUB_UTIL] (my_mod): New variable.
39474 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
39476 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
39478 Adds support for the XFS filesystem. Btrees are not supported
39481 * fs/xfs.c: New file.
39483 * DISTLIST: Added `fs/xfs.c'.
39485 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
39486 (grub_probefs_SOURCES): Likewise.
39487 (grub_emu_SOURCES): Likewise.
39488 (pkgdata_MODULES): Add `xfs.mod'.
39489 (xfs_mod_SOURCES): New variable.
39490 (xfs_mod_CFLAGS): Likewise.
39492 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
39493 (pkgdata_MODULES): Add `xfs.mod'.
39494 (xfs_mod_SOURCES): New variable.
39495 (xfs_mod_CFLAGS): Likewise.
39497 * util/grub-emu.c (main): Call `grub_xfs_init' and
39500 * include/grub/fs.h (grub_xfs_init): New prototype.
39501 (grub_xfs_fini): Likewise.
39504 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
39506 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
39507 color modes, allow greater than 16 colors to be configured as
39510 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39512 * normal/completion.c (complete_arguments): Add the qualifier
39513 const into OPTIONS.
39515 From Omniflux <omniflux+lists@omniflux.com>:
39516 * include/grub/terminfo.h: New file.
39517 * include/grub/tparm.h: Likewise.
39518 * include/grub/i386/pc/serial.h: Likewise.
39519 * term/terminfo.c: Likewise.
39520 * term/tparm.c: Likewise.
39521 * term/i386/pc/serial.c: Likewise.
39522 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
39524 (terminfo_mod_SOURCES): New variable.
39525 (terminfo_mod_CFLAGS): Likewise.
39526 (serial_mod_SOURCES): Likewise.
39527 (serial_mod_CFLAGS): Likewise.
39529 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
39531 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
39532 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
39533 and kern/powerpc/ieee1275/cmain.c, respectively.
39535 * boot/powerpc/ieee1275/crt0.S: Moved to ...
39536 * kern/powerpc/ieee1275/crt0.S: ... here.
39538 * boot/powerpc/ieee1275/cmain.c: Moved to ...
39539 * kern/powerpc/ieee1275/cmain.c: ... here.
39541 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
39542 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
39543 instead of boot/powerpc/ieee1275/crt0.S and
39544 boot/powerpc/ieee1275/cmain.c, respectively.
39546 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
39547 sectors. It was not used anyway.
39549 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
39551 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
39552 `unused parameter' warning.
39554 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
39556 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
39558 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
39561 2005-08-28 Marco Gerards <metgerards@student.han.nl>
39563 * include/grub/normal.h (enum grub_completion_type): Added
39564 `GRUB_COMPLETION_TYPE_ARGUMENT'.
39566 * normal/cmdline.c (print_completion): Handle
39567 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
39568 * normal/menu_entry.c (store_completion): Likewise.
39570 * normal/completion.c (complete_arguments): New function.
39571 (grub_normal_do_completion): Call `complete_arguments' when the
39572 current words start with a dash.
39574 2005-08-27 Marco Gerards <metgerards@student.han.nl>
39576 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
39577 `gzio.mod' instead of `io.mod').
39579 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
39581 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
39582 (DISTDIRS): Added io and video.
39583 Rewrite the search routine to make an output consistently.
39585 * DISTLIST: Added conf/sparc64-ieee1275.mk,
39586 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
39587 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
39588 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
39589 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
39590 util/powerpc/ieee1275/misc.c.
39592 * include/grub/gzio.h: New file.
39593 * io/gzio.c: Likewise.
39595 * kern/file.c (grub_file_close): Call grub_device_close only if
39596 FILE->DEVICE is not NULL.
39598 * include/grub/mm.h [!NULL] (NULL): New macro.
39600 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
39602 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
39603 (pkgdata_MODULES): Added gzio.mod.
39604 (gzio_mod_SOURCES): New variable.
39605 (gzio_mod_CFLAGS): Likewise.
39607 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
39608 (pkgdata_MODULES): Added gzio.mod.
39609 (gzio_mod_SOURCES): New variable.
39610 (gzio_mod_CFLAGS): Likewise.
39612 * commands/cat.c: Include grub/gzio.h.
39613 (grub_cmd_cat): Use grub_gzfile_open instead of
39616 * commands/cmp.c: Include grub/gzio.h.
39617 (grub_cmd_cmp): Use grub_gzfile_open instead of
39620 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
39621 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
39623 (grub_rescue_cmd_module): Likewise.
39625 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39627 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
39628 kern/sparc64/ieee1275/init.c because it contains _start.
39629 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
39631 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39633 * configure.ac: Add support for sparc64 host with ieee1275
39635 * configure: Generated from configure.ac.
39636 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
39638 (grub_ofdisk_read): Likewise.
39639 (grub_ofdisk_open): Use %p to print pointer values, and cast the
39640 pointers as (void *) to remove a warning.
39641 (grub_ofdisk_close): Likewise.
39642 (grub_ofdisk_read): Likewise.
39643 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
39644 returns, so make it return void to remove a warning.
39645 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
39646 Corresponding prototype change.
39647 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
39648 values, and cast the pointers as (void *) to remove a warning.
39649 (grub_mm_dump): Likewise.
39650 * conf/sparc64-ieee1275.mk: New file.
39651 * conf/sparc64-ieee1275.rmk: Likewise.
39652 * include/grub/sparc64/setjmp.h: Likewise.
39653 * include/grub/sparc64/types.h: Likewise.
39654 * include/grub/sparc64/ieee1275/console.h: Likewise.
39655 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
39656 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
39657 * include/grub/sparc64/ieee1275/time.h: Likewise.
39658 * kern/sparc64/cache.c: Likewise.
39659 * kern/sparc64/dl.c: Likewise.
39660 * kern/sparc64/ieee1275/init.c: Likewise.
39661 * kern/sparc64/ieee1275/openfw.c: Likewise.
39663 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39665 * util/console.c (grub_ncurses_putchar): If C is greater than
39666 0x7f, set C to a question mark.
39667 (grub_ncurses_getcharwidth): New function.
39668 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
39671 * normal/menu.c (print_entry): Made aware of Unicode. First,
39672 convert TITLE to UCS-4, and predict the cursor position by
39675 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
39677 * kern/misc.c (grub_utf16_to_utf8): Likewise.
39679 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39681 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
39682 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39685 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
39686 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39687 grub_strcpy and grub_strlen. Take it into account that a space
39688 character is inserted as a delimiter.
39690 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39692 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
39693 invalid magic in the error.
39695 * commands/search.c: New file.
39697 * util/grub-emu.c (main): Call grub_search_init and
39700 * kern/rescue.c (grub_rescue_print_disks): Removed.
39701 (grub_rescue_print_devices): New function.
39702 (grub_rescue_cmd_ls): Use grub_device_iterate with
39703 grub_rescue_print_devices instead of grub_disk_dev_iterate with
39704 grub_rescue_print_disks.
39706 * kern/partition.c (grub_partition_iterate): Return the result of
39707 PARTMAP->ITERATE instead of GRUB_ERRNO.
39709 * kern/device.c: Include grub/partition.h.
39710 (grub_device_iterate): New function.
39712 * include/grub/partition.h (grub_partition_iterate): Return int
39713 instead of grub_err_t.
39715 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
39717 [GRUB_UTIL] (grub_search_fini): Likewise.
39719 * include/grub/device.h (grub_device_iterate): New prototype.
39721 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
39723 (pkgdata_MODULES): Added search.mod.
39724 (search_mod_SOURCES): New variable.
39725 (search_mod_CFLAGS): Likewise.
39727 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
39728 (pkgdata_MODULES): Added search.mod.
39729 (search_mod_SOURCES): New variable.
39730 (search_mod_CFLAGS): Likewise.
39732 * commands/ls.c (grub_ls_list_disks): Renamed to ...
39733 (grub_ls_list_devices): ... this, and use grub_device_iterate.
39734 All callers changed.
39736 * DISTLIST: Added commands/search.c.
39738 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39740 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
39742 (grub_getcharwidth): New function.
39744 * kern/misc.c (grub_utf8_to_ucs4): New function.
39746 * include/grub/term.h (struct grub_term): Added a new member
39748 (grub_getcharwidth): New prototype.
39750 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
39752 * term/i386/pc/console.c (map_char): New function. Segregated from
39753 grub_console_putchar.
39754 (grub_console_putchar): Use map_char.
39755 (grub_console_getcharwidth): New function.
39756 (grub_console_term): Specified grub_console_getcharwidth as
39759 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
39760 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
39762 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
39764 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
39765 on grub_strtoul completely.
39766 (write_char): Declare local variables in the beginning of the
39768 (grub_vesafb_getcharwidth): New function.
39769 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
39772 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
39774 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
39775 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
39776 commands/i386/pc/vbetest.c.
39778 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
39779 call grub_vbe_get_controller_info again, because the returned
39780 information is volatile.
39781 (grub_vbe_set_video_mode): Mostly rewritten.
39782 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
39783 grub_vbe_status_t correctly.
39784 (grub_vbe_get_video_mode_info): Likewise.
39785 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
39786 several if statements.
39788 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
39789 * commands/i386/pc/vbeinfo.c: ... this.
39791 * commands/i386/pc/vbe_test.c: Renamed to ...
39792 * commands/i386/pc/vbetest.c: ... this.
39794 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
39796 (grub_cmd_vbeinfo): ... this. Save video modes before
39797 iterating. Skip a video mode, if it is not available, not enough
39798 information is given or it is monochrome. Show the memory
39799 model. Leave the interpretation of MODEVAR to grub_strtoul
39801 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
39802 (GRUB_MOD_FINI): Likewise.
39804 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
39805 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
39806 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
39807 duplicated grub_env_get. Leave the interpretation of MODEVAR to
39808 grub_strtoul completely.
39809 (real2pm): Removed.
39810 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
39811 (GRUB_MOD_FINI): Likewise.
39813 * normal/misc.c: Include grub/mm.h.
39815 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
39816 vbe_list_modes with vbetest.mod and vbeinfo.mod.
39817 (vbe_list_modes_mod_SOURCES): Removed.
39818 (vbe_list_modes_mod_CFLAGS): Likewise.
39819 (vbe_test_mod_SOURCES): Likewise.
39820 (vbe_test_mod_CFLAGS): Likewise.
39821 (vbeinfo_mod_SOURCES): New variable.
39822 (vbeinfo_mod_CFLAGS): Likewise.
39823 (vbetest_mod_SOURCES): Likewise.
39824 (vbetest_mod_CFLAGS): Likewise.
39826 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
39828 * normal/misc.c: New file.
39830 * DISTLIST: Added normal/misc.c.
39832 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
39833 DISK to HOOK. Call HOOK with DISK.
39834 * partmap/apple.c (apple_partition_map_iterate): Likewise.
39835 * partmap/pc.c (pc_partition_map_iterate): Likewise.
39836 * partmap/sun.c (sun_partition_map_iterate): Likewise.
39838 * normal/menu_entry.c (struct screen): Added a new member
39839 "completion_shown".
39840 (completion_buffer): New global variable.
39841 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
39842 (store_completion): New function.
39843 (complete): Likewise.
39844 (clear_completions): Likewise.
39845 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
39846 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
39847 a tab, call complete.
39849 * normal/completion.c (disk_dev): Removed.
39850 (print_simple_completion): Likewise.
39851 (print_partition_completion): Likewise.
39852 (print_func): New global variable.
39853 (add_completion): Do not take the arguments WHAT or PRINT any
39854 longer. Added a new argument TYPE. Instead of printing directly,
39855 call PRINT_FUNC if not NULL.
39856 All callers changed.
39857 (complete_device): Use a local variable DEV instead of
39858 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
39859 (grub_normal_do_completion): Take a new argument HOOK. Do not
39860 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
39861 empty string, return NULL instead.
39862 All callers changed.
39864 * normal/cmdline.c (print_completion): New function.
39866 * kern/partition.c (grub_partition_iterate): Add an argument DISK
39868 All callers changed.
39870 * kern/disk.c (grub_print_partinfo): Removed.
39872 * include/grub/partition.h (struct grub_partition_map): Add a new
39873 argument DISK into HOOK of ITERATE.
39874 (grub_partition_iterate): Add a new argument DISK to HOOK.
39876 * include/grub/normal.h (enum grub_completion_type): New enum.
39877 (grub_completion_type_t): New type.
39878 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
39879 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
39880 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
39881 (GRUB_COMPLETION_TYPE_FILE): Likewise.
39882 (grub_normal_do_completion): Added a new argument HOOK.
39883 (grub_normal_print_device_info): New prototype.
39885 * include/grub/disk.h (grub_print_partinfo): Removed.
39887 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
39888 (normal_mod_SOURCES): Likewise.
39889 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39890 (normal_mod_SOURCES): Likewise.
39892 * commands/ls.c (grub_ls_list_disks): Use
39893 grub_normal_print_device_info instead of grub_print_partinfo. Free
39895 (grub_ls_list_files): Use grub_normal_print_device_info instead of
39896 duplicating the code.
39898 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39900 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
39901 follow GCS more precisely.
39902 * commands/i386/pc/vbe_test.c: Likewise.
39903 * include/grub/i386/pc/vbe.h: Likewise.
39904 * term/i386/pc/vesafb.c: Likewise.
39905 * video/i386/pc/vbe.c: Likewise.
39907 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39909 * DISTLIST: Added term/i386/pc/vesafb.c
39910 DISTLIST: Added video/i386/pc/vbe.c
39911 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
39912 DISTLIST: Added commands/i386/pc/vbe_test.c.
39913 * commands/i386/pc/vbe_list_modes.c: New file.
39914 * commands/i386/pc/vbe_test.c: Likewise.
39915 * term/i386/pc/vesafb.c: Likewise.
39916 * video/i386/pc/vbe.c: Likewise.
39917 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
39918 (grub_vbe_probe) Added prototype.
39919 (grub_vbe_set_video_mode) Likewise.
39920 (grub_vbe_get_video_mode) Likewise.
39921 (grub_vbe_get_video_mode_info) Likewise.
39922 (grub_vbe_set_pixel_rgb) Likewise.
39923 (grub_vbe_set_pixel_index) Likewise.
39924 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
39925 (pkgdata_MODULES): Added vesafb.mod.
39926 (pkgdata_MODULES): Added vbe_list_modes.mod.
39927 (pkgdata_MODULES): Added vbe_test.mod.
39928 (vbe_mod_SOURCES): Added.
39929 (vbe_mod_CFLAGS): Likewise.
39930 (vesafb_mod_SOURCES): Likewise.
39931 (vesafb_mod_CFLAGS): Likewise.
39932 (vbe_list_modes_mod_SOURCES): Likewise.
39933 (vbe_list_modes_mod_CFLAGS): Likewise.
39934 (vbe_test_mod_SOURCES): Likewise.
39935 (vbe_test_mod_CFLAGS): Likewise.
39937 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
39939 * normal/command.c (grub_command_execute): If INTERACTIVE is
39940 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
39941 CMDLINE. Disable the pager if INTERACTIVE is true.
39942 All callers are changed.
39944 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
39945 before reading a config file.
39946 * normal/main.c (read_config_file): Even if a command is not
39947 found, register it if it is within an entry.
39949 * util/grub-emu.c: Include sys/types.h and unistd.h.
39950 (options): Added --hold.
39951 (struct arguments): Added a new member "hold".
39952 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
39954 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
39955 cleared by a debugger, if it is not zero.
39957 * include/grub/normal.h (grub_command_execute): Add an argument
39960 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
39962 * DISTLIST: Added include/grub/i386/pc/vbe.h.
39964 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
39966 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
39967 program with another one, because the old one didn't detect a bug
39968 in gcc-3.4. Always use regparm 2, because the new test is still
39969 not enough for gcc-4.0. Someone must investigate a simple test
39970 case which detects a bug in gcc-4.0.
39972 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
39974 * DISTLIST: Added normal/completion.c.
39976 * normal/completion.c: New file.
39978 * term/i386/pc/console.c (grub_console_getwh): New function.
39979 (grub_console_term): Assign grub_console_getwh to getwh.
39981 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
39982 function is defined in normal/completion.c as
39983 grub_normal_do_completion.
39984 (grub_cmdline_get): Use grub_normal_do_completion instead of
39987 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
39988 returns non-zero, otherwise return 0.
39989 (grub_partition_iterate): First, probe the partition map. Then,
39990 call ITERATE only for this partition map.
39992 * kern/misc.c (grub_strncmp): Rewritten.
39994 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
39995 returns non-zero. Otherwise return 0.
39997 * include/grub/partition.h (grub_partition_map_iterate): Return
39998 int instead of void.
40000 * include/grub/normal.h (grub_normal_do_completion): New prototype.
40002 * include/grub/misc.h (grub_strncmp): Change the type of N to
40005 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
40008 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
40009 unsigned explicitly before comparing it with I.
40011 * kern/main.c (grub_env_write_root): Add the attribute unused into
40014 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
40015 normal/completion.c.
40016 (normal_mod_SOURCES): Likewise.
40017 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40018 (normal_mod_SOURCES): Likewise.
40020 * normal/command.c (grub_iterate_commands): If ITERATE returns
40021 non-zero, return one immediately.
40023 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
40025 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
40026 * kern/i386/pc/startup.S: Updated Global Descriptor table's
40028 (grub_vbe_get_controller_info): New function.
40029 (grub_vbe_get_mode_info): Likewise.
40030 (grub_vbe_set_mode): Likewise.
40031 (grub_vbe_get_mode): Likewise.
40032 (grub_vbe_set_memory_window): Likewise.
40033 (grub_vbe_get_memory_window): Likewise.
40034 (grub_vbe_set_scanline_length): Likewise.
40035 (grub_vbe_get_scanline_length): Likewise.
40036 (grub_vbe_set_display_start): Likewise.
40037 (grub_vbe_get_display_start): Likewise.
40038 (grub_vbe_set_palette_data): Likewise.
40039 * include/grub/i386/pc/vbe.h: New file.
40041 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
40043 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
40044 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
40045 * DISTLIST: Likewise.
40046 * kern/ieee1275/of.c: Moved to ...
40047 * kern/ieee1275/ieee1275.c: ... here.
40049 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
40051 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
40052 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
40053 Pass 0 as `end' parameter to grub_strtoul().
40055 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
40057 * include/grub/powerpc/ieee1275/console.h: Do not include
40058 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
40060 (grub_console_cur_color): Remove i386-specific prototype.
40061 (grub_console_real_putchar): Likewise.
40062 (grub_console_checkkey): Likewise.
40063 (grub_console_getkey): Likewise.
40064 (grub_console_getxy): Likewise.
40065 (grub_console_gotoxy): Likewise.
40066 (grub_console_cls): Likewise.
40067 (grub_console_setcursor): Likewise.
40068 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
40069 Include <grub/machine/console.h>.
40070 * term/ieee1275/ofconsole.c: Likewise.
40072 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
40074 * Makefile.in (LIBLZO): New variable.
40076 * configure.ac: Check for LZO version 2.
40078 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
40079 lzo/lzo1x.h instead of lzo1x.h.
40081 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
40084 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
40085 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
40087 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
40088 copying the data from PARTITION to P.
40090 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40092 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
40093 negative, unload the module.
40095 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
40096 map is "pc_partition_map" but not "pc".
40097 (usage): Fix the description. The options are --boot-image and
40098 --core-image but not --boot-file or --core-file.
40099 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
40100 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
40103 * util/i386/pc/grub-install.in: Do not specify --boot-file or
40104 --core-file. Specify INSTALL_DEVICE as an argument.
40106 * util/console.c: Include config.h.
40107 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
40108 [HAVE_NCURSES_H]: Include ncurses.h.
40109 [HAVE_CURSES_H]: Include curses.h.
40110 [!A_NORMAL] (A_NORMAL): Defined as zero.
40111 [!A_STANDOUT] (A_STANDOUT): Likewise.
40113 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
40115 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
40117 * configure.ac: Check for curses libraries and headers.
40119 * Makefile.in (LIBCURSES): New variable.
40121 * genmk.rb (Script::rule): Set the executable bits.
40123 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
40124 name of the PC partition map is "pc_partition_map" but not "pc".
40126 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40128 * util/i386/pc/grub-install.in (grub_probefs): New variable.
40129 (modules): Likewise.
40130 (usage): Added descriptions for --modules and --grub-probefs.
40131 Handle --modules and --grub-probefs. Save the arguments in MODULES
40132 and GRUB_PROBEFS, respectively.
40133 Auto-detect a filesystem module against GRUBDIR. If the result is
40134 empty and modules are not specified explicitly, abort the
40135 installation. Add the result to MODULES.
40137 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
40138 disk/powerpc/ieee1275/ofdisk.c,
40139 include/grub/powerpc/ieee1275/init.h and
40140 term/powerpc/ieee1275/ofconsole.c.
40141 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
40142 term/ieee1275/ofconsole.c.
40144 * include/grub/powerpc/ieee1275/console.h: Resurrected.
40146 * COPYING: Upgraded to the latest version. Only the address of the
40147 FSF office has changed.
40149 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40151 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
40152 kern/ieee1275.c with kern/ieee1275/of.c.
40154 * kern/ieee1275.c: Moved to ...
40155 * kern/ieee1275/of.c: ... here.
40157 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
40159 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
40162 * config.guess: Updated to the latest version from gnulib.
40163 * config.sub: Likewise.
40164 * install.sh: Likewise.
40165 * mkinstalldirs: Likewise.
40167 * include/grub/console.h: Removed. This file is arch-specific. Do
40168 not put this in include/grub.
40170 * include/grub/i386/pc/console.h: Resurrected.
40172 * util/console.c: Include grub/machine/console.h instead of
40174 * util/grub-emu.c: Likewise.
40176 2005-08-04 Marco Gerards <metgerards@student.han.nl>
40178 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
40181 From Vincent Pelletier <subdino2004@yahoo.fr>
40182 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
40183 Redefined to use grub_getwh.
40184 (grub_term): New member named getwh.
40185 (grub_getwh): New prototype.
40186 * kern/term.c (grub_getwh): New function.
40187 * term/i386/pc/console.c (grub_console_getwh): New function.
40188 (grub_console_term): New member `getwh'.
40189 * term/i386/pc/vga.c (grub_vga_getwh): New function.
40190 (grub_vga_term): New member `getwh'.
40191 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
40193 (grub_ofconsole_getw): New function.
40194 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
40195 (grub_ofconsole_term): New field named getwh and new initial
40198 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
40200 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
40201 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
40202 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
40203 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
40204 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
40205 of <grub/machine/ieee1275.h>.
40206 * commands/ieee1275/reboot.c: Likewise.
40207 * boot/powerpc/ieee1275/ieee1275.c: Move ...
40208 * kern/ieee1275.c: ... to here. All users updated. Change all
40209 parameter structs to use new type `grub_ieee1275_cell_t'.
40210 * term/powerpc/ieee1275/ofconsole.c: Move ...
40211 * term/ieee1275/ofconsole.c: ... to here. All users updated.
40212 * disk/powerpc/ieee1275/ofdisk.c: Move ...
40213 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
40214 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
40216 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
40217 Remove unused prototypes. All users updated.
40218 * include/grub/powerpc/ieee1275/console.h: Removed.
40219 * include/grub/powerpc/ieee1275/ieee1275.h: Define
40220 `grub_ieee1275_cell_t'.
40221 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
40222 Cast comparisons with -1 to the correct type.
40223 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
40224 type to match `grub_ieee1275_entry_fn'.
40226 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
40228 * DISTLIST: Added util/i386/pc/grub-probefs.c.
40230 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
40231 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
40233 (grub_probefs_SOURCES): New variable.
40235 * util/i386/pc/grub-probefs.c: New file.
40237 * util/i386/pc/grub-setup.c (main): Call
40238 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
40239 grub_hfs_init and grub_jfs_init to initialize the system. Call
40240 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
40241 grub_pc_partition_map_fini to finish the system.
40243 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
40245 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
40247 (grub_multiboot_load_elf32): Likewise.
40248 (grub_multiboot_is_elf64): Likewise.
40249 (grub_multiboot_load_elf64): Likewise.
40250 (grub_multiboot_load_elf): Likewise.
40251 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
40252 an ELF32 or ELF64 file.
40253 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
40255 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
40256 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
40257 NULL before calling FS->LABEL.
40258 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
40259 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
40260 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
40261 before calling FS->LABEL.
40263 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
40265 * util/i386/pc/grub-install.in (datadir): New variable.
40267 (pkgdatadir): New variable.
40268 (pkglibdir): Removed.
40270 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
40272 * DISTLIST: Added util/i386/pc/grub-install.in.
40274 * util/i386/pc/grub-install.in: New file.
40276 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
40277 (grub_install_SOURCES): Likewise.
40279 * genmk.rb: Added support for scripts.
40280 (Script): New class.
40281 (scripts): New variable.
40283 * Makefile.in (install-local): Install sbin_SCRIPTS by
40285 (uninstall): Remove sbin_SCRIPTS.
40287 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
40288 device, try to get a GRUB device by
40289 grub_util_biosdisk_get_grub_dev.
40292 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
40293 description for --device-map.
40295 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
40297 Change the semantics of variable hooks. They now return strings
40298 instead of error values.
40300 * util/i386/pc/grub-setup.c: Include grub/env.h.
40301 (setup): Use grub_device_set_root instead of grub_env_set.
40303 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
40304 grub_env_get instead of grub_device_set_root and
40305 grub_device_get_root, respectively.
40307 * kern/main.c (grub_env_write_root): New function.
40308 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
40309 grub_env_set instead of grub_device_set_root.
40311 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
40313 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
40314 rather than calling ENV->WRITE_HOOK afterwards.
40315 (grub_env_get): Return the result of ENV->READ_HOOK rather than
40316 passing a pointer of a pointer.
40317 (grub_register_variable_hook): Change the types of "read_hook" and
40318 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
40320 Allocate the default empty string on the heap, because this string
40321 may be freed later.
40323 * kern/device.c: Include grub/env.h.
40324 (grub_device_set_root): Removed.
40325 (grub_device_get_root): Likewise.
40326 (grub_device_open): Use grub_env_get instead of
40327 grub_device_get_root.
40329 * include/grub/env.h (grub_env_read_hook_t): New type.
40330 (grub_env_write_hook_t): Likewise.
40331 (grub_env_var): Change the types of "read_hook" and "write_hook"
40332 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
40333 (grub_register_variable_hook): Likewise.
40335 * include/grub/device.h (grub_device_set_root): Removed.
40336 (grub_device_set_root): Likewise.
40338 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
40339 make sure that DIRNAME terminates with '/', so that
40340 grub_fat_find_dir will fail if PATH is not a directory.
40342 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
40344 Use the qualifier auto for print_files and print_files_long.
40345 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
40347 Put a newline only if there is no error.
40348 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
40351 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
40353 * kern/partition.c (grub_partition_probe): Initialize PART to
40354 NULL. Otherwise, when no partition map is registered, this returns
40357 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
40359 * partmap/apple.c (apple_partition_map_iterate): Check if POS
40360 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
40363 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
40365 * commands/ls.c (grub_ls_list_disks): Print the filesystem
40366 information on each device, if it does not have partitions. Print
40367 "Device" instead of "Disk", because this function is not specific
40370 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
40371 static to ensure that it is put on the memory rather than a
40374 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40376 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
40377 (grub_cat_init): Likewise.
40378 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
40379 (options): Likewise.
40380 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
40381 (grub_configfile_init): Likewise.
40382 * font/manager.c (GRUB_MOD_INIT): Likewise.
40383 * commands/help.c (GRUB_MOD_INIT): Likewise.
40384 (grub_help_init): Likewise.
40385 * normal/command.c (grub_command_init): Likewise.
40386 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
40387 * disk/loopback.c (grub_loop_init): Likewise.
40388 (GRUB_MOD_INIT): Likewise.
40389 * commands/ls.c (grub_ls_init): Likewise.
40390 (GRUB_MOD_INIT): Likewise.
40391 (options): Likewise.
40392 * commands/boot.c (grub_boot_init): Likewise.
40393 (GRUB_MOD_INIT): Likewise.
40394 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
40395 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
40396 (GRUB_MOD_INIT): Likewise.
40397 * commands/cmp.c (grub_cmp_init): Likewise.
40398 (GRUB_MOD_INIT): Likewise.
40400 * normal/arg.c: Use <> instead of "" to include header files.
40401 (SHORT_ARG_HELP): New macro.
40402 (SHORT_ARG_USAGE): Likewise.
40403 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
40404 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
40406 (find_short): Check if C is 'h' or 'u' explicitly.
40407 (grub_arg_show_help): Use space characters instead of tabs. Treat
40408 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
40409 are shown with --help and --usage only if they are not used for
40410 the command itself.
40411 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
40414 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
40415 const into "longarg". Change the type of "shortarg" to int.
40417 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40419 * boot/i386/pc/boot.S (boot_drive_check): New label.
40421 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
40424 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
40425 which do not pass a boot drive correctly. Copied from GRUB Legacy.
40427 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40429 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
40430 When turning off Gate A20, skip the check and return immediately,
40431 because this is not fatal usually.
40433 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40435 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
40436 be 0x7C00 instead of 0x8000.
40438 * boot/i386/pc/pxeboot.S: Rewritten.
40440 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
40442 (gate_a20_check_state): Read a byte from 0x108000. Invert the
40445 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
40447 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
40448 robustness. This routine now supports a BIOS call and System
40449 Control Port A to modify the gate A20.
40451 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
40452 Increased to 0x440.
40454 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
40456 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
40457 device path and resulting ihandle.
40458 (grub_ofdisk_close): dprintf the ihandle being closed.
40459 (grub_ofdisk_read): dprintf function parameters.
40460 * kern/mm.c (grub_mm_init_region): Likewise.
40461 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
40462 (grub_linux_boot): dprintf the Linux entry point, initrd address and
40463 size, and boot arguments.
40464 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
40465 before loading into memory.
40466 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
40467 before loading into memory.
40469 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
40471 * kern/mm.c: Added much documentation.
40472 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
40473 8, set to 5 instead of 8.
40475 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
40477 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
40479 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
40480 (grub_mkdevicemap_SOURCES): New variable.
40482 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
40483 lib/device.c of GRUB Legacy.
40485 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
40487 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
40488 instead of PATH is NULL.
40490 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
40492 * commands/cmp.c (BUFFER_SIZE): New macro.
40493 (grub_cmd_cmp): Close the right file at the right time. Compare
40494 only data just read. Don't report files of different size as
40495 identical. Dynamically allocate buffers. Move variable
40496 declarations at the beginning of function.
40498 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
40500 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
40503 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
40505 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
40506 when backspace is pressed at beginning of line.
40508 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
40510 * DISTLIST: Added genfslist.sh.
40512 * normal/main.c (fs_module_list): New variable.
40513 (autoload_fs_module): New function.
40514 (read_fs_list): Likewise.
40515 (grub_normal_execute): Call read_fs_list.
40517 * kern/fs.c (grub_fs_autoload_hook): New variable.
40518 (grub_fs_probe): Added support for auto-loading.
40520 * include/grub/normal.h (struct grub_fs_module_list): New struct.
40521 (grub_fs_module_list_t): New type.
40523 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
40524 (grub_fs_autoload_hook): New prototype.
40526 * genfslist.sh: New file.
40528 * genmk.rb: Added a rule to generate a filesystem list.
40530 2005-06-30 Marco Gerards <metgerards@student.han.nl>
40532 * configure.ac: Fix the test for cross-compiling.
40534 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
40535 define GRUB_UTIL anymore.
40537 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
40538 so this function works on other systems than just big endian.
40539 (load_modules): Likewise.
40540 (add_segments): Likewise.
40542 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
40544 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
40545 contains `l' modifier, get a long from va_arg().
40547 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
40549 * kern/mm.c (grub_free): If the next free block which is being
40550 merged is the first free block, set the first block to the block
40552 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
40554 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
40556 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
40557 `grub_ieee1275_chosen'.
40559 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
40561 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
40562 (grub_ieee1275_chosen): New variable.
40563 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
40565 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
40566 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
40567 Rename first argument to `phandle' for consistency.
40568 (grub_ieee1275_get_property_length): Likewise.
40569 (grub_ieee1275_next_property): Likewise. Change type of first argument
40570 to grub_ieee1275_phandle_t.
40571 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
40572 Move export next to declaration.
40573 (grub_ieee1275_chosen): New variable.
40574 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
40575 Correct cosmetic typo.
40576 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
40577 `grub_ieee1275_chosen'.
40578 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
40579 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
40580 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
40581 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
40582 `grub_ieee1275_chosen'.
40584 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
40586 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
40588 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
40589 /chosen/bootargs as "variable=value" pairs.
40591 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
40593 * include/grub/misc.h (grub_dprintf): New macro.
40594 (grub_real_dprintf): New prototype.
40595 (grub_strword): Likewise.
40596 (grub_iswordseparator): Likewise.
40597 * kern/misc.c (grub_real_dprintf): New function.
40598 (grub_strword): Likewise.
40599 (grub_iswordseparator): Likewise.
40601 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
40603 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
40604 (roundup): Remove macro.
40605 (grub_ieee1275_flags): Make static.
40606 (grub_ieee1275_realmode): Remove.
40607 (grub_ieee1275_test_flag): New function.
40608 (grub_ieee1275_set_flag): Likewise.
40609 (find_options): Rename to `grub_ieee1275_find_options'; update
40610 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
40611 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
40612 (cmain): New prototype.
40613 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
40614 `grub_ieee1275_flags' directly.
40615 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
40616 machine/biosdisk.h.
40617 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
40618 Don't include grub/machine/init.h.
40619 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
40620 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
40622 (grub_ieee1275_realmode): Likewise.
40623 (grub_ieee1275_flag): New enum.
40624 (grub_ieee1275_test_flag): New prototype.
40625 (grub_ieee1275_set_flag): New prototype.
40626 * include/grub/powerpc/ieee1275/init.h: Remove file.
40627 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
40628 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
40629 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
40630 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
40632 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
40633 `grub_ieee1275_test_flag'.
40634 (grub_ieee1275_encode_devname): Likewise.
40636 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
40638 * include/grub/powerpc/ieee1275/ieee1275.h
40639 (grub_ieee1275_encode_devname): New prototype.
40640 (grub_ieee1275_get_filename): Likewise.
40641 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
40643 (grub_set_prefix): Likewise.
40644 (grub_machine_init): Call grub_set_prefix.
40645 * kern/powerpc/ieee1275/openfw.c: Fix typos.
40646 (grub_parse_type): New enum.
40647 (grub_ieee1275_get_devargs): New function.
40648 (grub_ieee1275_get_devname): Likewise.
40649 (grub_ieee1275_parse_args): Likewise.
40650 (grub_ieee1275_get_filename): Likewise.
40651 (grub_ieee1275_encode_devname): Likewise.
40653 2005-03-30 Marco Gerards <metgerards@student.han.nl>
40655 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
40656 `grub_loader_unset'.
40658 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
40660 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
40661 instead of grub_ieee1275_interpret.
40662 (grub_halt_init): New function.
40663 (grub_halt_fini): Likewise.
40664 (GRUB_MOD_INIT): Correct message grammar.
40665 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
40666 instead of grub_ieee1275_interpret.
40667 (grub_reboot_init): New function.
40668 (grub_reboot_fini): Likewise.
40669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
40670 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
40671 util/i386/pc/misc.c with commands/ieee1275/halt.c,
40672 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
40673 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
40675 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
40677 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
40679 (grub_halt): Likewise.
40680 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
40681 (cmain): Remove __attribute__((unused)).
40682 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
40683 (grub_heap_len): Likewise.
40684 (grub_machine_fini): New function.
40685 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
40686 (grub_halt): Likewise.
40687 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
40689 * util/powerpc/ieee1275/misc.c: New file.
40691 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40693 * DISTLIST: New file.
40694 * gendistlist.sh: Likewise.
40696 * Makefile.in (COMMON_DISTFILES): Removed.
40697 (BOOT_DISTFILES): Likewise.
40698 (CONF_DISTFILES): Likewise.
40699 (DISK_DISTFILES): Likewise.
40700 (FS_DISTFILES): Likewise.
40701 (INCLUDE_DISTFILES): Likewise.
40702 (KERN_DISTFILES): Likewise.
40703 (LOADER_DISTFILES): Likewise.
40704 (TERM_DISTFILES): Likewise.
40705 (UTIL_DISTFILES): Likewise.
40706 (DISTFILES): Likewise.
40707 (uninstall): Uninstall files in $(pkgdata_DATA).
40708 (DISTLIST): New target.
40709 (distdir): Use the contents of the file DISTLIST to get a list of
40712 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40714 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
40715 descriptor. This is ported from GRUB Legacy.
40717 * gencmdlist.sh: Added an extra semicolon to make it work with
40718 old sed versions. Reported by Robert Bihlmeyer
40719 <robbe@orcus.priv.at>.
40721 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
40723 Automatic loading of commands is supported.
40725 * normal/main.c (read_command_list): New function.
40726 (grub_normal_execute): Call read_command_list.
40728 * normal/command.c (grub_register_command): Return zero or CMD.
40729 Allocate CMD->NAME from the heap.
40730 Initialize CMD->MODULE_NAME to zero.
40731 Find the same name as well. If the same command is found and it is
40732 a dummy command, overwrite members. If it is not a dummy command,
40734 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
40735 (grub_command_find): If a dummy command is found, load a module
40736 and retry to find a command only once.
40738 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
40739 make sure that each command is loaded.
40741 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
40743 (struct grub_command): Remove const from the member `name'.
40744 Add a new member `module_name'.
40745 (grub_register_command): Return grub_command_t.
40747 * commands/help.c (grub_cmd_help): Call grub_command_find to make
40748 sure that each command is loaded.
40750 * genmk.rb (PModule::rule): Specify a module name without the
40751 suffix ".mod" to gencmdlist.sh.
40753 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40755 * gencmdlist.sh: New file.
40757 * genmk.rb (PModule::rule): Generate a rule for a command list.
40759 Generate command.lst from $(COMMANDFILES).
40761 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
40762 (DATA): Added $(pkgdata_DATA).
40763 (install-local): Install files in $(pkgdata_DATA).
40765 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40767 * term/i386/pc/vga.c (debug_command): Removed.
40768 (GRUB_MOD_INIT): Do not register the command "debug".
40770 From Hollis Blanchard:
40771 * commands/configfile.c: New file.
40772 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40773 commands/configfile.c.
40774 (pkgdata_MODULES): Added configfile.mod.
40775 (configfile_mod_SOURCES): New variable.
40776 (configfile_mod_CFLAGS): Likewise.
40777 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
40778 commands/configfile.c.
40779 (pkgdata_MODULES): Added configfile.mod.
40780 (configfile_mod_SOURCES): New variable.
40781 (configfile_mod_CFLAGS): Likewise.
40782 * util/grub-emu.c (main): Call grub_configfile_init and
40783 grub_configfile_fini.
40784 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
40786 [GRUB_UTIL] (grub_configfile_fini): Likewise.
40788 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40790 * normal/arg.c (grub_arg_show_help): Do not show the bug report
40793 * commands/help.c (grub_cmd_help): Do not print newlines after
40794 the last command in print_command_help.
40796 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40798 * commands/default.h: New file.
40799 * commands/timeout.h: Likewise.
40800 * normal/context.c: Likewise.
40802 * util/misc.c: Do not include sys/times.h.
40803 Include sys/time.h and grub/machine/time.h.
40804 (grub_get_rtc): Rewritten with gettimeofday.
40806 * util/grub-emu.c (main): Call grub_default_init and
40807 grub_timeout_init before grub_normal_init, and call
40808 grub_timeout_fini and grub_default_fini after grub_main.
40810 * util/console.c (grub_ncurses_checkkey): Return the read
40813 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
40816 * normal/main.c (read_config_file): Push MENU. If this fails,
40817 print an error and wait for a user input.
40818 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
40819 If a menu is empty or an error occurs, pop MENU.
40820 (grub_normal_execute): Pop and free MENU after grub_menu_run
40823 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
40825 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
40827 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40829 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
40831 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40834 * include/grub/normal.h (struct grub_menu_list): New struct.
40835 (grub_menu_list_t): New type.
40836 (struct grub_context): New struct.
40837 (grub_context_t): New type.
40838 (grub_register_command): Got rid of EXPORT_FUNC.
40839 (grub_unregister_command): Likewise.
40840 (grub_context_get): New prototype.
40841 (grub_context_get_current_menu): Likewise.
40842 (grub_context_push_menu): Likewise.
40843 (grub_context_pop_menu): Likewise.
40844 [GRUB_UTIL] (grub_default_init): Likewise.
40845 [GRUB_UTIL] (grub_default_fini): Likewise.
40846 [GRUB_UTIL] (grub_timeout_init): Likewise.
40847 [GRUB_UTIL] (grub_timeout_fini): Likewise.
40849 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
40850 commands/timeout.c and normal/context.c.
40851 (pkgdata_MODULES): Added default.mod and timeout.mod.
40852 (normal_mod_SOURCES): Added normal/context.c.
40853 (default_mod_SOURCES): New variable.
40854 (default_mod_CFLAGS): Likewise.
40855 (timeout_mod_SOURCES): Likewise.
40856 (timeout_mod_CFLAGS): Likewise.
40857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
40859 (pkgdata_MODULES): Added default.mod and timeout.mod.
40860 (normal_mod_SOURCES): Added normal/context.c.
40861 (default_mod_SOURCES): New variable.
40862 (default_mod_CFLAGS): Likewise.
40863 (timeout_mod_SOURCES): Likewise.
40864 (timeout_mod_CFLAGS): Likewise.
40866 * Makefile.in (all-local): Added $(MKFILES).
40868 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
40870 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
40871 (grub_emu_SOURCES): Likewise.
40872 (pkgdata_MODULES): Add `sun.mod'.
40873 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40874 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40876 (pkgdata_MODULES): Add `sun.mod'.
40877 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40878 * include/grub/partition.h (grub_sun_partition_map_init): New
40880 (grub_sun_partition_map_fini): Likewise.
40881 * partmap/sun.c: New file.
40882 * util/grub-emu.c (main): Initialize and de-initialize the sun
40883 partitionmap support.
40885 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
40887 This implements an Emacs-like menu entry editor.
40889 * normal/menu_entry.c: New file.
40891 * util/console.c (grub_ncurses_putchar): Translate some Unicode
40892 characters to ASCII.
40893 (saved_char): New variable.
40894 (grub_ncurses_checkkey): Rewritten completely.
40895 (grub_ncurses_getkey): Likewise.
40896 (grub_ncurses_init): Call raw instead of cbreak.
40898 * normal/menu.c (print_entry): Do not put a space.
40899 (init_page): Renamed to ...
40900 (grub_menu_init_page): ... this. All callers changed.
40901 (edit_menu_entry): Removed.
40902 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
40904 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
40906 * kern/misc.c (grub_vprintf): Call grub_refresh.
40908 * normal/menu.c (DISP_LEFT): Renamed to ...
40909 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
40910 * normal/menu.c (DISP_UP): Renamed to ...
40911 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
40912 * normal/menu.c (DISP_RIGHT): Renamed to ...
40913 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
40914 * normal/menu.c (DISP_DOWN): Renamed to ...
40915 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
40916 * normal/menu.c (DISP_HLINE): Renamed to ...
40917 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
40918 * normal/menu.c (DISP_VLINE): Renamed to ...
40919 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
40920 * normal/menu.c (DISP_UL): Renamed to ...
40921 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
40922 * normal/menu.c (DISP_UR): Renamed to ...
40923 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
40924 * normal/menu.c (DISP_LL): Renamed to ...
40925 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
40926 * normal/menu.c (DISP_LR): Renamed to ...
40927 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
40928 * normal/menu.c (TERM_WIDTH): Renamed to ...
40929 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
40930 * normal/menu.c (TERM_HEIGHT): Renamed to ...
40931 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
40932 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
40933 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
40934 * normal/menu.c (TERM_MARGIN): Renamed to ...
40935 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
40936 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
40937 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
40938 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
40939 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
40940 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
40941 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
40942 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
40943 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
40944 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
40945 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
40946 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
40947 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
40948 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
40949 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
40950 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
40951 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
40952 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
40953 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
40954 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
40955 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
40956 All callers changed.
40958 * include/grub/normal.h: New prototype.
40960 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40961 normal/menu_entry.c.
40962 (normal_mod_SOURCES): Likewise.
40963 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40964 (normal_mod_SOURCES): Likewise.
40966 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
40968 * include/grub/normal.h (grub_halt_init): New prototype.
40969 (grub_halt_fini): Likewise.
40970 (grub_reboot_init): Likewise.
40971 (grub_reboot_fini): Likewise.
40973 * util/grub-emu.c: Include signal.h.
40974 (main_env): New global variable.
40975 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
40977 (grub_machine_fini): New function.
40978 (main): Call grub_halt_init and grub_reboot_init before
40979 grub_main, and grub_reboot_fini and grub_halt_fini after it.
40980 Call setjmp with MAIN_ENV to go back afterwards.
40981 Call grub_machine_fini right before return.
40983 * include/grub/util/misc.h: Include setjmp.h.
40984 (main_env): New prototype.
40986 * include/grub/kernel.h (grub_machine_fini): New prototype.
40987 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
40988 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
40990 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
40991 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
40992 * term/i386/pc/console.c (grub_console_fini): Likewise.
40994 * util/i386/pc/misc.c: New file.
40996 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40997 util/i386/pc/misc.c, commands/i386/pc/halt.c and
40998 commands/i386/pc/reboot.c.
41000 2005-02-14 Guillem Jover <guillem@hadrons.org>
41002 * include/grub/dl.h (grub_dl_check_header): New prototype.
41003 (grub_arch_dl_check_header): Change return type to grub_err_t,
41004 remove size parameter and export function. Update all callers.
41005 * kern/dl.c (grub_dl_check_header): New function.
41006 (grub_dl_load_core): Use `grub_dl_check_header' instead of
41007 `grub_arch_dl_check_header'. Check ELF type. Check if sections
41008 are inside the core.
41009 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
41010 independent ELF header checks.
41011 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
41012 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
41013 `grub_dl_check_header' instead of explicit checks. Check for the
41015 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
41016 `grub_dl_check_header' instead of explicit checks. Remove arch
41017 specific ELF header checks.
41019 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
41022 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
41024 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
41025 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
41027 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
41029 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
41030 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
41031 (part_map_iterate): Clear `grub_errno' and return 0 if
41032 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
41033 * partmap/amiga.c (amiga_partition_map_iterate): Return
41034 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
41035 * partmap/apple.c (apple_partition_map_iterate): Likewise.
41037 2005-02-01 Guillem Jover <guillem@hadrons.org>
41039 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
41042 2005-01-31 Marco Gerards <metgerards@student.han.nl>
41044 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
41046 (grub_rescue_cmd_linux): New prototype.
41047 (grub_rescue_cmd_initrd): Likewise.
41048 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
41050 (grub_linux_release_mem): Release the memory for the initrd.
41051 (grub_load_linux): Renamed from this...
41052 (grub_rescue_cmd_linux): ...To this. Changed all callers.
41053 Changed `entry' not to be static. Loop over memory regions to
41054 find another one when the default fails.
41055 (grub_rescue_cmd_initrd): New function.
41056 (grub_linux_init): Remove function.
41057 (grub_linux_fini): Likewise.
41058 (GRUB_MOD_INIT): Register `initrd'.
41059 (GRUB_MOD_FINI): Unregister `initrd'.
41060 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
41062 (grub_linux_normal_fini): Likewise.
41063 (GRUB_MOD_INIT): Register `initrd'.
41064 (GRUB_MOD_FINI): Unregister `initrd'.
41066 2005-01-31 Marco Gerards <metgerards@student.han.nl>
41068 * commands/help.c: New file.
41069 * normal/arg.c (show_help): Renamed to...
41070 (grub_arg_show_help): ... this.
41071 * commands/i386/pc/halt.c: New file.
41072 * commands/i386/pc/reboot.c: Likewise.
41073 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
41074 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
41075 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
41076 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
41078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
41080 (pkgdata_MODULES): Add `help.mod'.
41081 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
41082 * grub/i386/pc/init.h (grub_reboot): New prototype.
41083 (grub_halt): Likewise.
41084 * include/grub/normal.h (grub_arg_show_help): New prototype.
41085 (grub_help_init): Likewise.
41086 (grub_help_fini): Likewise.
41087 * util/grub-emu.c (main): Initialize and deinitialize the help
41090 * normal/cmdline.c (grub_cmdline_get): Doc fix.
41092 * normal/command.c (grub_command_init): Fixed the description of
41093 the `set' and `unset' commands.
41095 2005-01-31 Marco Gerards <metgerards@student.han.nl>
41097 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
41099 * commands/ieee1275/halt.c: New file.
41100 * commands/ieee1275/reboot.c: Likewise.
41101 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
41102 `__attribute__ ((unused))'. Some GCS related fixed.
41103 (grub_suspend_init) [GRUB_UTIL]: Function removed.
41104 (grub_suspend_fini): Likewise.
41105 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
41107 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
41108 (halt_mod_CFLAGS): New variables.
41109 * include/grub/powerpc/ieee1275/ieee1275.h
41110 (grub_ieee1275_interpret): New prototype.
41112 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
41114 * include/grub/misc.h (memmove): New prototype.
41115 (memcpy): Likewise.
41117 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
41119 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
41120 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
41122 2005-01-22 Marco Gerards <metgerards@student.han.nl>
41124 * kern/misc.c (grub_strndup): Function rewritten.
41126 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
41128 * normal/menu.c (TERM_WIDTH): Macro redefined.
41129 (TERM_TOP_BORDER_Y): Likewise.
41130 (draw_border): Replaced while-loop by a for-loop. Make the number
41131 of lines consistent with the number of lines displayed in
41132 print_entries. Added a margin below the rectangle.
41133 (print_entry): Make the entry fit in the rectangle.
41134 (print_entries): Display the scroll arrows next to the right
41137 2005-01-21 Marco Gerards <metgerards@student.han.nl>
41139 * fs/minix.c (grub_minix_find_file): Reserve more space for
41140 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
41141 `grub_strncpy' to copy `path' into it.
41143 2005-01-21 Marco Gerards <metgerards@student.han.nl>
41145 Add the loopback device, a device via which files can be accessed
41148 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
41149 (pkgdata_MODULES): Add loopback.mod.
41150 (loopback_mod_SOURCES): New variable.
41151 (loopback_mod_CFLAGS): Likewise.
41152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
41154 (pkgdata_MODULES): Add loopback.mod.
41155 (loopback_mod_SOURCES): New variable.
41156 (loopback_mod_CFLAGS): Likewise.
41157 * disk/loopback.c: new file.
41158 * include/grub/normal.h (grub_loop_init): New prototype.
41159 (grub_loop_fini): New prototype.
41160 * util/grub-emu.c (main): Initialize and de-initialize loopback
41162 * include/grub/disk.h (grub_disk_dev_id): Add
41163 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
41165 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
41167 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
41169 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
41170 (suspend_mod_SOURCES): New variable.
41171 (suspend_mod_CFLAGS): Likewise.
41172 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
41174 * commands/ieee1275/suspend.c: New file.
41176 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
41178 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
41179 ((unused))' to `__attribute__ ((used))'.
41180 (GRUB_MOD_FINI): Likewise.
41181 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
41182 * genmk.rb (PModule): Assign space to common symbols when linking
41185 2005-01-20 Marco Gerards <metgerards@student.han.nl>
41187 * include/grub/mm.h (grub_mm_init_region): Change the type of the
41188 `unsigned' arguments to `grub_size_t'.
41189 (grub_malloc): Likewise.
41190 (grub_realloc): Likewise.
41191 (grub_memalign): Likewise.
41192 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
41193 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
41194 * util/misc.c (grub_malloc): Likewise.
41195 (grub_realloc): Likewise.
41196 * kern/mm.c (get_header_from_pointer): Change the casts to
41197 `unsigned' into a cast to `grub_size_t'.
41199 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
41200 point to `currnode' when `currnode' is changed.
41202 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
41203 Schottelius <nico-linux@schottelius.org>.
41205 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
41207 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
41208 (note_path): Remove variable.
41209 (GRUB_IEEE1275_NOTE_NAME): New macro.
41210 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
41211 (grub_ieee1275_note_hdr): New structure.
41212 (grub_ieee1275_note_desc): Likewise.
41213 (grub_ieee1275_note): Likewise.
41214 (load_note): Remove `dir' argument. All callers updated. Remove
41215 `note_img' and `path'. Do not load a file from `note_path'.
41216 Initialize a struct grub_ieee1275_note and write that to `out'.
41217 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
41219 2005-01-05 Marco Gerards <metgerards@student.han.nl>
41221 * util/misc.c (grub_util_read_image): Revert last change. It
41222 called `grub_util_read_at', which seeks from the beginning of the
41225 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
41227 * TODO: Add note about endianness in grub-mkimage.
41228 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
41230 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
41231 (grub_mkimage_SOURCES): New target.
41232 * include/grub/kernel.h (grub_start_addr): Remove variable.
41233 (grub_end_addr): Likewise.
41234 (grub_total_module_size): Likewise.
41235 (grub_kernel_image_size): Likewise.
41236 (GRUB_MODULE_MAGIC): New constant.
41237 (grub_module_info): New structure.
41238 (grub_arch_modules_addr): New prototype.
41239 (grub_get_end_addr): Remove prototype.
41240 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
41241 * include/grub/powerpc/ieee1275/kernel.h: New file.
41242 * include/grub/util/misc.h (grub_util_get_fp_size): New
41244 (grub_util_read_at): Likewise.
41245 (grub_util_write_image_at): Likewise.
41246 * kern/main.c (grub_get_end_addr): Remove function.
41247 (grub_load_modules): Call grub_arch_modules_addr instead of using
41248 grub_end_addr. Look for a grub_module_info struct in memory. Use
41249 the grub_module_info fields instead of calling grub_get_end_addr
41250 as loop conditions. Move grub_add_unused_region code here.
41251 (grub_add_unused_region): Remove function.
41252 * kern/i386/pc/init.c: Include grub/cache.h.
41253 (grub_machine_init): Remove call to grub_get_end_addr. Remove
41254 one call to add_mem_region.
41255 (grub_arch_modules_addr): New function.
41256 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
41257 (grub_total_module_size): Likewise.
41258 Include grub/machine/kernel.h.
41259 (grub_arch_modules_addr): New function.
41260 * util/grub-emu.c (grub_end_addr): Remove variable.
41261 (grub_total_module_size): Likewise.
41262 (grub_arch_modules_addr): New function.
41263 * util/misc.c: Include unistd.h.
41264 (grub_util_get_fp_size): New function.
41265 (grub_util_read_at): Likewise.
41266 (grub_util_write_image_at): Likewise.
41267 (grub_util_read_image): Call grub_util_read_at.
41268 (grub_util_write_image): Call grub_util_write_image_at.
41269 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
41270 additional memory in kernel_img for a struct grub_module_info.
41271 Fill in that grub_module_info.
41272 * util/powerpc/ieee1275/grub-mkimage.c: New file.
41274 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
41276 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
41278 * include/grub/powerpc/ieee1275/ieee1275.h
41279 (grub_ieee1275_milliseconds): New prototype.
41280 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
41282 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
41283 grub_ieee1275_milliseconds.
41285 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
41287 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
41289 (find_options): New function.
41290 (cmain): Call find_options.
41291 * include/grub/powerpc/ieee1275/ieee1275.h
41292 (grub_ieee1275_realmode): New extern variable.
41293 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
41294 grub_map if grub_ieee1275_realmode is false.
41296 2004-12-29 Marco Gerards <metgerards@student.han.nl>
41298 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
41299 lines are inserted and make it work like readline. Reported by
41300 Vincent Pelletier <subdino2004@yahoo.fr>.
41302 2004-12-28 Marco Gerards <metgerards@student.han.nl>
41304 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
41306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
41307 `kern/powerpc/cache.S'.
41309 2004-12-27 Marco Gerards <metgerards@student.han.nl>
41311 * genmk.rb: Handle the `Program' class in the main loop. Written
41312 by Johan Rydberg <jrydberg@gnu.org>.
41313 (Program): New class.
41314 (programs): New variable.
41315 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
41316 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
41317 instead of "grub/kernel.h". Include <grub/machine/init.h>.
41318 (help_arch): Function removed.
41319 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
41320 `powerpc/libgcc.h' and `loader.h'.
41321 (pkgdata_PROGRAMS): New variable.
41322 (sbin_UTILITIES): Variable removed.
41323 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
41324 (grubof_SOURCES): Variable re-defined so it only includes the
41325 core functionality.
41326 (grubof_CFLAGS): Remove `-DGRUBOF'.
41327 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
41328 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
41329 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
41330 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
41331 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
41332 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
41333 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
41334 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
41335 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
41336 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
41337 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
41338 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
41339 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
41340 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
41341 (pc_mod_CFLAGS): New variables.
41342 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
41343 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
41344 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
41345 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
41347 * include/grub/i386/pc/init.h (grub_os_area_addr)
41348 (rub_os_area_size): ... to here.
41349 * include/grub/powerpc/ieee1275/ieee1275.h
41350 (grub_ieee1275_entry_fn): Export symbol.
41351 * include/grub/powerpc/ieee1275/init.h: New file.
41352 * include/grub/powerpc/libgcc.h: Likewise.
41353 * include/grub/cache.h: Likewise.
41354 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
41355 <hollis@penguinppc.org>.
41356 * kern/dl.c: Include <grub/cache.h>.
41357 (grub_dl_flush_cache): New function.
41358 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
41360 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
41361 (grub_console_init): Removed prototypes.
41362 (grub_machine_init): Don't initialize the modules anymore.
41363 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
41365 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
41366 Macro undef removed.
41367 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
41368 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
41369 relocation `R_PPC_REL32'. Return an error when the relocation is
41371 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
41372 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
41373 * util/misc.c (grub_arch_sync_caches): Likewise.
41375 2004-12-19 Marco Gerards <metgerards@student.han.nl>
41377 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
41378 `symlist.c', add `grubof_symlist.c'.
41379 (symlist.c): Variable removed.
41380 (grubof_HEADERS): Variable added.
41381 (grubof_symlist.c): New target.
41382 (kernel_syms.lst): Use `grubof_HEADERS' instead of
41383 `kernel_img_HEADERS'.
41384 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
41385 * kern/powerpc/dl.c: New file.
41386 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
41388 (grub_arch_dl_relocate_symbols): Likewise.
41389 (grub_register_exported_symbols): Likewise.
41391 2004-12-13 Marco Gerards <metgerards@student.han.nl>
41393 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
41394 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
41395 to fail instead. Reported by Vincent Pelletier
41396 <subdino2004@yahoo.fr>.
41398 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
41399 it is not allocated. Reported by Vincent Pelletier
41400 <subdino2004@yahoo.fr>.
41402 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
41403 output so the output looks better.
41405 2004-12-04 Marco Gerards <metgerards@student.han.nl>
41407 Modulize the partition map support and add support for the amiga
41410 * commands/ls.c: Include <grub/partition.h> instead of
41411 <grub/machine/partition.h>.
41412 * kern/disk.c: Likewise.
41413 * kern/rescue.c: Likewise.
41414 * loader/i386/pc/chainloader.c: Likewise.
41415 * normal/cmdline.c: Likewise.
41416 * kern/powerpc/ieee1275/init.c: Likewise.
41417 (grub_machine_init): Call `grub_pc_partition_map_init',
41418 `grub_amiga_partition_map_init' and
41419 `grub_apple_partition_map_init'.
41420 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
41421 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
41422 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
41423 `partition.h' and `pc_partition.h'.
41424 (grub_setup_SOURCES): Remove
41425 `disk/i386/pc/partition.c'. Add `kern/partition.c',
41426 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
41427 (grub_emu_SOURCES): Likewise.
41428 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
41429 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
41430 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
41431 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
41432 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
41433 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
41434 (grubof_SOURCES): Likewise.
41435 * disk/i386/pc/partition.c: File removed.
41436 * disk/powerpc/ieee1275/partition.c: Likewise.
41437 * include/grub/powerpc/ieee1275/partition.h: Likewise.
41438 * include/grub/i386/pc/partition.h: Likewise.
41439 * kern/partition.c: New file.
41440 * partmap/amiga.c: Likewise.
41441 * partmap/apple.c: Likewise.
41442 * partmap/pc.c: Likewise.
41443 * include/grub/partition.h: Likewise..
41444 * include/grub/pc_partition.h: Likewise.
41445 * util/grub-emu.c: Include <grub/partition.h> instead of
41446 <grub/machine/partition.h>.
41447 (main): Call `grub_pc_partition_map_init',
41448 `grub_amiga_partition_map_init' and
41449 `grub_apple_partition_map_init' and deinitialize afterwards.
41450 * util/i386/pc/biosdisk.c: Include `#include
41451 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
41452 `<grub/machine/partition.h>'.
41453 * util/i386/pc/grub-setup.c: Likewise.
41454 * util/i386/pc/biosdisk.c: Likewise.
41455 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
41456 partition information in case of a PC partition.
41457 * util/i386/pc/grub-setup.c: Include `#include
41458 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
41459 `<grub/machine/partition.h>'.
41460 (setup): Only access the PC specific partition information in case
41463 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
41465 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
41466 (grub_longjmp): Likewise.
41467 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
41469 * normal/powerpc/setjmp.S: New file.
41470 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
41471 `normal/powerpc/setjmp.S'.
41472 (grubof_CFLAGS): Add `-DGRUBOF'.
41473 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
41474 [GRUB_UTIL && !GRUBOF].
41476 2004-11-16 Marco Gerards <metgerards@student.han.nl>
41478 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
41479 property named `name'. Correctly handle the error returned by
41480 `grub_ieee1275_finddevice' if a device can not be opened.
41482 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
41484 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
41485 `actual' for negativity.
41486 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
41489 2004-11-01 Marco Gerards <metgerards@student.han.nl>
41491 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
41492 (PAGE_OFFSET): New macro.
41493 (CRTC_ADDR_PORT): Likewise.
41494 (CRTC_DATA_PORT): Likewise.
41495 (START_ADDR_HIGH_REGISTER): Likewise.
41496 (START_ADDR_LOW_REGISTER): Likewise.
41497 (GRAPHICS_ADDR_PORT): Likewise.
41498 (GRAPHICS_DATA_PORT): Likewise.
41499 (READ_MAP_REGISTER): Likewise.
41500 (INPUT_STATUS1_REGISTER): Likewise.
41501 (INPUT_STATUS1_VERTR_BIT): Likewise.
41502 (page): New variable.
41503 (wait_vretrace): New function.
41504 (set_read_map): Likewise.
41505 (set_start_address): Likewise.
41506 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
41508 (check_vga_mem): Take the page into account.
41509 (write_char): Likewise.
41510 (write_cursor): Likewise.
41511 (scroll_up): Likewise. Copy the page to the page that is not
41512 shown and switch between both pages.
41513 (grub_vga_putchar): Fix off by one error.
41514 (grub_vga_cls): Wait for the vertical retrace. Take the page into
41517 2004-11-01 Marco Gerards <metgerards@student.han.nl>
41519 Add support for iso9660 (including rockridge).
41521 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
41522 (iso9660_mod_SOURCES): New variable.
41523 (iso9660_mod_CFLAGS): Likewise.
41524 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
41525 * include/grub/fs.h (grub_iso9660_init): New prototype.
41526 * util/grub-emu.c (main): Call `grub_iso9660_init'.
41527 * fs/iso9660.c: New file.
41529 * include/grub/misc.h (grub_strncat): New prototype.
41530 * kern/misc.c (grub_strncat): New function.
41532 * fs/hfs.c (grub_hfs_mount): Translate the error
41533 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
41534 * fs/jfs.c (grub_jfs_mount): Likewise.
41535 * fs/ufs.c (grub_ufs_mount): Likewise.
41537 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
41539 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
41540 which initialized BAT registers.
41541 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
41542 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
41544 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
41545 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
41547 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
41548 (grub_mapclaim): Likewise.
41549 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
41550 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
41553 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
41555 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
41556 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
41557 -ffreestanding and -msoft-float.
41559 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
41561 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
41562 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
41563 set in grub_ieee1275_flags.
41565 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
41567 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
41569 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
41570 grub_console_init first.
41571 Change the memory range used for grub_ieee1275_claim and
41572 grub_mm_init_region.
41573 Print an error message if the claim fails.
41574 Include <grub/misc.h>.
41576 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
41578 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
41579 Call grub_children_iterate for device nodes of type `scsi',
41581 (grub_ofdisk_open): Remove manual device alias resolution.
41582 Fix memory leak when device cannot be opened.
41583 * include/grub/powerpc/ieee1275/ieee1275.h
41584 (grub_children_iterate): New prototype.
41585 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
41587 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41588 Return -1 if args.size was -1.
41590 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
41592 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
41593 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
41594 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
41595 Open Firmware's memory for it; claim memory from _start to _end.
41596 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
41597 (_end): New extern.
41598 (_start): Zero BSS from __bss_start to _end.
41599 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
41601 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
41603 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
41605 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
41606 -1 if args.base was -1.
41608 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
41610 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
41611 escape sequence instead of a literal ^L. Also call
41612 grub_ofconsole_gotoxy.
41614 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
41616 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
41617 void * arguments to grub_addr_t. All callers updated. Also make
41618 the `result' argument optional.
41619 (grub_ieee1275_release): change void * arguments to grub_addr_t.
41620 All callers updated.
41622 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
41624 * commands/ls.c (grub_ls_list_files): Use the string following the
41625 initial ')', if present, as the filesystem path.
41626 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
41628 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
41630 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
41632 Make the source code of the menu interface more readable.
41634 * normal/menu.c: Include grub/mm.h.
41635 (TERM_WIDTH): New macro.
41636 (TERM_HEIGHT): Likewise.
41637 (TERM_INFO_HEIGHT): Likewise.
41638 (TERM_MARGIN): Likewise.
41639 (TERM_SCROLL_WIDTH): Likewise.
41640 (TERM_TOP_BORDER_Y): Likewise.
41641 (TERM_LEFT_BORDER_X): Likewise.
41642 (TERM_BORDER_WIDTH): Likewise.
41643 (TERM_MESSAGE_HEIGHT): Likewise.
41644 (TERM_BORDER_HEIGHT): Likewise.
41645 (TERM_NUM_ENTRIES): Likewise.
41646 (TERM_FIRST_ENTRY_Y): Likewise.
41647 (TERM_ENTRY_WIDTH): Likewise.
41648 (TERM_CURSOR_X): Likewise.
41649 (draw_border): Use macros instead of magic numbers.
41650 (print_entry): Likewise.
41651 (print_entries): Likewise.
41652 (run_menu): Likewise. Also, handle the key 'e'.
41653 (run_menu_entry): Ignore empty command lines.
41654 (print_message): Added a new argument EDIT. If EDIT is true,
41655 print a different message.
41656 (init_page): Likewise.
41657 (edit_menu_entry): New function. Not implemented yet.
41659 2004-09-17 Marco Gerards <metgerards@student.han.nl>
41661 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
41662 can be loaded from normal mode.
41664 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
41666 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
41667 (multiboot_mod_CFLAGS): New variables.
41668 * loader/i386/pc/linux_normal.c: New file.
41669 * loader/i386/pc/multiboot_normal.c: Likewise.
41671 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
41672 attribute `unused'.
41674 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
41675 `fdiro' to read the mode information from instead of `diro'.
41677 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
41678 looking up a symlink.
41680 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
41682 * normal/command.c (grub_command_execute): Don't parse the
41683 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
41684 flags of the command.
41686 * normal/menu.c (grub_menu_run): Fix typo.
41688 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
41690 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
41692 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
41693 `y + 1' instead of `y - 1'.
41695 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
41697 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
41699 From Hollis Blanchard <hollis@penguinppc.org>:
41700 * kern/misc.c (memmove): New alias for grub_memmove.
41701 (memcmp): New alias for grub_memcmp.
41702 (memset): New alias for grub_memset.
41703 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41704 Change "int handle" to "grub_ieee1275_phandle_t handle".
41705 * include/grub/powerpc/ieee1275/ieee1275.h
41706 (grub_ieee1275_get_property): Likewise.
41708 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
41710 Added normal mode command `chainloader' as module chain.mod, which
41711 depends on normal.mod and _chain.mod.
41713 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
41714 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
41715 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
41717 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
41718 but arguments parsing moved to ...
41719 (grub_chainloader_cmd): ... here. New function.
41720 * include/grub/i386/pc/chainloader.h: New file.
41721 * loader/i386/pc/chainloader_normal.c: Likewise.
41723 2004-09-11 Marco Gerards <metgerards@student.han.nl>
41725 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
41726 (grub_mkimage_LDFLAGS): Likewise.
41727 (grub_emu_SOURCES): Likewise.
41728 (kernel_img_HEADERS): Added fshelp.h.
41729 * fs/ext2.c: Include <grub/fshelp.h>.
41730 (FILETYPE_REG): New macro.
41731 (FILETYPE_INO_REG): Likewise.
41732 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
41734 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
41736 (grub_fshelp_node): New struct.
41737 (grub_ext2_data): Added member `diropen'. Changed member `inode'
41739 (grub_ext2_get_file_block): Removed function.
41740 (grub_ext2_read_block): New function.
41741 (grub_ext2_read_file): Replaced parameter `data' by `node'.
41742 This function was written.
41743 (grub_ext2_mount): Read the root inode. Create a diropen struct.
41744 (grub_ext2_find_file): Removed function.
41745 (grub_ext2_read_symlink): New function.
41746 (grub_ext2_iterate_dir): Likewise.
41747 (grub_ext2_open): Rewritten.
41748 (grub_ext2_dir): Rewritten.
41749 * include/grub/fshelp.h: New file.
41750 * fs/fshelp.c: Likewise.
41752 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
41754 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
41755 (print_message): Add a missing newline.
41756 (run_menu): Added timeout support.
41757 (run_menu_entry): New local function.
41758 (grub_menu_run): Added support for booting.
41760 * kern/loader.c (grub_loader_is_loaded): New function.
41762 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
41763 (grub_get_rtc): Exported.
41765 * include/grub/i386/pc/time.h: Include grub/symbol.h.
41766 (grub_get_rtc): Exported.
41768 * include/grub/normal.h (struct grub_command_list): Remove
41769 constant from the member `command'.
41771 * include/grub/loader.h (grub_loader_is_loaded): Declared.
41773 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
41775 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
41777 2004-08-28 Marco Gerards <metgerards@student.han.nl>
41779 Add support for the JFS filesystem.
41781 * fs/jfs.c: New file.
41782 * include/grub/fs.h (grub_jfs_init): New prototype.
41783 (grub_jfs_fini): New prototype.
41784 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
41785 (grub_emu_SOURCES): Likewise.
41786 (pkgdata_MODULES): Add jfs.mod.
41787 (jfs_mod_SOURCES): New variable.
41788 (jfs_mod_CFLAGS): Likewise.
41789 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
41790 (grubof_SOURCES): Likewise.
41791 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
41793 * fs/fat.c (grub_fat_find_dir): Convert the filename little
41794 endian to the host endian.
41795 (grub_fat_utf16_to_utf8): Move function from there...
41796 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
41797 the endianness of the source string anymore.
41798 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
41800 2004-08-24 Marco Gerards <metgerards@student.han.nl>
41802 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
41803 (grub_boot_fini) [GRUB_UTIL]: Likewise.
41804 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
41805 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
41807 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
41808 (grub_hfs_iterate_dir): Make the function static. Add prototypes
41809 for `node_found' and `it_dir'.
41810 (grub_hfs_dir): Add prototype for `dir_hook'.
41812 * fs/minix.c (grub_minix_get_file_block): Add prototype for
41813 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
41814 and `indir32' to silence a gcc warning.
41816 * include/grub/fs.h (grub_hfs_init): New prototype.
41817 (grub_hfs_fini): Likewise.
41820 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
41822 Each disk device has its own id now. This is useful to make use
41823 of multiple disk devices.
41825 * include/grub/disk.h (grub_disk_dev_id): New enum.
41826 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
41827 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
41829 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
41830 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41832 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
41833 GRUB_DISK_DEVICE_OFDISK_ID as an id.
41835 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
41836 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41838 * include/grub/disk.h (struct grub_disk_dev): Added a new member
41839 "id" which is used by the cache manager.
41841 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
41844 2004-08-18 Marco Gerards <metgerards@student.han.nl>
41846 * fs/hfs.c: New file.
41847 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
41848 (grub_emu_SOURCES): Likewise.
41849 (pkgdata_MODULES): Add hfs.mod.
41850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
41851 (grubof_SOURCES): Likewise.
41852 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
41854 * include/grub/misc.h (grub_strncasecmp): Add prototype.
41855 * kern/misc.c (grub_strncasecmp): Add function.
41857 2004-08-14 Marco Gerards <metgerards@student.han.nl>
41859 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
41862 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
41863 (grub_ext2_dir): In case the directory entry type is unknown, read
41866 2004-08-02 Peter Bruin <pjbruin@dds.nl>
41868 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
41869 grub_load_linux instead of grub_rescue_cmd_linux as second
41870 argument of grub_rescue_register_command.
41872 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
41874 2004-07-27 Marco Gerards <metgerards@student.han.nl>
41876 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
41878 * commands/boot.c: Remove the check for `GRUB_UTIL'.
41879 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
41880 `loader/powerpc/ieee1275/linux.c',
41881 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
41882 * include/grub/powerpc/ieee1275/ieee1275.h
41883 (grub_ieee1275_release): New prototype.
41884 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
41885 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
41886 normal, boot, linux and linux_normal.
41887 * loader/powerpc/ieee1275/linux.c: New file.
41888 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
41890 2004-07-12 Marco Gerards <metgerards@student.han.nl>
41892 * normal/arg.c (grub_arg_parse): Correct error handling after
41893 reallocating the argumentlist (check if `argl' is not null instead
41894 of checking if `args' is not null).
41895 * kern/mm.c (grub_realloc): Return the same pointer when using the
41896 same region, instead of returning the header address.
41898 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41900 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
41901 one block instead of two when looking for the initial partition.
41902 (grub_partition_probe): Initialize the local variable `p' with 0.
41903 Use base 10 for the grub_strtoul call.
41904 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
41905 need for one local variable.
41906 (grub_strtoul): Don't add the new value to `num', instead of that
41909 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41911 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
41912 (pxeboot_img_SOURCES): New variable.
41913 (pxeboot_img_ASFLAGS): Likewise.
41914 (pxeboot_img_LDFLAGS): Likewise.
41915 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
41916 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
41917 <lode_leroy@hotmail.com>.
41919 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41921 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
41922 there was no input.
41924 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41926 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
41927 the history buffer logic.
41929 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41931 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
41932 (FILETYPE_INO_SYMLINK): New macros.
41933 (grub_ext2_find_file): Check if the node is a directory using the
41934 inode stat information instead of using the filetype in the
41935 dirent. Exclude the first character of an absolute symlink.
41936 (grub_ext2_dir): Mask out the filetype part of the mode member of
41939 2004-05-24 Marco Gerards <metgerards@student.han.nl>
41941 Add support for UFS version 1 and 2. Add support for the minix
41942 filesystem version 1 and 2, both the variants with 14 and 30 long
41945 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
41947 (grub_emu_SOURCES): Likewise.
41948 (pkgdata_MODULES): Add ufs.mod and minix.mod.
41949 (ufs_mod_SOURCES): New variable.
41950 (ufs_mod_CFLAGS): Likewise.
41951 (minix_mod_SOURCES): Likewise.
41952 (minix_mod_CFLAGS): Likewise.
41953 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
41955 (grubof_SOURCES): Likewise.
41956 * fs/ufs.c: New file.
41957 * fs/minix.c: New file.
41958 * include/grub/fs.h (grub_ufs_init): New prototype.
41959 (grub_ufs_fini): Likewise.
41960 (grub_minix_init): Likewise.
41961 (grub_minix_fini): Likewise.
41962 * util/grub-emu.c (main): Initialize and deinitialize UFS and
41965 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
41967 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
41968 commands/ls.c, commands/terminal.c, commands/boot.c,
41969 commands/cmp.c and commands/cat.c.
41970 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
41972 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
41975 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41977 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
41978 and grub_, respectively. Because the conversion is trivial and
41979 mechanical, I omit the details here. Please refer to the CVS
41980 if you need more information.
41982 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41984 * include/pupa: Renamed to ...
41985 * include/grub: ... this.
41986 * util/i386/pc/pupa-mkimage.c: Renamed to ...
41987 * util/i386/pc/grub-mkimage.c: ... this.
41988 * util/i386/pc/pupa-setup.c: Renamed to ...
41989 * util/i386/pc/grub-setup.c: ... this.
41990 * util/pupa-emu.c: Renamed to ...
41991 * util/grub-emu.c: ... this.
41993 2004-03-29 Marco Gerards <metgerards@student.han.nl>
41995 Add support for the newworld apple macintosh (PPC). This has been
41996 tested on the powerbook 2000 only. It only adds support for
41997 generic ieee1275 functions, console and disk support. This should
41998 be easy to port to other architectures with support for Open
42001 * configure.ac: Accept the powerpc as host_cpu. In the case of
42002 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
42003 specific tests are only executed while building for the i386.
42004 Inverse test for crosscompile.
42005 * genmk.rb (Utility): Allow assembler files.
42006 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
42007 * conf/powerpc-ieee1275.rmk: New file.
42008 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
42009 * disk/powerpc/ieee1275/partition.c: Likewise.
42010 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
42011 * include/pupa/powerpc/ieee1275/console.h: Likewise.
42012 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
42013 * include/pupa/powerpc/ieee1275/time.h: Likewise.
42014 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
42015 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
42016 * include/pupa/powerpc/ieee1275/loader.h
42017 * include/pupa/powerpc/setjmp.h: Likewise.
42018 * include/pupa/powerpc/types.h: Likewise.
42019 * kern/powerpc/ieee1275/init.c: Likewise.
42020 * kern/powerpc/ieee1275/openfw.c: Likewise.
42021 * term/powerpc/ieee1275/ofconsole.c: Likewise.
42023 These files were written by Johan Rydberg
42024 (jrydberg@night.trouble.net) and I only modified them slightly.
42026 * boot/powerpc/ieee1275/cmain.c: New file.
42027 * boot/powerpc/ieee1275/crt0.S: Likewise.
42028 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
42029 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
42031 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
42033 * Makefile.in: Update copyright.
42034 * genmodsrc.sh: Likewise.
42035 * gensymlist.sh: Likewise.
42036 * term/i386/pc/vga.c: Indent correctly.
42038 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
42039 bugreporting address.
42040 * util/i386/pc/pupa-setup.c (usage): Likewise,
42041 (main): Call pupa_ext2_init and pupa_ext2_fini.
42043 * fs/fat.c (log2): Renamed to ...
42044 (fat_log2): ... this.
42045 All callers changed.
42046 * kern/misc.c (memcpy): Alias to pupa_memmove.
42047 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
42049 * util/console.c (pupa_ncurses_fini): Return 0.
42051 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
42052 Move fail label here.
42053 [__GNU__]: Don't warn when using stat.
42054 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
42055 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
42056 long int. Use strtol instead of strtoul.
42058 2004-03-14 Marco Gerards <metgerards@student.han.nl>
42060 * commands/boot.c: New file.
42061 * commands/cat.c: Likewise.
42062 * commands/cmp.c: Likewise.
42063 * commands/ls.c: Likewise.
42064 * commands/terminal.c: Likewise.
42065 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
42066 (pupa_register_command): Changed interface to match the new
42068 (pupa_command_execute): Changed (almost rewritten) so it uses
42069 pupa_split_command. Added support for setting variables using the
42071 (rescue_command): Changed to work with the new argument parser.
42072 (terminal_command): Moved from here to commands/terminal.c.
42073 (set_command): New function.
42074 (unset_command): New function.
42075 (insmod_command): New function.
42076 (rmmod_command): New function.
42077 (lsmod_command): New function.
42078 (pupa_command_init): Don't initialize the command terminal
42079 anymore. Initialize the commands set, unset, insmod, rmmod and
42081 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
42082 (kernel_img_HEADERS): Add arg.h and env.h.
42083 (pupa_mkimage_LDFLAGS): Add kern/env.c.
42084 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
42085 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
42087 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
42089 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
42090 (boot_mod_SOURCES): New variable.
42091 (terminal_mod_SOURCES): Likewise.
42092 (ls_mod_SOURCES): Likewise.
42093 (cmp_mod_SOURCES): Likewise.
42094 (cat_mod_SOURCES): Likewise.
42096 * normal/arg.c: New file.
42097 * kern/env.c: Likewise.
42098 * include/pupa/arg.h: Likewise.
42099 * include/pupa/env.h: Likewise.
42100 * font/manager.c (font_command): Changed to match argument parsing
42102 (PUPA_MOD_INIT): Likewise.
42103 * hello/hello.c (pupa_cmd_hello): Likewise.
42104 (PUPA_MOD_INIT): Likewise.
42105 * include/pupa/disk.h: Include <pupa/device.h>.
42106 (pupa_print_partinfo): New prototype.
42107 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
42108 (pupa_dl_get_prefix): Likewise.
42109 * include/pupa/misc.h: Include <pupa/err.h>.
42110 (pupa_isgraph): New prototype.
42111 (pupa_isdigit): Likewise.
42112 (pupa_split_cmdline): Likewise.
42113 * include/pupa/normal.h: Include <pupa/arg.h>.
42114 (pupa_command): Changed the prototype of the member `func' to
42115 match the argument parsing interface. Added member `options'.
42116 (pupa_register_command): Updated to match function.
42117 (pupa_arg_parse): New prototype.
42118 (pupa_hello_init) [PUPA_UTIL]: New prototype.
42119 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
42120 (pupa_ls_init) [PUPA_UTIL]: Likewise.
42121 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
42122 (pupa_cat_init) [PUPA_UTIL]: Likewise.
42123 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
42124 (pupa_boot_init) [PUPA_UTIL]: Likewise.
42125 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
42126 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
42127 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
42128 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
42129 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
42130 * kern/disk.c: Include <pupa/file.h>.
42131 (pupa_print_partinfo): New function.
42132 * kern/dl.c: Include <pupa/env.h>.
42133 (pupa_dl_dir): Variable removed.
42134 (pupa_dl_load): Use the environment variable `prefix' instead of
42135 the variable pupa_dl_dir.
42136 (pupa_dl_set_prefix): Function removed.
42137 (pupa_dl_get_prefix): Likewise.
42138 * kern/i386/pc/init.c: Include <pupa/env.h>.
42139 (pupa_machine_init): Use the environment variable `prefix' instead of
42140 using pupa_dl_set_prefix to set the prefix.
42141 * kern/main.c: Include <pupa/env.h>.
42142 (pupa_set_root_dev): Use the environment variable `prefix' instead of
42143 using pupa_dl_get_prefix to get the prefix.
42144 * kern/misc.c: Include <pupa/env.h>.
42145 (pupa_isdigit): New function.
42146 (pupa_isgraph): Likewise.
42147 (pupa_ftoa): Likewise.
42148 (pupa_vsprintf): Added support for printing values of the type
42149 `double'. Make it possible to format variable output when using
42150 formatting like `%1.2%f'.
42151 (pupa_split_cmdline): New function.
42152 * kern/rescue.c: Include <pupa/env.h>.
42153 (next_word): Removed function.
42154 (pupa_rescue_cmd_prefix): Likewise.
42155 (pupa_rescue_cmd_set): New function.
42156 (pupa_rescue_cmd_unset): New function.
42157 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
42158 split the command line instead of splitting it here. Added
42159 support for setting variables using the syntax `foo=bar'. Don't
42160 initialize the prefix command anymore. Initialized the set and
42162 * normal/cmdline.c: Include <pupa/env.h>.
42163 (pupa_tab_complete): Added prototypes for print_simple_completion,
42164 print_partition_completion, add_completion, iterate_commands,
42165 iterate_dev, iterate_part and iterate_dir. Moved code to print
42166 partition information from here to kern/disk.c.
42167 (pupa_cmdline_run): Don't check if the function exists anymore.
42168 * normal/main.c: Include <pupa/env.h>.
42169 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
42170 instead of using pupa_dl_get_prefix to get the prefix.
42171 * term/i386/pc/vga.c: Include <pupa/arg.h>.
42172 (check_vga_mem): Cast pointers to `void *' to silence a gcc
42174 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
42175 (pupa_vga_setcolor): Declare unused variables with `__attribute__
42176 ((unused))' to silence a gcc warning.
42177 (pupa_vga_setcolor): Likewise.
42178 (debug_command): Changed to match argument parsing
42180 * util/pupa-emu.c: Include <pupa/env.h>.
42181 (options): Added 0's for unused fields to silence a gcc warning.
42183 (main): Use the environment variable `prefix' instead of using
42184 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
42185 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
42188 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
42189 * util/misc.c: Include <malloc.h>.
42190 (pupa_malloc): Rewritten so errors are correctly reported.
42191 (pupa_realloc): Likewise.
42192 (pupa_memalign): Likewise.
42193 (pupa_mm_init_region): Declare unused variables with
42194 `__attribute__ ((unused))' to silence a gcc warning.
42195 * normal/i386/setjmp.S: Remove tab at the end of the file to
42196 silence a gcc warning.
42197 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
42198 variables with `__attribute__ ((unused))' to silence a gcc
42200 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
42201 local variable i unsigned to silence a gcc warning.
42203 * kern/term.c: Include <pupa/misc.h>.
42204 (pupa_more_lines): New variable.
42205 (pupa_more): Likewise.
42206 (pupa_putcode): When the pager is active pause at the end of every
42208 (pupa_set_more): New function.
42209 * include/pupa/term.h (pupa_set_more): New prototype.
42212 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
42214 Now this project is GRUB 2 rather than PUPA. The location of
42215 the CVS repository was moved to GRUB's.
42217 * configure.ac: Use bug-grub as the reporting address.
42218 Use GRUB instead of PUPA.
42219 Change the version number to 1.90.
42221 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
42223 * genkernsyms.sh: Updated copyright information.
42224 * genmk.rb: Likewise.
42225 * genmodsrc.sh: Likewise.
42226 * gensymlist.sh: Likewise.
42227 * boot/i386/pc/boot.S: Likewise.
42228 * boot/i386/pc/diskboot.S: Likewise.
42229 * disk/i386/pc/biosdisk.c: Likewise.
42230 * disk/i386/pc/partition.c: Likewise.
42231 * font/manager.c: Likewise.
42232 * fs/ext2.c: Likewise.
42233 * fs/fat.c: Likewise.
42234 * include/pupa/boot.h: Likewise.
42235 * include/pupa/device.h: Likewise.
42236 * include/pupa/disk.h: Likewise.
42237 * include/pupa/dl.h: Likewise.
42238 * include/pupa/elf.h: Likewise.
42239 * include/pupa/err.h: Likewise.
42240 * include/pupa/file.h: Likewise.
42241 * include/pupa/font.h: Likewise.
42242 * include/pupa/fs.h: Likewise.
42243 * include/pupa/kernel.h: Likewise.
42244 * include/pupa/loader.h: Likewise.
42245 * include/pupa/misc.h: Likewise.
42246 * include/pupa/mm.h: Likewise.
42247 * include/pupa/net.h: Likewise.
42248 * include/pupa/normal.h: Likewise.
42249 * include/pupa/rescue.h: Likewise.
42250 * include/pupa/setjmp.h: Likewise.
42251 * include/pupa/symbol.h: Likewise.
42252 * include/pupa/term.h: Likewise.
42253 * include/pupa/types.h: Likewise.
42254 * include/pupa/i386/setjmp.h: Likewise.
42255 * include/pupa/i386/types.h: Likewise.
42256 * include/pupa/i386/pc/biosdisk.h: Likewise.
42257 * include/pupa/i386/pc/boot.h: Likewise.
42258 * include/pupa/i386/pc/console.h: Likewise.
42259 * include/pupa/i386/pc/init.h: Likewise.
42260 * include/pupa/i386/pc/kernel.h: Likewise.
42261 * include/pupa/i386/pc/linux.h: Likewise.
42262 * include/pupa/i386/pc/loader.h: Likewise.
42263 * include/pupa/i386/pc/memory.h: Likewise.
42264 * include/pupa/i386/pc/multiboot.h: Likewise.
42265 * include/pupa/i386/pc/partition.h: Likewise.
42266 * include/pupa/i386/pc/time.h: Likewise.
42267 * include/pupa/i386/pc/vga.h: Likewise.
42268 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
42269 * include/pupa/util/getroot.h: Likewise.
42270 * include/pupa/util/misc.h: Likewise.
42271 * include/pupa/util/resolve.h: Likewise.
42272 * kern/device.c: Likewise.
42273 * kern/disk.c: Likewise.
42274 * kern/dl.c: Likewise.
42275 * kern/err.c: Likewise.
42276 * kern/file.c: Likewise.
42277 * kern/fs.c: Likewise.
42278 * kern/loader.c: Likewise.
42279 * kern/main.c: Likewise.
42280 * kern/misc.c: Likewise.
42281 * kern/mm.c: Likewise.
42282 * kern/rescue.c: Likewise.
42283 * kern/term.c: Likewise.
42284 * kern/i386/dl.c: Likewise.
42285 * kern/i386/pc/init.c: Likewise.
42286 * kern/i386/pc/lzo1x.S: Likewise.
42287 * kern/i386/pc/startup.S: Likewise.
42288 * loader/i386/pc/chainloader.c: Likewise.
42289 * loader/i386/pc/linux.c: Likewise.
42290 * loader/i386/pc/multiboot.c: Likewise.
42291 * normal/cmdline.c: Likewise.
42292 * normal/command.c: Likewise.
42293 * normal/main.c: Likewise.
42294 * normal/menu.c: Likewise.
42295 * normal/i386/setjmp.S: Likewise.
42296 * term/i386/pc/console.c: Likewise.
42297 * term/i386/pc/vga.c: Likewise.
42298 * util/console.c: Likewise.
42299 * util/genmoddep.c: Likewise.
42300 * util/misc.c: Likewise.
42301 * util/pupa-emu.c: Likewise.
42302 * util/resolve.c: Likewise.
42303 * util/unifont2pff.rb: Likewise.
42304 * util/i386/pc/biosdisk.c: Likewise.
42305 * util/i386/pc/getroot.c: Likewise.
42306 * util/i386/pc/pupa-mkimage.c: Likewise.
42307 * util/i386/pc/pupa-setup.c: Likewise.
42309 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
42311 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
42312 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
42313 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
42314 reading and reset it after reading.
42315 (pupa_ext2_close): Return PUPA_ERR_NONE.
42317 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
42319 (struct linux_kernel_header): Add kernel_version and
42321 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
42322 pupa_file_read succeeds.
42323 (pupa_rescue_cmd_initrd): Implement.
42325 2003-12-03 Marco Gerards <metgerards@student.han.nl>
42327 * fs/ext2.c (pupa_ext2_label): New function.
42328 (pupa_ext2_fs): Added label.
42329 * fs/fat.c (pupa_fat_label): New function.
42330 (pupa_fat_fs): Added label.
42331 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
42333 * kern/misc.c (pupa_strndup): New function.
42334 * include/pupa/misc.h (pupa_strndup): New prototype.
42336 * include/pupa/normal.h: Include <pupa/err.h>.
42337 (pupa_set_history): New prototype.
42338 (pupa_iterate_commands): New prototype.
42339 * normal/cmdline.c: Include <pupa/machine/partition.h>,
42340 <pupa/disk.h>, <pupa/file.h>.
42341 (hist_size): New variable.
42342 (hist_lines): Likewise.
42343 (hist_end): Likewise.
42344 (hist_used): Likewise.
42345 (pupa_set_history): New function.
42346 (pupa_history_get): Likewise.
42347 (pupa_history_add): Likewise.
42348 (pupa_history_replace): Likewise.
42349 (pupa_tab_complete): Likewise.
42350 (pupa_cmdline_run): Added tab completion and history buffer. Tab
42351 completion shows partitionnames while completing partitions, this
42352 feature was suggested by Jeff Bailey.
42353 * normal/command.c (pupa_iterate_commands): New function.
42354 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
42355 (pupa_normal_init): Initialize history buffer.
42356 (PUPA_MOD_INIT): Likewise.
42357 (pupa_normal_fini): Free the history buffer.
42358 (PUPA_MOD_FINI): Likewise.
42360 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
42363 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
42364 * configure.ac [i386]: Check for regparam bug.
42365 (NESTED_FUNC_ATTR) [! i386]: Defined.
42367 2003-11-17 Marco Gerards <metgerards@student.han.nl>
42369 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
42370 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
42371 (pupa_emu_SOURCES): New variable.
42372 (pupa_emu_LDFLAGS): Likewise.
42373 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
42374 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
42375 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
42376 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
42377 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
42378 (pupa_jmp_buf): New typedef.
42379 (pupa_setjmp) [PUPA_UTIL]: New macro.
42380 (pupa_longjmp) [PUPA_UTIL]: Likewise.
42381 * include/pupa/term.h (struct pupa_term): New member `refresh'.
42382 (pupa_refresh): New prototype.
42383 * include/pupa/util/getroot.h: New file.
42384 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
42386 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
42387 (pupa_rescue_cmd_cat): Likewise.
42388 (pupa_rescue_cmd_ls): Likewise.
42389 (pupa_rescue_cmd_testload): Likewise.
42390 (pupa_rescue_cmd_lsmod): Likewise.
42391 * normal/cmdline.c (pupa_cmdline_get): Likewise.
42392 * normal/menu.c (run_menu): Likewise.
42393 * kern/term.c (pupa_cls): Likewise.
42394 (pupa_refresh): New function.
42395 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
42396 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
42397 * util/console.c: New file.
42399 * util/i386/pc/getroot.c: New file.
42400 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
42401 (pupa_putchar): New function.
42402 (pupa_refresh): Likewise.
42403 (xgetcwd): Function moved to ...
42404 (strip_extra_slashes): Likewise.
42405 (get_prefix): Likewise.
42406 * util/i386/pc/getroot.c: ... here.
42407 (find_root_device): Function moved and renamed to...
42408 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
42409 Changed all callers.
42410 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
42412 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
42413 Changed all callers.
42414 * util/misc.c (pupa_memalign): New function.
42415 (pupa_mm_init_region): Likewise.
42416 (pupa_register_exported_symbols): Likewise.
42417 (pupa_putchar): Function removed.
42418 * util/pupa-emu.c: New file.
42420 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
42422 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
42423 (_multiboot_mod_SOURCES): New variable.
42424 (_multiboot_mod_CFLAGS): Likewise.
42425 * loader/i386/pc/multiboot.c: New file.
42426 * include/pupa/i386/pc/multiboot.h: Likewise.
42427 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
42428 (pupa_multiboot_real_boot): New function.
42429 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
42430 (pupa_multiboot_real_boot): New prototype.
42431 (pupa_rescue_cmd_multiboot): Likewise
42432 (pupa_rescue_cmd_module): Likewise.
42434 * kern/loader.c (pupa_loader_set): Continue when
42435 pupa_loader_unload_func() fails.
42436 (pupa_loader_unset): New function.
42437 * include/pupa/loader.h (pupa_loader_unset): New prototype.
42439 * kern/misc.c (pupa_stpcpy): New function.
42440 * include/pupa/misc.h (pupa_stpcpy): New prototype.
42442 2003-11-12 Marco Gerards <metgerards@student.han.nl>
42444 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
42445 for available extensions.
42447 * include/pupa/i386/pc/time.h: New file.
42448 * kern/disk.c: Include <pupa/machine/time.h>.
42449 (PUPA_CACHE_TIMEOUT): New macro.
42450 (pupa_last_time): New variable.
42451 (pupa_disk_open): Flush the cache when there was a timeout.
42452 (pupa_disk_close): Reset the timer.
42453 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
42455 * util/misc.c: Include <sys/times.h>
42456 (pupa_get_rtc): New function.
42458 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
42460 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
42462 (pupa_ext2_get_file_block): Use blocks member.
42464 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
42465 first block. Return -1 instead of pupa_errno on error.
42467 2003-10-27 Marco Gerards <metgerards@student.han.nl>
42469 * README: In the pupa-mkimage example use _chain instead of chain
42470 and ext2 instead of fat.
42471 * TODO: Replace ext2fs with jfs as an example. Add an item for
42472 adding journal playback for ext2fs.
42473 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
42474 (pkgdata_MODULES): Added ext2.mod.
42475 (ext2_mod_SOURCES): New variable.
42476 (ext2_mod_CFLAGS): Likewise.
42477 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
42478 * include/pupa/misc.h (pupa_strncpy): New prototype.
42479 (pupa_strcat): Likewise.
42480 (pupa_strncmp): Likewise.
42481 * kern/misc.c (pupa_strcat): Enable function.
42482 (pupa_strncpy): New function.
42483 (pupa_strncmp): Likewise.
42484 * fs/ext2.c: New file.
42486 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
42487 when the read failed before retrying.
42488 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
42489 (_FILE_OFFSET_BITS): Likewise.
42490 * configure.ac: Added AC_SYS_LARGEFILE.
42492 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
42494 * genmk.rb (PModule#rule): Make sure to get only symbol names
42495 from the output of nm.
42496 Reported by Robert Millan <rmh.grub@aybabtu.com>.
42498 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
42500 I forgot to check in these changes for a long time. This adds
42501 incomplete support for VGA console, and this is still very
42502 buggy. Also, a lot of consideration is required for I18N,
42503 UNICODE, and VGA font issues. Therefore, assume that this is
42504 such that "better than nothing".
42506 * font/manager.c: New file.
42507 * include/pupa/font.h: Likewise.
42508 * include/pupa/i386/pc/vga.h: Likewise.
42509 * term/i386/pc/vga.c: Likewise.
42510 * util/unifont2pff.rb: Likewise.
42512 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
42513 (pkgdata_MODULES): Added vga.mod and font.mod.
42514 (vga_mod_SOURCES): New variables.
42515 (vga_mod_CFLAGS): Likewise.
42516 (font_mod_SOURCES): Likewise.
42517 (font_mod_CFLAGS): Likewise.
42519 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
42521 * include/pupa/term.h: Include pupa/err.h.
42522 (struct pupa_term): Added init and fini.
42523 Changed the argument of putchar to pupa_uint32_t.
42525 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
42526 (pupa_console_real_putchar): New prototype.
42527 (pupa_console_putchar): Removed.
42528 (pupa_console_checkkey): Exported.
42529 (pupa_console_getkey): Likewise.
42531 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
42534 * kern/term.c (pupa_term_set_current): Rewritten.
42535 (pupa_putchar): Likewise.
42536 (pupa_putcode): New function.
42538 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
42539 (pupa_console_real_putchar): ... this.
42540 (pupa_vga_set_mode): New function.
42541 (pupa_vga_get_font): Likewise.
42543 * normal/command.c: Include pupa/term.h.
42544 (terminal_command): New function.
42545 (pupa_command_init): Register the command "terminal".
42547 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
42548 (DISP_UP): Likewise.
42549 (DISP_RIGHT): Likewise.
42550 (DISP_DOWN): Likewise.
42551 (DISP_HLINE): Likewise.
42552 (DISP_VLINE): Likewise.
42553 (DISP_UL): Likewise.
42554 (DISP_UR): Likewise.
42555 (DISP_LL): Likewise.
42556 (DISP_LR): Likewise.
42558 * term/i386/pc/console.c (pupa_console_putchar): New function.
42560 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
42562 * util/resolve.c (pupa_util_resolve_dependencies): BUG
42563 FIX. Reverse the path_list.
42565 * include/pupa/normal.h: Export pupa_register_command and
42566 pupa_unregister_command.
42568 * hello/hello.c (pupa_cmd_hello): New module.
42569 * conf/i386-pc.rmk: Added hello.mod.
42571 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
42573 * kern/i386/pc/lzo1x.S: New file.
42575 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
42576 (compress_kernel): New variable.
42577 (generate_image): Heavily modified to support compressing a
42578 large part of the core image.
42580 * util/misc.c (pupa_util_read_image): Fix a file descriptor
42582 (pupa_util_load_image): New function.
42584 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
42585 (pupa_compressed_size): New variable.
42586 (codestart): Enable Gate A20 here.
42587 Decompress the compressed part of the core image.
42588 Rearrange the code to put functions and variables which are
42589 required for initialization in the non-compressed part.
42592 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
42595 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
42597 * include/pupa/i386/pc/kernel.h
42598 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
42599 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
42600 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
42601 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
42602 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
42604 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
42606 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
42607 (Utility#rule): Likewise.
42609 * configure.ac: Check if LZO is available.
42611 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
42613 * include/pupa/normal.h: New file.
42614 * include/pupa/setjmp.h: Likewise.
42615 * include/pupa/i386/setjmp.h: Likewise.
42616 * normal/cmdline.c: Likewise.
42617 * normal/command.c: Likewise.
42618 * normal/main.c: Likewise.
42619 * normal/menu.c: Likewise.
42620 * normal/i386/setjmp.S: Likewise.
42622 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
42623 (pupa_rescue_cmd_initrd): Likewise.
42625 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
42628 * kern/i386/pc/startup.S (translation_table): New variable.
42629 (translate_keycode): New function.
42630 (pupa_console_getkey): Call translate_keycode.
42632 * kern/rescue.c (attempt_normal_mode): New function.
42633 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
42634 it failed, print a message.
42636 * kern/mm.c (pupa_real_malloc): Print more information when a
42637 free magic is broken.
42638 (pupa_free): If the first free header is not free actually, set
42641 * kern/main.c (pupa_load_normal_mode): Just load the module
42643 (pupa_main): Don't print the message
42644 "Entering into rescue mode..." here.
42646 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
42648 (pupa_rescue_cmd_initrd): Likewise.
42649 (pupa_rescue_cmd_initrd): Likewise.
42651 * include/pupa/symbol.h (FUNCTION): Specify the type.
42652 (VARIABLE): Likewise.
42654 * include/pupa/err.h (pupa_err_t): Added
42655 PUPA_ERR_UNKNOWN_COMMAND.
42657 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
42658 (pupa_dl_get_prefix): Likewise.
42660 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
42661 Added _chain.mod and _linux.mod instead of chain.mod and
42663 (chain_mod_SOURCES): Renamed to ...
42664 (_chain_mod_SOURCES): ... this.
42665 (chain_mod_CFLAGS): Renamed to ...
42666 (_chain_mod_CFLAGS): ... this.
42667 (linux_mod_SOURCES): Renamed to ...
42668 (_linux_mod_SOURCES): ... this.
42669 (linux_mod_CFLAGS): Renamed to ...
42670 (_linux_mod_CFLAGS): ... this.
42671 (normal_mod_SOURCES): New variable.
42672 (normal_mod_CFLAGS): Likewise.
42673 (normal_mod_ASFLAGS): Likewise.
42675 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
42677 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
42680 * kern/dl.c (pupa_dl_ref): Refer depending modules
42682 (pupa_dl_unref): Unrefer depending modules recursively.
42683 Don't call pupa_dl_unload implicitly, because PUPA can crash if
42684 a module is unloaded before one depending on that module is
42686 (pupa_dl_unload): Unload depending modules explicitly,
42689 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
42691 * include/pupa/i386/pc/linux.h: New file.
42692 * loader/i386/pc/linux.c: Likewise.
42694 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
42696 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
42697 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
42698 of PUPA_CHAINLOADER_BOOT_SECTOR.
42700 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
42701 (pupa_linux_prot_size): New variable.
42702 (pupa_linux_tmp_addr): Likewise.
42703 (pupa_linux_real_addr): Likewise.
42704 (pupa_linux_boot_zimage): New function.
42705 (pupa_linux_boot_bzimage): Likewise.
42707 * kern/i386/pc/init.c (struct mem_region): New structure.
42708 (MAX_REGIONS): New macro.
42709 (mem_regions): New variable.
42710 (num_regions): Likewise.
42711 (pupa_os_area_addr): Likewise.
42712 (pupa_os_area_size): Likewise.
42713 (pupa_lower_mem): Likewise.
42714 (pupa_upper_mem): Likewise.
42715 (add_mem_region): New function.
42716 (compact_mem_regions): Likewise.
42717 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
42718 the size of the conventional memory and that of so-called upper
42719 memory (before the first memory hole).
42720 Instead of adding each found region to free memory, use
42721 add_mem_region and add them after removing overlaps.
42722 Also, add only 1/4 of the upper memory to free memory. The rest
42723 is used for loading OS images. Maybe this is ad hoc, but this
42724 makes it much easier to relocate OS images when booting.
42726 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
42727 (pupa_enter_rescue_mode): Don't register initrd and module.
42729 * kern/mm.c: Include pupa/dl.h.
42731 * kern/main.c: Include pupa/file.h and pupa/device.h.
42733 * kern/loader.c (pupa_loader_load_module_func): Removed.
42734 (pupa_loader_load_module): Likewise.
42736 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
42739 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
42740 (pupa_linux_tmp_addr): Likewise.
42741 (pupa_linux_real_addr): Likewise.
42742 (pupa_linux_boot_zimage): Likewise.
42743 (pupa_linux_boot_bzimage): Likewise.
42745 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
42746 (pupa_upper_mem): Likewise.
42747 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
42748 module is too dangerous.
42750 * include/pupa/loader.h (pupa_os_area_addr): Declared.
42751 (pupa_os_area_size): Likewise.
42752 (pupa_loader_set): Remove the first argument. Loader doesn't
42753 manage modules or initrd any longer.
42754 (pupa_loader_load_module): Removed.
42756 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
42757 (linux_mod_SOURCES): New variable.
42758 (linux_mod_CFLAGS): Likewise.
42760 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
42762 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
42763 the length of a blocklist correctly.
42765 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
42766 Use ioctl only if the OS file is a block device.
42767 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
42768 not very useful for normal files.
42770 * kern/main.c (pupa_set_root_dev): New function.
42771 (pupa_load_normal_mode): Likewise.
42772 (pupa_main): Call those above.
42774 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
42777 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
42779 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42781 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
42782 (setup): Configure the installed partition information and the
42785 * loader/i386/pc/chainloader.c (my_mod): New variable.
42786 (pupa_chainloader_unload): New function.
42787 (pupa_rescue_cmd_chainloader): Refer itself.
42788 (PUPA_MOD_INIT): Save its own module in MY_MOD.
42790 * kern/i386/pc/startup.S (install_partition): Removed.
42791 (version_string): Likewise.
42792 (config_file): Likewise.
42793 (pupa_install_dos_part): New variable.
42794 (pupa_install_bsd_part): Likewise.
42795 (pupa_prefix): Likewise.
42796 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
42798 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
42800 (make_install_device): New function.
42801 (pupa_machine_init): Set the dl prefix.
42803 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
42804 (buf): Renamed to ...
42805 (linebuf): ... this.
42806 (pupa_rescue_cmd_prefix): New function.
42807 (pupa_rescue_cmd_insmod): Likewise.
42808 (pupa_rescue_cmd_rmmod): Likewise.
42809 (pupa_rescue_cmd_lsmod): Likewise.
42810 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
42813 * kern/mm.c (pupa_memalign): If failed even after invalidating
42814 disk caches, unload unneeded modules and retry.
42816 * kern/misc.c (pupa_memmove): New function.
42817 (pupa_memcpy): Removed.
42818 (pupa_strcpy): New function.
42819 (pupa_itoa): Made static.
42821 * kern/dl.c (pupa_dl_iterate): New function.
42822 (pupa_dl_ref): Likewise.
42823 (pupa_dl_unref): Likewise.
42824 (pupa_dl_unload): Return if succeeded or not.
42825 (pupa_dl_unload_unneeded): New function.
42826 (pupa_dl_unload_all): Likewise.
42827 (pupa_dl_init): Renamed to ...
42828 (pupa_dl_set_prefix): ... this.
42829 (pupa_dl_get_prefix): New function.
42831 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
42832 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
42833 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
42834 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
42835 (pupa_install_dos_part): Declared.
42836 (pupa_install_bsd_part): Likewise.
42837 (pupa_prefix): Likewise.
42838 (pupa_boot_drive): Likewise.
42840 * include/pupa/types.h: Fix a typo.
42842 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
42844 (pupa_memmove): Declared.
42845 (pupa_strcpy): Likewise.
42847 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
42848 pupa_mod_init takes one argument, its own module.
42849 (pupa_dl_unload_unneeded): Declared.
42850 (pupa_dl_unload_all): Likewise.
42851 (pupa_dl_ref): Likewise.
42852 (pupa_dl_unref): Likewise.
42853 (pupa_dl_iterate): Likewise.
42854 (pupa_dl_init): Renamed to ...
42855 (pupa_dl_set_prefix): ... this.
42856 (pupa_dl_get_prefix): Declared.
42858 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
42859 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
42861 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
42862 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
42864 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
42865 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
42867 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42869 * util/i386/pc/pupa-setup.c (setup): Define the internal
42870 function find_first_partition_start at the top level, because GCC
42871 3.0.x cannot compile internal functions in deeper scopes
42873 (find_root_device): Use lstat instead of stat.
42874 Don't follow symbolic links.
42875 Fix the path-constructing code.
42877 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
42878 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
42879 by a BLKGETSIZE ioctl first, because block devices don't fill
42880 the member st_mode of the structure stat on Linux.
42881 [__linux__] (linux_find_partition): Use a temporary buffer
42882 REAL_DEV for the working space. Copy it to DEV before returning.
42883 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
42884 buffer cache consistent.
42885 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
42886 strncmp. The previous value was merely wrong.
42887 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
42889 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
42890 FAT size is 12. The previous value was merely wrong.
42892 * kern/main.c (pupa_main): Don't split the starting message from
42895 * kern/term.c (pupa_putchar): Put CR after LF instead of before
42896 LF, because BIOS goes crazy about character attributes in this
42899 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42901 * include/i386/pc/util/biosdisk.h: New file.
42902 * util/i386/pc/biosdisk.c: Likewise.
42903 * util/i386/pc/pupa-setup.c: Likewise.
42905 * Makefile.in (INCLUDE_DISTFILES): Added
42906 include/pupa/i386/pc/util/biosdisk.h.
42907 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
42908 directory util/i386/pc.
42909 (install-local): Added a rule for sbin_UTILITIES.
42910 (uninstall): Likewise.
42912 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
42914 * util/misc.c (xrealloc): New function.
42915 (pupa_malloc): Likewise.
42916 (pupa_free): Likewise.
42917 (pupa_realloc): Likewise.
42918 (pupa_stop): Likewise.
42919 (pupa_putchar): Likewise.
42921 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
42923 * include/pupa/util/misc.h (xrealloc): Declared.
42925 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
42927 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
42928 (PUPA_BOOT_MACHINE_BPB_END): ... this.
42930 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
42931 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42933 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
42934 way should be implemented.
42935 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42937 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
42938 the size of NAME for safety.
42939 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
42942 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
42943 (pupa_setup_SOURCES): Likewise.
42945 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
42947 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42949 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
42950 bunch of pushl's from pusha, because this destroys the return
42953 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42955 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
42956 This means that any missing prototypes could be fatal. Also, you
42957 must take care when writing assembly code. See the comments at
42958 the beginning of startup.S, for more details.
42960 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
42961 compilation mechanism.
42962 (pupa_chainloader_real_boot): Likewise.
42963 (pupa_biosdisk_rw_int13_extensions): Likewise.
42964 (pupa_biosdisk_rw_standard): Likewise.
42965 (pupa_biosdisk_check_int13_extensions): Likewise.
42966 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
42967 (pupa_biosdisk_get_diskinfo_standard): Likewise.
42968 (pupa_get_memsize): Likewise.
42969 (pupa_get_mmap_entry): Likewise.
42970 (pupa_console_putchar): Likewise.
42971 (pupa_console_setcursor): Likewise.
42972 (pupa_getrtsecs): Use pushl instead of push.
42974 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
42975 memory instead of the stack for a mmap entry, because some
42976 BIOSes may ignore the maximum size and overflow.
42978 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
42980 * genmk.rb (PModule#rule): Compile automatically generated
42981 sources with module-specific CFLAGS as well as other sources.
42983 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42985 * configure.ac: Check ld.
42986 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
42987 respectively, before checking endianness and sizes.
42989 * Makefile.in (LD): New variable.
42991 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42993 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
42995 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42997 * Changelog: New file.