1 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5 (efiemu_memequal): Likewise.
6 (find_variable): Likewise.
8 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
10 Fix missing console prototype on qemu-mips.
12 * include/grub/mips/qemu_mips/console.h: New file.
14 2012-02-27 Matthew Garrett <mjg@redhat.com>
15 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
17 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
18 * include/grub/efi/efi.h: Likewise.
19 * include/grub/efi/api.h: Add guid for EFI-specified variables.
20 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
21 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
22 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
23 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
24 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
26 2012-02-27 Matthew Garrett <mjg@redhat.com>
28 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
30 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
32 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
35 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
37 * configure.ac: Remove inappropriate use of program_transform_name
38 on grubdir and bootdir but allow explicit specification of those
41 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
43 * util/grub-mknetdir.in (grub_prefix): Removed.
44 (subdir): Use @bootdirname@ and @grubdirname@.
46 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
48 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
50 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
52 * po/POTFILES.in: Regenerated.
54 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
56 Remove improper use of program_transform_name on pkglibrootdir.
58 * configure.ac (pkglibrootdir): Removed.
59 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
60 * util/grub-mkimage.c: Likewise.
62 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
64 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
67 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
69 * util/grub-install.in: Use file identifier if no UUID is available
70 or user explicitly prompted for it.
72 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
74 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
75 (freebsd_get_zfs): New function.
76 (grub_freebsd_boot): Pass zfs UUID.
77 (grub_cmd_freebsd): Set zfs UUID.
79 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
81 * conf/Makefile.common (platformdir): Base on pkglibdir and not
84 2012-02-27 Mike Gilbert <floppym@gentoo.org>
86 Add configure flag to control libzfs integration.
88 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
90 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
92 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
94 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
97 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
99 Remove grub_{modname}_init and grub_{modname}_fini. They should never
100 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
101 be used on non-modules.
103 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
104 Rename to grub_boot_init.
105 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
106 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
107 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
108 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
109 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
110 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
111 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
112 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
114 (grub_machine_init): Remove empty inits.
115 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
117 (grub_machine_init): Remove empty inits.
118 * grub-core/term/arc/console.c: Remove explicit proto.
119 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
120 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
121 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
122 grub_at_keyboard_fini.
123 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
124 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
125 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
127 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
128 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
129 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
131 * grub-core/term/ieee1275/console.c: Remove explicit proto.
132 * grub-core/term/serial.c (GRUB_MOD_INIT)
133 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
134 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
136 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
137 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
138 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
140 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
141 (GRUB_MOD_FINI): Likewise.
142 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
143 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
144 (GRUB_MOD_FINI) [LOONGSON]: Rename to
145 grub_video_radeon_fuloong2e_fini.
146 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
147 [LOONGSON]: Rename to grub_video_sis315pro_init.
148 (GRUB_MOD_FINI) [LOONGSON]: Rename to
149 grub_video_sis315pro_fini.
150 * grub-core/video/sm712.c (GRUB_MOD_INIT)
151 [LOONGSON]: Rename to grub_video_sm712_init.
152 (GRUB_MOD_FINI) [LOONGSON]: Rename to
153 grub_video_sm712_fini.
154 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
155 (grub_at_keyboard_fini): Likewise.
156 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
157 Don't declare grub_{modname}_init.
158 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
159 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
161 (grub_keylayouts_fini) [!EMU]: Likewise.
162 * include/grub/serial.h (grub_serial_init) [!EMU]:
164 (grub_serial_fini) [!EMU]: Likewise.
165 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
167 (grub_terminfo_fini) [!EMU]: Likewise.
168 * include/grub/video.h (grub_font_init) [!EMU]:
170 (grub_font_fini) [!EMU]: Likewise.
171 (grub_gfxterm_init) [!EMU]: Likewise.
172 (grub_gfxterm_fini) [!EMU]: Likewise.
173 (grub_video_sm712_init) [!EMU]: Likewise.
174 (grub_video_sm712_fini) [!EMU]: Likewise.
175 (grub_video_sis315pro_init) [!EMU]: Likewise.
176 (grub_video_sis315pro_fini) [!EMU]: Likewise.
177 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
178 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
180 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
182 Make nand a prefix for nand devices.
184 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
186 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
188 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
189 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
191 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
193 * include/grub/env.h (grub_env_find): Remove prototype.
194 * grub-core/kern/env.c (grub_env_find): Make static.
195 (grub_env_set): Remove useless set.
197 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
199 * grub-core/kern/i386/realmode.S: Remove useless align.
201 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
203 * include/grub/dl.h (grub_dl_load_file): Don't export.
205 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
207 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
210 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
212 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
214 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
215 not reloading whole superblock but only the part which is really needed.
216 Remove useless grub_errors.
217 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
220 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
222 Don't export grub_get_rtc.
224 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
225 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
227 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
229 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
231 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
233 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
234 argument since it can be deduced from diskfilter. All users updated.
236 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
240 * include/grub/list.h (grub_prio_list): Removed.
241 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
242 GRUB_COMMAND_PRIO_MASK.
243 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
244 GRUB_COMMAND_FLAG_ACTIVE.
245 (grub_prio_list_insert): Removed.
246 (grub_prio_list_remove): Likewise.
247 (GRUB_AS_PRIO_LIST): Likewise.
248 (GRUB_AS_PRIO_LIST_P): Likewise.
249 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
250 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
251 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
252 * grub-core/kern/command.c (grub_register_command_prio): Inline
254 (grub_unregister_command): Likewise.
256 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
258 Fix interrupt mixup from previous commit.
260 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
261 (grub_realidt): New var.
262 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
264 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
266 (grub_relocator16_boot): Set grub_relocator16_idt.
267 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
268 (LOCAL(realidt)): ... this.
269 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
270 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
271 (grub_realidt): New variable.
273 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
275 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
276 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
277 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
278 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
280 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
281 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
282 * po/POTFILES.in: Regenerate.
284 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
286 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
289 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
291 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
293 (add_length): Likewise.
295 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
296 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
298 GDB serial and backtrace support.
300 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
301 (prot_to_real): Likewise.
302 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
303 * grub-core/Makefile.core.def (backtrace): New module.
305 * grub-core/gdb/cstub.c: New file.
306 * grub-core/gdb/gdb.c: Likewise.
307 * grub-core/gdb/i386/idt.c: Likewise.
308 * grub-core/gdb/i386/machdep.S: Likewise.
309 * grub-core/gdb/i386/signal.c: Likewise.
310 * grub-core/lib/i386/backtrace.c: Likewise.
311 * grub-core/lib/backtrace.c: Likewise.
312 * include/grub/backtrace.h: Likewise.
313 * include/grub/gdb.h: Likewise.
314 * include/grub/i386/gdb.h: Likewise.
316 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
318 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
320 (add_length): Likewise.
321 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
322 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
324 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
325 __argp_get_display_len.
327 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
329 $"..." support in scripts.
331 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
332 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
333 * grub-core/script/yylex.l: Likewise.
334 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
337 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
339 * gentpl.py: Remove obsolete pkglib_DATA handling.
341 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
343 Don't transform PACKAGE_TARNAME following a discussion on autoconf
346 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
347 * util/grub-kbdcomp.in: Likewise.
348 * util/grub-mkconfig.in: Likewise.
349 * util/grub-mkconfig_lib.in: Likewise.
350 * util/grub-mknetdir.in: Likewise.
351 * util/grub-mkrescue.in: Likewise.
352 * util/grub-mkstandalone.in: Likewise.
353 * util/grub-reboot.in: Likewise.
354 * util/grub-set-default.in: Likewise.
355 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
357 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
361 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
362 * util/grub.d/00_header.in: Compute prefix in the only place it's still
363 used for backward compatibility.
365 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
367 Add new all_video module.
369 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
370 * grub-core/Makefile.core.def (all_video): New module.
371 * grub-core/genmoddep.awk: Generate dependency of all_video from
373 * grub-core/lib/fake_module.c: New file.
374 * grub-core/normal/main.c (features): Add feature_all_video_module.
375 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
376 don't do explicit search again.
377 insmod all_video in load_video if available.
379 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
381 Another round of string clarification and adding TRANSLATORS comments.
383 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
385 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
387 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
389 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
391 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
392 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
394 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
396 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
397 trailing newline implicitly. All users updated.
399 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
401 Implement serial on IEEE1275 and EFI.
403 * docs/grub.texi (Platform-specific limitations): Fix the columen video
404 on emu. Mention arc and emu as the only platforms without serial
406 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
408 * grub-core/term/efi/serial.c: New file.
409 * grub-core/term/ieee1275/serial.c: Likewise.
410 * grub-core/term/serial.c (grub_serial_find): Disable direct port
411 specification if no ns8250 driver is available.
412 (grub_cmd_serial): Likewise.
413 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
414 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
415 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
416 (grub_efi_parity_type_t): New type.
417 (grub_efi_stop_bits_t): Likewise.
418 (grub_efi_serial_io_interface): New struct.
419 * include/grub/serial.h (grub_serial_port): Make 'broken' field
420 available for all interfaces.
421 Add EFI and IEEE1275 fields.
422 (grub_ofserial_init): New proto.
423 (grub_efiserial_init): Likeiwse.
424 * util/grub.d/00_header.in: Don't check for the presence of serial
427 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
429 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
430 name as if it was an alias.
432 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
434 * grub-core/commands/lsacpi.c (options): Fix typo.
436 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
438 Convert grub-emu to argp.
440 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
442 * util/argp_common.c: Rename to ...
443 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
444 Add missing includes.
445 * grub-core/kern/emu/main.c: Convert to argp.
446 * po/POTFILES.in: Regenerate.
447 * util/grub-install.in (usage): Make first letter lowcase in messages
449 * util/grub-setup.c (options): Likewise.
451 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
453 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
454 Put back accidently commented-out code.
456 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
458 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
459 loop check using Brent algorithm.
460 (grub_hfsplus_btree_search): Likewise.
462 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
464 * util/grub-install.in: Fix usage of wrong device for PreP install.
466 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
468 * conf/Makefile.common (CFLAGS_GNULIB): Add
469 -Wno-unsafe-loop-optimizations.
470 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
472 * grub-core/commands/legacycfg.c: Add pragma to skip
473 -Wunsafe-loop-optimizations.
474 (check_password_md5_real): Fix loop counter type.
475 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
477 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
478 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
480 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
481 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
482 * grub-core/net/net.c (grub_net_route_address): Add safety loop
484 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
485 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
486 avoid possible infinite loops.
487 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
488 and -Wunsafe-loop-optimizations.
489 * grub-core/script/yylex.l: Likewise.
490 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
491 (print_glyphs): Avoid infinite loops.
492 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
494 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
496 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
497 to avoid infinite loop.
498 (disp_acpi_rsdt_table): Likewise.
500 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
502 * grub-core/font/font.c (grub_font_load): Add support for default
503 path for fonts ($prefix/fonts).
504 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
505 for checking if string is a path.
506 * grub-core/normal/main.c (features): Add feature_default_font_path.
507 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
508 * util/grub.d/00_header.in: Use default directory if possible.
509 * util/grub-install.in: Install unicode.pf2.
511 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
513 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
514 * po/Rules-swiss: New file.
515 * po/swiss.sed: Likewise.
517 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
519 * grub-core/fs/btrfs.c (find_device): Fix typos.
520 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
521 * util/grub-mkrelpath.c (argp_parser): Likewise.
522 Reported by: Yuri Chornoivan.
524 2012-02-23 Dalet Omega <daletomega@gmail.com>
526 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
527 for usual informative messages.
529 2012-02-23 Dalet Omega <daletomega@gmail.com>
533 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
534 * conf/Makefile.common: Define starfielddir.
535 * configure.ac: Configure starfield.
536 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
537 * themes/starfield/README: Likewise.
538 * themes/starfield/blob_w.png: Likewise.
539 * themes/starfield/boot_menu_c.png: Likewise.
540 * themes/starfield/boot_menu_e.png: Likewise.
541 * themes/starfield/boot_menu_n.png: Likewise.
542 * themes/starfield/boot_menu_ne.png: Likewise.
543 * themes/starfield/boot_menu_nw.png: Likewise.
544 * themes/starfield/boot_menu_s.png: Likewise.
545 * themes/starfield/boot_menu_se.png: Likewise.
546 * themes/starfield/boot_menu_sw.png: Likewise.
547 * themes/starfield/boot_menu_w.png: Likewise.
548 * themes/starfield/slider_c.png: Likewise.
549 * themes/starfield/slider_n.png: Likewise.
550 * themes/starfield/slider_s.png: Likewise.
551 * themes/starfield/src/blob_nw.xcf: Likewise.
552 * themes/starfield/src/bootmenu/: Likewise.
553 * themes/starfield/src/bootmenu/center.xcf: Likewise.
554 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
555 * themes/starfield/src/bootmenu/side.xcf: Likewise.
556 * themes/starfield/src/slider_c.xcf: Likewise.
557 * themes/starfield/src/slider_n.xcf: Likewise.
558 * themes/starfield/src/slider_s.xcf: Likewise.
559 * themes/starfield/src/terminalbox/: Likewise.
560 * themes/starfield/src/terminalbox/center.xcf: Likewise.
561 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
562 * themes/starfield/src/terminalbox/side.xcf: Likewise.
563 * themes/starfield/starfield.png: Likewise.
564 * themes/starfield/terminal_box_c.png: Likewise.
565 * themes/starfield/terminal_box_e.png: Likewise.
566 * themes/starfield/terminal_box_n.png: Likewise.
567 * themes/starfield/terminal_box_ne.png: Likewise.
568 * themes/starfield/terminal_box_nw.png: Likewise.
569 * themes/starfield/terminal_box_s.png: Likewise.
570 * themes/starfield/terminal_box_se.png: Likewise.
571 * themes/starfield/terminal_box_sw.png: Likewise.
572 * themes/starfield/terminal_box_w.png: Likewise.
573 * themes/starfield/theme.txt: Likewise.
575 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
577 * util/grub.d/00_header.in: Add missing export theme.
579 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
581 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
585 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
587 * conf/Makefile.common (grubdatadir): Removed.
588 (Makefile.am): Move eveything grubdata to pkgdata.
590 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
592 * grub-core/commands/acpihalt.c (get_sleep_type):
593 Remove unused variable.
595 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
597 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
598 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
599 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
600 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
601 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
602 i18n with gettext no-op.
603 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
604 GRUB_ACPI_OPCODE_STRING_CONST.
605 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
606 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
608 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
610 * po/POTFILES.in: Regenerate.
612 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
614 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
615 -Wno-error=missing-noreturn.
617 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
619 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
620 condition to avoid possibly infinite loops.
621 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
622 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
624 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
626 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
627 condition to avoid possibly infinite loops.
629 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
631 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
634 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
636 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
638 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
640 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
642 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
644 * util/bin2h.c (usage): Add missing attribute noreturn.
646 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
648 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
649 if the size isn't divisible by 512.
651 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
653 Make list_push and list_remove functions rather than inline functions
654 to decrease size and avoid aliasing violations.
656 * include/grub/list.h (grub_list_push): Move to ...
657 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
658 * include/grub/list.h (grub_list_remove): Move to ...
659 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
661 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
663 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
666 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
668 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
669 Reported by: Seth Goldberg
671 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
673 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
675 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
677 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
678 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
680 * docs/grub.texi (Simple configuration): Document
681 GRUB_CMDLINE_GNUMACH.
683 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
685 * conf/Makefile.common (platform_SCRIPTS): New variable.
686 (platform_PROGRAMS): Likewise.
687 * gentpl.py: Mark *,module and *.image for install.
688 * grub-core/gdb_grub.in: Add a notice of expected environment.
689 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
690 (gmodule.pl): Likewise.
692 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
694 Replace grub_checkkey with grub_getkey_noblock.
696 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
697 (grub_getkey_noblock): ... this. All users updated.
699 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
701 * grub-core/kern/emu/console.c: Move to ...
702 * grub-core/term/emu/console.c: ...here.
703 (grub_ncurses_getkey): Fix return value if no key is detected.
705 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
707 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
708 (grub_unit_test_fini): Likewise.
709 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
711 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
713 * include/grub/test.h (GRUB_UNIT_TEST)
715 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
717 * grub-core/script/execute.c (grub_script_break): Clarify logic.
718 Better error handling.
719 (grub_script_return): Likewise.
720 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
722 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
724 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
725 rimplicit redifinition.
727 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
729 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
732 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
734 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
735 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
738 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
740 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
741 as GRUB_ERR_BUG. Don't malloc if no device is available.
743 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
745 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
746 Mark calling with invalid term as GRUB_ERR_BUG.
748 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
750 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
751 packets rather than raising an error.
753 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
755 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
758 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
760 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
761 diagnostic to dprintf.
762 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
764 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
766 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
769 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
771 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
772 (grub_ntfs_iterate_dir): Likewise.
774 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
776 Efiemu stylistic fixes and gettext.
778 * grub-core/efiemu/i386/loadcore32.c
779 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
780 * grub-core/efiemu/i386/loadcore64.c
781 (grub_arch_efiemu_relocate_symbols64): Likewise.
782 * grub-core/efiemu/i386/pc/cfgtables.c
783 (grub_machine_efiemu_init_tables): Likewise.
784 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
785 (grub_efiemu_loadcore_initXX): Add a filename argument.
787 Improved error message.
788 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
789 Add a filename argument.
791 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
792 Reclassify double relocation as GRUB_ERR_BUG.
794 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
796 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
799 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
801 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
804 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
806 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
808 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
810 Improve string. Gettextize.
812 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
814 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
816 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
818 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
820 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
821 [GRUB_UTIL]: New function.
822 (insert_array) [GRUB_UTIL]: Store partmaps.
823 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
825 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
826 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
827 (probe_abstraction): Print diskfilter and not raid.
828 Reported by: Lennart Sorensen
830 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
832 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
833 * util/grub-mkimagexx.c (MASK3): New define.
834 (add_value_to_slot_20b): Use MASK3.
835 (add_value_to_slot_21): Likewise.
836 (relocate_addresses): Fix format specification.
837 (load_image): Explicitly init symtab_section.
839 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
841 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
842 (grub_util_biosdisk_get_grub_dev): Fix format specification.
844 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
846 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
848 Reported by: Lennart Sorensen
850 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
852 * gentpl.py: Add missing license header.
853 * docs/grub.texi: Update copyright year.
855 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
857 Source grub-mkconfig_lib from the build directory at build time.
858 Suggested by: Vladimir Serbinenko.
860 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
861 * util/grub-install.in: Define pkgdatadir if not already set, and source
862 grub-mkconfig_lib from there.
863 * util/grub-kbdcomp.in: Likewise.
864 * util/grub-mkconfig.in: Likewise.
865 * util/grub-mknetdir.in: Likewise.
866 * util/grub-mkrescue.in: Likewise.
867 * util/grub-mkstandalone.in: Likewise.
868 * util/grub-reboot.in: Likewise.
869 * util/grub-set-default.in: Likewise.
870 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
872 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
874 Increase warning level.
876 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
877 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
878 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
879 (TARGET_CFLAGS): Likewise.
880 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
881 * grub-core/Makefile.core.def (decompressor_xz): Add
882 -Wno-unreachable-code.
883 (normal): Add -Wno-redundant-decls.
884 (xzio): Add -Wno-unreachable-code.
885 (lzopio): Add -Wno-redundant-decls -Wno-error.
886 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
887 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
888 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
889 * grub-core/kern/dl.c: Add exception to -Wcast-align.
890 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
891 * grub-core/kern/i386/coreboot/init.c: Add exception to
892 -Wsuggest-attribute=noreturn.
893 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
894 * grub-core/kern/ia64/dl_helper.c: Likewise.
895 * grub-core/kern/mips/dl.c: Likewise.
896 * grub-core/kern/sparc64/dl.c: Likewise.
897 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
898 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
900 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
901 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
902 * grub-core/loader/mips/linux.c: Likewise.
903 * grub-core/loader/multiboot_elfxx.c: Likewise.
904 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
905 * grub-core/video/sm712.c: Add exception to -Wcast-align.
906 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
907 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
909 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
910 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
913 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
915 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
918 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
920 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
921 Avoid improper use of strings.
922 (grub_cmd_legacy_initrdnounzip): Likewise.
924 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
926 * include/grub/emu/misc.h (grub_util_warn): Add missing format
928 (grub_util_info): Likewise.
929 (grub_util_error): Likewise.
931 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
933 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
934 * util/grub-fstest.c (fstest): Likewise.
936 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
938 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
939 (grub_md_sha512_real): Likewise.
940 (grub_util_get_geli_uuid): Likewise.
941 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
942 (grub_util_biosdisk_open): Fix format specification.
943 Respect format security.
944 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
945 (xrealloc): Likewise.
946 (xasprintf): Likewise.
948 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
950 * util/import_gcry.py: Include grub/crypto.h in init.c.
952 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
954 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
955 (generate_image): Make prefix a const char *.
956 Fix format specifications. Respect format security.
957 Avoid void * arithmetics.
959 (argp_parser): Remove unused variable. Respect format security.
960 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
961 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
962 (count_funcs): Remove unused variable.
963 (relocate_addresses): Fix format specification.
964 Disable x86-64 with elf32. Remove unused variables.
965 (add_fixup_entry): Avoid shadowing.
966 (make_reloc_section): Fix format specification.
968 (locate_sections): Fix format specifications.
969 (load_image): Avoid shadowing.
971 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
973 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
974 Fix format specifications. Respect format security.
975 Don't translate already translated grub_errmsg.
976 (argp_parser): Remove unused variable
978 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
980 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
982 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
984 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
985 (main): Likewise. Use xmalloc. Respect format security.
987 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
989 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
991 (argp_parser): Remove unused variable.
993 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
995 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
996 (add_pixel): Make static.
997 (add_font): Likewise.
998 (write_string_section): Make name and str a const char *.
999 (write_be16_section): Make name a const char *.
1000 (print_glyphs): Make static.
1001 (write_font_ascii_bitmap): Likewise.
1002 (write_font_width_spec): Likewise.
1003 (write_font_pf2): Likewise.
1004 (argp_parser): Remove unused variable.
1005 Respect format security.
1006 (main): Avoid shadowing. Respect format security.
1008 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1010 * util/grub-editenv.c (argp_parser): Make static.
1011 (create_envblk_file): Use xmalloc.
1012 (open_envblk_file): Likewise.
1013 Resepect format security.
1014 (set_variables): Respect format security.
1016 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1018 * util/getroot.c (grub_find_device): Respect format security.
1019 (get_mdadm_uuid): Remove unused variable.
1020 (grub_util_pull_device): Dont call gettext on already translated
1022 (find_system_device): Remove unused variable.
1023 (grub_util_get_grub_dev): Likewise.
1024 (grub_make_system_path_relative_to_its_root): Respect format security.
1026 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1028 * util/grub-fstest.c (execute_command): Make first argument
1030 (read_file): Avoid shadowing.
1031 Reuse underlying error message if device open fails.
1032 (cmd_cmp): Respect format security.
1033 (root): Make const char *.
1034 (fstest): Remove args argument and use global copy.
1035 Respect format security.
1036 (argp_parser): Make static.
1037 (main): Make default_root const char *.
1039 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1041 * util/grub-mount.c (root): Make const char *.
1042 (execute_command): Make first argument a const char *.
1043 (fuse_init): Respect format security.
1044 (argp_parser): Make static. Remove unused variable.
1045 (main): Make default_root a const char *.
1046 Respect format security.
1048 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1050 * util/grub-probe.c (probe): Don't call gettext on already translated
1052 Remove unused variables.
1053 (argp_parser): Remove unused variable.
1055 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1057 * util/grub-script-check.c (argp_parser): Remove unused variable.
1058 (main): Rename read to curread to avoid shadowing.
1060 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1062 * util/misc.c (grub_util_write_image_at): Fix format specification.
1063 (grub_util_write_image): Likewise.
1064 (grub_script_execute_argument_to_string): Removed (unused).
1065 (grub_script_execute_menuentry): Likewise.
1066 (grub_putchar): Likewise.
1068 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1070 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
1071 (FUNCTION) [GRUB_UTIL]: Likewise.
1072 (VARIABLE) [GRUB_UTIL]: Likewise.
1074 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1076 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
1077 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
1079 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1081 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
1084 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1086 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
1087 (LzmaEnc_SaveState): Removed (unused).
1088 (LzmaEnc_RestoreState): Likewise.
1089 (LzmaEnc_InitPriceTables): Made static.
1090 (LzmaEnc_Construct): Likewise.
1091 (LzmaEnc_FreeLits): Likewise.
1092 (LzmaEnc_Destruct): Likewise.
1093 (LzmaEnc_Init): Likewise.
1094 (LzmaEnc_InitPrices): Likewise.
1095 (LzmaEnc_Finish): Likewise.
1096 (LzmaEnc_PrepareForLzma2): Removed (unused).
1097 (LzmaEnc_MemPrepare): Likewise.
1098 (LzmaEnc_GetNumAvailableBytes): Likewise.
1099 (LzmaEnc_GetCurBuf): Likewise.
1100 (LzmaEnc_CodeOneMemBlock): Likewise.
1102 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1104 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
1105 (grub_util_ldm_embed): Likewise.
1107 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1109 * util/grub-editenv.c (print_var): Rename name to varname to
1111 (main): Rename index to curindex to avoid shadowing.
1112 Make filename a const char *.
1114 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1116 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
1117 to arg_getline to avoid shadowing.
1119 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1121 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
1122 disk_ to avoid shadowing.
1124 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1126 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
1127 curindex to avoid shadowing.
1129 (MatchFinder_GetNumAvailableBytes): Make static.
1131 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1133 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
1136 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
1138 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
1139 argument from encrypt to do_encrypt to avoid shadowing.
1141 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1143 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
1144 incorrect nesting of #if's.
1146 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1148 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
1149 checks which are always false on some platforms.
1150 (grub_cmd_lsacpi): Likewise.
1151 * grub-core/kern/misc.c (grub_strtoul): Likewise.
1152 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
1155 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1157 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
1158 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
1160 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1162 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
1163 re_dfa_t to avoid breaking alignment invariants.
1164 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
1165 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
1167 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1169 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
1170 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
1172 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1174 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
1177 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1179 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
1180 conserve alignment invariants.
1181 (grub_ehci_ehcc_read16): Likewise.
1182 (grub_ehci_oper_read32): Likewise.
1183 (grub_ehci_oper_write32): Likewise.
1184 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
1185 Conserve alignment invariants.
1187 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1189 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
1190 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
1193 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1195 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
1196 Remove unused variable.
1198 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1200 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
1203 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1205 * include/grub/net.h: Remove double declarations.
1207 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1209 Remove "payload" command in ia64 Linux loader since I couldn't
1210 find any evidence of it being used for anything.
1211 Replace "relocate" command with an environment variable
1213 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
1215 (ia64_boot_payload): Removed.
1216 (last_payload): Likewise.
1217 (RELOCATE_OFF): Likewise.
1218 (RELOCATE_ON): Likewise.
1219 (RELOCATE_FORCE): Likewise.
1220 (relocate): Likewise.
1221 (free_pages): Don't free payloads.
1222 (grub_load_elf64): Use common error messages.
1223 Use "linux_relocate" variable.
1224 Increase the space after boot_params.
1225 (grub_cmd_payload): Removed.
1226 (grub_cmd_relocate): Likewise.
1227 (grub_cmd_fpswa): Improve messages.
1228 (cmd_payload): Removed.
1229 (cmd_relocate): Likewise.
1230 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
1231 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
1233 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1235 Convert UHCI to DMA framework.
1237 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
1238 (grub_uhci_pci_iter): Fill new members
1239 (grub_alloc_td): Use P2V and V2P functions.
1240 (grub_free_queue): Likewise.
1241 (grub_alloc_qh): Likewise.
1242 (grub_uhci_setup_transfer): Likewise.
1243 (grub_uhci_check_transfer): Likewise.
1245 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1247 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
1248 Remove assignment in if while on it.
1250 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1252 * util/grub-mkstandalone.in: Fix modules directory.
1254 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1256 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
1258 (argp_parser): Accept "auto" as compression specification.
1260 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1262 Fix `help' with unloaded modules.
1264 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
1265 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
1266 (grub_dyncmd_dispatcher): Small stylistic fix.
1267 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
1268 explicit help is requested.
1270 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1272 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
1273 Explicitly init restart while on it.
1275 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
1277 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
1280 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1282 * util/grub-mknetdir.in: Use . rather than source for POSIX
1285 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1287 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
1289 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1291 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
1294 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1296 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
1299 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1301 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
1303 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1305 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
1306 iteration of partitions.
1308 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
1310 Improve gettext support. Stylistic fixes and error handling fixes while
1313 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
1315 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
1316 part. Instead setup the correct stack in RM.
1317 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
1319 * include/grub/i386/relocator_private.h: New file.
1321 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1323 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
1325 * util/grub-fstest.c (options): Add missing DEVICE part.
1327 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1329 Clarify and unify messages.
1331 * grub-core/commands/hashsum.c (options): Unify messages.
1332 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
1333 literal-only message as translatable.
1334 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
1335 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
1336 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
1338 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
1339 key, not the key used to unlock. Clarify what it's used for.
1340 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
1341 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
1342 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
1343 * util/grub-editenv.c (options): Unify "verbose" message.
1344 * util/grub-fstest.c (read_file): Unify error message.
1345 (fstest): Add quotes around commands.
1346 (options): Unify "verbose" message.
1347 * util/grub-install.in: Add quotes around variable name.
1348 * util/grub-kbdcomp.in: Unify error message.
1349 * util/grub-mkfont.c (main): Likewise.
1350 * util/grub-mkrescue.in: Likewise.
1351 * util/grub-mklayout.c (options): Unify "verbose" message.
1352 * util/grub-mkstandalone.in: Unify help and verbose messages.
1353 * util/grub-mount.c (options): Unify "verbose" message.
1354 * util/grub-probe.c (options): Likewise.
1355 * util/grub-script-check.c (options): Likewise.
1356 * util/grub-setup.c (setup): Unify no-terminator message.
1357 (options): Use DEVICE and not DEV.
1358 Unify "verbose" message.
1359 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
1361 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1363 Improve and unify messages.
1365 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
1366 name. All users updated.
1367 Print filename in error.
1368 (read_device_map): Print filename in error.
1369 * util/getroot.c (grub_guess_root_devices): Print filename in error.
1370 (grub_util_get_os_disk): Likewise.
1371 (grub_util_biosdisk_get_grub_dev): Likewise.
1372 (grub_util_check_block_device): Likewise.
1373 (grub_util_check_char_device): Likewise.
1374 (grub_make_system_path_relative_to_its_root): Likewise.
1375 * util/grub-editenv.c (create_envblk_file): Likewise.
1376 (open_envblk_file): Likewise.
1377 (write_envblk): Likewise.
1378 * util/grub-fstest.c (cmd_cp): Likewise.
1379 (cmd_cat): Likewise.
1380 (cmd_cmp): Likewise.
1381 * util/grub-menulst2cfg.c (main): Likewise.
1382 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
1383 (write_font_width_spec): Likewise.
1384 (write_font_pf2): Likewise.
1385 * util/grub-mkimage.c (generate_image): New argument outname.
1387 Remove unreacheable message.
1388 (options): Unify messages.
1389 (help_filter): Likewise.
1390 * util/grub-mklayout.c (usage): Removed (unused).
1391 (main): Print filename in error.
1392 * util/grub-mkrescue.in: Fix wrong quoting.
1393 * util/grub-setup.c (setup): Print filename in error.
1394 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
1395 (check_sas): Likewise.
1396 * util/misc.c (grub_util_get_fp_size): Removed.
1397 (grub_util_get_image_size): Print filename in error.
1398 (grub_util_read_at): Removed.
1399 (grub_util_read_image): Print filename in error.
1400 (grub_util_load_image): Likewise.
1401 (grub_util_write_image_at): New argument filename. All users updated.
1402 Print filename in error.
1403 (grub_util_write_image): New argument filename. All users updated.
1404 Print filename in error.
1405 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
1406 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
1408 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1410 * grub-core/Makefile.core.def (pxechain): New module.
1411 * grub-core/loader/i386/pc/pxechainloader.c: New file.
1412 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
1414 (grub_pc_net_config_real): Use grub_pxe_get_cached.
1415 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
1417 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1419 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
1420 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
1421 * include/grub/err.h (grub_error_saved): New struct.
1422 (grub_errmsg): Make array size explicit.
1423 * include/grub/misc.h (grub_error_save): New function.
1424 (grub_error_load): Likewise.
1425 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
1426 (grub_error_push): Update `errno' member name.
1427 (grub_error_pop): Likewise
1428 * grub-core/net/tftp.c (tftp_data): New member save_err.
1429 (tftp_receive): Save error.
1430 (tftp_open): Restore error.
1432 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
1434 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
1435 to real mode down to execute A20-related code in protected mode as
1438 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1440 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
1441 NULL when the argument `level' has an unexpected value.
1443 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1445 Move platform-dependent files from $prefix to $prefix/$platform.
1447 * config.h.in (GRUB_TARGET_CPU): New definition.
1448 (GRUB_PLATFORM): Likewise.
1449 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
1450 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
1451 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1452 * grub-core/kern/dl.c (grub_dl_load): Likewise.
1453 * grub-core/normal/autofs.c (read_fs_list): Likewise.
1454 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
1455 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
1456 * grub-core/normal/term.c (read_terminal_list): Likewise.
1457 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
1459 (grub_gettext_init_ext): Likewise.
1460 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
1462 * util/grub-install.in: Update directories.
1463 * util/grub-mknetdir.in: Likewise.
1464 * util/grub-mkrescue.in: Likewise.
1466 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1468 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
1469 grub_error framework. All users updated.
1471 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1473 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
1474 lists (by always binsearching), improve caching (cache strings
1475 used for binsearch, not only results), improve
1476 maintainability (by using more structured binary search) and correct
1479 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1481 * grub-core/script/execute.c (grub_script_return): Fix warning.
1483 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1485 * grub-core/script/execute.c (grub_script_return): Fix potential
1487 Reported by: Jim Meyering.
1489 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1491 * po/POTFILES.in: Regenerate.
1492 * util/grub-install.in: Gettextize the strings missed in first pass.
1494 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1496 * Makefile.util.def (grub-mkdevicemap): Removed.
1497 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
1498 * include/grub/util/deviceiter.h: Removed.
1499 * util/deviceiter.c: Likewise.
1500 * util/getroot.c (grub_util_get_os_disk): New function.
1501 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
1502 replacement for EFI.
1503 * util/grub-mkdevicemap.c: Removed.
1504 * util/grub-probe.c (probe): Handle PRINT_DISK.
1505 (argp_parser): Handle -t disk.
1507 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1509 * util/grub-mkfont.c: Migrate to argp.
1510 * util/grub-mklayout.c: Likewise.
1511 * util/grub-mkpasswd-pbkdf2.c: Likewise.
1512 * util/grub-mkrelpath.c: Likewise.
1513 * util/grub-probe.c: Likewise.
1514 * util/grub-script-check.c: Likewise.
1516 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1518 * util/grub-reboot.in: Add missing datarootdir.
1519 Add missing newline.
1520 * util/grub-set-default.in: Add missing datarootdir.
1521 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
1522 * util/grub-mkrescue.in: Likewise.
1524 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1526 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
1528 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1530 * util/grub-kbdcomp.in: Add decent help and gettextize.
1531 * docs/man/grub-kbdcomp.h2m: New file.
1533 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1535 Migrate grub-mkimage.c to argp.
1537 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
1538 (grub-setup): Likewise.
1539 * util/grub-setup.c (print_version): Move to ...
1540 * util/argp_common.c (print_version): ... here.
1541 * util/grub-setup.c (argp_program_version_hook): Move to ...
1542 * util/argp_common.c (argp_program_version_hook): ... here.
1543 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
1545 * util/grub-mkimage.c (main): Migrate to argp.
1547 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1549 * util/grub-mkrescue.in: Use same message as
1550 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
1551 for better translations.
1553 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1555 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
1556 options with generic grub-mkrescue.in with the goal of future
1559 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1561 * grub-core/kern/mm.c: Add missing include of i18n.h
1562 * grub-core/lib/relocator.c: Likewise.
1564 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1566 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
1568 (allocate_pages): Check return value.
1569 Replace fatal with error.
1570 (grub_linux_boot): Replace printf with dprintf.
1571 Check find_mmap_size return value.
1572 Replace fatal with error.
1573 Don't call grub_machine_fini.
1574 (grub_load_elf64): Replace printf with dprintf.
1575 (grub_cmd_linux): Likewise.
1576 (grub_cmd_initrd): Likewise.
1577 (grub_cmd_payload): Likewise.
1579 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1581 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
1583 * grub-core/video/radeon_fuloong2e.c
1584 (grub_video_radeon_fuloong2e_setup): Likewise.
1585 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
1586 * grub-core/video/video.c (grub_video_set_mode): Don't override
1587 standard out of memory message.
1589 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1591 NetBSD disk wedge support.
1593 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
1594 [__NetBSD__]: Handle NetBSD disk wedges.
1595 * util/getroot.c (convert_system_partition_to_system_disk)
1596 [__NetBSD__]: Likewise.
1598 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
1600 * util/grub-mkconfig.in: Use umask rather than chmod to create
1601 grub.cfg.new to avoid insecure grub.cfg.
1603 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1605 * grub-core/commands/ls.c: Gettextize.
1606 * grub-core/commands/setpci.c: Likewise.
1607 * grub-core/commands/videotest.c: Likewise.
1608 * grub-core/disk/geli.c: Likewise.
1609 * grub-core/kern/mm.c: Likewise.
1610 * grub-core/lib/relocator.c: Likewise.
1611 * grub-core/loader/efi/appleloader.c: Likewise.
1612 * grub-core/loader/i386/xnu.c: Likewise.
1613 * grub-core/loader/ia64/efi/linux.c: Likewise.
1614 * grub-core/loader/xnu.c: Likewise.
1615 * grub-core/net/dns.c: Likewise.
1616 * grub-core/net/net.c: Likewise.
1617 * grub-core/script/lexer.c: Likewise.
1618 * grub-core/script/parser.y: Likewise.
1619 * grub-core/script/yylex.l: Likewise.
1620 * util/getroot.c: Likewise.
1621 * util/grub-setup.c: Likewise.
1623 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1625 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
1628 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1630 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
1632 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1634 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
1636 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
1637 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
1639 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1641 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
1642 * util/grub-install.in: Gettextize.
1643 * util/grub-mkconfig.in: Likewise.
1644 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
1646 (grub_warn): Gettextize.
1647 * util/grub-mknetdir.in: Gettextize.
1648 * util/grub-mkrescue.in: Likewise.
1649 * util/grub-mkstandalone.in: Likewise.
1650 * util/grub-reboot.in: Likewise.
1651 * util/grub-set-default.in: Likewise.
1652 * util/grub.d/00_header.in: Likewise.
1653 * util/grub.d/10_hurd.in: Likewise.
1654 * util/grub.d/10_kfreebsd.in: Likewise.
1655 * util/grub.d/10_linux.in: Likewise.
1656 * util/grub.d/10_netbsd.in: Likewise.
1657 * util/grub.d/10_windows.in: Likewise.
1658 * util/grub.d/20_linux_xen.in: Likewise.
1659 * util/grub.d/30_os-prober.in: Likewise.
1660 * po/POTFILES-shell.in: Regenerate.
1662 2012-02-03 Richard Laager <rlaager@wiktel.com>
1664 * util/grub-mkimage.c (main): Fix format-security warning.
1665 * util/grub-mkrelpath.c (main): Likewise.
1666 * util/grub-probe.c (main): Likewise.
1668 2012-02-03 Richard Laager <rlaager@wiktel.com>
1670 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
1672 Put back lost PRINT_DRIVE.
1674 2012-02-03 Richard Laager <rlaager@wiktel.com>
1676 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
1677 (grub_guess_root_devices): Replace strlen with sizeof.
1679 (find_root_devices_from_poolname): Remove unused variable.
1682 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
1684 Support install on multi-device filesystems.
1686 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
1687 (grub_guess_root_devices): ...this. Return char **. All users updated.
1688 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
1690 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
1691 (find_root_devices_from_poolname): ... here.
1692 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
1694 (grub_guess_root_device): Rename to ...
1695 (grub_guess_root_devices): ... this. Return char **. All users updated.
1696 * util/grub-install.in: Handle multi-device filesystems.
1697 * util/grub-probe.c (probe). Make device_names a char **. Add delim
1698 argument. All users updated.
1699 Handle multi-device filesystems.
1700 Use 'delim' as separator.
1701 Remove device check to allow filesystems on file.
1702 (main): Support -0 argument. Handle multi-device.
1703 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
1704 Fix a cross-device check while on it.
1705 (arguments): Remove root_dev.
1706 (argp_parser): Remove -r.
1707 (main): Remove root_dev.
1709 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1711 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
1713 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1715 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
1717 Reported by: NODA, Kai <nodakai>.
1719 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1723 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
1725 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
1726 (grub_ehci_setup_qh): Likewise.
1727 (grub_ehci_find_qh): Likewise.
1728 (grub_ehci_transaction): Likewise.
1729 (grub_ehci_setup_transfer): Likewise.
1730 (grub_ehci_check_transfer): Likewise.
1731 (grub_ehci_portstatus): Likewise.
1732 (grub_ehci_detect_dev): Likewise.
1733 (grub_ehci_transfer_controller_data): New field td_last_phys.
1734 (grub_ehci_setup_transfer): Fill td_last_phys.
1735 (grub_ehci_check_transfer): Use td_last_phys.
1737 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
1739 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
1740 if no submenu is present.
1742 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1746 * include/grub/usb.h (grub_usbms_protocol_t): New values
1747 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
1748 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
1749 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
1750 (grub_usbms_dev): Add subclass, protocol and intrpt.
1751 Remove in_maxsz and out_maxsz.
1752 (grub_usbms_reset): Rename to ...
1753 (grub_usbms_bo_reset): .. this.
1754 (grub_usbms_cbi_cmd): New function.
1755 (grub_usbms_cbi_reset): Likewise.
1756 (grub_usbms_reset): Likewise.
1757 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
1758 (grub_usbms_transfer): Rename to ...
1759 (grub_usbms_transfer_bo): ... this.
1760 (grub_usbms_transfer_cbi): Likewise.
1761 (grub_usbms_transfer): Likewise.
1763 2012-02-01 Aleš Nesrsta <starous@volny.cz>
1764 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1766 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
1767 the support for the CS5536 modification thereos and few bugfixes.
1769 * grub-core/Makefile.core.def (ehci): New module.
1770 * grub-core/bus/usb/ehci.c: New file.
1771 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
1772 port and hubaddr. All users updated.
1773 Save port and hubaddr into dev structure.
1774 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
1776 * include/grub/pci.h (grub_dma_phys2virt): New function.
1777 (grub_dma_virt2phys): Likewise.
1778 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
1780 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1782 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
1783 check as some mkfs implementations omit it.
1785 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1787 * docs/grub.texi (Unicode): Mention identifier and space limitations.
1789 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1791 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
1792 Add new member volname2.
1793 (grub_jfs_label): Use volname2 if available.
1795 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1797 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
1798 over last_mounted as seen in image generated by mkfs.nilfs2.
1799 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
1801 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1803 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
1804 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
1805 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
1807 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1809 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
1812 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1814 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
1815 subvolume name (by removing a bogus and useless check).
1817 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
1819 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
1822 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1824 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
1825 (grub_scsi_read_capacity10): ... this.
1826 (grub_scsi_read_capacity16): New function.
1827 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
1829 Fix off-by-one error.
1830 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
1832 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
1833 (grub_scsi_read_capacity10): ... this.
1834 (grub_scsi_read_capacity_data): Rename to ...
1835 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
1836 (grub_scsi_read_capacity16): New struct.
1837 (grub_scsi_read_capacity16_data): Likewise.
1838 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
1839 grub_scsi_cmd_read_capacity10.
1840 New command grub_scsi_cmd_read_capacity16.
1842 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1846 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
1847 (grub_scsi_write16): Likewise.
1848 (grub_scsi_read): Use read16 when necessary.
1849 (grub_scsi_write): Likewise.
1850 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
1851 (grub_scsi_write16): Likewise.
1852 (grub_scsi_cmd_t): Add READ16 and WRITE16.
1854 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1856 SCSI write support (for usbms mainly).
1858 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
1860 (grub_scsi_write): Implement.
1861 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
1863 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1865 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
1868 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1870 * grub-core/lib/posix_wrap/string.h (memchr): New function.
1872 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1874 * po/POTFILES.in: Regenerate.
1876 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1878 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
1879 with grub_printf to avoid unnecessary fatal failure.
1881 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1883 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
1884 (INT_MAX): Likewise.
1885 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
1886 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
1887 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
1891 (strncpy): Likewise.
1893 (strncat): Likewise.
1894 (strcoll): Likewise.
1895 * include/grub/types.h (GRUB_SHRT_MAX): New define.
1896 (GRUB_INT_MAX): Likewise.
1898 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1900 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
1902 (optimize_utf8): Likewise.
1903 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
1905 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1907 * grub-core/boot/i386/pc/lnxboot.S: Use
1908 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
1909 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
1911 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
1913 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
1915 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1917 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
1918 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
1919 now to avoid double free.
1920 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
1922 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
1923 * util/grub-probe.c (escape_of_path): Always return a new copy.
1924 (print_full_name): Escape path.
1925 (probe): Don't call grub_util_devname_to_ofpath on NULL.
1926 Fix hints on abstractions.
1928 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1930 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
1931 Don't add "root" line if no compatibility hont is available.
1932 Suggested by: Seth Goldberg.
1934 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1936 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
1937 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
1938 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
1939 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
1941 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1943 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
1945 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1947 * util/grub-pe2elf.c (ehdr): Make static.
1949 (num_sections): Likewise.
1952 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1954 Eliminate ofpath limits and possible overflows.
1956 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
1957 (OF_PATH_MAX): Removed.
1958 (MAX_DISK_CAT): New const.
1959 (find_obppath): Use allocated rather than preallocated buffer.
1960 Return result. Argument of_path removed. All users updated.
1962 (xrealpath): New function.
1963 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
1964 Allocate rather than use preallocated buffer. All users updated.
1965 (__of_path_common): Use allocated rather than preallocatecd buffer.
1966 Return result. Argument of_path removed. All users updated.
1967 (vendor_is_ATA): Read only needed part form the file.
1968 (check_sas): Allocate depending on contents rather than fixed.
1969 (main) [STANDALONE]: Handle NULL result.
1971 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1973 * grub-core/normal/completion.c (iterate_dev): Close the disk.
1975 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1977 Cryptodisk write support.
1979 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
1980 (grub_cryptodisk_decrypt): Moved logic to ...
1981 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
1982 (grub_cryptodisk_write): Implement.
1983 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
1984 (grub_util_fd_write): ... this. Make global.
1985 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
1987 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1989 * include/grub/list.h (grub_list_remove): Don't crash if element is
1992 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
1994 Rename ofconsole to console.
1996 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
1997 as sysnonym to console.
1998 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
1999 * grub-core/term/ieee1275/console.c: ... this. All users updated.
2000 Rename grub_ofconsole_ to grub_console_. All users updated
2001 (grub_console_term_output): Rename "ofconsole" to "console".
2002 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
2005 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2007 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
2009 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
2010 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
2011 GRUB_DISK_DEVICE_FILE_ID.
2013 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2015 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
2016 and improve performance.
2018 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2020 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
2021 missing ieee1275/ prefix on whole disk.
2023 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2025 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
2026 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
2028 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2030 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
2032 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2034 Merge common RAID and LVM logic to an abstract diskfilter.
2035 Add LDM support using the same framework.
2037 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
2038 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
2039 (libgrubmods): Remove grub-core/disk/raid.c and
2040 grub-core/partmap/gpt.c.
2041 * grub-core/Makefile.core.def (ldm): New module.
2042 (raid): Renamed to diskfilter. All users updated.
2043 * grub-core/disk/raid.c: Moved to ...
2044 * grub-core/disk/diskfilter.c: ... here.
2045 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
2047 (find_array): Renamed to ...
2048 (find_lv): ... this. Support multi-LV. Skip nameless LVs
2049 (grub_is_array_readable): Renamed to ...
2050 (grub_is_lv_readable): ... this. Support multinode hierarchy.
2051 (insert_array): New argument id.
2052 (is_node_readable): New function.
2053 (scan_device): Rename to ...
2054 (scan_disk): .. this. Restrict to one disk.
2055 (scan_devices): New function.
2056 (grub_diskfilter_iterate): Support multi-LV.
2057 Skip invisible and nameless LVs.
2058 (grub_diskfilter_memberlist): Support multi-LV.
2059 (grub_diskfilter_read_node): New function.
2060 (grub_raid_read): Most of logic moved to ...
2061 (read_segment): ... here
2062 (read_lv): New function.
2063 (grub_diskfilter_get_vg_by_uuid): New function.
2064 (grub_diskfilter_make_raid): Likewise.
2065 * grub-core/disk/ldm.c: New file.
2066 * grub-core/disk/lvm.c (vg_list): Removed.
2067 (lv_count): Likewise.
2068 (scan_depth): Likewise.
2069 (is_lv_readable): Likewise.
2070 (grub_lvm_getvalue): Advance pointer past the number.
2072 (do_lvm_scan): Refactored into ...
2073 (grub_lvm_detect): ... this. Support raid.
2074 (grub_lvm_iterate): Removed.
2075 (grub_lvm_memberlist): Likewise.
2076 (grub_lvm_open): Likewise.
2077 (grub_lvm_close): Likewise.
2078 (read_lv): Likewise.
2079 (read_node): Likewise.
2080 (is_node_readable): Likewise.
2081 (is_lv_readable): Likewise.
2082 (grub_lvm_read): Likewise.
2083 (grub_lvm_write): Likewise.
2084 (grub_lvm_dev): Use diskfilter
2085 (GRUB_MOD_INIT): Likewise.
2086 (GRUB_MOD_FINI): Likewise.
2087 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
2089 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
2090 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2091 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
2092 grub_diskfilter_read_node.
2094 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
2095 grub_diskfilter_read_node.
2096 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
2097 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
2098 (grub_disk_dev_iterate): Move from here...
2099 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
2100 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2102 (grub_hostdisk_find_partition_start): Likewise.
2103 (grub_hostdisk_os_dev_to_grub_drive): New function.
2104 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
2105 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
2106 * util/getroot.c (make_device_name): ... here.
2107 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2109 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
2110 * grub-core/kern/emu/hostdisk.c
2111 (convert_system_partition_to_system_disk): Move to ...
2112 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
2113 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
2114 * util/getroot.c (device_is_wholedisk): ... here.
2115 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
2116 * util/getroot.c (find_system_device): ... here.
2117 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
2119 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
2120 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
2122 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
2124 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
2126 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
2127 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
2128 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
2130 * include/grub/raid.h: Renamed to ...
2131 * include/grub/diskfilter.h: ... this.
2132 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
2133 (GRUB_RAID_LAYOUT_*): Make into array.
2134 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
2135 (grub_diskfilter_vg): New struct.
2136 (grub_diskfilter_pv_id): Likewise.
2137 (grub_raid_member): Removed.
2138 (grub_raid_array): Likewise.
2139 (grub_diskfilter_pv): New struct.
2140 (grub_diskfilter_lv): Likewise.
2141 (grub_diskfilter_segment): Likewise.
2142 (grub_diskfilter_node): Likewise.
2143 (grub_diskfilter_get_vg_by_uuid): New proto.
2144 (grub_raid_register): Inline.
2145 (grub_diskfilter_unregister): Likewise.
2146 (grub_diskfilter_make_raid): New proto.
2147 (grub_diskfilter_vg_register): Likewise.
2148 (grub_diskfilter_read_node): Likewise.
2149 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
2150 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
2151 (grub_util_is_ldm): Likewise.
2152 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
2153 (grub_hostdisk_find_partition_start): Likewise.
2154 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
2155 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
2157 (grub_gpt_partition_map_iterate): New proto.
2158 * include/grub/lvm.h (grub_lvm_vg): Removed.
2159 (grub_lvm_pv): Likewise.
2160 (grub_lvm_lv): Likewise.
2161 (grub_lvm_segment): Likewise.
2162 (grub_lvm_node): Likewise.
2163 * util/getroot.c [...]
2164 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
2165 (probe_abstraction): Likewise.
2166 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
2167 (main): Remove dead logic.
2169 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
2171 Simplify root device discover and don't fail when trying to open
2174 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
2176 (get_diskname_from_path): Likewise.
2177 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
2180 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2182 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
2184 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2186 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
2189 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2191 * util/grub-install.in: Add missing \.
2192 Reported by: gentoofan
2194 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2196 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
2197 (direct_read): Use correct compressed size.
2198 (grub_squash_read_data): Likewise.
2200 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2202 * docs/grub.texi (Platform limitations): New section.
2203 (Platform-specific operations): Likewise.
2204 * docs/grub-dev.texi (Porting): Likewise.
2206 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2208 IEEE1275 disk write support.
2210 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
2212 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
2213 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
2214 and seek loginc to ...
2215 (grub_ofdisk_prepare): ... here.
2216 (grub_ofdisk_write): Implement.
2218 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2220 ARC disk write support.
2222 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
2223 (reopen): New argument writable. All users updated.
2224 Handle required access mode.
2225 (grub_arcdisk_write): Implement.
2226 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
2227 (grub_arc_firmware_vector): Make buffer to write a const buffer.
2229 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2231 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
2232 (read_sblock): Don't attempt to read superblocks outside the disk size.
2234 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2236 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
2237 first superblock to find the second one when possible.
2239 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
2241 * util/grub-install.in: Fix an ARC bug.
2242 Print a warning if no platform-specific setup is available.
2244 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2246 Use static allocation rather than scratch pointer in reed_solomon.
2247 It decreases its size significantly and avoids a variable in .text.
2249 * grub-core/lib/reed_solomon.c (scratch): Removed.
2250 (chosenstat): New const or static array.
2256 (errvals): Likewise.
2258 (pol_evaluate): Replace x with log_x argument. All users updated.
2259 (syndroms): Removed.
2260 (gauss_solve): Use statically allocated arrays.
2261 (rs_recover): Likewise.
2262 Calculate syndroms directly.
2263 (decode_block): Use statically allocated arrays.
2264 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
2265 (main) [TEST]: Allow -DTEST -DSTANDALONE.
2267 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2269 Eliminate fixed limit on reed solomon decoder length.
2271 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
2272 rather than hardcoding the address.
2273 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
2274 no_reed_solomon_length.
2275 Move gate_a20 to no-reed-solomon part.
2276 Don't force a particular size of no reed-solomon part.
2277 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
2279 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
2280 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
2282 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2284 * grub-core/commands/wildcard.c (match_files): Handle filenames
2285 without explicit device.
2286 (wildcard_expand): Don't add explicit device if not already present.
2287 * tests/grub_script_echo1.in: Add a new expansion test.
2289 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2291 Replace single-linked with double-linked lists. It results in more
2292 compact and more efficient code.
2294 * grub-core/kern/list.c (grub_list_push): Moved from here ...
2295 * include/grub/list.h (grub_list_push): ... to here. Set prev.
2296 (grub_list_remove): Moved from here ...
2297 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
2298 (grub_prio_list_insert): Set prev.
2299 * include/grub/list.h (grub_list): Add prev. All users updated.
2301 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2303 Handle newer autotools. Add some missing quotes while on it.
2305 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
2306 (pkglib_DATA): Move grub-mkconfig_lib from here ...
2307 (pkgdata_DATA): ... here.
2308 * Makefile.util.def (update-grub_lib): Removed.
2309 * conf/Makefile.common (pkglib_DATA): Removed.
2310 (pkglib_SCRIPTS): Likewise.
2311 (pkgdata_DATA): New variable.
2312 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
2315 Remove unused variable while on it.
2316 * tests/util/grub-shell.in: Likewise.
2317 * util/grub-install.in: Likewise.
2318 * util/grub-mkconfig.in: Likewise.
2319 * util/grub-mknetdir.in: Likewise.
2320 * util/grub-mkrescue.in: Likewise.
2321 * util/grub-mkstandalone.in: Likewise.
2322 * util/grub.d/00_header.in: Likewise.
2323 * util/grub.d/10_hurd.in: Likewise.
2324 * util/grub.d/10_illumos.in: Likewise.
2325 * util/grub.d/10_kfreebsd.in: Likewise.
2326 * util/grub.d/10_linux.in: Likewise.
2327 * util/grub.d/10_netbsd.in: Likewise.
2328 * util/grub.d/10_windows.in: Likewise.
2329 * util/grub.d/20_linux_xen.in: Likewise.
2330 * util/grub.d/30_os-prober.in: Likewise.
2331 * util/update-grub_lib.in: Removed.
2333 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
2335 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
2336 a workaround for intel problem.
2338 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
2339 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2340 2012-01-23 pfsmorigo
2342 * util/grub-install.in: Support dd'in into PreP partition.
2343 * util/grub-probe.c (probe): Support discovering partition type.
2344 (main): Support -t msdos_parttype.
2346 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2348 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
2349 infinite recursion using counter.
2350 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
2351 init to skip it if the magic check fails.
2352 (dec_stream_header): Init s->crc32.
2354 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2355 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
2356 2012-01-22 Richard Laager <rlaager@wiktel.com>
2358 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
2360 (find_bestub): Determine correct size.
2361 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
2362 (scan_disk): Align the size down.
2363 Call check pool before find_bestub to have ashift.
2365 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2367 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
2368 dprintf in no-malloc zone.
2370 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
2372 * configure.ac: Add back in test for limits.h.
2374 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2376 Support 4K-sector NTFS.
2378 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
2379 (grub_ntfs_data): Remove blocksize.
2380 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
2381 Remove data argument. All users updated.
2383 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2385 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
2386 being in .text to avoid dprel references.
2387 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
2388 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
2389 (grub_arch_highmemsize): Likewise.
2390 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
2391 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
2392 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
2394 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2396 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
2398 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
2399 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
2401 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2403 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
2405 (grub_set_datetime_cmos): Likewise.
2407 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2409 Make XZ compression parameters dependent on target and not host CPU.
2411 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
2412 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
2414 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2416 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
2417 set but not used variable.
2419 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2421 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
2422 created when no uuid support is compiled into mkfs.reiser.
2424 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2426 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
2427 (utf8_to_macroman): Do the opposite.
2428 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
2430 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2432 * configure.ac: Refise build qemu_mips w/o unifont.
2434 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2436 Eliminate grub_min/grub_max prone to overflow usage.
2438 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
2439 (poll_nonroot_hub): Likewise.
2440 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
2441 (grub_affs_label): Likewise.
2442 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
2443 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
2444 (grub_hfs_label): Likewise.
2445 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
2446 * grub-core/fs/zfs/zfs.c (MIN): Remove.
2447 (zap_leaf_array_equal): Use grub_size. Remove MIN.
2448 (zap_leaf_array_get): Likewise.
2449 (dnode_get_path): Likewise.
2450 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
2451 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
2452 * grub-core/script/execute.c (grub_script_break): Likewise.
2453 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
2455 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
2456 * include/grub/misc.h (grub_min): Removed.
2457 (grub_max): Likewise.
2459 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2461 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
2464 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2466 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
2468 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2470 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
2472 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2474 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
2475 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
2477 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2479 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
2480 rather than a hack for grub_strncasemap.
2482 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2484 Support multiple initrds
2485 Note: part of this was accidently committed in r3739.
2487 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
2489 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
2490 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
2491 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2492 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2493 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2495 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2497 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
2498 disks with unknown size.
2499 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
2501 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2503 Remove defines pertaining to arbitrary limits not affecting GRUB
2506 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
2507 (EXT2_MAX_SYMLINKCNT): Likewise.
2508 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
2509 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
2510 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
2511 (GRUB_PXE_MAX_BLKSIZE): Likewise.
2512 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
2513 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
2514 (DN_MAX_OBJECT_SHIFT): Likewise.
2515 (DN_MAX_OFFSET_SHIFT): Likewise.
2516 (DN_MAX_OBJECT): Likewise.
2517 (DNODES_PER_LEVEL_SHIFT): Likewise.
2518 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
2519 (SPA_MAXBLOCKSIZE): Likewise.
2520 (SPA_BLOCKSIZES): Likewise.
2521 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
2522 (MZAP_MAX_BLKSZ): Likewise.
2524 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2526 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
2527 handle NULL appropriately.
2530 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2534 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
2536 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
2537 * configure.ac: Fix efiemu check.
2539 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2541 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
2543 Reported by: adamwill
2545 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
2547 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
2549 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2551 Fix handling of wide characters in gfxterm.
2553 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
2554 (clear_char): Likewise.
2555 (paint_char): Skip code == NULL chars.
2556 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
2558 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2560 * grub-core/normal/charset.c: Move comment to right place.
2562 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2564 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
2565 (GRUB_AFFS_FLAG_FFS): Put back where it was.
2566 (grub_affs_mount): Revert the correct version checking.
2568 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2570 * docs/grub.texi (Unicode): Mention several other unsupported features.
2572 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2574 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
2575 case statements as compile-time one.
2576 (direct_read): Prevent spurious warnings.
2577 (grub_squash_read_data): Likewise.
2579 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2581 Various squash4 fixes and LZO and XZ support.
2583 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
2584 Add xzembed source files.
2585 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
2586 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
2587 (grub_squash_inode): New subtype long_dir.
2588 (SQUASH_TYPE_LONG_DIR): New inode type.
2589 (COMPRESSION): New enum.
2590 (XZBUFSIZ): New const.
2591 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
2592 (read_chunk): Use data->decompress.
2593 (zlib_decompress): New function.
2594 (lzo_decompress): Likewise.
2595 (xz_decompress): Likewise.
2596 (squash_mount): Set new data fields.
2597 (grub_squash_iterate_dir): Handle long dir.
2598 (squash_unmount): Free xzdec and xzbuf.
2599 (grub_squash_open): Check ino type.
2600 (direct_read): Stylistic fixes. Use data->decompress.
2601 (grub_squash_read_data): Likewise.
2602 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
2603 (get_byte): Likewise.
2604 (grub_zlib_disk_read): Removed.
2605 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
2606 (GRUB_POSIX_BOOL_DEFINED): New define.
2607 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
2608 * grub-core/lib/xzembed/xz.h: Addmissing includes.
2609 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
2610 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
2612 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2614 Don't override more informative errors.
2616 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
2617 * grub-core/font/font.c (open_section): Likewise.
2618 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
2619 filename. Don't override errors.
2620 (grub_cmd_openbsd_ramdisk): Don't override errors.
2621 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
2622 (grub_cmd_initrd): Likewise.
2623 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2624 (grub_cmd_initrd): Likewise.
2625 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
2626 (grub_cmd_linux): Likewise.
2627 (grub_cmd_initrd): Likewise.
2628 (grub_cmd_payload): Likewise.
2629 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2630 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
2631 (grub_cmd_module): Likewise.
2632 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2633 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2634 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
2635 (grub_cmd_xnu_mkext): Likewise.
2636 (grub_cmd_xnu_ramdisk): Likewise.
2637 (grub_xnu_check_os_bundle_required): Likewise.
2638 (grub_xnu_load_kext_from_dir): Likewise.
2639 (grub_cmd_xnu_kextdir): Likewise.
2640 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
2642 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2644 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
2645 as 1024 in block size field. Found on one of my test images.
2646 Small optimisation while on it.
2648 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2650 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
2651 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
2652 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
2653 performance fixes while on it.
2654 (grub_sfs_close): Fix memory leak while on it.
2655 (grub_sfs_label): Convert Latin1 to UTF-8.
2657 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2659 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
2660 space to avoid overflows.
2661 (grub_hfs_label): Convert from macroman to UTF-8.
2663 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2665 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
2667 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2669 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
2671 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2673 * unicode: Import Unicode 6.0 data.
2675 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2677 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
2680 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2682 Avoid cutting in the middle of UTF-8 character.
2684 * include/grub/charset.h (grub_getend): New function.
2685 * grub-core/script/function.c (grub_script_function_find): Use
2687 * grub-core/normal/completion.c (add_completion): Likewise.
2689 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2691 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
2692 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
2693 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
2694 (GRUB_UNICODE_TAG_END): Likewise.
2695 (GRUB_UNICODE_LAST_VALID): Likewise.
2697 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2699 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
2700 len and make it smaller. All users updated.
2701 * util/import_unicode.py: Put length and not end character.
2704 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2706 Make better Unicode-compliant and unify some UTF-8 code pathes.
2708 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
2710 (grub_is_valid_utf8): Use grub_utf8_process.
2711 Check resulting code range.
2712 (grub_utf8_to_ucs4): Use grub_utf8_process.
2713 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
2716 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2718 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
2720 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2722 * docs/grub.texi (Filesystems): Mention AFS.
2724 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2726 * docs/grub.texi (Filesystems): Clarify restrictions.
2727 (Regexp): Mention non-Unicode regexp behaviour.
2728 (Other): Mention non-Unicode matching behaviour.
2730 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2732 Make HFS implementation use MacRoman.
2734 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
2735 (macroman): New const array.
2736 (macroman_to_utf8): New function.
2737 (utf8_to_macroman): Likewise.
2738 (grub_hfs_find_dir): Use utf8_to_macroman.
2739 (grub_hfs_dir): Use macroman_to_utf8.
2740 Set case_insensitive.
2742 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2744 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
2746 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2748 Integrate hints into autogeneration scripts.
2750 * docs/grub.texi (Filesystems): Add a hostdisk example.
2751 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
2752 (grub-probe): Add ofpath.
2753 * gentpl.py: Remove group nosparc64.
2754 * grub-core/commands/search.c (cache_entry): New struct.
2756 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
2757 * grub-core/commands/search_wrap.c (options): Add platform-specific
2759 (grub_cmd_search): Handle platform-specific hints.
2760 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
2761 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
2762 (grub_util_biosdisk_data): Likewise.
2763 (grub_util_biosdisk_open): Set device_map.
2764 (read_device_map): Handle "" as indication of no map.
2766 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
2767 (grub_util_biosdisk_get_compatibility_hint): New function.
2768 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
2769 * include/grub/emu/hostdisk.h
2770 (grub_util_biosdisk_get_compatibility_hint): New proto.
2771 * util/grub-install.in: Don't call grub-mkdevicemap.
2772 Add platform-specific hint to load.cfg.
2773 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
2774 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
2775 hints. Set root preliminary to compatibility hint, not to OS name.
2776 * util/grub-probe.c (PRINT_*): Add hints.
2777 (print): Make static.
2778 (escape_of_path): New function.
2779 (guess_bios_drive): Likewise.
2780 (guess_efi_drive): Likewise.
2781 (guess_baremetal_drive): Likewise.
2782 (print_full_name): Likewise.
2783 (probe): Handle hints.
2785 * util/ieee1275/devicemap.c: Removed.
2786 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
2788 (grub_util_devname_to_ofpath): Return NULL on failure.
2790 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
2792 * util/getroot.c (grub_util_pull_device): Fix memory leak.
2794 * po/POTFILES.in: Regenerated.
2796 Allow purely long options
2798 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
2799 (SHORT_ARG_USAGE): Likewise.
2800 (grub_arg_show_help): Compare opt with help_options.
2801 (parse_option): Receive opt as argument. If makes big simplificatons.
2804 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2806 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
2807 Restructure to avoid warning.
2809 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2811 * util/grub-install.in: Account for possible escaped comma in device
2814 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2816 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
2819 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2821 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
2822 allocation and zero-setting.
2823 (grub_ieee1275_get_devname): Check that alias is complete.
2825 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2827 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
2830 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
2832 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
2834 (grub_ofdisk_open): Check and discard ieee1275 prefix.
2835 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2836 Add ieee1275 prefix.
2838 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2840 * docs/grub.texi (Filesystems): Update.
2842 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2844 Support odc, newc and bigendian cpio formats.
2846 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
2847 * grub-core/Makefile.core.def (newc): New module.
2849 (cpio_be): Likewise.
2850 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
2853 (head) [MODE_ODC]: Adapt for the format.
2854 (head) [MODE_NEWC]: Likewise.
2855 (head) [!MODE_*]: Write fields of interest as arrays.
2856 (MAGIC_USTAR): Removed.
2857 (read_number) [MODE_NEWC]: Change to hex.
2858 (read_number) [!MODE_*]: Parse binary arrays.
2859 (grub_cpio_find_file): Factor out the code for better structure and
2860 always use read_number.
2861 (grub_cpio_mount): Use MAGIC and MAGIC2.
2862 (grub_cpio_dir): Exit on first hook non-0 return.
2863 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
2864 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
2865 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
2866 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
2867 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
2868 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
2869 * grub-core/fs/newc.c: New file.
2870 * grub-core/fs/odc.c: Likewise.
2871 * grub-core/fs/cpio_be.c: Likewise.
2873 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2875 Fix handling of tar numbers occupying the whole field.
2877 * grub-core/fs/cpio.c (read_number): New function.
2878 (grub_cpio_find_file): Use read_number instead of strtoull.
2880 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2882 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
2883 occupying the whole field size.
2885 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
2887 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
2889 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2891 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
2893 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
2895 * grub-core/Makefile.core.def (lzma_decompress): Add missing
2898 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2900 * util/getroot.c (ESCAPED_PATH_MAX): New define.
2901 (mountinfo_entry): Increase the field size to take escaping into
2903 (find_root_device_from_libzfs): Add one byte to size of strings for
2906 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2908 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
2910 * util/grub-setup.c (setup): Likewise.
2912 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
2914 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
2917 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2919 * docs/grub.texi (Internationalisation): New section.
2921 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
2923 * docs/grub.texi (Loopback booting): New section.
2925 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
2927 * util/grub-mkstandalone.in: Fix minor typo errors.
2929 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
2931 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
2933 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
2934 net/icmp.c and net/icmp6.c.
2936 (priority_queue): Likewise.
2937 * grub-core/io/bufio.c: Rewritten.
2938 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
2939 TYPE_WITH_CONFIGFILE_OPTION.
2940 (legacy_commands): Add bootp and dhcp.
2941 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
2942 (grub_legacy_parse): Likewise.
2943 * grub-core/lib/priority_queue.c: New file.
2944 * grub-core/net/arp.c: Add missing license header.
2945 (arp_find_entry): Removed.
2946 (arp_find_entry): Likewise.
2947 (grub_net_arp_resolve): Rename to ...
2948 (grub_net_arp_send_request): ...this.
2949 (grub_net_arp_receive): New card argument.
2950 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
2951 Set router and DNS server.
2952 (grub_net_configure_by_dhcp_ack): Handle routing information.
2953 (grub_cmd_bootp): Set checksum.
2954 (grub_bootp_init): Remove net_dhcp.
2955 * grub-core/net/dns.c: New file.
2956 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
2958 (get_card_packet): Handle allocation.
2959 (grub_efinet_findcards): Set mtu.
2960 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
2961 (get_card_packet): Handle allocation.
2963 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
2964 (GRUB_MOD_INIT): Set mtu.
2965 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
2967 (get_card_packet): Handle allocation.
2968 (grub_ofnet_findcards): Set mtu.
2969 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
2971 (grub_net_recv_ethernet_packet): Handle IPv6.
2972 * grub-core/net/http.c: New file.
2973 * grub-core/net/icmp.c: Likewise.
2974 * grub-core/net/icmp6.c: Likewise.
2975 * grub-core/net/ip.c (ip6addr): New type.
2977 (reassemble): Likewise.
2978 (cmp): New function.
2979 (reassembles): New variable.
2980 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
2982 (send_fragmented): New function.
2983 (grub_net_send_ip_packet): Rename to ...
2984 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
2986 (grub_net_recv_ip_packets): Rename to ...
2987 (handle_dgram): ... this. Check checksum. Handle non-UDP.
2988 (free_rsm): New function.
2989 (free_old_fragments): Likewise.
2990 (grub_net_recv_ip4_packets): New function.
2991 (grub_net_send_ip6_packet): Likewise.
2992 (grub_net_send_ip_packet): Likewise.
2993 (grub_net_recv_ip6_packets): Likewise.
2994 (grub_net_recv_ip_packets): Likewise.
2995 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
2996 (LINK_LAYER_CACHE_SIZE): New const.
2997 (link_layer_find_entry): New function.
2998 (grub_net_link_layer_add_address): Likewise.
2999 (grub_net_link_layer_resolve_check): Likewise.
3000 (grub_net_link_layer_resolve): Likewise.
3001 (grub_net_ipv6_get_slaac): Likewise.
3002 (grub_net_ipv6_get_link_local): Likewise.
3003 (grub_cmd_ipv6_autoconf): Likewise.
3004 (parse_ip): Handle one number representation.
3005 (parse_ip6): New functoion.
3006 (match_net): Handle IPv6.
3007 (grub_net_resolve_address): Handle IPv6 and DNS.
3008 (grub_net_resolve_net_address): Handle IPv6.
3009 (route_cmp): New function.
3010 (grub_net_route_address): Find best route.
3011 (grub_net_addr_to_str): Handle IPv6.
3012 (grub_net_addr_cmp): New function.
3013 (grub_net_add_addr): Register local route.
3014 (print_net_address): Handle net address.
3015 (grub_net_poll_cards): Retransmit TCP.
3016 (grub_net_poll_cards_idle_real): Likewise.
3017 (have_ahead): New function.
3018 (grub_net_seek_real): Use underlying seek.
3019 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
3020 * grub-core/net/tcp.c: New file.
3021 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
3022 (cmp): New function.
3024 (tftp_receive): Handle unordered input.
3025 (destroy_pq): New function.
3026 (tftp_close): Close pq.
3027 * grub-core/net/udp.c: Put missing license header.
3028 (grub_net_udp_socket): New function.
3029 (udp_socket_register): Likewise.
3030 (grub_net_udp_close): Likewise.
3031 (grub_net_recv_udp_packet): Check checksum.
3032 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
3033 * include/grub/misc.h (grub_memchr): New function.
3034 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
3035 (grub_net_card_driver): Return buf in recv.
3036 (grub_net_slaac_mac_list): New struct.
3037 (grub_network_level_protocol_id): Add ipv6.
3038 (grub_net_network_level_addr): Likewise.
3039 (grub_net_network_level_net_addr): Likewise.
3040 (grub_net_app_protocol): Add seek.
3041 (grub_net_socket): Removed.
3042 (grub_net_sockets): Likewise.
3043 (grub_net_socket_register): Likewise.
3044 (grub_net_socket_unregister): Likewise.
3045 (FOR_NET_SOCKETS): Likewise.
3046 (grub_net_add_addr): Add const.
3047 (GRUB_NET_BOOTP_*): New enum.
3048 (grub_net_addr_cmp): New proto.
3049 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
3050 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
3051 (grub_net_hwaddr_to_str): NEw proto.
3052 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
3053 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
3054 (grub_dns_init): New proto.
3055 (grub_dns_fini): Likewise.
3056 (grub_net_tcp_retransmit): Likewise.
3057 (grub_net_link_layer_add_address): Likewise.
3058 (grub_net_link_layer_resolve_check): Likewise.
3059 (grub_net_link_layer_resolve): Likewise.
3060 (grub_net_dns_lookup): Likewise.
3061 (grub_net_add_dns_server): Likewise.
3062 (grub_net_remove_dns_server): Likewise.
3063 (GRUB_NET_TRIES): New const.
3064 (GRUB_NET_INTERVAL): Likewise.
3065 * include/grub/net/arp.h: Mostly rewritten.
3066 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
3067 * include/grub/net/ip.h: Mostly rewritten.
3068 * include/grub/net/netbuff.h: Indent.
3069 * include/grub/net/tcp.h: New file.
3070 * include/grub/net/udp.h: Mostly rewritten.
3071 * include/grub/priority_queue.h: New file.
3072 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
3073 (grub_swap_bytes64_compile_time): Likewise.
3074 (grub_cpu_to_be16_compile_time): Likewise.
3075 (grub_cpu_to_be32_compile_time): Likewise.
3076 (grub_cpu_to_be64_compile_time): Likewise.
3077 (grub_be_to_cpu64_compile_time): Likewise.
3079 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
3081 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
3082 UINT_TO_PTR with cast.
3084 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3086 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
3089 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3091 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
3094 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3096 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
3099 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3101 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
3102 Add missing const attribute.
3103 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
3105 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
3108 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3110 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
3112 (serpent_setkey): Likewise.
3113 (serpent_encrypt_internal): Likewise.
3114 (serpent_decrypt_internal): Likewise.
3115 (serpent_encrypt): Don't put an alignment-increasing cast.
3116 (serpent_decrypt): Likewise.
3117 (serpent_test): Likewise.
3119 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3121 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
3123 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3125 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
3127 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
3129 (PTR_TO_UINT64): Likewise.
3130 (PTR_TO_UINT32): Likewise.
3132 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3134 * util/grub-mkimage.c (generate_image): Decrease the higher limit
3136 * util/grub-setup.c (setup): Don't add redundancy past the higher load
3139 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3141 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
3142 text_width > available width a bit more gracefully.
3144 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3146 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
3147 current address calculation.
3149 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3151 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
3153 (encode_block): Likewise.
3155 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3157 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
3160 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3162 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
3163 non-RS part to avoid RS messing with GDT.
3164 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
3165 Increase to suit in realmode routines.
3167 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
3169 * grub-core/kern/i386/realmode.S: Increase alignment.
3170 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
3172 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3174 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
3176 (syndroms): Compute 0 syndrom.
3177 (rs_recover): Use 0 syndrom.
3179 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3181 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
3183 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3185 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
3188 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3190 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
3192 (get_top_pad): Likewise.
3193 (get_right_pad): Likewise.
3194 (get_bottom_pad): Likewise.
3196 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3198 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
3200 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3202 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
3203 attribute as the structure isn't guaranteed to be properly aligned.
3204 (grub_efi_pci_device_path): Likewise.
3205 (grub_efi_pccard_device_path): Likewise.
3206 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
3207 specify the size of `memory_type'.
3208 (grub_efi_vendor_device_path): Likewise.
3209 (grub_efi_controller_device_path): Likewise.
3210 (grub_efi_acpi_device_path): Likewise.
3211 (grub_efi_expanded_acpi_device_path): Likewise.
3212 (grub_efi_atapi_device_path): Likewise.
3213 (grub_efi_scsi_device_path): Likewise.
3214 (grub_efi_fibre_channel_device_path): Likewise.
3215 (grub_efi_1394_device_path): Likewise.
3216 (grub_efi_usb_device_path): Likewise.
3217 (grub_efi_usb_class_device_path): Likewise.
3218 (grub_efi_i2o_device_path): Likewise.
3219 (grub_efi_mac_address_device_path): Likewise.
3220 (grub_efi_ipv4_device_path): Likewise.
3221 (grub_efi_ipv6_device_path): Likewise.
3222 (grub_efi_infiniband_device_path): Likewise.
3223 (grub_efi_uart_device_path): Likewise.
3224 (grub_efi_vendor_messaging_device_path): Likewise.
3225 (grub_efi_hard_drive_device_path): Likewise.
3226 (grub_efi_cdrom_device_path): Likewise.
3227 (grub_efi_vendor_media_device_path): Likewise.
3228 (grub_efi_file_path_device_path): Likewise.
3229 (grub_efi_protocol_device_path): Likewise.
3230 (grub_efi_piwg_device_path): Likewise.
3231 (grub_efi_bios_device_path): Likewise.
3233 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3235 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
3236 (grub_ucs4_to_utf8_alloc): Likewise.
3237 (grub_ucs4_to_utf8): Likewise.
3238 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
3239 (grub_ucs4_to_utf8_alloc): Likewise.
3241 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
3243 AFFS never uses unicode.
3245 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
3246 (grub_latin1_to_utf8): New inline function.
3247 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
3249 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3251 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
3254 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3256 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
3257 (grub_squash_dirent_header): Likewise.
3258 (read_chunk): Don't double swap.
3259 (grub_squash_iterate_dir): Fix swap sizes.
3261 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3263 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
3265 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3267 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
3268 (grub_hfs_iterate_dir): Likewise.
3270 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3272 Fix video on platforms where unaligned access is forbidden.
3273 Make several optimisations while on it.
3275 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
3276 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3277 (grub_video_fbblit_replace_32bit_1bit): Likewise.
3278 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
3280 (grub_video_fbblit_replace_16bit_1bit):
3281 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3282 (grub_video_fbblit_replace_8bit_1bit): Likewise.
3283 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
3284 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
3285 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
3286 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
3287 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
3288 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
3289 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
3290 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
3291 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
3292 (grub_video_fbblit_replace_index_RGB888): Likewise.
3293 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
3294 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
3295 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
3296 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
3297 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
3298 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
3299 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
3301 (grub_video_fbblit_blend_XXX565_1bit):
3302 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
3303 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
3304 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
3306 * grub-core/video/fb/video_fb.c (common_blitter)
3307 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
3308 (grub_video_fb_create_render_target_from_pointer)
3309 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
3310 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
3311 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
3313 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
3315 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3317 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
3318 HH22 and HM10 relocations.
3320 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3322 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
3324 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3326 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
3327 allocation succeeded.
3329 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3331 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
3332 argument a u8 pointer. All users updated.
3333 Handle unaligned buffers.
3335 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3337 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
3338 add_part to workaround compiler bug.
3340 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3342 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
3344 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3346 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
3347 Reserve alignment invariants.
3348 (grub_multiboot_load): Likewise.
3349 (retrieve_video_parameters): Likewise.
3350 (grub_multiboot_make_mbi): Likewise.
3352 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3354 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
3357 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3359 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
3360 (grub_pata_pio_write): Likewise.
3362 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3364 Add noreturn attributes and remove unreachable code.
3366 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
3368 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
3369 code. Mark as noreturn.
3370 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
3371 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
3372 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
3374 * grub-core/kern/main.c (grub_main): Mark as noreturn.
3375 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
3376 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
3377 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
3378 * include/grub/kernel.h (grub_main): Mark as noreturn.
3379 * include/grub/reader.h (grub_rescue_run): Likewise.
3381 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3383 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
3384 redundant declaration.
3386 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3388 * include/grub/net.h (grub_net_network_level_interfaces): Remove
3389 redundant declaration.
3390 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
3392 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3394 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
3395 to ensure alignment.
3396 (grub_hdparm_print_identify): Make argument uint16 * to ensure
3397 alignment. Ensure tmp alignment.
3398 (grub_cmd_hdparm): Ensure buf alignment.
3399 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
3400 to ensure alignment.
3401 (grub_ata_dumpinfo): Ensure text alignment.
3402 (grub_atapi_identify): Preserve alignment invariant.
3403 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
3405 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3407 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
3408 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
3409 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
3410 * include/grub/misc.h (grub_reboot)
3411 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
3412 (grub_halt) [__mips__]: Likewise.
3414 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3416 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
3417 Remove redundant declaration.
3418 (grub_mmap_get_post64): Likewise.
3419 (grub_mmap_get_upper): Likewise.
3420 (grub_mmap_get_lower): Likewise.
3422 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3424 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
3425 uint32_t * to ensure alignment.
3426 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
3428 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3430 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
3431 uint16_t * to ensure alignment.
3432 (sun_pc_partition_map_iterate): Make `block' a union to ensure
3435 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3437 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
3438 to ensure alignment.
3439 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
3441 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3443 * grub-core/fs/ntfs.c (u16at): Make into inline function.
3444 Handle unaligned pointers.
3447 (fixup): Use byte access instead of v16at.
3448 (find_attr): Fix imporper usage of v32at.
3449 (read_data): Likewise.
3450 (list_file): Handle byte-swapping and unaligned strings.
3451 (grub_ntfs_label): Likewise.
3453 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3455 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
3456 as it's not necessarily aligned.
3458 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3460 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
3461 redundant declaration.
3462 (grub_serial_init): Likewise.
3463 (grub_terminfo_init): Likewise.
3465 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3467 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
3469 (ZAP_HASH_IDX): Likewise.
3470 (ZAP_LEAF_HASH_SHIFT): Likewise.
3471 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
3472 (LEAF_HASH): Likewise.
3473 (ZAP_LEAF_NUMCHUNKS): Likewise.
3474 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
3475 alignment invariants. Return pointer. All users updated.
3476 (ZAP_LEAF_ENTRY): Make into inline function.
3479 (xor_out): Use grub_crypto_xor.
3480 (dnode_get_path): Use grub_get_unaligned.
3481 (nvlist_find_value): Likewise.
3482 (grub_zfs_nvlist_lookup_uint64): Likewise.
3483 (grub_zfs_nvlist_lookup_string): Likewise.
3484 (get_nvlist_size): Likewise.
3485 (grub_zfs_open): Likewise.
3486 (fill_fs_info): Likewise.
3487 (grub_zfs_dir): Likewise.
3488 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
3489 alignment invariants.
3490 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
3491 necessarily aligned.
3493 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3495 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
3497 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3499 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
3500 arithmetic to conserve alignment invariants.
3502 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3504 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
3505 redundant declaration.
3506 (grub_efiemu_mm_obtain_request): Likewise.
3507 (grub_efiemu_prepare): Likewise.
3509 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3511 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
3514 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3516 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
3517 case of aunaligned recptr.
3518 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
3520 (grub_hfsplus_btree_search): Handle unaligned index.
3522 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3524 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
3525 to get freetag and skip.
3527 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3529 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
3531 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
3532 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
3534 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3536 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
3537 name for checksum and fix allocation algorithm.
3539 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3541 * include/grub/types.h (grub_properly_aligned_t): New type.
3542 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
3543 (grub_get_unaligned16): Add explicit casts.
3544 (grub_get_unaligned32): Likewise.
3545 (grub_get_unaligned64): Likewise.
3546 (grub_set_unaligned16): New function.
3547 (grub_set_unaligned32): Likewise.
3549 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3551 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
3553 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3555 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
3556 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
3557 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
3559 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3561 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
3564 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3566 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
3567 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
3569 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3571 Unify and improve RAID and crypto xor.
3573 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
3574 changed to grub_crypto_xor
3575 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
3576 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
3577 Use bigger types when possible.
3579 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3581 * grub-core/disk/raid.c (scan_devices): Fix condition.
3583 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3585 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
3586 Make name a const ptr.
3588 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3590 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
3591 first argument a const pointer.
3592 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
3593 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
3595 (grub_children_iterate): Likewise.
3596 (grub_machine_mmap_iterate): Remove redundant declaration.
3598 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3600 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
3601 (grub_cmd_acpi) [!x86]: Disable EBDA.
3603 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3605 Enable UTF8 in gnulib regexp.
3607 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
3608 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
3609 (isupper): Use grub_isupper.
3610 (isascii): New inline function.
3611 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
3612 * grub-core/lib/posix_wrap/wctype.h: Likewise.
3613 * grub-core/normal/charset.c (grub_utf8_process): New function.
3614 (grub_utf8_to_utf16): Use grub_utf8_process.
3615 (grub_encode_utf8_character): New function.
3616 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
3617 * include/grub/charset.h (grub_utf8_process): New declaration.
3618 (grub_encode_utf8_character): Likewise.
3619 * include/grub/misc.h (grub_islower): New inline function.
3620 (grub_isupper): Likewise.
3621 (grub_strchrsub): Moved down to fix the definitions.
3623 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3625 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
3628 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
3630 * include/grub/loader.h (grub_loader_register_preboot_hook):
3631 Use struct preboot * and not void * for handle. All users updated.
3632 (grub_loader_unregister_preboot_hook): Likewise.
3634 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3636 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
3637 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
3638 UTF-16-BE. All users updated.
3639 (grub_hfsplus_cmp_catkey): Fix unicode handling.
3640 (grub_hfsplus_iterate_dir): Likewise.
3641 (grub_hfsplus_label): Likewise.
3643 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
3645 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
3647 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
3649 Add missing const qualifiers.
3651 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
3652 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
3653 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
3654 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
3655 (grub_lvm_check_flag): Likewise.
3656 * grub-core/efiemu/i386/coredetect.c
3657 (grub_efiemu_get_default_core_name): Likewise
3658 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
3659 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
3660 * grub-core/fs/ntfs.c (fixup): Likewise.
3661 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
3662 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
3663 (fzap_lookup): Likewise.
3664 (zap_lookup): Likewise.
3665 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
3666 * grub-core/lib/legacy_parse.c (check_option): Likewise.
3667 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
3668 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
3669 (grub_freebsd_add_meta_module): Likewise.
3670 (grub_cmd_freebsd_module): Likewise.
3671 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
3672 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
3673 (grub_xnu_writetree_get_size): Likewise.
3674 (grub_xnu_writetree_toheap_real): Likewise.
3675 (grub_xnu_find_key): Likewise.
3676 (grub_xnu_create_key): Likewise.
3677 (grub_xnu_create_value): Likewise.
3678 (grub_xnu_register_memory): Likewise.
3679 (grub_xnu_check_os_bundle_required): Likewise.
3680 (grub_xnu_scan_dir_for_kexts): Likewise.
3681 (grub_xnu_load_kext_from_dir): Likewise.
3682 * grub-core/normal/color.c (color_list): Likewise.
3683 * grub-core/normal/completion.c (current_word): Likewise.
3684 * grub-core/normal/menu_entry.c (insert_string): Likewise.
3685 * grub-core/term/serial.c (grub_serial_find): Likewise.
3686 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
3687 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
3689 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
3690 (grub_freebsd_add_meta_module): Likewise.
3691 * include/grub/lib/arg.h (grub_arg_option): Likewise.
3692 * include/grub/net.h (grub_net_card_driver): Likewise.
3693 (grub_net_card): Likewise.
3694 (grub_net_app_protocol): Likewise.
3695 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
3696 * include/grub/serial.h (grub_serial_find): Likewise.
3697 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
3698 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
3699 (grub_xnu_create_value): Likewise.
3700 (grub_xnu_find_key): Likewise.
3701 (grub_xnu_scan_dir_for_kexts): Likewise.
3702 (grub_xnu_load_kext_from_dir): Likewise.
3704 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
3705 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
3706 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
3708 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
3710 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
3712 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
3714 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
3716 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
3717 (read_device): Fix size calculation.
3719 2011-11-25 Robert Millan <rmh@gnu.org>
3721 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
3722 (find_root_device_from_libzfs): Add zpool output parser to be used
3723 as fallback when libzfs isn't available.
3725 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
3727 * po/Makefile.in.in: Add missing escape-continuation.
3729 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
3731 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
3733 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3735 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
3737 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3739 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
3741 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3743 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
3745 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3747 * grub-core/lib/adler32.c: Add missing license specification.
3748 * grub-core/lib/crc64.c: Likewise.
3749 * grub-core/loader/i386/pc/plan9.c: Likewise.
3750 * grub-core/partmap/plan.c: Likewise.
3752 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
3754 Add facility to debug GRUB with gdb under qemu.
3756 * grub-core/gdb_grub.in: New file.
3757 * grub-core/gmodule.pl.in: Likewise.
3758 * grub-core/Makefile.core.def (gmodule.pl): New script.
3759 (gdb_grub): Likewise.
3761 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3763 * util/grub-mount.c (argp_parser): Accept relative pathes.
3764 * util/grub-fstest.c (argp_parser): Likewise.
3766 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3770 * Makefile.util.def (libgrubmods): Add
3771 grub-core/partmap/plan.c.
3772 * docs/grub.texi: Notice Plan9 support.
3773 * grub-core/Makefile.core.def (plan9): New module.
3774 (part_plan): Likewise.
3775 * grub-core/loader/i386/pc/plan9.c: New file.
3776 * grub-core/partmap/plan.c: Likewise.
3777 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
3779 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
3780 * include/grub/mm.h (grub_extend_alloc): New inline function.
3782 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3784 Make Reed-Solomon faster by using power of generator representation of
3787 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
3788 (gf_double_t): Likewise.
3789 (gf_invert): Removed.
3790 (gf_powx): New array.
3791 (gf_powx_inv): Likewise.
3792 (scratch): Move higher.
3793 (gf_reduce): Removed.
3795 (gf_invert): Likewise.
3796 (init_inverts): Replaced with ...
3797 (init_powx): ...this. All users updated.
3798 (pol_evaluate): Replace multiplications with additions.
3799 (rs_encode): Likewise.
3800 (gauss_eliminate): Call gf_invert.
3801 (grub_reed_solomon_add_redundancy): Call init_powx.
3802 (grub_reed_solomon_recover): Call init_powx unconditionally.
3804 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3806 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
3808 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3810 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
3811 disk->partiton for safety.
3813 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3815 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
3817 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
3819 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3821 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
3823 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3825 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
3827 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3829 Fix spaces handling in proc/self/mountinfo.
3831 * util/getroot.c (unescape): New function.
3832 (grub_find_root_device_from_mountinfo): Use unescape.
3834 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3836 Support ZFS embedding.
3838 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
3839 (grub_zfs_fs): Register grub_zfs_embed.
3841 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3843 Fix MIPS compilation.
3845 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
3846 * include/grub/offsets.h: Rename decompressor fields from
3847 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
3848 * util/grub-mkimage.c (image_targets): Use new names.
3850 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3852 Defer multiboot device parsing until we're in compressed part.
3854 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
3855 bsd_part. setdevice has fallen into disuse.
3856 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
3857 (bsd_part): Likewise.
3858 (boot_dev): New variable.
3859 (multiboot_trampoline): Don't parse multiboot device.
3860 Pass multiboot device in %edx.
3861 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
3863 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
3865 * grub-core/kern/i386/pc/startup.S: Save edx.
3866 (grub_boot_drive): Removed.
3867 (grub_install_dos_part): Likewise.
3868 (grub_install_bsd_part): Likewise.
3869 (grub_boot_device): New variable.
3870 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
3871 (grub_install_bsd_part): Likewise.
3872 (grub_boot_drive): Likewise.
3873 (grub_boot_device): New variable.
3874 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
3876 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
3877 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
3878 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
3879 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
3880 * util/grub-install.in: Remove redundant condition.
3882 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3884 Fix bug introduced by previous commit.
3886 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
3888 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3890 Use decompressors framework on i386-pc. It increases core size
3891 by 46 bytes but improves compatibility and maintainability.
3893 * grub-core/Makefile.core.def (lzma_decompress): New image.
3894 (kernel): Add i386_pc_ldflags.
3895 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
3896 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
3897 to real_to_prot, prot_to_real and device info.
3898 * include/grub/offsets.h: Renamed decompressor offsets.
3899 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
3900 (image_target_desc): Remove raw_size and rename decompressor fields.
3901 (compress_kernel): Handle lzma.
3902 (generate_image): Handle decompressors on i386-pc.
3904 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3906 * configure.ac: Add -fno-asynchronous-unwind-tables.
3908 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3910 Move assembly code to C by using intwrap. It increases core size
3911 by 88 bytes but improves compatibility and maintainability.
3913 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
3914 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
3915 ... here. Translated to C.
3916 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
3917 * grub-core/term/i386/pc/console.c (grub_console_getkey):
3918 ... here. Translated to C.
3919 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
3920 * grub-core/term/i386/pc/console.c (grub_console_getxy):
3921 ... here. Translated to C.
3922 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
3923 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
3924 ... here. Translated to C.
3925 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
3926 * grub-core/term/i386/pc/console.c (grub_console_cls):
3927 ... here. Translated to C.
3928 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
3929 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
3930 ... here. Translated to C.
3931 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
3932 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
3934 * grub-core/term/i386/pc/console.c (int10_9): New function.
3935 (grub_console_putchar): Likewise.
3936 * include/grub/i386/pc/console.h: Removed the not anymore shared
3939 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3941 Move grub_chainloader_real_boot out of the kernel.
3943 * grub-core/Makefile.am: Remove machine/loader.h.
3944 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
3946 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
3948 (grub_relocator16_keep_a20_enabled): Likewise.
3949 (grub_relocator16_boot): Fill new variables.
3950 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
3951 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
3953 (grub_chainloader_unload): Likewise.
3954 (grub_chainloader_cmd): Likewise.
3955 * include/grub/i386/pc/loader.h: Removed.
3956 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
3957 and esi. All initialisers updated.
3959 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3960 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
3962 * Makefile.util.def (grub-mount): New util.
3963 * .bzrignore: Add grub-mount.
3964 * configure.ac: Check for fuse and enable grub-mount if available.
3965 * docs/man/grub-mount.h2m: New file.
3966 * util/grub-mount.c: Likewise.
3968 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3970 * grub-core/commands/efi/fixvideo.c: Gettextize.
3971 * grub-core/commands/hashsum.c: Likewise.
3972 * grub-core/commands/i386/cmostest.c: Likewise.
3973 * grub-core/commands/i386/pc/drivemap.c: Likewise.
3974 * grub-core/commands/i386/pc/lsapm.c: Likewise.
3975 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3976 * grub-core/commands/lsmmap.c: Likewise.
3977 * grub-core/commands/menuentry.c: Likewise.
3978 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
3979 * grub-core/commands/setpci.c: Likewise.
3980 * grub-core/loader/i386/bsd.c: Likewise.
3981 * grub-core/loader/i386/linux.c: Likewise.
3982 * util/getroot.c: Likewise.
3983 * util/grub-editenv.c: Likewise.
3984 * util/grub-fstest.c: Likewise.
3985 * util/grub-mkfont.c: Likewise.
3986 * util/grub-mkimage.c: Likewise.
3987 * util/grub-mkpasswd-pbkdf2.c: Likewise.
3988 * util/grub-pe2elf.c: Likewise.
3989 * util/grub-probe.c: Likewise.
3990 * util/grub-setup.c: Likewise.
3991 * util/ieee1275/ofpath.c: Likewise.
3992 * util/misc.c: Likewise.
3993 * util/raid.c: Likewise.
3995 2011-11-11 Robert Millan <rmh@gnu.org>
3997 * util/getroot.c (grub_util_get_geom_abstraction): Remove
3998 __attribute__((unused)) from `os_dev', which *is* being used.
4000 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4002 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
4004 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
4005 GRUB_IA64_DL_GOT_ALIGN.
4006 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
4007 GRUB_IA64_DL_TRAMP_ALIGN.
4009 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4011 Replace grub_fatal with normal errors in i386 linux loader.
4013 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
4014 (allocate_pages): Check find_efi_mmap_size return value.
4015 (grub_e820_add_region): Return error.
4016 (grub_linux_boot): Check mmap return value.
4018 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4020 * grub-core/commands/acpihalt.c: Gettextized.
4021 * grub-core/commands/cacheinfo.c: Likewise.
4022 * grub-core/commands/cmp.c: Likewise.
4023 * grub-core/commands/efi/loadbios.c: Likewise.
4024 * grub-core/commands/gptsync.c: Likewise.
4025 * grub-core/commands/ieee1275/suspend.c: Likewise.
4026 * grub-core/commands/legacycfg.c: Likewise.
4027 * grub-core/commands/memrw.c: Likewise.
4028 * grub-core/commands/minicmd.c: Likewise.
4029 * grub-core/commands/parttool.c: Likewise.
4030 * grub-core/commands/time.c: Likewise.
4031 * grub-core/commands/videoinfo.c: Likewise.
4032 * grub-core/disk/geli.c: Likewise.
4033 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
4034 * grub-core/disk/luks.c: Likewise.
4035 * grub-core/disk/lvm.c: Likewise.
4036 * grub-core/font/font_cmd.c: Likewise.
4037 * grub-core/fs/zfs/zfscrypt.c: Likewise.
4038 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4039 * grub-core/gfxmenu/view.c: Likewise.
4040 * grub-core/kern/emu/hostdisk.c: Likewise.
4041 * grub-core/kern/emu/main.c: Likewise.
4042 * grub-core/kern/emu/misc.c: Likewise.
4043 * grub-core/kern/emu/mm.c: Likewise.
4044 * grub-core/kern/mips/arc/init.c: Likewise.
4045 * grub-core/kern/mips/loongson/init.c: Likewise.
4046 * grub-core/kern/partition.c: Likewise.
4047 * grub-core/lib/i386/halt.c: Likewise.
4048 * grub-core/lib/mips/arc/reboot.c: Likewise.
4049 * grub-core/lib/mips/loongson/reboot.c: Likewise.
4050 * grub-core/loader/i386/pc/chainloader.c: Likewise.
4051 * grub-core/loader/i386/xnu.c: Likewise.
4052 * grub-core/loader/multiboot.c: Likewise.
4053 * grub-core/net/bootp.c: Likewise.
4054 * grub-core/net/net.c: Likewise.
4055 * grub-core/normal/term.c: Likewise.
4056 * grub-core/partmap/bsdlabel.c: Likewise.
4057 * grub-core/parttool/msdospart.c: Likewise.
4058 * grub-core/term/gfxterm.c: Likewise.
4059 * grub-core/term/terminfo.c: Likewise.
4060 * grub-core/video/i386/pc/vbe.c: Likewise.
4061 * util/grub-menulst2cfg.c: Likewise.
4062 * util/grub-mkdevicemap.c: Likewise.
4063 * util/grub-mklayout.c: Likewise.
4064 * util/grub-mkrelpath.c: Likewise.
4065 * util/grub-script-check.c: Likewise.
4066 * util/ieee1275/grub-ofpathname.c: Likewise.
4067 * util/resolve.c: Likewise.
4069 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4071 Support %1$d syntax.
4073 * tests/printf_unit_test.c: New file.
4074 * Makefile.util.def (printf_test): New test.
4075 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
4077 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4079 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
4082 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4084 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
4086 * grub-core/font/font.c (grub_font_load): Likewise.
4088 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4090 * util/grub-macho2img.c: Add comment concerning gettext.
4091 * grub-core/lib/legacy_parse.c: Likewise.
4093 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4095 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
4096 (grub_xvasprintf): Likewise.
4098 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4100 Add const keyword to grub_env_get and gettextize week days.
4102 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
4103 (grub_read_hook_datetime): Return const char *.
4104 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
4106 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
4108 (grub_get_weekday_name): Return const char *. Call gettext.
4109 * grub-core/script/argv.c (grub_script_argv_append): Receive const
4110 char * and len as the argument. All users updated.
4111 (grub_script_argv_split_append): Receive const char *.
4112 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
4113 * include/grub/env.h (grub_env_get): Likewise.
4114 (grub_env_read_hook_t): Return const char *.
4115 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
4116 (grub_script_argv_split_append): Likewise.
4118 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4120 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
4122 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4124 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
4125 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
4127 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4129 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
4132 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4134 Fix mips compilation.
4136 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
4138 (hashes): Use in embed decoder as well (for sizes).
4139 (dec_stream_header): Fix embed decompressor logic.
4140 (dec_stream_footer): Likewise.
4142 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4144 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
4145 an error and not a fatal on unrecognised relocation types.
4147 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4149 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
4150 Issue error rather than printf on unknown arguments.
4152 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4154 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
4157 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4159 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
4162 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4164 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
4165 leftover debug printf.
4167 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4169 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
4171 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4173 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
4176 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
4178 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
4180 2011-11-10 Shea Levy <slevy@tieronedesign.com>
4182 Allow all modules to perform serial IO
4184 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
4185 * include/grub/serial.h (grub_serial_port_configure): New inline
4187 (grub_serial_port_fetch): Likewise.
4188 (grub_serial_port_put): Likewise.
4189 (grub_serial_port_fini): Likewise.
4190 (grub_serial_find): New proto.
4192 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4194 Put symlink at the end of the node and fix a potential
4197 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
4198 Make symlink into an array.
4199 (set_rockridge): Set have_symlink and alloc_dirents.
4200 (grub_iso9660_read_symlink): Use new layout.
4201 (grub_iso9660_iterate_dir): Fix memory corruption.
4203 (grub_iso9660_dir): Set have_symlink.
4204 (grub_iso9660_open): Likewise.
4206 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4208 Remove local keyword.
4210 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
4211 (version_test_gt): Likewise.
4212 (version_find_latest): Likewise.
4213 (gettext_printf): Likewise.
4214 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
4216 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4218 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
4220 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4222 Fix ZFS memory and resource leaks.
4224 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
4227 (fill_vdev_info): New parameter inserted. All users updated.
4228 (check_pool_label): Likewise.
4229 (scan_disk): Likewise.
4230 (scan_devices): Close non-inserted disks.
4231 (fzap_iterate): Free l.
4232 (unmount_device): Free children descripto memory.
4234 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4236 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
4237 argument (access out of bounds).
4239 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4241 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
4244 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
4246 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
4249 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4251 Fix several memory leaks.
4253 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
4254 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
4255 (grub_cpio_dir): Likewise.
4256 * grub-core/fs/fat.c (grub_fat_label): Likewise.
4257 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
4258 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
4259 (grub_romfs_label): Likewise.
4260 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
4261 (squash_unmount): New function.
4262 (grub_squash_dir): Fix memory leak.
4263 (grub_squash_open): Likewise.
4264 (grub_squash_read): Likewise.
4265 (grub_squash_mtime): Likewise.
4266 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
4267 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
4268 * util/grub-fstest.c (fstest): Likewise.
4270 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4272 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
4273 avoid accessing beyond the array.
4275 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4277 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
4279 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
4283 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
4284 (GRUB_AFFS_FLAG_FFS): Removed.
4285 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
4286 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
4287 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
4288 (grub_fshelp_node): Make block 32-bit.
4289 Add block_cache and last_block_cache.
4290 (grub_affs_read_block): Fill and use block cache.
4291 (grub_affs_read_file): Removed.
4292 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
4294 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
4296 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
4298 (grub_affs_close): Free block cache.
4299 (grub_affs_read): Use grub_fshelp_read_file directly.
4301 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4303 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
4306 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4308 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
4310 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
4313 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4315 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
4317 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
4318 byteswap when needed.
4320 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4322 Fix FreeBSD compilation.
4324 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
4325 to avoid circular dependency.
4326 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
4327 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
4328 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
4330 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4332 Fix ZFS crypto error types.
4334 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
4335 (grub_gcm_decrypt): Likewise.
4336 (grub_zfs_load_key_real): Fix error code type. Handle possible error
4339 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4343 * Makefile.util.def (10_illumos): New script.
4344 * configure.ac: Set COND_HOST_ILLUMOS.
4345 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
4346 Support Illumos calls.
4347 (find_partition_start) [__sun__]: Likewise.
4348 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
4349 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
4350 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
4351 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
4353 * util/grub-probe.c (probe) [__sun__]: Do character check.
4354 * util/grub.d/10_illumos.in: New file.
4356 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4358 Support escaped commas in hostdisk.
4360 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
4361 (find_grub_drive): Use unescape_cmp.
4362 (make_device_name): Escape commas.
4364 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4366 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
4368 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4370 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
4373 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
4375 Support trampoline jumps on powerpc.
4377 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
4379 (grub_dl_load_segments): Set mod->sz.
4380 (grub_dl_flush_cache): Flush whole space occupied by module, not just
4382 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
4384 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
4386 (trampoline): New struct.
4387 (trampoline_template): New const.
4388 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
4389 * include/grub/dl.h (grub_dl): Add sz element.
4390 [__powerpc__]: Follow __ia64__.
4391 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
4392 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
4393 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
4394 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
4396 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
4400 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
4401 * grub-core/Makefile.core.def (zfscrypt): New module.
4402 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
4403 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
4404 it. All users updated.
4405 (grub_zfs_decrypt): New var.
4406 (grub_zfs_load_key): Likewise.
4407 (zio_checksum_functions): Add SHA256+MAC.
4408 (zio_checksum_verify): Handle incomplete comparison due to MAC.
4409 (zio_read): Handle encrypted blocks.
4410 (zap_verify): Remove incorrect check.
4411 (fzap_iterate): Handle non-standard fzap.
4412 (zap_iterate): Likewise.
4413 (zap_iterate_u64): New function.
4414 (dnode_get_fullpath): Load keys.
4415 * grub-core/fs/zfs/zfscrypt.c: New file.
4416 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
4417 (grub_crypto_ecb_encrypt): Make input const.
4418 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
4419 (grub_crypto_ecb_encrypt): Make input const.
4420 (GRUB_CIPHER_AES): New macro.
4421 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
4422 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
4423 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
4424 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
4425 prefix. All users updated.
4426 (grub_zfs_add_key): New proto.
4427 (grub_zfs_decrypt): Likewise.
4428 (grub_zfs_load_key): Likewise.
4429 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
4430 * util/grub-fstest.c (options): Add -K option.
4431 (argp_parser): Likewise.
4433 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4435 Support zle compression on ZFS.
4437 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
4438 (decomp_table): Add zle.
4439 * include/grub/zfs/zio.h (zio_compress): Add zle.
4441 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4443 Support BtrFS embedding.
4445 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
4446 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
4447 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
4448 * util/grub-setup.c (setup): Use fs embedding if available.
4449 Add additional sanity check.
4451 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
4453 * util/grub-install.in: Fix condition for config_opt.
4455 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4457 Support third redundancy strip on raidz3.
4459 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
4460 Return error on singularity. All users updated.
4461 (read_device): Don't stop on 3rd failure on raidz3.
4463 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4465 Support case-insensitive ZFS subvolumes.
4467 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
4469 (zap_hash): Likewise.
4470 (name_cmp): New function.
4471 (zap_leaf_array_equal): New parameter case_insensitive.
4473 (zap_leaf_lookup): Likewise.
4474 (fzap_lookup): Likewise.
4475 (zap_lookup): Likewise.
4476 (dnode_get_path): New parameter case_insensitive. Retrieve case
4477 sensitiviness of a volume. All users updated.
4478 (dnode_get_fullpath): New parameter case_insensitive.
4480 (grub_zfs_dir): Set info.case_insensitiveness.
4482 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4484 Support second redundancy strip on raidz(2,3).
4486 * grub-core/fs/zfs/zfs.c (powx): New array.
4487 (powx_inv): Likewise.
4489 (xor_out): New function.
4491 (recovery): Likewise.
4492 (read_device): Use second redundancy strip.
4494 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4496 Use a power of generator representation of GF(256) multiplication group
4497 to save space time and complexity.
4499 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
4500 (raid6_table2): Likewise.
4502 (powx_inv): Likewise.
4504 (grub_raid_block_mul): Replace with ...
4505 (grub_raid_block_mulx): ...this.
4506 (grub_raid6_init_table): Rewritten.
4507 (grub_raid6_recover): Use power of generator representation.
4509 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4511 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
4512 for the right device.
4514 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4516 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
4517 expected by grub-mkimage and it's more clear since there is no implicit
4520 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
4522 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
4524 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4526 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
4528 * util/grub-mkrescue.in: Fix handling xorriso option.
4530 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4532 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
4535 2011-11-03 crocket <crockabiscuit@gmail.com>
4537 * util/grub.d/10_linux.in: Add Slackware initrd naming.
4539 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4541 XZ CRC64 and SHA256 support.
4543 * Makefile.util.def (libgrubmods): Add crc64.c.
4544 * grub-core/Makefile.core.def (crc64): New module.
4545 * grub-core/lib/crc64.c: New file.
4546 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
4547 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
4549 (MAX_HASH_SIZE): New define.
4550 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
4551 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
4552 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4553 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
4554 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
4555 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
4556 Handle non-crc32 hashes.
4557 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
4558 (dec_stream_header): Handle non-crc32 hashes.
4559 (dec_stream_footer): Likewise.
4560 (dec_block_header): Likewise.
4561 (dec_main): Likewise.
4562 (xz_dec_init): Likewise.
4563 (xz_dec_reset): Likewise.
4564 (xz_dec_end): Likewise.
4565 * util/import_gcry.py: Add CRC64 line.
4567 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4569 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
4572 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4574 Make reiserfs label retrieval similar to other *_label functions.
4576 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
4577 (REISERFS_MAX_LABEL_LENGTH): Removed.
4578 (REISERFS_LABEL_OFFSET): Likewise.
4579 (grub_reiserfs_label): Rewritten.
4581 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4583 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
4586 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
4588 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
4590 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4592 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
4593 drive failure on both raidz and raidz2.
4595 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
4597 Fix RAIDZ(2) for >= 5 devices.
4599 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
4600 asize argument. All users updated.
4602 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
4606 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
4607 (fill_vdev_info_real): Set ashift.
4608 (read_device): Rewrite RAIDZ part based on reverse engineering.
4610 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4612 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
4613 don't report potentially unavialiable fields in debug output.
4614 (find_path): Fix double-free and memory leak.
4616 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4620 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
4621 (grub_ufs_fs): Always set .label.
4623 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4627 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
4628 (grub_ufs_data): New field log2_blksz.
4629 (grub_ufs_read_file): Use shifts.
4630 (grub_ufs_mount): Check block size and logarithm it.
4632 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
4634 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
4637 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4639 Handle symlinks and long names on tar and cpio.
4641 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
4642 (ATTR_FILE): Likewise.
4643 (ATTR_DIR): Likewise.
4644 (ATTR_LNK): Likewise.
4645 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
4646 (grub_cpio_find_file): Fill mode, handle linkname field as well as
4648 (grub_cpio_mount): Zero-fill data.
4649 (handle_symlink): New function.
4650 (grub_cpio_dir): Handle symlinks.
4651 (grub_cpio_open): Likewise.
4652 (grub_cpio_close) [MODE_USTAR]: Free linkname.
4654 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4656 Fix iso9660 filename limitations and fix memory leaks.
4658 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
4659 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
4661 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4663 Fix JFS file name length limitations.
4665 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
4666 (grub_jfs_diropen): Fix maximum filename length.
4667 (grub_jfs_getent): Fix filename length.
4668 (grub_jfs_lookup_symlink): Fix size checks.
4670 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4672 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
4675 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4677 Leverage BFS implementation to read AFS.
4679 * Makefile.util.def (libgrubmods): Add afs.c.
4680 * grub-core/Makefile.core.def (afs): New module
4681 * grub-core/fs/afs.c: New file.
4682 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
4684 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4686 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
4688 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4690 * grub-core/fs/bfs.c: Run indent.
4692 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4694 BFS implementation based on the specification.
4696 * grub-core/fs/bfs.c: New file.
4697 * Makefile.util.def (libgrubmods): Add bfs.c.
4698 * grub-core/Makefile.core.def (bfs): New module.
4700 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
4702 * util/grub-fstest.c (cmd_cp): Clarify error message.
4703 (cmd_cmp): Likewise.
4705 2011-10-30 Yves Blusseau <blusseau@zetam.org>
4707 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
4710 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
4712 Remove afs and befs because of copyright problem.
4714 * grub-core/fs/afs.c: Removed.
4715 * grub-core/fs/afs_be.c: Removed.
4716 * grub-core/fs/befs.c: Removed.
4717 * grub-core/fs/befs_be.c: Removed.
4718 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
4719 * grub-core/Makefile.core.def (afs): Removed.
4722 (befs_be): Likewise.
4724 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4726 Prefer rockridge over Joliet.
4728 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
4730 (set_rockridge): ... here.
4731 (grub_iso9660_mount): Check rockridge on the primary label when
4732 discovering. Ignore Joliet if Rockridge is present.
4734 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4736 Use shifts in nilfs2.
4738 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
4739 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
4740 (grub_nilfs2_palloc_entries_per_group): Replace with ...
4741 (grub_nilfs2_log_palloc_entries_per_group): ... this.
4742 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
4743 (grub_nilfs2_entries_per_block): Replaced with ...
4744 (grub_nilfs2_log_entries_per_block_log): ... this.
4745 (grub_nilfs2_blocks_per_group): Replaced with ...
4746 (grub_nilfs2_blocks_per_group_log): ... this.
4747 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
4748 (grub_nilfs2_blocks_per_desc_block_log): ... this.
4749 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
4750 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
4751 (grub_nilfs2_palloc_entry_offset): Replaced ...
4752 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
4753 (grub_nilfs2_dat_translate): Use shifts.
4754 (grub_nilfs2_read_inode): Likewise.
4755 (GRUB_MOD_INIT): Ensure that logs are correct.
4757 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4759 Use shifts in minix filesystem.
4761 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
4762 (GRUB_MINIX_ZONE2SECT): Likewise.
4763 (grub_minix_data): Replace block_size with log_block_size.
4764 (grub_minix_read_file): Use shifts.
4765 (grub_minix_mount): Check block size and take a logarithm.
4767 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4769 Use shifts in squash4.
4771 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
4772 (squash_mount): Check block size and take logarithm.
4773 (direct_read): Use shifts.
4775 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4777 Correct befs block counting logic.
4779 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
4780 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
4781 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
4782 (grub_afs_read_inode): Use block_shift.
4783 (RANGE_SHIFT): New definition.
4784 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
4785 unexpected conditions, use shifts and appropriate types.
4786 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
4788 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4790 * grub-core/disk/raid.c (scan_devices): Check partition.
4791 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
4793 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4795 Support BFS (befs) UUID.
4797 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
4798 (grub_afs_small_data_element_header): New struct.
4799 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
4800 (grub_afs_read_attribute) [MODE_BFS]: New function.
4801 (grub_afs_iterate_dir): Allocate for complete inode.
4802 (grub_afs_mount): Likewise.
4803 (grub_afs_uuid) [MODE_BFS]: New function.
4804 (grub_afs_fs) [MODE_BFS]: Add .uuid.
4806 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4808 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
4809 (zfs_unmount): Fix memory leak.
4811 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4813 Support NTFS reparse points.
4815 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
4816 (symlink_descriptor): New struct.
4817 (grub_ntfs_read_symlink): New function.
4818 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
4819 (grub_ntfs_open): Likewise.
4821 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4823 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
4825 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4827 fstest xnu_uuid subcommand.
4829 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
4830 grub-core/commands/xnu_uuid.c.
4831 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
4832 (fstest): Handle xnu_uuid.
4833 (options): Document xnu_uuid.
4834 (argp_parser): Parse xnu_uuid.
4836 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4838 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
4839 -l argument. Add newline at the end if printing.
4840 (GRUB_MOD_INIT): Document -l.
4842 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4844 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
4846 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4848 ZFS multi-device and version 33 support.
4850 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
4851 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
4852 (grub_zfs_data): Add multidev-ice-related fields.
4853 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
4854 (dva_get_offset): Make dva const.
4855 (zfs_fetch_nvlist): New function.
4856 (fill_vdev_info_real): Likewise.
4857 (fill_vdev_info): Likewise.
4858 (check_pool_label): Likewise.
4859 (scan_disk): Likewise.
4860 (scan_devices): Likewise.
4861 (read_device): Likewise.
4862 (read_dva): Likewise.
4863 (zio_read_gang): Use read_dva.
4864 (zio_read_data): Likewise.
4865 (zap_leaf_lookup): Add missing endian conversion.
4866 (zap_verify): Add missing endian conversion. All users updated.
4867 (fzap_lookup): Likewise.
4868 (fzap_iterate): Likewise.
4869 (dnode_get_path): Handle SA bonus.
4870 (nvlist_find_value): Make input const. All users updated.
4871 (unmount_device): New function.
4872 (zfs_unmount): Use unmount_device.
4873 (zfs_mount): Use scan_disk.
4874 (zfs_mtime): New function.
4875 (grub_zfs_open): Handle system attributes.
4876 (fill_fs_info): Likewise.
4877 (grub_zfs_dir): Likewise.
4878 (grub_zfs_fs): Add mtime.
4879 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
4880 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
4881 (SA_MTIME_OFFSET): Likewise.
4882 (SA_SYMLINK_OFFSET): Likewise.
4883 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
4884 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
4885 (fstest): Support zfsinfo.
4886 (argp_parser): Likewise.
4888 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4890 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
4893 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4897 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
4898 sharing the same block. Iterate over correct number of indices.
4899 (dnode_get_path): Handle symlinks correctly.
4901 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4903 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
4905 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4909 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
4910 (grub_hfsplus_btree_search): Fix types.
4911 (grub_hfsplus_label): Implement.
4913 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4915 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
4917 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4919 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
4921 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4923 Fix symlink handling on iso9660.
4925 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
4927 (grub_iso9660_susp_iterate): Accept zero-size iterate.
4928 (grub_iso9660_read_symlink): Moved most of code ...
4929 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
4931 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4933 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
4934 Use union to avoid breaking strict-aliasing rules.
4936 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4938 Support multi-extent iso files.
4940 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
4942 (grub_fshelp_node): Revamp. All users updated.
4944 (read_node): New function.
4945 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
4947 (grub_iso9660_mount): Don't attempt to read sua when there is none.
4948 (get_node_size): New function.
4949 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
4951 Fix memory leak on . and ..
4952 (grub_iso9660_read): Use read_node.
4953 (grub_iso9660_close): Free node.
4955 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4957 Fix tar 4G limit and handle paths containing dot.
4959 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
4960 (canonicalize): New function.
4961 (grub_cpio_find_file): Use canonicalize. Store offs in
4963 (grub_cpio_dir): Use grub_disk_addr_t.
4964 (grub_cpio_open): Likewise.
4966 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4968 Fix handling of uncompressed blocks on squashfs and break 4G limit.
4970 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
4972 (grub_squash_inode): Add long_file and block_size.
4973 (grub_squash_cache_inode): New struct.
4974 (grub_squash_dirent): Make types into enum.
4975 (SQUASH_TYPE_LONG_REGULAR): New type.
4976 (grub_squash_frag_desc): Add field size.
4977 (SQUASH_BLOCK_FLAGS): New enum.
4978 (grub_squash_data): Use grub_squash_cache_inode.
4979 (grub_fshelp_node): Make ino_chunk 64-bit.
4980 (read_chunk): Minor argument change. All users updated.
4981 (squash_mount): Use correct le_to_cpu.
4982 (grub_squash_open): Handle LONG_REGULAR.
4983 (direct_read): New function.
4984 (grub_squash_read_data): Handle blocks correctly.
4986 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4988 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
4990 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4992 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
4994 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
4996 Fix 2G limit on ZFS.
4998 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
5000 (uberblock_verify): Likewise.
5001 (dmu_read): Likewise.
5002 (grub_zfs_read): Likewise. Remove invalid cast.
5004 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5006 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
5007 (grub_jfs_blkno): Fix incorrect shift.
5008 (grub_jfs_read_file): Use more appropriate types.
5010 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5012 Support triple indirect on minix2 and minix3.
5014 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
5015 Declare triple_indir_zone.
5016 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
5019 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
5023 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
5024 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
5025 Rename ctime to mtime. All users updated.
5026 (grub_minix_get_file_block): Fix types and double indirect computations.
5028 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5030 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
5031 if no label is found.
5032 (grub_fat_iterate_dir): Fix file size type.
5033 (grub_fat_iterate_dir): Likewise.
5035 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5037 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
5039 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
5040 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
5042 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5044 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
5046 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5048 * util/import_gcry.py: Accept space between # and include.
5050 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5052 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
5054 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5056 Fine grainely disable warnings on lexer. Remove Wno-error on it.
5058 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
5059 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
5061 * grub-core/script/yylex.l: Add fine-grained #pragma.
5063 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5065 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
5066 New inline function.
5067 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
5069 (memset) [GRUB_UTIL]: Likewise.
5070 (memcmp) [GRUB_UTIL]: Likewise.
5072 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5074 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
5075 inline function rather than a define.
5077 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5079 * util/grub-setup.c: Add missing include.
5081 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5083 * util/ieee1275/grub-ofpathname.c: Add missing include.
5085 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5087 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
5088 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
5091 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5093 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
5096 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5098 * util/grub-install.in: Add datarootdir as per automake manual
5100 * util/grub-mknetdir.in: Likewise.
5102 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5104 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
5106 * util/grub.d/10_kfreebsd.in: Likewise.
5107 * util/grub.d/10_linux.in: Likewise.
5108 * util/grub.d/10_netbsd.in: Likewise.
5109 * util/grub.d/10_windows.in: Likewise.
5110 * util/grub.d/20_linux_xen.in: Likewise.
5112 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
5114 Remove redundant grub_kernel_image_size.
5116 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
5118 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
5119 the small code. It moves it only by few bytes but simplifies the code.
5120 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
5122 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
5123 (grub_kernel_image_size): Removed.
5124 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
5125 (grub_kernel_image_size): Removed.
5126 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
5127 compiled with Apple toolchain.
5128 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
5129 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
5130 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
5131 (grub_total_module_size): Likewise.
5132 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
5134 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
5135 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
5136 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
5137 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
5138 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
5139 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
5140 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
5141 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
5143 (grub_total_module_size): Removed.
5144 * util/grub-mkimage.c (image_target_desc): Remove image_size.
5145 (image_targets): Likewise.
5146 Set .compressed_size to no field on sparc.
5147 (generate_image): Remove kernel_image_size handling.
5149 2011-10-19 Szymon Janc <szymon@janc.net.pl>
5151 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
5152 NULL pointer dereference.
5154 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5156 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
5157 done with a dedicated section.
5159 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
5160 Ensure the correct position of boot_path.
5161 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
5162 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
5164 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
5165 * include/grub/boot.h: Removed. All references removed.
5166 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
5168 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
5170 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5172 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
5175 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5177 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
5179 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5181 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
5182 Don't add the bogus brackets.
5184 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5188 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
5189 * grub-core/Makefile.core.def (exfat): New module.
5190 * grub-core/fs/exfat.c: New file.
5191 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
5192 (GRUB_FAT_ATTR_*): Make into an enum.
5193 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
5194 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
5195 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
5196 (GRUB_FAT_MAXFILE): Removed.
5197 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
5198 (grub_current_fat_bpb_t): New type.
5199 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
5200 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
5201 (grub_fat_dir_node_t): New type.
5202 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
5203 (fat_log2) [MODE_EXFAT]: Removed.
5204 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
5205 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
5206 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
5207 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
5208 (grub_fat_label) [MODE_EXFAT]: New function.
5209 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
5210 reserved_first_sector to 0.
5212 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
5214 Move grub_reboot out of the kernel.
5216 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
5217 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
5218 * grub-core/lib/efi/reboot.c: ... here.
5219 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
5220 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
5221 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
5222 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
5223 * grub-core/lib/i386/reboot_trampoline.S: ... here.
5224 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
5225 * grub-core/lib/ieee1275/reboot.c: ... here.
5226 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
5227 * grub-core/lib/mips/arc/reboot.c: ... here.
5228 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
5229 * grub-core/lib/mips/loongson/reboot.c: ...here.
5230 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
5231 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
5232 * include/grub/emu/misc.h (grub_reboot): New function declaration.
5233 * include/grub/i386/reboot.h: New file.
5234 * include/grub/mips/loongson/ec.h: Fix includes.
5235 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
5236 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
5237 * grub-core/lib/i386/reboot.c: New file.
5239 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
5241 Make grub_prefix into module to fix the arbitrary limit and save
5244 * grub-core/kern/emu/main.c (grub_prefix): Removed.
5245 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
5246 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
5247 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
5248 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
5249 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
5250 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
5251 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
5252 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
5253 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
5254 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
5255 * include/grub/ia64/efi/kernel.h: Removed.
5256 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
5257 (grub_prefix): Removed.
5258 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
5259 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
5260 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
5261 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
5262 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
5263 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
5264 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
5265 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
5266 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
5267 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
5268 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
5269 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
5270 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
5271 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
5272 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
5273 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
5274 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
5275 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
5276 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
5277 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
5278 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
5279 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
5280 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
5281 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
5282 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
5283 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
5284 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
5285 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
5286 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
5288 * util/grub-mkimage.c (image_target_desc): Removed prefix and
5290 (image_targets): Likewise.
5291 (generate_image): Put prefix as a module.
5293 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5295 Replace grub_module_iterate with FOR_MODULES.
5297 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
5298 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
5299 (grub_efi_modules_addr): ...this.
5300 * grub-core/kern/efi/init.c (grub_modbase): New variable.
5301 (grub_efi_init): Set grub_modbase.
5302 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
5303 (grub_modbase): New variable.
5304 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
5305 (grub_modbase): New variable.
5306 (grub_machine_init): Set grub_modbase.
5307 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
5308 (grub_modbase): New variable.
5309 (grub_machine_init): Set grub_modbase.
5310 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
5311 (grub_modbase): New variable.
5312 (grub_machine_init): Set grub_modbase.
5313 * grub-core/kern/main.c (grub_module_iterate): Remove.
5314 (grub_modules_get_end): Use grub_modbase.
5315 (grub_load_modules): Use FOR_MODULES.
5316 (grub_load_config): Likewise.
5317 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
5318 (grub_modbase): New variable.
5319 (grub_machine_init): Set grub_modbase.
5320 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
5321 (grub_modbase): New variable.
5322 (grub_machine_init): Set grub_modbase.
5323 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
5325 (grub_modbase): New variable.
5326 (grub_machine_init): Set grub_modbase.
5327 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
5328 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
5329 (grub_module_iterate): Likewise.
5330 (grub_modbase): New variable declaration.
5331 (FOR_MODULES): New macro.
5333 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5335 * configure.ac: Check for __ctzdi2 and __ctzsi2.
5336 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
5338 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5340 Fix few obvious type discrepancies.
5342 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
5343 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
5344 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
5346 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
5347 and connected types.
5348 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
5350 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
5351 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
5352 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
5353 and connected types.
5355 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5357 Fix python 3.x incompatibilities.
5359 * gentpl.py: Put brackets around print strings.
5360 * util/import_gcry.py: Open explicitly as utf-8.
5361 Use in instead of has_key.
5363 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
5365 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
5366 (GRUB_XFS_INO_AGBITS): Make into inline function.
5367 (GRUB_XFS_INO_INOINAG): Likewise.
5368 (GRUB_XFS_INO_AG): Likewise.
5369 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
5370 (GRUB_XFS_EXTENT_OFFSET): Likewise.
5371 (GRUB_XFS_EXTENT_BLOCK): Likewise.
5372 (GRUB_XFS_EXTENT_SIZE): Likewise.
5373 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
5374 (GRUB_XFS_NEXT_DIRENT): Likewise.
5375 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
5376 (grub_xfs_read_file): Fix offset type.
5378 2011-10-15 Robert Millan <rmh@gnu.org>
5380 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
5382 2011-10-15 Robert Millan <rmh@gnu.org>
5384 Fix build problem on FreeBSD and GNU/kFreeBSD.
5386 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
5388 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5390 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
5392 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
5394 (grub_hfsplus_btree_recoffset): Likewise.
5395 (grub_hfsplus_btree_recptr): Likewise.
5396 (grub_hfsplus_find_block): Likewise.
5397 (grub_hfsplus_btree_search): Likewise.
5398 (grub_hfsplus_read_block): Likewise.
5399 (grub_hfsplus_read_file): Likewise.
5400 (grub_hfsplus_mount): Likewise.
5401 (grub_hfsplus_btree_iterate_node): Likewise.
5402 (grub_hfsplus_btree_search): Likewise.
5403 (grub_hfsplus_iterate_dir): Likewise.
5404 (grub_hfsplus_read): A small code simplification.
5406 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5408 * grub-core/kern/emu/hostdisk.c
5409 (convert_system_partition_to_system_disk): Don't assume that children
5410 of mapper nodes are mapper nodes.
5412 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
5414 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
5415 * include/grub/misc.h (grub_isxdigit): New function.
5416 * grub-core/video/colors.c (my_isxdigit): Removed. All users
5417 switched to grub_isxdigit.
5418 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
5419 number starting with a letter.
5421 2011-10-09 Robert Millan <rmh@gnu.org>
5423 LVM support for FreeBSD and GNU/kFreeBSD.
5425 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
5427 (LVM_DEV_MAPPER_STRING): Move from here ...
5428 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
5429 * util/getroot.c: Include `<grub/util/lvm.h>'.
5430 (grub_util_get_dev_abstraction): Enable
5431 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
5432 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
5433 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
5434 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
5436 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
5438 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
5439 when LVM abstraction is required for ${GRUB_DEVICE}.
5441 2011-10-06 Szymon Janc <szymon@janc.net.pl>
5443 Add support for LZO compression in GRUB:
5444 - import of minilzo library,
5445 - LZO decompression for btrfs,
5446 - lzop files decompression.
5448 * grub-core/io/lzopio.c: New file.
5449 * grub-core/lib/adler32.c: Likewise.
5450 * grub-core/lib/minilzo/lzoconf.h: Likewise.
5451 * grub-core/lib/minilzo/lzodefs.h: Likewise.
5452 * grub-core/lib/minilzo/minilzo.c: Likewise.
5453 * grub-core/lib/minilzo/minilzo.h: Likewise.
5454 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
5455 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
5456 grub-core/lib/minilzo/minilzo.c to common.
5457 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
5459 * grub-core/Makefile.core.def (btrfs): Likewise.
5460 * grub-core/Makefile.core.def (lzopio): New module.
5461 (adler32): Likewise.
5462 * grub-core/fs/btrfs.c: Include minilzo.h.
5463 (GRUB_BTRFS_COMPRESSION_LZO): New define.
5464 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
5465 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
5466 (grub_btrfs_lzo_decompress): New function.
5467 (grub_btrfs_extent_read): Add support for LZO compression type.
5468 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
5469 (GRUB_USHRT_MAX): Likewise.
5470 (GRUB_UINT_MAX): Likewise.
5471 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
5472 (UINT_MAX): Likewise.
5473 (CHAR_BIT): Likewise.
5474 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
5475 grub-core/lib/posix_wrap/limits.h
5476 (UCHAR_MAX): Likewise.
5477 * include/grub/file.h (grub_file_filter_id): New compression filter
5478 GRUB_FILE_FILTER_LZOPIO.
5479 * include/grub/file.h (grub_file_filter_id): Set
5480 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
5481 * include/grub/types.h (grub_get_unaligned16): New function.
5482 (grub_get_unaligned32): Likewise.
5483 (grub_get_unaligned64): Likewise.
5484 * util/import_gcry.py (cryptolist): Add adler32.
5486 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
5488 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
5489 in perspective decreases the complexity of build system and fixes
5490 compilation right now.
5492 2011-10-01 Ales Nesrsta <starous@volny.cz>
5494 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
5495 (fixed problem related to using UHCI with coreboot).
5497 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
5499 * gentpl.py: Use Autogen macros so that the output template file
5500 (Makefile.tpl) size is reduced.
5502 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
5504 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
5507 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5509 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
5510 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
5512 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5514 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
5517 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
5519 Remove extra declaration of sleep for mingw32.
5521 * util/misc.c (sleep) [__MINGW32__]: Removed.
5522 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
5524 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
5526 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
5528 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
5530 (NETBSD_BTINFO_BOOTWEDGE): New definition.
5531 (grub_netbsd_btinfo_bootwedge): New struct.
5532 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5534 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
5536 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
5538 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
5541 2011-09-28 Andreas Born <futur.andy@googlemail.com>
5543 Fix incorrect identifiers in bash-completion.
5545 * util/bash-completion.d/grub-completion.bash.in
5546 (_grub_mkpasswd-pbkdf2): Rename to ...
5547 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
5548 (_grub_script-check): Rename to ...
5549 (_grub_script_check): ... this. All users updated.
5551 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5553 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
5554 Return 0 if disk isn't biosdisk.
5556 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5558 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
5560 * Makefile.util.def (grub-fstest): Likewise.
5562 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
5564 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
5565 Get sector size from disk label.
5567 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
5569 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
5570 */README* as well as README*.
5571 Reported by: Axel Beckert.
5573 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5575 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
5576 case of less than 256 MiB of RAM.
5578 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5580 * grub-core/commands/wildcard.c (make_regex): Handle @.
5582 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5584 * util/grub-install.in: Move cryptodisk logic to appropriate place.
5586 2011-08-21 Szymon Janc <szymon@janc.net.pl>
5588 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
5589 AC_LANG_CONFTEST macros.
5591 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5593 Add grub-fstest option to uncompress data for commands.
5595 * util/grub-fstest.c (uncompress): New var.
5596 (options): New option -u.
5598 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5600 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
5601 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
5603 2011-08-20 Szymon Janc <szymon@janc.net.pl>
5605 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
5606 file type was not recognized correctly (not gzip or corrupted).
5608 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5610 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
5611 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
5613 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5615 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
5617 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
5618 video_radeon_fuloong2e.
5619 * grub-core/video/radeon_fuloong2e.c: New file.
5620 * include/grub/video.h (grub_video_id_t): Add new ID
5621 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
5623 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5625 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
5627 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
5628 that PRID matches the detected subplatform and reset the subplatform
5631 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5633 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
5635 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5637 Fix PCI iterating on functions >= 4.
5639 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
5640 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
5642 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
5643 (grub_pci_read): Fix bitmask.
5644 (grub_pci_read_word): Likewise.
5645 (grub_pci_read_byte): Likewise.
5646 (grub_pci_write): Likewise.
5647 (grub_pci_write_word): Likewise.
5648 (grub_pci_write_byte): Likewise.
5650 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5652 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
5653 can still be specified in TARGET_CFLAGS)
5655 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5657 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
5659 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
5660 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
5661 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
5662 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
5663 (FULOONG): Rename to ...
5664 (FULOONG2F): ... this. All users updated.
5665 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
5666 (machtype_fuloong2f_str): ... this.
5667 (machtype_fuloong2e_str): New string.
5668 Check for machtype_fuloong2e_str.
5669 * grub-core/loader/mips/linux.c (loongson_machtypes)
5670 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
5671 * grub-core/term/serial.c (loongson_defserial)
5672 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
5673 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
5675 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
5677 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
5678 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
5679 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
5680 to IMAGE_FULOONG2F_FLASH. All users updated.
5681 (image_targets): Rename images.
5682 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
5684 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5686 Make enable of disk cache statistics code configurable.
5688 * configure.ac: --enable-cache-stats added.
5689 * config.h.in (DISK_CACHE_STATS): New define.
5690 * grub-core/Makefile.core.def (cacheinfo): New command.
5691 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
5692 * grub-core/commands/cacheinfo.c: New file.
5693 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
5694 moved to cacheinfo.c.
5695 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
5697 * include/grub/disk.h: Likewise.
5699 2011-08-19 Szymon Janc <szymon@janc.net.pl>
5701 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
5702 * grub-core/Makefile.am: Likewise.
5704 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5706 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
5709 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5711 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
5713 (grub_jfs_lookup_symlink): Use correct starting inode.
5715 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5717 * util/grub-setup.c (main): Add missing gcry initialisation.
5719 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5721 Don't accept text modes on EFI when booting Linux.
5723 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
5724 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
5726 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
5727 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5729 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
5730 use of "/path/.." as in grub-install for EFI as well as handling
5732 Fixes Debian bug #637768.
5734 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
5736 * util/grub-probe.c: Remove duplicate #include.
5738 2011-08-10 Robert Millan <rmh@gnu.org>
5740 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
5742 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
5744 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
5745 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
5747 2011-08-03 Robert Millan <rmh@gnu.org>
5749 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
5751 Reported by: Zachary Bedell
5753 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5755 * configure.ac: The Loongson port requires grub-mkfont due to its
5756 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
5759 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
5761 * util/grub-install.in: Don't source grub-mkconfig_lib until after
5762 processing arguments (otherwise help2man fails when GRUB has not yet
5765 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5767 New script grub-mkstandalone.
5769 * Makefile.util.def (grub-mkstandalone): New script.
5770 * docs/man/grub-mkstandalone.h2m: New file.
5771 * util/grub-mkstandalone.in: Likewise.
5773 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5775 Support ATA disks with 4K sectors.
5777 * include/grub/ata.h (grub_ata): New member log_sector_size.
5778 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
5779 (grub_ata_identify): Read sector size.
5780 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
5782 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5784 * util/grub-install.in: Don't use uhci outside of x86.
5786 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5788 * util/grub-mkrescue.in: Add missing quotes.
5790 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5792 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
5795 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5797 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
5799 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5801 * include/grub/video.h: add missing EXPORT_FUND on
5802 grub_video_edid_checksum and grub_video_edid_preferred_mode.
5804 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5806 * include/grub/mips/kernel.h: Fix define conflict.
5808 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
5810 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
5813 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
5815 Preferred resolution detection for VBE.
5817 * grub-core/video/video.c (grub_video_edid_checksum): New function.
5818 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
5819 the Flat Panel extension, in line with the X.org VESA driver.
5820 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
5822 (grub_vbe_bios_get_ddc_capabilities): Likewise.
5823 (grub_vbe_bios_read_edid): Likewise.
5824 (grub_vbe_get_preferred_mode): Likewise.
5825 (grub_video_vbe_setup): When the mode is "auto", try to get the
5826 preferred mode from VBE, and use the largest mode that is no larger
5827 than the preferred mode (some BIOSes expose a preferred mode that is
5828 not in their mode list!). If this fails, fall back to 640x480 as a
5829 safe conservative choice.
5830 (grub_video_vbe_get_edid): New function.
5831 (grub_video_vbe_adapter): Add get_edid.
5832 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
5833 (struct grub_video_adapter): Add get_edid.
5834 (grub_video_edid_checksum): Add prototype.
5835 (grub_video_edid_preferred_mode): Likewise.
5836 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
5839 * grub-core/commands/videoinfo.c (print_edid): New function.
5840 (grub_cmd_videoinfo): Print EDID if available.
5842 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
5843 is more appropriate on a wider range of platforms than 640x480.
5844 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
5847 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5849 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
5851 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5853 * po/POTFILES.in: Regenerate.
5855 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5857 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
5858 incorrect memory usage.
5860 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5862 * util/grub-install.in: Source grub-mkconfig_lib.
5864 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5866 Remove getroot.c from core on emu platform.
5868 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
5870 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
5872 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
5873 * util/getroot.c (get_win32_path): ... here.
5874 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
5875 * util/getroot.c (fini_libzfs): ... here.
5876 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
5877 * util/getroot.c (grub_get_libzfs_handle): ... here.
5878 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
5880 * util/getroot.c (grub_find_zpool_from_dir): ... here.
5881 * grub-core/kern/emu/misc.c
5882 (grub_make_system_path_relative_to_its_root): Moved from here...
5883 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
5884 * grub-core/kern/emu/getroot.c: Moved from here ...
5885 * util/getroot.c: ... here. All users updated.
5886 * grub-core/kern/emu/raid.c: Moved from here ...
5887 * util/raid.c: ... here. All users updated.
5889 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
5891 * po/POTFILES.in: Regenerate.
5893 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5895 Fix compilation on GNU/Linux.
5897 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
5899 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
5900 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
5901 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
5903 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5904 2011-07-07 Michael Gorven <michael@gorven.za.net>
5905 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
5907 LUKS and GELI support.
5909 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
5910 grub-core/disk/luks.c, grub-core/disk/geli.c,
5911 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
5912 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
5913 grub-core/lib/arg.c.
5914 (libgrubmods.a): Remove gcrypts cflags and cppflags.
5915 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
5916 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
5917 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
5918 (grub-bin2h): Add libgcry.a.
5919 (grub-mkimage): Likewise.
5920 (grub-mkrelpath): Likewise.
5921 (grub-script-check): Likewise.
5922 (grub-editenv): Likewise.
5923 (grub-mkpasswd-pbkdf2): Likewise.
5924 (grub-pe2elf): Likewise.
5925 (grub-fstest): Likewise.
5926 (grub-mkfont): Likewise.
5927 (grub-mkdevicemap): Likewise.
5928 (grub-probe): Likewise.
5929 (grub-ofpath): Likewise.
5930 (grub-mklayout): Likewise.
5931 (example_unit_test): Likewise.
5932 (grub-menulst2cfg): Likewise.
5933 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
5934 * grub-core/Makefile.core.def (cryptodisk): New module.
5937 * grub-core/disk/AFSplitter.c: New file.
5938 * grub-core/disk/cryptodisk.c: Likewise.
5939 * grub-core/disk/geli.c: Likewise.
5940 * grub-core/disk/luks.c: Likewise.
5941 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
5943 (grub_util_get_dm_abstraction): New function.
5944 (grub_util_follow_gpart_up): Likewise.
5945 (grub_util_get_geom_abstraction): Likewise.
5946 (grub_util_get_dev_abstraction): Use new functions.
5947 (grub_util_pull_device): Pull GELI and LUKS.
5948 (grub_util_get_grub_dev): Handle LUKS and GELI.
5949 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
5950 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
5951 (follow_geom_up): Removed.
5952 (grub_util_fd_seek): New function.
5953 (open_device): Use grub_util_fd_seek.
5954 (nread): Rename to ..
5955 (grub_util_fd_read): ... this. All users updated.
5956 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
5957 (grub_crypto_cbc_decrypt): Likewise.
5958 (grub_crypto_hmac_write): Likewise.
5959 (grub_crypto_hmac_buffer): Likewise.
5960 (grub_password_get): Extend to util.
5961 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
5963 (gcry_md_spec) [GRUB_UTIL]: Likewise.
5964 * include/grub/cryptodisk.h: New file.
5965 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
5966 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
5968 (grub_util_follow_gpart_up): New proto.
5969 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
5970 (grub_util_fd_read): Likewise.
5971 (grub_cryptodisk_cheat_mount): Likewise.
5972 (grub_util_cryptodisk_print_uuid): Likewise.
5973 (grub_util_get_fd_sectors): Likewise.
5974 * util/grub-fstest.c (mount_crypt): New var.
5975 (fstest): Mount crypto if requested.
5976 (options): New option -C.
5977 (argp_parser): Parse -C.
5978 (main): Init and fini gcry.
5979 * util/grub-install.in: Support cryptodisk install.
5980 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
5981 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
5983 (prepare_grub_to_access_device): Likewise.
5984 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
5985 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
5986 (probe_cryptodisk_uuid): New function.
5987 (probe_abstraction): Likewise.
5988 (probe): Use new functions.
5989 * util/import_gcry.py: Create Makefile.utilgcry.def.
5992 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5994 Lazy device scanning.
5996 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
5997 (grub-setup): Remove util/raid.c.
5998 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
5999 * grub-core/disk/lvm.c (scan_depth): New variable.
6000 (grub_lvm_iterate): Rescan if necessary.
6001 (find_lv): New function based on grub_lvm_open.
6002 (grub_lvm_open): Use find_lv. Rescan on error.
6003 (is_node_readable): New function.
6004 (is_lv_readable): Likewise.
6005 (grub_lvm_scan_device): Skip already found disks.
6006 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
6007 Stop if searched device is found and readable.
6008 * grub-core/disk/raid.c (inscnt): New variable.
6009 (scan_depth): Likewise.
6010 (scan_devices): New function based on grub_raid_register. Abort if
6011 looked for device is found.
6012 (grub_raid_iterate): Rescan if needed.
6013 (find_array): NEw function based on -grub_raid_open.
6014 (grub_raid_open): Use find_array and rescan.
6015 (insert_array): Set became_readable_at.
6016 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
6017 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
6019 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
6020 (grub_util_pull_device): New function.
6021 (grub_util_get_grub_dev): Call grub_util_pull_device.
6022 * util/raid.c: Moved to ..
6023 * grub-core/kern/emu/raid.c: ... here.
6024 (grub_util_raid_getmembers): New parameter "bootable".
6025 All users updated. Support 1.x.
6026 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
6028 * include/grub/disk.h (grub_disk_pull_t): New enum.
6029 (grub_disk_dev): Change iterate prototype.
6031 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
6033 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
6034 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
6035 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
6036 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
6038 * include/grub/util/raid.h: Removed.
6040 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
6042 * po/POTFILES.in: Regenerate.
6044 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
6046 Unify sparc init with other ieee1275.
6048 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
6049 instead of kern/sparc64/ieee1275/init.c.
6050 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
6051 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
6052 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
6053 grub/machine/kernel.h.
6054 (grub_ieee1275_original_stack) [__sparc__]: New variable.
6055 (grub_claim_heap) [__sparc__]: Use sparc version.
6056 (grub_machine_init): Moved args parsing to
6057 (grub_parse_cmdline): ...this.
6058 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
6059 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
6061 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
6063 Move BOOTP to separate file.
6065 * grub-core/Makefile.core.def (net): Add net/bootp.c.
6066 * grub-core/net/net.c: Move all BOOTP functions to
6067 * grub-core/net/bootp.c: ... here.
6069 Use frame interface on PXE.
6071 * grub-core/Makefile.core.def (pxecmd): Removed.
6072 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
6073 * grub-core/commands/i386/pc/pxecmd.c: Removed.
6074 * grub-core/i386/pc/pxe.c: Moved from here ...
6075 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
6076 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
6077 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
6079 EFI network support.
6081 * grub-core/Makefile.core.def (efinet): New module.
6082 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
6084 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
6086 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
6087 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
6088 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
6089 * grub-core/net/drivers/efi/efinet.c: New file.
6090 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
6091 (grub_efi_net_config): New extern var.
6093 Various cleanups and bugfixes.
6095 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
6097 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
6098 disk declared as partition.
6099 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
6101 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
6102 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
6103 (grub_debug_zalloc): Likewise.
6104 (grub_debug_realloc): Likewise.
6105 (grub_debug_memalign): Likewise.
6106 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
6107 Check that target is IPv4.
6108 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
6109 local-mac-address as fallback.
6110 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
6112 * grub-core/net/ip.c (ipchksum): Rename to ...
6113 (grub_net_ip_chksum): ... this. All users updated.
6114 (grub_net_recv_ip_packets): Special handling for DHCP.
6115 * util/grub-mkimage.c (generate_image): Zero-out aout header.
6117 Unify prefix handling
6119 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
6120 (grub_machine_get_bootlocation): ... this.
6121 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
6122 (grub_machine_get_bootlocation): ... this.
6123 (grub_prefix): New variable.
6125 (root_dev): New variable.
6127 (main): Use new variables.
6128 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
6130 (grub_machine_get_bootlocation): ... this.
6131 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
6132 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
6133 (grub_machine_get_bootlocation): ... this.
6134 (grub_machine_set_prefix): Removed.
6135 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
6136 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
6138 (grub_machine_get_bootlocation): ... this.
6139 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
6140 (grub_set_prefix_and_root): ... this. All users updated.
6141 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
6143 (grub_machine_get_bootlocation): ... this.
6144 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
6145 (grub_machine_get_bootlocation): New proto.
6146 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
6148 Less intrusive and more reliable seek on network implementation.
6150 * grub-core/kern/file.c (grub_file_net_seek): Removed.
6151 (grub_file_seek): Don't call grub_file_net_seek.
6152 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
6153 (grub_net_fs_read_real): .. this.
6154 (grub_net_seek_real): Use net->offset.
6155 (grub_net_fs_read): Seek if necessary.
6157 Unify IEEE1275 netwotk config with the other platforms.
6159 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
6161 (grub_machine_get_bootlocation): Support network.
6162 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
6163 Support type and device parsing.
6164 (grub_ieee1275_get_device_type): New function.
6165 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
6167 (grub_ieee1275_net_config_real): ... this.
6168 (grub_ofnet_probecards): Removed.
6169 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
6170 * include/grub/ieee1275/ofnet.h: Removed.
6171 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
6173 (grub_ieee1275_get_device_type): New function.
6175 Unify network device closing across platforms and make more robust.
6177 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
6179 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
6181 * grub-core/net/net.c (grub_net_network_level_interface_register):
6183 (grub_net_card_unregister): Close all interfaces.
6184 (receive_packets): Don't poll if no iterfaces are registered.
6186 (grub_net_fini_hw): New function.
6187 (grub_net_restore_hw): Likewise.
6188 (fini_hnd): New variable.
6189 (GRUB_MOD_INIT): Register preboot hook.
6190 (GRUB_MOD_FINI): Run and unregister preboot hook.
6192 Poll network cards when idle.
6194 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
6195 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
6196 * grub-core/net/net.c (receive_packets): Save last poll time.
6197 (grub_net_poll_cards_idle_real): New function.
6198 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
6199 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
6200 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
6202 Rename ofnet interfaces.
6204 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
6205 (grub_ofnet_findcards): Use ofnet_%s names.
6207 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
6209 Cleanup socket opening.
6211 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
6212 (grub_net_fs_close): Likewise.
6213 (grub_net_fs_read_real): Use eof member.
6214 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
6215 (+grub_net_udp_close): New inline function.
6217 * include/grub/net/tftp.h: Moved to the top of ...
6218 * grub-core/net/tftp.c: ... here.
6219 * include/grub/net/ip.h: Moved mostly to the top of ...
6220 * grub-core/net/ip.c: ... here.
6221 * include/grub/net/ethernet.h: Moved mostly to the top of ...
6222 * grub-core/net/ethernet.c: ... here.
6224 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
6226 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
6229 * include/grub/net/ip.h (ipv4_ini): Removed.
6230 (ipv4_fini): Likewise.
6232 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
6233 (grub_net_send_ip_packets): Likewise.
6235 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6237 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
6238 grub_read_cmos prototype.
6240 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6242 VGA text support in qemu-mips
6244 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
6245 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
6246 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
6248 * grub-core/kern/i386/qemu/init.c: Renamed to ...
6249 * grub-core/kern/vga_init.c: ... this.
6250 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
6251 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
6252 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
6254 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
6255 GRUB_MACHINE_PCI_IO_BASE.
6257 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6259 MIPS qemu flash support.
6261 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
6263 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
6264 (grub_machine_init): Probe memory if its size isn't known.
6265 * util/grub-mkimage.c (image_targets): Add flash targets.
6266 (generate_image): Handle flash targets.
6268 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6270 MIPS qemu at_keyboard support.
6272 * gentpl.py (videoinkernel): Add qemu-mips.
6273 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
6274 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
6275 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
6277 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
6278 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
6279 * grub-core/term/serial.c (grub_serial_register)
6280 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
6282 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
6284 CMOS support on sparc.
6286 * gentpl.py (cmos): Add powerpc and sparc.
6287 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
6289 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
6290 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
6291 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
6292 grub_set_datetime_cmos.
6293 * grub-core/lib/ieee1275/cmos.c: New file.
6294 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
6295 (find_rtc): Set no_ieee1275_rtc on error.
6296 (grub_get_datetime): Call grub_get_datetime_cmos on error.
6297 (grub_set_datetime): Call grub_set_datetime_cmos on error.
6298 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
6299 fail. Move value to argument. All users updated
6300 (grub_cmos_write): Likewise.
6301 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
6302 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
6303 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
6304 grub_get_datetime_cmos and grub_set_datetime_cmos.
6306 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
6308 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
6309 sourcing grub-mkconfig_lib.
6310 * util/update-grub_lib.in: Likewise.
6311 * util/grub.d/00_header.in: Likewise.
6312 * util/grub.d/10_hurd.in: Likewise.
6313 * util/grub.d/10_kfreebsd.in: Likewise.
6314 * util/grub.d/10_linux.in: Likewise.
6315 * util/grub.d/10_netbsd.in: Likewise.
6316 * util/grub.d/10_windows.in: Likewise.
6317 * util/grub.d/20_linux_xen.in: Likewise.
6318 * util/grub.d/30_os-prober.in: Likewise.
6320 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
6322 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6323 default_bg_color rather than black.
6324 (grub_gfxterm_fullscreen): Likewise.
6325 (grub_gfxterm_background_color_cmd): Save new background color in
6328 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6330 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
6332 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6334 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
6337 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6339 Chainloading on coreboot support.
6341 * grub-core/Makefile.core.def (chain): Add coreboot.
6342 * grub-core/loader/i386/coreboot/chainloader.c: New file.
6344 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6346 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
6349 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6351 Implement time command.
6353 * grub-core/Makefile.core.def (time): New module.
6354 * grub-core/commands/time.c: New file.
6355 * grub-core/script/parser.y: Remove "time" keyword.
6356 * grub-core/script/yylex.l: Likewise.
6358 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6360 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
6362 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6364 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
6365 when handling leftovers.
6367 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6369 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
6370 so that help2man doesn't fail.
6372 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6374 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
6375 type in pointers on sparc64.
6376 (get_card_packet): Likewise.
6378 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
6380 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
6382 (grub_cmd_videoinfo): Fetch current video mode.
6384 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6386 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
6387 because of underlying system restrictions.
6389 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6391 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
6394 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6396 Coreboot video support.
6398 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
6400 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
6401 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
6403 * grub-core/kern/i386/int.S: ... here.
6404 * grub-core/video/i386/pc/vbe.c: Updated includes.
6405 * grub-core/video/i386/pc/vga.c: Likewise.
6406 * include/grub/i386/coreboot/memory.h
6407 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
6408 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
6409 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
6410 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
6412 * include/grub/i386/pc/vga.h: Removed. All users updated.
6414 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6416 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
6417 definitions for dprintf.
6418 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
6420 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
6422 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
6424 (get_card_packet): Likewise.
6426 2011-06-26 Yves Blusseau <blusseau@zetam.org>
6428 Display the path of the file when file is not found
6430 * grub-core/fs/fat.c: Display the filename when file is not found.
6431 * grub-core/fs/fshelp.c: Likewise.
6432 * grub-core/fs/hfs.c: Likewise.
6433 * grub-core/fs/jfs.c: Likewise.
6434 * grub-core/fs/minix.c: Likewise.
6435 * grub-core/fs/ufs.c: Likewise.
6436 * grub-core/fs/btrfs.c: Likewise.
6437 * grub-core/commands/i386/pc/play.c: Likewise.
6439 2011-06-26 Szymon Janc <szymon@janc.net.pl>
6441 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
6442 pointer checks before calling grub_free().
6443 * grub-core/commands/wildcard.c (match_devices): Likewise.
6444 * grub-core/commands/wildcard.c (match_files): Likewise.
6445 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
6446 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
6447 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
6448 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
6449 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
6450 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
6451 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
6452 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
6453 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
6455 2011-06-25 Patrick <p55@mailinator.com>
6457 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
6459 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6461 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
6462 (grub_pxe_send): Likewise.
6463 (GRUB_MOD_INIT): Fix types.
6465 2011-06-24 Szymon Janc <szymon@janc.net.pl>
6467 * grub-core/io/xzio.c: Fix code style issues
6469 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6470 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
6472 Network infrastructure.
6473 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
6475 * include/grub/net/arp.h: New file.
6476 * include/grub/net/device.h: Likewise.
6477 * include/grub/net/ethernet.h: Likewise.
6478 * include/grub/net/ip.h: Likewise.
6479 * include/grub/net/netbuff.h: Likewise.
6480 * include/grub/net/tftp.h: Likewise.
6481 * include/grub/net/udp.h: Likewise.
6482 * include/grub/ieee1275/ofnet.h: Likewise.
6483 * include/grub/emu/export.h: Likewise.
6484 * include/grub/net.h: Likewise.
6485 * grub-core/net/arp.c: Likewise.
6486 * grub-core/net/ethernet.c: Likewise.
6487 * grub-core/net/ip.c: Likewise.
6488 * grub-core/net/udp.c: Likewise.
6489 * grub-core/net/tftp.c: Likewise.
6490 * grub-core/net/netbuff.c: Likewise.
6491 * grub-core/net/net.c: Likewise.
6492 * grub-core/net/drivers/emu/emunet.c: Likewise.
6493 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
6494 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
6496 * grub-core/Makefile.core.def (net): New module.
6500 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
6502 * grub-core/kern/device.c (grub_net_open) : New variable.
6503 (grub_device_open): Handle network device.
6504 (grub_device_close): Likewise.
6505 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
6506 (grub_grubnet_fini): Likewise.
6507 (grub_file_seek): Seek in network device.
6508 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
6509 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
6511 (grub_machine_fini): Call grub_grubnet_fini.
6512 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
6514 (grub_ieee1275_get_aliasdevname): New function.
6515 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
6516 Add unofficial Solaris network info.
6517 (grub_multiboot_make_mbi): Likewise.
6518 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
6519 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
6520 * include/grub/device.h (grub_fs): Removed.
6521 * include/grub/err.h (grub_err_t): Add network-related values.
6522 * include/grub/i386/pc/pxe.h: Removed bootp parts.
6523 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
6524 (grub_ieee1275_get_aliasdevname): New proto.
6525 * include/grub/net.h: Rewritten.
6527 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6529 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
6532 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6534 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
6535 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
6536 it truncates the output.
6537 Reported by: Ximin Luo.
6539 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6541 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
6543 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6545 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
6546 partmap before abstraction.
6548 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
6550 * util/grub-mkconfig_lib.in: Add missing quotes.
6552 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6554 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
6555 old method if mountinfo would return /dev/root and /dev/root doesn't
6558 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6562 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
6563 (decomp_table): Add zlib entries.
6564 (zio_read): USe 8 bits for compression function rather than 3.
6565 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
6567 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
6569 * grub-core/disk/ahci.c: Add missing license statements.
6570 * grub-core/fs/romfs.c: Likewise.
6571 * grub-core/lib/ia64/setjmp.S: Likewise.
6572 * grub-core/loader/i386/pc/freedos.c: Likewise.
6573 * grub-core/loader/ia64/efi/linux.c: Likewise.
6574 * grub-core/video/colors.c: Likewise.
6575 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
6577 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6581 * grub-core/Makefile.core.def (ata_pthru): Removed.
6584 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
6586 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
6588 (grub_hdparm_do_check_powermode_cmd): Likewise.
6589 (grub_hdparm_do_smart_cmd): Likewise.
6590 (grub_hdparm_set_val_cmd): Likewise.
6591 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
6592 * grub-core/disk/ahci.c: New file.
6593 * grub-core/disk/ata.c: Factor out the low-level part into ...
6594 * grub-core/disk/pata.c: ... here.
6595 * grub-core/disk/ata_pthru.c: Contents moved to ...
6596 * grub-core/disk/pata.c: ... here.
6597 * grub-core/disk/scsi.c (grub_scsi_names): New array.
6598 (grub_scsi_iterate): Use grub_scsi_names.
6599 (grub_scsi_open): Likewise.
6600 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
6601 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
6602 (grub_ata_regs_t): New struct.
6603 (grub_disk_ata_pass_through_parms): Likewise.
6604 (grub_ata_device): Renamed to ...
6605 (grub_ata): ... this.
6606 (grub_ata_dev): New struct.
6607 Removed all low-level inline functions.
6608 * include/grub/scsi.h: Add PATA and AHCI subsystems.
6609 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
6610 iterate hooks and open. All users updated.
6611 * util/grub-install.in: Handle AHCI disk module.
6613 2011-06-23 Szymon Janc <szymon@janc.net.pl>
6615 Add support for DRI and RSTn markers in JPEG files.
6617 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
6618 (JPEG_MARKER_RST0): Likewise.
6619 (JPEG_MARKER_RST1): Likewise.
6620 (JPEG_MARKER_RST2): Likewise.
6621 (JPEG_MARKER_RST3): Likewise.
6622 (JPEG_MARKER_RST4): Likewise.
6623 (JPEG_MARKER_RST5): Likewise.
6624 (JPEG_MARKER_RST6): Likewise.
6625 (JPEG_MARKER_RST7): Likewise.
6626 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
6627 (grub_jpeg_decode_dri): New function.
6628 (grub_jpeg_decode_sos): Move image data related part into
6629 grub_jpeg_decode_data function.
6630 (grub_jpeg_decode_data): New function.
6631 (grub_jpeg_reset): New function.
6632 (grub_jpeg_decode_jpeg): Handle new markers.
6634 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6636 * util/ieee1275/ofpath.c (check_sas): Close fd.
6637 (main): Free of_path.
6638 Reported by: David Volgyes <dvolgyes>.
6640 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6642 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
6643 Reported by: David Volgyes <dvolgyes>.
6645 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6647 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
6649 Reported by: David Volgyes <dvolgyes>.
6651 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6653 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
6655 Reported by: David Volgyes <dvolgyes>.
6657 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6659 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
6660 Prevent memory leak.
6662 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6664 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
6666 Reported by: David Volgyes <dvolgyes>.
6668 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6670 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
6671 to continue if allocation is failed.
6673 Reported by: David Volgyes <dvolgyes>.
6675 2011-06-23 David Volgyes <dvolgyes>
6677 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
6680 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6682 Fix spurious warning.
6684 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
6685 (acorn_partition_map_find): Use .bin member.
6687 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6689 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
6690 /dev/root as a valid device.
6692 2011-06-23 Jim Meyering <meyering@redhat.com>
6694 Avoid NULL deref in grub_device_open.
6696 * grub-core/kern/device.c (grub_device_open): Don't dereference
6697 a NULL pointer upon failed grub_env_get.
6699 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6701 Support non-512B sectors and agglomerate reads.
6703 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
6704 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
6705 (disk_io_guid): Removed.
6706 (make_devices): Locate solely by BlockIO.
6707 (grub_efidisk_open): Fill log_sector_size and total_sectors.
6708 (grub_efidisk_read): Use read_blocks.
6709 (grub_efidisk_write): Use write_blocks.
6710 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
6712 (get_safe_sectors): Handle non-512B sectors.
6713 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
6715 (grub_biosdisk_write): Handle non-512B sectors.
6716 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
6717 (grub_scsi_read): Remove special non-512B block handling (now handled
6719 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
6720 and do sanity checks.
6721 (grub_disk_adjust_range): Handle non-512B sectors.
6722 (transform_sector): New function.
6723 (grub_disk_read_small): Likewise.
6724 (grub_disk_read): Rewritten.
6725 (grub_disk_write): Handle non-512B sectors.
6726 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
6728 (open_device): Use log_sector_size.
6729 (grub_util_biosdisk_read): Likewise.
6730 (grub_util_biosdisk_write): Likewise.
6731 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
6733 (pc_partition_map_embed): Likewise.
6734 * include/grub/disk.h (grub_disk): New field log_sector_size.
6735 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
6736 (GRUB_DISK_CACHE_BITS): Increased to 6.
6737 * util/grub-fstest.c (fstest): New command testload.
6738 (argp_parser): Likewise.
6740 2011-06-16 Robert Millan <rmh@gnu.org>
6742 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
6743 `ata' driver on kernel of FreeBSD 9.
6745 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
6746 (get_ataraid_disk_name): New functions.
6747 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
6748 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
6749 get_ataraid_disk_name() and get_ada_disk_name().
6751 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
6753 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
6756 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
6758 * docs/grub.texi (Obtaining and Building GRUB): Substitute
6759 `ftp.gnu.org' for `alpha.gnu.org'.
6761 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6763 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
6764 partitions under /dev/disk/by-id/.
6766 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
6768 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
6769 after ten consecutive open failures. Scanning all the way up to
6770 10000 is excessive and can cause serious performance problems in
6771 some configurations.
6772 Fixes Ubuntu bug #787461.
6774 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6776 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
6779 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
6780 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6782 Don't stat devices unless we have to.
6784 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
6786 (grub_guess_root_device): Use already known os_dev if possible.
6787 * grub-core/kern/emu/hostdisk.c
6788 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
6789 if device is known to be a dm one.
6791 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
6793 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
6794 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
6795 Reported by: Pawel Tecza.
6797 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
6799 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
6800 (lsefisystab): Likewise.
6802 (lsefimmap): Likewise.
6803 (hdparm): Enable on qemu-mips.
6804 (setjmp): Add ia64 nodist.
6805 (serial): Simplify tags.
6807 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6809 * Makefile.util.def (grub-ofpathname): Install manual page.
6811 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6813 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
6815 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6817 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
6819 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6821 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
6824 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6826 Use full 64-bit division.
6828 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
6829 (grub_divmod64): ... this.
6830 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
6833 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6835 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
6838 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6840 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
6841 to avoid accidents when debugging with 'sh -x'.
6842 * grub-core/gensyminfo.sh.in: Likewise.
6843 * tests/example_scripted_test.in: Likewise.
6844 * tests/grub_cmd_regexp.in: Likewise.
6845 * tests/grub_script_blanklines.in: Likewise.
6846 * tests/grub_script_dollar.in: Likewise.
6847 * tests/grub_script_expansion.in: Likewise.
6848 * tests/grub_script_final_semicolon.in: Likewise.
6849 * tests/partmap_test.in: Likewise.
6850 * tests/util/grub-shell-tester.in: Likewise.
6851 * tests/util/grub-shell.in: Likewise.
6853 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6855 Move gfxmenu color handling to video, so that gfxterm can use it
6858 * grub-core/gfxmenu/named_colors.c: Move to ...
6859 * grub-core/video/colors.c: ... here. Rename
6860 grub_gui_get_named_color to grub_video_get_named_color.
6861 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
6862 * grub-core/video/colors.c (my_isxdigit): ... here.
6863 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
6865 * grub-core/video/colors.c (parse_hex_color_component): ... here.
6866 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
6868 * grub-core/video/colors.c (grub_video_parse_color): ... here.
6870 * include/grub/gui.h (grub_gui_color_t): Move to ...
6871 * include/grub/video.h (grub_video_rgba_color_t): ... here.
6872 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
6873 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
6874 * include/grub/gui.h (grub_gui_map_color): Move to ...
6875 * include/grub/video.h (grub_video_map_rgba_color): ... here.
6876 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
6878 * include/grub/video.h (grub_video_get_named_color): ... here.
6879 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
6880 * include/grub/video.h (grub_video_parse_color): ... here.
6882 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
6884 (gfxmenu): Remove gfxmenu/named_colors.c.
6885 (video) [videomodules]: Add video/colors.c.
6887 Add a background_color command.
6889 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
6891 (GRUB_MOD_INIT): Register background_color command.
6892 (GRUB_MOD_FINI): Unregister background_color command.
6893 (redraw_screen_rect): Allow blend/replace of text layer to be
6894 controlled independently from whether there is a background bitmap.
6895 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
6898 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6900 Patch BPB in ntldr and chainloader --bpb.
6902 * grub-core/fs/fat.c: Include grub/fat.h.
6903 (grub_fat_bpb): Moved to ...
6904 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
6905 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
6907 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
6909 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
6911 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
6913 (grub_chainloader_cmd): Patch BPB if --bpb is given.
6914 (GRUB_MOD_INIT): Show --bpb.
6915 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
6916 * grub-core/normal/main.c (features): New variable.
6917 (GRUB_MOD_INIT): Set feature_* variables.
6918 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
6920 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
6922 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6924 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
6927 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6929 FreeDOS direct loading support.
6931 * docs/grub.texi (Supported OS): Add FreeDOS.
6932 * grub-core/Makefile.core.def (freedos): New module.
6933 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
6935 (grub_relocator16_boot): Handle %ebx.
6936 * grub-core/lib/i386/relocator16.S: Likewise.
6937 * grub-core/loader/i386/pc/freedos.c: New file.
6939 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6941 Long Linux command line support.
6943 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
6944 (maximal_cmdline_size): New variable.
6945 (allocate_pages): Use maximal_cmdline_size.
6946 (grub_cmd_linux): Set and use maximal_cmdline_size.
6947 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
6948 (allocate_pages): Use maximal_cmdline_size.
6949 (grub_cmd_linux): Set and use maximal_cmdline_size.
6950 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
6951 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
6954 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6955 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
6957 Improve devmapper support
6959 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
6960 (grub_util_is_lvm): New function.
6961 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
6962 than lvm if not dmraid.
6963 Handle mapped md nodes.
6964 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
6965 (grub_util_device_is_mapped): ... this. Make always available. All users
6967 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
6968 (convert_system_partition_to_system_disk): Handle lvm, mpath and
6970 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
6972 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6974 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
6976 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
6977 * grub-core/modinfo.sh.in: New file.
6978 * grub-core/Makefile.core.def (modinfo.sh): New script.
6979 * util/grub-mknetdir.in: Use modinfo.sh.
6980 * util/grub-mkrescue.in: Likewise.
6982 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6984 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
6985 Fix potential usage of Elf32 instead of Elf64 when compiling on
6986 32-bit architecture. Add endianness macros while on it.
6988 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6990 Use mipsel- rather than mips- in directories involving mipsel ports to
6991 allow both endiannesses coexist.
6993 * configure.ac: proparate target_cpu=mipsel rather than resetting to
6994 mips. All conditions adjusted.
6995 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
6997 * util/grub-install.in: Adjust conditions to take renaming into account.
6998 * util/grub-mkimage.c (image_targets): Likewise. New target
6999 mips-qemu_mips-elf for bigendian mips.
7001 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7003 Avoid unnecessary copying on MIPS.
7005 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
7006 early if src == dest.
7007 * util/grub-mkimage.c (generate_image): Arange for src == dest if
7008 compression is none.
7010 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7012 Reduce memory footprint on SGI by putting modules before the kernel
7013 as opposed to after.
7015 * grub-core/Makefile.core.def (kernel): Increase linking address.
7016 (none_decompress): Likewise.
7017 (xz_decompress): Likewise.
7018 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
7020 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
7022 (grub_arch_modules_addr): New function.
7023 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
7024 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
7025 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
7027 * grub-core/kern/mips/startup.S (total_size): Rename to ...
7028 (grub_total_modules_size): ... this. Make global.
7029 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
7030 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
7032 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
7033 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
7034 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
7035 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
7036 * util/grub-mkimage.c (image_target_desc): New flag
7037 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
7038 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
7039 (generate_image): Handle images with modules before kernel.
7041 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7043 Prevent potential loss of memory map by overwrite on qemu-mips.
7045 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
7046 Save ram size in $s4.
7047 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
7048 All users changed to grub_arch_memsize.
7049 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
7051 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
7052 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
7053 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
7056 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7058 * .bzrignore: Remove grub-dumpbios.
7060 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7062 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
7063 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
7064 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
7065 existing options which append).
7066 * docs/grub.texi (Simple configuration): Document new options.
7067 Reported by: Ian Jackson. Fixes Debian bug #617538.
7069 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7071 * util/grub-fstest.c (cmd_cat): New function.
7072 (fstest): Handle CMD_CAT.
7074 (argp_parser): Handle cat.
7076 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
7078 * Makefile.util.def (grub-bin2h): Don't install.
7079 * docs/man/grub-bin2h.h2m: Remove.
7081 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7083 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
7086 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7088 Reenable qemu-mips port.
7090 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
7091 Fix small arc bug while on it.
7092 * gentpl.py: Handle qemu_mips.
7093 * grub-core/Makefile.am: Likewise.
7094 * grub-core/Makefile.core.def: Likewise.
7095 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
7096 inappropriate includes.
7097 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
7098 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
7099 * grub-core/kern/main.c (grub_modules_get_end)
7100 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
7101 * grub-core/kern/mips/qemu-mips: Moved to ..
7102 * grub-core/kern/mips/qemu_mips: ... this.
7103 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
7104 (grub_machine_init): Call terminfo_init and serial_init.
7105 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
7106 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
7108 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
7110 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
7111 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
7112 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
7113 * include/grub/mips/qemu_mips/cmos.h: New file.
7114 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
7115 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
7117 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
7118 Use correct mips-style address.
7119 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
7120 (GRUB_TICKS_PER_SECOND): Removed.
7121 (grub_get_rtc): Likewise.
7122 (grub_cpu_idle): Likewise.
7123 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
7125 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
7126 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
7127 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
7128 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
7129 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
7130 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
7131 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
7132 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
7134 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7138 * Makefile.util.def (libgrubmods.a): Add dvh.c.
7139 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
7141 * configure.ac: New target mips-arc.
7142 * gentpl.py: Likewise.
7143 * grub-core/Makefile.am: Likewise.
7144 * grub-core/Makefile.core.def: Likewise.
7145 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
7146 (none_decompress): Likewise.
7147 (lsdev): New module.
7148 (datetime): Use lib/arc/datetime.c on ARC.
7149 (part_dvh): New module.
7150 * grub-core/commands/arc/lsdev.c: New file.
7151 * grub-core/disk/arc/arcdisk.c: Likewise.
7152 * grub-core/kern/mips/arc/init.c: Likewise.
7153 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
7155 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
7157 (grub_arch_dl_relocate_symbols): Likewise.
7158 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
7159 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
7160 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
7162 * grub-core/lib/arc/datetime.c: New file.
7163 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
7164 pci.h on non-loongson.
7165 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
7166 (grub_linux_boot): Set unused registers to 0.
7167 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
7168 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
7169 * grub-core/mmap/mips/uppermem.c: ...here.
7170 * grub-core/partmap/dvh.c: New file.
7171 * grub-core/term/arc/console.c: Likewise.
7172 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
7173 (grub_terminfo_set_current): Add terminal "arc".
7174 (grub_terminfo_readkey): Support ARC sequences.
7175 * include/grub/arc/arc.h: New file.
7176 * include/grub/arc/console.h: Likewise.
7177 * include/grub/disk.h (grub_disk_dev_id): Add
7178 GRUB_DISK_DEVICE_ARCDISK_ID.
7179 * include/grub/mips/arc/kernel.h: New file.
7180 * include/grub/mips/arc/memory.h: Likewise.
7181 * include/grub/mips/arc/time.h: Likewise.
7182 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
7183 * include/grub/mips/kernel.h (grub_halt): ... here.
7184 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
7186 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
7187 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
7188 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
7189 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
7191 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
7193 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
7194 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
7195 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
7196 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
7197 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
7198 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
7199 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
7200 (grub_phys_addr_t): Moved from here ...
7201 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
7202 (grub_vtop): Moved from here ...
7203 * include/grub/mips/memory.h (grub_vtop): ... here.
7204 (grub_map_memory): Moved from here ...
7205 * include/grub/mips/memory.h (grub_map_memory): ... here.
7206 (grub_unmap_memory): Moved from here ...
7207 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
7208 (grub_machine_mmap_iterate): Moved from here ...
7209 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
7210 (grub_mmap_get_lower): Moved from here ...
7211 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
7212 (grub_mmap_get_upper): Moved from here ...
7213 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
7214 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
7216 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
7217 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
7219 * include/grub/mips/time.h (grub_get_rtc): ... here.
7220 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
7222 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
7223 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
7225 * include/grub/mips/time.h (grub_cpu_idle): ... here.
7226 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
7228 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
7229 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
7230 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
7231 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
7232 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
7233 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
7234 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
7235 (GRUB_MACHINE_LINK_ADDR): Likewise.
7236 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
7238 * util/grub-install.in: Run dvhtool on ARC.
7239 * util/grub-mkimage.c (image_targets): Add mips-arc.
7240 (generate_image): Handle ECOFF output for mips-arc.
7242 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7244 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
7247 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7249 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
7250 after enabling port.
7252 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7254 Skip incorrect USB devices.
7256 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
7258 * include/grub/usb.h (grub_usb_err_t): New enum value
7259 GRUB_USB_ERR_BADDEVICE.
7261 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
7263 Fuloong video init support.
7265 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
7267 (grub_vga_read_arx): New function.
7268 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
7270 (framebuffer): New members io, mmioptr and mmiobase.
7271 (read_sis_cmd): New function.
7272 (write_sis_cmd): Likewise.
7273 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
7274 rather than 640x400.
7275 * grub-core/video/sis315_init.c: New file.
7277 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7279 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
7281 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
7282 to grub_dl_register_symbol.
7284 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7286 Fix compilation errors.
7288 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
7290 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
7291 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
7292 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
7293 to loongson machines.
7295 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7297 Several FS mtime support.
7299 * grub-core/fs/affs.c (grub_affs_time): New struct.
7300 (grub_affs_file): New field mtime.
7301 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
7302 type. Removed 'size'. New field 'di'. All users updated.
7303 (grub_affs_mount): Simplify checsum checking.
7304 (grub_affs_iterate_dir): New helper grub_affs_create_node.
7305 (grub_affs_dir): Handle mtime.
7306 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
7307 (grub_cpio_dir): Likewise.
7308 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
7309 (grub_hfs_filerec): New field mtime.
7310 (grub_hfs_dir): Handle mtime.
7311 (grub_hfs_mtime): New function.
7312 (grub_hfs_fs): Register grub_hfs_mtime.
7313 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
7314 (grub_iso9660_dir): New field mtime.
7315 (grub_fshelp_node): New field dirent.
7316 (iso9660_to_unixtime): New function.
7317 (iso9660_to_unixtime2): Likewise.
7318 (grub_iso9660_read_symlink): Use node->dirent.
7319 (grub_iso9660_iterate_dir): Likewise.
7320 (grub_iso9660_dir): Set mtime.
7321 (grub_iso9660_mtime): New function.
7322 (grub_iso9660_fs): Register grub_iso9660_mtime.
7323 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
7324 (grub_jfs_inode): New fields atime, ctime and mtime.
7325 (grub_jfs_dir): Set mtime.
7326 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
7327 * grub-core/fs/ntfs.c (list_file): Set mtime.
7328 (grub_ntfs_dir): Likewise.
7329 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
7330 (grub_reiserfs_iterate_dir): Set mtime.
7331 (grub_reiserfs_dir): Likewise.
7332 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
7333 (grub_fshelp_node): Likewise.
7334 (grub_sfs_iterate_dir): Set mtime.
7335 (grub_sfs_dir): Likewise.
7336 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
7337 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
7338 (grub_xfs_inode): New fields atime, mtime, ctime.
7339 (grub_xfs_dir): Set mtime.
7340 * include/grub/datetime.h (grub_datetime2unixtime): New function.
7341 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
7342 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
7344 Support UDF symlinks.
7346 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
7347 (grub_ufs_read_symlink): New function. All users updated.
7349 Check amiga partmap checksum.
7351 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
7352 (grub_amiga_partition): Likewise.
7353 (amiga_partition_map_checksum): New function.
7354 (amiga_partition_map_iterate): Check checksum.
7356 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7360 * Makefile.util.def (libgrubmods.a): Add romfs.
7361 * grub-core/Makefile.core.def (romfs): New module.
7362 * grub-core/fs/romfs.c: New file.
7364 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7366 Squashfs v4 support.
7368 * Makefile.util.def (libgrubmods.a): Add squash4.
7369 * grub-core/Makefile.core.def (squash4): New module.
7370 * grub-core/fs/squash4.c: New file.
7371 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
7372 disk_input_start, disk_input.
7373 (get_byte): Handle disk_input.
7374 (grub_zlib_disk_read): New function.
7375 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
7377 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7378 2011-05-15 Feiran Zheng <famcool@gmail.com>
7380 * Makefile.util.def (libgrubmods.a): Add minix3.
7381 * grub-core/Makefile.core.def (minix3): New module.
7382 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
7383 (GRUB_MINIX_BSIZE): Removed.
7384 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
7385 (grub_minix_ino_t): New type.
7386 (grub_minix_le_to_cpu_ino): New macro.
7387 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
7388 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
7389 (grub_minix_data): New field block_size.
7390 (grub_minix_read_file): Handle 64-bit correctly.
7391 * grub-core/fs/minix3.c: New file.
7393 2011-05-15 Tristan Gingold <gingold@free.fr>
7394 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
7395 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7399 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
7400 * configure.ac: Add ia64-efi target.
7401 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
7402 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
7403 * gentpl.py: Add ia64_efi platform.
7404 Rename x86_efi to efi and Add ia64-efi. All users updated.
7405 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
7406 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
7407 Remove kern/generic/rtc_get_time_ms.c on EFI.
7408 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
7409 kern/ia64/dl_helper.c on ia64-efi.
7410 Add kern/emu/cache.c on emu.
7411 (linux): Use on loader/ia64/efi/linux.c on ia64.
7412 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
7413 whether symbol is a function.
7414 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
7415 (grub_symbol): New field 'isfunc'.
7416 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
7417 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
7418 (grub_dl_load_segments): Place all sections into the same region.
7419 [__ia64__]: Create trampolines and got.
7420 [GRUB_MACHINE_EMU]: Call mprotect.
7421 (grub_dl_resolve_symbols): Resolve symbol type as well.
7422 [__ia64__]: Create function descriptors.
7423 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
7424 (grub_rtc_get_time_ms): ... this. Expressions simplified.
7425 (grub_get_rtc): New function.
7426 * grub-core/kern/emu/cache.c [__ia64__]: New file.
7427 * grub-core/kern/emu/cache.S: Renamed to ...
7428 * grub-core/kern/emu/cache_s.S: ... this.
7429 [__ia64__]: Add a nop.
7430 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
7431 [__ia64__]: New function.
7432 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
7433 * grub-core/kern/ia64/dl.c: New file.
7434 * grub-core/kern/ia64/dl_helper.c: Likewise.
7435 * grub-core/kern/ia64/efi/init.c: New file.
7436 * grub-core/kern/ia64/efi/startup.S: Likewise.
7437 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
7438 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
7439 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
7440 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
7441 * grub-core/loader/ia64/efi/linux.c: New file.
7442 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
7443 (GRUB_MOD_DEP): Likewise.
7444 (grub_dl) [__ia64__]: New fields got and tramp.
7445 (grub_dl): New field 'base'.
7446 (grub_dl_register_symbol): New argument isfunc. All users updated.
7447 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
7448 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
7449 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
7450 (grub_ia64_dl_get_tramp_got_size): New proto.
7451 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
7452 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
7453 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
7454 * include/grub/efi/api.h: Skip call wrappers on ia64.
7455 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
7456 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
7457 * include/grub/elf.h (ELF_ST_INFO): New definition.
7458 * include/grub/ia64/efi/kernel.h: New file.
7459 * include/grub/ia64/efi/memory.h: Likewise.
7460 * include/grub/ia64/efi/time.h: Likewise.
7461 * include/grub/ia64/kernel.h: Likewise.
7462 * include/grub/ia64/setjmp.h: Likewise (from glibc).
7463 * include/grub/ia64/time.h: New file.
7464 * include/grub/ia64/types.h: Likewise.
7465 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
7466 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
7468 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
7469 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
7470 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
7471 * util/grub-mkimage.c (image_target_desc): New field pe_target.
7473 (EFI64_HEADER_SIZE): New definition. All users updated.
7474 (image_targets): Add ia64-efi.
7475 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
7476 jumpers_addr. All users updated.
7477 Create function descriptors.
7478 (count_funcs): New function.
7479 (unaligned_uint32): New struct.
7480 (MASK20): New definition.
7482 (MASKF21): Likewise.
7483 (add_value_to_slot_20b): New function.
7484 (add_value_to_slot_21_real): Likewise.
7485 (add_value_to_slot_21): Likewise.
7486 (ia64_kernel_trampoline): New struct.
7487 (nopm): New variable.
7489 (make_trampoline): New function.
7490 (relocate_addresses): Handle ia64.
7491 (make_reloc_section): Likewise.
7492 (load_image): Likewise.
7494 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7496 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
7497 warning. Move variables before code while on it.
7499 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7503 * configure.ac: Rename yeeloong platform to loongson. All users updated.
7504 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
7505 * grub-core/boot/mips/loongson/fuloong.S: New file.
7506 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
7507 Explicitly init CS5536.
7508 [FULOONG]: Don't use serial until CS5536 is available.
7509 Set GPIO based on dumps.
7510 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
7511 [FULOONG]: Handle GPIO and memory controller differences.
7512 Parse machine type in $a2.
7513 * grub-core/boot/mips/startup_raw.S: Determine and save the
7515 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
7516 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
7517 init on architecture type.
7518 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
7519 SIS315E. Don't init at_keyboard on fuloong.
7520 (grub_halt): Support Fuloong.
7521 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
7522 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
7523 (loongson_machtypes): New array.
7524 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
7526 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
7527 config. All users updated. Handle CS5536 serial.
7528 * grub-core/term/serial.c (grub_serial_register): Conditionalise
7529 default port on machine type. Register serial as inactive.
7530 * grub-core/video/sis315pro.c: New file.
7531 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
7533 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
7534 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
7535 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
7536 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
7537 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
7538 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
7540 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
7541 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
7543 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
7544 (grub_arch_machine): New extern var.
7545 * include/grub/mips/loongson/serial.h
7546 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
7547 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
7548 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
7549 (GRUB_MACHINE_SERIAL_PORT0): ... this.
7550 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
7551 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
7552 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
7553 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
7554 * include/grub/term.h (grub_term_register_input_inactive): New inline
7556 (grub_term_register_output_inactive): Likewise.
7557 * include/grub/video.h (grub_video_driver_id): New value
7558 GRUB_VIDEO_DRIVER_SIS315PRO.
7559 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
7560 New field "names". All users updated.
7561 New field value IMAGE_FULOONG_FLASH.
7562 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
7564 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
7566 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
7567 and add some clarification.
7569 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7571 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
7572 platforms if kernel is compressed.
7574 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7576 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
7577 unused modules since currently referrence counter isn't reliable and
7578 there isn't much memory to recover there anyway.
7580 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7582 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
7583 rather than resetting it to allow modules to reference themselves
7586 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7588 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
7589 counter on dependencies since grub_dl_unref already handles this.
7591 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7593 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
7594 on error if not already done.
7596 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7598 Fix few potential memory misusage.
7600 * grub-core/font/font.c (load_font_index): Don't free char_index to
7602 (grub_font_load): Zero-fill font at alloc for safety.
7603 Close file on error.
7604 (free_font): Free bmp_idx.
7606 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7608 * docs/grub.texi (Installation): Fix several outdated claims.
7610 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7612 Handle module_license on windows.
7614 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
7616 (insert_string): Make argument const char * instead of char *.
7617 (write_section_data): Handle long section names.
7618 Handle module_license.
7620 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7622 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
7623 handle class-free menuentries.
7624 (grub_normal_add_menu_entry): Add a check to be sure.
7626 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7628 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
7631 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7633 * configure.ac: Bump version to 1.99.
7635 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7637 Give ATA device a bit more time on first try in order to allow disks
7640 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
7641 if dev->present is 1. Reset dev->present on failure.
7642 (grub_ata_device_initialize): Set dev->present to 1.
7643 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
7644 (grub_ata_device): New member 'present'.
7646 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7648 * util/grub-mkimage.c (generate_image): Update hash.
7650 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7652 Flush caches on DMA memory.
7654 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
7655 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
7656 (grub_dma_free): Likewise.
7657 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
7659 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7661 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
7662 to avoid asm treating ld and sd as macros.
7664 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7666 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
7669 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7671 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
7672 grub_decompress_core since later would fail if grub_decompress_core
7675 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7677 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
7678 R_MIPS_JALR since it's used by newer compiler.
7680 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7682 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
7684 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7686 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
7687 file_path to 0 for surety.
7688 (grub_chainloader_boot): Set exit_data to NULL.
7689 Unset the loader once done.
7690 (grub_cmd_chainloader): Fix confusing error message if file is empty.
7692 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7694 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
7695 unknown key into a dprintf.
7697 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7699 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
7700 on first non-existant partition.
7702 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7704 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
7706 Reported by: Mark Korenberg.
7708 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7710 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
7713 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7715 * util/grub-mkimage.c (main): Explicitely flush and sync the output
7716 before closing to ensure that it will be readable by grub-setup.
7718 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7720 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
7721 (devpath_1): Use MAKE_PIWG_PATH.
7722 (devpath_2): Likewise.
7723 (devpath_3): Likewise.
7724 (devpath_4): Likewise.
7725 (devpath_5): Likewise.
7726 (devpath_6): Likewise.
7728 The appleldr.mod was checked that to be binary identical to previous
7731 2011-05-05 Zach <mikezackles>
7733 Support 2010 Macbooks.
7735 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
7736 (devs): Add devpath_6.
7738 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7740 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
7741 /dev/random. /dev/urandom is good enough for our purposes (salting).
7743 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7745 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
7747 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7749 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
7752 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7754 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
7755 and not 0 on failure.
7757 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7759 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
7760 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
7761 disk; otherwise grub_fs_probe will not fall back to the next
7763 (grub_pxefs_open): Likewise, for consistency.
7764 Reported and tested by: Ezekiel Grave.
7766 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
7768 * tests/partmap_test.in: Don't hardcode path to parted.
7769 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
7771 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
7773 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
7774 of `ls' to find out which devices are available.
7776 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7778 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
7779 than source address for efi mmap buffer.
7781 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7783 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
7784 wrong action on non-detecting the magic.
7786 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7788 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
7789 already supplied by another part of the module (fixes compilation on
7792 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7794 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
7795 match the one used by mdadm.
7797 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7799 * po/README: Add instructions for creating po/LINGUAS.
7801 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7803 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
7806 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
7807 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
7808 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
7809 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7810 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
7811 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
7812 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
7813 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
7814 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
7815 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7816 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
7817 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
7818 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
7819 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
7820 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
7821 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
7822 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
7823 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
7824 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
7825 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
7826 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
7827 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
7829 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7831 * grub-core/kern/emu/getroot.c
7832 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
7833 test that was incorrectly reintroduced in r3214.
7834 Reported by: Ian Dall. Fixes Savannah bug #33133.
7836 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
7838 Fix stack pointer handling in 16-bit relocator.
7840 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
7841 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
7842 Fixes Ubuntu bug #683904.
7844 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7846 * configure.ac: Bump version to 1.99~rc2.
7848 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7850 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
7851 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
7852 * grub-core/lib/x86_64/setjmp.S: Likewise.
7853 * grub-core/lib/mips/setjmp.S: Likewise.
7854 * grub-core/lib/powerpc/setjmp.S: Likewise.
7855 * grub-core/lib/sparc64/setjmp.S: Likewise.
7857 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
7859 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
7860 * grub-core/lib/efi/datetime.c: Likewise.
7862 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7864 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
7866 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
7867 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
7868 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
7870 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7872 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
7874 (grub_gfxterm_term_init): Likewise.
7876 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7878 Take into account the decorations the computing menu entry width.
7880 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
7881 (grub_gfxmenu_create_box): Register get_border_width.
7882 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
7884 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
7887 2011-04-18 Endres Puschner <code@e7p.de>
7889 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
7890 Don't skip first class.
7892 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7894 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
7896 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
7898 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7900 Complete 64-bit division support.
7902 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
7903 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
7904 * include/grub/misc.h (grub_divmod64): Rename to ...
7905 (grub_divmod64_full): ... this.
7906 (grub_divmod64): New inline function.
7908 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7910 * util/grub-mkimage.c (generate_image): Add forgotten comma.
7912 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7914 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
7915 performing the necessary test.
7917 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7919 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
7920 (kfreebsd.elf): Likewise.
7921 (pc-chainloader.elf): Likewise.
7922 (ntldr.elf): Likewise.
7924 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7926 Identify RAID by its UUID rather than (guessed) name.
7928 * grub-core/disk/raid.c (ascii2hex): New function.
7929 (grub_raid_open): Accept mduuid/%s specification.
7930 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
7931 (get_mdadm_uuid): ... this.
7932 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
7934 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
7936 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
7939 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
7941 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
7943 * util/grub.d/20_linux_xen.in: Likewise.
7945 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
7947 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
7948 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
7950 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
7951 Build a list of relevant visible mounts using the mnt_id and
7952 parent_mnt_id fields, and then scan that list at the end.
7954 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7956 * docs/grub.texi (normal): New section.
7957 (normal_exit): New section.
7958 (Embedded configuration): Add reference to normal.
7959 (GRUB only offers a rescue shell): Likewise.
7960 * docs/grub-dev.texi (Error Handling): Fix typo.
7962 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7964 * NEWS: Drop obsolete entry about probe-only btrfs support.
7966 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
7968 * util/import_gcry.py: Fix typo.
7970 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7972 * NEWS: Add btrfs support.
7974 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7975 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
7977 BtrFS support. Written by me (Vladimir) with important bugfixes and
7978 even more important testing by Colin.
7980 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
7981 * grub-core/Makefile.core.def (btrfs): Add crc.c.
7982 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
7983 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
7984 mem_input_off and mem_input. All users updated to accept in-RAM input.
7985 (gzio_seek): New function.
7986 (test_zlib_header): Likewise.
7987 (grub_gzio_read): Likewise.
7988 (grub_zlib_decompress): Likewise.
7989 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
7990 Accept partial and non-virtual mounts.
7991 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
7992 avoid receiving /dev/dm-X as device.
7993 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
7994 Handle bind and partial mounts.
7995 * grub-core/lib/crc.c: New file.
7996 * include/grub/deflate.h: Likewise.
7997 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
7999 * include/grub/lib/crc.h: New file.
8001 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8003 Implement automatic module license checking according to new GNU
8006 * grub-core/kern/dl.c (grub_dl_check_license): New function.
8007 (grub_dl_load_core): Use grub_dl_check_license.
8008 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
8009 (GRUB_MOD_LICENSE): Likewise.
8010 (GRUB_MOD_DUAL_LICENSE): Likewise.
8011 All modules updated.
8013 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
8015 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
8016 reserved_first_sector to 1. btrfs reserves plenty of space for boot
8018 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
8020 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8022 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
8024 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8026 * util/grub-fstest.c (read_file): Report GRUB error if file opening
8029 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8031 * grub-core/kern/file.c (grub_file_open): Don't take into account the
8032 parenthesis in the middle of the filename.
8034 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8036 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
8037 rather than trying to put initrd way too high.
8038 Reported by: Ryan Lortie <desrt@desrt.ca>
8040 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8042 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
8043 improperly removed string.
8045 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8047 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
8049 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
8050 (open_device) Likewise.
8051 (grub_util_biosdisk_close): Likewise.
8052 Reported by: Mark Korenberg.
8054 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
8056 * util/grub-mkconfig_lib.in: Add missing quotes.
8058 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
8060 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
8063 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8065 Dynamically count the number of lines for the lower banner.
8067 * grub-core/normal/menu_entry.c (per_term_screen): New member
8069 (print_down): Use num_entries.
8070 (update_screen): Likewise.
8071 (grub_menu_entry_run): Set num_entries.
8072 * grub-core/normal/menu_text.c (menu_viewer_data): New member
8074 (grub_print_message_indented): Move real part to ...
8075 (grub_print_message_indented_real): ... here. Additional argument
8077 (draw_border): Additional argument num_entries.
8078 (print_message): Additional argument dry_run.
8079 (print_entries): Receive menu viewer data.
8080 (grub_menu_init_page): New argment num_entries.
8081 (menu_text_set_chosen_entry): Use num_entries.
8082 (grub_menu_try_text): Likewise.
8083 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
8085 (grub_ucs4_count_lines): New function.
8086 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
8087 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
8088 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
8089 (grub_term_border_height): Likewise.
8090 (grub_term_num_entries): Likewise.
8092 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8094 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
8095 Remove now unused string.
8097 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
8099 * docs/grub-dev.texi (Finding your way around): Update for 1.99
8101 (Getting started): GRUB is developed in Bazaar now, not Subversion.
8103 (Comment): Fix typo.
8104 (Getting started): General copy-editing.
8105 (Typical Development Experience): Likewise.
8106 (Error Handling): Likewise.
8107 (Video API): Likewise.
8109 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
8111 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
8114 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8116 * util/grub-mkimage.c (main): Handle special naming of yeeloong
8119 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
8121 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
8122 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
8125 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8127 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
8128 grub_strcpy since the lines aren't necessarily 0-terminated.
8130 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8132 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
8135 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8137 * grub-core/commands/probe.c (options): Argument to set isn't optional.
8138 (GRUB_MOD_INIT): DEVICE isn't optional.
8140 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8142 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
8143 word on new line if it's too long anyway. Fixes a hang.
8145 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8147 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
8149 * util/grub-setup.c (main): Reuse md device name if available.
8150 * util/raid.c (grub_util_raid_getmembers): Receive device name and
8151 not GRUB name as argument.
8152 Based on patch by: Florian Wagner <fwagner>.
8154 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8156 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
8157 Place mbi on low memory for better compatibility.
8159 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8161 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
8163 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8164 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
8166 * autogen.sh: Ensure that collate and ctype locale is C.
8167 * conf/Makefile.common: Likewise.
8169 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8171 * grub-core/normal/menu.c: Add missing include.
8173 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8175 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
8177 2011-04-08 Martin Zuther <mzuther@mzuther.de>
8179 * util/grub-mkconfig.in: Ignore emacsen backup.
8181 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8183 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
8185 (grub_util_biosdisk_close): Likewise.
8187 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
8189 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
8190 const attribute and use grub_isdigit.
8192 2011-04-06 Andrey <dev_null@ukr.net>
8194 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
8197 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8199 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
8200 useful grub_dprintf's.
8202 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8204 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
8206 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8208 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
8210 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8212 Output errors if theme loading failed.
8214 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
8215 grub_gfxterm_fullscreen on error paths to ...
8216 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
8217 theme loading error.
8219 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8221 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
8222 space for older compilers.
8223 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
8225 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8227 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
8228 and report them as not RAID members since they are useless for GRUB.
8229 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8231 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8233 Increase LVM implementation robustness in order not to crash on
8234 configurations like pvmove. Previously code assumed that in some places
8235 only lvs or only pvs are used whereas it seems that they are used
8238 * grub-core/disk/lvm.c (read_node): New function.
8239 (read_lv): Use read_node.
8240 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
8241 Match volumes only at the end when all lvs are found. Take both
8242 pvs (first) and lvs (second) into account.
8243 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
8244 mirror_* into node_*. All users updated.
8245 (grub_lvm_stripe): Merge this ...
8246 (grub_lvm_mirror): ... and this ...
8247 (grub_lvm_node): ... into this. All users updated.
8249 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8251 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
8252 of function to allow further scanning for LVMs.
8254 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8256 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
8257 on failed seek as it breaks open fd reusage.
8259 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8261 * util/grub-install.in: Add a recommendation to use --recheck before
8264 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8266 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
8269 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8271 GRUB developper manual based on existing Internals section and
8272 contributions by the various authors with active copyright assignment.
8274 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
8275 * docs/font_char_metrics.png: New file.
8276 * docs/font_char_metrics.txt: Likewise.
8277 * docs/grub-dev.texi: Likewise.
8278 * docs/grub.texi (Internals): Move from here ...
8279 * docs/grub-dev.texi: ... here.
8281 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8283 Store the loopback device as data on loopback grub_disk structures,
8284 rather than the file it points to. This fixes use of freed memory
8285 if an existing loopback device is replaced.
8287 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
8288 disk->data, not dev->file.
8289 (grub_loopback_read): Adjust file assignment to match.
8290 Fixes Ubuntu bug #742967.
8292 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8294 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
8295 when replacing an existing device.
8297 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8299 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
8302 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
8304 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
8305 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
8306 (grub_jfs_read_inode): Likewise.
8307 (grub_jfs_opendir): Likewise. Remove now useless casts.
8308 (grub_jfs_getent): Likewise.
8309 Make ino a grub_uint32_t rather than int.
8310 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
8311 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
8312 division and module with bit operations.
8313 (grub_jfs_find_file): Make ino a grub_uint32_t.
8314 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
8316 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
8318 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
8319 warning. (This was in fact always initialised before use, but GCC
8320 wasn't smart enough to prove that.)
8321 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
8323 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8325 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
8327 (efi_wrap_1): Likewise.
8328 (efi_wrap_2): Likewise.
8329 (efi_wrap_3): Likewise.
8330 (efi_wrap_4): Likewise.
8331 (efi_wrap_5): Likewise.
8332 (efi_wrap_6): Likewise.
8333 (efi_wrap_10): Likewise.
8334 Based on information by: Red Hat/Peter Jones.
8336 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
8338 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
8339 set-but-not-used variable.
8341 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
8343 * docs/grub.texi (Simple configuration): Be more explicit about
8344 GRUB_DEFAULT, and add an example.
8345 Reported by: Leslie Rhorer.
8347 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8349 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
8352 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
8354 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
8355 * util/grub.d/20_linux_xen.in: Likewise.
8357 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8359 * util/grub.d/10_linux.in: Try alternative config filenames where
8360 we parse config file.
8361 * util/grub.d/20_linux_xen.in: Likewise.
8363 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
8365 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
8366 * util/grub.d/20_linux_xen.in: Likewise.
8368 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8370 * grub-core/disk/raid.c (insert_array): Add few potentially
8371 useful grub_util_info.
8372 (grub_raid_register): Likewise.
8374 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8376 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
8377 Preserve partition number in mdadm code path.
8379 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8381 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
8382 few potentially useful grub_util_info.
8384 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8386 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
8388 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8390 * docs/grub.texi (default): Use @example rather than nested
8391 itemized lists to avoid breaking gendocs.
8393 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8395 * docs/grub.texi (Future): Update.
8397 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8399 * docs/grub.texi (Environment): New chapter.
8400 (Changes from GRUB Legacy): Link to "Environment block" section for
8401 details of limitations.
8402 (Simple configuration): Likewise. Link to documentation of gfxmode
8403 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
8405 (Shell-like scripting): Note that normal variables are stored in the
8407 (gettext): Link to documentation of lang and locale_dir.
8408 (list_env): New section.
8409 (load_env): New section.
8410 (save_env): New section.
8412 (Reporting bugs): Fix typo.
8414 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8416 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
8419 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8421 * grub-core/term/at_keyboard.c (set_scancodes)
8422 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
8424 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8426 * docs/grub.texi (Menu-specific commands): Remove some semantics
8427 that were true in GRUB Legacy but not in GRUB 2.
8428 (submenu): New section.
8429 (false): New section.
8430 (read): New section.
8431 (true): New section.
8433 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8435 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
8437 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
8439 * docs/grub.texi (Simple configuration): Explain some of the
8440 current limitations of grub-mkconfig.
8441 Reported by: Leslie Rhorer.
8443 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8445 Old macs search for boot.efi rather than for bootia32.efi.
8447 * util/grub-install.in: Copy bootia32.efi to boot.efi.
8448 * util/grub-mkrescue.in: Likewise.
8449 Suggested by: Peter Jones.
8451 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8453 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
8455 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8457 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
8458 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
8459 (grub_lvm_mirror): New struct.
8460 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
8461 (grub_lvm_iterate): Iterate only visible volumes.
8462 (grub_lvm_read): Factor out to ..
8463 (read_lv): ... this. Support mirrors.
8464 (grub_lvm_read): New wrapper function.
8465 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
8466 stripped or mirrored.
8468 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8470 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
8472 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8474 * docs/grub.texi (loopback): New section.
8476 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8478 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
8481 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8483 * docs/grub.texi (BIOS installation): New section, partly based on
8484 previous text in other sections.
8485 (Installing GRUB using grub-install): Replace BIOS discussion with a
8489 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8491 * grub-core/kern/emu/hostdisk.c (find_partition_start)
8492 [HAVE_DIOCGDINFO]: Add safety checks.
8494 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8496 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
8497 per default compiled in kernel and prior to 8.0 isn't shipped at all.
8499 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
8501 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
8502 real_sb->size is zero (e.g. RAID-0), get the disk size from
8503 real_sb->data_size instead.
8504 Fixes Ubuntu bug #743136.
8506 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8508 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
8509 printf clauses for printing size and start.
8511 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8513 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
8514 Reported and tested by: Timothy Nikkel.
8516 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8518 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
8519 (dirty_region_add_real): ... this.
8520 (dirty_region_add): Don't discard margin refresh when performing
8523 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
8525 * grub-core/lib/relocator.c (allocate_regstart)
8526 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
8527 terminals are capabple of malloc-free operation.
8528 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8529 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
8531 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
8533 * util/grub-setup.c: Copy the partition table zone if floppy support
8534 is disabled, even if no partition table is found.
8536 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
8537 during POST if an invalid partition table is contained in the PBR
8538 of the active partition when GRUB is installed to a partition.
8540 2011-03-28 Colin Watson <cjwatson@debian.org>
8542 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
8545 2011-03-28 Colin Watson <cjwatson@debian.org>
8547 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
8548 to be specific about what kind of RAID device we're scanning for.
8550 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
8552 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
8553 return freed string.
8555 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8557 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
8559 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8561 Use libgeom on FreeBSD to detect partitions.
8563 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
8564 (grub-mkrelpath): Likewise.
8565 (grub-script-check): Likewise.
8566 (grub-editenv): Likewise.
8567 (grub-mkpasswd-pbkdf2): Likewise.
8568 (grub-fstest): Likewise.
8569 (grub-mkfont): Likewise.
8570 (grub-mkdevicemap): Likewise.
8571 (grub-probe): Likewise.
8572 (grub-setup): Likewise.
8573 (grub-ofpathname): Likewise.
8574 (grub-mklayout): Likewise.
8575 (example_unit_test): Likewise.
8576 (grub-menulst2cfg): Likewise.
8577 * grub-core/Makefile.core.def (grub-emu): Likewise.
8578 (grub-emu-lite): Likewise.
8579 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
8580 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
8581 define HAVE_DIOCGDINFO.
8582 (follow_geom_up) [FreeBSD]: New function.
8583 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
8584 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
8585 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
8586 unconditionally of HAVE_DIOCGDINFO.
8588 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8590 Fix FreeBSD compilation problem.
8592 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
8593 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
8595 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
8597 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
8598 Switch back to page zero before loading a kernel, since some kernel
8599 drivers expect that.
8600 Thanks to: Felix Kuehling.
8602 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8604 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
8605 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
8606 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
8608 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8610 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
8611 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
8613 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8615 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
8616 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
8619 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
8621 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
8622 for modules headers when counting the needed allocation size.
8624 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8626 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
8627 if no ASCII character is found to prevent crash.
8629 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
8631 * grub-core/video/bitmap.c (match_extension): Ignore case.
8633 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8635 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
8637 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8639 * grub-core/script/parser.y: Declare "time" as valid argument.
8641 2011-03-23 Peter Jones <pjones@redhat.com>
8643 Fix incorrect assert failure reporting.
8645 * grub-core/tests/example_functional_test.c (example_test): Add
8647 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
8648 (failure_start): ...this. Check that malloc succeeded.
8649 Don't call xvasprintf. Return failure struct.
8650 (failure_append_vtext): New function.
8651 (failure_append_text): Likewise.
8652 (add_failure): Likewise.
8653 (grub_test_assert_helper): Likewise.
8654 * include/grub/test.h (grub_test_assert_helper): New declaration.
8655 (grub_test_assert): Macro rewritten.
8657 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8659 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
8661 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8663 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
8665 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8667 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
8668 into GRUB-style one.
8670 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8672 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
8673 error and not grub_errno.
8674 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
8676 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8678 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
8679 GRUB_USB_SPEED_NONE in case of failure and not the error code.
8681 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8683 * grub-core/efiemu/i386/pc/cfgtables.c
8684 (grub_machine_efiemu_init_tables): Make declaration a prototype.
8685 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
8686 (grub_xnu_unlock): Likewise.
8687 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
8689 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8691 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
8692 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
8693 * grub-core/commands/hashsum.c (aliases): Likewise.
8694 * grub-core/commands/setpci.c (pci_registers): Likewise.
8695 * grub-core/disk/usbms.c (attach_hook): Likewise.
8696 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
8697 (zio_checksum_table): Likewise.
8698 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
8699 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
8700 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
8701 * grub-core/lib/relocator.c (leftovers): Likewise.
8702 (extra_blocks): Likewise.
8703 * grub-core/loader/i386/bsd.c (relocator): Likewise.
8704 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
8705 (modules_last): Likewise.
8706 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
8707 (devices): Likewise.
8708 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
8709 (modules_last): Likewise.
8710 * grub-core/normal/auth.c (users): Likewise.
8711 * grub-core/normal/context.c (initial_menu): Likewise.
8712 (current_menu): Likewise.
8713 * grub-core/normal/crypto.c (crypto_specs): Likewise.
8714 * grub-core/term/serial.c (grub_serial_ports): Likewise.
8715 (grub_serial_terminfo_input_template): Likewise.
8716 (grub_serial_terminfo_output_template): Likewise.
8717 (grub_serial_terminfo_input): Likewise.
8718 (grub_serial_terminfo_output): Likewise.
8719 (registered): Likewise.
8720 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
8722 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8724 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
8725 grub_video_mode_type_t.
8726 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
8727 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
8728 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
8730 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
8732 * util/grub-install.in: Correct the x86-64 name as x86_64.
8734 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
8736 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
8737 initial chunk read from the kernel always includes GRUB's multiboot
8738 header, which is now outside the first sector.
8740 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8742 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
8743 cached mmap_size, so that this works correctly when called multiple
8745 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
8747 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
8749 * docs/grub.texi (Simple configuration): Tidy up formatting.
8751 2011-03-07 Szymon Janc <szymon@janc.net.pl>
8753 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
8754 Set-but-not-used variable removed.
8756 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8758 Workaround yet another IEEE1275 bug.
8760 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8761 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
8762 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
8763 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
8765 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8766 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
8768 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8770 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
8773 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
8775 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
8776 empty, since in that case we can only generate either nothing or a
8777 syntactically invalid configuration file.
8778 Reported by: Michal Suchanek. Fixes Debian bug #612898.
8780 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8782 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
8783 (Making a GRUB bootable CD-ROM): Likewise.
8784 (Invoking grub-mkrescue): New section.
8785 Reported by: Yann Dirson. Fixes Debian bug #612585.
8787 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
8789 * util/grub-install.in: Remove unnecessary brackets from tr
8791 * util/grub.d/10_hurd.in: Likewise.
8792 * util/grub.d/10_kfreebsd.in: Likewise.
8793 * util/grub.d/10_linux.in: Likewise.
8794 * util/grub.d/20_linux_xen.in: Likewise.
8795 Reported by: Jamie Heilman. Fixes Debian bug #612564.
8797 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
8799 * include/grub/file.h (not_easly_seekable): Rename to ...
8800 (not_easily_seekable): ... this. Update all users.
8802 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
8804 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
8807 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8809 * util/grub-mkimage.c (generate_image): Refuse to create the images
8810 bigger than the actual flash (512K) in Loongson machines. 512K is also
8811 the biggest chip supported by them.
8813 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8815 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
8817 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
8819 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
8822 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8824 * util/grub-install.in: Ignore install device on platforms
8825 where it doesn't make sense. Always use UUIDs except on pc, efi and
8827 Reported by: Daniel Kahn Gillmor.
8829 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8831 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
8833 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8835 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
8836 (iterate_real): Don't rely on partition being non-NULL.
8838 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8840 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
8841 supported platforms. Put a compile time assert for this rather than
8842 generate a warning with 32-bit shift.
8844 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8846 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
8847 logical expression more readable.
8849 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8851 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
8852 even if some elements have a name.
8853 Reported by: Alexander GQ Gerasiov.
8855 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8857 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
8858 path unreadable if `grub-probe -t abstraction' fails, for example if
8859 memberlist fails on an LVM volume group.
8860 Reported by: Darius Jahandarie.
8862 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
8864 * docs/grub.texi (Simple configuration): Document
8865 GRUB_PRELOAD_MODULES.
8867 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
8869 * .bzrignore: Remove nonexistent grub-pbkdf2.
8871 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8873 * configure.ac: Bump version to 1.99~rc1.
8875 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8877 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
8880 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8882 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
8885 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8887 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
8889 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8891 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
8894 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8896 Fix compilation on cygwin.
8898 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
8899 -R .drectve on cygwin.
8900 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
8901 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
8902 (COND_CYGWIN): New condition.
8903 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
8904 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
8905 not @TARGET_OBJ2ELF@.
8906 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
8907 type to determine whether aux is to be used.
8909 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8911 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
8912 realpath'ed device string.
8913 Handle floppy (somewhat).
8914 Issue error in unknown case rather than garbage.
8915 Reported by: Axel Beckert.
8917 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8919 * util/grub.d/00_header.in (load_video): Handle the case when no video
8921 Thanks to: Axel Beckert.
8923 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8925 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
8926 variable. Fixes problem on big endian platforms.
8928 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8930 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
8931 It doesn't work well there.
8933 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8935 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
8937 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
8938 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
8941 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8943 Use alias->path rather than buggy "canon".
8945 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
8946 (ofdisk_hash_add): New argument curcan. All users updated.
8948 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
8950 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
8952 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8954 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
8955 loadmask before doing any calculations. Use correct type for offset.
8956 (grub_linux_load64): Likewise.
8958 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
8960 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
8962 (console_grub_equivalences_unshift): Likewise.
8963 Reported by: Daniel Dehennin.
8965 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8967 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
8968 (set_env_limn_ro): Likewise.
8969 (GRUB_MOD_INIT): Likewise.
8970 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
8971 ARRAY_SIZE while on it.
8972 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
8973 * grub-core/normal/context.c (grub_env_export): Move from here ...
8974 * grub-core/kern/env.c (grub_env_export): ... here.
8975 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
8977 * grub-core/kern/main.c (grub_main): Export root and prefix.
8978 * include/grub/env.h (grub_env_export): Export.
8979 Reported by: Seth Goldberg.
8981 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8983 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
8984 Take into account space used by ELF sections and multiboot palette.
8985 Reported by: Grégoire Sutre.
8987 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8991 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8993 Pass more appropriate video id to Linux.
8995 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
8996 grub_video_get_driver_id and variable gfxpayloadforcelfb to
8998 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
8999 shift params->lfb_size.
9000 * include/grub/i386/linux.h: Make an enume out of have_vga values.
9002 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9004 * util/grub-menulst2cfg.c: Add missing include of misc.h.
9006 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9008 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
9009 separator and pass bootpath/devid even if only one of them is available.
9010 Reported by: Seth Goldberg.
9012 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9014 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
9015 implementations bug on them.
9017 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
9019 (filter_memory_map): Likewise.
9021 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9023 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
9024 Reported by: nebuchadnezzar.
9026 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9028 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
9029 Reported by: nebuchadnezzar.
9031 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9033 Submenu default support.
9035 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
9036 auto_boot. All users updated.
9038 Handle chosen and default with submenus.
9039 (grub_menu_execute_with_fallback): Declared static.
9040 Don't notify failure if autobooted. Upper level does it.
9041 (menuentry_eq): New function.
9042 (get_entry_number): Use menuentry_eq.
9043 (show_menu): New parameter "autobooted". All users updated.
9044 (grub_show_menu): Likewise.
9045 * include/grub/normal.h (grub_show_menu): Likewise.
9046 * include/grub/menu.h (grub_menu_execute_entry): Removed.
9047 (grub_menu_execute_with_fallback): Likewise.
9049 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9051 * util/grub-mklayout.c (usage): Update help text.
9053 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9055 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
9057 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9059 * util/grub-menulst2cfg.c (main): Trim the line.
9061 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9063 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
9064 (grub_machine_init): Don't check amount of low memory as reportedly
9065 INT 12h can be broken and if low memory is too low we wouldn't have
9066 gotten into grub_machine_init anyway.
9068 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9070 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
9071 (grub_machine_mmap_iterate): Take low memory into account
9073 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9075 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
9079 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9081 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
9084 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
9086 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
9087 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
9089 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
9091 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
9092 openbsd and netbsd types being in part_bsd module.
9094 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9096 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
9097 (_FILE_OFFSET_BITS): Likewise.
9098 Reported by: Seth Goldberg.
9100 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
9102 * configure.ac: Check for libdevmapper header.
9104 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9106 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
9108 (fzap_lookup): Likewise.
9109 (dnode_get): Likewise.
9110 (make_mdn): Likewise.
9111 (zfs_mount): Likewise.
9112 (fzap_iterate): Use temporary pointer to avoid aliasing.
9113 (grub_zfs_read): Likewise.
9114 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
9115 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
9116 pointers to avoid aliasing.
9117 (grub_cmd_xnu_kernel64): Likewise.
9118 (grub_xnu_load_driver): Likewise.
9120 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9122 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
9124 (grub_cmd_terminal_output): Likewise.
9125 Reported and tested by: Grégoire Sutre.
9127 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9129 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
9131 Reported and tested by: Grégoire Sutre.
9133 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9135 * configure.ac: Do CPU substitution even if it's specified explicitly.
9136 Reported and tested by: Alain Greppin.
9138 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9140 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
9141 Reported and tested by: Alain Greppin.
9143 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9145 Satisfy some bison versions need for inttypes.h.
9147 * grub-core/lib/posix_wrap/inttypes.h: New file.
9148 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
9149 (int16_t): Likewise.
9150 (int32_t): Likewise.
9151 (int64_t): Likewise.
9152 Reported and tested by: Alain Greppin.
9154 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9156 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
9157 Silence spurious warning.
9158 Reported and tested by: Alain Greppin.
9160 2011-01-07 Szymon Janc <szymon@janc.net.pl>
9162 * docs/grub.texi (Support automatic decompression): Update with xz
9163 decompression support.
9165 2011-01-07 Szymon Janc <szymon@janc.net.pl>
9167 Improve loaders' kernel command line handling.
9169 * grub-core/lib/cmdline.c: New file.
9170 * include/grub/lib/cmdline.h: Likewise.
9171 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
9172 grub_create_loader_cmdline to create kernel command line.
9173 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9174 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
9175 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
9176 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
9177 (linux): Add lib/cmdline.c on common.
9179 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9181 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
9182 inopos might be unaligned.
9184 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9186 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
9187 endian transformations.
9188 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9189 Based on report by: Doug Nazar.
9191 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
9193 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
9194 array->members[i].start_sector.
9195 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9197 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9199 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
9200 Reported and tested by: Grégoire Sutre.
9202 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
9204 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
9205 avoid causing test failures by clearing the screen.
9207 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
9209 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
9210 Fix prefix check to handle the case where dir ends with a slash
9211 (most significantly, "/" itself).
9212 Reported by: Michael Vogt.
9214 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9216 Run terminfo_cls on initing terminfo output to clear the screen and
9217 move the cursor to (0,0).
9219 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
9220 Call grub_terminfo_output_init.
9221 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
9222 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
9223 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
9225 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9227 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
9230 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9232 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
9235 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
9237 The E820 type 5 is BADRAM, not EXEC_CODE.
9239 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
9240 (GRUB_E820_BADRAM): New define.
9241 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
9242 into reserved. Propagate BADRAM.
9243 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
9244 (GRUB_E820_BADRAM): New define.
9246 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9248 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
9249 Ignore the memory post-4G.
9250 (grub_relocator_firmware_alloc_region): Additional debug statement.
9252 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9254 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
9256 Reported by: David Pravec.
9258 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9260 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
9263 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9265 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
9267 (grub_reed_solomon_recover): Likewise.
9269 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9271 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
9273 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9275 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
9278 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
9280 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
9281 descriptions of extract_legacy_entries_source and
9282 extract_legacy_entries_configfile.
9283 Reported by: Seung Soo, Ha.
9285 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
9287 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
9288 on devices that do not implement function 0.
9290 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
9292 * grub-core/fs/hfsplus.c: Make parent unsigned.
9293 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
9295 (grub_hfsplus_cmp_extkey): Likewise
9297 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
9299 * util/grub-install.in: Correctly use bootloader_id and not
9300 GRUB_DISTRIBUTOR on efibootmgr line.
9302 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
9304 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
9306 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
9308 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
9309 Xen and reorder menu item wording to make it clearer that this entry
9310 will launch Xen. Print separate messages when loading Xen and
9313 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9315 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
9316 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
9317 loop in case of incorrect amiga partmap.
9319 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9321 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
9322 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
9325 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
9327 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
9329 Reported by: crocket
9331 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9333 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
9335 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
9337 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9339 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
9341 (grub_cmd_xnu_kextdir): Likewise.
9342 (grub_cmd_xnu_splash): Likewise.
9344 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9346 Avoid using Reed-Solomon with 0 redundancy.
9348 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
9349 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
9351 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
9352 (grub_reed_solomon_recover): Likewise.
9354 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9356 Don't use disk subsystem in freebsd_boot.
9358 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
9359 (freebsd_biosdev): Likewise.
9360 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
9361 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
9363 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9365 Handling of files of unknown size is currently limited. They can't be
9366 used e.g. for initrd or modules. Moreover gzip handling of not
9367 easily seekable files is buggy. Disable unknown file size for now. May
9368 be inefficient but works.
9370 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
9371 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
9373 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
9375 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
9378 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
9380 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
9382 2010-12-25 Shea Levy <shlevy>
9384 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
9386 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9388 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
9389 Windows Server 2008.
9390 Reported by: Devin Giddings.
9392 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9394 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
9395 writing an error message because of async power management.
9396 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
9397 (grub_reboot): Likewise.
9399 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
9401 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
9402 keep unit tests from failing when they shouldn't.
9404 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9406 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
9407 previous patch increased the size of the RS code by 20 bytes (at
9408 least with gcc-4.4), so increase this by 20 bytes to match.
9409 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9411 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9413 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
9414 scratch area. Make sure to initialise chosen in standalone mode as
9415 well as non-standalone.
9416 Reported by: Robert Hooker and Andy Whitcroft.
9417 Tested by: Andy Whitcroft.
9419 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9421 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
9422 constructing a new unescaped string and passing it to grub_xputs in
9423 one go, rather than passing characters to grub_printf one at a time.
9425 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9427 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
9430 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
9432 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
9433 comment. Add an extra layer of quotation, requiring the output of
9434 this function to be used in a printf format string.
9435 (gettext_printf): New function.
9436 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
9437 Extract translatable strings from here-documents and use a temporary
9438 variable instead, so that xgettext can find them.
9439 * util/grub.d/10_kfreebsd.in: Likewise.
9440 * util/grub.d/10_linux.in: Likewise.
9441 * util/grub.d/20_linux_xen.in: Likewise.
9443 * po/grub.d.sed: New file.
9444 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
9445 arguments. Set c-format flags on all strings extracted from
9446 util/grub.d/ (xgettext refuses to include these itself for strings
9447 it extracted from a shell file, but these really are c-format).
9449 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9451 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
9452 Avoid next pointing to nowhere.
9454 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9456 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
9457 rather than assuming than rootblock is exactly in the middle.
9458 (grub_affs_label): Likewise.
9460 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9462 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
9463 reserved_first_sector to 0.
9464 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
9465 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
9466 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
9468 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9470 Fix handling of UTF-16 UDF labels.
9472 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
9473 (read_string): .. here.
9474 (grub_udf_label): Use read_string.
9476 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
9478 * grub-core/normal/menu_entry.c (run): Execute commands from menu
9479 editor under argument scope.
9480 Reported by: Jordan Uggla
9482 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9484 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
9486 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
9488 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
9489 line, and other keys scroll an entire page (previous handling was
9490 for \r and \n to scroll a page and other keys to scroll two lines).
9492 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9494 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
9495 Set ptrdest to correct get_physical_target_address rather than
9496 incorrect get_virtual_current_address.
9498 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
9500 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
9501 correct cat to grub_uint8_t * rather than grub_uint32_t *.
9503 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
9505 * .bzrignore: Ignore grub-core/rs_decoder.S.
9507 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
9509 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
9510 .mo/.mo.gz opening sequence to ...
9511 (grub_mofile_open_lang): ... here.
9512 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
9513 * util/grub.d/00_header.in (grub_lang): Include country part of
9515 Reported by: Mario Limonciello.
9517 2010-12-09 Robert Millan <rmh@gnu.org>
9519 * NEWS: Document addition of ZFS support.
9521 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
9523 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
9524 rather than `/ 2', as the latter requires -Wa,--divide which would
9525 require bumping our minimum binutils version.
9527 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
9529 * util/grub-script-check.c (main): Print script line number on
9532 2010-12-01 Robert Millan <rmh@gnu.org>
9534 * grub-core/fs/zfs/zfs.c: New file.
9535 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
9536 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
9537 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
9538 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9540 * include/grub/zfs/dmu.h: Likewise.
9541 * include/grub/zfs/dmu_objset.h: Likewise.
9542 * include/grub/zfs/dnode.h: Likewise.
9543 * include/grub/zfs/dsl_dataset.h: Likewise.
9544 * include/grub/zfs/dsl_dir.h: Likewise.
9545 * include/grub/zfs/sa_impl.h: Likewise.
9546 * include/grub/zfs/spa.h: Likewise.
9547 * include/grub/zfs/uberblock_impl.h: Likewise.
9548 * include/grub/zfs/vdev_impl.h: Likewise.
9549 * include/grub/zfs/zap_impl.h: Likewise.
9550 * include/grub/zfs/zap_leaf.h: Likewise.
9551 * include/grub/zfs/zfs.h: Likewise.
9552 * include/grub/zfs/zfs_acl.h: Likewise.
9553 * include/grub/zfs/zfs_znode.h: Likewise.
9554 * include/grub/zfs/zil.h: Likewise.
9555 * include/grub/zfs/zio.h: Likewise.
9556 * include/grub/zfs/zio_checksum.h: Likewise.
9558 * Makefile.util.def: Build ZFS into libgrubmods.
9559 * grub-core/Makefile.core.def: Build zfs.mod.
9561 2010-11-30 Szymon Janc <szymon@janc.net.pl>
9563 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
9565 * grub-core/commands/wildcard.c (match_files): Likewise.
9567 2010-11-30 Robert Millan <rmh@gnu.org>
9569 * grub-core/loader/i386/bsd.c
9570 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
9571 whether kernel is loaded using grub_loader_is_loaded(), rather
9572 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
9573 certain error conditions.
9575 2010-11-30 Robert Millan <rmh@gnu.org>
9577 * grub-core/commands/echo.c: Include `<grub/term.h>'.
9578 (grub_cmd_echo): Call grub_refresh() after printing a message.
9580 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9582 Avoid using tricks for initialising endian variables.
9584 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
9586 (GRUB_MOD_INIT): Don't byte-swap.
9587 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9588 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
9589 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
9590 (grub_swap_bytes32_compile_time): Likewise.
9591 (grub_cpu_to_le32_compile_time): Likewise.
9592 (grub_cpu_to_le16_compile_time): Likewise.
9594 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
9596 * util/grub-setup.c (setup): Stop recommending --force. People who
9597 understand the dangers of blocklists are able to find this option
9598 anyway and the ones who don't shouldn't use it anyway.
9600 2010-11-26 Robert Millan <rmh@gnu.org>
9602 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
9605 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
9607 Fix LVM-on-RAID probing.
9609 * util/grub-probe.c (probe): Remember which disk was detected as
9610 RAID (perhaps an LVM physical volume). Use that disk's raidname
9611 rather than that of the top-level disk.
9613 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
9615 Fix cmdline argument quotes for setparams command of menuentry
9618 * grub-core/commands/menuentry.c (setparams_prefix): Use single
9619 quotes for arguments.
9620 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
9621 grub_strchrsub function instead.
9623 * include/grub/misc.h (grub_strchrsub): New function.
9625 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9627 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
9628 effort by skipping "." and ".." entries up-front.
9629 Suggested by: Michael Lazarev.
9631 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9633 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
9634 ldflags to ldadd, to fix link line ordering.
9635 (none_decompress): Likewise.
9637 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
9639 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
9641 (grub-emu-lite): Remove kern/emu/cache.S.
9643 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9645 * util/deviceiter.c (compare_devices): If the by-id link for a
9646 device couldn't be resolved, fall back to sorting by the by-id link
9647 rather than segfaulting.
9648 Reported and tested by: Daniel Mierswa.
9650 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9652 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
9653 ldflags, to fix link line ordering.
9655 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9657 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
9658 linkers are picky about this.
9660 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9662 * grub-core/Makefile.am (command.lst): Adjust sed expression
9663 ordering so that extended and priority commands aren't treated as
9666 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
9668 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
9669 Remove byte-swapping function calls, which are not valid in
9670 structure initialisers.
9671 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
9673 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
9674 grub_gpt_partition_type_bios_boot.
9676 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9678 Fix test program build on GNU/kFreeBSD.
9680 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
9681 $(LIBNVPAIR)' library dependencies.
9683 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9685 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
9687 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
9689 * util/grub-install.in: Remove excessive quoting that broke
9690 installations to RAID devices.
9692 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9694 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
9695 bootloader version instead of 0.
9697 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9699 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
9702 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
9704 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
9705 retrieve the metadat sector if size isn't known.
9706 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9708 2010-11-18 Robert Millan <rmh@gnu.org>
9710 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
9713 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
9715 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
9717 Reported by: Jordan Uggla.
9719 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9721 Make better UTF compliant.
9723 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
9724 sequences as incorrect.
9725 (grub_is_valid_utf8): Likewise.
9726 (grub_utf8_to_ucs4): Likewise.
9727 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
9728 (grub_ucs4_to_utf8_alloc): Likewise.
9729 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
9731 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9733 Make legacy_source behave like source.
9735 * grub-core/commands/legacycfg.c (legacy_file): Don't call
9737 (grub_cmd_legacy_source): Call grub_show_menu if needed.
9739 2010-11-16 Colin Watson <cjwatson@debian.org>
9741 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
9742 (-Wunused implies -Wunused-parameter, but not vice versa).
9744 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
9746 * configure.ac: Make error messages less confusing by testing for
9747 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
9748 accepted, but produces a diagnostic if something else is wrong).
9750 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9752 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
9753 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
9755 (grub_keyboard_controller_init)
9756 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
9757 read the initial state since controller isn't inited yet.
9759 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
9761 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
9762 allocate_regbeg may need to create new chunk header.
9764 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9766 Fix quoting in legacy parser.
9768 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
9770 (grub_legacy_parse): Likewise.
9771 Reported by: Jordan Uggla.
9772 Tested by: Jordan Uggla.
9774 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9776 Don't add -lgcc on i386 and x86_64.
9778 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
9779 * conf/Makefile.common (LDADD_KERNEL): Likewise.
9780 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
9782 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9784 * configure.ac: Add -Wno-trampolines when supported.
9786 2010-11-14 Modestas Vainius <modax@debian.org>
9788 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
9791 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9793 Add generic logical block size support for UDF.
9795 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
9796 (GRUB_UDF_BLKSZ): Removed.
9797 (struct grub_udf_data): New field "lbshift" to hold the logical block
9798 size of the file system in log2 format. All users updated.
9799 (sblocklist): Change type to unsigned.
9800 (grub_udf_mount): Change type of "sblklist" to unsigned.
9801 Move AVDP search before VRS recognition, because the latter requires
9802 knowledge of the logical block size, which is detected during the
9804 Detect and validate logical block size during AVDP search, adding
9805 support for block sizes 512, 1024 and 4096.
9806 Make VRS recognition independent of block size.
9808 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9810 Properly handle deleted files on UDF.
9812 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
9813 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
9816 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
9818 Support reading files larger than 2 GiB.
9820 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
9821 "offset" to grub_off_t.
9822 (grub_udf_read_file): Likewise for parameter "pos".
9824 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9826 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
9828 (Simple configuration): Refer to Changes from GRUB Legacy about
9829 save_env availability.
9831 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9833 * util/grub-install.in: Ignore empty partition table detection
9834 instead of trying to include part_ module.
9836 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9838 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
9839 LVM on RAID support.
9841 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9843 Properly define WORDS_BIGENDIAN in wrapped environments.
9845 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
9847 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
9849 Reported by: Manoel Rebelo Abranches.
9850 Tested by: Manoel Rebelo Abranches.
9852 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9854 * util/grub-mkconfig.in: Fix quoting.
9856 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9858 Support big ext2 files.
9860 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
9861 (grub_ext2_read_block): Support triple indirect blocks.
9862 (grub_ext2_read_file): Use 64-bit types and read size_high.
9863 (grub_ext2_open): Read size_high.
9864 Reported by: Ximin Luo.
9865 Tested by: Manoel Rebelo Abranches.
9867 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9869 * util/grub-install.in: Handle filenames containing spaces.
9870 Reported by: Jordan Uggla.
9871 Tested by: Jordan Uggla.
9873 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9875 * util/grub-mkconfig.in (grub_script_check): New variable.
9876 Use grub_script_check instead of grub-script-check.
9877 Reported by: Barry Jackson.
9879 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9881 * docs/grub.texi (menu): Correct the order.
9882 Reported by: D. Hugh Redelmeier.
9884 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9886 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
9889 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
9891 * include/grub/elfload.h (grub_elf32_size): New parameter.
9893 Return maximum segments alignment.
9894 (grub_elf64_size): Likewise.
9895 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
9896 Return maximum segments alignment.
9897 (grub_elf64_size): Likewise.
9898 * grub-core/loader/powerpc/ieee1275/linux.c:
9899 (grub_linux_claimmap_iterate): New function. Uses the
9900 "available" property in the "memory" node for memory allocation
9901 for kernel in the PowerPC loader.
9902 (grub_linux_load32): Correctly find linux entry point offset.
9903 (grub_linux_load64): Likewise.
9905 2010-11-07 Robert Millan <rmh@gnu.org>
9907 On mips-yeeloong, build with -march=loongson2f when this flag is
9908 available (GCC >= 4.4).
9909 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
9911 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
9912 or otherwise add -march=mips3.
9914 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
9916 Suppress shell expansion on echo '*' and echo "*" like cases.
9917 Reported by: Jordan Uggla.
9919 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9920 string arguments before shell expansion.
9921 * tests/grub_cmd_echo.in: New testcases.
9923 2010-11-07 Robert Millan <rmh@gnu.org>
9925 * conf/mips-qemu-mips.rmk: Remove stale file from previous
9928 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
9930 * grub-core/kern/emu/hostdisk.c
9931 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
9933 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9935 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
9936 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
9937 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
9939 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9941 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
9943 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9945 * util/grub-install.in: Replace useless recomendation to pass
9946 --modules with a recomendation to report a bug.
9948 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9950 Properly register serial terminfo.
9951 Reported by: Jordan Uggla
9953 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
9955 (grub_serial_terminfo_output_template): Likewise.
9956 (grub_cmd_serial): Register "serial" with terminfo.
9957 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
9958 grub_serial_terminfo_output.
9960 2010-11-05 Robert Millan <rmh@gnu.org>
9962 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
9965 2010-11-05 Robert Millan <rmh@gnu.org>
9967 On Yeeloong, pass machine type information to Linux.
9969 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
9970 (LOONGSON_MACHTYPE): New macro, set to
9971 "machtype=lemote-yeeloong-2f-8.9inches".
9972 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
9973 additional argument to Linux.
9975 2010-11-04 Robert Millan <rmh@gnu.org>
9977 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
9978 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
9979 (its SATA disks are detected as slaveless IDE master drives on
9981 Reported by Carsten Aulbert.
9983 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
9985 * util/bin2h.c (main): Fix spelling error in generated output.
9987 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
9989 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
9991 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9993 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
9994 vga= option is supplied.
9996 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9998 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
9999 * util/grub.d/10_kfreebsd.in: Likewise.
10000 * util/grub.d/10_linux.in: Likewise.
10001 * util/grub.d/20_linux_xen.in: Likewise.
10003 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10005 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
10006 argument as an argument to no-argument option.
10008 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10010 * util/grub.d/10_linux.in: Add missing load_video with explicit
10011 GRUB_GFXPAYLOAD_LINUX.
10013 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10015 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
10017 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10019 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
10020 elements with invlid index.
10021 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10022 * grub-core/disk/raid.c (insert_array): Automatically reallocate
10024 * include/grub/raid.h (grub_raid_member): New struct.
10025 (grub_raid_array): Transform devices and start_sector into usage of
10026 grub_raid_member. All users updated
10027 (allocated_devs): New member.
10029 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10031 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
10034 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
10036 NetBSD build fix for getline function conflict from gnulib.
10038 * Makefile.util.def (libgrubkern.a): New library for grub kernel
10039 components that depend on gnulib headers.
10040 (libgrubmods.a): Renamed from earlier libgrub.a.
10041 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
10043 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10045 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
10046 install rather than creating a broken install.
10048 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10050 * util/grub-setup.c (argp): Remove misleading example of installing to
10053 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10055 * util/grub-setup.c (setup): Clarify the error message.
10057 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10059 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
10061 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10063 * grub-core/kern/emu/misc.c
10064 (grub_make_system_path_relative_to_its_root)
10065 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
10067 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10069 * grub-core/kern/emu/misc.c
10070 (grub_make_system_path_relative_to_its_root): Revert r2882.
10072 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
10074 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
10075 useless field head. All users updated.
10076 (free_subchunk): Correct handling of IN_REGION subchunk.
10078 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
10080 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
10081 (Supported kernels): Likewise.
10083 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
10085 Make mktemp invocations portable.
10087 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
10088 exit if mktemp fails.
10089 * tests/grub_script_blockarg.in: Likewise.
10090 * tests/partmap_test.in: Likewise.
10091 * tests/util/grub-shell-tester.in: Likewise.
10092 * tests/util/grub-shell.in: Likewise.
10093 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10094 * Makefile.am: Likewise, and chain shell commands with `&&'
10096 * util/grub-mkrescue.in: Use the same explicit template as above, and
10097 exit if mktemp fails.
10099 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
10101 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
10102 Linux kernel, reported by Dennis Schridde.
10104 2010-10-17 Szymon Janc <szymon@janc.net.pl>
10106 * grub-core/normal/auth.c (grub_auth_check_authentication):
10107 Set-but-not-used variable removed.
10109 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10111 * docs/grub.texi (GNU/Linux): Document APM unavailability with
10112 32-bit linux protocol.
10114 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10116 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
10117 cursor shape for sanity.
10119 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10121 * docs/grub.texi (Installation): Document buggy BIOS install.
10123 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10125 * docs/grub.texi (Installation): Indent.
10127 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10129 * util/grub-setup.c (setup): New parameter allow_floppy.
10130 (arguments): New member allow_floppy.
10131 (argp_parser): Handle --allow-floppy.
10132 (main): Pass allow_floppy.
10133 * util/grub-install.in: New option --allow-floppy passed though to
10136 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10138 * util/grub-install.in: Handle partitionless disks.
10140 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
10142 * util/grub-setup.c (setup): Don't clean blocklists before readability
10145 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10147 * docs/grub.texi (Installation): Document embedding zone. Remove
10148 obsolete grub-install example.
10150 2010-10-16 Szymon Janc <szymon@janc.net.pl>
10152 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
10153 Set-but-not-used variable ifdef'ed.
10154 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
10155 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
10157 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
10158 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
10159 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
10160 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
10161 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
10162 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
10163 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
10164 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
10165 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
10166 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
10167 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
10170 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10172 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
10173 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
10176 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10178 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
10179 synonym to _S5_. Needed for some DSDTs.
10181 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10183 Userspace ACPI parser debugging.
10185 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
10186 headers and add relevant defines. Don't include standard headers.
10187 (main) [GRUB_DSDT_TEST]: New function.
10188 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
10189 Don't declare functions.
10191 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10193 Remove dead grub_efi_mm_fini.
10195 * grub-core/kern/efi/mm.c (allocated_page): Removed.
10196 (ALLOCATED_PAGES_SIZE): Likewise.
10197 (MAX_ALLOCATED_PAGES): Likewise.
10198 (allocated_pages): Likewise.
10199 (grub_efi_allocate_pages): Don't record allocated pages.
10200 (grub_efi_free_pages): Likewise.
10201 (grub_efi_mm_init): Likewise.
10202 (grub_efi_mm_fini): Removed.
10204 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10206 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
10207 (grub_efi_mm_init): Take into account the memory map size increase.
10209 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10211 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
10212 (serial_hw_put): Wait based on real time rather than port reads. Don't
10214 * include/grub/serial.h (grub_serial_port): New field broken.
10216 2010-10-16 Robert Millan <rmh@gnu.org>
10218 * grub-core/kern/emu/misc.c
10219 (grub_make_system_path_relative_to_its_root): Fix premature return
10220 when processing non-root ZFS filesystems.
10221 Reported by Sergio Talens-Oliag.
10223 2010-10-15 Robert Millan <rmh@gnu.org>
10225 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
10226 guarantee compressed ones are processed first.
10228 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10230 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
10231 grub_efiemu_autocore.
10233 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10235 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
10237 (grub_console_getkey): Use correct jae opcode rather than ja.
10239 2010-10-12 Robert Millan <rmh@gnu.org>
10241 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
10242 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
10243 variable. All references updated.
10245 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
10247 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
10249 Correctly distinguish mdraid flavours.
10251 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
10252 (insert_array): New argument raid.
10253 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
10254 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
10255 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
10257 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
10259 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
10260 handling of special keys.
10262 2010-10-02 Aleš Nesrsta <starous@volny.cz>
10264 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
10265 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
10267 2010-10-02 Aleš Nesrsta <starous@volny.cz>
10269 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
10270 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
10272 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
10273 Use right endpoint when querying descriptor.
10275 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
10277 Clear out 0x80 color bit on EFI.
10279 Reported by: decoder and meta tech.
10281 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
10282 (grub_console_setcolorstate): Clear out 0x80 bit.
10283 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
10284 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
10285 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
10287 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
10289 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
10292 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10294 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
10295 mo_file after freeing.
10297 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10299 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
10301 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10303 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
10306 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10308 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
10311 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
10313 Put terminfo into core on ieee1275 and yeeloong (needed for console).
10315 * gentpl.py: New groups terminfoinkernel and terminfomodule.
10316 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
10317 and terminfo.h when needed.
10318 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
10319 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
10320 (terminfo): Enable only on terminfokernel.
10321 (extcmd): Likewise.
10322 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
10323 * include/grub/lib/arg.h: Likewise.
10324 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
10325 incorrect usage of ->.
10327 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10329 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
10330 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
10332 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10334 Fix coreboot compilation.
10336 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10337 Take VBE info into account even if only text is supported.
10338 (fill_vbe_info): Take into account the case when only VGA text
10340 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
10341 on coreboot, multiboot and qemu.
10343 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10345 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
10347 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
10349 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10351 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
10354 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10356 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
10357 if they were BSD-style.
10359 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10361 * grub-core/boot/i386/pc/lnxboot.S: Replace
10362 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
10363 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
10365 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
10367 Write embedding zone using Reed-Solomon.
10369 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
10370 * grub-core/Makefile.am (rs_decoder.S): New target.
10371 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
10372 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
10373 (multiboot): Move to RS part.
10374 (post_reed_solomon): New label.
10375 (grub_boot_drive): Move to non-RS part since it's modified in memory
10377 Include rs_decoder.S.
10378 * grub-core/lib/reed_solomon.c: New file.
10379 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
10381 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
10382 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
10383 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
10384 * include/grub/partition.h (grub_partition_map): Change prototype of
10385 embed to allow returning additional sectors.
10386 * include/grub/reed_solomon.h: New file.
10387 * util/grub-setup.c (setup): Handle Reed-Solomon.
10389 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
10391 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
10392 i386 and x86-64 definedness tests.
10394 2010-09-27 Yves Blusseau <blusseau@zetam.org>
10396 Fix generation of kernel_syms.lst
10398 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
10401 2010-09-26 Robert Millan <rmh@gnu.org>
10403 Support degraded ZFS arrays in "grub-probe -t device" resolution.
10405 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
10406 the pool is an array of devices, iterate through it and return the
10407 first device that passes a stat() test (instead of blindly returning
10410 2010-09-26 Robert Millan <rmh@gnu.org>
10412 Build fixes for GNU/kFreeBSD.
10414 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
10415 to programs that require ZFS conversion.
10416 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
10417 kernels that don't have FLOPPY_MAJOR.
10419 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
10421 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
10423 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
10425 Fix grub-emu build.
10427 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
10428 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
10429 mdraid09 and mdraid1x.
10431 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
10433 Re-enable grub-extras.
10435 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
10436 avoid confusing Automake. Run autogen only twice, once for the top
10437 level and once for grub-core. Add Makefile.util.def and
10438 Makefile.core.def from extra modules to the appropriate autogen
10439 invocations. If Makefile.common exists in an extra module, include
10440 it in both Makefile.util.am and grub-core/Makefile.core.am;
10441 similarly, include any Makefile.util.common file in Makefile.util.am
10442 and any Makefile.core.common file in grub-core/Makefile.core.am.
10443 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
10444 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
10445 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
10446 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
10448 * gentpl.py (gvar_add): Turn GVARS into a set.
10449 (global_variable_initializers): Sort global variables on output.
10450 (vars_init): New function.
10451 (first_time): Likewise.
10452 (library): Ensure that non-global variable initialisations are
10453 emitted before the first time we emit code for a library block.
10454 Append to variables rather than setting them. Only emit
10455 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
10456 each conditional path.
10457 (program): installdir() emits an Autogen macro, so must be passed to
10458 var_add rather than gvar_add.
10460 (script): Likewise.
10461 (rules): New function, centralising handling for different target
10462 types. Set up Guile association lists for first_time and vars_init,
10463 and send most output to a diversion so that variable initialisations
10464 can be emitted first.
10465 (module_rules): Use new rules function.
10466 (kernel_rules): Likewise.
10467 (image_rules): Likewise.
10468 (library_rules): Likewise.
10469 (program_rules): Likewise.
10470 (script_rules): Likewise.
10471 (data_rules): Likewise.
10473 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
10475 * .bzrignore: Add contrib and grub-core/contrib. Remove
10476 grub-core/Makefile.gcry.am.
10478 2010-09-24 Yves Blusseau <blusseau@zetam.org>
10480 * grub-core/lib/LzFind.c: Add missing include.
10481 * grub-core/lib/LzmaEnc.c: Likewise.
10482 * grub-core/script/lexer.c: Likewise.
10483 * grub-core/script/yylex.l: Likewise.
10484 * util/grub-macho2img.c: Likewise.
10485 * util/grub-menulst2cfg.c: Likewise.
10486 * util/grub-mklayout.c: Likewise.
10487 * util/grub-mkpasswd-pbkdf2.c
10488 * util/grub-mkrelpath.c: Likewise.
10489 * util/resolve.c: Likewise.
10491 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
10493 * Makefile.util.def (example_unit_test): Add
10494 grub-core/gnulib/libgnu.a.
10496 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
10498 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
10500 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
10502 Support xz compression on yeeloong.
10504 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
10505 * configure.ac: Check for LZMA.
10506 * grub-core/Makefile.core.def (xz_decompress): New target.
10507 (none_decompress): Likewise.
10508 * grub-core/boot/decompressor/minilib.c: New file.
10509 * grub-core/boot/decompressor/none.c: Likewise.
10510 * grub-core/boot/decompressor/xz.c: Likewise.
10511 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
10512 * grub-core/kern/mips/cache_flush.S: Likewise.
10513 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
10514 * grub-core/kern/mips/startup.S: Move first stage to ...
10515 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
10517 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
10518 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
10519 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
10520 Allocate statically.
10521 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
10522 Allocate statically or use scratch. Don't check CRC32.
10523 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
10524 Allocate statically. Don't check CRC32.
10525 * include/grub/decompressor.h: New file.
10526 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
10528 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
10529 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
10530 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
10531 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
10532 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
10533 * util/grub-mkimage.c (grub_compression_t): New type.
10534 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
10535 (image_target_desc): New field default_compression.
10536 (image_targets): Adjust yeeloong targets.
10537 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
10538 (compress_kernel): New parameter comp.
10539 (generate_image): Likewise. Handle new compression case.
10540 (options): New option --compression
10542 (main): Handle new option.
10544 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
10546 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
10548 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
10550 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
10551 typo in __i386__ conditional.
10553 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10555 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
10558 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
10560 Implement EFI and ACPI multiboot2 extensions.
10562 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
10563 new tags as supported.
10564 (acpiv2_size): New function.
10565 (grub_multiboot_get_mbi_size): Take new tags into account.
10566 (grub_multiboot_make_mbi): Add new tags.
10567 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
10569 2010-09-21 Aleš Nesrsta <starous@volny.cz>
10571 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
10572 Added missing configuration of USB device.
10574 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10576 * grub-core/normal/menu_entry.c (run): Make sure we always return
10579 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10581 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
10582 NumberOfPages is UINT64 according to the UEFI specification, not
10583 UINTN. Fix printf format.
10585 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10587 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
10588 `err' to grub_usb_err_t.
10589 Reported and tested by: KESHAV P.R.
10591 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10593 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
10594 tpart non-const, so that we can assign to it. (Since this is a
10595 typedef, the constness refers to the pointer rather than what it
10598 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10600 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
10601 $(top_srcdir)/grub-core/gnulib as well as
10602 $(top_builddir)/grub-core/gnulib.
10603 Reported by: KESHAV P.R.
10605 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10607 * util/grub-install.in: Fix the bootloader ID option to be
10608 consistently --bootloader-id, not --bootloader_id.
10609 Reported by: KESHAV P.R.
10611 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10613 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
10614 check hash checksum." consistently translatable.
10616 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10618 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
10621 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10623 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
10624 (GRUB_MOD_INIT): Register sha1sum command.
10625 (GRUB_MOD_FINI): Unregister sha1sum command.
10627 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10629 Keep boot and grub directory names in sync with utils scripts
10631 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
10632 * config.h.in: Add previous macros.
10633 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
10634 * util/grub-install.in: Use $bootdir and $grubdir variables.
10636 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10638 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
10639 convert partition names to disk names if the new `convert' parameter
10641 (grub_util_biosdisk_get_grub_dev): If opening the disk device
10642 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
10643 disk in its own right. This can happen with Xen disk images.
10645 2010-09-21 Yves Blusseau <blusseau@zetam.org>
10647 * util/grub-editenv.c: Update strings to avoid warnings when generating
10649 * util/grub-setup.c: Likewise.
10651 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10653 * configure.ac: Change version to 1.99~beta0.
10655 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
10657 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
10659 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
10661 * include/multiboot.h: Resynced with specification.
10662 * include/multiboot2.h: Likewise.
10664 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
10666 Fix po directory handling.
10668 * configure.ac: Create po/Makefile.in rather than po/Makefile.
10669 * grub-core/gnulib/Makefile.am: Import gettext module.
10670 * m4/gnulib-cache.m4: Likewise.
10671 * m4/gnulib-comp.m4: Likewise.
10672 * m4/gettext.m4: New file, from gnulib.
10673 * m4/glibc2.m4: Likewise.
10674 * m4/iconv.m4: Likewise.
10675 * m4/intdiv0.m4: Likewise.
10676 * m4/intl.m4: Likewise.
10677 * m4/intldir.m4: Likewise.
10678 * m4/intlmacosx.m4: Likewise.
10679 * m4/intmax.m4: Likewise.
10680 * m4/inttypes-pri.m4: Likewise.
10681 * m4/lcmessage.m4: Likewise.
10682 * m4/lib-ld.m4: Likewise.
10683 * m4/lib-link.m4: Likewise.
10684 * m4/lib-prefix.m4: Likewise.
10685 * m4/lock.m4: Likewise.
10686 * m4/nls.m4: Likewise.
10687 * m4/po.m4: Likewise.
10688 * m4/printf-posix.m4: Likewise.
10689 * m4/progtest.m4: Likewise.
10690 * m4/threadlib.m4: Likewise.
10691 * m4/uintmax_t.m4: Likewise.
10692 * m4/visibility.m4: Likewise.
10693 * po/Makefile.am: Remove.
10694 * po/Makefile.in.in: New file, from gettext.
10695 ($(DOMAIN).pot-update): Support POTFILES-shell.
10696 * po/Makevars: New file.
10697 * po/POTFILES-shell: Rename to ...
10698 * po/POTFILES-shell.in: ... this. Update.
10699 * po/POTFILES: Rename to ...
10700 * po/POTFILES.in: ... this. Update.
10701 * po/Rules-quot: New file, from gettext.
10702 * po/boldquot.sed: Likewise.
10703 * po/en@boldquot.header: Likewise.
10704 * po/en@quot.header: Likewise.
10705 * po/insert-header.sin: Likewise.
10706 * po/quot.sed: Likewise.
10707 * po/remove-potcdate.sin: Likewise.
10709 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10711 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
10713 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10715 * util/grub.d/20_linux_xen.in: Use submenus.
10717 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10721 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
10722 parameter submenu. All users updated.
10723 * grub-core/normal/main.c (free_menu): Rename to ...
10724 (grub_normal_free_menu): ... this. Made global.
10725 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
10727 * grub-core/normal/menu_entry.c (screen): New field submenu.
10728 (make_screen): Set submenu.
10729 (run): Open new context if requested.
10730 * include/grub/menu.h (grub_menu_entry): New field submenu.
10731 * include/grub/normal.h (grub_normal_free_menu): New proto.
10733 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10735 Menu entries extractor.
10737 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
10739 (GRUB_MOD_INIT): Register new variants.
10740 (GRUB_MOD_FINI): Unregister new variants.
10741 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
10742 into grub_cmd_legacy_source.
10743 (grub_cmd_legacy_source): Implement extractor variants.
10744 (GRUB_MOD_INIT): Register new variants.
10745 (GRUB_MOD_FINI): Unregister new variants.
10746 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
10748 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
10749 search as an extractor.
10750 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
10751 test as an extractor.
10752 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
10754 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
10755 (grub_env_new_context): New function.
10756 (grub_env_context_open): Likewise.
10757 (grub_env_extractor_open): Likewise.
10758 (grub_env_extractor_close): Likewise.
10759 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
10760 grub_extractor_level.
10761 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
10762 * include/grub/env.h (grub_env_extractor_open): New proto.
10763 (grub_env_extractor_close): Likewise.
10764 * include/grub/normal.h (grub_extractor_level): New external variable.
10766 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10768 Make cutmem accept a region specification.
10769 Suggested by: Samuel Thibault
10771 * grub-core/mmap/mmap.c (parsemem): New function.
10772 (grub_cmd_cutmem): Handle new arguments.
10774 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10776 New command cutmem.
10778 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
10779 (GRUB_MOD_INIT): Register new command.
10780 (GRUB_MOD_FINI): Unregister new command.
10782 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10784 Support some annoying BSD and Minix subpartitions.
10786 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
10787 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
10788 Properly handle concatenation.
10789 * grub-core/kern/device.c (grub_device_iterate): Likewise.
10790 * grub-core/normal/completion.c (iterate_partition): Likewise.
10791 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
10792 contain partition. All users updated.
10793 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
10795 (grub_openbsdlabel_partition_map): Likewise.
10796 (bsdlabel_partition_map_iterate): Rename to ..
10797 (iterate_real): ... this. New arguments sector, freebsd and pmap.
10798 (bsdlabel_partition_map_iterate): New function.
10799 (netopenbsdlabel_partition_map_iterate): Likewise.
10800 (netbsdlabel_partition_map_iterate): Likewise.
10801 (openbsdlabel_partition_map_iterate): Likewise.
10802 (GRUB_MOD_INIT): Register new partmaps.
10803 (GRUB_MOD_FINI): Unregister new partmaps.
10804 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
10805 (grub_partition_msdos_iterate): ... this. All users updated.
10806 Don't support embedding other than in a minix partition.
10807 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
10809 * include/grub/partition.h (grub_partition): New field msdostype.
10810 * util/grub-install.in: Handle openbsd and netbsd types being in
10813 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10815 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
10817 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
10818 * grub-core/Makefile.core.def (mdraid): Renamed to ...
10819 (mdraid09): ... this.
10820 (mdraid1x): New module.
10821 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
10822 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
10824 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10826 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
10829 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10831 * grub-core/commands/efi/lsefimmap.c: Correct header.
10834 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10836 * util/grub-editenv.c (argp_parser): Don't pass translated strings
10837 as printf format strings; the translations might contain '%' which
10838 could cause a crash.
10840 * util/grub-fstest.c (argp_parser): Likewise.
10841 * util/grub-setup.c (argp_parser): Likewise.
10844 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10846 Use argp in grub-fstest.
10848 * util/grub-fstest.c: Don't include getopt.h.
10850 (root): New variable.
10851 (args_count): Likewise.
10853 (num_disks): Likewise.
10854 (images): Likewise.
10856 (debug_str): Likewise.
10858 (options): Transformed to argp.
10860 (main): Split argument parsing into ...
10861 (argp_parser): ... this. Changed to argp format.
10862 (argp): New variable.
10863 (main): Use argp_parse.
10865 2010-09-20 Tristan Gingold <gingold@free.fr>
10866 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
10867 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10869 * grub-core/commands/efi/lsefimmap.c: New file.
10870 * grub-core/Makefile.core.def (lsefimmap): New module.
10871 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
10873 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10875 Pause the execution (10s max) if any errors are displayed so the user
10876 has a chance to see them.
10878 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
10879 (grub_print_error): Increment grub_err_printed_errors.
10880 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
10881 execution if any errors were displayed.
10882 (show_menu): Remove old code for pause.
10883 * grub-core/normal/menu_entry.c (run): Likewise.
10884 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
10886 (grub_normal_get_char_counter): Likewise.
10887 * include/grub/err.h (grub_err_printed_errors): New external variable.
10888 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
10890 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10892 Support multiboot VBE info.
10894 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10895 Take VBE info into account.
10896 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
10897 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10898 Call fill_vbe_info when appropriate.
10899 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
10900 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
10902 (grub_multiboot_get_mbi_size): Take new tags into account.
10903 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
10904 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
10905 Call fill_vbe_tag when appropriate.
10906 (grub_multiboot_make_mbi): Properly align tags.
10907 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
10909 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
10911 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
10913 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10915 Suport manual terminal geometry specification.
10917 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
10918 Save state in grub_ofconsole_terminfo_output.
10919 (grub_ofconsole_term): Use grub_terminfo_getwh.
10920 (grub_ofconsole_getwh): Removed.
10921 * grub-core/term/serial.c (grub_serial_getwh): Removed.
10922 (grub_serial_term): Use grub_terminfo_getwh.
10923 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
10924 (options): New struct.
10925 (OPTION_*): New enum.
10926 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
10927 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
10929 (grub_terminfo_getwh): New proto.
10930 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
10932 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10934 Handle legacy "terminal" command.
10936 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
10938 (legacy_commands): Add terminal and title.
10939 (grub_legacy_parse): Handle terminal. Simplify title handling.
10941 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
10943 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
10944 parameters overflow.
10946 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10948 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
10951 * docs/grub.texi (Shell-like scripting): Document `!'.
10952 (Network): Simplify using new i386-pc-pxe format. Mention
10957 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10959 * Makefile.am (SUBDIRS): Restore "."; it's important to force
10960 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
10963 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10965 * grub-core/commands/efi/lsefisystab.c: Correct header.
10966 * grub-core/commands/efi/lssal.c: Likewise.
10967 * grub-core/commands/testload.c: Likewise.
10969 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10971 * util/grub-mkrescue.in: Add explicit root argument to --set to
10972 prevent the UUID being interpreted as an argument to --set (matches
10973 previous change to prepare_grub_to_access_device).
10975 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
10977 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
10978 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
10979 the verbosity of later #ifs.
10980 (find_partition_start): Define this function on FreeBSD too.
10981 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
10983 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
10986 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10988 * util/grub-editenv.c: Use argp instead of getopt.
10990 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10992 * util/grub-setup.c: Use argp instead of getopt.
10994 2010-09-20 Yves Blusseau <blusseau@zetam.org>
10996 Use gnulib-tool to create gnulib source files.
10998 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
10999 grub-core/gnulib directories
11000 * .bzignore: Add **/.deps and autogenerated gnulib files
11001 * configure.ac: Assign auxiliary directory to build-aux, add invocation
11002 of gnulib macros, add grub-core/gnulib/Makefile
11003 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
11004 include m4 directory to aclocal.
11005 * Makefile.util.def: Remove direct compilation of gnulib source files
11006 and use the new grub-core/gnulib/libgnu.a.
11007 * build-aux/config.rpath: move config.rpath from top directory to
11009 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
11011 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
11012 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
11013 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
11015 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
11018 2010-09-20 Yves Blusseau <blusseau@zetam.org>
11020 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
11021 grub-core/genmod.sh and grub-core/gensyminfo.sh
11023 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
11025 Add a test for echo command options.
11027 * tests/grub_cmd_echo.in: New test.
11028 * Makefile.util.def: Rules for new test.
11030 2010-09-20 Szymon Janc <szymon@janc.net.pl>
11032 Remove crc.mod and move crc command to hashsum.mod.
11033 Remove lib/crc.c - users updated to use gcrypt implementation.
11035 * grub-core/commands/crc.c: Removed.
11036 * grub-core/Makefile.core.def (crc): Module removed.
11037 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
11038 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
11039 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
11040 * grub-core/lib/crc.c: Removed.
11041 * include/grub/lib/crc.h: Removed.
11042 * Makefile.util.def (crc): Remove lib/crc.c
11043 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
11044 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
11045 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
11046 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
11047 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
11048 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
11050 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
11052 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
11054 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11056 Split config.h for util and core.
11058 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
11059 (ADDR32): Likewise.
11060 (DATA32): Likewise.
11061 (BSS_START_SYMBOL): Likewise.
11062 (END_SYMBOL): Likewise.
11063 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
11064 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
11065 * config.h.in: New file.
11066 * configure.ac: Use config-util.h as config define file.
11067 Rename MACHINE into GRUB_MACHINE. All users updated.
11068 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
11070 (NESTED_FUNC_ATTR): Likewise.
11071 Substitue new variables.
11072 (COND_HAVE_ASM_USCORE): New conditional.
11073 * grub-core/Makefile.am (ASM_PREFIX): New variable.
11074 (kernel_syms.lst): Use ASM_PREFIX.
11075 * grub-core/kern/emu/console.c: Include config-util.h.
11076 * grub-core/kern/emu/misc.c: Likewise.
11077 * grub-core/kern/emu/mm.c: Likewise.
11078 * include/grub/emu/misc.h: Likewise.
11079 * include/grub/libgcc.h: Likewise.
11081 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11083 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
11085 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
11086 Fix GRUB_TERM_KEY_* constants usage.
11087 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
11089 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11091 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
11093 * grub-core/bus/usb/uhci.c: Remove empty define.
11094 (grub_uhci_check_transfer): Add missing cast.
11095 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
11097 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
11099 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
11101 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11103 * grub-core/Makefile.core.def (legacycfg): Add
11104 lib/i386/pc/vesa_modes_table.c on emu.
11106 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
11108 Reduce number of temporary files generated by build system.
11110 * grub-core/gencmdlist.sh: Removed.
11111 * grub-core/genfslist.sh: Removed.
11112 * grub-core/genhandlerlist.sh: Removed.
11113 * grub-core/genmodsrc.sh: Removed.
11114 * grub-core/genpartmaplist.sh: Removed.
11115 * grub-core/genparttoollist.sh: Removed.
11116 * grub-core/gentermiinallist.sh: Removed.
11117 * grub-core/genvideolist.sh: Removed.
11119 * grub-core/genmod.sh.in: New file.
11120 * grub-core/gensyminfo.sh.in: New file.
11122 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
11123 * conf/Makefile.extra-dist: Update with new files.
11124 * gentpl.py: Remove rules related to unnecessary temporary files.
11125 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
11127 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
11129 * grub-core/bus/usb/uhci.c: Remove empty #define.
11130 * grub-core/genmoddep.awk: Updated with new syminfo format.
11131 * util/bash-completion.d/Makefile.am: Add config.log to
11134 2010-09-19 Yves Blusseau <blusseau@zetam.org>
11136 * Makefile.util.def: Add forgotten $(LIBINTL) library.
11138 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
11140 * util/grub-mkconfig.in: Check the config script for syntax errors
11143 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
11144 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11146 * Makefile.util.def (grub-install): Use util/grub-install.in on all
11148 * util/grub-install.in: Add EFI and IEEE1275 support.
11149 * util/i386/efi/grub-install.in: Removed.
11150 * util/ieee1275/grub-install.in: Likewise.
11152 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11154 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
11155 (grub_cmd_cmosclean): Likewise.
11156 (GRUB_MOD_INIT): Register command cmosclean.
11157 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
11158 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
11160 2010-09-18 Carles Pina i Estany <carles@pina.cat>
11161 2010-09-18 Aleš Nesrsta <starous@volny.cz>
11162 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11164 Add keyboard layouts support.
11166 * Makefile.util.def (grub-mklayout): New file.
11167 (grub-kbdcomp): New script.
11168 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
11169 Add keyboard_layouts.h.
11170 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
11171 commands/boot.c on yeeloong.
11172 (keylayouts): New module.
11173 * grub-core/bus/usb/ohci.c
11174 * grub-core/bus/usb/uhci.c
11175 * grub-core/bus/usb/usbhub.c (rescan): New variable.
11176 (grub_usb_add_hub): Poll interrupt pipe for device handling.
11177 (attach_root_port): Likewise.
11178 (poll_nonroot_hub): Likewise.
11179 (grub_usb_poll_devices): Likewise.
11180 (detach_device): Close transfer.
11181 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
11183 (grub_usb_bulk_setup_readwrite): Likewise.
11184 (grub_usb_bulk_finish_readwrite): Likewise.
11185 * grub-core/commands/keylayouts.c: New file.
11186 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
11187 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
11189 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
11190 support scancode 2.
11191 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
11192 * include/grub/keyboard_layouts.h: New file.
11193 * util/grub-mklayout.c: New file.
11194 * util/grub-kbdcomp.in: Likewise.
11196 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11198 Unify memory types.
11200 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
11201 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
11203 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
11204 (grub_upper_mem): Likewise.
11205 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
11206 * include/grub/memory.h (grub_memory_type_t): New enum.
11209 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11211 * grub-core/Makefile.core.def (lsapm): New module.
11212 * grub-core/commands/i386/pc/lsapm.c: New file.
11213 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
11214 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
11216 * include/grub/i386/pc/apm.h: New file.
11217 * include/multiboot.h (multiboot_apm_info): New struct.
11219 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
11221 GRUB-legacy configuration file support.
11223 * Makefile.util.def (grub-menulst2cfg): New util.
11224 * docs/man/grub-menulst2cfg.h2m: New file.
11225 * grub-core/Makefile.core.def (legacycfg): New module.
11226 * grub-core/commands/legacycfg.c: New file.
11227 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
11228 (grub_normal_add_menu_entry): ... this.
11229 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
11230 (grub_normal_set_password): ...this.
11231 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
11232 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
11233 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
11234 * grub-core/lib/legacy_parse.c: New file.
11235 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
11236 * include/grub/i386/pc/vesa_modes_table.h: New file.
11237 * include/grub/legacy_parse.h: Likewise.
11238 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
11239 * util/grub-menulst2cfg.c: New file.
11241 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11243 * grub-core/kern/emu/hostdisk.c
11244 (convert_system_partition_to_system_disk): Initialise node.
11246 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11248 * grub-core/kern/emu/hostdisk.c
11249 (convert_system_partition_to_system_disk): Fix devmapper memory pool
11251 Reported and based on patch by: Modestas Vainius.
11253 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
11255 Fix DM-RAID probing with recent versions of device-mapper udev
11258 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
11259 canonicalise device paths under /dev/mapper/.
11260 (convert_system_partition_to_system_disk): Compare the
11261 uncanonicalised path to /dev/mapper/ rather than the canonicalised
11262 path, since device nodes under /dev/mapper/ are often symlinks.
11264 2010-09-17 Yves Blusseau <blusseau@zetam.org>
11266 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
11268 2010-09-16 Yves Blusseau <blusseau@zetam.org>
11270 * configure.ac: Avoid some annoying error messages if freetype-config
11271 program is not found.
11273 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11275 Support RAID on virtio devices, and others.
11277 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
11279 [__MINGW32__] (grub_find_device): ... this.
11280 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
11281 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
11282 reasonable default if dir is NULL.
11283 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
11285 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
11286 (grub_guess_root_device): Update callers.
11287 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
11289 * util/raid.c (grub_util_getdiskname): Remove.
11290 (grub_util_raid_getmembers): Use grub_find_device rather than
11291 grub_util_getdiskname.
11293 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11295 * docs/grub.texi (serial): Remove obsolete comment about GRUB
11296 needing to be compiled with serial support.
11297 (ls): Indicate that multiple files are accepted.
11298 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
11299 indicate that multiple files are accepted.
11301 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
11303 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
11304 libgrub_a_init.c, and util/bash-completion.d/grub.
11306 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11308 * util/grub-setup.c (setup): Fix incorrect container semantics.
11310 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11312 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
11314 Reported by: J. Nick Terry
11316 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11318 Move embedding routines to partmap sources files.
11320 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
11321 [GRUB_UTIL]: New variable.
11322 (gpt_partition_map_iterate): Set part.parent.
11323 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
11324 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
11325 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
11327 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
11328 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
11329 (grub_partition_map) [GRUB_UTIL]: New field embed.
11330 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
11331 (setup): Use ->embed.
11333 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11335 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
11337 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
11338 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
11340 2010-09-15 Yves Blusseau <blusseau@zetam.org>
11342 Add function to get completions from usage.
11344 * util/bash-completion.d/grub-completion.bash.in: Add function to get
11345 completions from usage. Use LC_ALL=C to get options properly.
11347 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11349 * grub-core/gnulib/basename-lgpl.c: Imported.
11350 * grub-core/gnulib/basename.c: Likewise.
11351 * grub-core/gnulib/dirname-lgpl.c: Likewise.
11352 * grub-core/gnulib/dirname.c: Likewise.
11353 * grub-core/gnulib/dirname.h: Likewise.
11354 * grub-core/gnulib/stripslash.c: Likewise.
11356 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11358 * grub-core/gnulib/error.c: Resynced.
11359 * grub-core/gnulib/getopt.c: Likewise.
11360 * grub-core/gnulib/getopt_int.h: Likewise.
11361 * grub-core/gnulib/regex.h: Likewise.
11362 * grub-core/gnulib/regex_internal.c: Likewise.
11363 * grub-core/gnulib/regex_internal.h: Likewise.
11365 2010-09-15 Szymon Janc <szymon@janc.net.pl>
11367 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
11368 CRC calculations and validity checks.
11369 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
11372 2010-09-15 Szymon Janc <szymon@janc.net.pl>
11374 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
11376 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11378 Fix incorrect echo options handling.
11379 Reported by: Yves Blusseau.
11381 * include/grub/command.h (grub_command_flags_t): New flags
11382 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
11383 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
11384 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
11386 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11388 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
11390 (GRUB_COMMAND_FLAG_MENU): Likewise.
11391 (GRUB_COMMAND_FLAG_BOTH): Likewise.
11392 (GRUB_COMMAND_FLAG_TITLE): Removed.
11393 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
11394 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
11395 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
11396 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
11397 (grub_command_flags_t): New enum. All users updated.
11399 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
11401 Fix solaris compilation.
11403 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
11404 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
11405 (grub-emu-list): Likewise.
11407 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11409 Remove deprecated root command.
11411 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
11414 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11416 * util/i386/pc/grub-setup.c: Merge this ...
11417 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
11418 * util/grub-setup.c: ... into this.
11419 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
11422 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11424 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
11427 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11429 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
11432 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11434 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
11435 explicit root argument to set to prevent UUID to be interpreted as
11438 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11440 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
11442 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11444 Don't export grub_gate_a20.
11446 * grub-core/kern/i386/pc/init.c: Remove leftovers.
11447 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
11449 (grub_gate_a20): ... this. All users updated.
11450 * include/grub/i386/pc/init.h: Removed. All users updated.
11452 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11454 Create euro.pf2 which supports most European languages.
11456 * Makefile.am (grubdata_DATA): Add euro.pf2.
11457 (euro.pf2): New target.
11458 (CLEANFILES): Add euro.pf2.
11460 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
11462 * configure.ac: Disable emu-usb by default to prevent inadvertent
11465 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11467 Disable usbserial on grub-emu since our libusb code isn't good enough
11470 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
11471 (usbserial_pl2303): Likewise.
11472 (usbserial_ftdi): Likewise.
11474 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11476 * include/grub/disk.h (grub_disk): Remove has_partitions.
11478 * disk/loopback.c (grub_loopback): Remove has_partitions.
11480 (options): Remove partitions. All users updated.
11481 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
11482 * util/i386/pc/grub-setup.c (setup): copy partition table only when
11483 actual partition table is found.
11485 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11487 Remove readability checks (too many false negatives).
11489 * util/grub-install.in: Remove readability checks.
11490 * util/grub-mkconfig.in: Likewise.
11491 * util/grub.d/10_hurd.in: Likewise.
11492 * util/grub.d/10_kfreebsd.in: Likewise.
11493 * util/grub.d/10_linux.in: Likewise.
11494 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
11497 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11499 Enable acpi shutdown on all ACPI platforms.
11501 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
11502 on coreboo, multiboot and EFI.
11503 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
11504 (grub_acpi_halt): Likewise.
11505 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
11506 (grub_cmd_halt): Don't call grub_acpi_halt directly.
11507 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
11508 * grub-core/lib/i386/halt.c (grub_halt)
11509 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
11511 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11513 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
11516 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11518 * grub-core/video/efi_gop.c: Fix over-80-chars line.
11519 * grub-core/video/efi_uga.c: Likewise.
11521 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11523 Filter devaliases and never open same device twice.
11525 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
11526 (last_ihandle): Likewise.
11527 (ofdisk_hash_ent): New member shortest.
11528 (ofdisk_hash_add): Add canonical path too.
11529 (scan): New function.
11530 (grub_ofdisk_iterate): Iterate over hashed entries.
11531 (compute_dev_path): Don't add :0.
11532 (grub_ofdisk_open): Don't really open the disk.
11533 (grub_ofdisk_close): Avoid closing unrelated disk.
11534 (grub_ofdisk_read): Implement reopen logic.
11535 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
11537 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
11540 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11544 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
11545 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
11546 right address. Add sparc64_ieee1275_ldflags.
11547 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
11548 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
11549 to grub_host_to_target_addr
11550 (load_image): Likewise.
11552 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11554 * grub-core/normal/completion.c (complete_file): Handle device
11556 Fix based on patch by Doug Nazar.
11558 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11560 grub-mknetdir script.
11562 * Makefile.util.def (grub-mknetdir): New module.
11563 * tests/util/grub-shell.in: Support boot=net
11564 * util/grub-mknetdir.in: New file.
11566 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11568 videoinfo on non-vbe.
11570 * grub-core/Makefile.core.def (vbeinfo): Removed.
11571 (vbetest): Removed.
11572 (videoinfo): New module.
11573 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
11574 * grub-core/commands/i386/pc/vbetest.c: Removed.
11575 * grub-core/commands/videoinfo.c: New file.
11576 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
11578 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
11580 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
11581 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
11582 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
11583 mode_number. New parameter mode. All users updated.
11584 (grub_video_gop_iterate): New function.
11585 (grub_video_efi_gop): New member iterate.
11586 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
11587 (grub_vbe_set_video_mode): Remove setting useless fields.
11588 (vbe2videoinfo): New function.
11589 (grub_video_vbe_iterate): Likewise.
11590 (grub_video_vbe_setup): Use vbe2videoinfo.
11591 (grub_video_vbe_print_adapter_specific_info): New function.
11592 (grub_video_vbe_adapter): New fields iterate and
11593 print_adapter_specific_info.
11594 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
11596 (grub_video_mode_info): New field mode_number.
11597 (grub_video_adapter): New fields iterate and
11598 print_adapter_specific_info.
11600 2010-09-13 Tristan Gingold <gingold@free.fr>
11601 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
11602 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11604 * grub-core/commands/efi/lsefisystab.c: New file.
11605 * grub-core/commands/efi/lssal.c: Likewise.
11606 * grub-core/Makefile.core.def (lsacpi): New module.
11607 (lsefisystab): Likewise.
11608 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
11609 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
11610 (grub_efi_sal_system_table): New struct.
11611 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
11612 (grub_efi_sal_system_table_memory_descriptor): Likewise.
11613 (grub_efi_sal_system_table_platform_features): Likewise.
11614 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
11615 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
11616 (grub_efi_sal_system_table_ap_wakeup): Likewise.
11617 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
11619 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11621 Support explicit user claim that a device is BIOS-visible.
11623 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
11624 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
11625 * grub-core/kern/emu/hostdisk.c
11626 (convert_system_partition_to_system_disk): Support mdX.
11627 (find_system_device): New parameter add. All users updated.
11628 (grub_util_biosdisk_is_present): New function.
11629 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
11632 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
11634 Search hints support.
11636 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
11639 2010-09-13 Yves Blusseau <blusseau@zetam.org>
11641 Bash completion script for util commands
11643 * Makefile.am: Add util/bash-completion.d directory
11644 * configure.ac: Likewise.
11645 * util/bash-completion.d/Makefile.am: New file.
11646 * util/bash-completion.d/grub-completion.bash.in: Likewise.
11648 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11650 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
11651 (print_backlog): set backlog_ucs4 and backlog_glyphs.
11652 Reported by: Yves Blusseau.
11654 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11656 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
11657 partition size and offset.
11659 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11661 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
11663 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11665 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
11667 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11669 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
11670 (grub_xvasprintf): Likewise.
11672 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11674 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
11676 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11678 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
11679 args ending with NULL.
11681 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
11683 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
11686 2010-09-11 Szymon Janc <szymon@janc.net.pl>
11688 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
11690 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11692 Shutdown using ACPI.
11694 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
11695 * grub-core/commands/acpihalt.c: New file.
11696 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
11697 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
11698 (grub_acpi_halt): New proto.
11699 (GRUB_ACPI_SLP_EN): New const.
11700 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
11701 (GRUB_ACPI_OPCODE_*): New enum.
11702 (GRUB_ACPI_EXTOPCODE_*): Likewise.
11704 2010-09-11 Tristan Gingold <gingold@free.fr>
11705 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
11706 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11708 * commands/lsacpi.c: New file.
11709 * grub-core/Makefile.core.def (lsacpi): New module.
11710 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
11711 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
11712 (grub_acpi_madt_entry_header): New struct.
11713 (grub_acpi_madt): Likewise.
11714 (grub_acpi_madt_entry_interrupt_override): Likewise.
11715 (grub_acpi_madt_entry_sapic): Likewise.
11716 (grub_acpi_madt_entry_lsapic): Likewise.
11717 (grub_acpi_madt_entry_platform_int_source): Likewise.
11718 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
11719 (PRIuGRUB_UINT32_T): Likewise.
11720 (PRIxGRUB_UINT64_T): Likewise.
11722 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11724 Implement loading palette on ieee1275_fb.
11726 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
11727 (have_setcolors): Likewise.
11728 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
11729 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
11730 (grub_video_ieee1275_set_palette): Implement.
11732 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11733 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
11735 * util/grub-install.in (grub_partition): New variable.
11736 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
11737 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
11738 Fixes a bug reported by Yves Blusseau.
11740 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
11744 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
11745 =grub_cpu_flush_cache on all mips and not only yeeloong.
11746 * configure.ac (COND_mips): New conditional.
11747 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
11749 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
11750 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
11751 [GRUB_LINKER_HAVE_INIT]: New function.
11752 (grub_emu_post_init): Likewise.
11753 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
11754 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
11755 * include/grub/cache.h (_mips): Include mips/cache.h.
11756 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
11757 LVM and RAID prototypes.
11758 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
11759 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
11762 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11764 * util/grub-install.in: Don't try to verify core.img until after
11765 running grub-mkimage to create it.
11767 2010-09-10 Robert Millan <rmh@gnu.org>
11769 * util/grub.d/10_hurd.in: Add misc readability checks.
11770 * util/grub.d/10_kfreebsd.in: Likewise.
11771 * util/grub.d/10_linux.in: Likewise.
11773 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11775 * util/grub-install.in: ${imgext} won't be defined here until the
11776 install branch is merged. For the meantime, only verify core.img on
11777 i386-pc and sparc64-ieee1275 platforms.
11779 2010-09-10 Robert Millan <rmh@gnu.org>
11781 Solaris support in grub_find_zpool_from_dir(). Thanks
11782 Seth Goldberg for referring to getextmntent() facility.
11784 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
11786 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
11788 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
11789 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
11790 method for finding zpool name.
11792 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
11794 grub-fstest needs the host and hostfs modules while other utilities
11795 actively require those modules to be absent, so grub-fstest needs
11796 its own initialisation and finalisation code.
11798 * Makefile.am (grub_fstest.pp): New target.
11799 (grub_fstest_init.lst): Likewise.
11800 (grub_fstest_init.c): Likewise.
11801 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
11803 2010-09-10 Robert Millan <rmh@gnu.org>
11805 * configure.ac: Check for `struct statfs.f_fstypename' and
11806 `struct statfs.f_mntfromname'.
11808 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
11809 kFreeBSD-specific code.
11811 2010-09-10 Robert Millan <rmh@gnu.org>
11813 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
11814 on ZFS. Now non-main filesystems are supported as / too.
11816 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
11818 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
11819 and grub-core/disk/host.c to ...
11820 (grub-fstest): ... here. Having the host disk implementation
11821 present confuses grub-probe and other utility programs.
11823 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
11824 when writing to a file, not when writing to stdout.
11826 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
11828 * tests/partmap_test.in: New test for partitions.
11829 * Makefile.util.def: Rules for new test.
11831 2010-09-09 Robert Millan <rmh@gnu.org>
11833 * util/grub-probe.c (probe): Fix a pair of unhandled error
11836 2010-09-09 Robert Millan <rmh@gnu.org>
11838 Basic Btrfs support (detection and UUID).
11840 * grub-core/fs/btrfs.c: New file.
11841 * Makefile.util.def (library): Register btrfs.c.
11842 * grub-core/Makefile.core.def: Likewise.
11844 2010-09-08 Robert Millan <rmh@gnu.org>
11846 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
11847 with (optional) parameters to specify device and relative path.
11848 * util/grub-install.in: Use is_path_readable_by_grub() to
11849 verify readability of a few critical files.
11850 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
11851 verify readability of grub.cfg.new.
11853 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11855 Split minix.mod into minix.mod and minix2.mod.
11857 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
11858 * grub-core/Makefile.core.def (minix2): New module.
11859 * grub-core/fs/minix.c: Use definitions instead of runtime version
11861 * grub-core/fs/minix2.c: New file.
11863 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11865 Add new --boot-directory option to replace --root-directory
11867 * util/grub-install.in: Add new --boot-directory option
11868 * util/grub-reboot.in: Likewise.
11869 * util/grub-set-default.in: Likewise.
11871 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11873 * util/grub-mkconfig.in: Use new variable.
11875 2010-09-08 Yves Blusseau <blusseau@zetam.org>
11877 * configure.ac: Define some useful variables.
11879 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
11881 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
11882 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
11883 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
11884 Use terminfo and don't use cursor-on/cursor-off unless it's known
11886 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
11887 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
11889 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
11891 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
11892 starts with "(,", fill the drive containing the loaded image in
11893 between those two characters, but expect that a full partition
11894 specification including partition map names will follow.
11896 2010-09-08 Robert Millan <rmh@gnu.org>
11898 * configure.ac: Remove `--enable-grub-fstest' option.
11899 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
11901 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
11902 `grub-fstest' instead of `grub-probe' for readability verification.
11903 * util/grub-probe.c (probe): Remove readability verification kludge.
11905 2010-09-08 Robert Millan <rmh@gnu.org>
11907 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
11908 initializing `GRUB_FS'.
11910 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
11912 Not command (!) support to GRUB script.
11914 * tests/grub_script_not.in: New test.
11915 * Makefile.util.def: Rules for new test.
11917 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
11918 ! command as a special case.
11919 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
11921 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11923 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
11926 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11928 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
11930 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
11932 * docs/grub.texi (Shell-like scripting): Documentation for break,
11933 continue, shift and return commands.
11935 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
11937 Rename CD-ROM to cd on BIOS.
11939 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
11941 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
11943 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11945 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
11946 * util/grub-probe.c (main): Likewise.
11947 * util/i386/pc/grub-setup.c (main): Likewise.
11948 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
11949 Reported and debugged by: alexxy
11951 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11953 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
11956 2010-09-05 Jo Shields <directhex@apebox.org>
11958 * util/grub.d/30_os-prober.in: Add missing classes.
11960 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11962 * docs/grub.texi (Theme file format): Document new position format.
11964 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11966 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
11967 a table. Use @code instead of @verbatim.
11969 2010-09-05 Colin D Bennett <colin@gibibit.com>
11971 Gfxmenu documentation.
11973 * docs/grub.texi (Theme file format): New chapter.
11975 2010-09-05 Szymon Janc <szymon@janc.net.pl>
11977 * grub-core/Makefile.core.def (xzio): New module.
11978 * grub-core/io/xzio.c: New file.
11979 * grub-core/lib/xzembed/xz.h: New file (from xembed).
11980 * grub-core/lib/xzembed/xz_config.h: Likewise.
11981 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
11982 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
11983 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
11984 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
11985 * grub-core/lib/xzembed/xz_private.h: Likewise.
11986 * grub-core/lib/xzembed/xz_stream.h: Likewise.
11987 * include/grub/file.h (grub_file_filter_id): New compression filter
11988 GRUB_FILE_FILTER_XZIO.
11990 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11992 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
11993 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
11996 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
11998 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
11999 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
12001 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12003 Uncompressed checksum support.
12005 * grub-core/commands/hashsum.c (options): Add option --uncompress.
12006 (check_list): New parameter uncompress.
12007 (grub_cmd_hashsum): Handle --uncompress.
12009 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12011 Reintroduce testload.
12013 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
12015 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
12016 (GRUB_MOD_INIT): New function.
12017 (GRUB_MOD_FINI): Likewise.
12018 * grub-core/Makefile.core.def (testload): New module.
12020 2010-09-05 Szymon Janc <szymon@janc.net.pl>
12022 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
12023 (uint8_t): New type.
12024 (uint16_t): Likewise.
12025 (uint32_t): Likewise.
12026 (uint64_t): Likewise.
12028 2010-09-05 Szymon Janc <szymon@janc.net.pl>
12030 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
12032 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
12034 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
12036 (grub_gzfile_open): Removed. All users updated.
12037 (GRUB_MOD_INIT): New function.
12038 (GRUB_MOD_FINI): Likewise.
12039 * grub-core/kern/file.c (grub_file_filters_all): New variable.
12040 (grub_file_filters_enabled): Likewise.
12041 (grub_file_open): Handle filters.
12042 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
12043 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
12044 * include/grub/file.h (grub_file_filter_id_t): New type.
12045 (grub_file_filter_t): Likewise.
12046 (grub_file_filters_all): New extern variable.
12047 (grub_file_filters_enabled): Likewise.
12048 (grub_file_filter_register): New inline function.
12049 (grub_file_filter_unregister): Likewise.
12050 (grub_file_filter_disable): Likewise.
12051 (grub_file_filter_disable_compression): Likewise.
12052 * include/grub/gzio.h: Removed.
12054 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12056 Filename expansion support for wildcards in GRUB script.
12058 * tests/grub_script_expansion.in: New test.
12059 * Makefile.util.def: Rule for new test.
12061 * grub-core/commands/wildcard.c: New file, implements filename
12062 expansion support for GRUB script.
12063 * grub-core/Makefile.core.def: Rule update for regexp.mod.
12064 * grub-core/script/argv.c: Cosmetic changes.
12065 * grub-core/script/execute.c (grub_script_arglist_to_argv):
12066 Refactored to perform wildcard expansion on arguments.
12067 * include/grub/script_sh.h (grub_script_wildcard_translator): New
12070 * tests/util/grub-shell.in: Fix quoting for read input.
12072 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12074 Support for updating environment variables with matched substrings
12077 * tests/grub_cmd_regexp.in: New test.
12078 * Makefile.util.def: Rule for new test.
12080 * grub-core/commands/regexp.c: New option -s to update environment
12081 variables with regexp matches.
12083 2010-09-04 Szymon Janc <szymon@janc.net.pl>
12085 * include/grub/file.h (grub_file): New member not_easly_seekable.
12086 (grub_file_seekable): New inline function.
12087 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
12089 (grub_gzio_open): Set not_easly_seekable.
12090 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
12091 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
12093 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12095 Support for options to appear multiple times on cmdline.
12097 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
12098 * grub-core/commands/extcmd.c: Support for repeatable option.
12099 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
12100 repeatable option support.
12102 Refactor menuentry into a regular command.
12104 * grub-core/commands/menuentry.c: New file, menuentry command
12106 * grub-core/Makefile.core.def: Rule update for normal.mod.
12107 * grub-core/normal/main.c: Moved menuentry creation to
12108 grub-core/commands/menuentry.c.
12109 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
12110 (grub_menu_execute_entry_real): Removed.
12111 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
12113 (grub_script_execute_menuentry): Removed.
12114 * grub-core/script/parser.y (menuentry): Removed.
12115 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
12116 * grub-core/script/yylex.l (menuentry): Removed.
12117 * include/grub/menu.h (grub_menu_init): New prototype.
12118 (grub_menu_fini): New prototype.
12119 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
12120 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
12121 (grub_script_execute_sourcecode): New prototype.
12123 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12125 "return" command for GRUB script functions.
12127 * tests/grub_script_return.in: New test.
12128 * Makefile.util.def: Rules for new test.
12130 * grub-core/script/execute.c (grub_script_return): New function.
12131 * grub-core/script/main.c: Register/unregister return commaond.
12132 * include/grub/script_sh.h (grub_script_return): New prototype.
12134 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12136 "setparams" command to update positional parameters.
12138 * tests/grub_script_setparams.in: New test.
12139 * Makefile.util.def: Rules for new test.
12141 * grub-core/script/argv.c (grub_script_argv_make): New function.
12142 * grub-core/script/execute.c (replace_scope): New function.
12143 (grub_script_setparams): New function.
12144 * grub-core/script/lexer.c: Remove unused variables.
12145 * grub-core/script/main.c: Register/unregister setparams command.
12146 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
12147 (grub_script_setparams): New prototype.
12149 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12151 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
12154 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12156 Support for passing block of commands as an argument to extcmds.
12158 * Makefile.util.def: Rules for new test.
12159 * tests/grub_script_blockarg.in: New test.
12160 * grub-core/tests/test_blockarg.c: New file, block argument
12161 command used in the test.
12163 * include/grub/extcmd.h (grub_extcmd_context): New struct.
12164 (grub_register_extcmd_prio): New function prototype.
12165 (grub_extcmd_dispatcher): New function prototype.
12166 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
12168 * include/grub/script_sh.h (struct grub_script): New members
12169 `children', `next_siblings' and `refcnt' for block arguments and
12170 reference counting.
12171 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
12172 (grub_script_arg): New member `script' for block argument.
12173 (grub_script_argv): New member `script' for block argument.
12174 (grub_parser_param): New member `scripts' for block argument.
12175 (grub_script_mem_free): New extern function prototype.
12176 (grub_script_ref): New function prototype.
12177 (grub_script_unref): New function prototype.
12179 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
12180 extcmd form to support block arguments.
12181 * grub-core/script/argv.c: Block arguments support.
12182 * grub-core/script/execute.c: Likewise.
12183 * grub-core/script/lexer.c: Likewise.
12184 * grub-core/script/main.c: Likewise.
12185 * grub-core/script/script.c: Likewise.
12186 * grub-core/script/parser.y: Likewise. New `block' and `block0'
12189 * grub-core/commands/acpi.c: Update extcmd implementations with
12190 grub_extcmd_context_t.
12191 * grub-core/commands/cat.c: Likewise.
12192 * grub-core/commands/echo.c: Likewise.
12193 * grub-core/commands/extcmd.c: Likewise.
12194 * grub-core/commands/hashsum.c: Likewise.
12195 * grub-core/commands/hdparm.c: Likewise.
12196 * grub-core/commands/help.c: Likewise.
12197 * grub-core/commands/hexdump.c: Likewise.
12198 * grub-core/commands/i386/cpuid.c: Likewise.
12199 * grub-core/commands/i386/pc/drivemap.c: Likewise.
12200 * grub-core/commands/i386/pc/halt.c: Likewise.
12201 * grub-core/commands/i386/pc/sendkey.c: Likewise.
12202 * grub-core/commands/iorw.c: Likewise.
12203 * grub-core/commands/keystatus.c: Likewise.
12204 * grub-core/commands/loadenv.c: Likewise.
12205 * grub-core/commands/ls.c: Likewise.
12206 * grub-core/commands/lspci.c: Likewise.
12207 * grub-core/commands/memrw.c: Likewise.
12208 * grub-core/commands/probe.c: Likewise.
12209 * grub-core/commands/search_wrap.c: Likewise.
12210 * grub-core/commands/setpci.c: Likewise.
12211 * grub-core/commands/sleep.c: Likewise.
12212 * grub-core/disk/loopback.c: Likewise.
12213 * grub-core/hello/hello.c: Likewise.
12214 * grub-core/loader/i386/bsd.c: Likewise.
12215 * grub-core/loader/xnu.c: Likewise.
12216 * grub-core/term/gfxterm.c: Likewise.
12217 * grub-core/term/serial.c: Likewise.
12218 * grub-core/tests/lib/functional_test.c: Likewise.
12220 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
12222 Multi-line quoted strings support.
12224 * grub-core/script/lexer.c (append_newline): Removed.
12225 (grub_script_lexer_yywrap): Refactored.
12226 (grub_script_lexer_init): Refactored.
12227 * grub-core/script/yylex.l (yywrap): New function.
12228 (grub_lexer_resplit): New function.
12229 (grub_lexer_unput): New function.
12230 * include/grub/script_sh.h (grub_lexer_param): New members, unput
12232 * tests/grub_script_echo1.in: Added few more testcases.
12234 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
12236 * grub-core/kern/misc.c: Don't add abort alias in utils.
12237 Reported by: echoline.
12239 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
12241 Add missing files into "make dist" tarball for other platforms.
12243 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
12244 * conf/Makefile.common (dist_noinst_DATA): New variable.
12245 * conf/Makefile.extra-dist: Added missing make dist files.
12246 * grub-core/Makefile.core.def: Likewise.
12248 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
12250 Compress grub_prefix.
12252 * grub-core/boot/i386/pc/lnxboot.S: Use
12253 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
12254 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
12255 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
12256 GRUB_MACHINE_PREFIX_END. All users updated.
12257 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
12258 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
12260 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
12261 * util/grub-mkimage.c (image_target_desc): Change data_end to
12262 prefix_end. All users updated.
12264 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
12266 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
12268 (grub_openbsd_boot): Likewise.
12269 (grub_netbsd_boot): Likewise.
12270 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
12271 (grub_xnu_boot): Likewise.
12273 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12275 * configure.ac: Clean LIBS variable after tests.
12277 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12279 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
12281 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12283 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
12284 echo if libdevmapper will be used.
12286 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
12288 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
12289 constant for the same file.
12291 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12293 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
12295 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12297 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
12300 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
12302 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
12303 required by the boot protocol.
12305 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
12306 ebp and edi members.
12307 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
12308 state.ebp and state.edi.
12309 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
12310 %ebp and %edi according to grub_relocator32_ebp and
12311 grub_relocator32_edi respectively.
12312 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
12315 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12317 Add i386-pc-pxe image target.
12319 * util/grub-mkimage.c (image_target_desc): New enum value
12321 (image_targets): New target i386-pc-pxe.
12322 (generate_image): Handle i386-pc-pxe image.
12324 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12328 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
12329 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
12331 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
12332 (grub_pxe_pxenv): Correct type.
12334 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12336 * NEWS: Document most of the important changes since 1.98.
12338 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12340 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
12341 generated manual page) a little.
12343 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
12345 * docs/grub.texi: Add myself as an author.
12347 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
12349 * Makefile.util.def (libgrub.a): Add missing sunpc.
12350 Reported by: Seth Goldberg.
12352 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12354 Interrupt wrapping and code simplifications.
12356 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
12357 x86_noieee1275 which are functionaly equivalent in this case.
12358 (grub-install): Make source on each platform explicit. Enable on
12360 * gentpl.py (x86_efi_pc): Removed group.
12361 (x86_noefi): Likewise.
12362 (i386_noefi): Likewise.
12363 (x86_noieee1275): Likewise.
12364 (i386_noieee1275): Likewise.
12365 (i386_noefi_noieee1275): Likewise.
12366 (i386_pc_qemu_coreboot): Likewise.
12367 (i386_coreboot_multiboot): Likewise.
12368 (i386_pc_coreboot_multiboot_qemu): Likewise.
12369 (x86_noefi_mips): Likewise.
12370 (noieee1275): Likewise.
12371 (ieee1275_mips): Likewise.
12372 (noemu_noieee1275): Likewise.
12375 (videoinkernel): Likewise.
12376 (videomodules): Likewise.
12377 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
12378 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
12379 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
12380 include/grub/loader.h, include/grub/msdos_partition.h,
12381 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
12382 include/grub/machine/console.h, include/grub/machine/vga.h,
12383 include/grub/machine/vbe.h, include/grub/machine/init.h,
12384 include/grub/machine/kernel.h, include/grub/cpu/time.h,
12385 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
12386 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
12387 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
12388 * grub-core/Makefile.core.def (kernel): Explicit the source for
12389 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
12390 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
12391 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
12392 Use videoinkernel tag.
12393 (usb): Enable on all usb.
12394 (usbserial_common): Likewise.
12395 (usbserial_pl2303): Likewise.
12396 (usbserial_ftdi): Likewise.
12397 (uhci): Enable on all x86.
12398 (ohci): Enable on all pci.
12399 (cmostest): Enable on all CMOS.
12400 (acpi): Include commands/acpi.c on all platforms.
12401 (halt): Add relevant lib/*/halt.c.
12402 (hdparm): Enable on all pci.
12404 (usbtest): Enable on all usb.
12405 (ata): Enable on all pci.
12406 (ata_pthru): Likewise.
12407 (usbms): Enable on all usb.
12408 (usb_keyboard): Likewise.
12409 (font): Use tag videomodules.
12411 (datetime): Use tag cmos. Enable on all noemu.
12412 (mmap): Use tags common and x86.
12413 (gfxterm): Use tag videomodules.
12414 (bitmap): Likewise.
12415 (bitmap_scale): Likewise.
12416 (video_fb): Likewise.
12418 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
12419 adjust padding accordingly. All users updated.
12420 (grub_ohci_transaction): Fix bad format specification.
12421 (GRUB_MOD_INIT): Add asserts for struct size.
12422 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
12423 (grub_alloc_td): Likewise.
12424 (grub_free_queue): Likewise.
12425 (grub_uhci_transfer): Likewise.
12426 (grub_uhci_transaction): Fix bad format specification.
12427 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
12428 (grub_usb_bulk_readwrite): Likewise.
12429 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
12430 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
12432 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
12434 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
12435 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
12436 Transformed into C.
12437 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
12438 Moved from here ...
12439 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
12440 ... here. Transformed into C. Made static.
12441 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
12442 Moved from here ...
12443 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
12444 ... here. Transformed into C. Made static.
12445 * grub-core/kern/i386/pc/startup.S
12446 (grub_biosdisk_check_int13_extensions): Moved from here ...
12447 * grub-core/disk/i386/pc/biosdisk.c
12448 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
12450 * grub-core/kern/i386/pc/startup.S
12451 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
12452 * grub-core/disk/i386/pc/biosdisk.c
12453 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
12454 Transformed into C. Made static.
12455 * grub-core/kern/i386/pc/startup.S
12456 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
12457 * grub-core/disk/i386/pc/biosdisk.c
12458 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
12459 Transformed into C. Made static.
12460 * grub-core/kern/i386/pc/startup.S
12461 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
12462 * grub-core/disk/i386/pc/biosdisk.c
12463 (grub_biosdisk_get_diskinfo_standard): ... here.
12464 Transformed into C. Made static.
12465 * grub-core/kern/i386/pc/startup.S
12466 (grub_biosdisk_get_num_floppies): Moved from here ...
12467 * grub-core/disk/i386/pc/biosdisk.c
12468 (grub_biosdisk_get_num_floppies): ... here.
12469 Transformed into C. Made static.
12470 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
12472 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
12473 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
12474 Transformed into C. Made static.
12475 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
12476 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
12477 Transformed into C. Made static.
12478 * grub-core/kern/i386/ieee1275/init.c: Removed.
12479 * grub-core/kern/i386/misc.S: Likewise.
12480 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
12481 Splitted from here ...
12482 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
12483 Transformed into C. Made static. All users updated.
12484 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
12485 Transformed into C. Made static. All users updated.
12486 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
12488 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
12489 Transformed into C. Made static. All users updated.
12490 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
12492 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
12493 Transformed into C. Made static. All users updated.
12494 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
12495 Removed (replaced by C version).
12496 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
12498 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
12499 Transformed into C. Made static.
12500 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
12502 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
12503 ... here. Transformed into C.
12504 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
12506 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
12507 ... here. Transformed into C.
12508 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
12510 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
12511 ... here. Transformed into C. Made static.
12512 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
12514 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
12515 ... here. Transformed into C.
12516 * grub-core/kern/i386/pc/startup.S
12517 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
12518 * grub-core/video/i386/pc/vbe.c
12519 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
12520 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
12522 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
12523 ... here. Transformed into C.
12524 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
12526 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
12527 ... here. Transformed into C.
12528 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
12530 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
12531 ... here. Transformed into C.
12532 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
12534 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
12535 ... here. Transformed into C.
12536 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
12538 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
12539 ... here. Transformed into C. Made static.
12540 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
12542 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
12543 ... here. Transformed into C. Made static.
12544 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
12546 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
12547 ... here. Transformed into C. Made static.
12548 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
12549 pxe_rm_entry as third argument.
12550 (grub_bios_interrupt): New function.
12551 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
12552 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
12553 of calling grub_stop.
12554 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
12555 * grub-core/lib/efi/halt.c (grub_halt): ...here.
12556 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
12557 * grub-core/lib/emu/halt.c (grub_halt): ... here.
12558 * grub-core/lib/i386/halt.c: Moved from here ...
12559 * grub-core/lib/i386/halt.c: ... here.
12560 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
12561 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
12562 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
12564 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
12565 * include/grub/i386/coreboot/init.h: Removed.
12566 * include/grub/i386/multiboot/init.h: Likewise.
12567 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
12568 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
12569 * include/grub/i386/pc/int.h: New file.
12570 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
12571 (grub_pxe_scan): Removed.
12572 (grub_pxe_call): Update prototype.
12573 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
12575 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
12576 * include/grub/i386/qemu/init.h: Removed.
12577 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
12579 (grub_halt): Likewise.
12580 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
12581 (grub_reboot): Likewise.
12582 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
12583 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
12584 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
12586 2010-08-30 Robert Millan <rmh@gnu.org>
12588 * NEWS: Document addition of ZFS support in `grub-install' and
12591 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
12593 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
12596 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12598 Remove leftover embedding of font objects.
12600 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12601 * util/grub-install.in (font): Removed.
12602 * util/grub-mkimage.c (generate_image): Remove font support. All users
12605 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12607 Remove leftover embedding of font objects.
12609 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
12610 * util/grub-install.in (font): Removed.
12611 * util/grub-mkimage.c (generate_image): Remove font support. All users
12614 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12616 * docs/grub.texi (Network): Fix reference to pxe_blksize.
12617 Reported by: Ian Turner
12619 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12621 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
12622 timeout to avoid indefinite boot stalling.
12624 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12626 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
12627 (grub_env_write_color_highlight): Likewise.
12629 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12631 * grub-core/normal/term.c (print_more): Return to normal and not
12632 to standard state after printing "---MORE---".
12634 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12636 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
12637 Mask out the bit 0x80 since it has other meaning that specifiing color.
12639 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
12641 New relocator. Allows for more kernel support and more straightforward
12644 * Makefile.am (BOOTTARGET): New variable.
12645 (QEMU32): Likewise.
12646 (linux.init.x86_64): New target.
12647 (linux.init.i386): Likewise.
12648 (multiboot.elf): Likewise.
12649 (kfreebsd.elf): Likewise.
12650 (kfreebsd.aout): Likewise.
12651 (pc-chainloader.elf): Likewise.
12652 (pc-chainloader.bin): Likewise.
12653 (ntldr.elf): Likewise.
12654 (ntldr.bin): Likewise.
12655 (multiboot2.elf): Likewise.
12656 (kfreebsd.init.x86_64): Likewise.
12657 (kfreebsd.init.i386): Likewise.
12658 (knetbsd.init.i386): Likewise.
12659 (kopenbsd.init.i386): Likewise.
12660 (knetbsd.init.x86_64): Likewise.
12661 (kopenbsd.init.x86_64): Likewise.
12662 (linux-initramfs.i386): Likewise.
12663 (linux-initramfs.x86_64): Likewise.
12664 (kfreebsd-mfsroot.i386.img): Likewise.
12665 (knetbsd.image.i386): Likewise.
12666 (kopenbsd.image.i386): Likewise.
12667 (kopenbsd.image.x86_64): Likewise.
12668 (knetbsd.miniroot-image.i386.img): Likewise.
12669 (kfreebsd-mfsroot.x86_64.img): Likewise.
12670 (knetbsd.image.x86_64): Likewise.
12671 (knetbsd.miniroot-image.x86_64.img): Likewise.
12672 (kfreebsd-mfsroot.i386.gz): Likewise.
12673 (bootcheck-kfreebsd-i386): Likewise.
12674 (kfreebsd-mfsroot.x86_64.gz): Likewise.
12675 (bootcheck-kfreebsd-x86_64): Likewise.
12676 (knetbsd.miniroot-image.i386.gz): Likewise.
12677 (bootcheck-knetbsd-i386): Likewise.
12678 (bootcheck-kopenbsd-i386): Likewise.
12679 (bootcheck-kopenbsd-x86_64): Likewise.
12680 (knetbsd.miniroot-image.x86_64.gz): Likewise.
12681 (bootcheck-knetbsd-x86_64): Likewise.
12682 (bootcheck-linux-i386): Likewise.
12683 (bootcheck-linux-x86_64): Likewise.
12684 (bootcheck-linux16-i386): Likewise.
12685 (bootcheck-linux16-x86_64): Likewise.
12686 (bootcheck-multiboot): Likewise.
12687 (bootcheck-multiboot2): Likewise.
12688 (bootcheck-kfreebsd-aout): Likewise.
12689 (bootcheck-pc-chainloader): Likewise.
12690 (bootcheck-ntldr): Likewise.
12691 (CLEANFILES): Add new targets.
12692 (BOOTCHECKS): New variable.
12693 (.PHONY): Add bootchecks.
12694 (SUCCESSFUL_BOOT_STRING): New variable.
12695 (BOOTCHECK_TIMEOUT): Likewise.
12696 (bootcheck): New target
12697 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
12698 * configure.ac: Correct efiemu excuse.
12699 * docs/grub.texi (Supported kernels): New chapter.
12700 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
12701 include/grub/mm_private.h. Simplify inclusion of
12702 include/grub/boot.h, include/grub/loader.h
12703 and include/grub/msdos_partition.h
12704 (KERNEL_HEADER_FILES) [i386_coreboot]:
12705 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
12706 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
12707 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
12708 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
12709 include/grub/machine/loader.h.
12710 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
12711 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
12713 (pci.mod): Enable on i386-multiboot.
12714 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
12715 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
12717 (relocator.mod): Rewritten.
12718 (aout.mod): Enable on all x86.
12719 (bsd.mod): Likewise.
12720 (ntldr.mod): New module.
12721 (linux.mod): Use loader/i386/linux.c on all x86.
12722 (xnu.mod): Enable on all x86.
12723 (vga_text.mod): disable on EFI and QEMU.
12724 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
12725 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
12726 * grub-core/efiemu/loadcore.c: Likewise.
12727 * grub-core/efiemu/main.c: Likewise.
12728 (grub_efiemu_exit_boot_services): Removed.
12729 (grub_efiemu_finish_boot_services): Likewise.
12730 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
12732 * grub-core/efiemu/i386/nocfgtables.c: New file.
12733 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
12734 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
12735 (grub_efi_finish_boot_services): Moved from here ...
12736 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
12737 Fille finish memory map and related data.
12738 (finish_mmap_buf): New variable.
12739 (grub_efi_uintn_t finish_mmap_size): Likewise.
12740 (grub_efi_uintn_t finish_key): Likewise.
12741 (grub_efi_uintn_t finish_desc_size): Likewise.
12742 (grub_efi_uint32_t finish_desc_version): Likewise.
12743 (grub_efi_is_finished): Likewise.
12744 (grub_efi_get_memory_map): Use saved memory map if EFI is already
12746 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
12747 (grub_elf64_phdr_iterate): Likewise.
12748 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
12749 (grub_os_area_size): Likewise.
12750 (grub_machine_init): Don't reserve os area.
12751 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
12752 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
12753 * grub-core/kern/i386/loader.S: Removed.
12754 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
12755 (grub_os_area_size): Likewise.
12756 (grub_machine_init): Don't reserve os area.
12757 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12758 Don't call grub_dl_unload_all.
12759 Don't include loader.S.
12760 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
12761 Declare the memory after _end as available.
12762 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
12763 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
12764 (GRUB_MM_ALLOC_MAGIC): Moved from here...
12765 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
12766 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
12767 * include/grub/mm_private.h (grub_mm_header): ... here.
12768 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
12769 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
12770 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
12771 (grub_mm_region): ..here. Removed addr. Added pre_size.
12773 * grub-core/kern/mm.c (base): Renamed to ...
12774 (grub_mm_base): ... this. Made global.
12775 (grub_real_malloc): Alloc from end of region.
12776 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
12777 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
12778 * grub-core/kern/powerpc/cache_flush.S: ... here.
12779 * grub-core/lib/efi/relocator.c: New file.
12780 * grub-core/lib/i386/relocator.c: Rewritten.
12781 * grub-core/lib/i386/relocator16.S: New file.
12782 * grub-core/lib/i386/relocator32.S: Likewise.
12783 * grub-core/lib/i386/relocator64.S: Likewise.
12784 * grub-core/lib/i386/relocator_asm.S: Rewritten.
12785 * grub-core/lib/i386/relocator_common.S: New file.
12786 * grub-core/lib/ieee1275/relocator.c: Likewise.
12787 * grub-core/lib/mips/relocator.c: Rewritten.
12788 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
12789 stylistic adjustments.
12790 * grub-core/lib/powerpc/relocator.c: New file.
12791 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
12792 * grub-core/lib/relocator.c: Rewritten.
12793 * grub-core/lib/x86_64/relocator_asm.S: New file.
12794 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
12795 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
12796 (bsd_tag): New struct.
12797 (tags): New variable.
12798 (tags_last): Likewise.
12799 (netbsd_module): New struct.
12800 (netbsd_mods): New variable.
12801 (netbsd_mods_last): Likewise.
12802 (openbsd_opts): New parameter "serial".
12803 (OPENBSD_SERIAL_ARG): New definition.
12804 (netbsd_opts): New parameter "serial".
12805 (NETBSD_SERIAL_ARG): New definition.
12806 (grub_freebsd_add_meta): Reorganised into ...
12807 (grub_bsd_add_meta): ...this. All users updated.
12808 (grub_freebsd_add_mmap): Reorganised into ...
12809 (generate_e820_mmap): ...this...
12810 (grub_bsd_add_mmap): ...and this. All users updated.
12811 (grub_freebsd_list_modules): Use tags.
12812 (grub_netbsd_add_meta_module): New function.
12813 (grub_netbsd_list_modules): Likewise.
12814 (grub_freebsd_boot): Use relocator and finish EFI.
12815 (grub_openbsd_boot): Likewise.
12816 (grub_netbsd_setup_video): New function.
12817 (grub_netbsd_add_modules): Likewise.
12818 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
12820 (grub_bsd_unload): Unload tags.
12821 (grub_bsd_load_aout): Use relocator.
12822 (grub_bsd_elf32_size_hook): New function.
12823 (grub_bsd_elf32_hook): Use relocator.
12824 (grub_bsd_elf64_size_hook): New function.
12825 (grub_bsd_elf64_hook): Use relocator.
12826 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
12827 (grub_bsd_load): Zero-out openbsd_ramdisk.
12828 (grub_bsd_load): Use relocator.
12829 (grub_cmd_openbsd): Support serial.
12830 (grub_cmd_netbsd): Support modules.
12831 (grub_cmd_freebsd_module): Use relocator.
12832 (grub_netbsd_module_load): New function.
12833 (grub_cmd_netbsd_module): Likewise.
12834 (grub_cmd_openbsd_ramdisk): Likewise.
12835 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
12837 (GRUB_MOD_FINI): Unregister new commands.
12838 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
12839 (grub_freebsd_load_elfmodule_obj): Use relocator.
12840 (grub_freebsd_load_elfmodule): Likewise.
12841 (grub_freebsd_load_elf_meta): Likewise.
12842 (grub_netbsd_load_elf_meta): New function.
12843 (grub_openbsd_find_ramdisk): Likewise.
12844 * grub-core/loader/i386/bsd_helper.S: Removed.
12845 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
12846 * grub-core/loader/i386/bsd_trampoline.S: Removed.
12847 * grub-core/loader/i386/efi/linux.c: Likewise.
12848 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
12849 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
12850 (DEFAULT_VIDEO_MODE): Likewise.
12851 (real_mode_target): New variable.
12852 (prot_mode_target): Likewise.
12853 (initrd_mem_target): Likewise.
12854 (relocator): Likewise.
12855 (efi_mmap_buf): Likewise.
12856 (efi_mmap_size): Likewise.
12857 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
12858 (free_pages): Use relocator.
12859 (allocate_pages): Account for efi_mmap and use relocator. Return error.
12860 (grub_linux_setup_video): Return error.
12861 (grub_linux_trampoline_start): Removed.
12862 (grub_linux_trampoline_end): Likewise.
12863 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
12864 andd video parameters depending on firmware.
12865 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
12866 [GRUB_MACHINE_EFI]: Pass EFI parameters.
12867 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
12868 (grub_cmd_initrd): Use relocator.
12869 * grub-core/loader/i386/linux_trampoline.S: Removed.
12870 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
12871 (elf_sec_entsize): Likewise.
12872 (elf_sec_shstrndx): Likewise.
12873 (elf_sections): Likewise.
12874 (grub_multiboot_load): Use relocator.
12875 (grub_multiboot_get_mbi_size): Account for sections.
12876 (grub_multiboot_make_mbi): Use relocator and support sections.
12877 (grub_multiboot_add_elfsyms): New function.
12878 (grub_multiboot_free_mbi): Free sections.
12879 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
12880 (grub_linux_real_target): Likewise.
12881 (grub_linux_real_chunk): Likewise.
12882 (grub_linux16_prot_size): Likewise.
12883 (grub_linux16_boot): Use relocator.
12884 (grub_linux_unload): Unload relocator.
12885 (grub_cmd_linux): Use relocator.
12886 (grub_cmd_initrd): Likewise.
12887 * grub-core/loader/i386/pc/ntldr.c: New file.
12888 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
12889 Don't try to guess CPU frequency.
12890 (grub_xnu_set_video): Stretch bitmap.
12891 (grub_xnu_boot): Use relocator.
12892 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
12893 (grub_linux_unload): Free relocator.
12894 (grub_linux_load32): Use relocator.
12895 (grub_linux_load64): Likewise.
12896 (grub_cmd_initrd): Likewise.
12897 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
12898 (grub_multiboot_unload): Unload relocator.
12899 (grub_cmd_multiboot): Use relocator.
12900 (grub_cmd_module): Likewise.
12901 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
12902 Use relocator and support sections.
12903 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
12904 (elf_sec_entsize): Likewise.
12905 (elf_sec_shstrndx): Likewise.
12906 (elf_sections): Likewise.
12907 (grub_multiboot_load): Use relocator.
12908 (grub_multiboot_get_mbi_size): Account for sections.
12909 (grub_multiboot_make_mbi): Use relocator and support sections.
12910 (grub_multiboot_add_elfsyms): New function.
12911 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
12912 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
12913 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
12914 Prototype changed. All users updated.
12915 (grub_xnu_align_heap): Simplified.
12916 (grub_xnu_writetree_toheap): Likewise.
12917 (grub_xnu_unload): Unload relocator.
12918 (grub_cmd_xnu_kernel): Use relocator.
12919 (grub_cmd_xnu_kernel64): Likewise.
12920 (grub_xnu_register_memory): Simplified.
12921 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
12922 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
12924 (grub_console_checkkey): Likewise.
12925 (grub_console_getkey): Likewise.
12926 (grub_console_getwh): Likewise.
12927 (grub_console_getxy): Likewise.
12928 (grub_console_gotoxy): Likewise.
12929 (grub_console_cls): Likewise.
12930 (grub_console_setcolorstate): Likewise.
12931 (grub_console_setcursor): Likewise.
12932 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
12933 * grub-core/tests/boot/kbsd.init-i386.S: New file.
12934 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
12935 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
12936 * grub-core/tests/boot/kernel-8086.S: Likewise.
12937 * grub-core/tests/boot/kernel-i386.S: Likewise.
12938 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
12939 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
12940 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
12941 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
12942 * grub-core/tests/boot/knetbsd.cfg: Likewise.
12943 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
12944 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
12945 * grub-core/tests/boot/linux.cfg: Likewise.
12946 * grub-core/tests/boot/linux.init-i386.S: Likewise.
12947 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
12948 * grub-core/tests/boot/linux16.cfg: Likewise.
12949 * grub-core/tests/boot/multiboot.cfg: Likewise.
12950 * grub-core/tests/boot/multiboot2.cfg: Likewise.
12951 * grub-core/tests/boot/ntldr.cfg: Likewise.
12952 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
12953 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
12954 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
12956 * include/grub/dl.h (grub_dl_unload_all): Removed.
12957 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
12958 (grub_efi_finish_boot_services): Change prototype.
12959 (grub_efi_is_finished): New variable.
12960 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
12962 (grub_efiemu_finish_boot_services): Removed.
12963 (grub_machine_efiemu_init_tables): New prototype.
12964 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
12965 (grub_elf64_phdr_iterate): Likewise.
12966 * include/grub/i386/bsd.h: Include relocator.h.
12967 (freebsd_tag_header): New struct.
12968 (grub_openbsd_bios_mmap): Removed.
12969 (grub_unix_real_boot): Removed.
12970 (grub_freebsd_load_elfmodule32): Changed prototype.
12971 (grub_freebsd_load_elfmodule_obj64): Likewise.
12972 (grub_freebsd_load_elf_meta32): Likewise.
12973 (grub_freebsd_load_elf_meta64): Likewise.
12974 (grub_freebsd_add_meta): Removed.
12975 (grub_netbsd_load_elf_meta32): New prototype.
12976 (grub_netbsd_load_elf_meta64): Likewise.
12977 (grub_bsd_add_meta): Likewise.
12978 (grub_openbsd_ramdisk_descriptor): New struct.
12979 (grub_openbsd_find_ramdisk32): New prototype.
12980 (grub_openbsd_find_ramdisk64): Likewise.
12981 * include/grub/i386/coreboot/loader.h: Removed.
12982 * include/grub/i386/efi/loader.h: Likewise.
12983 * include/grub/i386/ieee1275/loader.h: Likewise.
12984 * include/grub/i386/linux.h (linux_kernel_header): Change void *
12986 * include/grub/i386/loader.h: Removed.
12987 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
12989 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
12990 (grub_phys_addr_t): New type.
12991 (grub_vtop): New inline function.
12992 (grub_map_memory): Likewise.
12993 (grub_unmap_memory): Likewise.
12994 * include/grub/i386/multiboot/loader.h: Removed.
12995 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
12996 (NETBSD_BTINFO_CONSOLE): New definition.
12997 (NETBSD_BTINFO_SYMTAB): Likewise.
12998 (NETBSD_BTINFO_MODULES): Likewise.
12999 (NETBSD_BTINFO_FRAMEBUF): Likewise.
13000 (grub_netbsd_bootinfo): New struct.
13001 (grub_netbsd_btinfo_common): Use explicit bitsize.
13002 (grub_netbsd_btinfo_mmap_entry): Removed.
13003 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
13004 (grub_netbsd_btinfo_bootdisk): New struct.
13005 (grub_netbsd_btinfo_symtab): Likewise.
13006 (grub_netbsd_btinfo_serial): Likewise.
13007 (grub_netbsd_btinfo_modules): Likewise.
13008 (grub_netbsd_btinfo_framebuf): Likewise.
13009 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
13010 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
13012 (grub_openbsd_bootargs): Use explicit bitsize.
13013 (grub_openbsd_bootarg_console): New struct.
13014 (GRUB_OPENBSD_COM_MAJOR): New definition.
13015 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
13016 * include/grub/i386/pc/efiemu.h: Removed.
13017 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
13018 * include/grub/i386/qemu/loader.h: Removed.
13019 * include/grub/i386/relocator.h: Rewritten.
13020 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
13021 * include/grub/mips/memory.h: New file.
13022 * include/grub/mips/multiboot.h: Rewritten.
13023 * include/grub/mips/relocator.h: Rewritten.
13024 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
13025 (grub_vtop): New function.
13026 (grub_map_memory): Likewise.
13027 (grub_unmap_memory): Likewise.
13028 * include/grub/misc.h (ALIGN_DOWN): New definition.
13029 * include/grub/mm.h (grub_mm_check_real): New proto.
13030 (GRUB_MM_CHECK): New definition.
13031 * include/grub/mm_private.h: New file.
13032 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
13033 (grub_multiboot_get_mbi_size): Removed.
13034 (grub_multiboot_make_mbi): Change prottype.
13035 (grub_multiboot_set_accepts_video): New proto.
13036 (grub_multiboot_add_elfsyms): Likewise.
13037 (grub_multiboot_payload_eip): New variable.
13038 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
13040 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
13042 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
13043 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
13044 * include/grub/powerpc/ieee1275/loader.h: Removed.
13045 * include/grub/powerpc/memory.h: New file.
13046 * include/grub/powerpc/relocator.h: Likewise.
13047 * include/grub/relocator.h: Likewise.
13048 * include/grub/relocator_private.h: Likewise.
13049 * include/grub/sparc64/ieee1275/loader.h: Removed.
13050 * include/grub/x86_64/memory.h: New file.
13051 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
13052 (grub_xnu_heap_malloc): Likewise.
13053 (grub_xnu_heap_real_start): Removed.
13054 (grub_xnu_heap_start): Likewise.
13055 (grub_xnu_relocator): New variable.
13056 (grub_xnu_heap_target_start): Likewise.
13057 * tests/util/grub-shell.in: Support non-pc.
13058 * util/grub-mkimage.c (image_targets): Fix multiboot target.
13060 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13062 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
13064 (grub_bidi_logical_to_visual): Check that malloc succeded.
13065 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
13067 (grub_xputs_normal): Likewise.
13069 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13071 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
13074 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13076 * grub-core/efiemu/runtime/efiemu.sh: Removed.
13078 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13080 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
13082 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13084 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
13087 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
13089 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
13091 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13093 * grub-core/normal/term.c (print_more): Fix a memory leak.
13094 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
13095 (grub_xputs_normal): Likewise.
13097 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13099 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
13100 the begining of the string
13102 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13104 * grub-core/script/script.c (grub_script_parse): Free parsed on
13107 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13109 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
13112 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13114 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
13117 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13119 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
13120 (scroll_up): Fix a memory leak.
13122 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13124 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
13127 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
13129 Handle USB pendrives exposed as floppies.
13131 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
13133 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
13134 Check for partitions on all devices.
13136 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13138 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
13139 (readkey): Likewise.
13141 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
13143 Multiple variable names support to "export" command.
13145 * normal/context.c (grub_cmd_export): "export" command supports
13146 multiple variable names.
13148 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
13150 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
13151 --target=drive output to Mach device name.
13153 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
13155 New Automake based build system for GRUB.
13157 * ABOUT-NLS: New file.
13158 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
13159 in Makefile.util.def file.
13160 * Makefile.util.def: New file. Autogen build definitions file for
13162 * conf/Makefile.common: New file. Common variables for GRUB host
13163 utils and target modules.
13164 * conf/Makefile.extra-dist: New file. Extra files for make dist.
13165 * docs/Makefile.am: New file. Automake file for docs.
13166 * gentpl.py: New file. Python script to generate Autogen
13168 * grub-core/Makefile.am: New file. GRUB target modules' rules
13169 that doesn't fit in Makefile.core.def file.
13170 * grub-core/Makefile.core.def: New file. Autogen build
13171 definitions file for GRUB target modules.
13172 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
13173 specific setjmp.S file.
13174 * po/Makefile.am: New file.
13176 * .bzrignore: New ignores.
13177 * INSTALL: New requirements, without Ruby.
13178 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
13179 * autogen.sh: Updated to invoke autogen as necessary.
13180 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
13181 and defines for Automake conditionals.
13182 * geninit.sh: Refactoring.
13184 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
13186 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
13189 * include/grub/test.h: Fix functional test modules' naming.
13190 * grub-core/tests/example_functional_test.c: Fix test module name.
13192 * util/misc.c: Hosted versions' of grub functions for libgrub.a
13193 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
13194 * util/grub-editenv.c: Likewise.
13195 * util/grub-fstest.c: Likewise.
13196 * util/grub-mkdevicemap.c: Likewise.
13197 * util/grub-mkfont.c: Likewise.
13198 * util/grub-mkimage.c: Likewise.
13199 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13200 * util/grub-probe.c: Likewise.
13201 * util/grub-script-check.c: Likewise.
13202 * util/i386/pc/grub-setup.c: Likewise.
13203 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13205 * tests/util/grub-shell.in: Fix override directory path.
13206 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
13207 * util/import_gcry.py: Create Makefile.gcry.def file instead.
13209 * util/lvm.c: Update #includes.
13210 * util/raid.c: Likewise.
13211 * util/resolve.c: Likewise.
13212 * grub-core/bus/emu/pci.c: Likewise.
13213 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
13214 * grub-core/lib/posix_wrap/string.h: Likewise.
13215 * grub-core/kern/emu/main.c: Likewise.
13217 * grub-core/gensymlist.sh: New file. Script for generating kernel
13219 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
13221 * grub-core/gentrigtables.c: Fix unused variable warnings.
13223 * Makefile.in: Removed.
13224 * conf/any-emu.rmk: Removed.
13225 * conf/common.rmk: Removed.
13226 * conf/i386-coreboot.rmk: Removed.
13227 * conf/i386-efi.rmk: Removed.
13228 * conf/i386-ieee1275.rmk: Removed.
13229 * conf/i386-multiboot.rmk: Removed.
13230 * conf/i386-pc.rmk: Removed.
13231 * conf/i386-qemu.rmk: Removed.
13232 * conf/i386.rmk: Removed.
13233 * conf/mips-yeeloong.rmk: Removed.
13234 * conf/mips.rmk: Removed.
13235 * conf/powerpc-ieee1275.rmk: Removed.
13236 * conf/sparc64-ieee1275.rmk: Removed.
13237 * conf/tests.rmk: Removed.
13238 * conf/x86-efi.rmk: Removed.
13239 * conf/x86_64-efi.rmk: Removed.
13240 * gendistlist.sh: Removed.
13241 * geninitheader.sh: Removed.
13242 * genkernsyms.sh.in: Removed.
13243 * genmk.rb: Removed.
13244 * gensymlist.sh.in: Removed.
13245 * mkinstalldirs: Removed.
13247 * grub-core/boot: ... to here.
13249 * grub-core/bus: ... to here.
13250 * commands: Moved ...
13251 * grub-core/commands: ... to here.
13253 * grub-core/disk: ... to here.
13254 * efiemu: Moved ...
13255 * grub-core/efiemu: ... to here.
13257 * grub-core/font: ... to here.
13259 * grub-core/fs: ... to here.
13260 * gencmdlist.sh: Moved ...
13261 * grub-core/gencmdlist.sh: ... to here.
13262 * genemuinit.sh: Moved ...
13263 * grub-core/genemuinit.sh: ... to here.
13264 * genemuinitheader.sh: Moved ...
13265 * grub-core/genemuinitheader.sh: ... to here.
13266 * genfslist.sh: Moved ...
13267 * grub-core/genfslist.sh: ... to here.
13268 * genhandlerlist.sh: Moved ...
13269 * grub-core/genhandlerlist.sh: ... to here.
13270 * genmoddep.awk: Moved ...
13271 * grub-core/genmoddep.awk: ... to here.
13272 * genmodsrc.sh: Moved ...
13273 * grub-core/genmodsrc.sh: ... to here.
13274 * genpartmaplist.sh: Moved ...
13275 * grub-core/genpartmaplist.sh: ... to here.
13276 * genparttoollist.sh: Moved ...
13277 * grub-core/genparttoollist.sh: ... to here.
13278 * genterminallist.sh: Moved ...
13279 * grub-core/genterminallist.sh: ... to here.
13280 * gentrigtables.c: Moved ...
13281 * grub-core/gentrigtables.c: ... to here.
13282 * genvideolist.sh: Moved ...
13283 * grub-core/genvideolist.sh: ... to here.
13284 * gettext: Moved ...
13285 * grub-core/gettext: ... to here.
13286 * gfxmenu: Moved ...
13287 * grub-core/gfxmenu: ... to here.
13288 * gnulib: Moved ...
13289 * grub-core/gnulib: ... to here.
13291 * grub-core/hello: ... to here.
13293 * grub-core/hook: ... to here.
13295 * grub-core/io: ... to here.
13297 * grub-core/kern: ... to here.
13299 * grub-core/lib: ... to here.
13300 * loader: Moved ...
13301 * grub-core/loader: ... to here.
13303 * grub-core/mmap: ... to here.
13304 * normal: Moved ...
13305 * grub-core/normal: ... to here.
13306 * partmap: Moved ...
13307 * grub-core/partmap: ... to here.
13308 * parttool: Moved ...
13309 * grub-core/parttool: ... to here.
13310 * script: Moved ...
13311 * grub-core/script: ... to here.
13313 * grub-core/term: ... to here
13314 * tests/example_functional_test.c: Moved ...
13315 * grub-core/tests/example_functional_test.c: ... to here.
13316 * tests/lib/functional_test.c: Moved ...
13317 * grub-core/tests/lib/functional_test.c: ... to here.
13318 * tests/lib/test.c: Moved ...
13319 * grub-core/tests/lib/test.c: ... to here.
13321 * grub-core/video: ... to here.
13323 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
13325 Replace --enable-grub-emu-modules with grub-emu-lite.
13327 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
13330 * include/grub/emu/misc.h (grub_emu_init): New prototype.
13331 * kern/emu/full.c: New file. For grub-emu specific initialization.
13332 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
13333 * kern/emu/main.c: Call initialization function grub_emu_init.
13335 * Makefile.in: Include grub-emu-lite in install.
13336 * commands/parttool.c: Use grub_no_autoload to differentiate
13337 between grub-emu and grub-emu-lite.
13338 * include/grub/misc.h: New variable grub_no_autoload.
13340 * conf/any-emu.rmk: New rules for grub-emu-lite.
13341 * configure.ac: Remove --enable-grub-emu-modules.
13342 * genmk.rb: Cleanup unnecessary rules.
13343 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
13345 * normal/main.c: Don't load list files on grub-emu-lite.
13346 * util/misc.c (grub_arch_sync_caches): Removed.
13348 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
13350 * kern/mips/startup.S (grub_prefix): Update comment to refer to
13351 grub-mkimage rather than grub-mkelfimage.
13352 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
13354 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
13356 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
13357 a key after CapsLock or NumLock. It's just a qemu bug.
13359 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
13361 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
13362 needed by libusb wrapper.
13364 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
13366 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
13368 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
13370 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
13371 --nounzip is passed.
13373 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
13375 USB hotunplugging and USB serial support.
13377 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
13378 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
13379 (grub_uhci_transfer): Respect timeout and set *actual.
13380 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
13381 non-standard length.
13382 (grub_usb_device_attach): Autoload modules.
13383 (GRUB_MOD_INIT): Set grub_term_poll_usb.
13384 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
13385 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
13387 (grub_usb_add_hub): Fill nports and children.
13388 (attach_root_port): Receive hub instead of controller.
13389 All users updated. Fill hub->devices.
13390 (grub_usb_root_hub): Allocate hub->devices.
13391 (detach_device): New function.
13392 (poll_nonroot_hub): Fill children and detach devices.
13393 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
13394 actual arguments. All users updated.
13395 (grub_usb_bulk_read_extended): New function.
13396 * bus/usb/serial/common.c: New file.
13397 * bus/usb/serial/ftdi.c: Likewise.
13398 * bus/usb/serial/pl2303.c: Likewise.
13399 * commands/terminal.c (handle_command): Support wildcard.
13400 * commands/usbtest.c: Output "Unknown" instead of empty string.
13401 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
13402 (usbserial_common_mod_SOURCES): New variable.
13403 (usbserial_common_mod_CFLAGS): Likewise.
13404 (usbserial_common_mod_LDFLAGS): Likewise.
13405 (pkglib_MODULES): Add usbserial_pl2303.mod.
13406 (usbserial_pl2303_mod_SOURCES): New variable.
13407 (usbserial_pl2303_mod_CFLAGS): Likewise.
13408 (usbserial_pl2303_mod_LDFLAGS): Likewise.
13409 (pkglib_MODULES): Add usbserial_ftdi.mod.
13410 (usbserial_ftdi_mod_SOURCES): New variable.
13411 (usbserial_ftdi_mod_CFLAGS): Likewise.
13412 (usbserial_ftdi_mod_LDFLAGS): Likewise.
13413 (pkglib_MODULES): Add serial.mod.
13414 (serial_mod_SOURCES): New variable.
13415 (serial_mod_CFLAGS): Likewise.
13416 (serial_mod_LDFLAGS): Likewise.
13417 * conf/i386-pc.rmk: Likewise.
13418 * conf/mips-yeeloong.rmk: Likewise.
13419 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
13420 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
13421 * disk/usbms.c (first_available_slot): New variable.
13422 (grub_usbms_attach): Don't reuse free slots due to potential cache
13424 * include/grub/serial.h: Moved to ..
13425 * include/grub/ns8250.h: ...this.
13426 * include/grub/serial.h: New file.
13427 * include/grub/term.h (grub_term_poll_usb): New variable.
13428 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
13429 readkey. All users updated.
13430 (grub_terminfo_output_state): Pass term to put.
13431 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
13432 (grub_usb_controller_dev): Add timeout and actual arguments to
13433 transfer. All users updated.
13434 (grub_usb_interface): New field detach_data.
13435 (grub_usb_device): New fields children and nports.
13436 (grub_usb_ep_type_t): New type.
13437 (grub_usb_get_ep_type): New function.
13438 (grub_usb_bulk_read_extended): Likewise.
13439 * include/grub/usbdesc.h (grub_usb_desc): New type.
13440 * include/grub/usbserial.h: New file.
13441 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
13442 * kern/term.c (grub_term_poll_usb): New variable.
13443 (grub_getkey): Call grub_term_poll_usb if set.
13444 (grub_checkkey): Likewise.
13445 (grub_getkeystatus): Likewise.
13446 * term/serial.c: Moved controller-specific parts to ...
13447 * term/ns8250.c: ... here.
13448 * term/serial.c: Mostly rewritten.
13449 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
13452 2010-08-20 Robert Millan <rmh@gnu.org>
13454 Make kFreeBSD code more generic to support ext2fs as root, ufs as
13455 a separate module and maybe other interesting combinations.
13457 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
13458 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
13459 (kfreebsd_entry): Add generic filesystem module load routine.
13460 Map GRUB `ext2' to kFreeBSD `ext2fs'.
13462 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
13464 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
13465 "numcenter" (I misunderstood the purpose of this entry).
13466 * docs/grub.texi (sendkey): Likewise.
13468 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
13470 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
13471 status flag options; simply omitting the option is equivalent and
13472 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
13473 (keysym_table): Rename "num5numlock" to "numlock".
13474 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
13475 can uniformly say that only the last of multiple `sendkey'
13476 invocations has any effect.
13477 * docs/grub.texi (sendkey): New section.
13479 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
13481 * commands/i386/pc/sendkey.c (options): Fix three typos.
13483 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13485 Implement sendkey support.
13487 * commands/i386/pc/sendkey.c: New file.
13488 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
13489 (sendkey_mod_SOURCES): New variable.
13490 (sendkey_mod_CFLAGS): Likewise.
13491 (sendkey_mod_LDFLAGS): Likewise.
13493 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
13495 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
13496 fix warnings from Autoconf.
13498 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
13500 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
13501 to avoid false positives with some assemblers that output things
13502 like "someprefix_func" as part of their output.
13504 2010-08-15 Robert Millan <rmh@gnu.org>
13506 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
13508 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
13509 grub_get_libzfs_handle() errors.
13511 2010-08-14 Robert Millan <rmh@gnu.org>
13513 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
13514 filesystem is not ZFS.
13516 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13518 Fix for misspelled color names defaulting to black/black (bug
13519 reported by Doug Nazar)
13521 * include/grub/normal.h (grub_parse_color_name_pair): Add return
13522 status to prototype.
13523 * normal/color.c (grub_parse_color_name_pair): Return failure
13525 (grub_env_write_color_normal): Ignore bad color names.
13526 (grub_env_write_color_highlight): Likewise.
13527 * normal/main.c (GRUB_MOD_INIT): Set default color names.
13529 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13531 "shift" command support to GRUB script.
13533 * include/grub/script_sh.h (grub_script_shift): New prototype.
13534 * script/execute.c (grub_script_shift): New function.
13535 * script/main.c (grub_script_init): Register shift command.
13536 (grub_script_fini): Unregister shift command.
13537 * util/grub-script-check.c (grub_script_cmd_shift): New function.
13539 * tests/grub_script_shift.in: New testcase.
13540 * conf/tests.rmk: Rules for new testcase.
13542 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13544 "continue" command support to GRUB script.
13546 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
13547 (grub_script_break): Continue support.
13548 * script/main.c (grub_script_init): Register continue command.
13549 (grub_script_fini): Unregister continue command.
13551 * tests/grub_script_continue.in: New testcase.
13552 * conf/tests.rmk: Rules for new testcase.
13554 2010-08-12 BVK Chaitanya <bvk@dbook>
13556 "break" command support to GRUB script.
13558 * conf/common.rmk: Rule updates to grub-script-check.
13559 * include/grub/misc.h (grub_min): New function.
13560 * include/grub/script_sh.h (grub_script_init): New prototype.
13561 (grub_script_fini): New prototype.
13562 (grub_script_break): New prototype.
13563 * script/main.c (grub_script_init): New function.
13564 (grub_script_fini): New function.
13565 * script/execute.c (grub_script_break): New function.
13566 * normal/main.c: Calls to grub_script_{init,fini}.
13567 * util/grub-script-check.c (grub_script_break): New function.
13569 * tests/grub_script_break.in: New testcase.
13570 * conf/tests.rmk: Rules for new test case.
13572 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13574 Function parameters support to GRUB script.
13576 * script/yylex.l (VARIABLE): Regular expression update.
13577 * script/function.c (grub_script_function_call): Moved ...
13578 * script/execute.c (grub_script_function_call): ... to here.
13579 (grub_script_execute_arglist_to_argv): Removed.
13580 (grub_script_arglist_to_argv): New function.
13581 * script/argv.c: New file.
13582 (grub_script_argv_free): New function.
13583 (grub_script_argv_next): Likewise.
13584 (grub_script_argv_append): Likewise.
13585 (grub_script_argv_split_append): Likewise.
13586 * include/grub/script_sh.h (grub_script_argv): New struct.
13587 (grub_script_argv_free): New function.
13588 (grub_script_argv_next): Likewise.
13589 (grub_script_argv_append): Likewise.
13590 (grub_script_argv_split_append): Likewise.
13592 * conf/common.rmk (normal.mod): New source script/argv.c.
13594 * tests/grub_script_echo1.in: More tests.
13595 * tests/grub_script_vars1.in: Likewise.
13596 * tests/grub_script_functions.in: New test case.
13597 * conf/tests.rmk: Rules for new testcase.
13599 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
13601 Remove grub_script_cmdblock struct.
13603 * include/grub/script_sh.h: Remove grub_script_cmdblock.
13604 * script/parser.y: Likewise.
13605 * script/execute.c: Rename cmdblock suffix to cmdlist.
13606 * script/script.c: Likewise.
13607 * util/grub-script-check.c: Likewise.
13609 2010-08-11 Yves Blusseau <blusseau@zetam.org>
13611 * .bzrignore: add grub-macho2img
13613 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13615 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
13617 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
13619 Remove the dump of sm712 initialisation sequence.
13621 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
13622 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
13623 (GRUB_VGA_IO_MISC_WRITE): Likewise.
13624 (GRUB_VGA_CR_*): Added many registers.
13625 (GRUB_VGA_SR_*): Likewise.
13626 (GRUB_VGA_GR_*): Likewise.
13627 (grub_vga_write_arx): New function.
13628 (grub_video_hw_config): New struct.
13629 (grub_vga_set_geometry): New function.
13630 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
13631 GRUB_PCI_CLASS_SUBCLASS_VGA.
13632 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
13633 * video/sm712.c (grub_sm712_write_reg): New function
13634 (grub_sm712_read_reg): Likewise.
13635 (grub_sm712_sr_write): Likewise.
13636 (grub_sm712_gr_write): Likewise.
13637 (grub_sm712_cr_write): Likewise.
13638 (grub_sm712_write_arx): Likewise.
13639 (grub_sm712_cr_shadow_write): Likewise.
13640 (grub_sm712_write_dda_lookup): Likewise.
13641 (grub_video_sm712_setup): Initialise the video rather then
13642 blindly replay the dump.
13643 (main) [TEST]: Add a routine to be able to compile as standalone for
13645 * video/sm712_init.c (sm712_init): Removed.
13646 (sm712_sr_seq1): New array.
13647 (sm712_sr_seq2): Likewise.
13649 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13651 * include/grub/vga.h: Add missing grub/pci.h include.
13653 2010-08-10 Yves Blusseau <blusseau@zetam.org>
13655 * util/grub-macho2img.c (main): fix typo
13657 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
13659 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
13660 (grub_vga_gr_read): Likewise.
13661 (grub_vga_cr_write): Likewise.
13662 (grub_vga_cr_read): Likewise.
13663 (grub_vga_sr_write): Likewise.
13664 (grub_vga_sr_read): Likewise.
13665 (grub_vga_palette_read): Likewise.
13666 (grub_vga_palette_write): Likewise.
13667 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
13668 (grub_sm712_sr_read): New function.
13669 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
13670 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
13672 2010-08-09 Robert Millan <rmh@gnu.org>
13674 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
13675 out unused variables on non-ZFS build.
13677 2010-08-08 Robert Millan <rmh@gnu.org>
13679 Fix path generation for sub-filesystems in ZFS.
13681 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
13684 2010-08-08 Robert Millan <rmh@gnu.org>
13686 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
13688 2010-08-08 Robert Millan <rmh@gnu.org>
13690 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
13691 exist, issue a proper error message (rely on `ls' for translated
13694 2010-08-08 Robert Millan <rmh@gnu.org>
13696 Fix grub-probe invocation.
13698 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
13700 2010-08-04 Robert Millan <rmh@gnu.org>
13702 * configure.ac: Remove checks for getfsstat() and getmntany().
13703 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
13704 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
13705 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
13706 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
13707 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
13709 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
13710 via find_mount_point_from_dir() and getfsstat() / getmntany().
13712 2010-08-04 Robert Millan <rmh@gnu.org>
13714 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13715 (grub_find_zpool_from_mount_point): Merge into ...
13716 (grub_find_zpool_from_dir): ... this.
13717 * kern/emu/misc.c: Likewise.
13720 (grub_make_system_path_relative_to_its_root): Replace
13721 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
13722 with grub_find_zpool_from_dir().
13723 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
13725 2010-08-04 Robert Millan <rmh@gnu.org>
13727 Support OpenSolaris in ZFS device resolution.
13729 * configure.ac: Check for getmntany().
13730 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
13731 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
13734 2010-08-03 Robert Millan <rmh@gnu.org>
13736 Fix grub-emu build.
13738 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
13739 * include/grub/emu/misc.h: ... here.
13741 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
13742 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
13744 * util/misc.c: Remove `<grub/util/libzfs.h>'.
13745 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
13746 (grub_get_libzfs_handle): Move to ...
13747 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
13748 (grub_get_libzfs_handle): ... here.
13750 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
13752 * script/execute.c (grub_script_execute_cmdline): Check for NULL
13753 as command name case.
13755 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
13757 * disk/raid.c (insert_array): Select unique numbers for named arrays
13758 as well, for use as keys in the disk cache.
13760 2010-08-01 Robert Millan <rmh@gnu.org>
13762 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
13763 kFreeBSD device name, except on ZFS where the filesystem label is
13765 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
13766 `/boot/zfs/zpool.cache'.
13767 Set mountfrom kernel variable using ${kfreebsd_device}.
13769 2010-08-01 Robert Millan <rmh@gnu.org>
13771 Make it even harder to use uninitialized `libzfs_handle' (and
13772 make the interface a bit simpler).
13774 * include/grub/util/misc.h (grub_util_init_libzfs)
13775 (libzfs_handle): Remove.
13776 (grub_get_libzfs_handle): New prototype.
13778 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
13780 (grub_util_init_libzfs): Remove.
13781 (grub_get_libzfs_handle): New function.
13783 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
13784 grub_get_libzfs_handle() to obtain a libzfs handle instead of
13785 accessing `libzfs_handle' directly.
13787 2010-08-01 Robert Millan <rmh@gnu.org>
13789 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13790 (grub_find_zpool_from_mount_point): New function prototypes.
13792 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13793 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13795 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13796 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13797 `static' attribute.
13799 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13800 finding zpool from mount point into ...
13801 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13803 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13804 requested path is part of a ZFS pool, use
13805 grub_find_zpool_from_mount_point() to detect its filesystem name,
13806 and generate a path with `/fsname@path' syntax.
13808 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13810 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
13811 (void) rather than () so that this is a proper prototype.
13813 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13815 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
13817 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13819 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
13820 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
13822 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13824 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
13826 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13828 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
13830 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13832 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
13833 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
13834 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
13835 disable gfxpayload.
13836 (Shell-like scripting): Add real content.
13837 (Serial terminal): Suggest `terminal_input serial; terminal_output
13838 serial' rather than putting the two commands on separate lines,
13839 since console input will be inoperative after the first command.
13840 (menuentry): Document --class, --users, and --hotkey options.
13841 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
13842 Vladimir Serbinenko).
13844 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13845 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13847 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
13849 2010-08-01 Robert Millan <rmh@gnu.org>
13851 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
13852 (grub_find_zpool_from_mount_point): New function prototypes.
13854 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
13855 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
13857 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
13858 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
13859 `static' attribute.
13861 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
13862 finding zpool from mount point into ...
13863 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
13865 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
13866 requested path is part of a ZFS pool, use
13867 grub_find_zpool_from_mount_point() to detect its filesystem name,
13868 and generate a path with `/fsname@path' syntax.
13870 2010-08-01 Robert Millan <rmh@gnu.org>
13872 Prevent accidental use of uninitialized libzfs_handle.
13874 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
13875 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
13876 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
13878 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
13880 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
13881 util/grub.d/10_linux.in). Fixes Debian bug #591093.
13883 2010-08-01 Robert Millan <rmh@gnu.org>
13885 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
13887 2010-07-31 Robert Millan <rmh@gnu.org>
13889 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
13891 2010-07-31 Robert Millan <rmh@gnu.org>
13893 * kern/emu/misc.c: Add missing license header.
13895 2010-07-31 Robert Millan <rmh@gnu.org>
13897 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
13899 * include/grub/util/libnvpair.h: Include `<config.h>'.
13900 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
13901 declaring libnvpair prototypes ourselves.
13902 * include/grub/util/libzfs.h: Include `<config.h>'.
13903 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
13904 declaring libzfs prototypes ourselves.
13906 (libzfs_handle): Moved to ...
13907 * include/grub/util/misc.h (libzfs_handle): ... here.
13908 Include `<grub/util/libzfs.h>'.
13910 2010-07-30 Robert Millan <rmh@gnu.org>
13912 * include/grub/emu/misc.h: Add missing license header.
13914 2010-07-30 Robert Millan <rmh@gnu.org>
13916 Enable `grub-probe -t device' resolution on ZFS.
13918 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
13919 * include/grub/util/libnvpair.h: New file.
13920 * include/grub/util/libzfs.h: New file.
13922 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
13923 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
13924 `<grub/util/libnvpair.h>'.
13925 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
13927 (find_mount_point_from_dir): New static function.
13928 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
13930 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
13931 find_root_device_from_libzfs() before ressorting to find_root_device().
13933 * include/grub/util/misc.h (grub_util_init_libzfs): New function
13935 * util/misc.c: Include `<grub/util/libzfs.h>'.
13936 (grub_util_init_libzfs): New function.
13937 [HAVE_LIBZFS] (libzfs_handle): New global variable.
13938 [HAVE_LIBZFS] (fini_libzfs): New static function.
13939 (grub_util_init_libzfs): New function.
13940 * util/grub-probe.c (main): Call grub_util_init_libzfs().
13942 2010-07-30 Robert Millan <rmh@gnu.org>
13944 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
13945 (xmalloc, xrealloc, xstrdup, xasprintf): Add
13946 `warn_unused_result' attribute.
13947 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
13948 (grub_xasprintf, grub_xvasprintf): Likewise.
13949 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
13951 2010-07-29 Robert Millan <rmh@gnu.org>
13953 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
13954 (probe): Handle `PRINT_FS_LABEL'.
13955 (main): Handle `-t fs_label'.
13957 2010-07-29 Robert Millan <rmh@gnu.org>
13959 * configure.ac: Remove grub-mkisofs checks.
13961 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
13963 * util/ieee1275/grub-install.in: Don't use empty grub_device.
13964 Reported by: Lennart Sorensen.
13966 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13968 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
13969 prior to terminal_input/terminal_output separation. It's been over 1.5
13970 years and those versions weren't widely deployed.
13972 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
13974 * disk/raid.c (insert_array): Don't count named arrays when looking
13975 for unused array numbers.
13976 Reported and tested by: Michael Guntsche.
13978 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13980 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
13981 implementation of this so that grub-emu links again, with a note
13982 that this should support hotplugging in the future.
13984 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13986 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
13988 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13990 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
13992 (grub_loopback_close): Remove empty function.
13993 (grub_loopback_dev): Remove close method.
13995 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
13997 Disable EFI cursor when the EFI console becomes inactive.
13999 * term/efi/console.c (grub_efi_console_init): New function.
14000 (grub_efi_console_fini): New function.
14001 (grub_console_term_output): Register init and fini methods.
14003 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14005 * tests/util/grub-shell-tester.in: Remove bashism and declare as
14008 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14010 * disk/loopback.c (grub_loopback): Replace filename with file.
14011 (delete_loopback): Handle new semantics.
14012 (grub_cmd_loopback): Likewise.
14013 (grub_loopback_iterate): Likewise.
14014 (grub_loopback_close): Likewise.
14016 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14018 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
14020 Reported by: Tito Keitel.
14022 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14024 * docs/grub.texi (Naming convention): Document new naming convention.
14026 2010-07-20 Vadim Solomin <vadic052@gmail.com>
14027 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14029 Generate device.map in something closer to the old ordering.
14031 * util/deviceiter.c (struct device): New declaration.
14032 (compare_file_names): Rename to ...
14033 (compare_devices): ... this. Sort by kernel name in preference to
14034 the stable by-id name, but keep the latter as a fallback comparison.
14035 Update header comment.
14036 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
14037 of `struct device' rather than of plain file names.
14039 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
14041 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
14044 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14046 * commands/acpi.c (setup_common_tables): Use sizeof instead of
14048 (setv1table): Likewise.
14050 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14052 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
14053 removing the homehost if present.
14054 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
14055 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
14056 removing the homehost if present.
14057 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
14059 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
14061 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
14062 parameter. Set its pointer target to 0.
14063 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
14064 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
14065 `data_offset' value from the superblock for 1.x metadata.
14066 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
14067 data on the device.
14068 (insert_array): Record the start sector of data on the device.
14069 (grub_raid_register): Pass start_sector parameters to
14070 grub_raid_list->detect and insert_array.
14071 * include/grub/raid.h (struct grub_raid_array): Add start_sector
14073 (struct grub_raid): Add start_sector parameter to `detect'.
14075 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
14076 __attribute__ ((packed)), leaving a comment.
14077 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
14078 (grub_mdraid_detect_09): ... here and ...
14079 (grub_mdraid_detect_1x): ... here.
14081 2010-07-20 Peter Henn <peter.henn@web.de>
14083 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
14084 chunk size and disk size, which are already given as sector counts
14085 as distinct from the 0.90 units. Fetch the correct device number
14086 from the role table instead of using the table index.
14088 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
14090 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
14091 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
14092 (WriteMostly1): New macro.
14093 Set array->name to NULL for metadata format 0.90. Add support for
14094 metadata 1.x. Fix some comments.
14095 * disk/raid.c (): Add support for name based RAID arrays. Fix a
14097 * util/getroot.c (grub_util_get_grub_dev): Add support for
14098 /dev/md/name style devices.
14100 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
14102 * .bzrignore: Ignore 20_linux_xen.
14104 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
14106 * util/import_unicode.py: Remove unnecessary imports.
14108 2010-07-17 Aleš Nesrsta <starous@volny.cz>
14110 Hotplugging and USB hub support.
14112 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
14113 (grub_ohci): Likewise.
14114 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
14115 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
14116 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
14117 (GRUB_OHCI_CTRL_EDS): Likewise.
14118 (GRUB_OHCI_BULK_EDS): Likewise.
14119 (GRUB_OHCI_TDS): Likewise.
14120 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
14121 (grub_ohci_ed_phys2virt): New function.
14122 (grub_ohci_virt_to_phys): Likewise.
14123 (grub_ohci_td_phys2virt): Likewise.
14124 (grub_ohci_td_virt2phys): Likewise.
14125 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
14127 (grub_ohci_find_ed): New function.
14128 (grub_ohci_alloc_td): Likewise.
14129 (grub_ohci_free_td): Likewise.
14130 (grub_ohci_free_tds): Likewise.
14131 (grub_ohci_transfer): Use previously allocated memory.
14132 (grub_ohci_portstatus): Reset status changed bit.
14133 (grub_ohci_detect_dev): Supply status changed.
14134 (grub_ohci_fini_hw): Free memory.
14135 (grub_ohci_restore_hw): Reallocate memory.
14136 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
14137 Reset status change.
14138 (grub_uhci_detect_dev): Supply status_change.
14139 * bus/usb/usb.c (attach_hooks): New var.
14140 (grub_usb_device_attach): New function.
14141 (grub_usb_register_attach_hook_class): Likewise.
14142 (grub_usb_unregister_attach_hook_class): Likewise.
14143 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
14144 (grub_usb_add_hub): Reset connection changed bit.
14145 (attach_root_port): New function.
14146 (grub_usb_root_hub): Likewise.
14147 (poll_nonroot_hub): Likewise.
14148 (grub_usb_poll_devices): Likewise.
14149 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
14150 * disk/usbms.c (grub_usbms_open): Use device hooks.
14151 (grub_usbms_iterate) :Poll devices.
14152 (grub_usbms_finddevs): Split into ...
14153 (grub_usbms_attach): ... this ...
14154 (grub_usbms_attach): ... and this.
14155 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
14157 (grub_usb_interface): New fields attached and detach_hook.
14158 (grub_usb_attach_hook_class): New type.
14159 (grub_usb_attach_desc): New struct.
14160 (grub_usb_register_attach_hook_class): New function.
14161 (grub_usb_unregister_attach_hook_class): Likewise.
14162 (grub_usb_poll_devices): Likewise.
14163 (grub_usb_device_attach): Likewise.
14164 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
14165 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
14167 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14169 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
14170 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
14171 delta determination style. Works with most NetBSD partitions too.
14173 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14175 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
14176 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
14178 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
14180 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
14182 2010-07-14 Anton Blanchard <anton@samba.org>
14184 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
14187 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
14189 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
14191 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
14193 * kern/partition.c (grub_partition_check_containment): New function to
14194 check that a partition is physically contained in a parent. Since
14195 offsets are relative (and non-negative), this reduces to checking that
14196 the partition ends before its parent.
14197 (grub_partition_map_probe): Discard out-of-range sub-partitions.
14198 (grub_partition_iterate): Likewise.
14199 * include/grub/partition.h (grub_partition_map): Slightly more detailed
14201 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
14202 partitions that start before their parent, and add debug printfs.
14204 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
14206 * Makefile.in (.SUFFIX): Spell correctly, as ...
14207 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
14208 bare module name without `.mod', e.g. `test') tried to invoke a
14211 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
14213 * README: Point to the Info manual.
14215 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
14217 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
14218 2nd superblock position from partition size.
14220 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
14222 * Makefile.in (MAINTAINER_CLEANFILES): Remove
14223 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
14224 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
14227 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14229 Restructure SCSI .id handling.
14230 Reported and tested by: Aleš Nesrsta.
14232 * disk/ata.c (grub_atapi_close): Removed. All users updated.
14233 (grub_atapi_dev): Changed .name to "ata". New field .id.
14234 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
14235 (grub_usbms_dev): New field .id.
14236 * disk/scsi.c (grub_scsi_iterate): Generate name.
14237 (grub_scsi_open): Parse name.
14238 * include/grub/scsi.h (grub_make_scsi_id): New function.
14239 (grub_scsi_dev): Change iterate and open to number instead of naming
14240 busses. All users updated.
14241 (grub_scsi): Remove name. Add .bus.
14243 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14245 * commands/help.c (grub_cmd_help): Fix a typo.
14247 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14249 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
14250 Reported and tested by: Colin Watson.
14252 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14254 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
14257 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14259 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
14261 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
14263 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
14266 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14268 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
14269 and disk/raid6_recover.c.
14270 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
14271 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
14273 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14275 * term/gfxterm.c (repaint_schedulded): Rename to ...
14276 (repaint_scheduled): ... this. Update all callers.
14277 (repaint_was_schedulded): Rename to ...
14278 (repaint_was_scheduled): ... this. Update all callers.
14280 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14282 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
14283 which we expect to be handled by upper layers.
14285 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
14287 * bus/usb/usbhub.c: #include time.h header.
14289 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14291 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
14292 entry_name also for entries without stat blocks (e.g. ".."); fixes
14293 corruption of the first entry in a directory.
14295 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
14297 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
14298 after setting gfxterm as the active terminal. GRUB_BACKGROUND
14299 doesn't work otherwise.
14301 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14303 * docs/grub.texi (Features): Update list of supported file systems.
14304 (GNU/Linux): Update for GRUB 2.
14305 (Serial terminal): Remove mention of --disable-serial, which was a
14306 GRUB Legacy configure option. Update instructions to use
14307 `terminal_input' and `terminal_output' rather than `terminal'.
14308 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
14309 configuration' and `Installing GRUB using grub-install'.
14310 (Menu entry editor): Update for GRUB 2.
14311 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
14312 Document new -a, -u, and -v options.
14313 (initrd): New section.
14314 (initrd16): New section.
14315 (linux): New section.
14316 (linux16): New section.
14317 (search): The `var' argument to `--set' is optional.
14318 (GRUB only offers a rescue shell): Go into a little more detail on
14321 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14323 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
14325 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14327 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
14328 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
14330 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
14332 * util/i386/pc/grub-setup.c (setup): Rename prefix to
14333 install_prefix, in line with install_dos_part and install_bsd_part.
14334 Add new prefix variable, which is copied to install_prefix after
14335 comparing core.img in memory with the one read from disk in the
14336 no-embedding case, and use that rather than overwriting
14337 install_prefix immediately when installing to a partition.
14338 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
14341 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
14343 * configure.ac: Avoid == in test command, it's not portable.
14344 * util/grub.d/30_os-prober.in: Likewise.
14346 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
14348 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
14350 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
14352 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
14353 multiple (top-level) partmaps.
14355 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14357 * util/i386/efi/grub-install.in: Don't use empty grub_device.
14358 Reported by: Tino Keitel.
14360 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14362 Bidi and diacritics support.
14364 * Makefile.in (widthspec.bin): New target.
14365 (widthspec.h): Likewise.
14366 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
14367 * autogen.sh: Generate unidata.c.
14368 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
14369 * commands/ls.c (grub_ls_list_devices): Likewise.
14370 (grub_ls_list_files): Likewise.
14371 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
14372 (grub_mini_cmd_lsmod): Likewise.
14373 * commands/read.c: Likewise.
14374 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
14375 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
14376 * lib/arg.c (grub_arg_show_help): Likewise.
14377 * lib/crypto.c (grub_password_get): Likewise.
14378 * normal/auth.c (grub_username_get): Likewise.
14379 * normal/misc.c (grub_normal_print_device_info): Likewise.
14380 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
14381 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
14382 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
14383 (normal/charset.c_DEPENDENCIES): New variable.
14384 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
14385 (pkglib_MODULES): Remove charset.mod.
14386 (charset_mod_SOURCES): Removed.
14387 (charset_mod_CFLAGS): Likewise.
14388 (charset_mod_LDFLAGS): Likewise.
14389 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
14390 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
14392 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14393 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
14394 (kernel_img_HEADERS): Add terminfo.h.
14395 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
14396 Fill ->font. Reverse ascii bitmaps.
14397 (grub_font_get_xheight): New function.
14398 * font/font.c (grub_font_get_string_width): Moved from here ...
14399 * gfxmenu/font.c (grub_font_get_string_width): ... here.
14400 * font/font.c (grub_font_draw_string): Moved from here ...
14401 * gfxmenu/font.c (grub_font_draw_string): ... here.
14402 * font/font.c (grub_font_dup_glyph): New function.
14403 (grub_font_blit_glyph): Likewise.
14404 (grub_font_blit_glyph_mirror): Likewise.
14405 (blit_comb): Likewise.
14406 (grub_font_construct_dry_run): Likewise.
14407 (grub_font_get_constructed_device_width): Likewise.
14408 (grub_font_construct_glyph): Likewise.
14409 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
14410 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
14411 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
14412 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
14413 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
14414 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
14415 (grub_font_get_xheight): New proto.
14416 (grub_font_get_constructed_device_width): Likewise.
14417 (grub_font_construct_glyph): Likewise.
14418 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
14419 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
14420 * include/grub/font.h (grub_font_draw_string): Moved from here ...
14421 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
14422 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
14423 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
14424 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
14425 (grub_console_getcharwidth): Likewise.
14426 * include/grub/misc.h (grub_xputs): New proto.
14427 (grub_puts): Inlined.
14428 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
14429 (grub_normal_get_line_counter): Removed.
14430 (grub_install_newline_hook): Likewise.
14431 (grub_normal_get_char_counter): New proto.
14432 (grub_normal_reset_more): Likewise.
14433 (grub_xputs_normal): Likewise.
14434 * include/grub/powerpc/ieee1275/console.h: Removed.
14435 * include/grub/sparc64/ieee1275/console.h: Likewise.
14436 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
14437 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
14438 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
14439 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
14440 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
14441 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
14442 (grub_term_input): Pass reference to self. All users updated.
14443 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
14444 Pass reference to self. New fields normal_color, highlight_color and
14445 data. All users updated.
14446 (grub_putchar): Removed.
14447 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
14448 (grub_unicode_estimate_width): New function.
14449 (grub_term_getcharwidth): Add defaults.
14450 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
14451 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
14452 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
14453 (grub_cls): Remove EXPORT_FUNC.
14454 (grub_setcolorstate): Inline.
14455 (grub_newline_hook): Removed.
14456 * include/grub/terminfo.h: Rewritten. All users updated.
14457 * include/grub/unicode.h: New file.
14458 * include/grub/video.h (grub_video_signed_rect): New type.
14459 * kern/emu/console.c (grub_console_highlight_color): Removed.
14460 (grub_console_normal_color): Likewise.
14461 (grub_console_standard_color): Made static.
14462 (grub_ncurses_putchar): Remove mapping.
14463 (grub_ncurses_getcharwidth): Removed.
14464 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
14465 (grub_ncurses_setcolor): Removed.
14466 (grub_ncurses_getcolor): Likewise.
14467 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
14468 (grub_console_putchar): ... this.
14469 (grub_console_putchar): Handle argument difference.
14470 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
14471 console_init_early and console_init_lately.
14472 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
14473 * kern/misc.c (grub_puts): Removed.
14474 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
14475 (grub_vsnprintf_real): Remove str = NULL support.
14476 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
14477 * normal/charset.c (grub_utf8_to_ucs4): ... here.
14478 * kern/term.c (grub_putcode): Renamed to ...
14479 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
14480 (grub_putchar): Removed.
14481 (grub_xputs_dumb): New function.
14482 (grub_xputs): New variable.
14483 * lib/charset.c: Move from here ...
14484 * normal/charset.c: ... to here.
14485 (grub_ucs4_to_utf8): New function.
14486 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
14487 (join_types): New variable.
14488 (unpack_join): New function.
14489 (bidi_types): New variable.
14490 (unpack_bidi): New function.
14491 (get_bidi_type): Likewise.
14492 (get_join_type): Likewise.
14493 (is_mirrored): Likewise.
14494 (grub_unicode_get_comb_type): Likewise.
14495 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
14496 (is_type_after): Likewise.
14497 (grub_unicode_aglomerate_comb): Likewise.
14498 (bidi_line_wrap): Likewise.
14499 (grub_bidi_line_logical_to_visual): Likewise.
14500 (grub_bidi_logical_to_visual): Likewise.
14501 (grub_unicode_mirror_code): Likewise.
14502 (grub_unicode_shape_code): Likewise.
14503 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
14504 Don't use grub_putchar.
14505 * normal/main.c (grub_normal_init_page): Use grub_putcode.
14506 (grub_normal_reader_init): Likewise.
14507 (grub_xputs_saved): New variable.
14508 (GRUB_MOD_INIT): Set grub_xputs.
14509 (GRUB_MOD_FINI): Restore grub_xputs.
14510 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
14511 (menu_init): Avoid printing gfxmenu error.
14512 (show_menu): Use grub_normal_get_char_counter.
14513 * normal/menu_entry.c (update_screen): Fix out-of-array.
14514 (complete): Avoid NULL dereferencing.
14515 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
14516 * normal/menu_text.c (print_spaces): Removed.
14517 (grub_print_ucs4): Likewise.
14518 (grub_print_message_indented): Use grub_print_ucs4.
14519 (print_message): Use grub_putcode.
14520 (print_entry): Hanlde diacritics.
14521 * normal/term.c (term_state): New type.
14522 (grub_more_lines): Removed.
14523 (term_states): New variable.
14524 (grub_normal_line_counter): Renamed to ..
14525 (grub_normal_char_counter): ...this. All users updated.
14526 (grub_normal_get_line_counter): Renamed to ...
14527 (grub_normal_get_char_counter): ... this.
14528 (grub_normal_reset_more): New function.
14529 (process_newline): Removed.
14530 (print_more): New function.
14531 (grub_install_newline_hook): Removed.
14532 (map_code): New function.
14533 (grub_puts_terminal): Use grub_print_ucs4.
14534 (putglyph): New function.
14535 (putcode_real): Likewise.
14536 (grub_putcode): Use putcode_real.
14537 (get_maxwidth): New function.
14538 (get_startwidth): Likewise.
14539 (print_ucs4_terminal): Likewise.
14540 (find_term_state): Likewise.
14541 (put_glyphs_terminal): Likewise.
14542 (print_backlog): Likewise.
14543 (print_ucs4_real): Likewise.
14544 (grub_print_ucs4): Likewise.
14545 (grub_xputs_normal): Likewise.
14546 * term/efi/console.c (grub_console_putchar): Output diacritics.
14547 (grub_console_getcharwidth): Removed.
14548 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14549 * term/gfxterm.c (clear_char): Free chars.
14550 (scroll_up): Avoid leaking memory.
14551 (grub_gfxterm_putchar): Support diacritics.
14552 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
14553 * term/i386/pc/console.c (grub_console_term_output): Declare as
14554 GRUB_TERM_CODE_TYPE_VGA.
14555 * term/i386/pc/vga.c (grub_vga_term): Declare as
14556 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
14557 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
14558 GRUB_TERM_CODE_TYPE_VGA.
14559 * term/i386/vga_common.c (map_char): Removed.
14560 (grub_console_putchar): Likewise.
14561 (grub_console_getcharwidth): Likewise.
14562 * term/ieee1275/ofconsole.c: Simplify using terminfo.
14563 (colors): Reordered to match terminfo.
14564 (grub_ofconsole_normal_color): Removed.
14565 (grub_ofconsole_writeesc): Likewise.
14566 (grub_ofconsole_highlight_color): Likewise.
14567 (grub_ofconsole_getcharwidth): Likewise.
14568 (grub_ofconsole_setcolorstate): Likewise.
14569 (grub_ofconsole_setcolor): Likewise.
14570 (grub_ofconsole_getcolor): Likewise.
14571 (grub_ofconsole_readkey): Renamed to ...
14572 (readkey): ... this. Remove escape sequence handling. Return -1 on no
14574 (grub_ofconsole_checkkey): Removed.
14575 (grub_ofconsole_getkey): Likewise.
14576 (grub_ofconsole_getxy): Likewise.
14577 (grub_ofconsole_gotoxy): Likewise.
14578 (grub_ofconsole_cls): Likewise.
14579 (grub_ofconsole_refresh): Likewise.
14580 (grub_ofconsole_terminfo_input): New struct.
14581 (grub_ofconsole_terminfo_output): Likewise.
14582 (grub_ofconsole_term_input): Use terminfo.
14583 (grub_ofconsole_term_output): Likewise.
14584 (grub_console_init): Split into ...
14585 (grub_console_init_early): ...this and ...
14586 (grub_console_init_lately): ...this. Use terminfo.
14587 (grub_ofconsole_putchar): Renamed to ...
14588 (put): ... this. Remove mapping.
14589 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
14590 * term/serial.c: Simplify using terminfo.
14593 (keep_track): Likewise.
14594 (registered): Likewise.
14595 (input_buf): Likewise.
14596 (npending): Likewise.
14597 (serial_translate_key_sequence): Likewise.
14598 (fill_input_buf): Likewise.
14599 (grub_serial_checkkey): Likewise.
14600 (grub_serial_getkey): Likewise.
14601 (grub_serial_getxy): Likewise.
14602 (grub_serial_gotoxy): Likewise.
14603 (grub_serial_putchar): Likewise.
14604 (grub_serial_cls): Likewise.
14605 (grub_serial_setcolorstate): Likewise.
14606 (grub_serial_setcursor): Likewise.
14607 (serial_hw_init): Use serial_hw_fetch.
14608 (grub_serial_terminfo_input): New variable.
14609 (grub_serial_terminfo_output): Likewise.
14610 (grub_serial_term_input): Use terminfo.
14611 (grub_serial_term_output): Likewise.
14612 * term/terminfo.c (putstr): Use put.
14613 (grub_terminfo_all_free): New function
14614 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
14615 (grub_terminfo_output_register): New function.
14616 (grub_terminfo_output_unregister): Likewise.
14617 (grub_terminfo_getxy): Likewise.
14618 (grub_terminfo_readkey): Likewise.
14619 (grub_terminfo_checkkey): Likewise.
14620 (grub_terminfo_getkey): Likewise.
14621 (grub_terminfo_input_init): Likewise.
14622 (print_terminfo): Likewise.
14623 (grub_cmd_terminfo): Handle encoding.
14624 (grub_terminfo_gotoxy): Track position.
14625 (grub_terminfo_cls): Likewise.
14626 (grub_terminfo_putchar): Likewise.
14627 (grub_terminfo_setcolorstate): Handle colors
14628 (grub_terminfo_cursor_on): This ...
14629 (grub_terminfo_cursor_off): ... and this merged into ...
14630 (grub_terminfo_setcursor): ... this.
14631 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
14632 * unicode/ArabicShaping.txt: New file (imported from Unicode).
14633 * unicode/BidiMirroring.txt: Likewise.
14634 * unicode/UnicodeData.txt: Likewise.
14635 * unicode/COPYING: Likewise.
14636 * util/grub-editenv.c (grub_putchar): Removed.
14637 (grub_xputs_real): New function.
14638 (grub_xputs): New variable.
14639 * util/grub-fstest.c (grub_putchar): Removed.
14640 (grub_xputs_real): New function.
14641 (grub_xputs): New variable.
14642 * util/grub-mkdevicemap.c (grub_putchar): Removed.
14643 (grub_xputs_real): New function.
14644 (grub_xputs): New variable.
14645 * util/grub-probe.c (grub_putchar): Removed.
14646 (grub_xputs_real): New function.
14647 (grub_xputs): New variable.
14648 * util/grub-script-check.c (grub_putchar): Removed.
14649 (grub_xputs_real): New function.
14650 (grub_xputs): New variable.
14651 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
14652 (grub_xputs_real): New function.
14653 (grub_xputs): New variable.
14654 * util/import_unicode.py: New file.
14655 * util/grub-mkfont.c (ft_errmsgs): New array.
14656 (grub_glyph_info): Make bitmap a pointer.
14657 (file_formats): New type WIDTH_SPEC.
14658 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
14659 (options): Add width-spec.
14661 (add_char): Renamed to ...
14662 (add_glyph): ... this.
14663 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
14664 (glyph_replace): New type.
14665 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
14666 (add_char): New function.
14667 (add_subst): Likewise.
14668 (process_cursive): Likewise.
14669 (add_font): Handle GSUB.
14670 (write_font_width_spec): New function.
14671 (main): Sort glyphs.
14672 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
14673 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
14674 * kern/term.c (grub_cls): Moved from here...
14675 * normal/term.c (grub_cls): ... here.
14677 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14679 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
14680 suitable for using within the format argument of printf when
14681 converting grub_size_t.
14682 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
14683 "x" to convert grub_size_t arguments.
14685 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14687 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
14689 (list_get_minimal_size): Take selection box into account.
14691 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14693 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
14696 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14698 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
14699 devices when iterating over /dev/disk/by-id; they will be handled
14700 later if appropriate, which they aren't always (e.g. LVM).
14702 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14704 * include/grub/misc.h (grub_reboot): Declare as noreturn.
14705 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
14707 (grub_halt): Likewise.
14708 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
14710 (grub_halt): Don't return, even if all of shut-down, power-off, and
14713 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14715 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
14716 arguments, not three.
14718 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14720 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
14721 * util/grub.d/10_linux.in: Use it to check for LVM, so that
14722 LVM-on-RAID is handled correctly.
14724 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14726 * docs/grub.texi (Changes from GRUB Legacy): New section.
14727 (Future): Fix typo.
14729 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14731 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
14732 grub.d/README accidentally ends up executable for one reason or
14733 another. Ignore it.
14735 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14737 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
14738 (gpt_partition_map_iterate): Support non-512B sectors.
14740 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14742 * kern/efi/init.c (grub_efi_init): Disable watchdog.
14743 Tested by: Seth Goldberg.
14745 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
14747 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
14748 Properly align mbi.
14749 Reported by: Seth Goldberg.
14751 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14753 * util/grub-mkrescue.in: Avoid module duplication.
14755 2010-07-01 Sean Finney <seanius@seanius.net>
14757 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
14759 2010-07-01 Sean Finney <seanius@seanius.net>
14761 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
14763 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14765 * disk/lvm.c (grub_lvm_checkvalue): New function.
14766 (grub_lvm_check_flag): Likewise.
14768 2010-07-01 Robert Millan <rmh@gnu.org>
14770 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
14771 Support 'p' as partition separator on kernel of FreeBSD (used
14773 (grub_util_biosdisk_get_grub_dev): Likewise.
14775 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
14777 Yeeloong firmware port.
14779 * boot/mips/yeeloong/fwstart.S: New file.
14780 * bus/cs5536.c (gpiodump): New const.
14781 (set_io_space): New function.
14782 (set_iod): Likewise.
14783 (set_p2d): Likewise.
14784 (grub_cs5536_init_geode): Likewise.
14785 * commands/mips/yeeloong/lsspd.c: New file.
14786 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
14787 (serial_mod_SOURCES): New variable.
14788 (serial_mod_CFLAGS): Likewise.
14789 (serial_mod_LDFLAGS): Likewise.
14790 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
14791 term/terminfo.c and term/tparm.c.
14792 (pkglib_IMAGES): Add fwstart.img.
14793 (fwstart_img_SOURCES): New variable.
14794 (fwstart_img_CFLAGS): Likewise.
14795 (fwstart_img_ASFLAGS): Likewise.
14796 (fwstart_img_LDFLAGS): Likewise.
14797 (fwstart_img_FORMAT): Likewise.
14798 (pkglib_MODULES): Add lsspd.mod.
14799 (lsspd_mod_SOURCES): New variable.
14800 (lsspd_mod_CFLAGS): Likewise.
14801 (lsspd_mod_LDFLAGS): Likewise.
14802 (pkglib_MODULES): Add halt.mod.
14803 (halt_mod_SOURCES): New variable.
14804 (halt_mod_CFLAGS): Likewise.
14805 (halt_mod_LDFLAGS): Likewise.
14806 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
14807 (serial_mod_SOURCES): Removed.
14808 (serial_mod_CFLAGS): Likewise.
14809 (serial_mod_LDFLAGS): Likewise.
14810 * disk/ata.c (check_device): New function.
14811 (grub_ata_device_initialize): Use check_device.
14812 (grub_ata_iterate): Recheck devices.
14813 (grub_ata_open): Likewise.
14814 (grub_atapi_iterate): Likewise.
14815 (grub_atapi_open): Likewise.
14816 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
14817 (GRUB_ATA_CH1_PORT1): Likewise.
14818 (GRUB_ATA_CH0_PORT2): Likewise.
14819 (GRUB_ATA_CH1_PORT2): Likewise.
14820 * include/grub/mips/loongson.h: New file.
14821 * include/grub/mips/yeeloong/ec.h: Likewise.
14822 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
14823 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
14824 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
14825 * include/grub/misc.h (grub_halt): Declare as noreturn.
14826 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
14827 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
14828 (UART_ENABLE_FIFO_TRIGGER1): New definition.
14829 (UART_ENABLE_DTRRTS): Likewise.
14830 (UART_ENABLE_MODEM): Removed.
14831 (UART_ENABLE_OUT2): New const.
14832 * include/grub/term.h (grub_term_register_input_active): New function.
14833 (grub_term_register_output_active): Likewise.
14834 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
14836 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
14837 (init_pci): New function.
14838 (grub_machine_init): Execute platform init when firmware. Init serial.
14839 (grub_halt): Implement.
14840 (grub_exit): Likewise.
14841 (grub_reboot): Likewise.
14842 * term/serial.c (serial_hw_init): Update macros.
14843 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
14844 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
14845 (image_targets): New target mipsel-yeeloong-flash.
14846 (generate_image): Support IMAGE_YEELOONG_FLASH.
14847 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
14848 (grub_video_sm712_setup): Init card.
14849 (grub_video_sm712_set_palette): Removed.
14850 * video/sm712_init.c: New file.
14852 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
14854 * Makefile.in (install-local): Temporarily prepend $(builddir) to
14855 PATH when running help2man and then run it on the unadorned
14856 executable names, rather than passing $(builddir)/* paths to
14857 help2man. This avoids the build directory ending up in generated
14860 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14862 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
14863 to avoid accidents when debugging with 'sh -x'.
14864 * util/grub-mkrescue.in: Likewise.
14865 * util/grub.d/00_header.in: Likewise.
14866 * util/grub.d/10_hurd.in: Likewise.
14867 * util/grub.d/10_kfreebsd.in: Likewise.
14868 * util/grub.d/10_linux.in: Likewise.
14869 * util/grub.d/10_netbsd.in: Likewise.
14870 * util/grub.d/10_windows.in: Likewise.
14871 * util/grub.d/20_linux_xen.in: Likewise.
14872 * util/grub.d/30_os-prober.in: Likewise.
14873 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
14875 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
14877 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
14878 last character in the buffer.
14879 Reported by: Vladimir Serbinenko.
14881 2010-06-29 Robert Millan <rmh@gnu.org>
14883 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
14884 (Command-line and menu entry commands): Document `badram' command.
14886 2010-06-28 Robert Millan <rmh@gnu.org>
14888 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
14889 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
14890 command using ${GRUB_BADRAM} as parameter.
14892 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14894 * docs/grub.texi (Device map): New section.
14895 (Themes): New section (stub).
14896 * Makefile.in (docs/grub.info): The info documentation now builds
14897 without errors. Make sure it stays that way.
14899 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14901 Use normal parser for menu entries.
14902 Reported by: Thomas Frauendorfer
14904 * include/grub/parser.h (grub_parser_execute): Don't export.
14905 * normal/menu.c (grub_menu_execute_entry_real): New function.
14906 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
14908 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14910 * docs/grub.texi (Embedded configuration): New section (replacing
14911 old "Preset Menu" stub).
14912 (Images): New section.
14913 (configfile): Note that any menu entries defined in `file' are shown
14916 2010-06-28 Josh Triplett <josh@joshtriplett.org>
14918 * mmap/i386/pc/mmap_helper.S: Set CF on return.
14920 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14922 * util/grub-install.in: Add --debug-image= option.
14924 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14926 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
14929 * util/deviceiter.c (check_device): Rename to ...
14930 (check_device_readable_unique): ... this. Update all callers.
14931 Maintain and check a list of which devices (by canonicalized name)
14932 have already been seen.
14933 (clear_seen_devices): New function.
14934 (compare_file_names) [__linux__]: New function.
14935 (grub_util_iterate_devices): Clear the list of seen devices on exit
14936 and (just in case) on entry.
14937 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
14938 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
14939 seen-devices list, superseded by general code in check_device.
14941 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
14943 * commands/cat.c (options): New variable.
14944 (grub_cmd_cat): Parse options. If the --dos option is given, print
14945 DOS-style "\r\n" line endings as simple newlines (Debian bug
14947 (GRUB_MOD_INIT): Use extcmd.
14948 (GRUB_MOD_FINI): Likewise.
14949 * docs/grub.texi (cat): Document --dos.
14951 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14953 XEN with Linux grub-mkconfig support.
14955 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
14956 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
14957 GRUB_CMDLINE_XEN_DEFAULT.
14958 * util/grub.d/20_linux_xen.in: New file.
14960 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
14962 Initialise VGA video on qemu ourselves.
14964 * boot/i386/qemu/boot.S: Don't call 0xc000.
14965 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
14966 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
14967 (kernel_img_HEADERS): Add pci.h.
14968 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
14969 * configure.ac: Force unifont on qemu and yeeloong.
14970 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
14971 (grub_vga_palette_write): Use correct register.
14972 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
14973 Call grub_qemu_init_cirrus.
14974 * kern/i386/qemu/init.c: New file.
14975 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
14977 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
14979 2010-06-26 Pavel Roskin <proski@gnu.org>
14981 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
14984 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
14986 * docs/grub.texi (Simple configuration): Explain that
14987 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
14988 set to `true' to disable their respective recovery entries, not
14991 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
14993 Make the `source' command slightly faster.
14995 * normal/main.c (grub_normal_execute): Don't re-read list files when
14998 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
15000 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
15001 field position and mask size to red fields from mode_info, not
15003 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
15004 Remove redundant tag->common.framebuffer_type assignment.
15005 Reported by: Seth Goldberg.
15007 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
15009 Sync up other versions of the Linux loader with Robert Millan's
15010 change of 2010-01-09, "Make loader output a bit more user-friendly".
15012 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
15014 (grub_cmd_linux): Likewise.
15015 (grub_cmd_initrd): Likewise.
15016 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
15017 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15019 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
15021 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
15022 larger than MEMORY_MAP_SIZE.
15024 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
15026 Fix parallel build.
15028 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
15030 * script/parser.y: #include grub_script.tab.h header.
15032 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15034 Support >3GiB and <16MiB RAM in i386-qemu.
15036 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
15037 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
15038 (grub_lower_mem): Removed.
15039 (grub_upper_mem): Likewise.
15040 (mem_size): Made static.
15041 (above_4g): New variable.
15042 (grub_machine_mmap_init): Detect small mem_size and above_4g.
15043 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
15046 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15048 Cirrus 5446 and Bochs video cards support.
15050 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
15052 (video_cirrus_mod_SOURCES): New variable.
15053 (video_cirrus_mod_CFLAGS): Likewise.
15054 (video_cirrus_mod_LDFLAGS): Likewise.
15055 (video_bochs_mod_SOURCES): Likewise.
15056 (video_bochs_mod_CFLAGS): Likewise.
15057 (video_bochs_mod_LDFLAGS): Likewise.
15058 * include/grub/vga.h: New file.
15059 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
15060 (grub_video_fb_set_page_t): New type.
15061 (grub_video_fb_setup): New prototype.
15062 (grub_video_fb_swap_buffers): Likewise.
15063 (grub_video_fb_get_info_and_fini): Likewise.
15064 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
15065 (CRTC_DATA_PORT): Likewise.
15066 (CRTC_CURSOR): Likewise.
15067 (CRTC_CURSOR_ADDR_HIGH): Likewise.
15068 (CRTC_CURSOR_ADDR_LOW): Likewise.
15069 (CRTC_CURSOR_DISABLE): Likewise.
15070 (update_cursor): Use grub_vga_cr_write.
15071 (grub_vga_text_setcursor): Likewise.
15072 * video/bochs.c: New file.
15073 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
15074 (palette): Likewise.
15075 (palette_size): Likewise.
15076 (framebuffer): New variable.
15077 (grub_video_fb_init): Use 'framebuffer'.
15078 (grub_video_fb_fini): Likewise.
15079 (grub_video_fb_get_info): Likewise.
15080 (grub_video_fb_get_palette): Likewise.
15081 (grub_video_fb_set_palette): Likewise.
15082 (grub_video_fb_set_viewport): Likewise.
15083 (grub_video_fb_get_viewport): Likewise.
15084 (grub_video_fb_map_color): Likewise.
15085 (grub_video_fb_map_rgb): Likewise.
15086 (grub_video_fb_map_rgba): Likewise.
15087 (grub_video_fb_unmap_color): Likewise.
15088 (grub_video_fb_unmap_color_int): Likewise.
15089 (grub_video_fb_fill_rect): Likewise.
15090 (grub_video_fb_blit_bitmap): Likewise.
15091 (grub_video_fb_blit_render_target): Likewise.
15092 (grub_video_fb_scroll): Likewise.
15093 (grub_video_fb_create_render_target): Likewise.
15094 (grub_video_fb_doublebuf_blit_init): Likewise.
15095 (grub_video_fb_set_active_render_target): Handle doublebuffering.
15096 (doublebuf_pageflipping_update_screen): New function.
15097 (doublebuf_pageflipping_init): Likewise.
15098 (grub_video_fb_setup): Likewise.
15099 (grub_video_fb_swap_buffers): Likewise.
15100 (grub_video_fb_get_info_and_fini): Likewise.
15101 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
15103 (doublebuf_pageflipping_commit): Restructured into ...
15104 (doublebuf_pageflipping_set_page): ... this.
15105 (doublebuf_pageflipping_update_screen): Removed.
15106 (doublebuf_pageflipping_init): Likewise.
15107 (double_buffering_init): Likewise.
15108 (grub_video_vbe_setup): Use grub_video_fb_setup.
15109 (grub_video_vbe_swap_buffers): Removed.
15110 (grub_video_vbe_set_active_render_target): Likewise.
15111 (grub_video_vbe_get_active_render_target): Likewise.
15112 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
15113 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
15114 grub_video_fb_set_active_render_target and
15115 grub_video_fb_get_active_render_target.
15116 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
15117 (SEQUENCER_DATA_PORT): Likewise.
15118 (MAP_MASK_REGISTER): Likewise.
15119 (CRTC_ADDR_PORT): Likewise.
15120 (CRTC_DATA_PORT): Likewise.
15121 (START_ADDR_HIGH_REGISTER): Likewise.
15122 (START_ADDR_LOW_REGISTER): Likewise.
15123 (GRAPHICS_ADDR_PORT): Likewise.
15124 (GRAPHICS_DATA_PORT): Likewise.
15125 (READ_MAP_REGISTER): Likewise.
15126 (INPUT_STATUS1_REGISTER): Likewise.
15127 (INPUT_STATUS1_VERTR_BIT): Likewise.
15128 (get_map_mask): Use grub_vga_sr_read.
15129 (set_map_mask): Use grub_vga_sr_write.
15130 (set_read_map): Use grub_vga_gr_write.
15131 (set_start_address): Use grub_vga_cr_write.
15132 * video/sm712.c (framebuffer): Remove leftover fields.
15134 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
15136 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
15137 setting GRUB_VIDEO_BACKEND. Make it available as a user override
15138 instead. Replace the gfxterm backend check with a check that
15139 ${GRUB_PREFIX}/video.lst is non-empty.
15140 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
15142 (load_video): New generated function. Call it before loading
15143 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
15144 * util/grub.d/10_linux.in (linux_entry): Call load_video.
15145 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
15146 * docs/grub.texi (Simple configuration): Document
15147 GRUB_VIDEO_BACKEND.
15149 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15151 Use video functions in linux and xnu loaders.
15153 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
15154 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
15155 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
15156 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
15157 loader/i386/pc/linux.c.
15158 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
15159 (find_line_len): Removed.
15160 (find_framebuf): Likewise.
15161 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
15162 * loader/i386/efi/xnu.c: Removed.
15163 * loader/i386/pc/xnu.c: Moved from here...
15164 * loader/i386/xnu.c: ...here.
15166 Enable priorities in video drivers.
15168 * include/grub/video.h (grub_video_adapter_prio_t): New type.
15169 (grub_video_adapter): New field prio.
15170 (grub_video_register): Respect prio when inserting.
15171 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
15172 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
15173 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
15174 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
15175 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
15176 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
15177 * video/sm712.c (grub_video_sm712_adapter): Likewise.
15181 * include/grub/video.h (grub_video_driver_id_t): New value
15182 GRUB_VIDEO_DRIVER_SDL.
15183 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
15185 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15187 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
15188 argument to printf.
15189 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15191 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15193 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
15194 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15196 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15198 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
15199 directly, and recommend grub-install instead.
15200 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
15202 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
15204 Fix i386-pc prefix handling with nested partitions (Debian bug
15205 #585068). Note that the case where the core image is booted using
15206 multiboot and relocated from its original location still requires
15209 * kern/i386/pc/init.c (make_install_device): If the prefix starts
15210 with "(,", fill the boot drive in between those two characters, but
15211 expect that a full partition specification including partition map
15213 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
15214 specified, write a prefix without the drive name but including a
15215 full partition specification.
15217 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
15219 * util/grub-mkconfig.in: Ignore non-option arguments, for
15220 compatibility with older versions (before 2010-06-12) which did the
15221 same. In particular, this makes it easier to ship an update-grub
15222 wrapper which is compatible with that used with GRUB Legacy (Debian
15225 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15227 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
15228 for manual page generation.
15230 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
15232 * po/POTFILES: Remove leftover commands/handler.c.
15234 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
15236 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
15237 left this script non-functional.
15239 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
15241 * docs/man/grub-emu.h2m: New file.
15243 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
15245 * docs/grub.texi (Commands): Document reduced command set in rescue
15247 (cpuid): New section.
15249 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
15251 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
15252 new partition naming style.
15253 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
15255 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
15257 Add "-o grub.iso" like cmdline options support.
15259 * util/grub-install.in: Improve cmdline option parsing.
15260 * util/grub-mkconfig.in: Likewise.
15261 * util/grub-mkrescue.in: Likewise.
15262 * util/grub-reboot.in: Likewise.
15263 * util/grub-set-default.in: Likewise.
15264 * util/i386/efi/grub-install.in: Likewise.
15265 * util/ieee1275/grub-install.in: Likewise.
15266 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15268 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15270 * .bzrignore: Ignore 41_custom.
15272 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
15274 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
15276 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15278 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
15279 prototype declarations.
15281 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
15282 generating fs, partmap, and video lists.
15283 * include/grub/fs.h (grub_fs_register): Omit prototype if
15284 GRUB_LST_GENERATOR is defined.
15285 * include/grub/partition.h (grub_partition_map_register): Likewise.
15286 * include/grub/video.h (grub_video_register): Likewise.
15288 2010-06-12 Javier Martín <lordhabbit@gmail.com>
15290 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
15292 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
15294 * util/grub-mkrescue.in: Support --xorriso argument.
15296 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15298 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
15299 Suggested by: Thomas Schmitt.
15301 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15303 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
15304 Suggested by: Thomas Schmitt.
15306 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15308 custom.cfg support.
15310 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
15311 * util/grub.d/41_custom.in: New file.
15313 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
15315 * util/grub-mkrescue.in (make_image): Remove sh module, which has
15316 been merged back into normal.
15318 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
15320 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
15321 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
15323 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
15325 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
15326 when generating manual pages.
15327 * docs/man/grub-bin2h.h2m: New file.
15328 * docs/man/grub-editenv.h2m: New file.
15329 * docs/man/grub-fstest.h2m: New file.
15330 * docs/man/grub-install.h2m: New file.
15331 * docs/man/grub-macho2img.h2m: New file.
15332 * docs/man/grub-mkconfig.h2m: New file.
15333 * docs/man/grub-mkdevicemap.h2m: New file.
15334 * docs/man/grub-mkfont.h2m: New file.
15335 * docs/man/grub-mkimage.h2m: New file.
15336 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
15337 * docs/man/grub-mkrelpath.h2m: New file.
15338 * docs/man/grub-mkrescue.h2m: New file.
15339 * docs/man/grub-ofpathname.h2m: New file.
15340 * docs/man/grub-pe2elf.h2m: New file.
15341 * docs/man/grub-probe.h2m: New file.
15342 * docs/man/grub-reboot.h2m: New file.
15343 * docs/man/grub-script-check.h2m: New file.
15344 * docs/man/grub-set-default.h2m: New file.
15345 * docs/man/grub-setup.h2m: New file.
15347 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
15349 Use FOR_* macros instead of *_iterate whenever possible.
15351 * commands/handler.c: Removed.
15352 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
15353 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
15354 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15355 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
15356 (grub_probe_SOURCES): Remove kern/parser.c.
15357 (util/grub-script-check.c_DEPENDENCIES): Removed.
15358 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
15359 and grub_script_check_init.c.
15360 (grub_script_check_init.lst): Removed.
15361 (grub_script_check_init.h): Likewise.
15362 (grub_script_check_init.c): Likewise.
15363 (pkglib_MODULES): Remove handler.mod and sh.mod.
15364 (handler_mod_SOURCES): Removed.
15365 (handler_mod_CFLAGS): Likewise.
15366 (handler_mod_LDFLAGS): Likewise.
15367 (normal_mod_SOURCES): Remove normal/handler.c.
15368 Add script/main.c, script/script.c, script/execute.c,
15369 script/function.c, script/lexer.c, grub_script.tab.c
15370 and grub_script.yy.c.
15371 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15372 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15373 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
15374 (grub_setup_SOURCES): Remove kern/parser.c.
15375 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15376 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
15377 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
15378 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15379 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
15380 (grub_setup_SOURCES): Remove kern/parser.c.
15381 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
15382 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
15383 * include/grub/command.h (grub_command_iterate): Removed.
15384 (FOR_COMMANDS): New macro.
15385 * include/grub/dl.h (grub_dl): New member next.
15386 (grub_dl_iterate): Removed.
15387 (grub_dl_head): New variable declaration.
15388 (FOR_DL_MODULES): New macro.
15389 * include/grub/fs.h: Include list.h.
15390 (grub_fs): Make next first element.
15391 (grub_fs_list): New variable declaration.
15392 (grub_fs_register): Make inline.
15393 (grub_fs_unregister): Likewise.
15394 (grub_fs_iterate): Removed.
15395 (FOR_FILESYSTEMS): New macro.
15396 * include/grub/handler.h: Removed.
15397 * include/grub/list.h (grub_list_hook_t): Removed.
15398 (grub_list_test_t): Likewise.
15399 (grub_list_pop): Likewise.
15400 (grub_list_iterate): Likewise.
15401 (grub_list_insert): Likewise.
15402 (FOR_LIST_ELEMENTS): New macro.
15403 * include/grub/parser.h (grub_parser_class): Removed.
15404 (grub_parser_register): Likewise.
15405 (grub_parser_unregister): Likewise.
15406 (grub_parser_get_current): Likewise.
15407 (grub_parser_set_current): Likewise.
15408 (grub_register_rescue_parser): Likewise.
15409 (grub_rescue_parse_line): New function.
15410 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
15411 * include/grub/script_sh.h (grub_script_function_list): New variable
15413 (FOR_SCRIPT_FUNCTIONS): New macro.
15414 (grub_script_function_iterate): Removed.
15415 (grub_normal_parse_line): New prototype.
15416 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
15417 (FOR_DISABLED_TERM_INPUTS): Likewise.
15418 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
15419 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
15420 * include/grub/video.h (grub_video_adapter): Move 'next' to first
15422 (grub_video_register): Inline.
15423 (grub_video_unregister): Likewise.
15424 (grub_video_adapter_list): New variable declaration.
15425 (grub_video_iterate): Removed.
15426 (FOR_VIDEO_ADAPTERS): New macro.
15427 * kern/dl.c (grub_dl_list): Removed. All users updated.
15428 (grub_dl_iterate): Removed.
15429 * kern/fs.c (grub_fs_list): Make global.
15430 (grub_fs_register): Removed.
15431 (grub_fs_unregister): Likewise.
15432 (grub_fs_iterate): Likewise.
15433 * kern/handler.c: Removed.
15434 * kern/list.c (grub_list_pop): Removed.
15435 (grub_list_iterate): Likewise.
15436 (grub_list_insert): Likewise.
15437 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
15438 (grub_prio_list_insert): Don't use grub_list_insert.
15439 * kern/main.c (grub_register_rescue_parser): Don't call
15440 grub_register_rescue_parser.
15441 * kern/parser.c (grub_parser_class): Removed.
15442 (grub_parser_execute): Use grub_rescue_parse_line.
15443 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
15444 (grub_rescue_parser): Removed.
15445 (grub_register_rescue_parser): Likewise.
15446 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
15447 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
15448 (grub_auth_check_authentication): Likewise.
15449 * normal/completion.c (iterate_command): Removed.
15450 (grub_normal_do_completion): Use FOR_COMMANDS.
15451 * normal/handler.c: Removed.
15452 * normal/main.c (read_config_file): Remove parser changing.
15453 (grub_normal_execute): Don't call read_handler_list.
15454 (grub_normal_read_line_real): Statically allocate prompt.
15455 (grub_cmdline_run): Use grub_normal_parse_line.
15456 (GRUB_MOD_FINI): Don't call free_handler_list.
15457 * normal/menu_entry.c (run): Likewise.
15458 * script/function.c (grub_script_function_list): Make global.
15459 (grub_script_function_iterate): Removed.
15460 * script/main.c (grub_normal_parse_line): Make global.
15461 (grub_sh_parser): Removed.
15462 (GRUB_MOD_INIT): Likewise.
15463 (GRUB_MOD_FINI): Likewise.
15464 * tests/lib/functional_test.c (grub_functional_test): Use
15466 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
15467 (grub_test_run): Use FOR_LIST_ELEMENTS.
15468 * tests/lib/unit_test.c (main): Likewise.
15469 * util/deviceiter.c (grub_util_iterate_devices): Don't use
15471 * util/grub-fstest.c (grub_term_input_class): Removed.
15472 (grub_term_output_class): Likewise.
15473 * util/grub-probe.c: Likewise.
15474 * util/i386/pc/grub-setup.c: Likewise.
15475 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15476 * util/grub-script-check.c (main): Don't call grub_init_all and
15478 * video/video.c (grub_video_adapter_list): Make global.
15479 (grub_video_register): Removed.
15480 (grub_video_unregister): Likewise.
15481 (grub_video_iterate): Likewise.
15483 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
15485 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
15486 reported by Henrique Ferreiro.
15488 2010-06-09 Robert Millan <rmh@gnu.org>
15490 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
15491 ones, when both are available.
15493 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15495 Make --version uniform and avoid hard-coded program name.
15497 * util/grub-mkimage.c (main): Use `program_name' instead of
15499 * util/i386/pc/grub-setup.c (main): Likewise.
15500 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
15501 * util/grub-install.in: Save the basename of $0 in $self, and use the
15502 latter in informational messages. Use the same format for --version
15503 as the binary programs.
15504 * util/grub-mkconfig.in: Likewise.
15505 * util/grub-mkrescue.in: Likewise.
15506 * util/grub-reboot.in: Likewise.
15507 * util/grub-set-default.in: Likewise.
15508 * util/i386/efi/grub-install.in: Likewise.
15509 * util/ieee1275/grub-install.in: Likewise.
15510 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15512 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15514 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
15515 embedding area. Use <= instead of == when checking for non-emptiness.
15517 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15519 * configure.ac: Add `.' to the directories searched for unifont.
15521 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15523 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
15526 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15528 * docs/grub.texi (History): Expand to cover GRUB 2.
15529 (Serial terminal): Refer to `terminal_input' and `terminal_output'
15530 commands, not `terminal'.
15531 (serial): Likewise.
15532 (terminal_input): New section.
15533 (terminal_output): New section.
15534 (uppermem): New section (stub).
15535 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
15537 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
15539 * docs/grub.texi (Security): Menu entries are unrestricted by
15540 default, not restricted to superusers as I had previously thought.
15541 Reword to account for this.
15543 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15545 * kern/emu/misc.c (device_mapper_null_log): New function.
15546 (grub_device_mapper_supported): New function.
15547 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
15549 * kern/emu/hostdisk.c (find_partition_start): Check whether
15550 device-mapper is supported before trying to use it.
15551 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
15553 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15555 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
15556 (File name syntax): Likewise.
15557 (help): --all is no longer supported in GRUB 2. Be more precise
15558 about pattern matching.
15560 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15562 * normal/completion.c (grub_normal_do_completion): When completing
15563 arguments to "set" and the current word contains an equals sign,
15564 skip to after the equals sign before starting completion.
15566 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15568 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
15570 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15572 * docs/grub.texi (Network): New section.
15573 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
15574 `(nd)' as in GRUB Legacy.
15575 (pxe_unload): New section.
15577 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15579 * docs/grub.texi (Troubleshooting): `echo' is not usually available
15580 in the rescue shell, so recommend using `set' instead. Thanks,
15583 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15585 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
15586 (password): New section.
15587 (password_pbkdf2): New section.
15588 (search): New section.
15589 (Security): New section.
15590 (Troubleshooting): New section, currently very incomplete.
15591 (Invoking grub-mkpasswd-pbkdf2): New section.
15592 (Internals): New section, currently very incomplete.
15594 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15596 * util/grub.d/00_header.in: Add some more quoting (of
15597 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
15599 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
15601 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
15603 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
15604 to `count', fixing variable shadowing that broke the -c option.
15606 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
15608 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
15609 in case they contain spaces.
15611 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15613 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
15614 "part_" to partmap module names, in line with grub-install.
15615 Reported by: Jindřich Makovička (Debian bug #584426).
15617 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
15619 * util/grub-mkimage.c: Make target-related error messages slightly
15620 more helpful; -O talks about "format". Explicitly point to the use
15621 of -O if no target is specified.
15622 Reported by: Didier Raboud (Debian bug #584415).
15624 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
15626 * INSTALL: Document several build requirements for optional features
15627 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
15629 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15631 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
15632 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
15633 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
15635 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15637 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
15638 Thanks to Jordan Uggla for spotting this.
15640 2010-06-02 Aleš Nesrsta <starous@volny.cz>
15642 Finally make USB usable.
15644 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
15645 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
15646 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
15647 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
15648 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
15649 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
15650 (GRUB_OHCI_FSMPS): Likewise.
15651 (GRUB_OHCI_PERIODIC_START): Likewise.
15652 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
15653 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
15654 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
15655 (GRUB_OHCI_SET_PORT_RESET): Likewise.
15656 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
15657 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
15658 (grub_ohci_transaction): Likewise.
15659 (grub_ohci_transfer): Improve condition detection algorithms.
15660 Handle toggle property. Program the transactions correctly.
15661 Improve error handling. Various important fixups.
15662 (grub_ohci_portstatus): Put register writes in right order.
15663 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
15664 (grub_uhci_transfer): Don't show "failed" message on success.
15665 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
15667 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
15668 determine its size.
15669 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
15670 before initialization is completed. Use IN direction for empty
15671 transfers. Use last_trans and compute toggle.
15672 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
15673 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
15674 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
15675 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
15676 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
15677 (grub_usb_device): Increase toggle to 256.
15678 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
15679 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
15680 GRUB_USBMS_SUBCLASS_SFF8070.
15681 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
15682 (grub_scsi_inquiry): New member page and alloc_length.
15683 (grub_scsi_request_sense): New structure.
15684 (grub_scsi_request_sense_data): Likewise.
15685 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
15687 * disk/scsi.c (grub_scsi_request_sense): New function.
15688 (grub_scsi_test_unit_ready): Likewise.
15689 (grub_scsi_inquiry): Fill new fields.
15690 (grub_scsi_read_capacity): Likewise.
15691 (grub_scsi_read10): Add request sense at the end.
15692 (grub_scsi_read12): Likewise.
15693 (grub_scsi_write10): Likewise.
15694 (grub_scsi_write12): Likewise.
15695 (grub_scsi_open): Add Test Unit Ready.
15696 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
15697 Support additional subclasses. Con't clear halt yet. Activate the
15698 proper config. Calculate LUNs correctly.
15699 (grub_usbms_transfer): Various important fixups.
15701 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15703 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
15704 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
15705 (grub_ohci_fini_hw): New function.
15706 (grub_ohci_restore_hw): Likewise.
15707 (GRUB_MOD_INIT(ohci)): Register preboot hook.
15708 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
15709 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
15711 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15713 Dedicated DMA allocations.
15715 * bus/pci.c (grub_memalign_dma32): New function
15716 (grub_dma_free): Likewise.
15717 (grub_dma_get_virt): Likewise.
15718 (grub_dma_get_phys): Likewise.
15719 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
15720 (grub_ohci_pci_iter): Use dma32_alloc.
15721 (grub_ohci_transfer): Likewise.
15722 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
15723 (grub_usb_bulk_readwrite): Likewise.
15724 * include/grub/pci.h: Add declarations.
15726 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
15730 * bus/cs5536.c: New file.
15731 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
15732 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
15733 (cs5536_mod_SOURCES): New variable.
15734 (cs5536_mod_CFLAGS): Likewise.
15735 (cs5536_mod_LDFLAGS): Likewise.
15736 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
15738 (kernel_img_SOURCES): Add bus/cs5536.c.
15739 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
15741 (usb_mod_SOURCES): New variable.
15742 (usb_mod_CFLAGS): New variable.
15743 (usb_mod_LDFLAGS): New variable.
15744 (usbtest_mod_SOURCES): New variable.
15745 (usbtest_mod_CFLAGS): New variable.
15746 (usbtest_mod_LDFLAGS): New variable.
15747 (ohci_mod_SOURCES): New variable.
15748 (ohci_mod_CFLAGS): New variable.
15749 (ohci_mod_LDFLAGS): New variable.
15750 (usbms_mod_SOURCES): New variable.
15751 (usbms_mod_CFLAGS): New variable.
15752 (usbms_mod_LDFLAGS): New variable.
15753 (usb_keyboard_mod_SOURCES): New variable.
15754 (usb_keyboard_mod_CFLAGS): New variable.
15755 (usb_keyboard_mod_LDFLAGS): New variable.
15756 * include/grub/smbus.h: New file.
15757 * include/grub/cs5536.h: New file.
15759 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15761 * util/grub.d/00_header.in: Add safety check to make sure that
15762 ${locale_dir} exists before trying to probe it.
15764 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15766 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
15767 per the GNU Coding Standards; this is now too obscure to be worth
15770 (chainloader): Remove cross-reference to `SCO UnixWare'.
15772 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15774 * docs/grub.texi (Chain-loading): New section.
15775 (DOS/Windows): New section, borrowed from GRUB Legacy with details
15776 adjusted for GRUB 2.
15777 (SCO UnixWare): Likewise.
15779 (chainloader): Add reference to `Block list syntax'.
15780 (drivemap): New section.
15781 (parttool): New section.
15783 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15785 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
15787 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
15788 (Installing GRUB using grub-install): Remove reference to the grub
15789 shell; mention `grub-mkimage' and `grub-setup' instead.
15790 (Invoking grub-install): Likewise.
15791 (Interface): Add reference to `Menu entry editor'.
15792 (serial): Remove `--device' option.
15794 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15796 * docs/grub.texi (Configuration): New section, documenting
15797 configuration file generation using grub-mkconfig. I've left a slot
15798 for documenting the full shell scripting format but have not yet
15799 started on writing that up.
15800 (Invoking grub-mkconfig): New section.
15802 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15804 * docs/grub.texi (direntry): Remove grub-terminfo reference.
15805 (GNU GRUB manual): Likewise.
15806 (General commands): Update description of `terminfo' for GRUB 2.
15808 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15810 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
15811 (GRUB_MOD_INIT): Fix capitalisation.
15812 * docs/grub.texi (Command-line and menu entry commands): Document
15813 gettext and gptsync commands.
15815 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
15817 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
15818 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
15820 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
15822 Add btrfs probing support, currently only in the single-device case.
15824 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
15826 (grub_guess_root_device): Call find_root_device_from_mountinfo
15827 before looking in /dev.
15829 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15831 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
15832 GRUB_DISK_SIZE_UNKNOWN.
15833 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
15835 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
15837 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
15838 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
15839 corrupted or not synced properly.
15841 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15843 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
15844 Reported by: Seth Goldberg.
15846 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15848 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
15850 Reported by: Seth Goldberg.
15852 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15854 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
15855 Reported by: Seth Goldberg.
15857 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
15859 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
15860 64-bit address as signed on MIPS.
15862 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15864 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
15865 to the empty string.
15867 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
15869 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
15871 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
15872 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
15873 * kern/misc.c (__enable_execute_stack): Disable on
15876 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
15878 Make grub-probe work with symbolic links under /dev/mapper as well
15879 as with real block devices. The Linux world seems to be (at best)
15880 in transition here, and GRUB shouldn't get caught in the middle.
15882 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
15885 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15887 * util/grub-script-check.c (main): Ensure defined behaviour on empty
15888 input files (in which case exit zero).
15890 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15892 * kern/emu/misc.c (canonicalize_file_name): realpath can still
15893 return NULL for various reasons even if it has a maximum-length
15894 buffer: for example, there might be a symlink loop, or the path
15895 might exceed PATH_MAX. If this happens, return NULL.
15897 2010-05-27 Robert Millan <rmh@gnu.org>
15899 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
15900 partmap module to handle cross-partmap setups.
15901 Reported by Orestes Mas. Gràcies!
15903 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
15905 * util/grub-mkrescue.in: Initialise override_dir rather than
15906 assuming that it's unset or empty in the environment.
15908 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
15910 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
15911 variable index into p_index to suppress a warning with -Wshadow.
15913 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
15915 * INSTALL: Added flex >= 2.5.35 requirement.
15917 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15919 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
15921 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15925 * commands/i386/cmostest.c: New file.
15926 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
15927 (cmostest_mod_SOURCES): New variable.
15928 (cmostest_mod_CFLAGS): Likewise.
15929 (cmostest_mod_LDFLAGS): Likewise.
15930 * conf/i386-pc.rmk: Likewise.
15931 * docs/grub.texi (Vendor power-on keys): New section.
15932 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
15933 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
15934 and GRUB_BUTTON_CMOS_ADDRESS.
15935 * util/grub.d/00_header.in: Handle powering-on by separate button.
15937 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15939 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
15940 Removed drawing_scrollbar argument. All users updated
15942 Reported by Jo Shields
15944 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15946 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
15947 buffer since gfxterm handles double repaint.
15949 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15951 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
15952 * term/gfxterm.c (real_scroll): Likewise.
15954 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15956 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
15957 before calling BIOS.
15959 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15961 * include/grub/i18n.h: Always enable grub_gettext.
15963 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15965 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
15966 partition naming style.
15968 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
15970 * util/grub-mkconfig.in: Fix handling of -o so that it works when
15971 not the first option.
15973 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
15975 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
15977 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
15979 * util/misc.c: Move inclusion of <limits.h> to ...
15980 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
15982 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
15984 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
15985 Fix merge error in NetBSD code.
15986 (find_partition_start) [__NetBSD__]: Likewise.
15988 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
15990 Fix grub-mkrescue usage unit testing.
15992 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
15994 2010-05-18 Christian Franke <franke@computer.org>
15996 * util/grub.d/10_windows.in: Use path names instead of
15997 drive letters to prevent warning from Cygwin 1.7.
15998 Add drivemap command to menuentry if needed.
16000 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
16002 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
16003 gnumach and gnumach.gz.
16005 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16007 * include/grub/i18n.h (gettext): Inline instead of using #define.
16008 (grub_gettext): Likewise.
16011 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16013 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
16014 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
16015 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
16016 (main): Add a slash after pkglibdirroot.
16018 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16020 * util/grub-install.in: Add missing "in" keyword.
16022 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16024 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
16025 Reported by: Seth Goldberg.
16027 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16029 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
16031 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16033 * configure.ac: Check for Linux device-mapper support.
16035 * util/hostdisk.c (device_is_mapped): New function.
16036 (find_partition_start): New function, partly broken out from
16037 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
16038 device-mapper support added.
16039 (linux_find_partition): Use find_partition_start.
16040 (convert_system_partition_to_system_disk): Add `st' argument.
16041 Support Linux /dev/mapper/* devices if device-mapper support is
16042 available; only DM-RAID devices are understood at present.
16043 (find_system_device): Add `st' argument. Pass it to
16044 convert_system_partition_to_system_disk.
16045 (grub_util_biosdisk_get_grub_dev): Pass stat result to
16046 find_system_device and convert_system_partition_to_system_disk. Use
16047 find_partition_start.
16049 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
16050 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
16051 * util/deviceiter.c [__linux__]: Define MINOR.
16052 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
16053 * util/mkdevicemap.c (grub_putchar): New function.
16054 (grub_getkey): New function.
16055 (grub_refresh): New function.
16056 (main): Set debug=all if -v -v is used.
16058 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16060 Fix build with non-GNU libcs.
16062 * util/misc.c (canonicalize_file_name): Move to ...
16063 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
16064 grub_make_system_path_relative_to_its_root.
16066 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
16068 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
16069 we handle finding grub-mkimage. Default to finding grub-mkimage in
16070 ${bindir} with program_transform_name applied, and provide a
16071 --grub-mkimage option to override this.
16073 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16075 Remove grub-mkisofs.
16077 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
16078 (grub_mkisofs_SOURCES): Removed.
16079 (grub_mkisofs_CFLAGS): Removed.
16080 * util/mkisofs/defaults.h: Removed.
16081 * util/mkisofs/eltorito.c: Likewise.
16082 * util/mkisofs/exclude.h: Likewise.
16083 * util/mkisofs/hash.c: Likewise.
16084 * util/mkisofs/include/: Likewise.
16085 * util/mkisofs/include/fctldefs.h: Likewise.
16086 * util/mkisofs/include/mconfig.h: Likewise.
16087 * util/mkisofs/include/prototyp.h: Likewise.
16088 * util/mkisofs/include/statdefs.h: Likewise.
16089 * util/mkisofs/iso9660.h: Likewise.
16090 * util/mkisofs/joliet.c: Likewise.
16091 * util/mkisofs/match.c: Likewise.
16092 * util/mkisofs/match.h: Likewise.
16093 * util/mkisofs/mkisofs.c: Likewise.
16094 * util/mkisofs/mkisofs.h: Likewise.
16095 * util/mkisofs/msdos_partition.h: Likewise.
16096 * util/mkisofs/multi.c: Likewise.
16097 * util/mkisofs/name.c: Likewise.
16098 * util/mkisofs/rock.c: Likewise.
16099 * util/mkisofs/tree.c: Likewise.
16100 * util/mkisofs/write.c: Likewise.
16102 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16104 Unify grub-mkimage accross platforms.
16106 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
16107 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
16108 (grub_mkelfimage_SOURCES): Removed.
16109 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
16110 (util/grub-mkimage.c_DEPENDENCIES): .. this.
16111 (bin_UTILITIES): Add grub-mkimage.
16112 (grub_mkimage_SOURCES): New variable.
16113 (kernel_img_HEADERS): Remove machine/kernel.h.
16114 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
16115 (pkglib_PROGRAMS): Add kernel.img.
16116 (kernel_img_HEADERS): Add machine/kernel.h.
16117 (kernel_img_FORMAT): Removed.
16118 (bin_UTILITIES): Remove grub-mkimage.
16119 (grub_mkimage_SOURCES): Removed.
16120 (grub_mkimage_CFLAGS): Likewise.
16121 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16122 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
16123 (pkglib_PROGRAMS): Add kernel.img.
16124 (bin_UTILITIES): Remove grub-mkimage.
16125 (grub_mkimage_SOURCES): Removed.
16126 (grub_mkimage_CFLAGS): Likewise.
16127 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16128 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
16129 (pkglib_PROGRAMS): Add kernel.img.
16130 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
16131 (pkglib_PROGRAMS): Add kernel.img.
16132 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
16133 (grub_mkimage_SOURCES): Removed.
16134 (grub_mkimage_CFLAGS): Likewise.
16135 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16136 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
16137 (pkglib_PROGRAMS): Add kernel.img.
16138 (bin_UTILITIES): Remove grub-mkimage.
16139 (grub_mkimage_SOURCES): Removed.
16140 (grub_mkimage_CFLAGS): Likewise.
16141 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16142 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
16143 (grub_mkimage_SOURCES): Removed.
16144 (grub_mkimage_CFLAGS): Likewise.
16145 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
16146 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
16147 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
16148 (grub_pe32_optional_header): ... this.
16149 (grub_pe64_optional_header): ... and this. All users updated.
16150 (GRUB_PE32_PE32_MAGIC): Split into ..
16151 (GRUB_PE32_PE32_MAGIC): .. this.
16152 (GRUB_PE32_PE64_MAGIC): .. and this.
16153 (GRUB_PE32_SIGNATURE_SIZE): New definition.
16154 * include/grub/elf.h (PT_GNU_STACK): New definition.
16155 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
16156 * include/grub/i386/efi/kernel.h: Likewise.
16157 * include/grub/i386/kernel.h: Likewise.
16158 * include/grub/i386/pc/kernel.h: Likewise.
16159 * include/grub/i386/qemu/boot.h: Likewise.
16160 * include/grub/mips/kernel.h: Likewise.
16161 * include/grub/mips/qemu-mips/kernel.h: Likewise.
16162 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
16163 * include/grub/powerpc/kernel.h: Likewise.
16164 * include/grub/sparc64/ieee1275/boot.h: Likewise.
16165 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16166 * include/grub/sparc64/kernel.h: Likewise.
16167 * include/grub/x86_64/efi/kernel.h: Likewise.
16168 * include/grub/x86_64/kernel.h: Likewise.
16169 * include/grub/offsets.h: New file.
16170 * include/grub/kernel.h (grub_module_info): Split into ...
16171 (grub_module_info32): ... this.
16172 (grub_module_info64): ... and this.
16173 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
16174 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
16175 (grub_boot_blocklist): Moved from here ...
16176 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
16177 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
16178 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
16179 * include/grub/types.h (grub_target_to_host16): Removed.
16180 (grub_target_to_host32): Likewise.
16181 (grub_target_to_host64): Likewise.
16182 (grub_host_to_target16): Likewise.
16183 (grub_host_to_target32): Likewise.
16184 (grub_host_to_target64): Likewise.
16185 (grub_host_to_target_addr): Likewise.
16187 Support grub-mkrescue for efi, coreboot and qemu.
16189 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
16190 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
16191 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
16192 * util/grub-mkrawimage.c: Moved from here ...
16193 * util/grub-mkimage.c: ... here. All users updated.
16194 (ALIGN_ADDR): Use image_target.
16195 (TARGET_NO_FIELD): New const.
16196 (image_target_desc): New type.
16197 (image_targets): New array.
16198 (grub_target_to_host64): Use image_target.
16199 (grub_target_to_host32): Likewise.
16200 (grub_target_to_host16): Likewise.
16201 (grub_host_to_target64): Likewise.
16202 (grub_host_to_target32): Likewise.
16203 (grub_host_to_target16): Likewise.
16204 (grub_host_to_target_addr): Likewise.
16205 (generate_image): Handle multiimage.
16206 (main): Require -O parameter. All users updated.
16207 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
16208 util/efi/grub-mkimage.c
16209 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
16210 New option --rom-directory.
16212 * util/i386/efi/grub-mkimage.c: Removed.
16213 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
16214 (grub_target_to_host32): Likewise.
16215 (grub_target_to_host64): Likewise.
16216 (grub_host_to_target16): Likewise.
16217 (grub_host_to_target32): Likewise.
16218 (grub_host_to_target64): Likewise.
16219 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
16220 (grub_target_to_host32): Likewise.
16221 (grub_target_to_host64): Likewise.
16222 (grub_host_to_target16): Likewise.
16223 (grub_host_to_target32): Likewise.
16224 (grub_host_to_target64): Likewise.
16226 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
16228 Source tree is reorganized for emu build.
16230 * include/grub/util/console.h: Move from here...
16231 * include/grub/emu/console.h: ...to here.
16232 * include/grub/util/getroot.h: Move from here...
16233 * include/grub/emu/getroot.h: ...to here.
16234 * include/grub/util/hostdisk.h: Move from here...
16235 * include/grub/emu/hostdisk.h: ...to here.
16236 * util/console.c: Move from here...
16237 * kern/emu/console.c: ...to here.
16238 * util/getroot.c: Move from here...
16239 * kern/emu/getroot.c: ...to here.
16240 * util/grub-emu.c: Move from here...
16241 * kern/emu/main.c: ...to here.
16242 * util/hostdisk.c: Move from here...
16243 * kern/emu/hostdisk.c: ...to here.
16244 * util/hostfs.c: Move from here...
16245 * kern/emu/hostfs.c: ...to here.
16246 * util/mm.c: Move from here...
16247 * kern/emu/mm.c: ...to here.
16248 * util/pci.c: Move from here...
16249 * bus/emu/pci.c: ...to here.
16250 * util/sdl.c: Move from here...
16251 * video/emu/sdl.c: ...to here.
16252 * util/time.c: Move from here...
16253 * kern/emu/time.c: ...to here.
16254 * util/usb.c: Move from here...
16255 * bus/usb/emu/usb.c: ...to here.
16257 * include/grub/emu/misc.h: New header for grub-emu functions.
16258 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
16260 * conf/any-emu.rmk: Rule updates for above renames.
16261 * conf/common.rmk: Likewise.
16262 * conf/i386-pc.rmk: Likewise.
16263 * conf/i386-qemu.rmk: Likewise.
16264 * conf/mips.rmk: Likewise.
16265 * conf/sparc64-ieee1275.rmk: Likewise.
16266 * conf/x86-efi.rmk: Likewise.
16268 * disk/lvm.h: #include updates for above renames.
16269 * util/grub-mkrelpath.c: Likewise.
16270 * util/grub-probe.c: Likewise.
16271 * util/i386/pc/grub-setup.c: Likewise.
16272 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16273 * kern/emu/console.c: Likewise.
16274 * kern/emu/getroot.c: Likewise.
16275 * kern/emu/hostdisk.c: Likewise.
16276 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
16278 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
16279 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
16280 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
16281 * util/misc.c: Remove grub-emu functions.
16283 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16286 Reported by: Thorsten Grützmacher.
16288 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
16290 (circprog_set_property): Register and unregister timeout hook.
16291 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
16292 (label_destroy): Free template. and unregister hook.
16293 (label_set_state): New function.
16294 (label_set_property): Handle templates and hooks.
16295 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
16297 (progress_bar_set_property): Register and unregister timeout hook.
16298 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
16299 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
16300 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
16301 (update_timeout_visit): Removed.
16302 (update_timeouts): New function.
16303 (redraw_timeouts): Likewise.
16304 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
16305 (grub_gfxmenu_clear_timeout): Likewise.
16306 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
16307 (grub_gfxmenu_timeout_notify): Likewise.
16308 (grub_gfxmenu_timeout_notifications): New external variable.
16309 (grub_gfxmenu_timeout_register): New function.
16310 (grub_gfxmenu_timeout_unregister): Likewise.
16312 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16314 Transform (broken) vga terminal into (working) vga video driver.
16316 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
16317 video/i386/pc/vga.c.
16318 * include/grub/video.h (grub_video_driver_id):
16319 Add GRUB_VIDEO_DRIVER_VGA.
16320 * term/i386/pc/vga.c: Renamed to ...
16321 * video/i386/pc/vga.c: ...this
16322 (DEBUG_VGA): Removed.
16323 (CHAR_WIDTH): Likewise.
16324 (CHAR_HEIGHT): Likewise.
16325 (TEXT_WIDTH): Likewise.
16326 (TEXT_HEIGHT): Likewise.
16327 (DEFAULT_FG_COLOR): Likewise.
16328 (DEFAULT_BG_COLOR): Likewise.
16329 (colored_char): Likewise.
16332 (cursor_state): Likewise.
16333 (fg_color): Likewise.
16334 (bg_color): Likewise.
16335 (text_buf): Likewise.
16338 (framebuffer): New variable.
16339 (set_read_map): Disabled.
16340 (setup): New variable.
16341 (is_target): Likewise.
16342 (grub_vga_mod_init): Likewise.
16343 (grub_vga_mod_fini): Likewise.
16344 (check_vga_mem): Likewise.
16345 (write_char): Likewise.
16346 (write_cursor): Likewise.
16347 (scroll_up): Likewise.
16348 (grub_vga_putchar): Likewise.
16349 (grub_vga_getcharwidth): Likewise.
16350 (grub_vga_getwh): Likewise.
16351 (grub_vga_getxy): Likewise.
16352 (grub_vga_gotoxy): Likewise.
16353 (grub_vga_cls): Likewise.
16354 (grub_vga_setcolorstate): Likewise.
16355 (grub_vga_setcursor): Likewise.
16356 (grub_video_vga_init): New function.
16357 (grub_video_vga_setup): Likewise.
16358 (grub_video_vga_fini): Likewise.
16359 (update_target): Likewise.
16360 (grub_video_vga_blit_bitmap): Likewise.
16361 (grub_video_vga_blit_render_target): Likewise.
16362 (grub_video_vga_set_active_render_target): Likewise.
16363 (grub_video_vga_get_active_render_target): Likewise.
16364 (grub_video_vga_swap_buffers): Likewise.
16365 (grub_video_vga_set_palette): Likewise.
16366 (grub_video_vga_get_info_and_fini): Likewise.
16367 (grub_vga_term): Removed.
16368 (grub_video_vga_adapter): New variable.
16369 (GRUB_MOD_INIT): Register a video driver instead of terminal.
16370 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
16372 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16374 * video/readers/jpeg.c: Indented.
16376 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16378 Various jpeg cleanups.
16380 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
16381 (grub_jpeg_decode_quan_table): Use sizeof.
16382 (grub_jpeg_decode_du): Use ARRAY_SIZE.
16384 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
16386 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
16387 tables. Ignore non-last ac bit.
16388 (grub_jpeg_decode_quan_table): Likewise.
16390 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16392 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
16393 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
16394 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16395 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
16396 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
16397 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
16399 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16401 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
16404 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16406 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
16408 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16410 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
16413 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16415 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
16418 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16420 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
16423 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16425 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
16427 2010-05-01 Christian Franke <franke@computer.org>
16429 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
16430 Remove broken Cygwin path conversion.
16431 * util/misc.c: [__CYGWIN__] Add include and define.
16432 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
16434 (make_system_path_relative_to_its_root): Simplify loop, replace early
16436 [__CYGWIN__] Add conversion to win32 path.
16437 Include "/" case in trailing slash removal.
16439 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16441 * kern/main.c (grub_load_config): Fix copy-pasted comment.
16442 Reported by: Seth Goldberg
16444 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16446 * commands/help.c (grub_cmd_help): Fix a typo.
16447 Reported by: Seth Goldberg
16449 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16451 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
16453 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
16454 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
16455 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
16456 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
16457 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
16458 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
16459 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
16460 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
16461 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
16462 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
16463 * normal/context.c (GRUB_MOD_INIT): Likewise.
16464 * normal/main.c (GRUB_MOD_INIT): Likewise.
16465 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
16466 * term/serial.c (GRUB_MOD_INIT): Likewise.
16467 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
16469 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16471 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
16474 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16476 * commands/iorw.c: New file.
16477 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
16478 (iorw_mod_SOURCES): New variable.
16479 (iorw_mod_CFLAGS): Likewise.
16480 (iorw_mod_LDFLAGS): Likewise.
16482 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16486 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
16487 * normal/main.c (hotkey_aliases): New variable.
16488 (grub_normal_add_menu_entry): Parse "--hotkey".
16489 * normal/menu_text.c (run_menu): Handle hotkeys.
16491 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16493 * kern/i386/coreboot/init.c (grub_machine_init): Call
16494 grub_machine_mmap_init on qemu.
16496 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16498 * boot/i386/qemu/boot.S: Add a missing .code16.
16500 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16502 Use LBIO on coreboot.
16504 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
16505 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
16506 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
16508 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
16509 grub_machine_mmap_init on coreboot.
16510 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
16511 GRUB_LINUXBIOS_MEMBER_LINK.
16512 (grub_machine_mmap_iterate): Fix declaration.
16513 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
16515 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16517 Split coreboot and multiboot ports.
16519 * conf/i386-multiboot.rmk: New file.
16520 * configure.ac: Add multiboot port.
16521 * include/grub/i386/multiboot/boot.h: New file.
16522 * include/grub/i386/multiboot/console.h: Likewise.
16523 * include/grub/i386/multiboot/init.h: Likewise.
16524 * include/grub/i386/multiboot/kernel.h: Likewise.
16525 * include/grub/i386/multiboot/loader.h: Likewise.
16526 * include/grub/i386/multiboot/memory.h: Likewise.
16527 * include/grub/i386/multiboot/serial.h: Likewise.
16528 * include/grub/i386/multiboot/time.h: Likewise.
16529 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
16530 * loader/multiboot.c: Likewise.
16531 * loader/multiboot_mbi2.c: Likewise.
16532 * util/grub-mkrescue.in: Generate multiboot rescue.
16534 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16536 * kern/parser.c (grub_parser_execute): Cope with read-only config.
16538 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
16540 Merge handling of input and output terminals. Fix a hang.
16542 * commands/terminal.c (abstract_terminal): New struct.
16543 (handle_command): New function. Based on grub_cmd_terminal_input.
16544 (grub_cmd_terminal_input): Use handle_command.
16545 (grub_cmd_terminal_output): Use handle_command.
16547 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
16549 Fix comment handling.
16551 * tests/grub_script_comments.in: New testcase.
16552 * conf/tests.rmk: Rules for new testcase.
16553 * script/yylex.l: Updated flex rules.
16555 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
16557 * docs/grub.texi (play): Document that zero pitches produce rests.
16558 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
16561 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
16563 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
16566 2010-04-26 Christian Franke <franke@computer.org>
16568 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
16569 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
16570 (grub_get_prefix): Remove function.
16571 * util/grub-emu.c (main): Replace grub_get_prefix () call by
16572 make_system_path_relative_to_its_root ().
16573 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16575 2010-04-24 Christian Franke <franke@computer.org>
16577 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
16578 (kernel_img_LDFLAGS): Remove -static-libgcc.
16580 2010-04-24 Christian Franke <franke@computer.org>
16582 * configure.ac: Do not CHECK_BSS_START_SYMBOL
16583 and CHECK_END_SYMBOL if grub-emu is built.
16584 Unset TARGET_OBJ2ELF if grub-emu is built
16585 without module support.
16587 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
16591 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
16592 (grub_fstest_SOURCES): Likewise.
16593 (pkglib_MODULES): Add nilfs2.mod.
16594 (nilfs2_mod_SOURCES): New variable.
16595 (nilfs2_mod_CFLAGS): Likewise.
16596 (nilfs2_mod_LDFLAGS): Likewise.
16597 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16598 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
16599 * fs/nilfs2.c: New file.
16601 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
16603 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
16606 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
16608 Add grub-mkconfig support for NetBSD.
16610 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
16611 * util/grub-mkconfig.in: export new NetBSD specific variables.
16612 * po/POTFILES-shell: added 10_netbsd.in.
16613 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
16615 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
16617 Fix emu build with grub-emu-pci and grub-emu-modules.
16619 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
16621 * include/grub/libpciaccess.h: New file.
16622 * conf/any-emu.rmk: Update kernel headers for emu build.
16624 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16626 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
16628 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16630 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
16632 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16634 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
16635 Retrieve chosen/bootpath if bootpath isn't hardcoded.
16636 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
16637 util/ieee1275/ofpath.c.
16638 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
16639 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
16640 * include/grub/sparc64/ieee1275/boot.h
16641 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
16642 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
16643 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
16644 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
16646 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
16647 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
16648 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
16651 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
16653 * util/grub-mkconfig.in: Corrected two == equality tests.
16654 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
16655 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
16656 expect a number appended to it.
16657 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
16658 expects a number appended to it.
16660 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16662 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
16664 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16666 * util/hostdisk.c (make_device_name): Change to new partition naming.
16668 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16670 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
16672 2010-04-17 Christian Franke <franke@computer.org>
16674 * Makefile.in: Add missing localedir setting.
16676 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
16678 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
16679 mistake in r2156. Noticed by Anthony Fok.
16681 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
16683 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
16685 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
16687 Fix a spurious, uninitialized variable warning.
16689 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
16690 Initialize variable, shdr.
16691 (grub_freebsd_load_elfmodule): Likewise.
16692 (grub_freebsd_load_elf_meta): Likewise.
16694 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
16696 Fix for escaped dollar in double quoted strings.
16698 * script/yylex.l: Updated flex rules.
16699 * conf/tests.rmk: Rule for new testcase.
16700 * tests/grub_script_dollar.in: New testcase.
16702 2010-04-13 Carles Pina i Estany <carles@pina.cat>
16703 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
16705 Enclose all translated strings in grub.cfg in single quotes, and
16706 escape them appropriately (Ubuntu bug #552921).
16708 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
16709 * util/grub.d/10_hurd.in: Use it.
16710 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
16711 * util/grub.d/10_linux.in (linux_entry): Likewise.
16713 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16715 Fix cygwin compilation.
16717 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
16718 * include/grub/misc.h (__register_frame_info)
16719 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
16720 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16721 * kern/misc.c (__register_frame_info)
16722 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
16723 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
16725 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16727 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
16729 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16731 Unify libgcc processing.
16733 * Makefile.in (kernel_img_LDFLAGS): New variable.
16734 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
16735 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
16737 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
16738 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
16739 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
16740 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
16741 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
16742 overwriting. Remove -lgcc and -static-libgcc
16743 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
16744 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16745 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
16746 (kernel_img_LDFLAGS): Append instead of overwriting.
16747 Remove -lgcc and -static-libgcc
16748 * conf/sparc64-ieee1275.rmk: Likewise.
16749 * include/grub/powerpc/libgcc.h: Move to ...
16750 * include/grub/libgcc.h: .. this.
16751 * include/grub/libgcc.h: Don't export most of the function on x86.
16752 (__bswapsi2): New export.
16753 (__bswapdi2): Likewise.
16754 * include/grub/mips/libgcc.h: Removed.
16755 * include/grub/sparc64/libgcc.h: Likewise.
16757 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16759 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
16760 disk_info_msg (conflicts with gettexting into languages with cases).
16762 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
16764 Add grub-probe support for NetBSD.
16766 * util/getroot.c (find_root_device): Convert block device to
16767 character device on NetBSD.
16768 * util/probe.c (probe): Require character device on NetBSD.
16769 * util/hostdisk.c: NetBSD specific headers.
16770 (configure_device_driver): new function to tune device driver
16771 parameters (currently only for NetBSD floppy driver).
16772 (grub_util_biosdisk_open): NetBSD specific code (get disk size
16773 via disklabel ioctl).
16774 (open_device): call configure_device_driver on NetBSD.
16775 (convert_system_partition_to_system_disk): NetBSD specific code.
16776 (device_is_wholedisk): Likewise.
16777 (grub_util_biosdisk_get_grub_dev): Likewise.
16778 (make_device_name): Fixed a typo in bsd_part_str.
16779 * configure.ac: check for opendisk() and getrawpartition() on
16780 NetBSD and set LIBUTIL.
16781 * Makefile.in: add LIBUTIL to LIBS.
16783 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16787 * util/grub-script-check.c: Better help message.
16789 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
16793 * configure.ac: Flex version check.
16794 * conf/common.rmk: Add -Wno-error to sh.mod.
16795 * script/yylex.l: Remove all #pragma.
16797 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16799 * include/grub/util/misc.h (canonicalise_file_name): Add missing
16801 Reported by: Seth Goldberg.
16803 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16805 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
16806 Rename "module" to "module2".
16807 Reported by: Seth Goldberg.
16809 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16811 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
16813 Reported by: Seth Goldberg.
16815 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16817 * lib/posix_wrap/locale.h: Add missing file.
16818 Reported by: Seth Goldberg.
16820 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16822 grub-emu module load support.
16824 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
16825 NO_DYNAMIC_MODULES switched to this.
16826 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
16827 (CFLAGS): Likewise.
16828 * conf/any-emu.rmk: Generate symlist.
16829 (kernel_img_HEADERS): Add util/datetime.h.
16830 (kernel_img_HEADERS) [sdl]: Add sdl.h.
16831 (kernel_img_HEADERS) [libusb]: Add libusb.h.
16832 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
16833 kern/$(target_cpu)/cache.S.
16834 * configure.ac (grub-emu-modules): New option.
16835 * genmk.rb: Handle multiple source lists.
16836 * include/grub/sdl.h: New file.
16837 * include/grub/libusb.h: Likewise.
16838 * util/grub-emu.c (main): Hanle (host) root.
16839 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
16840 GRUB_ERR_UNKNOWN_DEVICE.
16841 * util/misc.c: Move mm functions to ...
16842 * util/mm.c: ... here. All users updated.
16844 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16846 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
16847 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
16849 (maintainer-clean): Remove libgcrypt-grub.
16851 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16853 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
16855 2010-04-09 EFI Coder <eficoder@hotmail.com>
16857 * normal/menu_text.c (print_message): Clean up the message and show
16858 the Fn information when on EFI
16859 * term/efi/console.c (grub_console_checkkey): Add F4 support.
16861 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16863 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
16865 * normal/crypto.c (read_crypto_list): Likewise.
16866 * normal/dyncmd.c (read_command_list): Likewise.
16867 * normal/term.c (read_terminal_list): Likewise.
16868 * normal/main.c (read_lists): Use explicit prefix.
16869 (read_lists_hook): Use read_lists.
16870 (grub_normal_execute): Likewise.
16872 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16874 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
16875 Reported by: Thomas Schmitt.
16876 Add -no-emul-boot to grub-mkisofs parameters.
16878 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16880 * font/font.c: Indented.
16882 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16884 Elif support to GRUB script (by Deepak Vankadaru).
16886 * tests/grub_script_if.in: New testcase.
16887 * conf/tests.rmk: Rule for new testcase.
16888 * script/parser.y: Grammar rules for elif.
16890 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
16892 While and until loops support to GRUB script.
16894 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
16895 (grub_script_create_cmdwhile): New function prototype.
16896 (grub_script_execute_cmdwhile): New function prototype.
16897 * script/execute.c (grub_script_execute_cmdwhile): New function.
16898 * script/parser.y (command): New commands.
16899 (whilecmd): New grammar rule.
16900 (untilcmd): New grammar rule.
16901 * script/script.c (grub_script_create_cmdwhile): New function.
16902 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
16905 * tests/grub_script_while1.in: New testcase.
16906 * conf/tests.rmk: Rule for new testcase.
16908 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16910 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
16913 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
16915 GRUB_BACKGROUND support.
16917 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
16918 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
16920 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16922 Load fonts and modules for gfxmenu in grub-mkconfig.
16923 Idea by: Mario Vazquez
16925 * util/grub.d/00_header.in: Load pf2 and image modules.
16927 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16929 grub-mkconfig multiple terminal support.
16931 * util/grub-mkconfig.in: Handle multiple terminals correctly.
16932 * util/grub.d/00_header.in: Likewise.
16934 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
16936 * Makefile.in: Specify files explicitly instead of using $< and $@ since
16937 we use cd $(srcdir).
16939 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
16941 * util/grub.d/10_linux.in: Only use the first word of
16942 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
16943 spaces in GRUB_DISTRIBUTOR.
16944 * util/grub.d/10_kfreebsd.in: Likewise.
16945 * util/grub.d/10_hurd.in: Likewise.
16947 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
16949 Fix unit testing framework for Qemu 0.12.
16951 * tests/util/grub-shell.in: Remove -serial stdio option.
16953 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16955 POSIX header file wrappers.
16957 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
16959 * lib/posix_wrap/ctype.h: Likewise.
16960 * lib/posix_wrap/errno.h: Likewise.
16961 * lib/posix_wrap/langinfo.h: Likewise.
16962 * lib/posix_wrap/limits.h: Likewise.
16963 * lib/posix_wrap/localcharset.h: Likewise.
16964 * lib/posix_wrap/stdint.h: Likewise.
16965 * lib/posix_wrap/stdio.h: Likewise.
16966 * lib/posix_wrap/stdlib.h: Likewise.
16967 * lib/posix_wrap/string.h: Likewise.
16968 * lib/posix_wrap/sys/types.h: Likewise.
16969 * lib/posix_wrap/unistd.h: Likewise.
16970 * lib/posix_wrap/wchar.h: Likewise.
16971 * lib/posix_wrap/wctype.h: Likewise.
16972 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
16973 (grub_script.yy.h): Likewise.
16974 * script/yylex.l: Remove POSIX emulation #defines.
16975 * Makefile.in (POSIX_CFLAGS): New variable.
16976 (GNULIB_UTIL_CFLAGS): Likewise.
16980 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
16981 (regexp_mod_SOURCES): New variable.
16982 (regexp_mod_CFLAGS): Likewise.
16983 (regexp_mod_LDFLAGS): Likewise.
16984 * commands/regexp.c: New file.
16985 * gnulib/regcomp.c: New file. Imported from gnulib.
16986 * gnulib/regex.c: Likewise.
16987 * gnulib/regex_internal.c: Likewise.
16988 * gnulib/regex_internal.h: Likewise.
16989 * gnulib/regexec.c: Likewise.
16990 * gnulib/regex.h: Likewise.
16992 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16994 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
16995 unsupported video mode types.
16997 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16999 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
17001 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17003 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
17004 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
17006 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
17008 Remove unused grub_vga_get_font.
17010 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
17011 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
17013 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17015 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
17016 * include/grub/misc.h: Likewise.
17018 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17020 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
17021 for which failure is fatal.
17023 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17025 * util/grub-install.in: Use mkdir -p to create grub directory.
17026 * util/i386/efi/grub-install.in: Likewise.
17027 * util/ieee1275/grub-install.in: Likewise.
17029 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17031 * Makefile.in (LEX): new variable.
17033 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
17035 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
17036 `=' and added double quotes on operands of this equality test.
17038 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
17040 * Makefile.in (uninstall): Remove a leftover debug echo.
17041 Reported by: Grégoire Sutre
17043 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
17045 MIPS multiboot2 support.
17047 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
17048 (multiboot2_mod_SOURCES): New variable.
17049 (multiboot2_mod_CFLAGS): Likewise.
17050 (multiboot2_mod_LDFLAGS): Likewise.
17051 (multiboot2_mod_ASFLAGS): Likewise.
17052 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
17054 (MULTIBOOT_ENTRY_REGISTER): Likewise.
17055 (MULTIBOOT_MBI_REGISTER): Likewise.
17056 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
17057 (MULTIBOOT_ELF32_MACHINE): Likewise.
17058 (MULTIBOOT_ELF64_MACHINE): Likewise.
17059 * include/grub/mips/multiboot.h: New file.
17060 * include/grub/video.h (grub_video_driver_id): New type
17061 GRUB_VIDEO_DRIVER_SM712.
17062 (grub_video_get_info_and_fini): Export.
17063 (grub_video_get_palette): Likewise.
17064 (grub_video_get_driver_id): Likewise.
17065 * include/multiboot2.h: Resynced with spec.
17066 * loader/i386/multiboot.c: Moved from here ...
17067 * loader/multiboot.c: ... here. All users updated.
17068 (grub_multiboot_boot): Use platform-specific macros.
17069 * loader/i386/multiboot_elfxx.c: Moved from here ...
17070 * loader/multiboot_elfxx.c: ... here. All users updated.
17071 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
17072 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
17073 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
17075 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17077 Import gnulib argp module.
17079 * gnulib/argp-ba.c: New file.
17080 * gnulib/argp-eexst.c: Likewise.
17081 * gnulib/argp-fmtstream.c: Likewise.
17082 * gnulib/argp-fmtstream.h: Likewise.
17083 * gnulib/argp-fs-xinl.c: Likewise.
17084 * gnulib/argp-help.c: Likewise.
17085 * gnulib/argp-namefrob.h: Likewise.
17086 * gnulib/argp-parse.c: Likewise.
17087 * gnulib/argp-pin.c: Likewise.
17088 * gnulib/argp-pv.c: Likewise.
17089 * gnulib/argp-pvh.c: Likewise.
17090 * gnulib/argp-version-etc.c: Likewise.
17091 * gnulib/argp-version-etc.h: Likewise.
17092 * gnulib/argp-xinl.c: Likewise.
17093 * gnulib/argp.h: Likewise.
17095 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17097 * kern/device.c (grub_device_iterate): Clear errors after failed
17100 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17102 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
17103 returned by firmware.
17105 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17107 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
17108 compilation on coreboot and qemu
17110 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
17112 * include/multiboot2.h: Resync with spec.
17114 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
17116 Multiboot2 tag support
17118 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
17119 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
17120 Remove loader/multiboot_loader.c.
17121 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
17122 (grub_multiboot2_real_boot): Likewise.
17123 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
17124 (grub_get_multiboot_mmap_count): New proto.
17125 (grub_fill_multiboot_mmap): Likewise.
17126 (grub_multiboot_set_video_mode): Likewise.
17127 (grub_multiboot_set_console): Likewise.
17128 (grub_multiboot_load): Likewise.
17129 (grub_multiboot_load_elf): Likewise.
17130 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
17131 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
17132 * include/multiboot.h: Resynced with specification.
17133 * include/multiboot2.h: Resynced with specification.
17134 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
17135 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
17136 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
17137 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
17139 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
17140 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
17141 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
17143 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
17145 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
17146 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
17148 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
17149 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
17150 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
17152 * loader/i386/multiboot_mbi2.c: New file.
17154 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
17156 Resync with gnulib.
17158 * Makefile.in (GNULIB_CFLAGS): New variable.
17159 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
17160 (grub_script_check_CFLAGS): New variable.
17161 * gnulib/alloca.h: Resync with gnulib.
17162 * gnulib/error.c: Likewise.
17163 * gnulib/error.h: Likewise.
17164 * gnulib/fnmatch.c: Likewise.
17165 * gnulib/fnmatch_loop.c: Likewise.
17166 * gnulib/getdelim.c: Likewise.
17167 * gnulib/getline.c: Likewise.
17168 * gnulib/getopt.c: Likewise.
17169 * gnulib/getopt1.c: Likewise.
17170 * gnulib/getopt_int.h: Likewise.
17171 * gnulib/gettext.h: Likewise.
17172 * gnulib/progname.c: Likewise.
17173 * gnulib/progname.h: Likewise.
17175 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
17177 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
17178 which is the case with --disabled-nls.
17180 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
17181 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
17182 * util/misc.c: Likewise.
17183 * util/mkisofs/mkisofs.c: Likewise.
17184 * util/mkisofs/mkisofs.h: Likewise.
17186 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
17188 Simplify Apple CC support.
17190 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
17191 Add 0 byte at the end not to have a symbol with empty target.
17192 * mmap/i386/pc/mmap_helper.S: Likewise.
17193 * genmk.rb: Ignore errors 2030 and 2050.
17194 * kern/i386/pc/startup.S: Use LOCAL when possible.
17196 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
17198 Testcase and the fix for final semicolon on cmdline.
17200 * tests/grub_script_final_semicolon.in: New testcase.
17201 * conf/tests.rmk: Rules for the new testcase.
17202 * script/parser.y: Grammar fix.
17204 2010-03-26 BVK Chaitanya <bvk@localhost>
17206 Blank lines testcase for GRUB script.
17208 * tests/grub_script_blanklines.in: New testcase.
17209 * conf/tests.rmk: Rules for the new testcase.
17211 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17213 Don't use __FILE__.
17215 * genmk.rb: Add -DGRUB_FILE to all C targets.
17216 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
17217 * include/grub/list.h: Likewise.
17218 * include/grub/misc.h: Likewise.
17219 * include/grub/mm.h: Likewise.
17220 * include/grub/test.h: Likewise.
17221 * kern/mm.c: Likewise.
17222 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
17224 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17226 Sunpc partitions support.
17228 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
17229 (grub_fstest_SOURCES): Likewise.
17230 (pkglib_MODULES): Add part_sunpc.mod.
17231 (part_sunpc_mod_SOURCES): New variable.
17232 (part_sunpc_mod_CFLAGS): Likewise.
17233 (part_sunpc_mod_LDFLAGS): Likewise.
17234 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
17235 * partmap/sunpc.c: New file.
17237 2010-03-26 BVK Chaitanya <bvk@localhost>
17239 For loop support to GRUB script.
17241 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
17242 (grub_script_create_cmdfor): New function prototype.
17243 (grub_script_execute_cmdfor): New function prototype.
17244 * script/execute.c (grub_script_execute_cmdfor): New function.
17245 * script/parser.y (command): New for command.
17246 (forcmd): New grammar rule.
17247 * script/script.c (grub_script_create_cmdfor): New function.
17248 * util/grub-script-check.c (grub_script_execute_cmdfor): New
17250 * tests/grub_script_for1.in: New testcase.
17251 * conf/tests.rmk: Rules for new testcase.
17253 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17257 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
17258 'partition' is NULL, grub_partition_get_start already does that.
17259 * commands/loadenv.c (check_blocklists): Likewise.
17260 (write_blocklists): Likewise.
17261 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
17262 (grub_fstest_SOURCES): Likewise.
17263 (pkglib_MODULES): Add part_bsd.mod.
17264 (part_bsd_mod_SOURCES): New variable.
17265 (part_bsd_mod_CFLAGS): Likewise.
17266 (part_bsd_mod_LDFLAGS): Likewise.
17267 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
17268 (grub_emu_SOURCES): Likewise.
17269 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17270 * include/grub/bsdlabel.h: New file.
17271 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
17273 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
17274 (grub_partition_map_list): New variable.
17275 (grub_partition_map_register): Inline.
17276 (grub_partition_map_unregister): Likewise.
17277 (FOR_PARTITION_MAPS): New macro.
17278 (grub_partition_map_iterate): Removed.
17279 (grub_partition_get_start): Handle nested partitions.
17280 * include/grub/msdos_partition.h: Remove bsd-related entries.
17281 (grub_pc_partition): Remove.
17282 * kern/disk.c (grub_disk_close): Free partition data.
17283 (grub_disk_adjust_range): Handle nested partitions.
17284 * kern/partition.c (grub_partition_map_probe): New function.
17285 (grub_partition_probe): Parse name to number, handle subpartitions.
17286 (get_partmap): New function.
17287 (grub_partition_iterate): Handle subpartitions.
17288 (grub_partition_get_name): Likewise.
17289 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
17290 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
17291 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
17292 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
17294 (acorn_partition_map_probe): Remove.
17295 (acorn_partition_map_get_name): Likewise.
17296 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
17298 Set 'index' to 0 since there can be only one partition entry per sector.
17299 (amiga_partition_map_probe): Remove.
17300 (amiga_partition_map_get_name): Likewise.
17301 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
17303 Set 'offset' and 'index' to real positions of partitions.
17304 (apple_partition_map_probe): Remove.
17305 (apple_partition_map_get_name): Likewise.
17306 * partmap/bsdlabel.c: New file.
17307 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
17309 Allocate 'data' so it can be correctly freed.
17310 Set 'index' to offset inside sector.
17311 (gpt_partition_map_probe): Remove.
17312 (gpt_partition_map_get_name): Likewise.
17313 * partmap/msdos.c (grub_partition_parse): Remove.
17314 (pc_partition_map_iterate): Don't force raw access.
17316 Make 'ext_offset' a local variable.
17317 (pc_partition_map_probe): Remove.
17318 (pc_partition_map_get_name): Remove.
17319 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
17321 (sun_partition_map_probe): Remove.
17322 (sun_partition_map_get_name): Likewise.
17323 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
17324 (grub_pcpart_type): Likewise.
17325 * util/hostdisk.c (open_device): Handle new numbering scheme.
17326 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
17327 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
17328 * util/grub-probe.c (probe_partmap): Handle nested paritions.
17329 * util/grub-install.in: Insert all subpartition modules.
17330 * util/ieee1275/grub-install.in: Likewise.
17332 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
17334 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
17337 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
17339 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
17341 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
17343 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
17344 match where 'make install' puts them.
17345 * util/i386/efi/grub-install.in: Likewise.
17347 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
17349 * .bzrignore: Add gentrigtables, grub-script-check,
17350 grub_script_check_init.c, grub_script_check_init.h, and
17353 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
17355 * kern/parser.c: Indented.
17357 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
17359 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
17361 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
17363 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
17364 alpha_mask_size == 0 case.
17366 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
17368 GRUB shell lexer and parser improvements.
17370 * conf/any-emu.rmk: Build rule updates.
17371 * conf/common.rmk: Likewise.
17372 * conf/i386-coreboot.rmk: Likewise.
17373 * conf/i386-efi.rmk: Likewise.
17374 * conf/i386-ieee1275.rmk: Likewise.
17375 * conf/i386-pc.rmk: Likewise.
17376 * conf/powerpc-ieee1275.rmk: Likewise.
17377 * conf/x86_64-efi.rmk: Likewise.
17379 * configure.ac: Configure check for flex.
17381 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
17383 (grub_lexer_param): Struct member updates.
17384 (grub_parser_param): Likewise.
17385 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
17386 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
17387 (grub_script_lexer_init): Prototype update.
17388 (grub_script_lexer_record_start): Likewise.
17389 (grub_script_lexer_record_stop): Likewise.
17390 (grub_script_lexer_yywrap): New function prototype.
17391 (grub_script_lexer_fini): Likewise.
17392 (grub_script_execute_argument_to_string): Removed by...
17393 (grub_script_execute_argument_to_argv): ...better version.
17395 * script/execute.c (ROUND_UPTO): New macro.
17396 (grub_script_execute_cmdline): Out of memory fixes.
17397 (grub_script_execute_menuentry): Likewise.
17398 (grub_script_execute_argument_to_string): Removed. Update all
17400 (grub_script_execute_argument_to_argv): ...better version.
17401 * script/function.c (grub_script_function_create): Use
17402 grub_script_execute_argument_to_argv instead of
17403 grub_script_execute_argument_to_string.
17405 * script/lexer.c (check_varstate): Removed.
17406 (check_textstate): Removed.
17407 (grub_script_lexer_record_start): Likewise.
17408 (grub_script_lexer_record_stop): Likewise.
17409 (recordchar): Replaced with...
17410 (grub_script_lexer_record): ...new function.
17411 (nextchar): Removed.
17412 (grub_script_lexer_init): Rewritten.
17413 (grub_script_yylex): Rewritten.
17414 (append_newline): New function.
17415 (grub_script_lexer_yywrap): New function.
17416 (grub_script_lexer_fini): New function.
17417 (grub_script_yyerror): Sets error flag.
17419 * script/yylex.l: New file.
17420 (grub_lexer_yyfree): Wrapper for flex yyffre.
17421 (grub_lexer_yyalloc): Likewise.
17422 (grub_lexer_yyrealloc): Likewise.
17423 * script/parser.y: Refactored.
17425 * script/script.c (grub_script_arg_add): Out of memory fixes.
17426 (grub_script_add_arglist): Likewise.
17427 (grub_script_create_cmdline): Likewise.
17428 (grub_script_create_cmdmenu): Likewise.
17429 (grub_script_add_cmd): Likewise.
17430 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
17431 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
17434 * tests/grub_script_echo1.in: New testcase.
17435 * tests/grub_script_vars1.in: New testcase.
17436 * tests/grub_script_echo_keywords.in: New testcase.
17438 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17440 Remove some redundancy in build system.
17442 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
17443 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
17444 (TARGET_LDFLAGS): Add -nostdlib.
17445 (TARGET_IMG_LDFLAGS): Likewise.
17446 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
17447 anything since mmap isn't available.
17448 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
17450 (pkglib_MODULES): Remove reboot.mod.
17451 (reboot_mod_SOURCES): Removed.
17452 (reboot_mod_CFLAGS): Likewise.
17453 (reboot_mod_LDFLAGS): Likewise.
17454 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
17455 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
17456 (DEFSYMFILES): Add kernel_syms.lst.
17457 (kernel_img_HEADERS): Add common headers.
17458 (symlist.c): New target.
17459 (kernel_syms.lst): Likewise.
17460 (pkglib_MODULES): Add memdisk.mod.
17461 (memdisk_mod_SOURCES): New variable.
17462 (memdisk_mod_CFLAGS): Likewise.
17463 (memdisk_mod_LDFLAGS): Likewise.
17464 (pkglib_MODULES): Add reboot.mod.
17465 (reboot_mod_SOURCES): New variable.
17466 (reboot_mod_CFLAGS): Likewise.
17467 (reboot_mod_LDFLAGS): Likewise.
17468 (pkglib_MODULES): Add date.mod.
17469 (date_mod_SOURCES): New variable.
17470 (date_mod_CFLAGS): Likewise.
17471 (date_mod_LDFLAGS): Likewise.
17472 (pkglib_MODULES): Add datehook.mod.
17473 (datehook_mod_SOURCES): New variable.
17474 (datehook_mod_CFLAGS): Likewise.
17475 (datehook_mod_LDFLAGS): Likewise.
17476 (pkglib_MODULES): Add lsmmap.mod.
17477 (lsmmap_mod_SOURCES): New variable.
17478 (lsmmap_mod_CFLAGS): Likewise.
17479 (lsmmap_mod_LDFLAGS): Likewise.
17480 (pkglib_MODULES): Add boot.mod.
17481 (boot_mod_SOURCES): New variable.
17482 (boot_mod_CFLAGS): Likewise.
17483 (boot_mod_LDFLAGS): Likewise.
17484 * conf/i386-coreboot.rmk: Removed redundant parts.
17485 * conf/i386-ieee1275.rmk: Likewise.
17486 * conf/i386-pc.rmk: Likewise.
17487 * conf/mips-yeeloong.rmk: Likewise.
17488 * conf/mips.rmk: Likewise.
17489 * conf/powerpc-ieee1275.rmk: Likewise.
17490 * conf/sparc64-ieee1275.rmk: Likewise.
17491 * conf/x86_64-efi.rmk: Likewise.
17492 * conf/i386-coreboot.rmk: Moved qemu parts ..
17493 * conf/i386-qemu.rmk: ... here
17494 * conf/i386-efi.rmk: Moved common parts to...
17495 * conf/x86-efi.rmk: ... here.
17496 * conf/i386.rmk: Added modules common to all x86 variants.
17497 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
17498 * disk/memdisk.c: Remove grub/machine/kernel.h.
17499 * gensymlist.sh.in: Include symbol.h.
17500 * hook/datehook.c: Correct module name.
17501 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
17502 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
17503 * include/grub/i386/efi/serial.h: New file.
17504 * include/grub/x86_64/efi/serial.h: Likewise.
17505 * util/time.c: Likewise.
17506 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
17508 2010-03-14 Colin King <colin.king@ubuntu.com>
17509 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
17511 Shrink the pre-partition-table part of boot.img by eight bytes.
17513 * boot/i386/pc/boot.S (ERR): New macro.
17514 (chs_mode): Use ERR.
17515 (geometry_error): Likewise.
17516 (hd_probe_error): Remove. This is only used once, so we wrwite
17518 (read_error): Instead of printing read_error_string, just set up
17519 %si and fall through to ...
17520 (error_message): ... this new function, also used by ERR.
17522 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
17524 Speed up consecutive hostdisk operations on the same device.
17526 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
17527 (grub_util_biosdisk_open): Initialise disk->data.
17528 (struct linux_partition_cache): New structure.
17529 (linux_find_partition): Cache partition start positions; these are
17530 expensive to compute on every read and write.
17531 (open_device): Cache open file descriptor in disk->data, so that we
17532 don't have to reopen it and flush the buffer cache for consecutive
17533 operations on the same device.
17534 (grub_util_biosdisk_close): New function.
17535 (grub_util_biosdisk_dev): Set `close' member.
17537 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
17538 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
17539 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
17540 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
17541 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
17543 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17545 Compile parts of grub-emu as modules.
17547 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
17548 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
17549 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
17550 (all-local): Add $(GRUB_EMU).
17551 (install-local): Install $(GRUB_EMU).
17552 (uninstall): Uninstall $(GRUB_EMU).
17553 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
17554 * kern/dl.c: Likewise.
17555 * commands/sleep.c: Not include machine/time.h.
17556 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
17557 (COMMON_CFLAGS): Likewise.
17558 (sbin_UTILITIES): Remove grub-emu.
17559 (grub_emu_SOURCES): Removed.
17560 (kernel_img_RELOCATABLE): New variable.
17561 (pkglib_PROGRAMS): Add kernel.img.
17562 (kernel_img_SOURCES): New variable
17563 (kernel_img_CFLAGS): Likewise.
17564 (kernel_img_LDFLAGS): Likewise.
17565 (TARGET_NO_STRIP): Likewise.
17566 (TARGET_NO_DYNAMIC_MODULES): Likewise.
17567 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
17568 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
17569 (grub-emu): New target.
17570 (GRUB_EMU): New variable.
17571 * configure.ac: Whitelist -emu as possible x86_64 architecture.
17572 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
17573 * loader/xnu.c: Likewise.
17574 * include/grub/pci.h: Likewise.
17575 * genemuinit.sh: New file.
17576 * genemuinitheader.sh: Likewise.
17577 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
17578 Support TARGET_NO_DYNAMIC_MODULES.
17579 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
17580 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
17581 * disk/loopback.c: Likewise.
17582 * font/font_cmd.c: Likewise.
17583 * partmap/acorn.c: Likewise.
17584 * partmap/amiga.c: Likewise.
17585 * partmap/apple.c: Likewise.
17586 * partmap/gpt.c: Likewise.
17587 * partmap/msdos.c: Likewise.
17588 * partmap/sun.c: Likewise.
17589 * parttool/msdospart.c: Likewise.
17590 * term/gfxterm.c: Likewise.
17591 * video/bitmap.c: Likewise.
17592 * video/readers/jpeg.c: Likewise.
17593 * video/readers/png.c: Likewise.
17594 * video/readers/tga.c: Likewise.
17595 * video/video.c: Likewise.
17596 * util/grub-emu.c (read_command_list): Removed.
17597 (main): Don't call util_init_nls.
17598 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
17599 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
17601 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17603 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
17604 date.mod, datehook.mod.
17605 (datetime_mod_SOURCES): New variable.
17606 (datetime_mod_CFLAGS): Likewise.
17607 (datetime_mod_LDFLAGS): Likewise.
17608 (date_mod_SOURCES): Likewise.
17609 (date_mod_CFLAGS): Likewise.
17610 (date_mod_LDFLAGS): Likewise.
17611 (datehook_mod_SOURCES): Likewise.
17612 (datehook_mod_CFLAGS): Likewise.
17613 (datehook_mod_LDFLAGS): Likewise.
17614 * conf/sparc64-ieee1275.rmk: Likewise.
17615 * lib/ieee1275/datetime.c: New file.
17617 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17619 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
17620 (ieee1275_fb_mod_SOURCES): New variable.
17621 (ieee1275_fb_mod_CFLAGS): Likewise.
17622 (ieee1275_fb_mod_LDFLAGS): Likewise.
17623 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
17625 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
17626 (HEAP_MAX_ADDR): Likewise.
17627 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
17629 Correct stop condition.
17630 (grub_ieee1275_devices_iterate): New function.
17631 * video/ieee1275.c: New file.
17633 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
17635 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
17637 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
17639 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
17640 SCRATCH_PAD_DISKBOOT as scratch.
17641 (bootit): Pass Openfirmware pointer in %o4.
17642 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
17644 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
17645 with util/grub-mkrawimage.c.
17646 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
17647 * include/grub/aout.h (AOUT_MID_SUN): New definition.
17648 (grub_aout_get_type) [GRUB_UTIL]: Removed.
17649 (grub_aout_load) [GRUB_UTIL]: Likewise.
17650 * include/grub/kernel.h (grub_modules_get_end): New proto.
17651 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
17652 (SCRATCH_PAD_BOOT): New definition.
17653 (SCRATCH_PAD_DISKBOOT): Likewise.
17654 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
17655 * include/grub/sparc64/ieee1275/ieee1275.h
17656 (grub_ieee1275_original_stack): New variable
17657 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17659 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
17660 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
17661 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
17662 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
17663 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
17664 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
17665 (grub_platform_image_format_t): New type.
17666 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
17667 * kern/main.c (grub_modules_get_end)
17668 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
17669 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
17670 (codestart): Switch stacks.
17671 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
17673 (grub_heap_init): Use grub_modules_get_end.
17674 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
17676 * util/grub-mkrawimage.c (generate_image): Support sparc64.
17678 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
17680 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
17682 * util/grub-mkrescue.in: Base ISO UUID on UTC.
17684 2010-03-08 Matt Kraai <kraai@ftbfs.org>
17686 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
17689 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
17691 * genmoddep.awk: Output all missing symbols and not only first.
17693 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17695 * NEWS: Put the date of 1.98 release.
17697 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17699 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
17702 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17704 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
17705 completition in the middle of string.
17707 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17709 * util/grub-mkrescue.in: Use mktemp with explicit template.
17711 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17713 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
17715 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
17717 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
17720 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17722 Fix FreeBSD compilation.
17724 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
17725 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
17727 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
17729 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
17731 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17733 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
17735 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17737 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
17739 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
17741 Support relative image path in theme file.
17743 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
17744 (image_set_property): Handle theme_dir and relative path.
17746 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17748 * configure.ac: Alias amd64 to x86_64.
17750 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17752 * NEWS: mention multiboot on EFI.
17754 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17756 * kern/main.c (grub_load_modules): Handle errors from init functions of
17759 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17761 * normal/autofs.c (autoload_fs_module): Handle errors.
17763 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17765 Disable linux.mod on qemu-mips since it's not functional and leads
17766 to compilation failure.
17768 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
17769 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
17770 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
17771 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
17772 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
17773 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
17774 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
17775 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
17776 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
17777 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
17778 Reported by: BVK Chaitanya
17780 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
17782 * INSTALL: Add gettext as a dependency and add qemu to a new section
17783 "Prerequisites for make-check".
17785 2010-03-04 Christian Franke <franke@computer.org>
17787 * util/grub-pe2elf.c: Add missing include "progname.h".
17789 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17791 * normal/crypto.c (read_crypto_list): Fix a typo.
17792 Reported by: Seth Goldberg.
17794 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17796 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
17797 Reported by: Seth Goldberg.
17799 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17801 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
17804 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17806 * genmk.rb: Remove terminal*.lst in make clean.
17807 Reported by: Seth Goldberg.
17809 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
17811 * util/i386/efi/grub-install.in: Copy gettext files.
17813 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17815 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
17817 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17819 Wait for user entry basing on presence of output rather than on errors.
17821 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
17822 (grub_install_newline_hook): Likewise.
17823 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
17824 * normal/menu.c (show_menu): Check line_counter to determine presence
17826 * normal/term.c (grub_normal_line_counter): New variable.
17827 (grub_normal_get_line_counter): New function.
17828 (grub_install_newline_hook): Likewise.
17830 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17832 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
17834 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
17836 * configure.ac: Update version to 1.98.
17838 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
17840 * util/grub.d/10_linux.in (linux_entry): Don't default to
17841 gfxpayload=keep if Linux doesn't support video handover.
17843 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
17845 Don't compile video modules on yeeloong since video subsystem is part
17848 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
17849 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
17850 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
17851 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
17852 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
17853 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
17854 * include/grub/bitmap_scale.h: Likewise.
17855 * include/grub/bufio.h: Likewise.
17856 * include/grub/font.h: Likewise.
17857 * include/grub/gfxterm.h: Likewise.
17858 * include/grub/video.h: Likewise.
17859 * include/grub/vbe.h: Don't include video_fb.h.
17860 * video/i386/pc/vbe.c: Include video_fb.h.
17861 * commands/i386/pc/vbetest.c: Include video.h.
17863 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
17865 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
17866 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
17867 default entry if GRUB_SAVEDEFAULT=true. This allows using
17868 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
17869 saving a new default on every boot.
17871 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17873 * normal/crypto.c (read_crypto_list): Fix a memory leak.
17874 * normal/term.c (read_terminal_list): Likewise.
17875 * normal/main.c (grub_normal_init_page): Likewise.
17876 (grub_normal_read_line_real): Likewise.
17878 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
17880 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
17882 Reported by: Seth Goldberg.
17884 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
17886 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
17887 duplicate declaration of `start'.
17889 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17891 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
17893 Reported by: Georgy Buranov
17895 2010-02-20 Carles Pina i Estany <carles@pina.cat>
17897 * util/grub-mkrawimage.c (usage): Change string formatting to
17900 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
17902 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
17905 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
17907 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
17908 Reported by: Michael Suchanek.
17910 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
17912 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
17913 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
17915 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
17917 Remove any reference to non-free fonts.
17919 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
17920 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
17921 uses non-free components.
17922 * font/font.c (grub_font_get_name): Remove example name.
17923 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
17924 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
17925 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
17926 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
17928 2010-02-16 Georgy Buranov <gburanov@gmail.com>
17930 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
17932 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
17934 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
17936 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
17938 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
17940 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
17942 * gensymlist.sh.in: Use TARGET_CC instead of CC.
17944 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17946 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
17947 * docs/grub.texi (Command-line and menu entry commands): Document play
17950 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17952 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
17953 parse arguments as inline tempo and notes. Move code for playing notes
17955 (play): ... new function.
17957 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
17959 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
17960 grub_uint16_t instead of short.
17961 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
17962 disk from little endian to cpu endianness.
17964 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
17966 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
17967 GRUB_TICKS_PER_SECOND instead of 120.
17969 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17971 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
17972 escape sequence after \e.
17974 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17976 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
17977 non-ASCII characters.
17979 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17981 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
17982 set root in single quotes to prevent \, from being unescaped.
17984 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17986 Prevent unknown commands from stopping menuentry execution.
17988 * script/execute.c (grub_script_execute_cmdline): Print error after
17991 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17993 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
17994 Reported by: Pavel Pisa.
17996 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
17998 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
18000 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18002 Merge grub_ieee1275_map_physical into grub_map and rename to
18005 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
18006 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
18008 * kern/ieee1275/openfw.c (grub_map): Rename to ...
18009 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
18011 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
18013 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18015 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
18016 opening and not after.
18018 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18020 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
18023 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18025 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
18026 (alloc_phys): Use ALIGN_UP instead of align_addr.
18028 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18030 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
18032 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18034 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
18036 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18038 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
18041 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18043 Fix over-4GiB seek on sparc64.
18045 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
18046 Replace pos_i and pos_lo with pos. All users updated.
18047 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
18049 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
18051 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
18054 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18056 * util/grub-mkrawimage.c (main): Call set_program_name.
18058 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18060 Properly align 64-bit targets.
18062 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
18063 (generate_image): Use ALIGN_ADDR.
18065 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18067 Properly create cross-endian images.
18069 * include/grub/types.h (grub_host_to_target_addr): New macro
18070 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
18072 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
18074 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
18076 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
18078 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
18080 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
18081 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
18082 (grub_linux_boot): Divide by 64K when on VESA.
18084 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
18086 Support GRUB_GFXPAYLOAD_LINUX.
18088 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
18089 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
18091 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
18093 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
18094 to show messages instead of discarding them.
18095 Process errors after executing command and not before. Keep old method
18098 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
18100 * configure.ac: Check for ft2build.h.
18102 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18104 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
18106 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18108 * genkernsyms.sh.in: Use TARGET_CC.
18110 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
18114 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18116 * include/grub/multiboot2.h: Remove leftover file.
18117 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
18118 * include/grub/partition.h [GRUB_UTIL]: Likewise.
18120 2010-02-07 Yves Blusseau <blusseau@zetam.org>
18122 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
18124 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18126 Fix warnings in grub-emu when compiling with maximum warning options.
18128 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
18129 (grub_arch_modules_addr): Return 0 and not NULL.
18130 * util/misc.c (ENABLE_RELOCATABLE): New definition.
18131 (xstrdup): Use newstr instead of dup.
18132 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
18133 of disk to dsk to avoid shadowing.
18134 (find_free_slot): Fix prototype.
18135 * util/getroot.c (grub_util_is_dmraid): Make static.
18136 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
18137 Add missing prototype.
18138 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
18140 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18142 * loader/i386/linux.c (grub_linux_setup_video): Handle error
18145 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18147 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
18150 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18152 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
18153 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
18154 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
18155 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
18156 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
18157 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
18159 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18161 * include/grub/err.h (grub_err_printf): Don't export.
18163 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18165 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
18167 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
18169 * include/grub/i18n.h (grub_gettext_dummy): Removed.
18170 * kern/misc.c (grub_gettext_dummy): Make static.
18172 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18174 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
18176 * kern/term.c (grub_putchar): Likewise.
18178 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18180 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
18181 buggy hook call and memory leak.
18183 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18185 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
18187 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18189 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
18191 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18193 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
18195 Return grub_errno on allocation error.
18197 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18199 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
18201 2010-02-06 Yves Blusseau <blusseau@zetam.org>
18203 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
18204 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
18206 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18208 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
18210 (grub_pxefs_open): Likewise.
18212 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18214 * util/grub.d/10_hurd.in: Add --class information to menuentries.
18215 * util/grub.d/10_kfreebsd.in: Likewise.
18216 * util/grub.d/10_linux.in: Likewise.
18218 2010-02-06 Colin D Bennett <colin@gibibit.com>
18220 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
18221 (gfxmenu_mod_SOURCES): New variable.
18222 (gfxmenu_mod_CFLAGS): Likewise.
18223 (gfxmenu_mod_LDFLAGS): Likewise.
18224 * include/grub/term.h (grub_term_set_current_output): Declare
18226 * docs/gfxmenu-theme-example.txt: New file.
18227 * gfxmenu/gfxmenu.c: Likewise.
18228 * gfxmenu/gui_box.c: Likewise.
18229 * gfxmenu/gui_canvas.c: Likewise.
18230 * gfxmenu/gui_circular_progress.c: Likewise.
18231 * gfxmenu/gui_image.c: Likewise.
18232 * gfxmenu/gui_label.c: Likewise.
18233 * gfxmenu/gui_list.c: Likewise.
18234 * gfxmenu/gui_progress_bar.c: Likewise.
18235 * gfxmenu/gui_string_util.c: Likewise.
18236 * gfxmenu/gui_util.c: Likewise.
18237 * gfxmenu/icon_manager.c: Likewise.
18238 * gfxmenu/model.c: Likewise.
18239 * gfxmenu/named_colors.c: Likewise.
18240 * gfxmenu/theme_loader.c: Likewise.
18241 * gfxmenu/view.c: Likewise.
18242 * gfxmenu/widget-box.c: Likewise.
18243 * include/grub/gfxmenu_model.h: Likewise.
18244 * include/grub/gfxmenu_view.h: Likewise.
18245 * include/grub/gfxwidgets.h: Likewise.
18246 * include/grub/gui.h: Likewise.
18247 * include/grub/gui_string_util.h: Likewise.
18248 * include/grub/icon_manager.h: Likewise.
18250 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18252 Agglomerate scrolling in gfxterm.
18254 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
18255 (grub_virtual_screen_setup): Initialise 'total_screen'.
18256 (write_char): Split to ...
18257 (paint_char): ... this ...
18258 (write_char): ... and this.
18259 (paint_char): Handle delayed scrolling.
18260 (draw_cursor): Likewise.
18261 (scroll_up): Split to ...
18262 (real_scroll): ... this ...
18263 (scroll_up): ... and this.
18264 (real_scroll): Handle multi-line scroll and draw below-the-bottom
18266 (grub_gfxterm_refresh): Call real_scroll.
18268 2010-02-06 Colin D Bennett <colin@gibibit.com>
18270 * include/grub/misc.h (grub_iscntrl): New inline function.
18271 (grub_isalnum): Likewise.
18272 (grub_strtol): Likewise.
18274 2010-02-06 Colin D Bennett <colin@gibibit.com>
18276 * normal/menu_text.c (get_entry_number): Move from here ...
18277 * normal/menu.c (get_entry_number): ... moved here.
18278 * include/grub/menu.h (grub_menu_get_default_entry_index):
18280 * normal/menu.c (grub_menu_get_default_entry_index): New function.
18281 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
18282 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
18283 (grub_menu_viewer_should_return): Likewise.
18284 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
18285 * normal/menu_text.c (run_menu): Enable menu switching.
18286 * normal/menu_viewer.c (should_return): New variable.
18287 (menu_viewer_changed): Likewise.
18288 (grub_menu_viewer_show_menu): Handle menu viewer changes.
18289 (grub_menu_viewer_should_return): New function.
18290 (menuviewer_write_hook): Likewise.
18291 (grub_menu_viewer_init): Likewise.
18293 2010-02-06 Colin D Bennet <colin@gibibit.com>
18294 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18296 Support for gfxterm in a window.
18298 * include/grub/gfxterm.h: New file.
18299 * include/grub/video.h (struct grub_video_rect): New declaration.
18300 (grub_video_rect_t): Likewise.
18301 * term/gfxterm.c (struct grub_gfxterm_window): New type.
18302 (refcount): New variable.
18303 (render_target): Likewise.
18304 (window): Likewise.
18305 (repaint_callback): Likewise.
18306 (grub_virtual_screen_setup): Use 'render_target'.
18307 (init_window): New function.
18308 (grub_gfxterm_init_window): Likewise.
18309 (grub_gfxterm_init): Check reference counter.
18311 (destroy_window): New function.
18312 (grub_gfxterm_destroy_window): Likewise.
18313 (grub_gfxterm_fini): Check reference counter.
18314 Use destroy_window.
18315 (redraw_screen_rect): Restore viewport.
18316 Use 'render_target' and 'window'.
18317 Call 'repaint_callback'.
18318 (write_char): Use 'render_target'.
18319 (draw_cursor): Likewise.
18320 (scroll_up): Restore viewport.
18321 Use 'render_target' and 'window'.
18322 Call 'repaint_callback'.
18323 (grub_gfxterm_cls): Likewise.
18324 (grub_gfxterm_refresh): Use 'window'.
18325 (grub_gfxterm_set_repaint_callback): New function.
18326 (grub_gfxterm_background_image_cmd): Use 'window'.
18327 (grub_gfxterm_get_term): New function.
18328 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
18330 2010-02-06 Colin D Bennett <colin@gibibit.com>
18332 Bitmap scaling support.
18334 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
18335 (bitmap_scale_mod_SOURCES): New variable.
18336 (bitmap_scale_mod_CFLAGS): Likewise.
18337 (bitmap_scale_mod_LDFLAGS): Likewise.
18338 * include/grub/bitmap_scale.h: New file.
18339 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
18340 (background_image_cmd_options): New variable.
18341 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
18342 (cmd): Rename and change type to ...
18343 (background_image_cmd_handle): ... this. All users updated.
18344 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
18345 * video/bitmap_scale.c: New file.
18347 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18351 * Makefile.in (LIBSDL): New variable.
18352 (enable_grub_emu_sdl): Likewise.
18353 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
18354 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
18355 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
18356 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
18357 * util/sdl.c: New file.
18359 2010-02-06 Colin D Bennett <colin@gibibit.com>
18360 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18362 Double buffering support.
18364 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
18365 * include/grub/video.h: Update comment.
18366 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
18368 (grub_video_fb_doublebuf_blit_init): New prototype.
18369 * term/gfxterm.c (scroll_up): Support double buffering.
18370 (grub_gfxterm_refresh): Likewise.
18371 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
18372 (grub_video_fb_doublebuf_blit_init): Likewise.
18373 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
18374 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
18375 'displayed_page', 'render_page' and 'update_screen'.
18376 (grub_video_vbe_fini): Free offscreen buffer.
18377 (doublebuf_pageflipping_commit): New function.
18378 (doublebuf_pageflipping_update_screen): Likewise.
18379 (doublebuf_pageflipping_init): Likewise.
18380 (double_buffering_init): Likewise.
18381 (grub_video_vbe_setup): Enable doublebuffering.
18382 (grub_video_vbe_swap_buffers): Implement.
18383 (grub_video_vbe_set_active_render_target): Handle double buffering.
18384 (grub_video_vbe_get_active_render_target): Likewise.
18385 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
18386 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
18387 (grub_video_vbe_enable_double_buffering): Likewise.
18388 (grub_video_vbe_swap_buffers): Use update_screen.
18389 (grub_video_set_mode): Use double buffering.
18391 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18393 * maintainance/gentrigtables.py: Remove.
18394 * lib/trig.c: Likewise.
18396 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
18398 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
18400 (trigtables.c): New rule.
18401 (gentrigtables): Likewise.
18402 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
18404 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
18406 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
18409 2010-02-06 Colin D Bennet <colin@gibibit.com>
18411 Trigonometry support.
18413 * include/grub/trig.h: New file.
18414 * lib/trig.c: Likewise.
18415 * maintainance/gentrigtables.py: Likewise.
18416 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
18417 (trig_mod_SOURCES): New variable.
18418 (trig_mod_CFLAGS): Likewise.
18419 (trig_mod_LDFLAGS): Likewise.
18421 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18423 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
18426 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
18428 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
18431 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
18433 * util/hostdisk.c (open_device): Don't use partition device when reading
18434 before the partition.
18435 (grub_util_biosdisk_read): Don't read from partition and before the
18436 partition in single operation.
18437 (grub_util_biosdisk_write): Don't write to partition and before the
18438 partition in single operation.
18440 2010-02-03 Torsten Landschoff <torsten@debian.org>
18442 * kern/disk.c (grub_disk_read): Fix offset computation when reading
18445 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
18447 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
18449 (grub_biosdisk_write): Refuse to write to CDROM.
18451 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
18453 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
18455 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
18457 * font/font.c (find_glyph): Check that bmp_idx is available before
18459 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
18460 with (font == NULL).
18462 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
18464 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
18466 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
18468 * include/grub/script_sh.h (sourcecode): Add const qualifier.
18469 * util/grub-script-check.c (getline): Fix empty lines case.
18471 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
18473 * Makefile.in (check): Exit with fail status when one of the tests
18475 * tests/example_functional_test.c (example_test): Fix reversed assert.
18476 * tests/example_unit_test.c (example_test): Likewise.
18478 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
18480 * util/grub.d/10_linux.in: This script does not use any of the
18481 contents of gettext.sh, only the external command `gettext', so stop
18482 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
18483 the same prefix as GRUB.)
18484 * util/grub.d/10_kfreebsd.in: Likewise.
18486 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18488 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
18491 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18493 * kern/disk.c (grub_disk_read): Fix offset computation when reading
18496 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
18498 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
18499 having a 4KiB and not 32KiB buffer size.
18501 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18503 * util/hostfs.c: Include `<errno.h>'.
18504 (grub_hostfs_read): Handle errors from fseeko() and fread().
18506 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18508 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
18509 loop when using read hooks on files whose size isn't sector-aligned.
18511 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18513 Remove unused parameter.
18515 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
18516 (grub_iso9660_open): Remove initialization of `data->length'.
18518 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
18520 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
18521 memleak conditions.
18523 2010-01-27 Carles Pina i Estany <carles@pina.cat>
18525 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
18526 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
18528 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18530 * util/bin2h.c (usage): Fix warning (space after backslash).
18532 2010-01-26 Carles Pina i Estany <carles@pina.cat>
18534 * font/font.c: Include `grub/fontformat.h.
18535 Remove font file format constants.
18536 (grub_font_load): Use the new macros.
18537 * include/grub/fontformat.h: New file.
18538 * util/grub-mkfont.c: Include `grub/fontformat.c'.
18539 (write_font_pf2): Use the new macros.
18541 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18543 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
18546 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
18548 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
18550 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
18551 (_start): Macroify `0x7F'.
18553 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
18554 (make_install_device): Use "(pxe)" as fallback prefix when booting
18557 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
18559 * configure.ac: Reset LIBS after check for libgcc symbols.
18561 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
18563 * util/hostdisk.c (open_device): Add trailing newline to debug
18566 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
18568 * configure.ac: Check for `limits.h'.
18569 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
18571 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
18573 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
18574 capitalize error strings.
18576 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
18578 * util/grub.d/10_hurd.in: Add a recovery mode.
18580 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
18582 * configure.ac: Check for libgcc symbols with -nostdlib.
18584 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
18586 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
18588 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18590 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
18591 stack since heap may be unavailable at that point.
18592 (grub_ofconsole_gotoxy): Likewise.
18594 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18596 * configure.ac: Check for _restgpr_14_x.
18597 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
18598 and _savegpr_* prototypes.
18600 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
18602 Use generic grub_reboot() for i386-efi.
18604 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
18605 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
18606 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
18608 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18610 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
18611 presence of "prefix" variable as it breaks when normal.mod is
18614 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18616 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
18617 stack since heap is unavailable at that point.
18619 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18621 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
18622 (grub_freebsd_bootinfo): Rewritten.
18623 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
18625 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
18627 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
18629 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
18631 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
18634 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
18636 * util/misc.c (make_system_path_relative_to_its_root): Change the work
18637 around for handling "/" to the correct fix. Fix a memory leak. Use
18638 xstrdup instead of strdup.
18640 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18642 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
18644 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18646 Optimise glyph lookup by Basic Multilingual Plane lookup array.
18648 * font/font.c (struct grub_font): New member 'bmp_idx'.
18649 (font_init): Initialise 'bmp_idx'.
18650 (load_font_index): Fill 'bmp_idx'.
18651 (find_glyph): Make inline. Use bmp_idx for BMP characters.
18653 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18655 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
18658 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18660 Move context handling out of the kernel.
18662 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
18663 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
18664 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
18665 * conf/i386-efi.rmk: Likewise.
18666 * conf/i386-ieee1275.rmk: Likewise.
18667 * conf/i386-pc.rmk: Likewise.
18668 * conf/powerpc-ieee1275.rmk: Likewise.
18669 * conf/sparc64-ieee1275.rmk: Likewise.
18670 * conf/x86_64-efi.rmk: Likewise.
18671 * include/grub/env.h: Include grub/menu.h.
18672 (grub_env_var_type): Removed.
18673 (grub_env_var): Replaced field 'type' with 'global'.
18674 (grub_env_find): New prototype.
18675 (grub_env_context_open): Remove EXPORT_FUNC.
18676 (grub_env_context_close): Likewise.
18677 (grub_env_export): Likewise.
18678 (grub_env_set_data_slot): Removed.
18679 (grub_env_get_data_slot): Likewise.
18680 (grub_env_unset_data_slot): Likewise.
18681 (grub_env_unset_menu): New prototype.
18682 (grub_env_set_menu): Likewise.
18683 (grub_env_get_menu): Likewise.
18684 * include/grub/env_private.h: New file.
18685 * include/grub/normal.h (grub_context_init): New prototype.
18686 (grub_context_fini): Likewise.
18687 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
18688 * normal/context.c (grub_cmd_export): ... to here.
18689 * kern/env.c: Include env_private.h.
18690 (HASHSZ): Moved to include/grub/env_private.h.
18691 (grub_env_context): Likewise.
18692 (grub_env_sorted_var): Likewise.
18693 (current_context): Renamed from this ...
18694 (grub_current_context): ...to this. 'static' removed. All users updated.
18695 (grub_env_find): Removed 'static'.
18696 (grub_env_context_open): Moved to normal/context.c.
18697 (grub_env_context_close): Likewise.
18698 (grub_env_export): Likewise.
18699 (mangle_data_slot_name): Removed.
18700 (grub_env_set_data_slot): Likewise.
18701 (grub_env_get_data_slot): Likewise.
18702 (grub_env_unset_data_slot): Likewise.
18703 * kern/main.c (grub_set_root_dev): Don't export root.
18704 It will be done later.
18705 (grub_main): Don't export prefix.
18706 It will be done later.
18707 * normal/context.c: New file.
18708 * normal/main.c (free_menu): Use grub_env_unset_menu.
18709 (grub_normal_add_menu_entry): Use grub_env_get_menu.
18710 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
18711 (GRUB_MOD_INIT(normal)): Call grub_context_init.
18712 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
18714 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18718 * commands/setpci.c: New file.
18719 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
18720 (setpci_mod_SOURCES): New variable.
18721 (setpci_mod_CFLAGS): Likewise.
18722 (setpci_mod_LDFLAGS): Likewise.
18724 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18726 Byte-addressable PCI configuration space.
18728 * bus/pci.c (grub_pci_make_address): Use byte address instead of
18730 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
18731 GRUB_PCI_REG_CACHELINE.
18732 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
18733 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
18734 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
18735 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
18736 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
18737 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
18738 grub_pci_make_address.
18739 (lock_rom_area): Likewise.
18740 * commands/lspci.c (grub_lspci_iter): Use macroses
18741 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
18742 of grub_pci_make_address.
18743 * disk/ata.c (grub_ata_pciinit): Likewise.
18744 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
18745 (GRUB_PCI_REG_VENDOR): Likewise.
18746 (GRUB_PCI_REG_DEVICE): Likewise.
18747 (GRUB_PCI_REG_COMMAND): Likewise.
18748 (GRUB_PCI_REG_STATUS): Likewise.
18749 (GRUB_PCI_REG_REVISION): Likewise.
18750 (GRUB_PCI_REG_CLASS): Likewise.
18751 (GRUB_PCI_REG_CACHELINE): Likewise.
18752 (GRUB_PCI_REG_LAT_TIMER): Likewise.
18753 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
18754 (GRUB_PCI_REG_BIST): Likewise.
18755 (GRUB_PCI_REG_ADDRESSES): Likewise.
18756 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18757 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18758 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18759 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18760 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18761 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
18762 (GRUB_PCI_REG_CIS_POINTER): Likewise.
18763 (GRUB_PCI_REG_SUBVENDOR): Likewise.
18764 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
18765 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
18766 (GRUB_PCI_REG_CAP_POINTER): Likewise.
18767 (GRUB_PCI_REG_IRQ_LINE): Likewise.
18768 (GRUB_PCI_REG_IRQ_PIN): Likewise.
18769 (GRUB_PCI_REG_MIN_GNT): Likewise.
18770 (GRUB_PCI_REG_MAX_LAT): Likewise.
18771 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
18772 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
18773 * video/efi_uga.c (find_framebuf): Likewise.
18774 * video/sm712.c (grub_video_sm712_setup): Likewise.
18775 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
18778 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18780 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
18781 can be reliably determined to be supported.
18783 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18785 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
18786 that VESA is supported.
18787 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
18790 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18792 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
18794 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18796 * util/misc.c (make_system_path_relative_to_its_root): Work around
18797 special-casing of "/", as previous incarnation of this routine did.
18799 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18801 Fix any-emu compilation.
18803 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
18804 * grub_bin2h_SOURCES: New variable.
18806 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18808 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
18810 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
18812 * util/grub.d/00_header.in: Fix handling of locale_dir.
18814 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18816 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
18817 as possible unifont location (Gentoo).
18818 Reported by: Alexander Brüning
18820 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18822 Don't try to generate lists for kernel.img.
18824 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
18825 (pkglib_MODULES): Remove kernel.img.
18826 (kernel_img_EXPORTS): Removed.
18827 (kernel_img_RELOCATABLE): New variable.
18828 * conf/x86_64-efi.rmk: Likewise.
18829 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
18831 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18833 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
18834 grub_xasprintf or grub_snprintf.
18835 (grub_vsprintf): Likewise.
18836 (grub_snprintf): New proto.
18837 (grub_vsnprintf): Likewise.
18838 (grub_xasprintf): Likewise.
18839 (grub_xvasprintf): Likewise.
18840 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
18841 (grub_sprintf): Removed.
18842 (grub_vsnprintf): New function.
18843 (grub_snprintf): Likewise.
18844 (grub_xvasprintf): Likewise.
18845 (grub_xasprintf): Likewise.
18846 (grub_vsprintf): Renamed to ...
18847 (grub_vsnprintf_real): ...this. New argument max_len.
18849 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
18851 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
18852 fix grub-script-check warning.
18854 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18856 * include/grub/font.h (grub_font_load): Fix prototype.
18858 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18860 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
18862 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18864 * include/grub/x86_64/at_keyboard.h: New file.
18866 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18868 * loader/mips/linux.c: Include missing grub/i18n.h.
18870 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18872 * normal/menu.c (notify_execution_failure): Clarify error message.
18874 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18876 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
18877 return value (and revert all return statements). Update users.
18879 2010-01-20 Dan Merillat <debian@dan.merillat.org>
18881 * kern/device.c (grub_device_iterate): Allocate new part_ent
18882 structure based on sizeof (*p) rather than sizeof (p->next), to
18883 account for structure padding.
18885 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
18886 disk is NULL, which might happen for LVM physical volumes with no
18889 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18891 * loader/mips/linux.c (grub_cmd_initrd)
18892 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
18894 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
18896 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
18897 (grub_video_video_init, grub_video_bitmap_init)
18898 (grub_font_manager_init, grub_term_gfxterm_init)
18899 (grub_at_keyboard_init): New extern declarations.
18900 (grub_machine_init): Initialize gfxterm and at_keyboard.
18902 * kern/main.c (grub_main): Revert grub_printf delay kludge.
18904 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
18905 `gfxterm.mod' into core image.
18907 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18908 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18909 (kernel_img_FORMAT): Copy to ...
18911 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18912 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18913 (kernel_img_FORMAT): ... here, and ...
18915 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
18916 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18917 (kernel_img_FORMAT): ... here.
18919 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
18920 and input (at_keyboard) terminals in kernel.
18921 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
18923 (pkglib_MODULES): Remove `pci.mod'.
18924 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
18925 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
18926 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
18927 (at_keyboard_mod_LDFLAGS): Remove variables.
18929 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
18931 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
18933 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
18935 * include/grub/mips/libgcc.h: Only export symbols for functions
18936 that libgcc provides.
18938 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
18942 * bus/bonito.c: New file.
18943 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
18944 GRUB_PCI_NUM_DEVICES.
18945 * term/i386/pc/serial.c: Move to ...
18946 * term/serial.c: ... here. All users updated.
18947 * util/i386/pc/grub-mkimage.c: Move to ...
18948 * util/grub-mkrawimage.c: ... here. All users updated.
18949 * term/i386/pc/at_keyboard.c: Move to ...
18950 * term/at_keyboard.c: ... here. All users updated.
18951 * conf/mips-qemu-mips.rmk: New file.
18952 * conf/mips-yeeloong.rmk: Likewise.
18953 * conf/mips.rmk: Likewise.
18954 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
18956 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
18958 (grub_ata_pciinit): Support CS5536.
18959 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
18960 * font/font_cmd.c (loadfont_command): Open file before passing it to
18962 (pseudo_file_read): New function.
18963 (pseudo_file_close): Likewise.
18964 (pseudo_fs): New structure.
18965 (load_font_module): New function.
18966 (GRUB_MOD_INIT(font_manager)): Load embedded font.
18967 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
18968 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
18969 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
18970 * include/grub/i386/at_keyboard.h: Split into ...
18971 * include/grub/at_keyboard.h: ... this ...
18972 * include/grub/i386/at_keyboard.h: ... and this.
18973 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
18975 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
18977 (grub_elf64_size): Likewise.
18978 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
18980 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
18981 * include/grub/i386/coreboot/serial.h: Rewritten.
18982 * include/grub/i386/ieee1275/serial.h: Include
18983 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
18984 * include/grub/i386/pc/serial.h: Moved from here ...
18985 * include/grub/serial.h: ... to here. All users updated.
18986 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
18987 (GRUB_PCI_NUM_BUS): Likewise.
18988 (GRUB_PCI_NUM_DEVICES): Likewise.
18989 (grub_pci_device_map_range): Add missing volatile keyword.
18990 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
18991 * include/grub/mips/at_keyboard.h: New file.
18992 * include/grub/mips/cache.h: Likewise.
18993 * include/grub/mips/io.h: Likewise.
18994 * include/grub/mips/kernel.h: Likewise.
18995 * include/grub/mips/libgcc.h: Likewise.
18996 * include/grub/mips/pci.h: Likewise.
18997 * include/grub/mips/qemu-mips/boot.h: Likewise.
18998 * include/grub/mips/qemu-mips/kernel.h: Likewise.
18999 * include/grub/mips/qemu-mips/loader.h: Likewise.
19000 * include/grub/mips/qemu-mips/memory.h: Likewise.
19001 * include/grub/mips/qemu-mips/serial.h: Likewise.
19002 * include/grub/mips/qemu-mips/time.h: Likewise.
19003 * include/grub/mips/relocator.h: Likewise.
19004 * include/grub/mips/time.h: Likewise.
19005 * include/grub/mips/types.h: Likewise.
19006 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
19007 * include/grub/mips/yeeloong/boot.h: Likewise.
19008 * include/grub/mips/yeeloong/kernel.h: Likewise.
19009 * include/grub/mips/yeeloong/loader.h: Likewise.
19010 * include/grub/mips/yeeloong/memory.h: Likewise.
19011 * include/grub/mips/yeeloong/pci.h: Likewise.
19012 * include/grub/mips/yeeloong/serial.h: Likewise.
19013 * include/grub/mips/yeeloong/time.h: Likewise.
19014 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
19015 * kern/elf.c (grub_elf32_size): New parameter. All users
19017 (grub_elf64_size): Likewise.
19018 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
19019 Load modules before saying "Welcome to GRUB!".
19020 Call grub_refresh after saying "Welcome to GRUB!".
19021 * kern/mips/cache.S: New file.
19022 * kern/mips/cache_flush.S: Likewise.
19023 * kern/mips/dl.c: Likewise.
19024 * kern/mips/init.c: Likewise.
19025 * kern/mips/qemu-mips/init.c: Likewise.
19026 * kern/mips/startup.S: Likewise.
19027 * kern/mips/yeeloong/init.c: Likewise.
19028 * kern/term.c (grub_putcode): Handle NULL terminal.
19029 (grub_getcharwidth): Likewise.
19030 (grub_getkey): Likewise.
19031 (grub_checkkey): Likewise.
19032 (grub_getkeystatus): Likewise.
19033 (grub_getxy): Likewise.
19034 (grub_getwh): Likewise.
19035 (grub_gotoxy): Likewise.
19036 (grub_cls): Likewise.
19037 (grub_setcolorstate): Likewise.
19038 (grub_setcolor): Likewise.
19039 (grub_getcolor): Likewise.
19040 (grub_refresh): Likewise.
19041 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
19042 (write_jump): Add hatch nop.
19043 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
19044 * lib/mips/setjmp.S: New file.
19045 * loader/mips/linux.c: Likewise.
19046 * term/i386/pc/at_keyboard.c: Move from here ...
19047 * term/at_keyboard.c: ... to here.
19048 * term/i386/pc/serial.c: Moved from here ...
19049 * term/serial.c: ... to here. All users updated.
19050 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
19051 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
19052 (serial_translate_key_sequence): Avoid deadlock.
19053 (grub_serial_getkey): Handle backspace.
19054 (grub_serial_putchar): Fix newline handling.
19055 * util/i386/pc/grub-mkimage.c: Move from here ...
19056 * util/grub-mkrawimage.c: ... to here. All users updated.
19057 (generate_image): New parameters 'font_path' and 'format'.
19058 Support embedding font.
19059 Use grub_host_to_target* instead of grub_cpu_to_le*.
19060 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
19061 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
19062 (options): New option "--font".
19064 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
19065 (main): Handle "--font".
19066 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
19067 (grub_virtual_screen_setup): Set bg_color_display.
19068 (redraw_screen_rect): Use bg_color_display instead of incorrect
19070 (grub_gfxterm_cls): Likewise.
19071 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
19072 Support embedding config file.
19073 (add_segments): Likewise.
19074 (options): New option "--config".
19075 (main): Handle "--config".
19076 * video/sm712.c: New file.
19078 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19080 Fix parallel builds.
19082 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
19083 font.c depend on ascii.h).
19085 2010-01-12 Carles Pina i Estany <carles@pina.cat>
19087 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
19089 2010-01-11 Carles Pina i Estany <carles@pina.cat>
19091 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
19092 By default: disabled.
19093 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
19096 2010-01-10 Carles Pina i Estany <carles@pina.cat>
19098 * font/font.c: Update copyright years.
19099 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
19101 2010-01-10 Carles Pina i Estany <carles@pina.cat>
19103 * font/font.c: Include `ascii.h'.
19104 (ASCII_BITMAP_SIZE): New macro.
19105 (ascii_font_glyph): Define.
19106 (ascii_glyph_lookup): New function.
19107 (grub_font_get_string_width): Change comment. If glyph not found, use
19108 ascii_glyph_lookup.
19109 (grub_font_get_glyph_with_fallback): If glyph not available returns
19110 ascii_glyph_lookup.
19111 * util/grub-mkfont.c (file_formats): New enum.
19112 (options): Add `ascii-bitmaps' new option.
19113 (usage): Add `asii-bitmaps' new option.
19114 (write_font_ascii_bitmap): New function.
19115 (write_font): Rename to ...
19116 (write_font_p2): ... this. Remove print_glyphs call.
19117 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
19118 used. Call print_glyphs.
19119 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
19121 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
19123 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
19124 (grub_bin2h_SOURCES): New variable.
19125 * util/bin2h.c: New file.
19127 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
19129 * include/multiboot.h: Resynced with spec.
19130 * include/multiboot2.h: Likewise.
19131 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
19132 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
19134 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19136 * include/grub/term.h (grub_term_register_input,
19137 grub_term_register_output): Check return of terminal init()
19138 routines, and abort if errors are raised.
19140 * commands/terminal.c: Update copyright year.
19142 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19144 * commands/terminal.c (grub_cmd_terminal_input)
19145 (grub_cmd_terminal_output): Check return of terminal init()
19146 routines, and abort if errors are raised.
19148 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
19150 * include/grub/i386/bsd.h: Fix include pathes.
19152 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
19154 Add missing *BSD copyright headers.
19156 * include/grub/aout.h: Add BSD licence.
19157 * include/grub/i386/bsd.h: Parts under different licences moved to ...
19158 * include/grub/i386/freebsd_linker.h: ... here,
19159 * include/grub/i386/freebsd_reboot.h: ... here,
19160 * include/grub/i386/netbsd_bootinfo.h: ... here,
19161 * include/grub/i386/netbsd_reboot.h: ... here,
19162 * include/grub/i386/openbsd_bootarg.h: ... here,
19163 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
19164 licence to each file.
19166 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19168 * acinclude.m4: Remove `nop' assembly instruction; it's not
19169 implemented by all architectures.
19171 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19173 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
19174 ELILO. This is no longer necessary.
19176 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
19178 Added new tool, grub-scrit-check to verify grub.cfg syntax.
19180 * util/grub-script-check.c: grub-script-check tool.
19181 * conf/common.rmk: Make rules for grub-script-check.
19183 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19185 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
19186 spotting it back in 2008. Shame on me for forgetting he did.
19188 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
19190 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
19192 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
19193 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
19194 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
19195 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
19196 (GRUB_VIDEO_TYPE_EFI): Rename to ...
19197 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
19199 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
19201 * include/grub/test.h: Add license header.
19202 * tests/example_functional_test.c: Likewise.
19203 * tests/example_unit_test.c: Likewise.
19204 * tests/lib/functional_test.c: Likewise.
19205 * tests/lib/test.c: Likewise.
19206 * tests/lib/unit_test.c: Likewise.
19208 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
19210 Use flag-based instead of hook-based video mode selection and "auto"
19213 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
19214 (grub_video_set_mode): Changed prototype. All users updated.
19215 (grub_video_check_mode_flag): New inline function.
19216 * video/video.c (parse_modespec): New function.
19217 (grub_video_set_mode): Parse flags and keywords.
19219 2010-01-17 Carles Pina i Estany <carles@pina.cat>
19221 * util/misc.c (grub_util_info): Fix the order of the parameters in a
19224 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
19226 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
19228 2010-01-16 Carles Pina i Estany <carles@pina.cat>
19230 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
19232 * util/grub-emu.c (usage): Likewise.
19233 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
19234 * util/i386/efi/grub-mkimage.c (usage): Likewise.
19235 * util/i386/pc/grub-mkimage.c (usage): Likewise.
19236 * util/i386/pc/grub-setup.c (usage): Likewise.
19238 2010-01-16 Carles Pina i Estany <carles@pina.cat>
19240 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
19242 (grub_util_info): Likewise.
19243 (grub_util_error): Likewise.
19244 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
19245 and/or new lines in `grub_util_warna', `grub_util_info',
19246 `grub_util_error' calls.
19247 * util/getroot.c: Likewise.
19248 * util/grub-editenv.c: Likewise.
19249 * util/grub-emu.c: Likewise.
19250 * util/grub-fstest.c: Likewise.
19251 * util/grub-mkdevicemap.c: Likewise.
19252 * util/grub-mkfont.c: Likewise.
19253 * util/grub-mkpasswd-pbkdf2.c: Likewise.
19254 * util/grub-mkrelpath.c: Likewise.
19255 * util/grub-pe2elf.c: Likewise.
19256 * util/grub-probe.c: Likewise.
19257 * util/hostdisk.c: Likewise.
19258 * util/i386/efi/grub-mkimage.c: Likewise.
19259 * util/i386/pc/grub-mkimage.c: Likewise.
19260 * util/i386/pc/grub-setup.c: Likewise.
19261 * util/ieee1275/ofpath.c: Likewise.
19262 * util/mkisofs/eltorito.c: Likewise.
19263 * util/mkisofs/rock.c: Likewise.
19264 * util/mkisofs/write.c: Likewise.
19265 * util/raid.c: Likewise.
19266 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
19267 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19269 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19271 Enable multiboot on non-pc.
19273 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
19274 multiboot.mod and multiboot2.mod to ...
19275 * conf/i386.rmk (pkglib_MODULES): ... here.
19276 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
19278 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
19279 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
19281 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
19282 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
19284 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
19285 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
19287 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
19288 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
19290 (ata_mod_SOURCES): Removed.
19291 (ata_mod_CFLAGS): Likewise.
19292 (ata_mod_LDFLAGS): Likewise.
19293 (relocator_mod_SOURCES): Removed.
19294 (relocator_mod_CFLAGS): Likewise.
19295 (relocator_mod_ASFLAGS): Likewise.
19296 (relocator_mod_LDFLAGS): Likewise.
19298 * include/grub/x86_64/multiboot.h: New file.
19299 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
19302 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19304 Video multiboot support.
19306 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
19308 * include/multiboot.h: Resynced with multiboot specification.
19309 * include/multiboot2.h: Likewise.
19310 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
19311 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
19312 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
19313 (HAS_VGA_TEXT): Likewise.
19314 (accepts_video): New variable.
19315 (grub_multiboot_set_accepts_video): New function.
19316 (grub_multiboot_get_mbi_size): Account for video structures.
19317 (set_video_mode): New function.
19318 (retrieve_video_parameters): Likewise.
19319 (grub_multiboot_make_mbi): Fill video fields.
19321 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
19325 * include/grub/video.h (grub_video_driver_id): New type.
19326 (grub_video_adapter): New member 'id'. All users updated.
19327 (grub_video_get_driver_id): New proto.
19328 * video/video.c (grub_video_get_driver_id): New function.
19330 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19332 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
19335 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19337 * normal/cmdline.c (print_completion): Gettextizze.
19339 2001-01-14 Carles Pina i Estany <carles@pina.cat>
19341 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
19343 2010-01-14 Carles Pina i Estany <carles@pina.cat>
19345 * gettext/gettext.c (grub_gettext_translate): Push and pop
19347 (grub_gettext_delete_list): Change comment style.
19348 * kern/err.c (grub_error): Gettextizze.
19349 (grub_fatal): Gettextizze.
19351 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
19353 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
19354 (grub_linux16_real_boot): ... this.
19355 * kern/i386/loader.S: Likewise.
19356 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
19357 (grub_linux16_boot): New function. Switches to text mode and calls
19358 grub_linux16_real_boot().
19360 * loader/i386/bsd.c: Include `<grub/video.h>'.
19361 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
19362 text mode before calling grub_unix_real_boot().
19364 * loader/i386/multiboot.c: Include `<grub/video.h>'.
19365 (grub_multiboot_boot): Switch to text mode before calling
19366 grub_relocator32_boot().
19368 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
19369 (grub_chainloader_boot): Switch to text mode before calling
19370 grub_chainloader_real_boot().
19372 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19373 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19375 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
19378 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19379 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19381 * util/grub.d/00_header.in: Define a "savedefault" function for use
19383 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
19385 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
19386 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19388 * util/grub-mkconfig_lib.in (save_default_entry): Only set
19389 saved_entry if boot_once is unset.
19390 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
19391 previous saved entry (i.e. grub-reboot).
19393 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19395 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
19397 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19399 * util/grub.d/00_header.in: Use `set var=val' rather than plain
19401 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
19403 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19405 * util/grub-reboot.in: Fix --version output.
19406 * util/grub-set-default.in: Likewise.
19408 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19410 * util/grub.d/00_header.in: Silently ignore zero-sized environment
19413 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19415 * util/grub.d/00_header.in: Quote the value assigned to `default',
19416 in case it contains spaces.
19418 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
19420 * util/grub.d/30_os-prober.in: Fix merge error that moved a
19421 `save_default_entry' call from the macosx case to the linux case.
19423 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
19424 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
19426 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
19427 in `chosen' environment variable.
19428 * normal/menu_text.c (get_entry_number): Check if the variable
19429 matches the title of a menu entry.
19430 (run_menu): Pass menu to get_entry_number.
19432 * util/grub-reboot.in: New file.
19433 * util/grub-set-default.in: New file.
19434 * conf/common.rmk (grub-reboot): New utility.
19435 (grub-set-default): New utility.
19437 * util/grub-mkconfig_lib.in (save_default_entry): New function.
19438 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
19439 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
19440 move it to `saved_entry' for the next boot. Load environment on
19442 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
19443 * util/grub.d/10_hurd.in: Likewise.
19444 * util/grub.d/10_linux.in (linux_entry): Likewise.
19445 * util/grub.d/10_windows.in: Likewise.
19446 * util/grub.d/30_os-prober.in: Likewise.
19448 * util/grub-install.in: Create environment block.
19449 * util/i386/efi/grub-install.in: Likewise.
19450 * util/ieee1275/grub-install.in: Likewise.
19451 * util/sparc64/ieee1275/grub-install.in: Likewise.
19453 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
19455 Unit testing framework for GRUB.
19457 * Makefile.in: Test framework build rules for 'make check'.
19458 * conf/tests.rmk: Build rules for individual tests and framework.
19460 * include/grub/test.h: Header file for whitebox tests.
19461 * tests/lib/functional_test.c: Framework support for whitebox
19463 * tests/lib/test.c: Common whitebox testing code for unit and
19465 * tests/lib/unit_test.c: Framework support for whitebox unit
19468 * tests/util/grub-shell-tester.in: Support utility for grub-script
19470 * tests/util/grub-shell.in: Utility to execute grub-script
19471 commands in a Qemu instance.
19473 * tests/example_functional_test.c: Example whitebox functional
19475 * tests/example_grub_script_test.in: Example grub-script test.
19476 * tests/example_scripted_test.in: Example scripted test.
19477 * tests/example_unit_test.c: Example whitebox unit test.
19479 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
19481 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
19482 Add loader/i386/multiboot_mbi.c.
19483 (multiboot2_mod_SOURCES): Likewise.
19484 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
19485 (multiboot2_mod_SOURCES): Likewise.
19486 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
19487 (grub_multiboot_make_mbi): Likewise.
19488 (grub_multiboot_free_mbi): Likewise.
19489 (grub_multiboot_init_mbi): Likewise.
19490 (grub_multiboot_add_module): Likewise.
19491 (grub_multiboot_set_bootdev): Likewise.
19492 * loader/i386/multiboot.c (mbi): Removed.
19493 (mbi_dest): Likewise.
19494 (alloc_mbi): New variable.
19495 (grub_multiboot_payload_size): Removed. All users updated.
19496 (grub_multiboot_pure_size): New variable.
19497 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
19498 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
19499 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
19500 (grub_fill_multiboot_mmap): Likewise.
19501 (grub_multiboot_get_bootdev): Likewise.
19502 (grub_multiboot): Use multiboot_mbi functions.
19503 * loader/i386/multiboot_mbi.c: New file.
19505 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19507 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
19508 it would result in module crash.
19510 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
19512 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
19513 (grub_ofconsole_getwh): Split to ...
19514 (grub_ofconsole_getwh): ... this.
19515 (grub_ofconsole_dimensions): ...and this.
19516 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
19518 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
19520 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
19522 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19524 * loader/i386/pc/multiboot2.c: Removed stalled file.
19526 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
19528 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
19529 Reported by: Grégoire Sutre
19531 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
19533 * util/misc.c (canonicalize_file_name): New function.
19534 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
19535 instead of realpath().
19537 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
19539 * util/grub-install.in (usage): Clarify meaning of --root-directory,
19540 and make it clearer that it's optional. Based on confusion
19543 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19545 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
19546 in premature implicit newline.
19548 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
19550 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
19551 which resulted in garbled command line at the end of screen.
19553 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19555 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
19556 initialization with similar approach as with other Linux loaders.
19558 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19560 Fix i386-ieee1275 build.
19562 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
19563 and grub_term_height() for video_{width,height} initialization.
19565 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
19567 Fix grub-emu build.
19569 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
19571 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19572 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19574 Support for multiple terminals.
19576 * Makefile.in (pkglib_DATA): terminal.lst.
19577 (terminal.lst): New target.
19578 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
19579 (GRUB_MOD_INIT(handler)): Likewise.
19580 (GRUB_MOD_FINI(handler)): Likewise.
19581 * commands/help.c (grub_cmd_help): Handle multiple terminals.
19582 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
19583 * commands/sleep.c (do_print): Use grub_term_restore_pos.
19584 (grub_cmd_sleep): Use grub_term_save_pos.
19585 * commands/terminal.c: New file.
19586 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
19587 commands/terminal.c and lib/charset.c.
19588 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
19589 (pkglib_MODULES): Add terminal.mod.
19590 (terminal_mod_SOURCES): New variable.
19591 (terminal_mod_CFLAGS): Likewise.
19592 (terminal_mod_LDFLAGS): Likewise.
19593 * genhandlerlist.sh: Don't handle terminals.
19594 * genmk.rb: Generate terminal-*.lst.
19595 * genterminallist.sh: New file.
19596 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
19597 (grub_is_valid_utf8): Likewise.
19598 (grub_utf8_to_ucs4_alloc): Likewise.
19599 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
19600 (grub_menu_register_viewer): Changed argument.
19601 (grub_menu_try_text): New proto.
19602 (grub_gfxmenu_try_hook): New declaration.
19603 * include/grub/normal.h (grub_normal_exit_level): New declaration.
19604 (grub_menu_init_page): Additional argument term.
19605 (grub_normal_init_page): Likewise.
19606 (grub_cmdline_get): Arguments simplified.
19607 (grub_utf8_to_ucs4_alloc): Removed.
19608 (grub_print_ucs4): Additional argument term.
19609 (grub_getstringwidth): Likewise.
19610 (grub_print_message_indented): Likewise.
19611 (grub_menu_text_register_instances): New proto.
19612 (grub_show_menu): Likewise.
19613 (read_terminal_list): Likewise.
19614 (grub_set_more): Likewise.
19615 * include/grub/parser.h: Include handler.h.
19616 * include/grub/reader.h: Rewritten.
19617 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
19618 (GRUB_TERM_WIDTH): Changed to function.
19619 (GRUB_TERM_HEIGHT): Likewise.
19620 (GRUB_TERM_BORDER_WIDTH): Likewise.
19621 (GRUB_TERM_BORDER_HEIGHT): Likewise.
19622 (GRUB_TERM_NUM_ENTRIES): Likewise.
19623 (GRUB_TERM_ENTRY_WIDTH): Likewise.
19624 (GRUB_TERM_CURSOR_X): Likewise.
19625 (grub_term_input_class): Likewise.
19626 (grub_term_output_class): Likewise.
19627 (grub_term_outputs_disabled): New declaration.
19628 (grub_term_inputs_disabled): Likewise.
19629 (grub_term_outputs): Likewise.
19630 (grub_term_inputs): Likewise.
19631 (grub_term_register_input): Rewritten.
19632 (grub_term_register_output): Likewise.
19633 (grub_term_unregister_input): Likewise.
19634 (grub_term_unregister_output): Likewise.
19635 (FOR_ACTIVE_TERM_INPUTS): New macro.
19636 (FOR_DISABLED_TERM_INPUTS): Likewise.
19637 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19638 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19639 * include/grub/terminfo.h: Add oterm argument to all protypes.
19640 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
19641 Use grub_rescue_run.
19642 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
19644 * kern/reader.c: Removed. All users updated.
19645 * kern/rescue_reader.c (grub_rescue_init): Removed.
19646 (grub_rescue_reader): Likewise.
19647 (grub_register_rescue_reader): Likewise.
19648 (grub_rescue_run): New function based on kern/reader.c.
19649 * kern/term.c: Adapted for multiterm.
19650 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
19651 (grub_is_valid_utf8): Likewise.
19652 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
19653 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
19655 * loader/i386/linux.c (grub_linux_boot): Likewise.
19656 * normal/auth.c (grub_username_get): New function.
19657 (grub_auth_check_authentication): Use grub_username_get.
19658 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
19659 * normal/color.c: Adapt for multiterm.
19660 * normal/main.c (read_config_file): Don't use grub_reader_loop.
19661 (grub_normal_init_page): Additional argument term.
19662 (read_lists): Call read_terminal_lists.
19663 (grub_enter_normal_mode): Call grub_cmdline_run.
19664 Handle grub_normal_exit_level.
19665 (grub_cmd_normal): Make reentrant.
19666 (grub_cmd_normal_exit): New function.
19667 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
19668 * normal/menu.c: Adapt for multiterm.
19669 * normal/menu_entry.c: Likewise.
19670 * normal/menu_text.c: Likewise.
19671 * normal/menu_viewer.c: Removed. All users updated.
19672 * normal/term.c: New file.
19673 * util/console.c: Change order of includes to workaround a bug in
19675 * term/terminfo.c: New argument oterm on all exported functions.
19677 * util/grub-editenv.c (grub_term_input_class): Removed.
19678 (grub_term_output_class): Likewise.
19680 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
19682 Make loader output a bit more user-friendly.
19684 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
19685 is being loaded. Likewise for the Hurd.
19687 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
19688 that kernel of FreeBSD ${version} is being loaded.
19690 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
19692 (grub_cmd_initrd): Likewise.
19693 * util/grub.d/10_linux.in (linux_entry): Print message indicating
19694 that Linux ${version} is being loaded. Likewise for initrd.
19696 2010-01-09 Carles Pina i Estany <carles@pina.cat>
19698 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
19700 2010-01-08 Carles Pina i Estany <carles@pina.cat>
19702 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
19703 (GRUB_MOD_INIT): Gettextizze.
19704 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
19705 (GRUB_MOD_INIT): Gettextizze.
19706 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
19707 (grub_cmd_linux): Capitalise Linux.
19708 (GRUB_MOD_INIT): Gettextizze.
19709 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
19710 (grub_cmd_linux): Capitalise Linux.
19711 (GRUB_MOD_INIT): Gettextizze.
19712 * loader/i386/linux.c: Include `<grub/i18n.h>'.
19713 (grub_cmd_linux): Capitalise Linux.
19714 (GRUB_MOD_INIT): Gettextizze.
19715 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
19716 (GRUB_MOD_INIT): Gettextizze.
19717 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
19718 (grub_cmd_linux): Capitalise Linux.
19719 (GRUB_MOD_INIT): Gettextizze.
19720 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
19721 (grub_cpu_xnu_init): Gettextizze.
19722 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
19723 (GRUB_MOD_INIT): Gettextizze.
19724 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
19725 (GRUB_MOD_INIT): Gettextizze.
19726 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
19727 (grub_linux_load64): Capitalise Linux.
19728 (GRUB_MOD_INIT): Gettextizze.
19729 * loader/xnu.c: Include `<grub/i18n.h>'.
19730 (GRUB_MOD_INIT): Gettextizze.
19731 * po/POTFILES: Add `loader/efi/appleloader.c',
19732 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
19733 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
19734 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
19735 `loader/i386/xnu.c', `loader/multiboot_loader.c',
19736 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
19737 and `loader/xnu.c'.
19739 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19741 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
19743 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
19745 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
19746 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
19747 * util/mkisofs/mkisofs.c (main): Readjust --version output.
19749 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19751 Reset Multiboot 2 support. New loader implements the draft in
19752 /branches/multiboot2 and shares as much code as possible with the
19753 production Multiboot 1 implementation.
19755 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
19756 * loader/multiboot2.c: Likewise.
19757 * loader/i386/multiboot_helper.S: Likewise.
19758 * include/multiboot2.h: Replace with latest version from the draft
19759 in /branches/multiboot2.
19761 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
19762 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
19763 and `loader/multiboot2.c'.
19764 (pkglib_MODULES): Add `multiboot2.mod'.
19765 (multiboot2_mod_SOURCES): New variable.
19766 (multiboot2_mod_LDFLAGS): Likewise.
19767 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
19769 * conf/i386-pc.rmk: Likewise.
19771 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
19772 (multiboot_mod_SOURCES): Remove variable.
19773 (multiboot_mod_LDFLAGS): Likewise.
19774 (multiboot_mod_CFLAGS): Likewise.
19776 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
19777 `<multiboot2.h>' instead of `<multiboot.h>'.
19778 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
19779 (MULTIBOOT_HEADER_MAGIC): New macros.
19781 * loader/multiboot_loader.c (module_version_status): Remove variable.
19782 (find_multi_boot2_header): Remove function.
19783 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
19784 logic. Always check for the Multiboot version we're compiling for.
19785 (grub_cmd_module_loader): Likewise.
19786 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
19787 command instead of `multiboot'.
19789 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19791 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
19792 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
19795 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19796 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19798 Fix breakage introduced with previous commit.
19800 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
19802 * normal/handler.c (read_handler_list): Revert part of previous commit
19803 affecting this file.
19804 * normal/main.c (read_lists): Move read_handler_list() call back to ...
19805 (grub_normal_execute): ... here.
19807 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
19809 Merge prefix-redefinition-fix branch.
19811 * normal/autofs.c (read_fs_list): Make function capable of being
19812 run multiple times, gracefuly replacing the previous data
19814 * normal/dyncmd.c (read_command_list): Likewise.
19815 * normal/handler.c (read_handler_list): Likewise.
19816 * normal/main.c (read_lists): New function. Calls all the
19817 list reading functions.
19818 (grub_normal_execute): Use read_lists() instead of calling all
19819 list reading functions explicitly. Register read_lists() as a
19820 variable hook attached to ${prefix}.
19822 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
19824 Merge crypto branch.
19826 * Makefile.in (pkglib_DATA): Add crypto.lst.
19827 (crypto.lst): New target.
19828 * commands/hashsum.c: New file.
19829 * commands/password.c (check_password): Use grub_crypto_memcmp.
19830 * commands/password_pbkdf2.c: New file.
19831 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
19832 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
19833 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
19834 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
19835 -I$(srcdir)/lib/libgcrypt_wrap.
19836 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
19837 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
19838 password_pbkdf2.mod.
19839 (crypto_mod_SOURCES): New variable.
19840 (crypto_mod_CFLAGS): Likewise.
19841 (crypto_mod_LDFLAGS): Likewise.
19842 (hashsum_mod_SOURCES): New variable.
19843 (hashsum_mod_CFLAGS): Likewise.
19844 (hashsum_mod_LDFLAGS): Likewise.
19845 (pbkdf2_mod_SOURCES): New variable.
19846 (pbkdf2_mod_CFLAGS): Likewise.
19847 (pbkdf2_mod_LDFLAGS): Likewise.
19848 (password_pbkdf2_mod_SOURCES): New variable.
19849 (password_pbkdf2_mod_CFLAGS): Likewise.
19850 (password_pbkdf2_mod_LDFLAGS): Likewise.
19851 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
19852 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
19853 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
19854 Include conf/gcry.rmk.
19855 * include/grub/auth.h: Rewritten.
19856 * include/grub/crypto.h: New file.
19857 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
19858 * include/grub/normal.h (read_crypto_list): New prototype.
19859 * lib/crypto.c: New file.
19860 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
19861 * lib/pbkdf2.c: Likewise.
19862 * normal/auth.c (grub_auth_strcmp): Removed.
19863 (grub_iswordseparator): Likewise.
19864 (grub_auth_strword): Likewise.
19865 (is_authenticated): Use grub_strword.
19866 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
19867 and grub_strword. Pass entered password to authentication callback.
19868 * normal/crypto.c: New file.
19869 * normal/main.c: Call read_crypto_list.
19870 * util/grub-mkpasswd-pbkdf2.c: New file.
19871 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
19873 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
19875 Fix descent and ascent calculation.
19877 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
19878 (options): New option "asce".
19880 (add_char): Ignore invalid glyphs for descent calculation.
19881 Calculate ascent from actual content.
19882 (print_glyphs): Use 'asce'.
19883 (write_font): Likewise. Allow ascent override.
19884 (main): Handle "asce" option.
19886 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19888 * kern/err.c: Include `<grub/i18n.h>'.
19889 (grub_print_error): Add full stop. Gettextizze.
19890 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
19891 (grub_bsd_load_elf): Capitalise ELF.
19892 (grub_cmd_freebsd_loadenv): Add `s' in error string.
19893 (grub_cmd_freebsd_module): Likewise.
19894 (grub_cmd_freebsd_module_elf): Likewise.
19895 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
19897 2010-01-06 Carles Pina i Estany <carles@pina.cat>
19899 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
19900 * commands/search_file.c (HELP_MESSAGE): New macro.
19901 * commands/search_label.c (HELP_MESSAGE): Likewise.
19902 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
19903 * po/POTFILES: Add `commands/search_file.c',
19904 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
19905 `commands/search.c'.
19907 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
19909 * config.rpath: Update from Gnulib.
19911 2010-01-05 Yves Blusseau <blusseau@zetam.org>
19913 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
19915 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
19917 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
19919 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19921 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
19922 arguments to fread so that we get a return value in bytes, rather
19923 than something that will normally be rounded down to 0.
19924 Adjust error handling to avoid producing garbage when size_t is not
19925 the same size as long long.
19927 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
19929 * util/mkisofs/write.c (padblock_write): Check return value of
19932 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
19934 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
19937 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
19939 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
19941 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
19942 instead of manual alignment.
19943 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
19944 verbose). Avoid attempts to read past end of the device
19945 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
19946 but GRUB_DISK_CACHE_SIZE may exceed that).
19948 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
19950 * commands/crc.c (grub_cmd_crc): Abort on read errors.
19951 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
19954 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
19956 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
19958 (grub_efi_piwg_device_path): New structure
19959 (grub_efi_piwg_device_path_t): New type.
19960 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
19961 (devpath_1): Transform to a structure. All users updated.
19962 (devpath_2): Likewise.
19963 (devpath_3): Likewise.
19964 (devpath_4): Likewise.
19965 (devpath_5): Likewise.
19967 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
19969 * loader/efi/appleloader.c: Restored. Update all users.
19971 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19973 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
19975 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
19976 (struct boot_blocklist): Move from here ...
19977 * include/grub/i386/pc/boot.h [ASM_FILE]
19978 (struct grub_boot_blocklist): ... to here. Update all users.
19979 (setup): Only initialize `start' member of `first_block'
19980 structure. Add assert() calls to verify the other members.
19982 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
19983 (generate_image): Fix broken blocklist length initialization.
19984 Add assert() call to verify blocklist `segment' field.
19986 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19988 * loader/efi/appleloader.c: Remove. Update all users.
19990 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
19992 * boot/i386/pc/boot.S: Update copyright year.
19993 * boot/i386/pc/cdboot.S: Likewise.
19994 * boot/i386/pc/diskboot.S: Likewise.
19995 * boot/i386/pc/lnxboot.S: Likewise.
19996 * boot/i386/pc/pxeboot.S: Likewise.
19997 * bus/pci.c: Likewise.
19998 * commands/cmp.c: Likewise.
19999 * commands/help.c: Likewise.
20000 * commands/hexdump.c: Likewise.
20001 * commands/i386/pc/halt.c: Likewise.
20002 * commands/i386/pc/play.c: Likewise.
20003 * commands/i386/pc/vbeinfo.c: Likewise.
20004 * commands/ls.c: Likewise.
20005 * commands/test.c: Likewise.
20006 * disk/dmraid_nvidia.c: Likewise.
20007 * disk/i386/pc/biosdisk.c: Likewise.
20008 * disk/ieee1275/nand.c: Likewise.
20009 * disk/ieee1275/ofdisk.c: Likewise.
20010 * disk/lvm.c: Likewise.
20011 * disk/raid.c: Likewise.
20012 * disk/raid6_recover.c: Likewise.
20013 * disk/scsi.c: Likewise.
20014 * fs/affs.c: Likewise.
20015 * fs/cpio.c: Likewise.
20016 * fs/ext2.c: Likewise.
20017 * fs/hfs.c: Likewise.
20018 * fs/iso9660.c: Likewise.
20019 * fs/ntfs.c: Likewise.
20020 * fs/sfs.c: Likewise.
20021 * fs/udf.c: Likewise.
20022 * fs/ufs.c: Likewise.
20023 * fs/xfs.c: Likewise.
20024 * gencmdlist.sh: Likewise.
20025 * genmk.rb: Likewise.
20026 * include/grub/disk.h: Likewise.
20027 * include/grub/efi/api.h: Likewise.
20028 * include/grub/efi/efi.h: Likewise.
20029 * include/grub/efi/pe32.h: Likewise.
20030 * include/grub/elf.h: Likewise.
20031 * include/grub/fs.h: Likewise.
20032 * include/grub/i386/at_keyboard.h: Likewise.
20033 * include/grub/i386/pc/memory.h: Likewise.
20034 * include/grub/i386/pc/vbe.h: Likewise.
20035 * include/grub/i386/pci.h: Likewise.
20036 * include/grub/i386/tsc.h: Likewise.
20037 * include/grub/ieee1275/ieee1275.h: Likewise.
20038 * include/grub/ntfs.h: Likewise.
20039 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20040 * include/grub/sparc64/libgcc.h: Likewise.
20041 * include/grub/symbol.h: Likewise.
20042 * include/grub/types.h: Likewise.
20043 * include/multiboot2.h: Likewise.
20044 * io/gzio.c: Likewise.
20045 * kern/device.c: Likewise.
20046 * kern/disk.c: Likewise.
20047 * kern/efi/efi.c: Likewise.
20048 * kern/efi/mm.c: Likewise.
20049 * kern/elf.c: Likewise.
20050 * kern/file.c: Likewise.
20051 * kern/i386/dl.c: Likewise.
20052 * kern/i386/pc/init.c: Likewise.
20053 * kern/i386/pc/startup.S: Likewise.
20054 * kern/ieee1275/ieee1275.c: Likewise.
20055 * kern/ieee1275/init.c: Likewise.
20056 * kern/main.c: Likewise.
20057 * kern/mm.c: Likewise.
20058 * kern/powerpc/dl.c: Likewise.
20059 * kern/sparc64/dl.c: Likewise.
20060 * kern/x86_64/dl.c: Likewise.
20061 * lib/hexdump.c: Likewise.
20062 * loader/efi/appleloader.c: Likewise.
20063 * loader/i386/ieee1275/linux.c: Likewise.
20064 * loader/i386/pc/chainloader.c: Likewise.
20065 * loader/i386/pc/linux.c: Likewise.
20066 * loader/i386/pc/multiboot2.c: Likewise.
20067 * loader/ieee1275/multiboot2.c: Likewise.
20068 * loader/multiboot2.c: Likewise.
20069 * loader/multiboot_loader.c: Likewise.
20070 * loader/powerpc/ieee1275/linux.c: Likewise.
20071 * normal/completion.c: Likewise.
20072 * normal/menu_entry.c: Likewise.
20073 * partmap/apple.c: Likewise.
20074 * util/grub.d/10_hurd.in: Likewise.
20075 * util/hostfs.c: Likewise.
20076 * video/readers/png.c: Likewise.
20078 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
20080 * include/grub/misc.h (GNUC_PREREQ): New macro.
20081 (ATTRIBUTE_ERROR): New macro.
20082 * include/grub/list.h (grub_bad_type_cast_real): Use
20085 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20087 * normal/menu_text.c (print_message): Change messages.
20089 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20091 * normal/menu_entry.c (store_completion): Gettextizze.
20093 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20095 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
20097 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20099 * po/POTFILES: Sort correctly.
20101 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20103 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
20104 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
20105 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
20107 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
20108 summary. Gettextizze the strings.
20109 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
20110 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
20111 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
20113 (GRUB_MOD_INIT): Remove command name from summary.
20114 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
20116 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
20117 * term/i386/pc/serial.c (options): Add full stops.
20118 (GRUB_MOD_INIT): Remove command name from the summary.
20120 2010-01-03 Carles Pina i Estany <carles@pina.cat>
20122 * commands/acpi.c: Gettextizze help strings and/or options. Include
20123 `grub/i18n.h' if needed.
20124 * commands/blocklist.c: Likewise.
20125 * commands/boot.c: Likewise.
20126 * commands/cat.c: Likewise.
20127 * commands/cmp.c: Likewise.
20128 * commands/configfile.c: Likewise.
20129 * commands/crc.c: Likewise.
20130 * commands/date.c: Likewise.
20131 * commands/echo.c: Likewise.
20132 * commands/efi/fixvideo.c: Likewise.
20133 * commands/efi/loadbios.c: Likewise.
20134 * commands/gptsync.c: Likewise.
20135 * commands/halt.c: Likewise.
20136 * commands/handler.c: Likewise.
20137 * commands/hdparm.c: Likewise.
20138 * commands/hexdump.c: Likewise.
20139 * commands/i386/cpuid.c: Likewise.
20140 * commands/i386/pc/drivemap.c: Likewise.
20141 * commands/i386/pc/halt.c: Likewise.
20142 * commands/i386/pc/pxecmd.c: Likewise.
20143 * commands/i386/pc/vbeinfo.c: Likewise.
20144 * commands/i386/pc/vbetest.c: Likewise.
20145 * commands/ieee1275/suspend.c: Likewise.
20146 * commands/keystatus.c: Likewise.
20147 * commands/loadenv.c: Likewise.
20148 * commands/ls.c: Likewise.
20149 * commands/lsmmap.c: Likewise.
20150 * commands/lspci.c: Likewise.
20151 * commands/memrw.c: Likewise.
20152 * commands/minicmd.c: Likewise.
20153 * commands/parttool.c: Likewise.
20154 * commands/password.c: Likewise.
20155 * commands/probe.c: Likewise.
20156 * commands/read.c: Likewise.
20157 * commands/reboot.c: Likewise.
20158 * commands/search.c: Likewise.
20159 * commands/sleep.c: Likewise.
20160 * commands/test.c: Likewise.
20161 * commands/true.c: Likewise.
20162 * commands/usbtest.c: Likewise.
20163 * commands/videotest.c: Likewise.
20164 * commands/xnu_uuid.c: Likewise.
20165 * disk/loopback.c: Likewise.
20166 * hello/hello.c: Likewise.
20167 * loader/i386/bsd.c: Likewise.
20168 * term/i386/pc/serial.c: Likewise.
20169 * po/POTFILES: Add new files.
20171 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
20173 * term/i386/pc/at_keyboard.c
20174 (keyboard_controller_wait_untill_ready): Rename to ...
20175 (keyboard_controller_wait_until_ready): ... this. Update all users.
20177 2010-01-01 Carles Pina i Estany <carles@pina.cat>
20179 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
20180 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
20181 string using string width.
20182 * normal/menu_text.c (grub_print_message_indented): Use
20183 grub_print_spaces and not print_spaces.
20184 (print_timeout): Likewise.
20185 (print_spaces): Move to...
20186 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
20188 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
20190 Import from Gnulib.
20192 * gnulib/getdelim.c: New file.
20193 * gnulib/getline.c: Likewise.
20195 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
20197 * include/grub/list.h (grub_assert_fail): Removed.
20198 (grub_bad_type_cast_real): New function.
20199 (grub_bad_type_cast): New macro.
20200 (GRUB_AS_LIST): Use grub_bad_type_cast.
20201 (GRUB_AS_LIST_P): Likewise.
20202 (GRUB_AS_NAMED_LIST): Likewise.
20203 (GRUB_AS_NAMED_LIST_P): Likewise.
20204 (GRUB_AS_PRIO_LIST): Likewise.
20205 (GRUB_AS_PRIO_LIST_P): Likewise.
20206 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
20208 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
20210 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
20213 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
20215 * configure.ac: Check for TARGET_CFLAGS initialization before we
20216 initialize it ourselves (sigh).
20217 Move a few modifications to TARGET_CFLAGS to be unconditional
20218 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
20221 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
20222 * term/i386/pc/at_keyboard.c
20223 (keyboard_controller_wait_untill_ready): Likewise.
20224 (keyboard_controller_led): Rename `led_status' paramter to avoid
20227 2009-12-28 Carles Pina i Estany <carles@pina.cat>
20229 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
20232 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20234 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
20236 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20238 * normal/menu_text.c (grub_print_message_indented): Prevent
20239 past-the-end-of-array dereference.
20241 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
20243 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
20244 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
20246 2009-12-27 Carles Pina i Estany <carles@pina.cat>
20248 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
20249 * normal/main.c (grub_normal_read_line): Remove a space from the
20252 2009-12-27 Carles Pina i Estany <carles@pina.cat>
20254 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
20255 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20256 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
20257 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
20258 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20259 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20260 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20262 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20264 * video/readers/jpeg.c (cmd): Declare.
20265 (grub_cmd_jpegtest): Use `grub_command_t' type.
20266 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20268 (GRUB_MOD_FINI): Use `cmd' to unregister.
20269 * video/readers/png.c (cmd): Declare.
20270 (grub_cmd_pngtest): Use `grub_command_t' type.
20271 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20273 (GRUB_MOD_FINI): Use `cmd' to unregister.
20274 * video/readers/tga.c (cmd): Declare.
20275 (grub_cmd_tgatest): Use `grub_command_t' type.
20276 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
20278 (GRUB_MOD_FINI): Use `cmd' to unregister.
20280 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20282 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
20284 * kern/corecmd.c (grub_register_core_commands): Likewise.
20285 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
20286 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
20287 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
20288 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20289 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
20290 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
20291 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
20292 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
20293 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20294 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
20295 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20296 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20297 * normal/handler.c (insert_handler): Likewise.
20298 * normal/main.c (GRUB_MOD_INIT): Likewise.
20299 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
20301 2009-12-26 Carles Pina i Estany <carles@pina.cat>
20303 * commands/help.c (grub_cmd_help): Print the command name before the
20305 (GRUB_MOD_INIT): Remove command name from the summary.
20306 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
20308 * lib/arg.c (find_long): Print the command name before the summary.
20309 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
20311 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
20312 * commands/cat.c (GRUB_MOD_INIT): Likewise.
20313 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
20314 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
20315 * commands/crc.c (GRUB_MOD_INIT): Likewise.
20316 * commands/date.c (GRUB_MOD_INIT): Likewise.
20317 * commands/echo.c (GRUB_MOD_INIT): Likewise.
20318 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
20319 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
20320 * commands/handler.c (GRUB_MOD_INIT): Likewise.
20321 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
20322 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
20323 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
20324 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
20325 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
20326 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
20327 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
20328 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
20329 * commands/ls.c (GRUB_MOD_INIT): Likewise.
20330 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
20331 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
20332 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
20333 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
20334 * commands/password.c (GRUB_MOD_INIT): Likewise.
20335 * commands/probe.c (GRUB_MOD_INIT): Likewise.
20336 * commands/read.c (GRUB_MOD_INIT): Likewise.
20337 * commands/search.c (GRUB_MOD_INIT): Likewise.
20338 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
20339 * commands/test.c (GRUB_MOD_INIT): Likewise.
20340 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
20341 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
20342 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
20343 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
20344 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
20345 * lib/arg.c (GRUB_MOD_INIT): Likewise.
20346 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
20347 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
20348 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
20349 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20350 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
20351 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
20352 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
20353 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
20355 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20357 Use search command for preliminar UUID search.
20359 * commands/search.c: Split into ...
20360 * commands/search_wrap.c: ...this
20361 * commands/search.c: ...and this.
20362 * commands/search_file.c: New file.
20363 * commands/search_label.c: New file.
20364 * commands/search_uuid.c: New file.
20365 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
20366 Add commands/search_wrap.c, commands/search_file.c,
20367 commands/search_label.c and commands/search_uuid.c.
20368 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
20369 (search_mod_SOURCES): Set to commands/search_wrap.c.
20370 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
20372 (search_fs_file_mod_SOURCES): New variable.
20373 (search_fs_file_mod_CFLAGS): Likewise.
20374 (search_fs_file_mod_LDFLAGS): Likewise.
20375 (search_label_mod_SOURCES): Likewise.
20376 (search_label_mod_CFLAGS): Likewise.
20377 (search_label_mod_LDFLAGS): Likewise.
20378 (search_fs_uuid_mod_SOURCES): New variable.
20379 (search_fs_uuid_mod_CFLAGS): Likewise.
20380 (search_fs_uuid_mod_LDFLAGS): Likewise.
20381 (fs_file_mod_SOURCES): Removed.
20382 (fs_file_mod_CFLAGS): Likewise.
20383 (fs_file_mod_LDFLAGS): Likewise.
20384 (fs_uuid_mod_SOURCES): Removed.
20385 (fs_uuid_mod_CFLAGS): Likewise.
20386 (fs_uuid_mod_LDFLAGS): Likewise.
20387 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
20388 Set to util/grub-install.in.
20389 * disk/fs_file.c: Removed.
20390 * disk/fs_uuid.c: Likewise.
20391 * include/grub/search.h: New file.
20392 * util/grub-install.in: Handle sparc64.
20393 Create and use load.cfg.
20394 * util/sparc64/ieee1275/grub-install.in: Removed.
20396 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20398 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
20399 Ignore return status if CF is cleared.
20400 (grub_biosdisk_get_diskinfo_standard): Likewise.
20402 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
20404 * term/i386/pc/at_keyboard.c
20405 (keyboard_controller_wait_untill_ready): New function.
20406 (grub_keyboard_controller_write, grub_keyboard_controller_read)
20407 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
20408 for keyboard polling, rather than duplicate the same loop. This
20409 saves a few bytes in code size.
20411 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
20413 Support for (pxe[:server[:gateway]]) syntax and
20414 use environment variable for PXE.
20416 * commands/i386/pc/pxecmd.c (options): Removed.
20417 (print_ip): Removed.
20418 (grub_cmd_pxe): Removed
20419 (grub_cmd_pxe_unload): New function.
20420 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
20421 (grub_pxe_your_ip): Made static.
20422 (grub_pxe_default_server_ip): Likewise.
20423 (grub_pxe_default_gateway_ip): Likewise.
20424 (grub_pxe_blksize): Likewise.
20425 (parse_ip): New function.
20426 (grub_pxe_open): Support server and gateway specification.
20427 (grub_pxe_close): Free disk->data.
20428 (grub_pxefs_open): Use disk->data.
20429 (grub_pxefs_read): Likewise.
20430 (grub_env_write_readonly): New function.
20431 (set_mac_env): Likewise.
20432 (set_env_limn_ro): Likewise.
20433 (parse_dhcp_vendor): Likewise.
20434 (grub_pxe_detect): Set the environment variables.
20435 (set_ip_env): New function.
20436 (write_ip_env): Likewise.
20437 (grub_env_write_pxe_default_server): Likewise.
20438 (grub_env_write_pxe_default_gateway): Likewise.
20439 (grub_env_write_pxe_blocksize): Likewise.
20440 (GRUB_MOD_INIT(pxe)): Set environment variables.
20441 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
20442 (grub_pxe_mac_addr_t): ... this. All users updated.
20443 (grub_pxe_your_ip): Removed.
20444 (grub_pxe_server_ip): Likewise.
20445 (grub_pxe_gateway_ip): Likewise.
20446 (grub_pxe_blksize): Likewise.
20448 2009-12-25 Carles Pina i Estany <carles@pina.cat>
20450 * commands/help.c: Include `<grub/i18n.h>'.
20451 (grub_cmd_help): Gettextizze.
20452 (GRUB_MOD_INIT): Likewise.
20453 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
20454 (GRUB_MOD_INIT): Gettextizze.
20455 * commands/search.c: Include `<grub/i18n.h>'.
20456 (options): Gettextizze.
20457 (GRUB_MOD_INIT): Gettextizze.
20458 * lib/arg.c: Include `<grub/i18n.h>'.
20459 (help_options): Gettextizze.
20460 (find_long): Likewise.
20461 (grub_arg_show_help): Likewise.
20462 * normal/dyncmd.c: Include `<grub/i18n.h>'.
20463 (read_command_list): Gettextizze.
20464 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
20465 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
20467 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
20469 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
20470 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
20471 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
20472 (led_status): New variable.
20473 (keyboard_controller_led): New function.
20474 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
20475 update led status for caps lock, num lock and scroll lock.
20477 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
20479 * util/hostdisk.c (open_device): Fix a comment.
20481 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20483 * util/grub-install.in (host_os): New variable.
20484 * util/i386/efi/grub-install.in (host_os): Likewise.
20486 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20488 * util/mkisofs/write.c (padblock_write): Abort when given an
20489 excedingly large embed image, instead of silently truncating it.
20491 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20493 * include/multiboot.h: Indentation fixes.
20495 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20497 * include/multiboot.h (struct multiboot_aout_symbol_table)
20498 (struct multiboot_elf_section_header_table): New structure
20499 declarations (stolen from GRUB Legacy).
20500 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
20503 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
20504 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
20507 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20509 * include/multiboot.h: Make comments src2texi-friendly.
20511 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20513 For consistency with [multiboot]/docs/boot.S.
20515 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
20516 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
20517 (MULTIBOOT_MAGIC2): Rename from this ...
20518 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
20520 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
20522 * include/multiboot.h: Remove `<grub/types.h>'.
20523 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
20524 types. Update all users.
20526 2009-12-25 Carles Pina i Estany <carles@pina.cat>
20528 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
20529 `couldn't' and `can not' by `cannot'.
20530 * commands/i386/pc/drivemap.c: Likewise.
20531 * disk/ata.c: Likewise.
20532 * disk/ieee1275/nand.c: Likewise.
20533 * fs/affs.c: Likewise.
20534 * fs/fat.c: Likewise.
20535 * fs/hfs.c: Likewise.
20536 * fs/hfsplus.c: Likewise.
20537 * fs/iso9660.c: Likewise.
20538 * fs/jfs.c: Likewise.
20539 * fs/minix.c: Likewise.
20540 * fs/reiserfs.c: Likewise.
20541 * fs/sfs.c: Likewise.
20542 * fs/udf.c: Likewise.
20543 * fs/ufs.c: Likewise.
20544 * fs/xfs.c: Likewise.
20545 * loader/powerpc/ieee1275/linux.c: Likewise.
20546 * loader/sparc64/ieee1275/linux.c: Likewise.
20547 * util/grub-probe.c: Likewise.
20548 * util/misc.c: Likewise.
20550 2009-12-24 Carles Pina i Estany <carles@pina.cat>
20552 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
20554 * commands/acpi.c: Likewise.
20555 * commands/blocklist.c: Likewise.
20556 * commands/efi/loadbios.c: Likewise.
20557 * commands/i386/pc/drivemap.c: Likewise.
20558 * commands/loadenv.c: Likewise.
20559 * commands/memrw.c: Likewise.
20560 * commands/password.c: Likewise.
20561 * commands/videotest.c: Likewise.
20562 * disk/ata.c: Likewise.
20563 * disk/ata_pthru.c: Likewise.
20564 * disk/dmraid_nvidia.c: Likewise.
20565 * disk/ieee1275/nand.c: Likewise.
20566 * disk/ieee1275/ofdisk.c: Likewise.
20567 * disk/loopback.c: Likewise.
20568 * disk/lvm.c: Likewise.
20569 * disk/mdraid_linux.c: Likewise.
20570 * disk/raid.c: Likewise.
20571 * disk/raid6_recover.c: Likewise.
20572 * disk/scsi.c: Likewise.
20573 * efiemu/main.c: Likewise.
20574 * efiemu/mm.c: Likewise.
20575 * efiemu/pnvram.c: Likewise.
20576 * efiemu/symbols.c: Likewise.
20577 * font/font.c: Likewise.
20578 * fs/cpio.c: Likewise.
20579 * fs/hfsplus.c: Likewise.
20580 * fs/iso9660.c: Likewise.
20581 * fs/jfs.c: Likewise.
20582 * fs/minix.c: Likewise.
20583 * fs/ntfs.c: Likewise.
20584 * fs/ntfscomp.c: Likewise.
20585 * fs/reiserfs.c: Likewise.
20586 * fs/ufs.c: Likewise.
20587 * fs/xfs.c: Likewise.
20588 * gettext/gettext.c: Likewise.
20589 * include/grub/auth.h: Likewise.
20590 * kern/elf.c: Likewise.
20591 * kern/file.c: Likewise.
20592 * kern/ieee1275/init.c: Likewise.
20593 * kern/ieee1275/mmap.c: Likewise.
20594 * kern/ieee1275/openfw.c: Likewise.
20595 * kern/powerpc/dl.c: Likewise.
20596 * kern/sparc64/dl.c: Likewise.
20597 * lib/arg.c: Likewise.
20598 * loader/i386/bsd.c: Likewise.
20599 * loader/i386/bsdXX.c: Likewise.
20600 * loader/i386/efi/linux.c: Likewise.
20601 * loader/i386/efi/xnu.c: Likewise.
20602 * loader/i386/ieee1275/linux.c: Likewise.
20603 * loader/i386/linux.c: Likewise.
20604 * loader/i386/multiboot.c: Likewise.
20605 * loader/i386/pc/linux.c: Likewise.
20606 * loader/i386/pc/multiboot2.c: Likewise.
20607 * loader/i386/xnu.c: Likewise.
20608 * loader/ieee1275/multiboot2.c: Likewise.
20609 * loader/macho.c: Likewise.
20610 * loader/machoXX.c: Likewise.
20611 * loader/multiboot2.c: Likewise.
20612 * loader/multiboot_loader.c: Likewise.
20613 * loader/powerpc/ieee1275/linux.c: Likewise.
20614 * loader/sparc64/ieee1275/linux.c: Likewise.
20615 * loader/xnu.c: Likewise.
20616 * loader/xnu_resume.c: Likewise.
20617 * mmap/i386/pc/mmap.c: Likewise.
20618 * normal/menu_viewer.c: Likewise.
20619 * partmap/acorn.c: Likewise.
20620 * partmap/amiga.c: Likewise.
20621 * partmap/apple.c: Likewise.
20622 * script/lexer.c: Likewise.
20623 * term/gfxterm.c: Likewise.
20624 * term/i386/pc/serial.c: Likewise.
20625 * term/i386/pc/vga.c: Likewise.
20626 * term/ieee1275/ofconsole.c: Likewise.
20627 * term/terminfo.c: Likewise.
20628 * video/bitmap.c: Likewise.
20629 * video/efi_gop.c: Likewise.
20630 * video/efi_uga.c: Likewise.
20631 * video/fb/video_fb.c: Likewise.
20632 * video/i386/pc/vbe.c: Likewise.
20633 * video/readers/tga.c: Likewise.
20634 * video/video.c: Likewise.
20636 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
20638 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
20639 * commands/lspci.c: Likewise.
20640 * commands/probe.c: Likewise.
20641 * commands/xnu_uuid.c: Likewise.
20642 * conf/i386-coreboot.rmk: Likewise.
20643 * conf/i386-efi.rmk: Likewise.
20644 * conf/i386-ieee1275.rmk: Likewise.
20645 * conf/i386-pc.rmk: Likewise.
20646 * conf/powerpc-ieee1275.rmk: Likewise.
20647 * conf/sparc64-ieee1275.rmk: Likewise.
20648 * conf/x86_64-efi.rmk: Likewise.
20649 * fs/i386/pc/pxe.c: Likewise.
20650 * gettext/gettext.c: Likewise.
20651 * include/grub/efi/graphics_output.h: Likewise.
20652 * include/grub/i386/pc/memory.h: Likewise.
20653 * kern/env.c: Likewise.
20654 * kern/i386/qemu/startup.S: Likewise.
20655 * lib/i386/pc/biosnum.c: Likewise.
20656 * lib/i386/relocator.c: Likewise.
20657 * lib/i386/relocator_asm.S: Likewise.
20658 * lib/relocator.c: Likewise.
20659 * loader/i386/bsd.c: Likewise.
20660 * loader/i386/multiboot.c: Likewise.
20661 * loader/i386/pc/chainloader.c: Likewise.
20662 * loader/i386/xnu.c: Likewise.
20663 * loader/xnu.c: Likewise.
20664 * normal/main.c: Likewise.
20665 * normal/menu_text.c: Likewise.
20666 * util/getroot.c: Likewise.
20667 * util/grub-mkconfig_lib.in: Likewise.
20668 * util/grub.d/00_header.in: Likewise.
20669 * util/i386/pc/grub-mkimage.c: Likewise.
20670 * util/mkisofs/eltorito.c: Likewise.
20671 * util/mkisofs/exclude.h: Likewise.
20672 * util/mkisofs/hash.c: Likewise.
20673 * util/mkisofs/iso9660.h: Likewise.
20674 * util/mkisofs/joliet.c: Likewise.
20675 * util/mkisofs/mkisofs.c: Likewise.
20676 * util/mkisofs/mkisofs.h: Likewise.
20677 * util/mkisofs/multi.c: Likewise.
20678 * util/mkisofs/name.c: Likewise.
20679 * util/mkisofs/rock.c: Likewise.
20680 * util/mkisofs/tree.c: Likewise.
20681 * util/mkisofs/write.c: Likewise.
20682 * video/efi_gop.c: Likewise.
20684 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
20686 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
20689 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20691 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
20692 * genmk.rb (class SCRIPT): Modify the target file instead of source.
20694 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20696 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
20697 (GRUB_MOD_INIT(memrw)): Update help line.
20699 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20701 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
20702 Use grub_extcmd_t. All users updated.
20703 (options): New variable.
20704 (grub_cmd_read): Restructure for readability. Support "-v" option.
20705 (grub_cmd_write): Restructure for readability.
20707 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20709 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
20711 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20713 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
20714 with the actual contents of the correspondending make variable.
20715 * util/grub-mkrescue.in (pkglib_DATA): New variable.
20716 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
20717 specifying `*.lst' and `efiemu??.o'
20719 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20721 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
20722 after function name.
20723 Noticed by Rene Engelhard <rene@debian.org>.
20725 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20727 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
20728 (options): New variable.
20729 (iospace): Likewise.
20730 (grub_lspci_iter): List IO spaces if "-i" was given.
20731 (grub_cmd_lspci): Parse options.
20732 (GRUB_MOD_INIT(lspci)): Use extcmd.
20733 (GRUB_MOD_FINI(lspci)): Likewise.
20735 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
20737 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
20738 `function' keyword.
20739 Patch by Tony Mancill <tmancill@debian.org>.
20741 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
20743 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
20744 (grub_uhci_portstatus): Likewise.
20745 (grub_uhci_portstatus): Add necessary delay.
20746 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
20748 2009-12-21 Carles Pina i Estany <carles@pina.cat>
20750 * commands/acpi.c (options): Fix capitalizations and/or full stops.
20751 (GRUB_MOD_INIT): Likewise.
20752 * commands/boot.c (GRUB_MOD_INIT): Likewise.
20753 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
20754 * commands/echo.c (options): Fix capitalizations and/or full stops.
20755 * commands/efi/loadbios.c (enable_rom_area): Likewise.
20756 (enable_rom_area): Likewise.
20757 (GRUB_MOD_INIT): Likewise.
20758 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
20759 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
20760 * commands/handler.c (GRUB_MOD_INIT): Likewise.
20761 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
20762 * commands/hexdump.c (options): Likewise.
20763 * commands/i386/cpuid.c (options): Likewise.
20764 (GRUB_MOD_INIT): Likewise.
20765 * commands/i386/pc/drivemap.c (options): Likewise.
20766 (GRUB_MOD_INIT): Likewise.
20767 * commands/i386/pc/halt (options): Likewise.
20768 (GRUB_MOD_INIT): Likewise.
20769 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
20770 * commands/i386/pc/pxecmd.c (options): Likewise.
20771 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
20772 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
20773 * commands/keystatus.c (options): Likewise.
20774 (GRUB_MOD_INIT): Likewise.
20775 * commands/loadenv.c (options): Likewise.
20776 * commands/ls.c (options): Likewise.
20777 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
20778 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
20779 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
20780 * commands/parttool.c (helpmsg): Likewise.
20781 * commands/probe.c (options): Likewise.
20782 * commands/read.c (GRUB_MOD_INIT): Likewise.
20783 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
20784 * commands/search.c (options): Likewise.
20785 * commands/sleep.c (options): Likewise.
20786 * commands/test.c (GRUB_MOD_INIT): Likewise.
20787 * commands/true.c (GRUB_MOD_INIT): Likewise.
20788 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
20789 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
20790 * lib/arg.c (help_options): Likewise.
20791 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
20793 * po/POTFILES: Add `commands/loadenv.c'.
20795 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
20797 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
20798 instead of specifying them explicit.
20800 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20802 * NEWS: Add grub-probe support for GNU/Hurd.
20804 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20806 * NEWS: gettext was added after 1.97.
20808 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20810 * util/mkisofs/msdos_partition.h: New file (based on
20811 include/grub/msdos_partition.h).
20812 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
20813 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
20814 (ld_options, main): Recognize --protective-msdos-label.
20815 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
20816 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
20817 (padblock_write): If `use_protective_msdos_label' is set, patch a
20818 protective DOS-style label in the output image.
20820 * util/grub-mkrescue.in: Use --protective-msdos-label.
20822 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20824 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
20827 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20829 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
20831 (ld_options, main): Recognize `--embedded-boot'.
20832 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
20834 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
20835 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
20836 (padblock_write): Likewise. Rewrite to support embedded boot image.
20838 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
20839 for BIOS-based disk boot instead of only ElTorito.
20841 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20843 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
20844 build (not needed for bootstrap).
20846 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20848 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
20849 from i386-pc build (not needed for bootstrap).
20850 Rewrite a pair of strings.
20852 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
20854 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
20856 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
20858 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
20860 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20862 * kern/env.c (grub_env_context_open): Mark exported variable for
20865 2009-12-21 Andreas Born <futur.andy@googlemail.com>
20867 * kern/env.c (grub_env_export): Create nonexistent variables before
20870 2009-12-20 Carles Pina i Estany <carles@pina.cat>
20872 * include/grub/auth.h: Include `<grub/i18n.h>'.
20873 (GRUB_GET_PASSWORD): Gettextizze string.
20874 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
20876 (grub_utf8_to_ucs4_alloc): Fix indentation.
20877 (grub_print_ucs4): Likewise.
20878 (grub_getstringwidth): Likewise.
20879 (print_message_indented): New declaration.
20880 * normal/auth.c: Include `<grub/i18n.h>'.
20881 (grub_auth_check_authentication): Gettexttize string.
20882 * normal/cmdline.c: Include `<grub/i18n.h>'.
20883 (grub_cmdline_get): Gettextizze.
20884 * normal/color.c: Include `<grub/i18n.h>'.
20885 (grub_parse_color_name_pair): Gettexttize strings.
20886 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
20887 string (use `print_message_indented').
20888 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
20889 `include/grub/normal.h'.
20890 (print_message_indented): Renamed to ...
20891 (grub_print_message_indented): ... this. Remove `static' qualifer (now
20892 used in normal/main.c).
20893 (print_message): Use `grub_print_message_indented' instead of
20894 `print_message_indented'.
20895 (print_timeout): Likewise.
20896 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
20897 (grub_normal_print_device_info): Gettexttize strings.
20898 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
20900 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20902 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
20903 of arguments. Return number of tokens and not arguments. All users
20906 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
20908 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
20909 non-MSDOS paritions.
20911 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
20913 * include/grub/types.h (UNUSED): Removed since it conflicts with
20914 NetBSD headers. All users changed to direct __attribute__ ((unused)).
20915 Reported by Grégoire Sutre.
20917 2009-12-19 Carles Pina i Estany <carles@pina.cat>
20919 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
20920 (grub_print_ucs4_alloc): Likewise.
20921 (grub_getstringwidth): Likewise.
20922 * normal/main.c (grub_normal_init_page): Gettextize version string.
20923 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
20924 (getstringwidth): Renamed to ...
20925 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
20926 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
20927 (grub_print_ucs4): Remove `static' qualifer (now used in
20929 * po/POTFILES: Add normal/main.c.
20931 2009-12-19 Carles Pina i Estany <carles@pina.cat>
20933 * normal/menu_text.c (STANDARD_MARGIN): New macro.
20934 (print_message_indented): Add `margin_left' and `margin_right'
20936 (print_message): Update `print_message_indented' calls. Adds '\n' to the
20938 (print_timeout): Use `print_message_indented' to print the message.
20939 Deletes `second_stage' parameter.
20940 (run_menu): Update `print_timeout' calls.
20942 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20944 Fix console palette on OpenFirmware.
20946 * term/ieee1275/ofconsole.c (MAX): Removed.
20947 (colors): Redone based on VGA palette.
20948 (grub_ofconsole_setcolor): Discard brightness bit since only 8
20949 colors are supported.
20950 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
20952 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
20954 Fix potential EfiEmu double prepare.
20956 * efiemu/main.c (prepared): New variable
20957 (grub_efiemu_unload): Set prepare to '0'.
20958 (grub_efiemu_prepare): Return if already prepared. Set prepared.
20960 set_virtual_address_map support.
20962 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
20964 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
20966 (grub_efiemu_crc32): Likewise.
20967 (grub_efiemu_crc64): Likewise.
20968 (grub_efiemu_set_virtual_address_map): Likewise.
20969 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
20971 (grub_autoefi_set_virtual_address_map): Likewise.
20972 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
20973 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
20974 Restructure flow to accomodate it.
20975 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
20976 (grub_efiemu_crc): Recompute CRC32.
20977 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
20978 (efiemu_ptv_relocated): ... this. Made global. All users updated.
20979 * efiemu/symbols.c (relocated_handle): New variable.
20980 (grub_efiemu_free_syms): Free relocated_handle.
20981 (grub_efiemu_alloc_syms): Allocate relocated_handle.
20982 (grub_efiemu_write_sym_markers): New function.
20983 (grub_efiemu_set_virtual_address_map): Likewise.
20985 Newer XNU parameters.
20987 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
20988 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
20989 (grub_xnu_fill_devicetree): New prototype.
20990 (grub_xnu_heap_real_start): New variable.
20991 * loader/xnu.c (get_name_ptr): New function.
20992 (grub_xnu_load_driver): Fill namelen and name.
20994 64-bit xnu support.
20996 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
20997 and 'loader/macho64.c'.
20998 * conf/i386-pc.rmk: Likewise.
20999 * conf/x86_64-efi.rmk: Likewise.
21000 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
21001 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
21002 * include/grub/macho.h (grub_macho_segment64): New structure.
21003 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
21004 (grub_macho_size32): ... to this.
21005 (grub_macho32_get_entry_point): Renamed from ...
21006 (grub_macho_get_entry_point32): ... to this.
21007 (grub_macho_contains_macho64): New prototype.
21008 (grub_macho_size64): Likewise.
21009 (grub_macho_get_entry_point64): Likewise.
21010 (grub_macho32_load): Renamed from ...
21011 (grub_macho_load32): ... to this.
21012 (grub_macho32_filesize): Renamed from ...
21013 (grub_macho_filesize32): ... to this.
21014 (grub_macho32_readfile): Renamed from ...
21015 (grub_macho_readfile32): ... to this.
21016 (grub_macho_filesize64): New prototype.
21017 (grub_macho_readfile64): Likewise.
21018 (grub_macho_parse32): Likewise.
21019 (grub_macho_parse64): Likewise.
21020 * loader/macho.c: Split into ...
21021 * loader/machoXX.c: ... and this. Replace 32 with XX.
21022 * loader/macho32.c: New file.
21023 * loader/macho64.c: Likewise.
21024 * loader/xnu.c (grub_xnu_is_64bit): New variable.
21025 (grub_cmd_xnu_kernel): Make 32-bit only.
21026 (grub_cmd_xnu_kernel64): New function.
21027 (grub_xnu_load_driver): Support Mach-O 64.
21028 (grub_cmd_xnu_mkext): Likewise.
21029 * util/grub.d/30_os-prober.in (osx_entry): New function.
21030 Generate entries for 64-bit boot too.
21032 Eliminate ad-hoc tree format in XNU and EfiEmu.
21034 * efiemu/main.c (grub_efiemu_prepare): Update comment.
21035 * efiemu/pnvram.c: Rewritten to use environment variables.
21038 Inline utf16_to_utf8.
21040 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
21041 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
21043 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
21045 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
21046 * commands/usbtest.c (grub_usb_get_string): ... move here.
21047 (usb_print_str): Fix error handling.
21048 * include/grub/usb.h (grub_usb_get_string): Remove.
21050 UTF-8 to UTF-16 transformation.
21052 * conf/common.rmk (pkglib_MODULES): Add charset.mod
21053 (charset_mod_SOURCES): New variable.
21054 (charset_mod_CFLAGS): Likewise.
21055 (charset_mod_LDFLAGS): Likewise.
21056 * include/grub/utf.h: New file.
21057 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
21059 Support for device properties.
21061 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
21062 (grub_xnu_devprop_device_header): Likewise.
21063 (grub_xnu_devprop_device_descriptor): Likewise.
21064 (grub_xnu_devprop_add_device): New prototype.
21065 (grub_xnu_devprop_remove_device): Likewise.
21066 (grub_xnu_devprop_remove_property): Likewise.
21067 (grub_xnu_devprop_add_property_utf8): Likewise.
21068 (grub_xnu_devprop_add_property_utf16): Likewise.
21069 (grub_cpu_xnu_init): Likewise.
21070 (grub_cpu_xnu_fini): Likewise.
21071 (grub_cpu_xnu_unload): Likewise.
21072 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
21073 (property_descriptor): Likewise.
21074 (devices): New variable.
21075 (grub_xnu_devprop_remove_property): New function.
21076 (grub_xnu_devprop_add_device): Likewise.
21077 (grub_xnu_devprop_remove_device): Likewise.
21078 (grub_xnu_devprop_add_property): Likewise.
21079 (grub_xnu_devprop_add_property_utf8): Likewise.
21080 (grub_xnu_devprop_add_property_utf16): Likewise.
21081 (hextoval): Likewise.
21082 (grub_cpu_xnu_fill_devprop): Likewise.
21083 (grub_cmd_devprop_load): Likewise.
21084 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
21085 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
21086 (cmd_devprop_load): New variable.
21087 (grub_cpu_xnu_init): New function.
21088 (grub_cpu_xnu_fini): Likewise.
21089 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
21090 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
21091 (grub_cmd_xnu_devtree): Likewise.
21092 (hextoval): New function.
21093 (unescape): Likewise.
21094 (grub_xnu_fill_devicetree): Likewise.
21096 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
21097 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
21099 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21101 Workaround for broken ATI VBE.
21103 * video/i386/pc/vbe.c (last_set_mode): New variable.
21104 (grub_vbe_set_video_mode): Set 'last_set_mode'.
21105 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
21106 (grub_video_vbe_setup): Don't check for reserved flag.
21108 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
21110 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
21111 the `find' command.
21113 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
21115 UUID support for HFS.
21117 * fs/hfs.c (grub_hfs_uuid): New function.
21118 (grub_hfs_fs): New value .uuid.
21119 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
21121 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
21123 Fix a segfault with parsing unknown long options.
21125 * util/grub-mkrelpath.c (options): Zero terminate it.
21127 2009-12-13 Carles Pina i Estany <carles@pina.cat>
21129 * include/grub/misc.h (grub_puts): New declaration.
21130 (grub_puts_): Likewise.
21131 * kern/misc.c (grub_puts): New definition.
21132 (grub_puts_): Likewise.
21134 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
21136 * util/grub-probe.c (probe): Improve error message.
21138 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
21140 * loader/i386/multiboot_elfxx.c
21141 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
21144 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
21146 Relocator framework
21148 * loader/i386/xnu_helper.S: Removed. All users updated.
21149 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
21150 (relocator_mod_SOURCES): New variable.
21151 (relocator_mod_CFLAGS): Likewise.
21152 (relocator_mod_LDFLAGS): Likewise.
21153 (relocator_mod_ASFLAGS): Likewise.
21154 * conf/x86_64.rmk: Likewise.
21155 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
21156 (grub_multiboot_payload_entry_offset): Likewise.
21157 (grub_multiboot_forward_relocator): Likewise.
21158 (grub_multiboot_forward_relocator_end): Likewise.
21159 (grub_multiboot_backward_relocator): Likewise.
21160 (grub_multiboot_backward_relocator_end): Likewise.
21161 (grub_multiboot_payload_eip): New variable.
21162 (grub_multiboot_payload_orig): Likewise.
21163 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
21164 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
21165 * include/grub/i386/memory.h
21166 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
21167 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
21168 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
21169 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
21170 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
21171 * include/grub/i386/relocator.h: New file.
21172 * include/grub/x86_64/relocator.h: Likewise.
21173 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
21174 (XNU_RELOCATOR): New macro.
21175 (grub_xnu_launcher_start): Remove.
21176 (grub_xnu_launcher_end): Likewise.
21177 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
21178 (grub_xnu_heap_real_start): Remove.
21179 (grub_xnu_heap_start): Change to void *. All users updated.
21180 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
21181 * lib/i386/relocator.c: New file.
21182 * lib/i386/relocator_asm.S: Likewise.
21183 * lib/i386/relocator_backward.S: Likewise.
21184 * lib/mips/relocator.c: Likewise.
21185 * lib/mips/relocator_asm.S: Likewise.
21186 * lib/relocator.c: Likewise.
21187 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
21189 (playground): Likewise.
21190 (grub_multiboot_payload_orig): New variable.
21191 (grub_multiboot_payload_dest): Likewise.
21192 (grub_multiboot_payload_size): Likewise.
21193 (grub_multiboot_payload_eip): Likewise.
21194 (grub_multiboot_payload_esp): Likewise.
21195 (grub_multiboot_boot): Use grub_relocator32_boot.
21196 (grub_multiboot_unload): Free relocators.
21197 (grub_multiboot): Setup stack. Use relocators.
21198 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
21199 (grub_multiboot_load_elfXX): Use relocators.
21200 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
21201 (grub_multiboot_payload_size): Likewise.
21202 (grub_multiboot_payload_dest): Likewise.
21203 (grub_multiboot_payload_entry_offset): Likewise.
21204 (grub_multiboot_forward_relocator): Likewise.
21205 (grub_multiboot_backward_relocator): Likewise.
21206 (grub_multiboot_real_boot): Likewise.
21207 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
21208 (grub_xnu_entry_point): Likewise.
21209 (grub_xnu_arg1): Likewise.
21210 (grub_xnu_stack): Likewise.
21211 (grub_xnu_launch): Removed.
21212 (grub_xnu_boot_resume): New function.
21213 (grub_xnu_boot): Use relocators.
21214 * loader/i386/xnu_helper.S: Removed.
21215 * loader/xnu.c (grub_xnu_heap_start): New variable.
21216 (grub_xnu_heap_size): Likewise.
21217 (grub_xnu_heap_malloc): Use relocators.
21218 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
21220 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
21222 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
21225 2009-12-13 Carles Pina i Estany <carles@pina.cat>
21227 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
21228 GRUB_ERR_NONE before calling grub_env_set.
21230 2009-12-12 Robert Millan <rmh@aybabtu.com>
21232 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
21233 * genmk.rb (video): New variable.
21234 (CLEANFILES, VIDEOFILES): Add #{video}.
21235 (#{video}): New target rule.
21236 * genvideolist.sh: New file.
21237 * Makefile.in (pkglib_DATA): Add video.lst.
21238 (video.lst): New target rule.
21239 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
21241 * util/grub.d/30_os-prober.in: Replace `vbe' with
21242 ${GRUB_VIDEO_BACKEND}.
21244 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
21246 * THANKS: Add David Miller.
21248 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
21250 libpciaccess support.
21252 * Makefile.in (LIBPCIACCESS): New variable.
21253 (enable_grub_emu_pci): Likewise.
21254 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
21255 util/pci.c and commands/lspci.c.
21256 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
21257 * configure.ac (grub-emu-pci): New option.
21258 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
21259 (grub_pci_device_unmap_range): Likewise.
21260 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
21261 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
21262 (grub_pci_address_t) [!GRUB_UTIL]: New type.
21263 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
21264 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
21265 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
21266 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
21267 * include/grub/pciutils.h: New file.
21268 * util/pci.c: Likewise.
21270 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
21272 * util/misc.c: Don't include <errno.h> twice.
21274 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
21276 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
21277 name in an error message.
21278 (grub_biosdisk_rw): Likewise.
21280 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21282 Eliminate NTFS 4Gib barrier.
21284 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
21285 (read_run_data): Likewise.
21286 (grub_ntfs_read_run_list): Likewise.
21287 (grub_ntfs_read_block): Likewise.
21288 (grub_ntfs_iterate_dir): Likewise.
21289 (read_mft): Likewise.
21290 (read_data): Likewise.
21292 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
21293 to avoid 64-bit division
21294 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
21295 (grub_ntfs_rlst): Use grub_disk_addr_t.
21297 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21299 Eliminate grub-fstest 4Gib barrier.
21301 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
21302 (read_file): Fix error reporting.
21304 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21306 Eliminate hexdump 4Gib barrier.
21308 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
21309 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
21311 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
21313 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
21316 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
21318 Remove miscellaneous files in distclean target.
21320 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
21322 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
21324 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
21325 if they're already set. This resolves the conflict between my
21326 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
21327 fixing the --grub-probe option again.
21328 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
21329 change on 2009-10-06, so that we now once again source
21330 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
21332 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
21334 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
21335 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
21336 `util/devicemap.c'.
21338 2009-12-08 Carles Pina i Estany <carles@pina.cat>
21340 * include/grub/misc.h (grub_printf_): New declaration.
21341 * kern/misc.c (grub_printf_): New definition.
21342 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
21343 instead of `grub_printf' and `_'.
21344 * normal/menu_entry.c (store_completion): Likewise.
21346 (grub_menu_entry_run): Likewise.
21347 * normal/menu_text.c (grub_wait_after_message): Likewise.
21348 (notify_booting): Likewise.
21349 (notify_fallback): Likewise.
21350 (notify_execution_failure): Likewise.
21352 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
21354 * configure.ac: Check for vasprintf.
21355 * util/misc.c (asprintf): Move allocation from here ...
21356 (vasprintf): ... to here. New function.
21357 (xasprintf): New function.
21358 * include/grub/util/misc.h (vasprintf, xasprintf): Add
21360 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
21361 * util/grub-mkfont.c (write_font): Likewise.
21362 * util/grub-probe.c (probe): Likewise.
21363 * util/hostdisk.c (make_device_name): Likewise.
21365 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
21367 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
21368 anything even prefixed with 'cdrom' as a cdrom.
21370 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
21372 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
21375 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21377 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
21378 grub_gettext_msg_list.
21379 (grub_gettext_gettranslation_from_position): Return const char *
21381 (grub_gettext_translate): Add the translated strings into a list,
21382 returns from the list if existing there.
21383 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
21384 (grub_gettext_delete_list): Delete the list.
21385 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
21386 lang environment variable is changed.
21387 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
21389 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
21391 Rename kernel.mod to kernel.img.
21393 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
21394 (kernel_mod_EXPORTS): Rename to ...
21395 (kernel_img_EXPORTS): ... this.
21396 (kernel_mod_SOURCES): Rename to ...
21397 (kernel_img_SOURCES): ... this.
21398 (kernel_mod_HEADERS): Rename to ...
21399 (kernel_img_HEADERS): ... this. All users updated.
21400 (kernel_mod_CFLAGS): Rename to ...
21401 (kernel_img_CFLAGS): ... this.
21402 (kernel_mod_ASFLAGS): Rename to ...
21403 (kernel_img_ASFLAGS): ... this.
21404 (kernel_mod_LDFLAGS): Rename to ...
21405 (kernel_img_LDFLAGS): ... this.
21406 * conf/x86_64-efi.rmk: Likewise.
21407 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
21408 (read_kernel_image): ... this. All users updated.
21409 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
21411 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21413 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
21414 (print_spaces): New function.
21415 (grub_print_ucs4): New function.
21416 (getstringwidth): New function.
21417 (print_message_indented): New function.
21418 (print_message): Gettexttize strings using print_message_indented.
21419 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
21421 (get_entry_number): Gettextize and uses dynamic terminal width.
21422 (notify_booting, notify_fallback, notify_execution_failure):
21424 * normal/menu_entry.c (store_completion): Cleanup the gettextized
21427 (grub_menu_entry_run): Likewise.
21428 * PO/POTFILES: Add normal/menu_entry.c.
21430 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
21432 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
21434 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21436 * util/grub-install.in: Install gettext .mo files.
21437 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
21439 2009-12-05 Carles Pina i Estany <carles@pina.cat>
21441 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
21444 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
21446 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
21447 non-firmware-dependant one in realmode.S takes precedence.
21449 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
21451 * commands/halt.c: Replace misc arch-specific headers with
21453 * commands/reboot.c: Likewise.
21454 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
21456 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
21457 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
21458 (kernel_img_SOURCES): ... to here.
21460 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
21461 * include/grub/i386/pc/init.h: Likewise.
21462 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21463 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21465 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
21467 * include/grub/i386/halt.h: Remove.
21468 * include/grub/i386/reboot.h: Likewise.
21470 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
21472 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
21474 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
21475 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
21476 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
21478 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
21479 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21480 (usage): Add missing comma in printf.
21482 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
21484 Use the same reboot approach on i386 coreboot and qemu as we do on
21487 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
21488 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
21489 * kern/i386/reboot.c: Remove.
21490 * include/grub/i386/reboot.h (grub_reboot): Export function.
21491 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
21492 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
21493 0xf000:0xfff0 instead of 0xffff:0x0000.
21494 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
21495 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
21497 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
21499 Fix $srcdir != $objdir build.
21501 * Makefile.in (po/%.po): Rewrite as ...
21502 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
21504 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
21506 Fix GNU/Hurd grub-install crash.
21507 * util/grub-probe.c (probe): Try to access `path' only when it is not
21510 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21512 Correct module naming.
21514 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
21515 (GRUB_MOD_INIT(efi_uga)): ... to this
21516 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21517 (GRUB_MOD_FINI(efi_uga)): ... to this
21518 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
21519 (GRUB_MOD_INIT(efi_gop)): ... to this
21520 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
21521 (GRUB_MOD_FINI(efi_gop)): ... to this
21523 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
21525 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
21527 (usage): Translate `arg' strings using gettext().
21528 Thanks to Jordi Mallach for the suggestion.
21530 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21532 GOP support. Based on patch from Bean
21533 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21535 * video/efi_gop.c: New file.
21536 * include/grub/efi/graphics_output.h: Likewise.
21537 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
21538 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21540 * conf/x86_64-efi.rmk: Likewise.
21542 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
21544 Rename efi_fb to efi_uga.
21546 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21548 (efi_fb_mod_SOURCES): Rename this ...
21549 (efi_uga_mod_SOURCES): ... to this.
21550 (efi_fb_mod_CFLAGS): Rename this ...
21551 (efi_uga_mod_CFLAGS): ... to this.
21552 (efi_fb_mod_LDFLAGS): Rename this ...
21553 (efi_uga_mod_LDFLAGS): ... to this.
21554 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
21556 (efi_fb_mod_SOURCES): Rename this ...
21557 (efi_uga_mod_SOURCES): ... to this.
21558 (efi_fb_mod_CFLAGS): Rename this ...
21559 (efi_uga_mod_CFLAGS): ... to this.
21560 (efi_fb_mod_LDFLAGS): Rename this ...
21561 (efi_uga_mod_LDFLAGS): ... to this.
21562 * video/efi_fb.c: Move this ...
21563 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
21565 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21567 * po/README: New file. Explain our PO file workflow.
21569 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21571 * po/ChangeLog: Remove. Move relevant entries back to ...
21572 * ChangeLog: ... here.
21573 * po/ca.po: Remove (now handled by TLP).
21574 * po/id.po: Likewise.
21575 * po/zh_CN.po: Likewise.
21576 * Makefile.in (LINGUAS): Initialize in a way that supports
21579 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
21581 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
21582 reliing on po/LINGUAS.
21583 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
21584 (po/%.po): ... this.
21586 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21588 * util/i386/efi/grub-mkimage.c: Include "progname.h".
21589 (main): Use `program_name' instead of nonexistent `progname'.
21591 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21593 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21594 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
21596 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21598 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
21600 * conf/i386-efi.rmk: Likewise.
21601 * conf/i386-ieee1275.rmk: Likewise.
21602 * conf/powerpc-ieee1275.rmk: Likewise.
21603 * conf/sparc64-ieee1275.rmk: Likewise.
21604 * conf/x86_64-efi.rmk: Likewise.
21606 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21608 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
21610 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
21612 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
21614 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
21616 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
21617 (grub_mkdevicemap_SOURCES): New variable.
21618 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
21619 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
21620 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
21621 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
21622 (grub_mkdevicemap_SOURCES): Remove.
21623 * conf/i386-efi.rmk: Likewise.
21624 * conf/i386-ieee1275.rmk: Likewise.
21625 * conf/i386-pc.rmk: Likewise.
21626 * conf/powerpc-ieee1275.rmk: Likewise.
21627 * conf/sparc64-ieee1275.rmk: Likewise.
21628 * conf/x86_64-efi.rmk: Likewise.
21629 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
21630 (usage): Fix strings to use `program_name'.
21631 (main): Initialize gettext.
21632 * util/grub-editenv.c: Likewise.
21633 * util/grub-emu.c: Likewise.
21634 * util/grub-fstest.c: Likewise.
21635 * util/grub-mkdevicemap.c: Likewise.
21636 * util/grub-mkfont.c: Likewise.
21637 * util/grub-mkrelpath.c: Likewise.
21638 * util/grub-pe2elf.c: Likewise.
21639 * util/grub-probe.c: Likewise.
21640 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
21641 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
21642 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21644 * util/misc.c: Include `"progname.h"'.
21645 (progname): Remove variable.
21646 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
21648 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21650 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
21651 printf and print a newline after the menuentry header line.
21652 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21654 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
21656 autoconf >= 2.60 support $(localedir).
21658 * INSTALL: Note that autoconf 2.60 is required.
21659 * configure.ac (AC_PREREQ): Bump to 2.60.
21660 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
21661 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21663 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
21665 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
21668 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21670 * normal/main.c (grub_normal_read_line): Fix off-by-one
21673 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
21675 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
21676 "parser.grub" in grub_command_execute() call.
21678 2009-11-24 Carles Pina i Estany <carles@pina.cat>
21680 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
21681 * conf/i386-efi.rmk: Likewise.
21682 * conf/i386-ieee1275.rmk: Likewise.
21683 * conf/i386-pc.rmk: Likewise.
21684 * conf/powerpc-ieee1275.rmk: Likewise.
21685 * conf/sparc64-ieee1275.rmk: Likewise.
21686 * conf/x86_64-efi.rmk: Likewise.
21687 * gettext/gettex.c: Include <grub/i18n.h>.
21688 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
21690 * include/grub/i18n.h: ... to here
21691 * include/grub/i18n.h: ... to here.
21692 * kern/misc.c: Include <grub/i18n.h>
21693 (grub_gettext_dummy): Move above user.
21695 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21697 * util/Makefile.in (install-local): Convert a `for' into a normal
21700 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
21702 * autogen.sh: Add automake call.
21703 * config.guess: Remove.
21704 * config.sub: Likewise.
21705 * install-sh: Likewise.
21707 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21709 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
21711 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21713 * util/Makefile.in (install-local): Convert a make `$(foreach)'
21714 function to a normal shell `for'.
21716 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21718 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
21720 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21722 * util/grub-mkrelpath.c: New file.
21723 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
21724 (grub_mkrelpath_SOURCES): New variable.
21725 * include/grub/util/misc.h: New function prototype.
21726 * util/misc.c (make_system_path_relative_to_its_root): New function.
21728 * util/grub-mkconfig_lib.in (bindir): New variable.
21729 (grub_mkrelpath): Likewise.
21730 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
21732 * util/probe.c (probe): Make the file path relative to its root.
21733 Change a info message to use the GRUB path. Enable again the
21734 check if we can read the file with GRUB facilities.
21736 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
21739 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21741 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
21744 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21746 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
21749 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
21751 * util/getroot.c (grub_util_is_dmraid): New function.
21752 (grub_util_get_dev_abstraction): Treat dmraid and multipath
21753 devices as normal ones, not as LVM.
21755 2009-11-23 Carles Pina i Estany <carles@pina.cat>
21757 * conf/common.rmk: Add grub-gettext_lib target and updates
21758 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
21760 * gettext/gettext.c: New file. (Reads mo files).
21761 * include/grub/file.h (grub_file_pread): New prototype.
21762 * include/grub/i18n.h (_): New prototype.
21763 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
21765 * kern/misc.c (grub_gettext_dummy): New function.
21766 * normal/menu_text.c: Include <grub/i18n.h>.
21767 * normal/menu_text.c (print_timeout): Gettexttize string.
21768 * normal/menu_text.c (print_message): Gettexttize string.
21769 * po/POTFILES: Add `normal/menu_text.c'.
21770 * po/ca.po: Add new translations.
21771 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
21772 gettext module and defines locale_dir and lang in grub.cfg.
21773 * NEWS: Add gettext support.
21775 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21777 * util/hostdisk.c: Include `<grub/i18n.h>'.
21778 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
21779 (make_device_name): Rewrite using asprintf.
21780 (convert_system_partition_to_system_disk): Replace 0 with NULL.
21781 (find_system_device): If a device is not found, generate one just
21782 by reusing the OS path name.
21783 (read_device_map): Make it permissible for device.map not to exist.
21785 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21787 * script/sh/execute.c: Move from here ...
21788 * script/execute.c: ... to here. Update all users.
21789 * script/sh/function.c: Move from here ...
21790 * script/function.c: ... to here. Update all users.
21791 * script/sh/lexer.c: Move from here ...
21792 * script/lexer.c: ... to here. Update all users.
21793 * script/sh/main.c: Move from here ...
21794 * script/main.c: ... to here. Update all users.
21795 * script/sh/parser.y: Move from here ...
21796 * script/parser.y: ... to here. Update all users.
21797 * script/sh/script.c: Move from here ...
21798 * script/script.c: ... to here. Update all users.
21800 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21802 * configure.ac: Detect all `emu' platforms. Define
21803 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
21804 --enable-grub-emu logic. Disable include/grub/machine
21805 symlink on `emu' platforms.
21807 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
21808 * gensymlist.sh.in: Likewise.
21810 * include/grub/i386/coreboot/machine.h: Remove file.
21811 * include/grub/i386/efi/machine.h: Likewise.
21812 * include/grub/i386/ieee1275/machine.h: Likewise.
21813 * include/grub/i386/pc/machine.h: Likewise.
21814 * include/grub/i386/qemu/machine.h: Likewise.
21815 * include/grub/powerpc/ieee1275/machine.h: Likewise.
21816 * include/grub/sparc64/ieee1275/machine.h: Likewise.
21817 * include/grub/x86_64/efi/machine.h: Likewise.
21819 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
21820 * commands/halt.c: Likewise.
21821 * commands/reboot.c: Likewise.
21822 * include/grub/autoefi.h: Likewise.
21823 * include/grub/i386/at_keyboard.h: Likewise.
21824 * include/grub/i386/kernel.h: Likewise.
21825 * include/grub/i386/loader.h: Likewise.
21826 * include/grub/i386/pc/memory.h: Likewise.
21827 * kern/dl.c: Likewise.
21828 * kern/i386/coreboot/init.c: Likewise.
21829 * loader/i386/bsd.c: Likewise.
21830 * loader/i386/linux.c: Likewise.
21831 * loader/multiboot_loader.c: Likewise.
21832 * term/i386/pc/serial.c: Likewise.
21833 * term/usb_keyboard.c: Likewise.
21835 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
21836 `<grub/machine/machine.h>'
21837 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
21838 * util/misc.c: Remove `<grub/machine/machine.h>' and
21839 `<grub/machine/time.h>'.
21841 * Makefile.in (enable_grub_emu): Remove variable.
21842 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
21844 * conf/any-emu.rmk: New file.
21845 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
21846 (grub_emu_init.c): Move from here ...
21847 * conf/any-emu.rmk: ... to here.
21849 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
21850 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
21851 * conf/any-emu.rmk: ... to here.
21853 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21855 * include/grub/parser.h (grub_parser_register): Document need
21856 of `name' parameter.
21857 * normal/main.c (grub_normal_read_line): Simplify prompt string.
21858 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
21861 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21863 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
21865 * include/grub/i18n.h (N_): New macro.
21866 * util/mkisofs/mkisofs.h: Likewise.
21867 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
21869 (usage): Use gettext() to translate help strings when printing them.
21871 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
21873 Based on patch from Bean
21874 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
21876 * video/efi_fb.c: New file.
21877 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
21878 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
21880 * conf/x86_64-efi.rmk: Likewise.
21882 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
21884 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
21885 * util/i386/pc/grub-setup.c: Likewise.
21887 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21889 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
21891 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
21892 file_get_storage_info to implement grub_guess_root_device.
21894 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21896 * Makefile.in (target): Use make's builtin $(shell) function
21897 instead of calling directly $(SHELL) to create the locale directories,
21898 inside the $(foreach) function.
21900 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21902 * util/grub-mkrescue.in: Print an error and usage if output option
21903 has not been given.
21905 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
21907 Patch from Loïc Minier <loic.minier@ubuntu.com>.
21908 * util/grub.d/30_os-prober.in: Cope with Linux entries where
21909 root and /boot are on different devices.
21911 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21913 Fix build for srcdir != objdir.
21915 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
21916 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
21918 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
21919 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
21920 reference for input.
21922 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21924 * util/grub-mkrescue.in: Use source directory direcly (without copiing
21925 or hardlinking it). Remove -J option, Joliet is not compatible with
21926 multiple source directories.
21928 2009-11-21 Carles Pina i Estany <carles@pina.cat>
21929 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
21931 * util/grub-mkrescue.in: Recognize `--override-directory' option.
21932 (process_input_dir): New function. Process an arbitrary input
21934 Misc adjustments to support both "override mode" and system-wide mode.
21936 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
21938 * configure.ac (UNIFONT_BDF): Rename to ...
21939 (FONT_SOURCE): ... this. Update all users.
21941 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
21943 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
21944 to the list of unifont files to look for.
21946 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21948 Patch from Joe Auricchio <jauricchio@gmail.com>
21949 * commands/minicmd.c (grub_mini_cmd_clear): New function.
21950 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
21951 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
21953 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
21955 * Makefile.in (install-local): Add a missing backslash.
21957 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
21959 * include/grub/x86_64/io.h: New file.
21961 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21963 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
21964 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
21965 Include `"progname.h"'.
21966 (main): Initialize gettext.
21967 * util/i386/pc/grub-setup.c: Gettexttize.
21968 * util/i386/pc/grub-mkimage.c: Likewise.
21970 * Makefile.in (po/*.po): Redefine as ...
21971 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
21973 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
21975 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
21977 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
21978 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
21979 (program_name): Remove.
21980 (main): Initialize gettext support.
21981 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
21982 Include `<libintl.h>'.
21985 * util/mkisofs/eltorito.c: Gettexttize.
21986 * util/mkisofs/joliet.c: Likewise.
21987 * util/mkisofs/mkisofs.c: Likewise.
21988 * util/mkisofs/multi.c: Likewise.
21989 * util/mkisofs/rock.c: Likewise.
21990 * util/mkisofs/tree.c: Likewise.
21991 * util/mkisofs/write.c: Likewise.
21993 * po/POTFILES: Update with new files.
21995 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
21997 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
21998 * util/mkisofs/iso9660.h: Likewise.
21999 * util/mkisofs/joliet.c: Likewise.
22000 * util/mkisofs/mkisofs.c: Likewise.
22001 * util/mkisofs/mkisofs.h: Likewise.
22002 * util/mkisofs/rock.c: Likewise.
22003 * util/mkisofs/tree.c: Likewise.
22004 * util/mkisofs/write.c: Likewise.
22006 * util/mkisofs/eltorito.c (rcsid): Remove.
22007 * util/mkisofs/hash.c: Likewise.
22008 * util/mkisofs/joliet.c: Likewise.
22009 * util/mkisofs/name.c: Likewise.
22010 * util/mkisofs/rock.c: Likewise.
22011 * util/mkisofs/tree.c: Likewise.
22012 * util/mkisofs/write.c: Likewise.
22014 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22016 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
22017 instead of static allocation.
22018 * util/mkisofs/match.h: Likewise.
22020 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22022 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
22023 and `util/grub.d/10_linux.in'.
22024 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
22025 translatable Shell files.
22027 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
22029 * Makefile.in ($(srcdir)/aclocal.m4): New target.
22031 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22033 * INSTALL: Document Automake is needed for bootstrap.
22034 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
22035 * util/grub.d/10_kfreebsd.in (bindir): New variable.
22036 Add gettext initialization.
22037 (kfreebsd_entry): Make menuentry output translatable.
22039 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22041 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
22042 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
22043 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
22044 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
22045 (LINGUAS): Auto-generate using `po/LINGUAS'.
22046 * po/LINGUAS: New file.
22048 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22050 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
22052 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
22053 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
22054 bindtextdomain() calls for gettext initialization.
22056 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22058 * gnulib/progname.c: New file (imported from Gnulib).
22059 * gnulib/progname.h: Likewise.
22060 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
22061 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
22062 (usage): Replace `progname' with `program_name'.
22063 (main): Use set_program_name() for program name initialization.
22065 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22067 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
22069 * Makefile.in (CPPFLAGS): ... to here.
22071 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22073 * aclocal.m4: Move from here ...
22074 * acinclude.m4: ... to here.
22075 * autogen.sh: Add call to `aclocal'.
22076 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
22078 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22080 * Makefile.in (CLEANFILES): Add `po/*.mo'.
22081 (LINGUAS): New variable.
22082 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
22083 (install-local): Install MO files.
22084 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
22085 * include/grub/i18n.h: New file.
22086 * po/POTFILES: New file.
22087 * po/ca.po: New file.
22088 * util/grub.d/10_linux.in (bindir): New variable.
22089 Add gettext initialization.
22090 (linux_entry): Make menuentry output translatable.
22091 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
22092 (usage): Make --help output translatable.
22093 (main): Initialize gettext.
22095 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22097 * import_gcry.py: New file (written by Vladimir with minor
22099 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
22101 * INSTALL: Document that Python is required for bootstrap.
22103 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
22105 Import ciphers from libgcrypt 1.4.4.
22107 * lib/libgcrypt/cipher/ChangeLog
22108 * lib/libgcrypt/cipher/ac.c
22109 * lib/libgcrypt/cipher/arcfour.c
22110 * lib/libgcrypt/cipher/bithelp.h
22111 * lib/libgcrypt/cipher/blowfish.c
22112 * lib/libgcrypt/cipher/camellia-glue.c
22113 * lib/libgcrypt/cipher/camellia.c
22114 * lib/libgcrypt/cipher/camellia.h
22115 * lib/libgcrypt/cipher/cast5.c
22116 * lib/libgcrypt/cipher/cipher.c
22117 * lib/libgcrypt/cipher/crc.c
22118 * lib/libgcrypt/cipher/des.c
22119 * lib/libgcrypt/cipher/dsa.c
22120 * lib/libgcrypt/cipher/ecc.c
22121 * lib/libgcrypt/cipher/elgamal.c
22122 * lib/libgcrypt/cipher/hash-common.c
22123 * lib/libgcrypt/cipher/hash-common.h
22124 * lib/libgcrypt/cipher/hmac-tests.c
22125 * lib/libgcrypt/cipher/md.c
22126 * lib/libgcrypt/cipher/md4.c
22127 * lib/libgcrypt/cipher/md5.c
22128 * lib/libgcrypt/cipher/primegen.c
22129 * lib/libgcrypt/cipher/pubkey.c
22130 * lib/libgcrypt/cipher/rfc2268.c
22131 * lib/libgcrypt/cipher/rijndael-tables.h
22132 * lib/libgcrypt/cipher/rijndael.c
22133 * lib/libgcrypt/cipher/rmd.h
22134 * lib/libgcrypt/cipher/rmd160.c
22135 * lib/libgcrypt/cipher/rsa.c
22136 * lib/libgcrypt/cipher/seed.c
22137 * lib/libgcrypt/cipher/serpent.c
22138 * lib/libgcrypt/cipher/sha1.c
22139 * lib/libgcrypt/cipher/sha256.c
22140 * lib/libgcrypt/cipher/sha512.c
22141 * lib/libgcrypt/cipher/tiger.c
22142 * lib/libgcrypt/cipher/twofish.c
22143 * lib/libgcrypt/cipher/whirlpool.c
22145 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22147 Fix build for systems without error().
22149 * gnulib/error.c: New file (imported from Gnulib).
22150 * gnulib/error.h: Likewise.
22151 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
22152 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
22153 (this variable is now used by error()).
22155 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
22157 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
22158 instead of relying that char is signed.
22160 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22162 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
22163 blocksize different from specified.
22164 (grub_pxefs_read): Likewise.
22166 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
22168 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
22170 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
22171 (grub_ata_readwrite): Likewise. Update 2 format strings.
22172 (grub_atapi_read): Likewise.
22174 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
22175 * conf/i386.rmk (pkglib_MODULES): ... to here ...
22176 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
22177 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
22178 (ata_mod_LDFLAGS): Move from here ...
22179 * conf/i386.rmk: ... to here ...
22180 * conf/x86_64-efi.rmk: ... and here.
22181 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
22182 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
22184 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
22186 Relicense multiboot.h, with RMS' blessing.
22188 * include/multiboot.h: Change to X11 license.
22190 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
22192 Support --version in grub-mkisofs.
22194 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
22195 (OPTION_VERSION): New macro.
22196 (ld_options): Recognize --version.
22197 (usage): Move `program_name' from here ...
22198 (program_name): ... to here. Add `static' qualifier.
22199 (main): Recognize `OPTION_VERSION'.
22201 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
22203 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
22204 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
22206 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
22208 Fix help2man generation for mkisofs.
22210 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
22211 (usage): Send output to stdout (rather than stderr).
22213 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
22215 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
22216 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
22217 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
22218 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
22219 (bin_SCRIPTS): Add `grub-mkfloppy'.
22220 (grub_mkfloppy_SOURCES): New variable.
22222 * util/grub-mkrescue.in: New file.
22223 * util/i386/pc/grub-mkfloppy.in: New file.
22225 * util/i386/coreboot/grub-mkrescue.in: Remove.
22226 * util/i386/pc/grub-mkrescue.in: Remove.
22228 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22230 * include/grub/multiboot.h (struct grub_multiboot_header): Move
22232 * include/multiboot.h (struct multiboot_header): ... to here. Update
22234 * include/grub/multiboot.h (struct grub_multiboot_info): Move
22236 * include/multiboot.h (struct multiboot_info): ... to here. Update
22238 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
22240 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
22242 * include/grub/multiboot.h (struct grub_mod_list): Move
22244 * include/multiboot.h (struct multiboot_mod_list): ... to here.
22247 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22249 * include/multiboot2.h (multiboot_word): Rename from this ...
22250 (multiboot2_word): ... to this. Update all users.
22251 (multiboot_header): Rename from this ...
22252 (multiboot2_header): ... to this. Update all users.
22253 (multiboot_tag_header): Rename from this ...
22254 (multiboot2_tag_header): ... to this. Update all users.
22255 (multiboot_tag_start): Rename from this ...
22256 (multiboot2_tag_start): ... to this. Update all users.
22257 (multiboot_tag_name): Rename from this ...
22258 (multiboot2_tag_name): ... to this. Update all users.
22259 (multiboot_tag_module): Rename from this ...
22260 (multiboot2_tag_module): ... to this. Update all users.
22261 (multiboot_tag_memory): Rename from this ...
22262 (multiboot2_tag_memory): ... to this. Update all users.
22263 (multiboot_tag_unused): Rename from this ...
22264 (multiboot2_tag_unused): ... to this. Update all users.
22265 (multiboot_tag_end): Rename from this ...
22266 (multiboot2_tag_end): ... to this. Update all users.
22268 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
22270 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
22271 this platform we should support Multiboot1 first.
22273 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
22274 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
22275 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
22277 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
22279 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
22280 of write calls (converting them to fwrite() if they aren't already).
22281 (get_torito_desc): Likewise.
22282 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
22284 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
22286 * util/i386/pc/grub-install.in: Move from here ...
22287 * util/grub-install.in: ... to here. Update all users.
22289 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
22291 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
22293 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
22295 Support for El Torito without floppy emulation.
22297 * util/mkisofs/eltorito.c: Include `<errno.h>'.
22298 (init_boot_catalog): Improve error handling.
22299 (get_torito_desc): Don't use floppy emulation unless requested by
22300 user. Patch boot information table when requested via
22301 `-boot-info-table'.
22302 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
22303 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
22304 (use_boot_info_table): New variables.
22305 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
22306 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
22307 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
22308 `--eltorito-emul-floppy'.
22309 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
22310 and `OPTION_ELTORITO_EMUL_FLOPPY'.
22311 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
22312 (use_boot_info_table, get_731): New prototypes.
22313 * util/mkisofs/write.c (get_731): New function.
22315 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
22317 Fix the generation of the man page.
22319 * util/pc/i386/grub-install.in: Source
22320 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
22322 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
22324 Large file support for grub-mkisofs.
22326 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
22327 * util/mkisofs/mkisofs.c (next_extent, last_extent)
22328 (session_start): Upgrade type to `uint64_t'. Update all users.
22329 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
22330 (struct directory_entry): Upgrade type of `starting_block' and
22331 `size' to `uint64_t'. Update all users.
22332 (struct deferred): Remove unused structure.
22333 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
22335 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
22336 file is larger than `UINT32_MAX'.
22337 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
22338 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
22340 (struct deferred_write): Upgrade type of `extent' and `size' to
22341 `uint64_t'. Update all users.
22342 (last_extent_written): Upgrade type to `uint64_t'. Update all
22344 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
22345 Update all users. Upgrade type of `remain' to `int64_t' and
22346 `use' to `size_t'. Use error() to handle fread() errors.
22347 (write_files): Rely on write_one_file() rather than calling
22348 xfwrite() directly.
22350 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
22352 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
22354 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22356 * util/mkisofs/fnmatch.c: Remove.
22357 * util/mkisofs/getopt1.c: Likewise.
22358 * util/mkisofs/getopt.c: Likewise.
22359 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
22360 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
22361 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
22362 `gnulib/getopt1.c' and `gnulib/getopt.c'.
22363 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
22365 * configure.ac: Detect `mingw32msvc' host_os.
22366 Check for lstat(), getuid() and getgid().
22368 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
22369 instances of `u_char' with `uint8_t'.
22371 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
22372 [!HAVE_GETUID] (getuid): New function (stub).
22373 [!HAVE_GETGID] (getgid): Likewise.
22374 [!HAVE_LSTAT] (lstat): Likewise.
22375 [!S_IROTH] (S_IROTH): New macro (dummy).
22376 [!S_IRGRP] (S_IRGRP): Likewise.
22378 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22380 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
22381 conditional expression).
22383 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22385 Import from Gnulib.
22387 * gnulib/fnmatch.c: New file.
22388 * gnulib/fnmatch.h: Likewise.
22389 * gnulib/fnmatch_loop.c: Likewise.
22390 * gnulib/getopt.c: Likewise.
22391 * gnulib/getopt.h: Likewise.
22392 * gnulib/getopt1.c: Likewise.
22393 * gnulib/getopt_int.h: Likewise.
22394 * gnulib/gettext.h: Likewise.
22396 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22398 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
22399 * normal/handler.c (read_handler_list): Likewise.
22401 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22405 * kern/command.c (grub_register_command_prio): Use
22406 grub_zalloc() instead of explicitly zeroing data.
22407 * kern/list.c: Include `<grub/mm.h>'.
22408 (grub_named_list_find): Replace `0' with `NULL'.
22409 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
22410 (fs_module_list): Change type to `grub_named_list_t'. Update all
22412 * normal/dyncmd.c (read_command_list): Add space between function
22413 call and parenthesis.
22414 * normal/handler.c (read_handler_list): Likewise.
22416 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22418 * normal/auth.c (punishment_delay): Moved from here ...
22419 (grub_auth_strcmp): ... to here (inside function).
22421 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22423 * include/grub/list.h (struct grub_named_list): Remove `const'
22424 qualifier from `name'.
22425 (struct grub_prio_list): Likewise.
22427 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22429 * normal/auth.c: Include `<grub/time.h>'.
22430 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
22432 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22434 * normal/auth.c (punishment_delay): New variable.
22435 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
22436 (grub_auth_check_authentication): Punish failed login attempts with
22437 an incremental (2^N) delay.
22439 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22441 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
22442 path with $(srcdir).
22444 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
22446 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
22448 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22450 * util/i386/coreboot/grub-mkrescue.in: New file.
22451 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
22454 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
22455 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
22456 * configure.ac: Add header and function checks to satisfy grub-mkisofs
22458 * util/mkisofs/defaults.h: New file.
22459 * util/mkisofs/eltorito.c: Likewise.
22460 * util/mkisofs/exclude.h: Likewise.
22461 * util/mkisofs/fnmatch.c: Likewise.
22462 * util/mkisofs/getopt.c: Likewise.
22463 * util/mkisofs/getopt1.c: Likewise.
22464 * util/mkisofs/hash.c: Likewise.
22465 * util/mkisofs/include/fctldefs.h: Likewise.
22466 * util/mkisofs/include/mconfig.h: Likewise.
22467 * util/mkisofs/include/prototyp.h: Likewise.
22468 * util/mkisofs/include/statdefs.h: Likewise.
22469 * util/mkisofs/iso9660.h: Likewise.
22470 * util/mkisofs/joliet.c: Likewise.
22471 * util/mkisofs/match.c: Likewise.
22472 * util/mkisofs/match.h: Likewise.
22473 * util/mkisofs/mkisofs.c: Likewise.
22474 * util/mkisofs/mkisofs.h: Likewise.
22475 * util/mkisofs/multi.c: Likewise.
22476 * util/mkisofs/name.c: Likewise.
22477 * util/mkisofs/rock.c: Likewise.
22478 * util/mkisofs/tree.c: Likewise.
22479 * util/mkisofs/write.c: Likewise.
22481 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
22483 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
22486 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22488 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
22489 `grub-mkimage' (and use $0 when possible).
22491 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22493 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
22494 error message for excessively large memory map.
22496 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22498 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
22501 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
22503 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
22504 message for coreboot users.
22506 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
22508 Fix build with GNU gold.
22510 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
22511 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
22512 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
22514 * aclocal.m4: Likewise.
22516 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
22518 * configure.ac (AC_PREREQ): Bump to 2.59d.
22519 * INSTALL: Make it more clear when Autoconf and Ruby are
22520 needed and when to run `./autogen.sh'.
22522 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22524 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
22527 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22529 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
22531 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22533 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
22534 giving it to GNU Mach.
22536 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22538 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
22539 GNU partition number to get internal GRUB partition number.
22541 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
22543 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
22544 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
22546 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
22548 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
22549 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
22552 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
22554 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
22556 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22560 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
22561 `-isystem=$(srcdir)/include'.
22563 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
22565 * util/i386/pc/grub-install.in: Remove hint that device.map should be
22566 checked (grub-install doesn't currently rely on it).
22568 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
22572 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
22573 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22574 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
22575 * conf/i386-ieee1275.rmk: Likewise.
22576 * conf/i386-pc.rmk: Likewise.
22577 * conf/powerpc-ieee1275.rmk: Likewise.
22578 * conf/sparc64-ieee1275.rmk: Likewise.
22579 * conf/x86_64-efi.rmk: Likewise.
22581 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22583 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
22585 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22587 * include/grub/misc.h: Stop checking for APPLE_CC.
22589 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
22591 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
22592 doesn't cause an infinite call loop.
22594 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
22596 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
22599 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22601 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
22603 * Makefile.in: Likewise.
22605 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22607 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
22609 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22611 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
22613 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22615 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
22617 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22619 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
22621 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
22623 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22625 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
22626 in $(MAKEINFO) invocation. This makes it clear in output that
22627 errors are being ignored.
22629 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22631 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
22633 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
22634 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
22635 * conf/i386-ieee1275.rmk: Likewise.
22636 * conf/i386-pc.rmk: Likewise.
22637 * conf/powerpc-ieee1275.rmk: Likewise.
22638 * conf/sparc64-ieee1275.rmk: Likewise.
22639 * conf/x86_64-efi.rmk: Likewise.
22641 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22643 * util/grub-editenv.c (main): If only a command is given, use
22644 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
22645 (usage): FILENAME is now optional and has a default.
22647 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
22649 Improve grub-mkconfig performance when there are several menu
22650 entries on a single filesystem.
22652 * util/grub.d/10_linux.in (linux_entry): Cache the output of
22653 prepare_grub_to_access_device.
22654 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22655 * util/grub.d/30_os-prober.in: Likewise.
22657 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22659 * util/grub.d/10_freebsd.in: Remove.
22660 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
22661 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
22663 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
22665 * docs/grub.cfg: Fix example usage of *BSD loaders.
22667 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22669 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
22670 grub_util_error() call.
22672 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22674 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
22675 `reserved_first_sector' member.
22676 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
22677 `reserved_first_sector' to 1.
22678 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
22679 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
22680 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
22681 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
22682 filesystems which begin at first sector.
22683 (options): New option --skip-fs-probe.
22684 (main): Handle --skip-fs-probe and pass it to setup().
22686 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22688 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
22689 (memset): Fix function prototype.
22691 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22692 2009-10-25 Vasily Averin <vvs@parallels.com>
22694 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
22695 `dirent.direntlen == 0'.
22697 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22699 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
22701 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
22703 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22705 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
22706 `__trampoline_setup' and `__ucmpdi2'.
22707 * include/grub/powerpc/libgcc.h: Only export symbols for functions
22708 that libgcc provides.
22710 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22712 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
22713 * include/grub/sparc64/libgcc.h (memset): Likewise.
22714 * include/grub/misc.h (memset, memcmp): New function prototypes.
22716 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22718 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
22720 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
22722 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
22724 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
22725 * docs/grub.cfg: Compensate for recent change in multiboot
22726 loader (since 2009-08-14 it won't pass filename to payload).
22727 * util/grub.d/10_hurd.in: Likewise.
22729 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
22731 * config.guess: Update to latest version from config git
22733 * config.sub: Likewise.
22735 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
22737 Fix build on sparc64.
22739 * configure.ac: Perform checks for libgcc symbols before
22740 adding `-nostdlib' to LDFLAGS.
22742 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22744 Let user specify OpenBSD root device.
22746 * loader/i386/bsd.c (openbsd_root): New variable.
22747 (openbsd_opts): New option 'root'.
22748 (OPENBSD_ROOT_ARG): New macro.
22749 (grub_openbsd_boot): Use 'openbsd_root'.
22750 (grub_cmd_openbsd): Fill 'openbsd_root'.
22752 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22754 * NEWS: Misc adjustments.
22756 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22758 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
22760 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
22762 * configure.ac: Bump version to 1.97.
22764 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
22766 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
22767 -mno-3dnow on x86 architectures. Some toolchains enable these
22768 features by default, but they rely on registers that aren't enabled
22769 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
22771 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
22773 Make entry text a bit more readable.
22775 * util/grub.d/10_linux.in: Add `with' before `Linux'.
22777 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22779 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
22781 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22783 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
22786 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22788 * configure.ac: Add missing dollar.
22790 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
22792 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
22794 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
22795 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
22797 * include/grub/sparc64/libgcc.h: Likewise. Use
22798 preprocessor conditionals.
22800 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22802 * conf/common.rmk (grub-dumpbios): Remove rule.
22803 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
22804 * util/grub-dumpbios.in: Remove file.
22806 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
22808 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
22809 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
22811 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
22812 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
22815 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
22816 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
22817 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
22818 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
22821 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
22823 * term/tparm.c: Switch to GPLv3.
22825 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22827 * include/grub/i386/cpuid.h: Add header protection.
22829 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
22831 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
22833 * include/grub/i386/cpuid.h: New file.
22834 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
22835 (has_longmode): Rename to ...
22836 (grub_cpuid_has_longmode): ... this. Update all users. Remove
22837 `static' attribute.
22838 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
22839 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
22840 on a CPU that doesn't implement AMD64 instruction set.
22842 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22844 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
22845 that version.texi is rebuilt on version number changes.
22847 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22849 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
22852 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
22854 * util/i386/pc/grub-install.in: Source
22855 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
22856 that the --grub-probe option will work.
22857 * util/sparc64/ieee1275/grub-install.in: Likewise.
22859 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
22861 * configure.ac: Bump version to 1.97~beta4.
22863 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
22865 Resync grub-mkdevicemap in x86_64-efi.
22867 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
22868 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
22869 `util/devicemap.c'.
22871 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
22873 * util/grub-editenv.c (create_envblk_file): Write new block with a
22874 .new suffix and then rename it into place, to ensure atomic
22877 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
22879 Do not automatically install headers.
22881 * Makefile.in (include_DATA): Remove. Update all users.
22883 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
22885 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
22886 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
22888 * util/osdetect.lua: Remove.
22889 * script/lua/lauxlib.c: Likewise.
22890 * script/lua/ldebug.c: Likewise.
22891 * script/lua/grub_main.c: Likewise.
22892 * script/lua/lauxlib.h: Likewise.
22893 * script/lua/ldebug.h: Likewise.
22894 * script/lua/ltablib.c: Likewise.
22895 * script/lua/liolib.c: Likewise.
22896 * script/lua/lstrlib.c: Likewise.
22897 * script/lua/lualib.h: Likewise.
22898 * script/lua/ldo.c: Likewise.
22899 * script/lua/ldump.c: Likewise.
22900 * script/lua/ldo.h: Likewise.
22901 * script/lua/loslib.c: Likewise.
22902 * script/lua/lundump.c: Likewise.
22903 * script/lua/grub_lib.c: Likewise.
22904 * script/lua/ldblib.c: Likewise.
22905 * script/lua/lundump.h: Likewise.
22906 * script/lua/lmem.c: Likewise.
22907 * script/lua/grub_lib.h: Likewise.
22908 * script/lua/lmathlib.c: Likewise.
22909 * script/lua/lstate.c: Likewise.
22910 * script/lua/ltm.c: Likewise.
22911 * script/lua/lvm.c: Likewise.
22912 * script/lua/lmem.h: Likewise.
22913 * script/lua/lstate.h: Likewise.
22914 * script/lua/ltm.h: Likewise.
22915 * script/lua/ltable.c: Likewise.
22916 * script/lua/lvm.h: Likewise.
22917 * script/lua/llex.c: Likewise.
22918 * script/lua/lgc.c: Likewise.
22919 * script/lua/grub_lua.h: Likewise.
22920 * script/lua/loadlib.c: Likewise.
22921 * script/lua/lfunc.c: Likewise.
22922 * script/lua/lopcodes.c: Likewise.
22923 * script/lua/lparser.c: Likewise.
22924 * script/lua/ltable.h: Likewise.
22925 * script/lua/llex.h: Likewise.
22926 * script/lua/lgc.h: Likewise.
22927 * script/lua/lfunc.h: Likewise.
22928 * script/lua/lbaselib.c: Likewise.
22929 * script/lua/lopcodes.h: Likewise.
22930 * script/lua/lparser.h: Likewise.
22931 * script/lua/lzio.c: Likewise.
22932 * script/lua/linit.c: Likewise.
22933 * script/lua/lobject.c: Likewise.
22934 * script/lua/llimits.h: Likewise.
22935 * script/lua/lstring.c: Likewise.
22936 * script/lua/lzio.h: Likewise.
22937 * script/lua/lapi.c: Likewise.
22938 * script/lua/lcode.c: Likewise.
22939 * script/lua/lua.h: Likewise.
22940 * script/lua/lobject.h: Likewise.
22941 * script/lua/lstring.h: Likewise.
22942 * script/lua/lapi.h: Likewise.
22943 * script/lua/lcode.h: Likewise.
22944 * script/lua/luaconf.h: Likewise.
22946 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
22948 * docs/grub.texi (Command-line and menu entry commands): Document
22949 date and echo commands.
22951 2009-09-24 Pavel Roskin <proski@gnu.org>
22953 * include/grub/kernel.h (struct grub_module_header): Remove
22954 `grub_module_header_types'. Make `type' unsigned. Make `size'
22955 32-bit on all platforms.
22956 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
22957 8-bit field. Use grub_host_to_target32() for `size'.
22958 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
22959 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
22960 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
22962 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22964 Fix "lost keypress" bug in at_keyboard.
22966 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
22967 Checks for readyness of input buffer (without flushing it).
22968 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
22969 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
22971 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22973 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
22974 size check within GRUB_MACHINE_PCBIOS section.
22976 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
22978 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
22980 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
22981 KEYBOARD_ISREADY check.
22982 (grub_at_keyboard_checkkey): Rename to ...
22983 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
22984 Remove gratuitous cast.
22986 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
22988 * configure.ac: Call AC_PROG_MKDIR_P.
22989 * Makefile.in (docs/stamp-vti): Create docs directory. Create
22990 version.texi in $(builddir) rather than $(srcdir).
22991 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
22992 to makeinfo's @include search path.
22994 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
22996 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
22998 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
23000 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
23003 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
23005 Build info documentation. Some code borrowed from Automake.
23007 * configure.ac: Check for makeinfo.
23008 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
23009 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
23011 (MOSTLYCLEANFILES): Add vti.tmp.
23012 (docs/version.texi, docs/stamp-vti): Update automatically.
23013 (docs/grub.info): Build info documentation. Use --force and ignore
23015 (all-local): Add $(INFOS).
23016 (install-local): Install info files.
23017 (uninstall): Uninstall info files.
23018 * docs/version.texi: Remove from revision control. This file is
23019 automatically generated on build now.
23020 * gendistlist.sh: Add `*.info'.
23022 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
23024 * kern/term.c: Fix indentation.
23026 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
23028 * util/hostdisk.c: Fix a comment.
23030 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
23032 Fix regression introduced in r2539.
23034 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
23037 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
23039 * util/grub.d/30_os-prober.in: Don't throw away stderr from
23040 os-prober. Under normal operation, it does not print anything to
23041 stderr; if it does, we need to debug it, and throwing away stderr
23042 makes that excessively difficult.
23044 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
23046 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
23048 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
23050 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
23051 AC_LANG_PROGRAM from autoconf.
23052 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
23053 prototypes (fixes warning).
23055 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
23056 `--disable-werror' was used.
23058 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
23060 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
23061 uninitialized `lastaddr'.
23063 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23065 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
23067 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
23069 * commands/test.c (get_fileinfo): Return immediately if
23070 grub_fs_probe fails.
23072 2009-09-14 José Martínez <xosemp@gmail.com>
23074 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
23076 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
23078 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
23081 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
23083 * configure.ac: Remove --enable-grub-pe2elf. Only build
23084 grub-pe2elf when needed by the build system itself.
23085 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
23087 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
23089 * configure.ac: Bump version to 1.97~beta3.
23090 * docs/version.texi: Likewise.
23092 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
23094 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
23095 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
23097 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
23098 (grub_linux_setup_video): ... to here (with some adjustments).
23100 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
23102 Fix memory corruption issue (spotted by Colin Watson).
23104 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
23105 causing returned size to be stored in an incorrect memory location.
23106 Fix use of uninitialized value when storing the returned size.
23108 2009-09-12 Yves Blusseau <blusseau@zetam.org>
23110 Change clean rules to properly remove files
23112 * genmk.rb: add new clean rules
23113 * Makefile.in (clean): add the new targets
23114 (mostlyclean): likewise
23116 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
23118 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
23120 * fs/ntfs.c (init_file): Understand 64-bit sizes for
23121 non-resident files.
23123 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
23125 * configure.ac: Don't look for help2man when cross-compiling. Fixes
23126 part of bug #27349.
23128 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
23130 * util/grub-mkconfig.in: Make the created config mode 400 and
23131 print a warning if it fails.
23133 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
23135 * util/grub.d/40_custom.in: Ask user to type custom entries below
23136 comment, rather than below 'exec tail' line.
23138 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
23140 * util/grub.d/40_custom.in: Make sure that the explanatory text is
23141 visible in grub.cfg.
23143 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
23145 * util/grub.d/40_custom.in: Make it a little clearer how to use this
23148 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
23150 * docs/grub.cfg: Add an example menu entry for memtest86+.
23152 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
23154 * config.guess: Update to latest version from config git.
23155 * config.sub: Likewise.
23157 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
23159 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
23160 unknown-command case. Fixes bug #27320.
23162 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
23164 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
23165 `help' if the command exists.
23167 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
23169 * INSTALL: Require GCC 4.1.3 or later.
23171 2009-09-06 Yves Blusseau <blusseau@zetam.org>
23173 * Makefile.in (RMKFILES): add i386-qemu.rmk
23174 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
23175 $(srcdir)/stamp-h.in
23177 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
23179 * util/grub-probe.c (probe): Comment out buggy codepath, which
23180 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
23181 should be re-enabled after 1.97.
23183 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
23185 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
23188 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
23190 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
23191 unnecessary calls to grub_error.
23193 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
23195 * NEWS: Mention `keystatus' and Unicode fonts.
23197 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
23199 * configure.ac: Bump version to 1.97~beta2.
23200 * docs/version.texi: Likewise.
23202 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
23204 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
23205 containing unwind information in some cases where it previously did
23206 not. Use -fno-dwarf2-cfi-asm if available to restore the old
23207 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
23210 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
23212 Embedding loadenv module into grub-emu
23214 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
23216 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
23217 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
23218 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
23219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
23220 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
23221 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
23223 2009-09-03 Magnus Granberg <zorry@ume.nu>
23225 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
23226 include -fPIE in the default specs.
23227 * configure.ac: Check if pie_possible is yes and add -fno-PIE
23230 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
23232 * INSTALL: Note that GNU Bison 2.3 or later is required.
23234 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
23236 * kern/i386/pc/startup.S: Fix typo.
23238 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
23240 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
23243 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23245 * docs/grub.texi (Naming convention): Describe one-based partition
23247 (Device syntax): Likewise.
23248 (File name syntax): Likewise.
23249 (Block list syntax): Likewise.
23250 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
23252 (File name syntax): Likewise.
23253 (Command-line and menu entry commands): Document acpi, blocklist,
23254 crc, export, insmod, keystatus, ls, set, and unset commands.
23256 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23258 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
23259 to avoid implying that only one of --shift, --ctrl, or --alt may be
23262 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
23264 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
23265 rather than comparing against S_IFREG, which will almost never work.
23267 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
23269 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
23270 (write_blocklists): Likewise.
23272 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
23274 * script/lua/grub_lua.h (fputs): Supply a format string as the first
23275 argument to grub_printf.
23277 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
23279 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
23282 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23284 * kern/file.c (grub_file_read): Spelling fix
23286 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
23288 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
23289 loading of headers in some cases.
23291 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
23293 * configure.ac: Bump version to 1.97~beta1.
23294 * docs/version.texi: Likewise.
23296 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
23298 * include/grub/i386/xnu.h: Add license header.
23299 include grub/err.h explicitly.
23301 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
23303 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
23304 to `ufs' in the vfs.root.mountfrom kernel parameter.
23306 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
23308 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
23310 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
23311 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
23313 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
23314 `ARRAY_SIZE' macro.
23316 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23318 * kern/file.c (grub_file_read): Check offset.
23319 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
23320 * fs/jfs.c (grub_jfs_read_file): Likewise.
23321 * fs/ntfs.c (grub_ntfs_read): Likewise.
23322 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
23323 * fs/minix.c (grub_minix_read_file): Correct offset check.
23324 * fs/ufs.c (grub_ufs_read_file): Likewise.
23326 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23328 * term/i386/pc/console.c (bios_data_area): Cast
23329 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
23331 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23333 1-bit optimised blitters.
23335 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
23337 (grub_video_fbblit_replace_24bit_1bit): Likewise.
23338 (grub_video_fbblit_replace_16bit_1bit): Likewise.
23339 (grub_video_fbblit_replace_8bit_1bit): Likewise.
23340 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
23341 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
23342 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
23343 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
23345 (grub_video_fbblit_replace_24bit_1bit): Likewise.
23346 (grub_video_fbblit_replace_16bit_1bit): Likewise.
23347 (grub_video_fbblit_replace_8bit_1bit): Likewise.
23348 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
23349 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
23350 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
23351 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
23353 * video/video.c (grub_video_get_blit_format): Return
23354 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
23356 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23358 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
23359 the first argument to grub_printf.
23361 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
23362 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
23364 Add `getkeystatus' terminal method. Add a new `keystatus' command
23367 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
23368 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
23369 modifier key bitmasks.
23370 (struct grub_term_input): Add `getkeystatus' member.
23371 (grub_getkeystatus): Add prototype.
23372 * kern/term.c (grub_getkeystatus): New function.
23374 * include/grub/i386/pc/memory.h
23375 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
23376 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
23378 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
23379 (grub_console_term_input): Set `getkeystatus' member.
23380 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
23382 (grub_usb_keyboard_getreport): Likewise.
23383 (grub_usb_keyboard_checkkey): Likewise.
23384 (grub_usb_keyboard_getkeystatus): New function.
23385 (grub_usb_keyboard_term): Set `getkeystatus' member.
23387 * commands/keystatus.c: New file.
23388 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
23389 (keystatus_mod_SOURCES): New variable.
23390 (keystatus_mod_CFLAGS): Likewise.
23391 (keystatus_mod_LDFLAGS): Likewise.
23392 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
23393 commands/keystatus.c.
23394 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23395 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23396 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23397 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23398 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23399 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23401 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
23403 Split befs.mod and afs.mod into *_be.mod and *.mod
23405 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
23406 (grub_fstest_SOURCES): Likewise.
23407 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
23408 (afs_be_mod_SOURCES): New variable.
23409 (afs_be_mod_CFLAGS): Likewise.
23410 (afs_be_mod_LDFLAGS): Likewise.
23411 (befs_be_mod_SOURCES): Likewise.
23412 (befs_be_mod_CFLAGS): Likewise.
23413 (befs_be_mod_LDFLAGS): Likewise.
23414 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
23415 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23416 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23417 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23418 (grub_emu_SOURCES): Likewise.
23419 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23420 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23421 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23422 * fs/afs_be.c: New file.
23423 * fs/befs_be.c: New file.
23424 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
23425 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
23426 (U16): Replaced with ...
23427 (grub_afs_to_cpu16): ...this. All users updated.
23428 (U32): Replaced with ...
23429 (grub_afs_to_cpu32): ...this. All users updated.
23430 (U64): Replaced with ...
23431 (grub_afs_to_cpu64): ...this. All users updated.
23432 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
23433 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
23434 (grub_afs_validate_sblock): Check only one endianness.
23435 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
23436 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
23437 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
23438 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
23439 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
23440 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
23441 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
23442 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
23444 2009-08-26 Bean <bean123ch@gmail.com>
23446 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
23448 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
23449 (grub_xfs_inode_block): Change return type to grub_uint64_t.
23450 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
23452 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23454 NetBSD memory map support.
23456 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
23457 (grub_netbsd_btinfo_mmap_header): New structure.
23458 (grub_netbsd_btinfo_mmap_entry): Likewise.
23459 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
23461 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23463 Enable bsd.mod on coreboot.
23465 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
23466 (bsd_mod_SOURCES): New variable.
23467 (bsd_mod_CFLAGS): Likewise.
23468 (bsd_mod_LDFLAGS): Likewise.
23469 (bsd_mod_ASFLAGS): Likewise.
23470 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
23471 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
23473 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23475 Cleanup NetBSD root support.
23477 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
23478 grub_bsd_get_device.
23481 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
23483 * util/grub.d/00_header.in: Move check for the video backend of
23484 gfxterm from here ...
23485 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
23486 a suitable video backend.
23488 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23490 Fix breakage in grub-setup.
23492 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
23493 "msdos_partition_map".
23495 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23497 Fix breakage in normal/auth.c.
23499 * normal/auth.c (grub_iswordseparator): New function.
23501 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
23503 Authentication support.
23505 * commands/password.c: New file.
23506 * conf/common.rmk (pkglib_MODULES): Add password.mod.
23507 (password_mod_SOURCES): New variable.
23508 (password_mod_CFLAGS): Likewise.
23509 (password_mod_LDFLAGS): Likewise.
23510 (normal_mod_SOURCES): Add normal/auth.c.
23511 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
23513 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23514 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23515 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23516 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23517 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23518 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23519 * include/grub/auth.h: New file.
23520 * include/grub/err.h (grub_err_t): New enum value
23521 GRUB_ERR_ACCESS_DENIED.
23522 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
23524 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
23525 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
23527 * normal/auth.c: New file.
23528 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
23529 (grub_cmdline_run): Don't allow to go to command line without
23531 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
23532 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
23533 menuentry without superuser rights.
23534 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
23535 user isn't a superuser.
23537 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23539 Save space by inlining misc.c functions.
23541 * kern/misc.c (grub_iswordseparator): Made static.
23542 * kern/misc.c (grub_strcat): Moved from here ...
23543 * include/grub/misc.h (grub_strcat): ... here. Inlined.
23544 * kern/misc.c (grub_strncat): Moved from here ...
23545 * include/grub/misc.h (grub_strncat): ... here. Inlined.
23546 * kern/misc.c (grub_strcasecmp): Moved from here ...
23547 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
23548 * kern/misc.c (grub_strncasecmp): Moved from here ...
23549 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
23550 * kern/misc.c (grub_isalpha): Moved from here ...
23551 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
23552 * kern/misc.c (grub_isdigit): Moved from here ...
23553 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
23554 * kern/misc.c (grub_isgraph): Moved from here ...
23555 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
23556 * kern/misc.c (grub_tolower): Moved from here ...
23557 * include/grub/misc.h (grub_tolower): ... here. Inlined.
23559 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23561 * script/sh/function.c (grub_script_function_find): Cut error message
23562 not to flood terminal.
23563 * script/sh/lexer.c (grub_script_yylex): Remove command line length
23565 * script/sh/script.c (grub_script_arg_add): Duplicate string.
23567 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
23569 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
23570 `report' grub_uint8_t *.
23571 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
23572 Use a 50-millisecond timeout rather than just repeating
23573 grub_usb_keyboard_getreport 50 times.
23574 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
23576 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23578 Rename *_partition_map to part_*
23580 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
23581 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
23582 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
23583 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
23585 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
23587 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
23588 * util/grub-probe.c (probe_partmap): Don't transform partition name
23589 to get module name.
23591 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23593 Fix OpenBSD and NetBSD support.
23595 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
23596 memory address conflict.
23597 (OPENBSD_MMAP_ACPI): New definition.
23598 (OPENBSD_MMAP_NVS): Likewise.
23599 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
23600 and OPENBSD_MMAP_NVS.
23601 Add memory map terminator
23602 Explicit cast when calling grub_unix_real_boot.
23603 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
23605 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23607 Let user specify NetBSD root device.
23609 * loader/i386/bsd.c (netbsd_root): New variable.
23610 (netbsd_opts): New option 'root'.
23611 (NETBSD_ROOT_ARG): New macro.
23612 (grub_netbsd_boot): Use 'netbsd_root'.
23613 (grub_bsd_unload): Free 'netbsd_root'.
23614 (grub_cmd_netbsd): Fill 'netbsd_root'.
23616 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23618 Support for 64-bit NetBSD.
23620 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
23621 point when booting non-FreeBSD.
23623 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
23625 Support --no-smp and --no-acpi for NetBSD.
23627 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
23628 (NETBSD_AB_NOACPI): Likewise.
23629 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
23630 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
23632 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23634 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
23636 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
23637 errors. Call grub_error when needed.
23639 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23641 * commands/search.c (search_fs): Try searching without autoload first.
23642 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
23643 filesystem module explicitly for faster booting.
23645 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23647 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
23649 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
23651 * util/grub.d/30_os-prober.in: Disable os-prober if
23652 `GRUB_DISABLE_OS_PROBER' was set to true.
23654 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
23656 * partmap/pc.c: Rename to ...
23657 * partmap/msdos.c: ... this. Update all users.
23658 (grub_pc_partition_map): Rename to ...
23659 (grub_msdos_partition_map): ... this. Update all users.
23661 * parttool/pcpart.c: Rename to ...
23662 * parttool/msdospart.c: ... this. Update all users.
23664 * include/grub/pc_partition.h: Rename to ...
23665 * include/grub/msdos_partition.h: ... this. Update all users.
23666 (grub_pc_partition_bsd_entry): Rename to ...
23667 (grub_msdos_partition_bsd_entry): ... this. Update all users.
23668 (grub_pc_partition_disk_label): Rename to ...
23669 (grub_msdos_partition_disk_label): ... this. Update all users.
23670 (grub_pc_partition_entry): Rename to ...
23671 (grub_msdos_partition_entry): ... this. Update all users.
23672 (grub_pc_partition_mbr): Rename to ...
23673 (grub_msdos_partition_mbr): ... this. Update all users.
23674 (grub_pc_partition): Rename to ...
23675 (grub_msdos_partition): ... this. Update all users.
23676 (grub_pc_partition_is_empty): Rename to ...
23677 (grub_msdos_partition_is_empty): ... this. Update all users.
23678 (grub_pc_partition_is_extended): Rename to ...
23679 (grub_msdos_partition_is_extended): ... this. Update all users.
23680 (grub_pc_partition_is_bsd): Rename to ...
23681 (grub_msdos_partition_is_bsd): ... this. Update all users.
23683 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
23684 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
23685 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
23686 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
23687 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
23688 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
23689 (gpt_mod_LDFLAGS): Rename to ...
23690 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
23691 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
23692 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
23693 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
23694 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
23695 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
23696 (part_gpt_mod_LDFLAGS): ... this.
23697 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
23698 `pcpart.mod' to `msdospart.mod'.
23699 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
23701 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
23702 (msdospart_mod_LDFLAGS): ... this.
23704 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
23706 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
23707 (openbsd_opts): Likewise.
23708 (netbsd_opts): Likewise.
23709 (freebsd_flags): Added 0 terminator.
23710 (openbsd_flags): Likewise.
23711 (netbsd_flags): Likewise.
23712 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
23713 (grub_cmd_freebsd): Transformed into extended command.
23714 (grub_cmd_openbsd): Likewise.
23715 (grub_cmd_netbsd): Likewise.
23716 (cmd_freebsd): Changed type to grub_extcmd_t.
23717 (cmd_openbsd): Likewise.
23718 (cmd_netbsd): Likewise.
23719 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
23720 grub_cmd_openbsd as extended commands.
23721 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
23722 cmd_netbsd and cmd_openbsd
23724 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
23726 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
23728 2009-08-21 Pavel Roskin <proski@gnu.org>
23730 * Makefile.in (install-local): When checking if a file is in the
23731 build directory, use "test -e" to detect symlinks.
23733 * Makefile.in (install-local): Remove all files in
23734 $(DESTDIR)$(pkglibdir) before installing new files there.
23736 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23738 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
23741 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
23743 * util/grub-mkconfig.in: Don't use gfxterm by default if not
23744 explicitly specified by the user.
23746 2009-08-18 Pavel Roskin <proski@gnu.org>
23748 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
23749 grub_uint8_t pointer for data.
23750 * include/grub/fbutil.h (struct grub_video_fbblit_info):
23752 * video/fb/fbutil.c: Remove unnecessary casts.
23754 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23758 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
23759 (grub_vbe_set_video_mode): Save active mode info
23760 only after setting the mode.
23761 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
23764 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23766 Rename variables for clarity.
23768 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
23769 (active_vbe_mode_info): ... this. All users updated.
23770 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
23772 (initial_mode): Rename to ...
23773 (initial_vbe_mode): ... this. All users updated.
23774 (mode_in_use): Rename to ..
23775 (vbe_mode_in_use): ... this. All users updated.
23776 (mode_list): Rename to ..
23777 (vbe_mode_list): ... this. All users updated.
23778 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
23779 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
23780 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
23781 'mode_list_size' to 'vbe_mode_list_size'.
23782 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
23783 'best_mode_info' to 'best_vbe_mode_info' and
23784 'best_mode' to 'best_vbe_mode'
23786 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
23788 Remove duplicate grub_video_fb_get_video_ptr.
23790 * include/grub/fbutil.h (get_data_ptr): Rename to ...
23791 (grub_video_fb_get_video_ptr): ... this.
23792 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
23793 * video/fb/fbutil.c: Add comment about addressing.
23794 (get_data_ptr): Rename to ...
23795 (grub_video_fb_get_video_ptr): ... this. All users updated.
23796 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
23798 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23800 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
23801 grub_dprintf() that was just added.
23803 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
23805 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
23806 (DEFAULT_VIDEO_MODE): Remove macros.
23807 (grub_linux_boot): Remove assumption that Linux has FB support,
23808 and use "text" as default video mode.
23810 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
23812 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
23814 * fs/fat.c (grub_fat_read_data): Likewise.
23816 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23818 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
23820 (grub_module): Likewise.
23822 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23824 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
23825 mbi->cmdline but free playground.
23827 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23829 Handle group offset on UFS1.
23831 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
23832 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
23834 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23836 Split ufs.mod into ufs1.mod and ufs2.mod.
23838 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
23839 (grub_fstest_SOURCES): Likewise.
23840 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
23841 (ufs_mod_SOURCES): Remove.
23842 (ufs_mod_CFLAGS): Likewise.
23843 (ufs_mod_LDFLAGS): Likewise.
23844 (ufs1_mod_SOURCES): New variable.
23845 (ufs1_mod_CFLAGS): Likewise.
23846 (ufs1_mod_LDFLAGS): Likewise.
23847 (ufs2_mod_SOURCES): New variable.
23848 (ufs2_mod_CFLAGS): Likewise.
23849 (ufs2_mod_LDFLAGS): Likewise.
23850 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
23851 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23853 (grub_emu_SOURCES): Likewise.
23854 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23855 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23856 (grub_setup_SOURCES): Likewise.
23857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23858 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
23859 (grub_setup_SOURCES): Likewise.
23860 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
23862 * fs/ufs2.c: New file.
23863 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
23865 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
23869 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
23870 subsystem at the end.
23871 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
23872 (video_fb_mod_SOURCES): New variable.
23873 (video_fb_mod_CFLAGS): Likewise.
23874 (video_fb_mod_LDFLAGS): Likewise.
23875 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
23876 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
23877 * video/i386/pc/vbeblit.c: Moved from here ...
23878 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
23879 * video/i386/pc/vbefill.c: Moved from here ...
23880 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
23881 * video/i386/pc/vbeutil.c: Moved from here ...
23882 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
23883 * include/grub/i386/pc/vbeblit.h: Moved from here ...
23884 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
23885 * include/grub/i386/pc/vbefill.h: Moved from here ...
23886 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
23887 * include/grub/i386/pc/vbeutil.h: Moved from here ...
23888 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
23889 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
23890 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
23891 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
23892 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
23893 (grub_video_adapter): Added 'get_info_and_fini'.
23894 (grub_video_get_info_and_fini): New prototype.
23895 (grub_video_set_mode): make modestring const char *.
23896 * loader/i386/linux.c (grub_linux_setup_video): Use
23897 grub_video_get_info_and_fini.
23898 (grub_linux_boot): Move modesetting just before booting.
23899 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
23900 grub_video_get_info_and_fini.
23901 * video/i386/pc/vbe.c: Moved framebuffer part ...
23902 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
23903 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
23904 grub_video_fbstd_colors and grub_video_fb_set_palette.
23905 (grub_video_vbe_init): Clear 'framebuffer' variable and use
23906 grub_video_fb_init.
23907 (grub_video_vbe_fini): Use grub_video_fb_fini.
23908 (grub_video_vbe_setup): Use framebuffer.render_target instead of
23909 render_target and use grub_video_fb_set_active_render_target and
23910 grub_video_fb_set_palette.
23911 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
23912 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
23913 (grub_video_vbe_adapter): Use framebuffer.
23914 * video/video.c (grub_video_get_info_and_fini): New function.
23915 (grub_video_set_mode): Make modestring const char *.
23916 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
23917 values are already initialised.
23919 2009-08-14 Pavel Roskin <proski@gnu.org>
23921 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
23923 * boot/i386/pc/diskboot.S: Likewise.
23924 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
23925 sectors allow compilation on MacOSX.
23926 * conf/i386-pc.rmk: Enable unconditional compilation of
23929 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
23931 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
23932 * util/grub.d/00_header.in: Enter interruptible sleep if
23933 GRUB_HIDDEN_TIMEOUT is set.
23935 2009-08-13 Yves Blusseau <blusseau@zetam.org>
23937 * include/grub/symbol.h: Add the LOCAL macro.
23938 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
23939 starting with "L_".
23941 2009-08-13 Pavel Roskin <proski@gnu.org>
23943 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
23944 any modern compilers we support.
23946 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
23947 Use local labels starting with "L_" so that Apple assembler
23948 knows they are local.
23950 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
23952 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
23953 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
23954 (bsd_kernel_types): ... this enum.
23956 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
23957 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
23958 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
23960 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
23961 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
23962 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
23965 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
23967 * util/grub-dumpdevtree: Moved from here ...
23968 * util/i386/efi/grub-dumpdevtree: ... to here.
23969 (hexify): New function. Converts a string to its hex version.
23970 Generate hex versions of "efi" and "device-properties" by calling
23971 hexify() on the ASCII strings rather than by hardcoding numbers.
23973 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
23975 * fs/jfs.c: Update copyright year.
23977 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
23979 * util/grub.d/00_header.in: Fix a comment.
23980 * util/grub.d/10_linux.in: Likewise.
23981 * util/grub.d/10_windows.in: Likewise.
23982 * util/grub.d/10_hurd.in: Likewise.
23984 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
23986 * util/grub-mkconfig.in: Allow the user to specify the used font
23989 2009-08-08 Pavel Roskin <proski@gnu.org>
23991 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
23992 available, xfs.mod needs it now.
23994 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
23995 the "g" modifier in sed when the intention is to strip something
23996 once. This fixes comparison of kernels with multiple dashes.
23998 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
23999 on it. Add missing space before closing bracket. Fix
24000 misleading formatting.
24002 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24004 * docs/grub.texi: Major overhaul. Remove all sections that are
24005 specific to GRUB Legacy, or mostly composed of Legacy-specific
24008 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24010 * docs/version.texi: New file. Provides version information for
24013 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24015 * docs/grub.texi: Update CVS information to SVN.
24016 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
24018 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24020 * util/grub-mkconfig.in: Remove a wrong `fi'.
24022 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24024 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
24025 (grub_jfs_uuid): New function.
24026 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
24028 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
24030 * util/grub-mkconfig_lib.in (font_path): Move the functionality
24032 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
24033 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
24035 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24037 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
24038 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
24041 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
24042 not just "vmlinu[zx]".
24043 Moved from here ...
24044 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
24047 * util/grub.d/10_linux.in (find_latest): Moved from here ...
24048 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
24051 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
24053 * util/grub.d/10_freebsd.in: Use an absolute device path for
24054 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
24056 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
24058 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
24059 handling of multiple abstraction modules.
24061 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
24063 Fix a bug resulting in black screen when loading Linux using a
24066 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
24069 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
24070 (grub_vbe_bios_getset_dac_palette_width): New function.
24071 (grub_vbe_bios_get_dac_palette_width)
24072 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
24073 grub_vbe_bios_getset_dac_palette_width()).
24075 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
24076 check for return status.
24077 (grub_vbe_get_video_mode_info): When getting information for a packed
24078 mode (<= 8 bpp), obtain DAC palette width using
24079 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
24080 {red,green,blue}_mark_size.
24082 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
24084 * commands/search.c (options): Fix help output to match actual code.
24086 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
24088 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
24091 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24093 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
24094 on XFS or ReiserFS.
24096 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24098 Support Apple partition map with sector size different from 512 bytes.
24100 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
24101 (apple_partition_map_iterate): Respect 'aheader.blocksize'
24102 and 'apart.partmap_size'.
24104 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
24105 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
24109 * commands/i386/cpuid.c (options): New variable.
24110 (grub_cmd_cpuid): Return real error.
24111 (GRUB_MOD_INIT(cpuid)): Declare options.
24113 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
24115 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
24118 2009-07-31 Bean <bean123ch@gmail.com>
24120 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
24122 (grub_fshelp_node): Move inode field to the end.
24123 (grub_xfs_data): Remove inode field.
24124 (grub_xfs_inode_block): Calculate inode size using sblock.
24125 (grub_xfs_inode_offset): Likewise.
24126 (grub_xfs_read_inode): Calculate inode size using sblock.
24127 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
24128 (grub_xfs_iterate_dir): Calculate inode size using sblock.
24129 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
24130 to match inode size.
24131 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
24132 not accessible when data is null.
24133 (grub_xfs_open): Likewise.
24135 2009-07-31 Bean <bean123ch@gmail.com>
24137 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
24138 Don't change pv->disk if it's already set.
24140 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
24141 (grub_raid_register): ... here.
24142 (grub_raid_rescan): Removed.
24144 * include/grub/raid.h (grub_raid_rescan): Removed.
24146 * util/grub-fstest.c: Remove include file <grub/raid.h>.
24147 (fstest): Replace grub_raid_rescan with module fini function followed
24150 * util/grub-probe.c: Add include file <grub/raid.h>.
24151 (probe_raid_level): New function.
24152 (probe): Detect abstraction by walking the disk device, support two
24153 level of abstraction (LVM on RAID) when detecting partition map.
24155 2009-07-31 Pavel Roskin <proski@gnu.org>
24157 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
24158 to grub_zalloc(), it was erroneous.
24159 Reported by Bean <bean123ch@gmail.com>
24161 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
24163 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
24164 embedding zone, not only the first one.
24166 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
24168 * term/gfxterm.c (clear_char): New function.
24169 (grub_virtual_screen_setup): Use clear_char.
24170 (scroll_up): Likewise.
24171 (grub_virtual_screen_cls): Likewise.
24173 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
24175 * util/deviceiter.c (get_acceleraid_disk_name): New static
24177 (grub_util_iterate_devices): Handle Accelraid devices.
24178 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
24180 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
24182 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
24183 separator for the suggested gfxpayload string (';' collides with the
24184 parser and needs escaping).
24186 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
24188 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
24189 Clear direction flag before jumping to OS.
24190 (grub_multiboot2_real_boot): Likewise.
24192 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
24194 * util/i386/pc/grub-install: Fix parsing of --disk-module
24197 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
24199 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
24202 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
24204 * util/grub-mkconfig.in (package_version): New variable.
24205 Use it do display the version.
24207 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
24209 * kern/file.c (grub_file_open): Revert to previous check with
24212 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
24214 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
24215 from help line. It's out of sync with code.
24217 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
24219 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
24220 entries on failed boot.
24222 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
24224 * kern/file.c (grub_file_open): Fix an error check.
24226 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
24228 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
24229 partition map couldn't be identified.
24231 2009-07-23 Pavel Roskin <proski@gnu.org>
24233 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
24234 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
24235 case of little endian words becomes just an optimization.
24236 Respect const modifier.
24237 (md5_final): Use code that doesn't depend on endianness.
24239 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
24240 to avoid loss of upper bits if align is unsigned and shorter
24243 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
24245 UUID support for UFS
24247 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
24248 (grub_ufs_uuid): New function.
24249 (grub_ufs_fs): add .uuid
24251 2009-07-21 Pavel Roskin <proski@gnu.org>
24253 * kern/dl.c (grub_dl_check_header): Make static.
24255 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
24257 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
24258 add drivemap for Vista. It breaks Windows 7.
24260 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
24262 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
24265 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24269 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
24270 (grub_fstest_SOURCES): Likewise.
24271 (pkglib_MODULES): Add befs.mod.
24272 (befs_mod_SOURCES): New variable.
24273 (befs_mod_CFLAGS): Likewise.
24274 (befs_mod_LDFLAGS): Likewise.
24275 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24276 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24277 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24278 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24279 (grub_setup_SOURCES): Likewise.
24280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24281 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24282 (grub_setup_SOURCES): Likewise.
24283 * fs/befs.c: New file.
24284 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
24285 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
24286 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
24287 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
24288 (B_KEY_INDEX_ALIGN): New declaration.
24289 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
24290 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
24291 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
24292 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
24293 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
24294 (grub_afs_mount) [MODE_BFS]: Likewise.
24295 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
24296 (grub_afs_fs): Use GRUB_AFS_FSNAME
24297 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
24298 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
24299 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
24300 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
24302 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
24304 * util/getroot.c (find_root_device): Add support for MacOSX.
24305 * util/hostdisk.c: Likewise.
24307 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24309 * font/font.c (find_glyph): Check whether a font is present to avoid
24310 segmentation fault.
24312 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
24314 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
24316 2009-07-20 Pavel Roskin <proski@gnu.org>
24318 * configure.ac: Trim excessively wordy excuses.
24320 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24322 Add symlink, mtime and label support to AtheFS.
24324 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
24325 (grub_afs_iterate_dir): Handle symlinks.
24326 (grub_afs_open): Use grub_afs_read_symlink.
24327 (grub_afs_dir): Likewise.
24329 (grub_afs_label): New function.
24330 (grub_afs_fs): Add grub_afs_label.
24331 (grub_afs_read_symlink): New function.
24333 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
24335 Fix AtheFS support.
24337 * fs/afs.c: Fix comments style.
24338 (grub_afs_blockrun): Declare as packed.
24339 (grub_afs_datastream): Likewise.
24340 (grub_afs_bnode): Likewise.
24341 (grub_afs_btree): Likewise.
24342 (grub_afs_sblock): Likewise.
24343 Declare `name' as char.
24344 (grub_afs_inode): Declare as packed.
24345 Change void *vnode to grub_uint32_t unused.
24346 (grub_afs_iterate_dir): Check that key_size is positive.
24347 (grub_afs_mount): Don't read superblock twice.
24348 (grub_afs_dir): Don't free node in case of error,
24349 grub_fshelp_find_file already handles this.
24350 (grub_afs_open): Likewise.
24352 2009-07-19 Pavel Roskin <proski@gnu.org>
24354 * Makefile.in: Remove LIBLZO and enable_lzo.
24355 * conf/i386-pc.rmk: Remove lzo support.
24356 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
24357 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
24359 * kern/i386/pc/lzo1x.S: Remove.
24360 * kern/i386/pc/startup.S: Remove lzo support.
24361 * util/i386/pc/grub-mkimage.c: Likewise.
24363 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
24365 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
24366 * fs/xfs.c (grub_xfs_dir): Likewise.
24367 * fs/afs.c (grub_afs_dir): Likewise.
24368 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
24369 (grub_iso9660_open): Likewise.
24370 * fs/jfs.c (grub_jfs_open): Likewise.
24371 * fs/ext2.c (grub_ext2_dir): Likewise.
24372 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
24373 * script/sh/lexer.c (grub_script_yylex): Likewise.
24375 2009-07-16 Pavel Roskin <proski@gnu.org>
24377 * configure.ac: Never add "-c" to CFLAGS.
24379 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
24381 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
24382 grub_cv_cc_efiemu should be used.
24384 * configure.ac: Typo fixes.
24386 * kern/mm.c (grub_zalloc): New function.
24387 (grub_debug_zalloc): Likewise.
24388 * include/grub/mm.h: Declare grub_zalloc() and
24389 grub_debug_zalloc().
24390 * util/misc.c (grub_zalloc): New function.
24391 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
24392 instead of grub_malloc(), remove unneeded initializations.
24393 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
24394 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
24395 * commands/parttool.c (grub_cmd_parttool): Likewise.
24396 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
24397 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
24398 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
24399 * disk/usbms.c (grub_usbms_finddevs): Likewise.
24400 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
24401 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
24402 (grub_cmd_efiemu_pnvram): Likewise.
24403 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
24404 * fs/iso9660.c (grub_iso9660_mount): Likewise.
24405 (grub_iso9660_iterate_dir): Likewise.
24406 * fs/jfs.c (grub_jfs_opendir): Likewise.
24407 * fs/ntfs.c (list_file): Likewise.
24408 (grub_ntfs_mount): Likewise.
24409 * kern/disk.c (grub_disk_open): Likewise.
24410 * kern/dl.c (grub_dl_load_core): Likewise.
24411 * kern/elf.c (grub_elf_file): Likewise.
24412 * kern/env.c (grub_env_context_open): Likewise.
24413 (grub_env_set): Likewise.
24414 (grub_env_set_data_slot): Likewise.
24415 * kern/file.c (grub_file_open): Likewise.
24416 * kern/fs.c (grub_fs_blocklist_open): Likewise.
24417 * loader/i386/multiboot.c (grub_module): Likewise.
24418 * loader/xnu.c (grub_xnu_create_key): Likewise.
24419 (grub_xnu_create_value): Likewise.
24420 * normal/main.c (grub_normal_add_menu_entry): Likewise.
24421 (read_config_file): Likewise.
24422 * normal/menu_entry.c (make_screen): Likewise.
24423 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24424 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
24425 * script/sh/script.c (grub_script_parse): Likewise.
24426 * video/bitmap.c (grub_video_bitmap_create): Likewise.
24427 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
24428 * video/readers/png.c (grub_png_output_byte): Likewise.
24429 (grub_video_reader_png): Likewise.
24431 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24433 Enable all targets that can be built by default
24435 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
24436 grub-mkfont and grub-fstest if they can be built
24438 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24440 Fix hang and segmentation fault in grub-emu-usb
24442 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
24443 * util/usb.c (grub_libusb_devices): likewise
24444 (grub_libusb_init): rename to ...
24445 (GRUB_MOD_INIT (libusb)):...this
24446 (grub_libusb_fini): rename to ..
24447 (GRUB_MOD_FINI (libusb)):...this
24448 * disk/usbms.c (grub_usbms_transfer): fix retry logic
24449 * include/grub/disk.h (grub_raid_init): removed, it's useless
24450 (grub_raid_fini): likewise
24451 (grub_lvm_init): likewise
24452 (grub_lvm_fini): likewise
24453 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
24456 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24460 * Makefile.in (LIBUSB): new macro
24461 * genmk.rb (Utility/print_tail): new method
24462 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
24463 (top level): call util.print_tail at the end.
24465 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24467 Make FreeBSD accept zpool.cache
24469 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
24470 type is /boot/zfs/zpool.cache
24472 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
24476 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
24477 correct wrong typedef
24478 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
24480 2009-07-15 Pavel Roskin <proski@gnu.org>
24482 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
24483 * kern/disk.c (struct grub_disk_cache): Likewise.
24485 * commands/probe.c (options): Typo fix.
24487 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
24488 Increase to 0x5a to accommodate FAT32. Adjust other offsets
24490 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
24492 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
24493 the end of "Error" to make the message more readable.
24495 * boot/i386/pc/boot.S (kernel_segment): Remove.
24496 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
24499 * boot/i386/pc/boot.S (boot_version): Remove.
24500 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
24503 * include/grub/i386/pc/boot.h: Sort all offsets.
24504 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
24505 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
24506 * boot/i386/pc/boot.S: Assert location of every offset listed in
24507 include/grub/i386/pc/boot.h.
24509 2009-07-13 Pavel Roskin <proski@gnu.org>
24511 * include/grub/i386/coreboot/machine.h: Rename
24512 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
24513 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
24514 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
24516 * kern/dl.c: Force native word size to suppress warnings when
24517 compiling grub-emu.
24519 * kern/device.c (grub_device_iterate): Change struct part_ent to
24520 hold the name, not a pointer to it. Use one grub_malloc() per
24521 partition, not two. Free partition_name if grub_malloc() fails.
24522 Set ents to NULL only before grub_partition_iterate() is called.
24524 2009-07-11 Bean <bean123ch@gmail.com>
24526 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
24529 2009-07-10 Bean <bean123ch@gmail.com>
24530 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
24532 * kern/ieee1275/openfw.c (grub_children_iterate)
24533 (grub_devalias_iterate): Fix size evaluation for property or path
24534 strings, which was broken since r2132.
24536 2009-07-07 Pavel Roskin <proski@gnu.org>
24538 * commands/search.c (search_file): Merge into ...
24539 (search_fs): ... this. Accept search type as argument.
24540 (grub_cmd_search): Pass search type to search_fs().
24542 * include/grub/util/console.h: New file.
24543 * util/console.c: Use it instead of grub/machine/console.h.
24544 * util/grub-emu.c: Likewise.
24546 * lib/arg.c (find_long_option): Remove.
24547 (find_long): Add `len' argument, make `s' const char *.
24548 (grub_arg_parse): Parse long options in place, not in a
24551 2009-07-06 Pavel Roskin <proski@gnu.org>
24553 * commands/search.c (search_fs): Fix potential NULL pointer
24556 * commands/search.c (search_fs): Replace QUID macro with quid_fn
24559 2009-07-06 Daniel Mierswa <impulze@impulze.org>
24561 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
24564 2009-07-05 Pavel Roskin <proski@gnu.org>
24566 * include/grub/i386/linux.h (struct linux_kernel_params):
24567 Restore padding3, it's still needed.
24569 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
24571 * util/osdetect.lua: Likewise.
24573 2009-07-05 Bean <bean123ch@gmail.com>
24575 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
24577 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
24578 (grub_lua_getenv): Likewise.
24579 (grub_lua_setenv): Likewise.
24580 (save_errno): New function.
24581 (push_result): Likewise.
24582 (grub_lua_enum_device): Likewise.
24583 (grub_lua_enum_file): Likewise.
24584 (grub_lua_file_open): Likewise.
24585 (grub_lua_file_close): Likewise.
24586 (grub_lua_file_seek): Likewise.
24587 (grub_lua_file_read): Likewise.
24588 (grub_lua_file_getline): Likewise.
24589 (grub_lua_file_getsize): Likewise.
24590 (grub_lua_file_getpos): Likewise.
24591 (grub_lua_file_eof): Likewise.
24592 (grub_lua_file_exist): Likewise.
24593 (grub_lua_add_menu): Likewise.
24595 * script/lua/grub_lua.h (isupper): New inline function.
24596 (islower): Likewise.
24597 (ispunct): Likewise.
24598 (isxdigit): Likewise.
24599 (strcspn): Change to normal function.
24600 (strpbkr): New function declaration.
24601 (memchr): Likewise.
24603 * script/lua/grub_main.c (scan_str): New function.
24604 (strcspn): Likewise.
24605 (strpbrk): Likewise.
24606 (memchr): Likewise.
24608 * script/lua/linit.c (lualibs): Enable the string library.
24610 * util/osdetect.lua: New file.
24612 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
24614 * include/grub/i386/linux.h (struct linux_kernel_params): Add
24615 `capabilities' member.
24617 2009-07-02 Pavel Roskin <proski@gnu.org>
24619 * genparttoollist.sh: Add missing newline at the end.
24621 2009-07-01 Pavel Roskin <proski@gnu.org>
24623 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
24625 * util/hostdisk.c (open_device): Remove `const' from
24626 `sysctl_size', as sysctlbyname() can change it (in this case it
24627 doesn't actually happen).
24629 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
24630 using signed long int constants.
24632 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
24633 constant to avoid a warning on FreeBSD.
24635 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
24638 * Makefile.in: Install include/grub/machine symlink.
24640 * Makefile.in: When installing symlinks, use "cp -fR", which
24641 works on FreeBSD and MacOSX.
24642 From Yves Blusseau <cl7m42e02@sneakemail.com>
24644 * kern/dl.c (grub_dl_resolve_symbol): Make static.
24645 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
24647 * util/misc.c: Move grub_reboot() and grub_halt() ...
24648 * util/grub-emu.c: ... here. Make main_env static.
24649 * include/grub/util/misc.h: Remove main_env.
24651 * kern/mm.c: Use correct format to print size_t.
24653 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
24654 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
24655 * kern/powerpc/dl.c: Likewise.
24656 * kern/sparc64/dl.c: Likewise.
24657 * kern/x86_64/dl.c: Likewise.
24659 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24661 Fix grub-emu build on sparc64-ieee1275.
24663 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
24664 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
24666 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24668 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
24669 (grub_reboot, grub_halt): New functions.
24671 * util/i386/pc/misc.c: Delete. Update all users.
24672 * util/sparc64/ieee1275/misc.c: Likewise.
24673 * util/powerpc/ieee1275/misc.c: Likewise.
24675 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24677 * conf/i386.rmk (setjmp_mod_SOURCES)
24678 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
24679 * conf/common.rmk (setjmp_mod_SOURCES)
24680 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
24681 to use $(target_cpu).
24682 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
24683 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
24684 * conf/powerpc-ieee1275.rmk: Likewise.
24685 * conf/sparc64-ieee1275.rmk: Likewise.
24687 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
24688 $(target_cpu) for kern/$(target_cpu)/dl.c.
24689 * conf/i386-efi.rmk: Likewise.
24690 * conf/i386-ieee1275.rmk: Likewise.
24691 * conf/x86_64-efi.rmk: Likewise.
24692 * conf/i386-coreboot.rmk: Likewise.
24693 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
24694 $(target_cpu) for kern/$(target_cpu)/dl.c and for
24695 kern/$(target_cpu)/cache.S.
24696 * conf/sparc64-ieee1275.rmk: Likewise.
24698 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
24700 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
24701 type to `grub_uint8_t', and adjust `padding9' accordingly.
24703 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24705 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
24707 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
24708 assembly in final jump, using register constraints.
24710 (grub_linux_boot): For text mode, initialize `have_vga' using
24711 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
24713 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
24714 right before the final jump.
24716 Set `video_mode' to 0x3.
24718 Document initialization of `video_page', `video_mode' and
24721 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24723 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
24724 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
24725 and set GRUB_LINUX_FLAG_QUIET appropriately.
24727 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
24729 Fix build on Debian / sparc.
24731 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
24733 2009-06-28 Pavel Roskin <proski@gnu.org>
24735 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
24738 * util/grub.d/10_linux.in: Match SUSE style initrd names.
24740 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24742 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
24745 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24749 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
24750 file can't be opened. grub_file_open() is already supposed to set
24751 grub_errno / grub_errmsg appropriately.
24752 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24754 2009-06-27 Pavel Roskin <proski@gnu.org>
24755 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
24757 * include/grub/dl.h: Include grub/elf.h.
24758 (struct grub_dl): Add symtab field.
24759 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
24760 GRUB_MODULES_MACHINE_READONLY.
24761 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
24762 of the header for read-only modules.
24763 (grub_dl_unload): Free mod->symtab for read-only modules.
24764 * kern/i386/dl.c: Use mod->symtab.
24765 * kern/powerpc/dl.c: Likewise.
24766 * kern/sparc64/dl.c: Likewise.
24767 * kern/x86_64/dl.c: Likewise.
24769 * conf/i386-qemu.rmk: New file.
24770 * kern/i386/qemu/startup.S: Likewise.
24771 * kern/i386/qemu/mmap.c: Likewise.
24772 * boot/i386/qemu/boot.S: Likewise.
24773 * include/grub/i386/qemu/time.h: Likewise.
24774 * include/grub/i386/qemu/serial.h: Likewise.
24775 * include/grub/i386/qemu/kernel.h: Likewise.
24776 * include/grub/i386/qemu/console.h: Likewise.
24777 * include/grub/i386/qemu/boot.h: Likewise.
24778 * include/grub/i386/qemu/init.h: Likewise.
24779 * include/grub/i386/qemu/machine.h: Likewise.
24780 * include/grub/i386/qemu/loader.h: Likewise.
24781 * include/grub/i386/qemu/memory.h: Likewise.
24783 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
24784 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
24785 [qemu] (pkglib_IMAGES): Add `boot.img'.
24786 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
24787 [qemu] (boot_img_FORMAT): New variables.
24788 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
24789 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
24790 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
24791 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24792 [qemu] (kernel_img_FORMAT): New variables.
24794 * configure.ac: Recognise `i386-qemu'.
24796 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
24797 (for no compression).
24798 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
24799 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
24800 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
24801 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
24804 2009-06-27 Pavel Roskin <proski@gnu.org>
24806 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
24808 * efiemu/prepare32.c: Likewise.
24809 * efiemu/prepare64.c: Likewise.
24811 2009-06-26 Pavel Roskin <proski@gnu.org>
24813 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
24814 * include/grub/elf.h: Define symbols without "32" or "64" based
24815 on GRUB_TARGET_WORDSIZE.
24816 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
24817 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
24819 * efiemu/loadcore64.c: Likewise.
24820 * loader/i386/bsd32.c: Likewise.
24821 * loader/i386/bsd64.c: Likewise.
24822 * kern/dl.c: Remove own ELF definitions.
24823 * util/i386/efi/grub-mkimage.c: Likewise.
24825 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
24827 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
24828 segment 0x0 unconditionally, because the reference generated by
24829 GAS is an absolute address.
24831 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24833 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
24834 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
24836 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24838 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
24839 indexes. Check for -f explicitly.
24840 (search_file): Improve error message.
24841 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
24843 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24845 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
24846 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
24848 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24850 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
24851 * conf/i386-ieee1275.rmk: Likewise.
24852 * conf/i386-coreboot.rmk: Likewise.
24854 * kern/i386/pc/startup.S (grub_stop): Remove function.
24855 * kern/i386/ieee1275/startup.S: Likewise.
24856 * kern/i386/coreboot/startup.S: Likewise.
24857 * kern/i386/misc.S (grub_stop): New function.
24859 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24861 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
24862 * kern/i386/realmode.S (real_to_prot): ... to here.
24864 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
24866 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
24868 (kernel_elf_SOURCES): Rename to ...
24869 (kernel_img_SOURCES): ... this.
24870 (kernel_elf_HEADERS): Rename to ...
24871 (kernel_img_HEADERS): ... this. Update all users.
24872 (kernel_elf_ASFLAGS): Rename to ...
24873 (kernel_img_ASFLAGS): ... this.
24874 (kernel_elf_CFLAGS): Rename to ...
24875 (kernel_img_CFLAGS): ... this.
24876 (kernel_elf_LDFLAGS): Rename to ...
24877 (kernel_img_LDFLAGS): ... this.
24878 * conf/i386-coreboot.rmk: Likewise.
24879 * conf/powerpc-ieee1275.rmk: Likewise.
24881 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
24884 2009-06-21 Pavel Roskin <proski@gnu.org>
24886 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
24887 to match nested functions.
24888 * loader/sparc64/ieee1275/linux.c: Likewise.
24890 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
24892 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24894 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
24895 all i386 platforms.
24897 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
24899 Fix asm file handling on ELF, and remove workarounds.
24901 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
24902 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
24903 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
24904 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
24906 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
24908 Load BSD ELF modules
24910 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
24911 and loader/i386/bsd64.c
24912 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
24913 (FREEBSD_MODTYPE_ELF_MODULE): New definition
24914 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
24915 (grub_freebsd_load_elfmodule32): New declaration
24916 (grub_freebsd_load_elfmoduleobj64): Likewise
24917 (grub_freebsd_load_elf_meta32): Likewise
24918 (grub_freebsd_load_elf_meta64): Likewise
24919 (grub_freebsd_add_meta): Likewise
24920 (grub_freebsd_add_meta_module): Likewise
24921 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
24922 (grub_freebsd_add_meta_module): Likewise and move module-specific
24923 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
24924 (grub_cmd_freebsd): Add elf-kernel specific parts
24925 based on grub_freebsd_add_meta_module
24926 (grub_cmd_freebsd_module): Add type parsing moved from
24927 grub_freebsd_add_meta_module
24928 (grub_cmd_freebsd_module_elf): New function
24929 (cmd_freebsd_module_elf): New variable
24930 (GRUB_MOD_INIT): Register freebsd_module_elf
24931 * loader/i386/bsd32.c: New file
24932 * loader/i386/bsd64.c: Likewise
24933 * loader/i386/bsdXX.c: Likewise
24934 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
24935 (grub_elf64_load): Likewise
24936 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
24938 (grub_elf64_load_hook_t): Likewise
24940 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
24942 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
24944 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
24945 don't write a menu entry for recovery mode.
24947 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
24949 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
24950 after it's no longer needed.
24952 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
24954 * include/grub/i386/loader.h (grub_linux_prot_size)
24955 (grub_linux_tmp_addr, grub_linux_real_addr)
24956 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
24957 GRUB_MACHINE_PCBIOS.
24958 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
24959 common grub_util_info() call to ...
24960 (generate_image): ... here.
24961 Fix use of uninitialized memory, comparison of signed with
24962 unsigned integers and memory leak.
24963 Remove bogus module address message.
24965 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24967 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
24969 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
24971 2009-06-19 Pavel Roskin <proski@gnu.org>
24973 * configure.ac: Remove stray AC_MSG_CHECKING.
24975 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
24977 * disk/scsi.c (grub_scsi_open): use continue instead of big if
24979 2009-06-18 Pavel Roskin <proski@gnu.org>
24981 * conf/common.rmk: Add fs_file.mod.
24982 * disk/fs_file.c: New file.
24983 * include/grub/disk.h (enum grub_disk_dev_id): Add
24984 GRUB_DISK_DEVICE_FILE_ID.
24986 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24988 Fix build with Apple's toolchain. Part 2
24990 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
24993 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
24995 Fix build with Apple's toolchain. Part 1
24997 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
24999 * configure.ac: remove a leftover AC_MSG_RESULT
25000 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
25003 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
25007 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
25008 (decomp_block): initialize ch
25009 use grub_memcpy instead of memcpy
25011 2009-06-17 Pavel Roskin <proski@gnu.org>
25013 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
25014 version, use declarations needed to use vga_text as the startup
25017 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
25018 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
25020 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
25021 and grub_at_keyboard_fini(), it's done on module load and
25024 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
25026 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
25027 file can't be found.
25028 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
25030 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
25032 Fix newline handling
25034 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
25035 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
25036 (grub_script_yylex): don't segfault on unterminated script
25037 newline terminates command and variable
25039 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
25041 avoid double grub_adjust_range call. Bug reported by David Simner
25043 * kern/disk.c (grub_disk_write): change to raw disk access before
25046 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
25048 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
25049 spaces, for the benefit of help2man.
25050 * util/i386/efi/grub-mkimage.c (usage): Likewise.
25052 2009-06-16 Pavel Roskin <proski@gnu.org>
25054 * kern/i386/halt.c: Include grub/machine/init.h.
25055 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
25057 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
25059 * util/grub.d/30_os-prober.in: Use ${root} in the generated
25060 drivemap menuentry.
25062 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
25064 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
25067 2009-06-16 Pavel Roskin <proski@gnu.org>
25069 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
25070 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
25071 save %dx, we only need %dl and we never change it.
25072 * boot/i386/pc/cdboot.S: Don't set the root drive.
25073 * boot/i386/pc/pxeboot.S: Likewise.
25074 * include/grub/i386/pc/boot.h: Remove
25075 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
25076 GRUB_BOOT_MACHINE_DRIVE_CHECK.
25077 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
25078 * kern/i386/pc/init.c (make_install_device): Remove references
25079 to grub_root_drive.
25080 * kern/i386/pc/startup.S: Likewise.
25081 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
25083 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
25087 * commands/xnu_uuid.c: new file
25088 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
25089 (xnu_uuid_mod_SOURCES): new variable
25090 (xnu_uuid_mod_CFLAGS): likewise
25091 (xnu_uuid_mod_LDFLAGS): likewise
25092 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
25093 * conf/i386-ieee1275.rmk: likewise
25094 * conf/i386-pc.rmk: likewise
25095 * conf/powerpc-ieee1275.rmk: likewise
25096 * conf/sparc64-ieee1275.rmk: likewise
25097 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
25099 2009-06-16 Pavel Roskin <proski@gnu.org>
25101 * configure.ac: Avoid '==' in test command, it's not portable.
25103 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
25107 * commands/probe.c: new file
25108 * conf/common.rmk (pkglib_MODULES): add probe.mod
25109 (probe_mod_SOURCES): new variable
25110 (probe_mod_CFLAGS): likewise
25111 (probe_mod_LDFLAGS): likewise
25112 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
25113 * conf/i386-ieee1275.rmk: likewise
25114 * conf/i386-pc.rmk: likewise
25115 * conf/powerpc-ieee1275.rmk: likewise
25116 * conf/sparc64-ieee1275.rmk: likewise
25118 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
25120 Fix handling of string like \"hello\" and "a
25123 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
25124 (grub_script_yylex): fix parsing of quoting, escaping and newline
25126 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
25128 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
25131 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
25133 * util/grub-mkconfig.in: Fix parsing of --output option.
25135 2009-06-12 Pavel Roskin <proski@gnu.org>
25137 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
25138 genmk.rb don't need to be generated or installed.
25140 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
25142 * commands/i386/pc/drivemap_int13h.S: add more comments
25144 2009-06-11 Pavel Roskin <proski@gnu.org>
25146 * Makefile.in (uninstall): Uninstall manuals.
25148 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
25149 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
25150 and update-grub_lib in two places.
25151 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
25153 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
25154 a compiler warning.
25156 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
25157 `entry_lo' to fix variable shadowing.
25159 2009-06-11 Christian Franke <franke@computer.org>
25161 * kern/misc.c (__enable_execute_stack): Add missing return type
25162 to prevent gcc warning.
25164 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
25166 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
25168 2009-06-11 Pavel Roskin <proski@gnu.org>
25170 * Makefile.in: Don't rely on any scripts being executable.
25171 Always use $(SHELL) to run shell scripts.
25173 * configure.ac: Always define ___main if using -nostdlib. This
25174 fixes tests on Cygwin.
25176 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
25180 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
25181 is in bytes and not in blocks
25183 2009-06-11 Pavel Roskin <proski@gnu.org>
25185 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
25188 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
25190 * util/grub.d/30_os-prober.in: Fix a comment. Source
25191 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
25192 to set the root device. Place drivemap command in the generated
25195 2009-06-11 Pavel Roskin <proski@gnu.org>
25197 * configure.ac: Remove host_m32. Issues with 64-bit utilities
25198 have long been resolved.
25200 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
25202 * util/grub.d/10_linux.in: Capitalise "Linux".
25204 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
25206 2009-06-11 Pavel Roskin <proski@gnu.org>
25208 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
25209 fix a gcc warning and ensure that the function won't ever exit.
25211 * kern/i386/ieee1275/init.c: Add missing prototype for
25212 grub_stop_floppy().
25214 * loader/ieee1275/multiboot2.c [__i386__]: Include
25215 grub/cpu/multiboot.h.
25217 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
25218 casts to short - they are not portable and cause warnings. Fix
25219 use of uninitialized values in input_buf. Use ARRAY_SIZE.
25221 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
25225 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
25227 (grub_get_root_biosnumber_saved): new variable
25228 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
25229 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
25230 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
25231 %dx after the call if necessary
25232 * conf/common.rmk (pkglib_MODULES): remove boot.mod
25233 (boot_mod_SOURCES): remove
25234 (boot_mod_CFLAGS): remove
25235 (boot_mod_LDFLAGS): remove
25236 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
25237 (boot_mod_SOURCES): new variable
25238 (boot_mod_CFLAGS): likewise
25239 (boot_mod_LDFLAGS): likewise
25240 * conf/i386-efi.rmk: likewise
25241 * conf/i386-ieee1275.rmk: likewise
25242 * conf/i386-pc.rmk: likewise
25243 * conf/powerpc-ieee1275.rmk: likewise
25244 * conf/sparc64-ieee1275.rmk: likewise
25245 * conf/x86_64-efi.rmk: likewise
25246 * include/grub/i386/pc/biosnum.h: new file
25247 * lib/i386/pc/biosnum.c: likewise
25248 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
25249 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
25250 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
25252 2009-06-10 Pavel Roskin <proski@gnu.org>
25254 * io/gzio.c (test_header): Don't reuse one buffer for all data.
25255 Use separate variables. Read only the file size at the end, but
25256 not the checksum that we don't use.
25258 * kern/file.c (grub_file_read): Use void pointer for the buffer.
25259 Adjust all callers.
25261 * kern/ieee1275/openfw.c: Remove libc includes.
25262 * kern/ieee1275/cmain.c: Likewise.
25263 * include/grub/ieee1275/ieee1275.h: Likewise.
25265 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
25268 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
25270 * Makefile.in: Remove all trailing whitespace.
25271 * conf/i386-pc.rmk: Likewise.
25272 * conf/powerpc-ieee1275.rmk: Likewise.
25273 * conf/sparc64-ieee1275.rmk: Likewise.
25274 * docs/grub.texi: Likewise.
25275 * docs/texinfo.tex: Likewise.
25276 * disk/fs_uuid.c: Likewise.
25277 * disk/lvm.c: Likewise.
25278 * disk/scsi.c: Likewise.
25279 * disk/ata.c: Likewise.
25280 * disk/ieee1275/ofdisk.c: Likewise.
25281 * disk/i386/pc/biosdisk.c: Likewise.
25282 * disk/host.c: Likewise.
25283 * disk/raid.c: Likewise.
25284 * disk/efi/efidisk.c: Likewise.
25285 * disk/usbms.c: Likewise.
25286 * disk/memdisk.c: Likewise.
25287 * disk/loopback.c: Likewise.
25288 * kern/powerpc/dl.c: Likewise.
25289 * kern/device.c: Likewise.
25290 * kern/dl.c: Likewise.
25291 * kern/sparc64/dl.c: Likewise.
25292 * kern/ieee1275/ieee1275.c: Likewise.
25293 * kern/term.c: Likewise.
25294 * kern/fs.c: Likewise.
25295 * kern/i386/dl.c: Likewise.
25296 * kern/i386/pc/startup.S: Likewise.
25297 * kern/i386/pc/init.c: Likewise.
25298 * kern/i386/pc/mmap.c: Likewise.
25299 * kern/i386/pc/lzo1x.S: Likewise.
25300 * kern/i386/ieee1275/init.c: Likewise.
25301 * kern/i386/realmode.S: Likewise.
25302 * kern/i386/tsc.c: Likewise.
25303 * kern/partition.c: Likewise.
25304 * kern/corecmd.c: Likewise.
25305 * kern/file.c: Likewise.
25306 * kern/efi/efi.c: Likewise.
25307 * kern/efi/init.c: Likewise.
25308 * kern/efi/mm.c: Likewise.
25309 * kern/main.c: Likewise.
25310 * kern/err.c: Likewise.
25311 * kern/env.c: Likewise.
25312 * kern/disk.c: Likewise.
25313 * kern/generic/millisleep.c: Likewise.
25314 * kern/generic/rtc_get_time_ms.c: Likewise.
25315 * kern/misc.c: Likewise.
25316 * kern/parser.c: Likewise.
25317 * genmk.rb: Likewise.
25318 * configure.ac: Likewise.
25319 * boot/i386/pc/diskboot.S: Likewise.
25320 * boot/i386/pc/pxeboot.S: Likewise.
25321 * boot/i386/pc/boot.S: Likewise.
25322 * boot/i386/pc/lnxboot.S: Likewise.
25323 * boot/i386/pc/cdboot.S: Likewise.
25324 * parttool/pcpart.c: Likewise.
25325 * video/readers/tga.c: Likewise.
25326 * video/video.c: Likewise.
25327 * video/bitmap.c: Likewise.
25328 * lib/envblk.c: Likewise.
25329 * lib/i386/setjmp.S: Likewise.
25330 * fs/xfs.c: Likewise.
25331 * fs/afs.c: Likewise.
25332 * fs/fat.c: Likewise.
25333 * fs/ntfs.c: Likewise.
25334 * fs/udf.c: Likewise.
25335 * fs/affs.c: Likewise.
25336 * fs/iso9660.c: Likewise.
25337 * fs/hfs.c: Likewise.
25338 * fs/fshelp.c: Likewise.
25339 * fs/ext2.c: Likewise.
25340 * fs/jfs.c: Likewise.
25341 * fs/reiserfs.c: Likewise.
25342 * fs/hfsplus.c: Likewise.
25343 * fs/minix.c: Likewise.
25344 * fs/cpio.c: Likewise.
25345 * fs/sfs.c: Likewise.
25346 * fs/ufs.c: Likewise.
25347 * efiemu/prepare.c: Likewise.
25348 * efiemu/loadcore_common.c: Likewise.
25349 * efiemu/runtime/efiemu.sh: Likewise.
25350 * efiemu/runtime/efiemu.S: Likewise.
25351 * efiemu/runtime/efiemu.c: Likewise.
25352 * efiemu/pnvram.c: Likewise.
25353 * efiemu/main.c: Likewise.
25354 * efiemu/i386/pc/cfgtables.c: Likewise.
25355 * efiemu/i386/loadcore64.c: Likewise.
25356 * efiemu/i386/loadcore32.c: Likewise.
25357 * efiemu/loadcore.c: Likewise.
25358 * efiemu/symbols.c: Likewise.
25359 * efiemu/mm.c: Likewise.
25360 * include/grub/autoefi.h: Likewise.
25361 * include/grub/datetime.h: Likewise.
25362 * include/grub/term.h: Likewise.
25363 * include/grub/hfs.h: Likewise.
25364 * include/grub/lvm.h: Likewise.
25365 * include/grub/i386/tsc.h: Likewise.
25366 * include/grub/i386/linux.h: Likewise.
25367 * include/grub/i386/xnu.h: Likewise.
25368 * include/grub/i386/efiemu.h: Likewise.
25369 * include/grub/i386/pc/biosdisk.h: Likewise.
25370 * include/grub/i386/pc/memory.h: Likewise.
25371 * include/grub/i386/pc/vbe.h: Likewise.
25372 * include/grub/parttool.h: Likewise.
25373 * include/grub/video.h: Likewise.
25374 * include/grub/memory.h: Likewise.
25375 * include/grub/fs.h: Likewise.
25376 * include/grub/partition.h: Likewise.
25377 * include/grub/xnu.h: Likewise.
25378 * include/grub/efi/api.h: Likewise.
25379 * include/grub/efi/pe32.h: Likewise.
25380 * include/grub/efi/memory.h: Likewise.
25381 * include/grub/multiboot.h: Likewise.
25382 * include/grub/usbdesc.h: Likewise.
25383 * include/grub/multiboot2.h: Likewise.
25384 * include/grub/acpi.h: Likewise.
25385 * include/grub/efiemu/efiemu.h: Likewise.
25386 * include/grub/disk.h: Likewise.
25387 * include/grub/ieee1275/ieee1275.h: Likewise.
25388 * include/grub/net.h: Likewise.
25389 * include/grub/machoload.h: Likewise.
25390 * include/grub/macho.h: Likewise.
25391 * include/multiboot.h: Likewise.
25392 * genmoddep.awk: Likewise.
25393 * normal/main.c: Likewise.
25394 * normal/menu_entry.c: Likewise.
25395 * normal/menu_viewer.c: Likewise.
25396 * normal/completion.c: Likewise.
25397 * normal/cmdline.c: Likewise.
25398 * normal/misc.c: Likewise.
25399 * normal/datetime.c: Likewise.
25400 * bus/usb/usbtrans.c: Likewise.
25401 * bus/usb/ohci.c: Likewise.
25402 * bus/usb/uhci.c: Likewise.
25403 * bus/usb/usb.c: Likewise.
25404 * mmap/efi/mmap.c: Likewise.
25405 * mmap/i386/pc/mmap_helper.S: Likewise.
25406 * mmap/i386/pc/mmap.c: Likewise.
25407 * mmap/i386/mmap.c: Likewise.
25408 * mmap/i386/uppermem.c: Likewise.
25409 * mmap/mmap.c: Likewise.
25410 * commands/acpi.c: Likewise.
25411 * commands/echo.c: Likewise.
25412 * commands/blocklist.c: Likewise.
25413 * commands/loadenv.c: Likewise.
25414 * commands/usbtest.c: Likewise.
25415 * commands/boot.c: Likewise.
25416 * commands/parttool.c: Likewise.
25417 * commands/search.c: Likewise.
25418 * commands/cat.c: Likewise.
25419 * commands/i386/pc/play.c: Likewise.
25420 * commands/i386/pc/drivemap.c: Likewise.
25421 * commands/i386/pc/vbeinfo.c: Likewise.
25422 * commands/i386/pc/acpi.c: Likewise.
25423 * commands/i386/pc/vbetest.c: Likewise.
25424 * commands/ls.c: Likewise.
25425 * commands/cmp.c: Likewise.
25426 * commands/test.c: Likewise.
25427 * commands/efi/acpi.c: Likewise.
25428 * commands/gptsync.c: Likewise.
25429 * commands/help.c: Likewise.
25430 * partmap/amiga.c: Likewise.
25431 * partmap/apple.c: Likewise.
25432 * partmap/acorn.c: Likewise.
25433 * partmap/pc.c: Likewise.
25434 * partmap/sun.c: Likewise.
25435 * partmap/gpt.c: Likewise.
25436 * script/sh/lexer.c: Likewise.
25437 * script/sh/function.c: Likewise.
25438 * font/font.c: Likewise.
25439 * font/font_cmd.c: Likewise.
25440 * loader/powerpc/ieee1275/linux.c: Likewise.
25441 * loader/efi/chainloader.c: Likewise.
25442 * loader/multiboot_loader.c: Likewise.
25443 * loader/macho.c: Likewise.
25444 * loader/i386/multiboot.c: Likewise.
25445 * loader/i386/linux.c: Likewise.
25446 * loader/i386/pc/linux.c: Likewise.
25447 * loader/i386/pc/multiboot2.c: Likewise.
25448 * loader/i386/pc/chainloader.c: Likewise.
25449 * loader/i386/pc/xnu.c: Likewise.
25450 * loader/i386/bsd_trampoline.S: Likewise.
25451 * loader/i386/efi/linux.c: Likewise.
25452 * loader/i386/multiboot_elfxx.c: Likewise.
25453 * loader/i386/bsd_helper.S: Likewise.
25454 * loader/i386/bsd.c: Likewise.
25455 * loader/i386/linux_trampoline.S: Likewise.
25456 * loader/i386/xnu_helper.S: Likewise.
25457 * loader/i386/xnu.c: Likewise.
25458 * loader/i386/bsd_pagetable.c: Likewise.
25459 * loader/i386/multiboot_helper.S: Likewise.
25460 * loader/xnu.c: Likewise.
25461 * loader/xnu_resume.c: Likewise.
25462 * io/gzio.c: Likewise.
25463 * term/efi/console.c: Likewise.
25464 * term/terminfo.c: Likewise.
25465 * term/ieee1275/ofconsole.c: Likewise.
25466 * term/i386/pc/serial.c: Likewise.
25467 * term/i386/pc/vesafb.c: Likewise.
25468 * term/i386/pc/vga.c: Likewise.
25469 * term/usb_keyboard.c: Likewise.
25470 * term/gfxterm.c: Likewise.
25471 * aclocal.m4: Likewise.
25472 * util/lvm.c: Likewise.
25473 * util/grub.d/30_os-prober.in: Likewise.
25474 * util/grub.d/10_hurd.in: Likewise.
25475 * util/console.c: Likewise.
25476 * util/grub-macho2img.c: Likewise.
25477 * util/grub-probe.c: Likewise.
25478 * util/hostfs.c: Likewise.
25479 * util/i386/pc/grub-mkimage.c: Likewise.
25480 * util/i386/pc/grub-setup.c: Likewise.
25481 * util/i386/efi/grub-mkimage.c: Likewise.
25482 * util/grub-mkconfig.in: Likewise.
25483 * util/raid.c: Likewise.
25484 * util/resolve.c: Likewise.
25485 * util/grub-mkdevicemap.c: Likewise.
25486 * util/grub-emu.c: Likewise.
25487 * util/getroot.c: Likewise.
25488 * util/hostdisk.c: Likewise.
25489 * util/usb.c: Likewise.
25490 * util/grub-editenv.c: Likewise.
25491 * util/misc.c: Likewise.
25493 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
25495 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
25496 `genparttoollist.sh'.
25497 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
25498 Add `*.sh' to the list find searches for and change `mdate.sh'
25501 2009-06-10 Pavel Roskin <proski@gnu.org>
25503 * include/grub/multiboot2.h: Provide compatibility defines for
25505 * include/multiboot2.h: Include stdint.h only if needed, using
25507 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
25509 * loader/ieee1275/multiboot2.c: Likewise.
25510 * loader/multiboot2.c: Likewise.
25511 * loader/multiboot_loader.c: Likewise.
25513 * configure.ac: Use -nostdlib when probing for the target. It
25514 should not be required to have libc for the target.
25516 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
25517 they fail without libc headers for the target.
25518 * include/grub/powerpc/libgcc.h: Use weak attribute for all
25520 * include/grub/sparc64/libgcc.h: Likewise. Don't use
25521 preprocessor conditionals.
25523 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
25524 build system doesn't need to be aware of the tar.c internals.
25526 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
25528 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
25530 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
25532 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
25533 disk limit to 26 for IDE, Virtio, Xen and SCSI.
25535 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
25537 * util/i386/pc/grub-install.in: Change the error message if UUIDs
25538 aren't available if ata.mod gets used.
25540 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
25542 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
25543 initialising controller.
25544 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25546 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25548 * util/i386/pc/grub-install.in: Add a parameter --disk-module
25549 to choose between ata and biosdisk module on i386-pc.
25551 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
25553 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
25554 Subclass and Programming Interface fields in terms of the 3 byte
25555 Class Code register.
25556 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25558 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
25559 interface is OHCI. Add grub_dprintf for symmetry with
25561 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
25562 interface is UHCI. Add interf variable for programming
25563 interface. Print interface with class/subclass.
25565 * bus/usb/ohci.c: Set interf with correct field.
25567 * bus/usb/uhci.c: Remove unneeded doubled lines.
25568 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
25569 Remove whitespace inside comment.
25571 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
25573 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
25574 as fallback an equivalent option without depth.
25576 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25578 Not fail if unable to retrieve C/H/S on LBA disks
25580 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
25581 if unable to retrieve C/H/S on LBA disks
25583 2009-06-08 Pavel Roskin <proski@gnu.org>
25585 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
25588 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25590 * Makefile.in (uninstall): Remove all $lib_DATA files.
25592 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
25594 Bugfix: install on partitionless device
25596 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
25599 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25601 * Makefile.in (uninstall): Remove all $include_DATA files.
25603 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
25605 * commands/true.c: New file. Implement the true and false commands.
25606 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
25607 (true_mod_SOURCES): New variable.
25608 (true_mod_CFLAGS): Likewise.
25609 (true_mod_LDFLAGS): Likewise.
25611 2009-06-05 Colin D Bennett <colin@gibibit.com>
25613 Optimized font character lookup using binary search instead of linear
25614 search. Fonts now are required to have the character index ordered by
25617 * font/font.c (load_font_index): Verify that fonts have ordered
25619 (find_glyph): Use binary search instead of linear search to find a
25620 character in a font.
25622 2009-06-05 Michael Scherer <misc@mandriva.org>
25624 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
25625 uses case sensitive btree.
25626 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
25627 only for case insensitive filesystems.
25629 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
25631 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
25632 * conf/common.rmk (search_mod_CFLAGS): likewise
25634 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25636 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
25637 compensate a compiler bug
25639 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25641 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
25644 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25646 Definitions for creating asm symbols with Apple's CC
25648 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
25649 [APPLE_CC] (VARIABLE): likewise
25651 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25653 Disable lnxboot.img when compiled
25656 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
25657 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
25658 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
25659 [! APPLE_CC] (CODE_LENG): skip
25660 [! APPLE_CC] (setup_sects): likewise
25661 [! APPLE_CC]: skip filling
25663 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25665 Address in trampolines based on 32-bit registers when compiled
25668 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
25670 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
25672 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25674 Avoid aliases when compiling with Apple's CC for PCBIOS machine
25676 * kern/misc.c [APPLE_CC] (memcpy): new function
25677 [APPLE_CC] (memmove): likewise
25678 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
25679 (memcpy): define alias conditionally on !APPLE_CC
25682 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
25683 APPLE_CC are defined
25684 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
25685 (grub_assert_fail): make prototype conditional
25687 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25689 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
25691 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
25693 (CLEANFILES): add grub-macho2img
25694 (grub_macho2img_SOURCES): new variable
25695 * kern/i386/pc/startup.S (bss_start): new variable
25696 (bss_end): likewise
25697 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
25698 * util/grub-macho2img.c: new file
25700 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25702 Use objconv when compiling with Apple's CC
25704 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
25705 (efiemu64.o): likewise
25706 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
25707 when compiling with Apple's CC
25708 (efiemu64_s.o): likewise
25709 * configure.ac: check for objconv when compiling with Apple's CC
25710 * genmk.rb: use objconv for modules when compiled with Apple's CC
25712 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25714 Define segment as well as section when compiling with
25717 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
25718 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
25719 (efiemu_convert_pointer): likewise
25720 (efiemu_set_virtual_address_map): likewise
25721 (efiemu_convert_pointer): likewise
25722 (efiemu_getcrc32): likewise
25723 (init_crc32_table): likewise
25724 (reflect): likewise
25725 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
25726 (GRUB_MOD_DEP): likewise
25728 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25730 Allow a compilation without -mcmodel=large
25732 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
25733 when compiled without -mcmodel=large
25734 (filter_memory_map): remove memory post 4 GiB when compiled
25735 without -mcmodel=large
25736 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
25737 TARGET_CFLAGS when -mcmodel=large isn't supported
25739 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25741 Remove nested functions in efiemu core
25743 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
25745 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25747 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
25749 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
25751 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
25753 (grub_cpu_is_tsc_supported): likewise
25754 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
25756 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25758 Absolute addressing through constant with Apple's cc
25760 * kern/i386/pc/startup.S: Define necessary constants
25761 and address through it when using ABS with Apple's CC
25762 * boot/i386/pc/diskboot.S: likewise
25763 * boot/i386/pc/boot.S: likewise
25764 * boot/i386/pc/lnxboot.S: likewise
25765 * boot/i386/pc/cdboot.S: likewise
25766 * mmap/i386/pc/mmap_helper.S: likewise
25767 * commands/i386/pc/drivemap_int13h.S: likewise
25769 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25771 Check if compiler is apple cc
25773 * Makefile.in (ASFLAGS): new variable
25774 (TARGET_ASFLAGS): likewise
25775 (TARGET_MODULE_FORMAT): likewise
25776 (TARGET_APPLE_CC): likewise
25777 (OBJCONV): likewise
25778 (TARGET_IMG_CFLAGS): likewise
25779 (TARGET_CPPFLAGS): add includedir
25780 * configure.ac: call grub_apple_cc and grub_apple_target_cc
25781 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
25782 Check for linker script only if compiler isn't Apple's CC
25783 (TARGET_MODULE_FORMAT): set
25784 (TARGET_APPLE_CC): likewise
25785 (TARGET_ASFLAGS): likewise
25786 (ASFLAGS): likewise
25787 Check for objcopy only if compiler isn't Apple's CC
25788 Check for BSS symbol only if compiler isn't Apple's CC
25789 * genmk.rb: adapt nm options if we use Apple's utils
25790 * aclocal.m4 (grub_apple_cc): new test
25791 (grub_apple_target_cc): likewise
25793 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25795 Simplify sed expressions and improve awk
25797 * Makefile.in (install-local): simplify sed expression
25798 * gencmdlist.sh: likewise
25799 * genmoddep.awk: avoid adding module as a dependency of itself
25801 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25803 Add missing start symbols
25805 * boot/i386/pc/boot.S: add start
25806 * boot/i386/pc/pxeboot.S: likewise
25808 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25810 Fix wrong assumptions with grub-mkimage on EFI
25812 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
25813 (relocate_addresses): consider both r_addend and value at offset
25814 (make_mods_section): zerofill modinfo and header
25815 (convert_elf): write prefix here
25817 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25819 Use .asciz instead of .string
25821 * i386/pc/diskboot.S: use .asciz instead of .string
25822 * i386/pc/boot.S: likewise
25823 * include/grub/dl.h (GRUB_MOD_DEP): likewise
25824 (GRUB_MOD_NAME): likewise
25826 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25830 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
25831 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
25832 (grub_video_setup): remove
25833 (grub_video_set_mode): new prototype
25834 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
25836 (linux_vesafb_res): compile only on PCBIOS
25837 (grub_linux_boot): support gfxpayload
25838 * loader/i386/pc/xnu.c (video_hook): new function
25839 (grub_xnu_set_video): support gfxpayload
25840 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
25841 (DEFAULT_VIDEO_HEIGHT): likewise
25842 (DEFAULT_VIDEO_FLAGS): likewise
25843 (DEFAULT_VIDEO_MODE): new definition
25844 (video_hook): new function
25845 (grub_gfxterm_init): use grub_video_set_mode
25846 * util/grub.d/30_os-prober.in: remove explicit modesetting before
25848 * video/video.c (grub_video_setup): removed
25849 (grub_video_set_mode): new function based on grub_gfxterm_init and
25852 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25854 Avoid calling biosdisk in drivemap
25856 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
25857 (revparse_biosdisk): likewise
25858 (list_mappings): derive name from id directly
25859 (grub_cmd_drivemap): use tryparse_diskstring
25861 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
25865 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
25866 (grub_lexer_param): add tokenonhold
25867 (grub_script_create_cmdline): remove cmdline. All callers updated
25868 (grub_script_function_create): make functionname
25869 grub_script_arg. All callers updated
25870 (grub_script_execute_argument_to_string): new prototype
25871 * kern/parser.c (state_transitions): reorder
25872 (grub_parser_cmdline_state): fix a bug and make more compact
25873 * script/sh/execute.c (grub_script_execute_argument_to_string):
25875 (grub_script_execute_cmdline): use new format
25876 * script/sh/function.c (grub_script_function_create): make functionname
25877 grub_script_arg. All callers updated
25878 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
25879 (grub_script_yylex): remove
25880 (grub_script_yylex2): renamed to ...
25881 (grub_script_yylex): ...renamed
25882 parse the expressions like a${b}c
25883 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
25884 (GRUB_PARSER_TOKEN_VAR): remove
25885 (GRUB_PARSER_TOKEN_NAME): likewise
25886 ("if"): declare as typeless
25887 ("while"): likewise
25888 ("function"): likewise
25893 (argument): likewise
25894 (script): accept empty scripts and make exit on error
25895 (arguments): use GRUB_PARSER_TOKEN_ARG
25896 (function): likewise
25897 (command): move error handling to script
25898 (menuentry): move grub_script_lexer_ref before
25899 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
25900 argument. All callers updated
25902 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
25904 Prevent GRUB from probing floppies during boot.
25906 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
25907 * commands/search.c (options): Add --no-floppy.
25908 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
25909 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
25910 --no-floppy when searching for UUIDs.
25912 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
25914 Simplify the code duplication in commands/search.c.
25916 * commands/search.c (search_label, search_fs_uuid): Merge into ...
25917 (search_fs): ... this. Update all users.
25919 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
25921 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
25923 2009-05-28 Pavel Roskin <proski@gnu.org>
25925 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
25926 Remove the original symlink explicitly.
25928 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
25929 just one slash. That's how grub_fshelp_find_file() does it.
25931 2009-05-26 Pavel Roskin <proski@gnu.org>
25933 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
25936 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
25939 2009-05-25 Christian Franke <franke@computer.org>
25941 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
25943 (grub_atapi_identify): Add wait after drive select.
25944 (grub_ata_identify): Do more strict status register check before
25945 calling grub_atapi_identify (). Suppress error message if status
25946 register is 0x00 after command failure. Add status register
25947 check after PIO read to avoid bogus identify due to stuck DRQ.
25948 Thanks to Pavel Roskin for testing.
25949 (grub_device_initialize): Remove unsafe status register check.
25950 Thanks to 'phcoder' for problem report and patch.
25951 Prevent sign extension in debug message.
25953 2009-05-23 Colin D Bennett <colin@gibibit.com>
25955 Cleaned up `include/grub/normal.h'. Grouped prototypes by
25956 definition file, and functions defined in `normal/menu.c' have had
25957 their prototypes moved to `include/grub/menu.h' for consistency.
25959 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
25961 (grub_menu_get_entry): Likewise.
25962 (grub_menu_get_timeout): Likewise.
25963 (grub_menu_set_timeout): Likewise.
25964 (grub_menu_execute_entry): Likewise.
25965 (grub_menu_execute_with_fallback): Likewise.
25966 (grub_menu_entry_run): Likewise.
25968 * include/grub/normal.h: Re-ordered and grouped function
25969 prototypes by file that the function is defined in.
25970 (grub_menu_execute_callback): Removed; moved to menu.h.
25971 (grub_menu_get_entry): Likewise.
25972 (grub_menu_get_timeout): Likewise.
25973 (grub_menu_set_timeout): Likewise.
25974 (grub_menu_execute_entry): Likewise.
25975 (grub_menu_execute_with_fallback): Likewise.
25976 (grub_menu_entry_run): Likewise.
25977 (grub_menu_addentry): Renamed from this ...
25978 (grub_normal_add_menu_entry): ... to this.
25980 * normal/main.c (grub_menu_addentry): Renamed from this ...
25981 (grub_normal_add_menu_entry): ... to this.
25983 * script/sh/execute.c (grub_script_execute_menuentry): Update
25984 reference to renamed grub_menu_addentry function.
25986 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
25988 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
25990 2009-05-22 Pavel Roskin <proski@gnu.org>
25992 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
25993 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
25994 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
25995 compiling for the i386 targets, but not for the utilities.
25997 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
25999 (grub_root_drive): Likewise.
26000 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
26002 (grub_root_drive): Change size to byte.
26003 (grub_start_addr): Remove.
26004 (grub_end_addr): Likewise.
26005 (grub_apm_bios_info): Likewise.
26007 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
26009 * normal/i386: Remove.
26010 * normal/powerpc: Likewise.
26011 * normal/sparc64: Likewise.
26012 * normal/x86_64: Likewise.
26014 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
26016 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
26017 * loader/i386/linux_trampoline.S: Fix indentation
26018 * loader/i386/xnu_helper.S: Likewise
26020 2009-05-18 Colin D Bennett <colin@gibibit.com>
26022 Display error messages when parsing a Lua statement fails.
26023 Previously, executing a syntactically invalid statement like
26024 ")foo" or "bar;" would silently fail.
26026 * script/lua/grub_main.c (handle_lua_error): New function.
26027 (grub_lua_parse_line): Improved reporting of Lua parser and
26030 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
26032 Remove -Werror which causes build to fail on some systems
26034 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
26035 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
26036 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
26038 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
26040 trampoline for linux on 64-bit platform
26042 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
26043 loader/i386/efi/linux_trampoline.S
26044 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
26046 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
26048 * loader/i386/linux_trampoline.S: moved here
26049 * loader/i386/efi/linux.c (allocate_pages): reserve space for
26051 (jumpvector): removed
26052 (grub_linux_trampoline_start): new declaration
26053 (grub_linux_trampoline_end): likewise
26054 (grub_linux_boot): use trampoline when on 64-bit platform
26055 * loader/i386/linux.c: likewise
26057 2009-05-16 Pavel Roskin <proski@gnu.org>
26059 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
26060 const to avoid a warning.
26061 (grub_lua_setenv): Likewise.
26062 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
26063 lmsg to fix a warning.
26065 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
26067 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
26068 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26069 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
26070 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26071 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
26072 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26073 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
26074 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
26076 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
26078 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
26080 2009-05-16 Bean <bean123ch@gmail.com>
26082 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
26083 (lua_mod_SOURCES): New variable.
26084 (lua_mod_CFLAGS): Likewise.
26085 (lua_mod_LDFLAGS): Likewise.
26087 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
26088 (setjmp_mod_SOURCES): New variable.
26089 (setjmp_mod_CFLAGS): Likewise.
26090 (setjmp_LDFLAGS): Likewise.
26092 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
26093 (setjmp_mod_SOURCES): New variable.
26094 (setjmp_mod_CFLAGS): Likewise.
26095 (setjmp_LDFLAGS): Likewise.
26097 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
26098 (setjmp_mod_SOURCES): New variable.
26099 (setjmp_mod_CFLAGS): Likewise.
26100 (setjmp_LDFLAGS): Likewise.
26102 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
26103 (setjmp_mod_SOURCES): New variable.
26104 (setjmp_mod_CFLAGS): Likewise.
26105 (setjmp_LDFLAGS): Likewise.
26107 * normal/i386/setjmp.S: Moved from here ...
26108 * lib/i386/setjmp.S: ... Moved here
26109 * normal/x86_64/setjmp.S: Moved from here ...
26110 * lib/x86_64/setjmp.S: ... Moved here
26111 * normal/powerpc/setjmp.S: Moved from here ...
26112 * lib/powerpc/setjmp.S: ... Moved here
26113 * normal/sparc64/setjmp.S: Moved from here ...
26114 * lib/sparc64/setjmp.S: ... Moved here
26116 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
26117 returns_twice in mingw.
26119 * script/lua/grub_lib.c: New file.
26120 * script/lua/grub_lib.h: Likewise.
26121 * script/lua/grub_lua.h: Likewise.
26122 * script/lua/grub_main.c: Likewise.
26123 * script/lua/lapi.c: Likewise.
26124 * script/lua/lapi.h: Likewise.
26125 * script/lua/lauxlib.c: Likewise.
26126 * script/lua/lauxlib.h: Likewise.
26127 * script/lua/lbaselib.c: Likewise.
26128 * script/lua/lcode.c: Likewise.
26129 * script/lua/lcode.h: Likewise.
26130 * script/lua/ldblib.c: Likewise.
26131 * script/lua/ldebug.c: Likewise.
26132 * script/lua/ldebug.h: Likewise.
26133 * script/lua/ldo.c: Likewise.
26134 * script/lua/ldo.h: Likewise.
26135 * script/lua/ldump.c: Likewise.
26136 * script/lua/lfunc.c: Likewise.
26137 * script/lua/lfunc.h: Likewise.
26138 * script/lua/lgc.c: Likewise.
26139 * script/lua/lgc.h: Likewise.
26140 * script/lua/linit.c: Likewise.
26141 * script/lua/liolib.c: Likewise.
26142 * script/lua/llex.c: Likewise.
26143 * script/lua/llex.h: Likewise.
26144 * script/lua/llimits.h: Likewise.
26145 * script/lua/lmathlib.c: Likewise.
26146 * script/lua/lmem.c: Likewise.
26147 * script/lua/lmem.h: Likewise.
26148 * script/lua/loadlib.c: Likewise.
26149 * script/lua/lobject.c: Likewise.
26150 * script/lua/lobject.h: Likewise.
26151 * script/lua/lopcodes.c: Likewise.
26152 * script/lua/lopcodes.h: Likewise.
26153 * script/lua/loslib.c: Likewise.
26154 * script/lua/lparser.c: Likewise.
26155 * script/lua/lparser.h: Likewise.
26156 * script/lua/lstate.c: Likewise.
26157 * script/lua/lstate.h: Likewise.
26158 * script/lua/lstring.c: Likewise.
26159 * script/lua/lstring.h: Likewise.
26160 * script/lua/lstrlib.c: Likewise.
26161 * script/lua/ltable.c: Likewise.
26162 * script/lua/ltable.h: Likewise.
26163 * script/lua/ltablib.c: Likewise.
26164 * script/lua/ltm.c: Likewise.
26165 * script/lua/ltm.h: Likewise.
26166 * script/lua/lua.h: Likewise.
26167 * script/lua/luaconf.h: Likewise.
26168 * script/lua/lualib.h: Likewise.
26169 * script/lua/lundump.c: Likewise.
26170 * script/lua/lundump.h: Likewise.
26171 * script/lua/lvm.c: Likewise.
26172 * script/lua/lvm.h: Likewise.
26173 * script/lua/lzio.c: Likewise.
26174 * script/lua/lzio.h: Likewise.
26176 2009-05-16 Bean <bean123ch@gmail.com>
26178 * include/grub/kernel.h (grub_module_header_types): Add type
26181 * kern/main.c (grub_load_config): New function.
26182 (grub_main): Call grub_load_config to read boot config.
26184 * grub-mkimage (generate_image): New parameter config_path.
26185 (options): New option --config.
26186 (main): Parse --config option, and pass it to generate_image.
26188 2009-05-14 Christian Franke <franke@computer.org>
26190 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
26191 This fixes build on Cygwin.
26193 2009-05-14 Pavel Roskin <proski@gnu.org>
26195 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
26196 jump. This saves two bytes, so the typical case of 2 swapped
26197 drives would fit 32 bytes.
26199 2009-05-13 Pavel Roskin <proski@gnu.org>
26201 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
26202 grub_uint32_t to avoid a warning.
26204 * loader/i386/linux.c (allocate_pages): When assigning
26205 real_mode_mem, cast through grub_size_t to fix a warning. The
26206 code already makes sure that the value would fit a pointer.
26207 (grub_linux_setup_video): Cast render_target->data to
26208 grub_size_t to fix a warning.
26210 2009-05-13 Javier Martín <lordhabbit@gmail.com>
26212 * commands/i386/pc/drivemap.c: New file - implement drivemap
26214 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
26215 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
26217 2009-05-13 Pavel Roskin <proski@gnu.org>
26219 * util/i386/pc/grub-setup.c (setup): Remove unused variable
26220 embedding_area_exists.
26222 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
26224 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
26225 it easier to understand / work with.
26226 Improve warning messages for cases where there's no embedding area,
26227 or when it is too small (or core.img too large).
26229 2009-05-13 Pavel Roskin <proski@gnu.org>
26231 * loader/i386/pc/multiboot2.c: Add necessary includes for
26232 grub_multiboot2_real_boot().
26234 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
26235 PX record is always little-endian. We only need the lower 2
26238 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
26239 facilitate code reuse.
26240 (grub_cpio_mount): Use "struct head", not a char buffer. This
26241 fixes a warning reported by gcc 4.4.
26243 * kernel/disk.c (grub_disk_read): Use void pointer for the
26245 (grub_disk_write): Use const void pointer for the buffer.
26246 Adjust all callers. Remove unnecessary casts.
26248 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
26250 * util/i386/pc/grub-install.in: Update copyright year.
26252 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
26256 * commands/gptsync.c: new file
26257 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
26258 (gptsync_mod_SOURCES): new variable
26259 (gptsync_mod_CFLAGS): likewise
26260 (gptsync_mod_LDFLAGS): likewise
26261 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
26263 (GRUB_PC_PARTITION_TYPE_HFS): likewise
26264 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
26265 * conf/i386-ieee1275.rmk: likewise
26266 * conf/i386-pc.rmk: likewise
26267 * conf/powerpc-ieee1275.rmk: likewise
26269 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
26273 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
26274 (grub_dl_ref): likewise
26276 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
26278 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
26279 split in two functions (one for msdos and one for gpt).
26281 2009-05-08 Pavel Roskin <proski@gnu.org>
26283 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
26286 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
26287 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
26288 Initialize them with -1. Add sanity check for bad1. Eliminate
26291 2009-05-08 David S. Miller <davem@davemloft.net>
26293 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
26295 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
26297 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
26300 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
26302 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26303 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
26305 2009-05-05 David S. Miller <davem@davemloft.net>
26307 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
26309 2009-05-05 Pavel Roskin <proski@gnu.org>
26311 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
26312 of grub_dl_ref() and grub_dl_unref().
26313 * commands/parttool.c: Remove preprocessor conditionals around
26314 grub_dl_ref() and grub_dl_unref().
26315 * fs/affs.c: Likewise.
26316 * fs/afs.c: Likewise.
26317 * fs/cpio.c: Likewise.
26318 * fs/ext2.c: Likewise.
26319 * fs/fat.c: Likewise.
26320 * fs/hfs.c: Likewise.
26321 * fs/hfsplus.c: Likewise.
26322 * fs/iso9660.c: Likewise.
26323 * fs/jfs.c: Likewise.
26324 * fs/minix.c: Likewise.
26325 * fs/ntfs.c: Likewise.
26326 * fs/reiserfs.c: Likewise.
26327 * fs/sfs.c: Likewise.
26328 * fs/udf.c: Likewise.
26329 * fs/ufs.c: Likewise.
26330 * fs/xfs.c: Likewise.
26331 * include/grub/dl.h: Likewise.
26332 * loader/xnu.c: Likewise.
26334 2009-05-04 Pavel Roskin <proski@gnu.org>
26336 * commands/acpi.c: Remove unused variable my_mod.
26337 * partmap/amiga.c: Likewise.
26338 * partmap/apple.c: Likewise.
26339 * partmap/gpt.c: Likewise.
26340 * partmap/pc.c: Likewise.
26341 * partmap/sun.c: Likewise.
26342 * term/gfxterm.c: Likewise.
26343 * term/i386/pc/vesafb.c: Likewise.
26344 * term/i386/pc/vga.c: Likewise.
26346 2009-05-04 David S. Miller <davem@davemloft.net>
26348 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
26349 pointer args to grub_ieee1275_get_property().
26351 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
26353 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
26354 devices, and do not traverse down under controller nodes.
26356 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
26357 (grub_ofdisk_open): Use it to un-escape "," characters.
26358 * kern/disk.c (find_part_sep): New.
26359 (grub_disk_open): Use it to find the first non-escaped ','
26360 character in the disk name.
26361 * util/ieee1275/devicemap.c (escape_of_path): New.
26362 (grub_util_emit_devicemap_entry): Use it.
26363 * util/sparc64/ieee1275/grub-install.in: Update script to
26364 strip partition specifiers properly by not triggering on
26365 '\' escaped ',' characters.
26367 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26369 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
26371 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
26373 (linux_vesafb_modes): Add a lot of additional modes to the list (based
26374 on documentation from Wikipedia).
26376 2009-05-04 Pavel Roskin <proski@gnu.org>
26378 * disk/ata.c: Spelling fixes.
26379 * disk/raid.c: Likewise.
26380 * disk/usbms.c: Likewise.
26381 * disk/dmraid_nvidia.c: Likewise.
26382 * kern/ieee1275/openfw.c: Likewise.
26383 * kern/ieee1275/init.c: Likewise.
26384 * kern/ieee1275/cmain.c: Likewise.
26385 * boot/i386/pc/cdboot.S: Likewise.
26386 * video/readers/png.c: Likewise.
26387 * video/i386/pc/vbe.c: Likewise.
26388 * fs/udf.c: Likewise.
26389 * fs/hfs.c: Likewise.
26390 * fs/reiserfs.c: Likewise.
26391 * efiemu/runtime/efiemu.c: Likewise.
26392 * efiemu/main.c: Likewise.
26393 * efiemu/mm.c: Likewise.
26394 * include/grub/elf.h: Likewise.
26395 * include/grub/xnu.h: Likewise.
26396 * include/grub/usbdesc.h: Likewise.
26397 * include/grub/usb.h: Likewise.
26398 * include/grub/script_sh.h: Likewise.
26399 * include/grub/lib/LzmaEnc.h: Likewise.
26400 * include/grub/efiemu/efiemu.h: Likewise.
26401 * include/grub/command.h: Likewise.
26402 * normal/menu.c: Likewise.
26403 * normal/main.c: Likewise.
26404 * normal/datetime.c: Likewise.
26405 * bus/usb/uhci.c: Likewise.
26406 * mmap/i386/uppermem.c: Likewise.
26407 * mmap/mmap.c: Likewise.
26408 * commands/acpi.c: Likewise.
26409 * commands/test.c: Likewise.
26410 * partmap/apple.c: Likewise.
26411 * font/font.c: Likewise.
26412 * loader/sparc64/ieee1275/linux.c: Likewise.
26413 * loader/macho.c: Likewise.
26414 * loader/i386/bsd_trampoline.S: Likewise.
26415 * loader/i386/bsd.c: Likewise.
26416 * loader/xnu.c: Likewise.
26417 * term/i386/pc/vesafb.c: Likewise.
26418 * term/usb_keyboard.c: Likewise.
26419 * util/resolve.c: Likewise.
26420 * util/getroot.c: Likewise.
26422 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
26424 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
26426 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26428 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
26431 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26433 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
26434 parameter only available on BIOS.
26436 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26438 Removed wrong semicolon in declaration
26440 * grub/misc.h (grub_dprintf): remove semicolon
26442 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26444 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
26445 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
26446 is done by grub_cmd_linux() now).
26447 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
26448 restore video to text mode.
26449 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
26450 indicates lack of "vga=" parameter. "vga=0" is mapped to
26451 `GRUB_LINUX_VID_MODE_NORMAL'.
26453 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
26455 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
26456 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
26457 and `normal/script.c'. Add `kern/rescue_reader.c',
26458 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
26459 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
26460 `grub_script.tab.c'.
26462 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26463 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26465 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26466 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26468 * Makefile.in: Remove duplicated 2008 in Copyright line.
26470 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
26472 * util/misc.c (grub_util_warn): New function. Emits a warning
26474 * include/grub/util/misc.h (grub_util_warn): New declaration.
26476 * util/i386/pc/grub-install.in: Understand --force and pass it down
26479 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
26481 (setup): Improve error messages and add warnings when requested to
26482 install in odd layouts. Refuse to install using blocklists unless
26485 2009-05-04 martin f. krafft <madduck@madduck.net>
26487 * disk/raid.c (grub_raid_scan_device): Improve debug message.
26489 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26491 Updated copyright year
26493 * fs/hfsplus.c: updated copyright year
26495 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
26499 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
26500 in the space previously used by unused3
26501 (grub_hfsplus_uuid): new function
26502 (grub_hfsplus_fs): added uuid field
26504 2009-05-03 Pavel Roskin <proski@gnu.org>
26506 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
26507 suppress warnings. It's no longer needed.
26508 * disk/host.c: Likewise.
26509 * disk/ata_pthru.c: Likewise.
26510 * disk/loopback.c: Likewise.
26511 * hook/datehook.c: Likewise.
26512 * parttool/pcpart.c: Likewise.
26513 * fs/i386/pc/pxe.c: Likewise.
26514 * fs/ntfscomp.c: Likewise.
26515 * efiemu/main.c: Likewise.
26516 * mmap/mmap.c: Likewise.
26517 * commands/crc.c: Likewise.
26518 * commands/hexdump.c: Likewise.
26519 * commands/hdparm.c: Likewise.
26520 * commands/acpi.c: Likewise.
26521 * commands/echo.c: Likewise.
26522 * commands/minicmd.c: Likewise.
26523 * commands/blocklist.c: Likewise.
26524 * commands/memrw.c: Likewise.
26525 * commands/loadenv.c: Likewise.
26526 * commands/usbtest.c: Likewise.
26527 * commands/lsmmap.c: Likewise.
26528 * commands/boot.c: Likewise.
26529 * commands/parttool.c: Likewise.
26530 * commands/configfile.c: Likewise.
26531 * commands/search.c: Likewise.
26532 * commands/ieee1275/suspend.c: Likewise.
26533 * commands/cat.c: Likewise.
26534 * commands/i386/pc/pxecmd.c: Likewise.
26535 * commands/i386/pc/play.c: Likewise.
26536 * commands/i386/pc/halt.c: Likewise.
26537 * commands/i386/pc/vbeinfo.c: Likewise.
26538 * commands/i386/pc/vbetest.c: Likewise.
26539 * commands/lspci.c: Likewise.
26540 * commands/date.c: Likewise.
26541 * commands/handler.c: Likewise.
26542 * commands/ls.c: Likewise.
26543 * commands/test.c: Likewise.
26544 * commands/cmp.c: Likewise.
26545 * commands/efi/loadbios.c: Likewise.
26546 * commands/efi/fixvideo.c: Likewise.
26547 * commands/halt.c: Likewise.
26548 * commands/help.c: Likewise.
26549 * commands/reboot.c: Likewise.
26550 * hello/hello.c: Likewise.
26551 * script/sh/main.c: Likewise.
26552 * loader/xnu.c: Likewise.
26553 * term/terminfo.c: Likewise.
26554 * term/i386/pc/serial.c: Likewise.
26555 * term/usb_keyboard.c: Likewise.
26557 2009-05-03 David S. Miller <davem@davemloft.net>
26559 * normal/menu.c: Include grub/parser.h
26561 2009-05-03 Pavel Roskin <proski@gnu.org>
26563 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
26565 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
26566 Suggested by Javier Martín <lordhabbit@gmail.com>
26568 * util/i386/pc/grub-mkrescue.in: Allow for the case when
26569 efiemu??.o doesn't exist.
26570 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
26573 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
26575 FreeBSD 64-bit support
26577 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
26578 and loader/i386/bsd_trampoline.S
26579 (bsd_mod_ASFLAGS): new variable
26580 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
26581 (FREEBSD_MODTYPE_KERNEL64): likewise
26582 (grub_bsd64_trampoline_start): likewise
26583 (grub_bsd64_trampoline_end): likewise
26584 (grub_bsd64_trampoline_selfjump): likewise
26585 (grub_bsd64_trampoline_gdt): likewise
26586 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
26587 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
26588 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
26589 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
26590 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
26592 * loader/i386/bsd_pagetable.c: new file
26593 * loader/i386/bsd_trampoline.S: likewise
26594 * loader/i386/bsd.c (ALIGN_QWORD): new macro
26595 (ALIGN_VAR): likewise
26596 (entry_hi): new variable
26597 (kern_end_mdofs): likewise
26598 (is_64bit): likewise
26599 (grub_freebsd_add_meta): use ALIGN_VAR
26600 (grub_e820_mmap): new declaration
26601 (grub_freebsd_add_mmap): new function
26602 (grub_freebsd_add_meta_module): support 64 bit kernels
26603 (grub_freebsd_list_modules): use ALIGN_VAR
26604 (gdt_descriptor): new declaration
26605 (grub_freebsd_boot): support 64 bit kernels
26606 (grub_bsd_elf64_hook): new function
26607 (grub_bsd_load_elf): support elf64
26609 2009-05-03 Bean <bean123ch@gmail.com>
26611 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
26612 after we get the result of if statement.
26614 2009-05-03 Bean <bean123ch@gmail.com>
26616 * Makefile.in (enable_efiemu): New variable.
26618 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
26620 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
26622 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
26623 path, add -mno-red-zone option.
26624 (efiemu64_s.o): Likewise.
26625 (efiemu64.o): Use macro $^ for source file.
26627 * configure.ac (--enable-efiemu): New option.
26629 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
26633 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
26634 (pkglib_MODULES): add xnu.mod
26635 (xnu_mod_SOURCES): new variable
26636 (xnu_mod_CFLAGS): likewise
26637 (xnu_mod_LDFLAGS): likewise
26638 (xnu_mod_ASFLAGS): likewise
26639 * conf/i386-pc.rmk: likewise
26640 * conf/x86_64-efi.rmk: likewise
26641 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
26643 * include/grub/i386/macho.h: new file
26644 * include/grub/i386/xnu.h: likewise
26645 * include/grub/macho.h: likewise
26646 * include/grub/machoload.h: likewise
26647 * include/grub/x86_64/macho.h: likewise
26648 * include/grub/x86_64/xnu.h: likewise
26649 * include/grub/xnu.h: likewise
26650 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
26651 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
26652 * loader/i386/efi/xnu.c: new file
26653 * loader/i386/pc/xnu.c: likewise
26654 * loader/i386/xnu.c: likewise
26655 * loader/i386/xnu_helper.S: likewise
26656 * loader/macho.c: likewise
26657 * loader/xnu.c: likewise
26658 * loader/xnu_resume.c: likewise
26659 * util/grub-dumpdevtree: likewise
26660 * include/grub/i386/pit.h: include grub/err.h
26661 (grub_pit_wait): export
26662 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
26664 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26668 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
26669 _linux_efi, linux_efi.
26670 new files in grub-emu
26671 new targets efiemu32.o and efiemu64.o
26672 * loader/linux_normal_efiemu.c: likewise
26673 * loader/i386/efi/linux.c: added preliminary efiemu support
26674 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
26676 * include/grub/autoefi.h: new file
26677 * include/grub/i386/efiemu.h: likewise
26678 * include/grub/i386/pc/efiemu.h: likewise
26679 * include/grub/efi/api.h: add LL suffix when necessary
26680 new definitions relating to tables
26681 * include/grub/efiemu/efiemu.h: new file
26682 * include/grub/efiemu/runtime.h: likewise
26683 * efiemu/prepare.c: likewise
26684 * efiemu/loadcore_common.c: likewise
26685 * efiemu/loadcore64.c: likewise
26686 * efiemu/runtime/efiemu.sh: likewise
26687 * efiemu/runtime/efiemu.S: likewise
26688 * efiemu/runtime/efiemu.c: likewise
26689 * efiemu/runtime/config.h: likewise
26690 * efiemu/prepare32.c: likewise
26691 * efiemu/main.c: likewise
26692 * efiemu/modules/pnvram.c: likewise
26693 * efiemu/modules/i386: likewise
26694 * efiemu/modules/i386/pc: likewise
26695 * efiemu/modules/acpi.c: likewise
26696 * efiemu/i386/pc/cfgtables.c: likewise
26697 * efiemu/i386/loadcore64.c: likewise
26698 * efiemu/i386/loadcore32.c: likewise
26699 * efiemu/prepare64.c: likewise
26700 * efiemu/loadcore.c: likewise
26701 * efiemu/symbols.c: likewise
26702 * efiemu/mm.c: likewise
26703 * efiemu/loadcore32.c: likewise
26705 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26709 * commands/acpi.c: new file
26710 * commands/i386/pc/acpi.c: likewise
26711 * commands/efi/acpi.c: likewise
26712 * include/grub/acpi.h: likewise
26713 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
26714 (acpi_mod_SOURCES): new variable
26715 (acpi_mod_CFLAGS): likewise
26716 (acpi_mod_LDFLAGS): likewise
26717 * conf/i386-efi.rmk: likewise
26718 * conf/x86_64-efi.rmk: likewise
26720 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26722 Missing part from mmap patch
26724 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
26725 (grub_mmap_unregister)
26726 (grub_mmap_free_and_unregister): use grub_mmap_register
26728 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26732 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
26733 * loader/i386/linux.c (find_mmap_size): likewise
26734 (allocate_pages): likewise
26735 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
26736 (grub_fill_multiboot_mmap): likewise
26737 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
26738 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
26739 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
26740 (OPENBSD_MMAP_RESERVED): likewise
26741 * include/grub/i386/pc/memory.h: include grub/memory.h
26742 (grub_lower_mem): removed
26743 (grub_upper_mem): likewise
26744 (GRUB_MACHINE_MEMORY_ACPI): new definition
26745 (GRUB_MACHINE_MEMORY_NVS): likewise
26746 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
26747 (GRUB_MACHINE_MEMORY_HOLE): likewise
26748 (grub_machine_mmap_register): likewise
26749 (grub_machine_mmap_unregister): likewise
26750 (grub_machine_get_upper): likewise
26751 (grub_machine_get_lower): likewise
26752 (grub_machine_get_post64): likewise
26753 * include/grub/i386/efi/memory.h: new file
26754 * include/grub/x86_64/efi/memory.h: likewise
26755 * include/grub/efi/memory.h: likewise
26756 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
26757 (mmap_mod_SOURCES): new variable
26758 (mmap_mod_LDFLAGS): likewise
26759 (mmap_mod_ASFLAGS): likewise
26760 * conf/i386-coreboot.rmk: likewise
26761 * conf/i386-ieee1275.rmk: likewise
26762 * conf/i386-efi.rmk: likewise
26763 * conf/x86_64-efi.rmk: likewise
26764 * include/grub/types.h (UINT_TO_PTR): new macro
26765 (PTR_TO_UINT32): likewise
26766 (PTR_TO_UINT64): likewise
26767 * include/grub/memory.h: new file
26768 * mmap/i386/pc/mmap.c: likewise
26769 * mmap/i386/pc/mmap_helper.S: likewise
26770 * mmap/i386/uppermem.c: likewise
26771 * mmap/mmap.c: likewise
26772 * mmap/efi/mmap.c: likewise
26773 * kern/i386/coreboot/init.c (grub_machine_init): don't use
26775 * kern/i386/pc/init.c (grub_lower_mem): removed variable
26776 (grub_upper_mem): likewise
26777 (grub_machine_init): don't use grub_upper_mem,
26778 make grub_lower_mem local
26779 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
26780 grub_mmap_iterate and grub_mmap_get_upper
26781 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
26783 2009-05-02 Bean <bean123ch@gmail.com>
26785 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
26786 script/sh/parser.y.
26787 (pkglib_MODULES): Add normal.mod and sh.mod.
26788 (normal_SOURCES): New variable.
26789 (normal_mod_CFLAGS): Likewise.
26790 (normal_mod_LDFLAGS): Likewise.
26791 (sh_mod_SOURCES): Likewise.
26792 (sh_mod_CFLAGS): Likewise.
26793 (sh_mod_LDFLAGS): Likewise.
26795 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
26796 script/sh/lexer.c_DEPENDENCIES.
26797 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
26798 kern/rescue_reader.c and kern/rescue_parser.c.
26799 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
26800 (grub_emu_SOURCES): Change source files.
26801 (pkglib_MODULES): Remove normal.mod.
26802 (normal_SOURCES): Removed.
26803 (normal_mod_CFLAGS): Likewise.
26804 (normal_mod_LDFLAGS): Likewise.
26805 * conf/i386-coreboot.rmk: Likewise.
26806 * conf/i386-efi.rmk: Likewise.
26807 * conf/i386-ieee1276.rmk: Likewise.
26808 * conf/powerpc-ieee1275.rmk: Likewise.
26809 * conf/sparc64-ieee1275.rmk: Likewise.
26810 * conf/x86_64-efi.rmk: Likewise.
26812 * include/grub/command.h (grub_command_execute): New inline function.
26814 * include/grub/menu.h (grub_menu_entry): Removed commands field.
26816 * include/grub/normal.h: Remove <grub/setjmp.h>.
26817 (grub_fs_module_list): Moved to normal/autofs.c.
26818 (grub_exit_env): Removed.
26819 (grub_command_execute): Likewise.
26820 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
26822 (read_command_list): New function declaration.
26823 (read_fs_list): Likewise.
26825 * include/parser.h: Include <grub/reader.h>.
26826 (grub_parser_split_cmdline): Change type of getline parameter.
26827 (grub_parser): New structure.
26828 (grub_parser_class): New variable.
26829 (grub_parser_execute): New function declaration.
26830 (grub_register_rescue_parser): Likewise.
26831 (grub_parser_register): New inline function.
26832 (grub_parser_unregister): Likewise.
26833 (grub_parser_get_current): Likewise.
26834 (grub_parser_set_current): Likewise.
26836 * include/grub/reader.h: New file.
26837 * kern/reader.c: Likewise.
26838 * kern/rescue_parser.c: Likewise.
26839 * kern/rescue_reader.c: Likewise.
26840 * normal/autofs.c: Likewise.
26841 * normal/dyncmd.c: Likewise.
26843 * include/grub/rescue.h: Removed.
26844 * normal/command.h: Likewise.
26846 * include/grub/script.h: Moved to ...
26847 * include/grub/script_sh.h: ... Moved here.
26848 * normal/execute.c: Moved to ...
26849 * script/sh/execute.c: ... Moved here.
26850 * normal/function.c: Moved to ...
26851 * script/sh/function.c: ... Moved here.
26852 * normal/lexer.c: Moved to ...
26853 * script/sh/lexer.c: ... Moved here.
26854 * normal/parser.y: Moved to ...
26855 * script/sh/parser.y: ... Moved here.
26856 * normal/script.c: Moved to ...
26857 * script/sh/script.c: ... Moved here.
26859 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
26861 (grub_exit_env): Removed.
26862 (fs_module_list): Moved to normal/autofs.c.
26863 (grub_file_getline): Don't handle comment here.
26864 (free_menu): Skip removed field entry->commands.
26865 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
26867 (read_config_file): Removed nested parameter, change getline function.
26868 (grub_enter_normal_mode): Removed.
26869 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
26870 (read_command_list): Likewise.
26871 (autoload_fs_module): Moved to normal/autofs.c.
26872 (read_fs_list): Likewise.
26873 (reader_nested): New variable.
26874 (grub_normal_execute): Run parser.sh to switch to sh parser.
26875 (grub_cmd_rescue): Removed.
26876 (cmd_normal): Removed.
26877 (grub_cmd_normal): Unregister itself at the beginning. Don't register
26879 (grub_cmdline_run): New function.
26880 (grub_normal_reader_init): Likewise.
26881 (grub_normal_read_line): Likewise.
26882 (grub_env_write_pager): Likewise.
26883 (cmdline): New variable.
26884 (grub_normal_reader): Likewise.
26885 (GRUB_MOD_INIT): Register normal reader and set as current, register
26886 pager hook, register normal command with grub_register_command_prio,
26887 so that it won't show up in command.lst.
26888 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
26889 grub_fs_autoload_hook.
26891 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
26892 (grub_menu_execute_entry): Replace grub_script_execute with
26893 grub_parser_execute, change parameter to grub_command_execute.
26895 * normal/menu_text.c: Remove <grub/script.h>.
26897 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
26898 and <grub/parser.h>.
26899 (run): Change editor_getline to use new parser interface. Change
26900 parameter to grub_command_execute.
26902 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
26903 <grub/reader.h> and <grub/parser.h>.
26904 (grub_load_normal_mode): Execute normal command.
26905 (grub_main): Call grub_register_core_commands,
26906 grub_register_rescue_parser and grub_register_rescue_reader, use
26907 grub_reader_loop to enter input loop.
26909 * kern/parser.c (grub_parser_split_cmdline): Change type of
26911 (grub_parser_class): New variable.
26912 (grub_parser_execute): New function.
26914 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
26915 * loader/multiboot2.c: Likewise.
26916 * loader/sparc64/ieee1275/linux.c: Likewise.
26918 * util/grub-emu.c (read_command_list): New dummy function.
26920 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
26922 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
26923 count to 16 for CCISS and IDA.
26925 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
26927 * normal/menu_text.c (grub_wait_after_message): Print a newline
26928 after waiting for user input.
26930 * loader/i386/linux.c: Include `<grub/normal.h>'.
26931 (grub_cmd_linux): Improve the error message about `ask' mode, by
26932 waiting for user input so it's not missed (we can do this, since
26933 user requested interaction).
26935 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
26937 Added missing lst to grub-mkrescue
26939 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
26940 and ${input_dir}/parttool.lst
26942 2009-04-30 David S. Miller <davem@davemloft.net>
26944 * util/hostdisk.c (device_is_wholedisk): New function.
26945 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
26946 zero only if device_is_wholedisk() returns true.
26948 * util/hostdisk.c (convert_system_partition_to_system_disk):
26949 Handle virtual disk devices named /dev/vdiskX as found on sparc
26952 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
26953 lettered partition specifier is found, convert to numbered.
26955 2009-04-29 David S. Miller <davem@davemloft.net>
26957 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
26958 * include/grub/sparc64/ieee1275/memory.h: Likewise.
26960 * normal/command.c: Add missing newline at end of file.
26962 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
26964 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
26965 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
26966 grub_ofdisk_read): Likewise, and deal similarly with the fact that
26967 ihandles have a 32-bit type but need to be stored in a "void *".
26969 2009-04-28 Pavel Roskin <proski@gnu.org>
26971 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
26972 not disk. Adjust all dependencies.
26973 (grub_fs_uuid_close): Use grub_device_close(), not
26976 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
26977 parent's partition, don't copy it by reference, as it gets freed
26980 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26982 Preboot hooks support
26984 * commands/boot.c (struct grub_preboot_t): new declaration
26985 (preboots_head): new variable
26986 (preboots_tail): likewise
26987 (grub_loader_register_preboot_hook): new function
26988 (grub_loader_unregister_preboot_hook): likewise
26989 (grub_loader_set): launch preboot hooks
26990 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
26991 (grub_loader_register_preboot_hook): new declaration
26992 (grub_loader_unregister_preboot_hook): likewise
26994 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26998 * disk/scsi.c (grub_scsi_open): added missing cast when
26999 calling grub_dprintf
27001 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
27003 Bug and warning fixes
27005 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
27007 * commands/test.c (test_parse): fixed bug with file tests and corrected
27008 declaration of find_file
27010 2009-04-26 Pavel Roskin <proski@gnu.org>
27012 * Makefile.in: Don't install empty manual pages if help2man is
27013 missing. Use help2man option for output, not shell redirection.
27015 2009-04-26 David S. Miller <davem@davemloft.net>
27017 * util/grub-mkdevicemap.c (make_device_map): Add missing
27018 NESTED_FUNC_ATTR to process_device().
27020 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
27024 * commands/test.c: rewritten to use bash-like test
27026 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
27028 Parttool autoloading and improvements
27030 * Makefile.in (pkglib_DATA): add parttool.lst
27031 (parttool.lst): new target
27032 * genmk.rb: generate parttool-*
27033 (CLEANFILES): add #{parttool}
27034 (PARTTOOLFILES): new variable
27035 * genparttoollist.sh: new file
27036 * parttool/pcpart.c (grub_pcpart_boot): more feedback
27037 (grub_pcpart_type): likewise
27038 * commands/parttool.c (helpmsg): new variable
27039 (grub_cmd_parttool): output help if not enough arguments are supplied
27041 (GRUB_MOD_INIT(parttool)): use helpmsg
27043 2009-04-24 David S. Miller <davem@davemloft.net>
27045 Avoiding opening same device multiple times in device iterator.
27047 * kern/device.c: (grub_device_iterate): Define struct part_ent,
27048 and use it to build a list of partitions in iterate_disk() and
27049 iterate_partition().
27051 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
27054 * disk/ieee1275/nand.c (grub_nand_iterate): Return
27055 grub_devalias_iterate() result instead of unconditional 0.
27056 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
27057 Also, capture hook return value, either directly or via
27058 grub_children_iterate(), and propagate to caller.
27059 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
27060 grub_children_iterate): Return value is now 'int' instead of
27062 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
27063 like a proper iterator, stopping when hooks return non-zero.
27064 (grub_devalias_iterate): Likewise.
27066 2009-04-23 David S. Miller <davem@davemloft.net>
27068 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
27070 2009-04-22 David S. Miller <davem@davemloft.net>
27072 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
27073 is larger than address_cells, use that value for address_cells too.
27075 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
27076 IEEE1275_MAX_PATH_LEN): Define.
27077 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
27078 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
27079 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
27080 'devtype'. Explicitly NULL terminate devalias expansion.
27082 * util/sparc64/ieee1275/misc.c: New file.
27083 * util/sparc64/ieee1275/grub-setup.c: New file.
27084 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
27085 * util/sparc64/ieee1275/grub-mkimage.c: New file.
27086 * util/sparc64/ieee1275/grub-install.in: New file.
27087 * util/ieee1275/ofpath.c: New file.
27088 * util/ieee1275/devicemap.c: New file.
27089 * util/devicemap.c: New file.
27090 * util/deviceiter.c: New file.
27091 * kern/sparc64/ieee1275/init.c: New file.
27092 * include/grub/util/ofpath.h: New file.
27093 * include/grub/util/deviceiter.h: New file.
27094 * util/grub-mkdevicemap.c: Include deviceiter.h.
27095 Implement using grub_util_emit_devicemap_entry and
27096 grub_util_iterate_devices.
27097 * conf/i386-corebook.rmk: Build util/deviceiter.c and
27098 util/devicemap.c into grub-mkdevicemap
27099 * conf/i386-efi.rmk: Likewise.
27100 * conf/i386-ieee1275.rmk: Likewise.
27101 * conf/i386-pc.rmk: Likewise.
27102 * conf/powerpc-ieee1275.rmk: Likewise.
27103 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
27104 images and installation utilities. Build kernel as image
27105 instead of as elf binary. Use common rules as much as possible.
27107 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
27109 Correct GPT definition
27111 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
27114 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
27116 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
27118 2009-04-19 David S. Miller <davem@davemloft.net>
27120 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
27121 (grub_rescue_cmd_linux): Rename to...
27122 (grub_cmd_linux): and fix prototype.
27123 (grub_rescue_cmd_initrd): Rename to...
27124 (grub_cmd_initrd): and fix prototype.
27125 (cmd_linux, cmd_initrd): New.
27126 (GRUB_MOD_INIT(linux)): Use grub_register_command().
27127 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
27129 2009-04-17 Pavel Roskin <proski@gnu.org>
27131 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
27133 (grub_ohci_transfer): Likewise.
27135 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
27137 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
27138 return without a value. Fix inconsistent indentation.
27140 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
27141 match struct grub_fs.
27143 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
27144 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
27145 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
27146 * commands/lspci.c (grub_lspci_iter): Likewise.
27148 2009-04-16 Bean <bean123ch@gmail.com>
27150 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
27153 2009-04-15 Pavel Roskin <proski@gnu.org>
27155 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
27156 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
27157 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
27160 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
27162 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
27163 that no multiple data or metadata areas are supported and `Unknown
27166 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27168 Move loader out of the kernel
27170 * kern/loader.c: moved to ...
27171 * commands/boot.c: ... moved here
27172 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
27173 * commands/boot.c (grub_cmd_boot): moved here. All users updated
27174 * include/grub/kernel.h (grub_machine_fini): export
27175 * include/grub/loader.h (grub_loader_is_loaded): update declaration
27176 (grub_loader_set): likewise
27177 (grub_loader_unset): likewise
27178 (grub_loader_boot): likewise
27179 * conf/common.rmk: new module boot.mod
27180 (pkglib_MODULES): add boot.mod
27181 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
27182 (grub_emu_SOURCES): likewise
27183 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
27184 (grub_emu_SOURCES): likewise
27185 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
27186 (grub_emu_SOURCES): likewise
27187 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
27188 (grub_emu_SOURCES): likewise
27189 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
27190 (grub_emu_SOURCES): likewise
27191 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
27192 (grub_emu_SOURCES): likewise
27193 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
27194 (grub_emu_SOURCES): likewise
27196 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27198 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
27200 * kern/misc.c (grub_itoa): Removed function
27201 (grub_ltoa): likewise
27202 (grub_vsprintf): use grub_lltoa
27204 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
27208 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
27209 * conf/i386-coreboot.rmk: likewise
27210 * conf/i386-ieee1275.rmk: likewise
27211 * conf/powerpc-ieee1275.rmk: likewise
27213 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
27215 * INSTALL: Add that `./autogen.sh' needs to be run before
27218 2009-04-14 Bean <bean123ch@gmail.com>
27220 * Makefile.in (pkglib_DATA): Add handler.lst.
27221 (handler.lst): New rule.
27223 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
27224 * conf/i386-coreboot.rmk: Likewise.
27225 * conf/i386-ieee1275.rmk: Likewise.
27226 * conf/i386-efi.rmk: Likewise.
27227 * conf/x86_64-efi.rmk: Likewise.
27228 * conf/powerpc-ieee1275.rmk: Likewise.
27229 * conf/sparc64-ieee1275.rmk: Likewise.
27231 * genhandlerlist.sh: New file.
27233 * genmk.rb: Add rules to generate handler.lst.
27235 * include/grub/normal.h (grub_file_getline): New function definition.
27236 (read_handler_list): Likewise.
27237 (free_handler_list): Likewise.
27239 * include/grub/term.h (grub_term_register_input): Add name parameter
27240 for auto generation of handler.lst.
27241 (grub_term_register_output): Likewise.
27243 * normal/handler.c: New file.
27245 * normal/main.c (get_line): Renamed to grub_file_getline.
27246 (read_config_file): Use the newly renamed grub_file_getline.
27247 (read_command_list): Likewise.
27248 (read_fs_list): Likewise.
27249 (grub_normal_execute): Call read_handler_list to parse handler.lst.
27250 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
27252 * term/efi/console.c (grub_console_init): Add name parameter for auto
27253 generation of handler.lst.
27254 * term/gfxterm.c: Likewise.
27255 * term/i386/pc/at_keyboard.c: Likewise.
27256 * term/i386/pc/console.c: Likewise.
27257 * term/i386/pc/serial.c: Likewise.
27258 * term/i386/pc/vesafb.c: Likewise.
27259 * term/i386/pc/vga.c: Likewise.
27260 * term/i386/pc/vga_text.c: Likewise.
27261 * term/ieee1275/ofconsole.c: Likewise.
27262 * term/usb_keyboard.c: Likewise.
27264 2009-04-14 Bean <bean123ch@gmail.com>
27266 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
27267 properly with null character.
27269 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
27271 * configure: Remove.
27272 * config.h.in: Likewise.
27273 * stamp-h.in: Likewise.
27274 * DISTLIST: Likewise.
27275 * conf/common.mk: Likewise.
27276 * conf/i386-coreboot.mk: Likewise.
27277 * conf/i386-efi.mk: Likewise.
27278 * conf/i386-ieee1275.mk: Likewise.
27279 * conf/i386.mk: Likewise.
27280 * conf/i386-pc.mk: Likewise.
27281 * conf/powerpc-ieee1275.mk: Likewise.
27282 * conf/sparc64-ieee1275.mk: Likewise.
27283 * conf/x86_64-efi.mk: Likewise.
27285 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
27288 2009-04-14 John Stanley <jpsinthemix@verizon.net>
27289 David S. Miller <davem@davemloft.net>
27291 * util/hostdisk.c (make_device_name): Fix buffer length
27294 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
27296 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
27297 <sys/param.h> and <sys/sysctl.h>.
27298 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
27299 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
27300 opening the device and reset them afterwards.
27302 2009-04-13 Pavel Roskin <proski@gnu.org>
27304 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
27305 Reported by John Stanley <jpsinthemix@verizon.net>
27307 2009-04-13 Robert Millan <rmh@aybabtu.com>
27309 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
27310 that name for menuentries when appropriate.
27312 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27314 * util/grub.d/10_freebsd.in: Add a missing `fi'.
27316 2009-04-13 Robert Millan <rmh@aybabtu.com>
27318 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
27319 to Linux, simply abort telling the user it's no longer supported.
27321 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27323 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
27324 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
27325 `freebsd_loadenv' only when devices.hints exist.
27327 2009-04-13 Pavel Roskin <proski@gnu.org>
27329 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
27331 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
27333 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
27335 (grub_drive): Likewise.
27337 2009-04-13 David S. Miller <davem@davemloft.net>
27339 * kern/sparc64/ieee1275/ieee1275.c: New file.
27340 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
27341 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
27342 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
27343 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
27344 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
27345 grub_ieee1275_alloc_physmem): Declare new exported functions.
27347 * include/grub/sparc64/ieee1275/loader.h: New file.
27348 * include/grub/sparc64/ieee1275/memory.h: Likewise.
27349 * include/grub/sparc64/kernel.h: Likewise.
27350 * loader/sparc64/ieee1275/linux.c: Likewise.
27352 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
27353 (grub_fstest_SOURCES): Likewise.
27355 * util/hostdisk.c (make_device_name): Do not make any assumptions
27356 about the length of drive names.
27358 * kern/dl.c (grub_dl_load_file): Close file immediately when
27359 we are done using it.
27361 2009-04-12 David S. Miller <davem@davemloft.net>
27363 * kern/misc.c (grub_ltoa): Fix cast when handling negative
27364 values. Noticed by Pavel Roskin.
27366 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
27369 * genmk.rb: Add more flexible image type specification, also
27370 pass --strip-unneeded to objcopy.
27371 * conf/i386-pc.rmk: Use *_FORMAT.
27372 * conf/i386-pc.mk: Rebuilt.
27374 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
27375 (OFDISK_HASH_SZ): Define.
27376 (ofdisk_hash): New hash table.
27377 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
27378 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
27379 instead of device phandle which is not unique.
27381 * kern/sparc64/ieee1275/init.c: Delete, replace with...
27382 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
27383 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
27384 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
27385 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
27386 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
27387 GRUB_KERNEL_MACHINE_DATA_END): Define.
27388 (grub_kernel_image_size, grub_total_module_size): Declare.
27390 2009-04-12 Pavel Roskin <proski@gnu.org>
27392 * configure.ac: Change the logic when we check for target tools.
27393 Do it when the target is specified and it's different from the
27394 specified value of the host.
27396 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
27398 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
27399 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
27400 GNU/kFreeBSD. Check if a device is a character device. Use
27401 DIOCGMEDIASIZE to get the size.
27402 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
27403 support for GNU/kFreeBSD.
27404 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
27405 is a character device instead of a block device. Add support for
27406 FreeBSD device names.
27408 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
27409 is a character device instead of a block device.
27411 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
27412 is a character device instead of a block device.
27414 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
27416 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
27417 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
27418 FreeBSD. Check if a device is a character device. Use
27419 DIOCGMEDIASIZE to get the size.
27420 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
27421 support for FreeBSD.
27422 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
27423 is a character device instead of a block device. Add support for
27424 FreeBSD device names.
27426 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
27427 a character device instead of a block device.
27428 (grub_util_check_char_device): New function.
27430 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
27431 a character device instead of a block device.
27433 * include/grub/util/getroot.h (grub_util_check_char_device): New
27436 2009-04-11 David S. Miller <davem@davemloft.net>
27438 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
27440 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
27441 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
27442 function, if present.
27443 (__bswapdi2): Likewise.
27445 * include/grub/sparc64/ieee1275/boot.h: New file.
27446 * boot/sparc64/ieee1275/boot.S: Likewise.
27447 * boot/sparc64/ieee1275/diskboot.S: Likewise.
27449 * kern/misc.c (grub_ltoa): New function.
27450 (grub_vsprintf): Use it to format 'long' integers.
27452 2009-04-10 David S. Miller <davem@davemloft.net>
27454 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
27455 slots are of type grub_ieee1275_cell_t.
27456 (grub_nand_read): Likewise.
27457 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
27458 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
27459 macros are used to compare values in arg/ret block of the call.
27460 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
27461 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
27462 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
27463 grub_ieee1275_instance_to_path, grub_ieee1275_write,
27464 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
27465 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
27466 grub_ieee1275_close, grub_ieee1275_set_property,
27467 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
27468 grub_ieee1275_cell_t.
27469 * kern/ieee1275/openfw.c (grub_map): Likewise.
27470 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
27471 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
27473 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
27474 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
27475 (grub_devalias_iterate): Likewise.
27477 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
27481 * fs/ufs.c (INODE_NBLOCKS): new definition
27482 (struct grub_ufs_dirent): added fields for non-BSD dirents
27483 (grub_ufs_get_file_block): fixed double indirect handling
27484 (grub_ufs_lookup_symlink): use more robust way to determine whether
27486 (grub_ufs_find_file): support for non-BSD dirents
27487 (grub_ufs_dir): support for non-BSD dirents
27489 2009-04-10 Bean <bean123ch@gnail.com>
27491 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
27492 attribute, otherwise the size would be wrong for i386 platform.
27494 * include/grub/pci.h (grub_pci_read_word): New inline function.
27495 (grub_pci_read_byte): Likewise.
27496 (grub_pci_write): Likewise.
27497 (grub_pci_write_word): Likewise.
27498 (grub_pci_write_byte): Likewise.
27500 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
27502 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
27503 (find_framebuf): Scan pci to locate the frame buffer address.
27505 * commands/efi/fixvideo.c: New file.
27507 * commands/efi/loadbios.c: Likewise.
27509 * commands/memrw.c: Likewise.
27511 * util/grub-dumpbios.in: Likewise.
27513 * conf/common.rmk (grub-dumpbios): New utility.
27514 (pkglib_MODULES): New module memrw.mod.
27515 (memrw_mod_SOURCE): New macro.
27516 (memrw_mod_CFLAGS): Likewise.
27517 (memrw_mod_LDFLAGS): Likewise.
27519 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
27521 (loadbios_mod_SOURCE): New macro.
27522 (loadbios_mod_CFLAGS): Likewise.
27523 (loadbios_mod_LDFLAGS): Likewise.
27524 (fixvideo_mod_SOURCE): Likewise.
27525 (fixvideo_mod_CFLAGS): Likewise.
27526 (fixvideo_mod_LDFLAGS): Likewise.
27528 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
27530 (loadbios_mod_SOURCE): New macro.
27531 (loadbios_mod_CFLAGS): Likewise.
27532 (loadbios_mod_LDFLAGS): Likewise.
27533 (fixvideo_mod_SOURCE): Likewise.
27534 (fixvideo_mod_CFLAGS): Likewise.
27535 (fixvideo_mod_LDFLAGS): Likewise.
27537 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
27539 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
27541 2009-04-07 David S. Miller <davem@davemloft.net>
27543 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
27544 support for R_SPARC_OLO10 relocations. Fix compile warning for
27545 R_SPARC_WDISP30 case.
27546 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
27548 2009-04-06 Pavel Roskin <proski@gnu.org>
27550 * include/grub/misc.h (ARRAY_SIZE): New macro.
27551 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
27553 * loader/i386/linux.c (allocate_pages): Use free_pages().
27554 (grub_linux_unload): Don't use free_pages().
27555 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
27556 wrong index. Treat all other modes as text modes.
27557 (grub_cmd_linux): Initialize vid_mode unconditionally to
27558 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
27560 * commands/help.c (print_command_help): Use cmd->prio, not
27561 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
27563 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
27567 * parttool/pcpart.c: new file
27568 * commands/parttool.c: likewise
27569 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
27570 (parttool_mod_SOURCES): new variable
27571 (parttool_mod_CFLAGS): likewise
27572 (parttool_mod_LDFLAGS): likewise
27573 (pcpart_mod_SOURCES): likewise
27574 (pcpart_mod_CFLAGS): likewise
27575 (pcpart_mod_LDFLAGS): likewise
27576 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
27577 and parttool/pcpart.c
27578 * conf/i386-efi.rmk: likewise
27579 * conf/i386-ieee1275.rmk: likewise
27580 * conf/i386-pc.rmk: likewise
27581 * conf/powerpc-ieee1275.rmk: likewise
27582 * conf/sparc64-ieee1275.rmk: likewise
27583 * conf/x86_64-ieee1275.rmk: likewise
27585 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27587 Support for mtime and further expandability of dir command
27589 * include/grub/lib/datetime.h: moved to ...
27590 * include/grub/datetime.h: ... moved here and added
27591 declaration of grub_unixtime2datetime. All users updated
27592 * include/grub/fs.h: new syntax for dir and mtime functions in
27594 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
27595 and GRUB_FSHELP_FLAGS_MASK
27596 * commands/ls.c (grub_ls_list_files): Write mtime in long format
27597 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
27598 (grub_ext2_mtime): new function
27599 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
27600 (grub_hfsplus_mtime): new function
27601 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
27602 (GRUB_UFS_ATTR_FILE): likewise
27603 (GRUB_UFS_ATTR_LNK): likewise
27604 (struct grub_ufs_sblock): new fields mtime
27605 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
27607 (grub_ufs_dir): mtime support
27608 (grub_ufs_mtime): new function
27609 * fs/affs.c (grub_affs_dir): use new dir syntax
27610 * fs/afs.c (grub_afs_dir): likewise
27611 * fs/cpio.c (grub_cpio_dir): likewise
27612 * fs/fat.c (grub_fat_find_dir): likewise
27613 * fs/hfs.c (grub_hfs_dir): likewise
27614 * fs/iso9660.c (grub_iso9660_dir): likewise
27615 * fs/jfs.c (grub_jfs_dir): likewise
27616 * fs/minix.c (grub_minix_dir): likewise
27617 * fs/ntfs.c (grub_ntfs_dir): likewise
27618 * fs/reiserfs.c (grub_reiserfs_dir): likewise
27619 * fs/sfs.c (grub_sfs_dir): likewise
27620 * fs/xfs.c (grub_xfs_dir): likewise
27621 * util/hostfs.c (grub_hostfs_dir): likewise
27622 * lib/datetime.c: moved to ...
27623 * normal/datetime.c: ... moved here
27624 (grub_unixtime2datetime): new function
27625 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
27626 * normal/completion.c (iterate_dir): use new dir syntax
27627 * normal/misc.c (grub_normal_print_device_info): tell the
27628 last modification time of a volume
27629 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
27630 * conf/common.rmk: added lib/datetime.c to ls.mod
27631 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
27632 (normal_mod_SOURCES): likewise
27633 (datetime_mod_SOURCES): Removed lib/datetime.c
27634 * conf/i386-efi.rmk: likewise
27635 * conf/i386-ieee1275.rmk: likewise
27636 * conf/i386-pc.rmk: likewise
27637 * conf/powerpc-ieee1275.rmk: likewise
27638 * conf/sparc64-ieee1275.rmk: likewise
27639 * conf/x86_64-efi.rmk: likewise
27641 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
27643 Trim trailing spaces in FAT label and support mtools-like labels
27645 * fs/fat.c (grub_fat_iterate_dir): New function based
27646 on grub_fat_find_dir
27647 (grub_fat_find_dir): use grub_fat_iterate_dir
27648 (grub_fat_label): likewise
27650 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
27652 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
27654 remove extraneous kernel_elf_HEADERS
27656 2009-04-04 Bean <bean123ch@gnail.com>
27658 * include/grub/util/misc.h: Add dummy function fsync for mingw.
27660 * util/misc.c: Likewise.
27662 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27664 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
27665 instead of grub_printf.
27667 2009-04-03 Robert Millan <rmh@aybabtu.com>
27669 * loader/i386/linux.c (grub_linux_setup_video): Fill
27670 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
27671 values from `mode info' structure instead of hardcoded
27674 2009-04-01 Pavel Roskin <proski@gnu.org>
27676 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
27678 * genmk.rb: Likewise.
27679 * configure.ac: Likewise.
27681 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
27683 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
27684 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
27686 2009-04-01 David S. Miller <davem@davemloft.net>
27688 * normal/sparc64/setjmp.S: Fix setjmp implementation.
27689 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
27690 (grub_setjmp): Mark with 'returns_twice' attribute.
27691 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
27692 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
27693 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
27695 2009-04-01 Robert Millan <rmh@aybabtu.com>
27697 Reapply fix from 2008-07-28 which was accidentally reverted; also
27698 perform the same fix to a similar check in same function.
27700 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
27701 with the same number are found, just use issue a warning with
27702 grub_dprintf(), as this error has been reported to be non-fatal.
27704 2009-03-31 Pavel Roskin <proski@gnu.org>
27706 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
27707 for cross-compilation.
27709 2009-03-30 Robert Millan <rmh@aybabtu.com>
27711 Fix i386-ieee1275 build.
27713 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
27714 Remove declaration.
27716 2009-03-30 Pavel Roskin <proski@gnu.org>
27718 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
27719 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
27720 zero-terminated, rely only on the strlen value. Fix comparison
27721 of strings differing in length.
27723 2009-03-30 Robert Millan <rmh@aybabtu.com>
27725 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
27726 checking for abi version. Improve error messages on BIOS to notify
27727 user about `linux16' command.
27729 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
27733 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
27734 in case of collision
27735 * disk/scsi.c (grub_scsi_open): free scsi in case of error
27737 2009-03-29 Robert Millan <rmh@aybabtu.com>
27739 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
27740 set `vid_mode' accordingly.
27741 (grub_linux_boot): Process `vid_mode' and set video mode.
27743 2009-03-29 Robert Millan <rmh@aybabtu.com>
27745 * util/grub.d/10_linux.in (linux_entry): New function.
27746 Factorize generation of Linux boot entries.
27748 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
27750 Make the format of Environment Block plain text. The boot loader
27751 part is not tested well yet.
27753 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
27755 (envblk): Likewise.
27756 (usage): Remove "info" and "clear". Add "unset". Update the
27757 description of "set", as this does not delete variables any
27759 (create_envblk_file): Complete rewrite.
27760 (open_envblk_file): Likewise.
27761 (cmd_info): Removed.
27762 (cmd_list): Likewise.
27763 (cmd_set): Likewise.
27764 (cmd_clear): Likewise.
27765 (list_variables): New function.
27766 (write_envblk): Likewise.
27767 (set_variables): Likewise.
27768 (unset_variables): Likewise.
27769 (main): Complete rewrite.
27771 * commands/loadenv.c (buffer): Removed.
27772 (envblk): Likewise.
27773 (open_envblk_file): New function.
27774 (read_envblk_file): Complete rewrite.
27775 (grub_cmd_load_env): Likewise.
27776 (grub_cmd_list_env): Likewise.
27777 (struct blocklist): New struct.
27778 (free_blocklists): New function.
27779 (check_blocklists): Likewise.
27780 (write_blocklists): Likewise.
27781 (grub_cmd_save_env): Complete rewrite.
27783 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
27784 a plain text signature.
27785 (GRUB_ENVBLK_MAXLEN): Removed.
27786 (struct grub_envblk): Complete rewrite.
27787 (grub_envblk_find): Removed.
27788 (grub_envblk_insert): Likewise.
27789 (grub_envblk_open): New prototype.
27790 (grub_envblk_set): Likewise.
27791 (grub_envblk_delete): Put const to VALUE.
27792 (grub_envblk_iterate): Put const to NAME and VALUE.
27793 (grub_envblk_close): New prototype.
27794 (grub_envblk_buffer): New inline function.
27795 (grub_envblk_size): Likewise.
27797 * lib/envblk.c: Include grub/mm.h.
27798 (grub_env_find): Removed.
27799 (grub_envblk_open): New function.
27800 (grub_envblk_close): Likewise.
27801 (escaped_value_len): Likewise.
27802 (find_next_line): Likewise.
27803 (grub_envblk_insert): Removed.
27804 (grub_envblk_set): New function.
27805 (grub_envblk_delete): Complete rewrite.
27806 (grub_envblk_iterate): Likewise.
27808 2009-03-28 Robert Millan <rmh@aybabtu.com>
27810 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
27811 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
27812 variables. Use 16-bit loader.
27813 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
27815 * kern/i386/loader.S (grub_linux_boot): Rename to ...
27816 (grub_linux16_boot): ... this. Update all users.
27817 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
27818 (grub_linux_boot): ... this. Update all users.
27820 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
27821 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
27822 commands to `linux16' and `initrd16'.
27823 (GRUB_MOD_FINI(linux)): Rename to ...
27824 (GRUB_MOD_FINI(linux16)): ... this.
27826 2009-03-24 Pavel Roskin <proski@gnu.org>
27828 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
27829 not just for compilation.
27831 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
27833 Move multiboot helper out of kernel
27835 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
27836 `loader/i386/multiboot_helper.S'.
27837 * conf/i386-coreboot.rmk: Likewise
27838 * conf/i386-ieee1275.rmk: Likewise
27840 * kern/i386/loader.S: Move multiboot helpers from here...
27841 * loader/i386/multiboot_helper.S: ...moved here
27842 * include/grub/i386/loader.h: Move declarations of multiboot
27843 helpers from here...
27844 * include/grub/i386/multiboot.h: ...moved here
27845 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
27847 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27849 * kern/env.c (grub_env_context_open): Added an argument to specify
27850 whether a new context inherits exported variables from current
27851 one. This is useful when making a sandbox to interpret a config
27853 All callers updated.
27855 * include/grub/env.h (grub_env_context_open): Updated the prototype.
27857 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27859 * kern/env.c (grub_env_context_close): Fix memory leaks.
27861 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
27863 * normal/main.c (grub_normal_execute): Added an argument
27864 BATCH to specify if an interactive interface should be provided
27865 after reading a config file.
27866 All callers updated.
27867 (read_command_list): Prevent being executed twice.
27868 (read_fs_list): Likewise.
27870 * include/grub/normal.h (grub_normal_execute): Updated the
27873 2009-03-22 Pavel Roskin <proski@gno.org>
27875 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
27877 * kern/i386/pc/startup.S: Likewise.
27878 * kern/i386/efi/startup.S: Likewise.
27879 * kern/i386/ieee1275/startup.S: Likewise.
27880 * kern/i386/coreboot/startup.S: Likewise.
27881 * kern/x86_64/efi/startup.S: Likewise.
27883 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
27884 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
27885 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
27887 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
27889 Bugfixes in multiboot for bugs uncovered by solaris kernel.
27891 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
27893 Use vaddr of correct segment for entry_point.
27895 2009-03-21 Bean <bean123ch@gmail.com>
27897 * commands/blocklist.c: Add include file <grub/command.h>, remove
27898 <grub/normal.h> and <grub/arg.h>.
27899 (grub_cmd_blocklist): Use the new command interface.
27900 (GRUB_MOD_INIT): Likewise.
27901 (GRUB_MOD_FINI): Likewise.
27902 * commands/boot.c: Likewise.
27903 * commands/cat.c: Likewise.
27904 * commands/cmp.c: Likewise.
27905 * commands/configfile.c: Likewise.
27906 * commands/crc.c: Likewise.
27907 * commands/echo.c: Likewise.
27908 * commands/halt.c: Likewise.
27909 * commands/handler.c: Likewise.
27910 * commands/hdparm.c: Likewise.
27911 * commands/help.c: Likewise.
27912 * commands/hexdump.c: Likewise.
27913 * commands/loadenv.c: Likewise.
27914 * commands/ls.c: Likewise.
27915 * commands/lsmmap.c: Likewise.
27916 * commands/lspci.c: Likewise.
27917 * commands/loadenv.c: Likewise.
27918 * commands/read.c: Likewise.
27919 * commands/reboot.c: Likewise.
27920 * commands/search.c: Likewise.
27921 * commands/sleep.c: Likewise.
27922 * commands/test.c: Likewise.
27923 * commands/usbtest.c: Likewise.
27924 * commands/videotest.c: Likewise.
27925 * commands/i386/cpuid.c: Likewise.
27926 * commands/i386/pc/halt.c: Likewise.
27927 * commands/i386/pc/play.c: Likewise.
27928 * commands/i386/pc/pxecmd.c: Likewise.
27929 * commands/i386/pc/vbeinfo.c: Likewise.
27930 * commands/i386/pc/vbetest.c: Likewise.
27931 * commands/ieee1275/suspend.c: Likewise.
27932 * disk/loopback.c: Likewise.
27933 * font/font_cmd.c: Likewise.
27934 * hello/hello.c: Likewise.
27935 * loader/efi/appleloader.c: Likewise.
27936 * loader/efi/chainloader.c: Likewise.
27937 * loader/i386/bsd.c: Likewise.
27938 * loader/i386/efi/linux.c: Likewise.
27939 * loader/i386/ieee1275/linux.c: Likewise.
27940 * loader/i386/linux.c: Likewise.
27941 * loader/i386/pc/chainloader.c: Likewise.
27942 * loader/i386/pc/linux.c: Likewise.
27943 * loader/powerpc/ieee1275/linux.c: Likewise.
27944 * loader/multiboot_loader.c: Likewise.
27945 * term/gfxterm.c: Likewise.
27946 * term/i386/pc/serial.c: Likewise.
27947 * term/terminfo.c: Likewise.
27949 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
27950 * term/i386/pc/vga.c: Likewise.
27951 * video/readers/jpeg.c: Likewise.
27952 * video/readers/png.c: Likewise.
27953 * video/readers/tga.c: Likewise.
27955 * util/grub-fstest (cmd_loopback): Removed.
27956 (cmd_blocklist): Likewise.
27957 (cmd_ls): Likewise.
27958 (grub_register_command): Likewise.
27959 (grub_unregister_command): Likewise.
27960 (execute_command): Use grub_command_find to locate command and execute
27963 * include/grub/efi/chainloader.h: Removed.
27964 * loader/efi/chainloader_normal.c: Likewise.
27965 * loader/i386/bsd_normal.c: Likewise.
27966 * loader/i386/pc/chainloader_normal.c: Likewise.
27967 * loader/i386/pc/multiboot_normal.c: Likewise.
27968 * loader/linux_normal.c: Likewise.
27969 * loader/multiboot_loader_normal.c: Likewise.
27970 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27972 * gencmdlist.sh: Scan new registration command grub_register_extcmd
27973 and grub_register_command_p1.
27975 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
27976 kern/command.c, lib/arg.c and commands/extcmd.c.
27977 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
27978 (minicmd_mod_SOURCES): New variable.
27979 (minicmd_mod_CFLAGS): Likewise.
27980 (minicmd_mod_LDFLAGS): Likewise.
27981 (extcmd_mod_SOURCES): Likewise.
27982 (extcmd_mod_CFLAGS): Likewise.
27983 (extcmd_mod_LDFLAGS): Likewise.
27984 (boot_mod_SOURCES): Removed.
27985 (boot_mod_CFLAGS): Likewise.
27986 (boot_mod_LDFLAGS): Likewise.
27988 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
27990 (kernel_img_HEADERS): Add command.h.
27991 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
27992 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
27994 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
27995 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
27996 remove the corresponding normal mode command.
27997 (normal_mod_SOURCES): Remove normal/arg.c.
27998 * conf/i386-coreboot.rmk: Likewise.
27999 * conf/i386-efi.rmk: Likewise.
28000 * conf/i386-ieee1275.rmk: Likewise.
28001 * conf/powerpc-ieee1275.rmk: Likewise.
28002 * conf/x86_64-efi.rmk: Likewise.
28004 * include/grub/arg.h: Move from here ...
28005 * include/grub/lib/arg.h: ... to here.
28007 * normal/arg.c: Move from here ...
28008 * lib/arg.c: ... to here.
28010 * commands/extcmd.c: New file.
28011 * commands/minicmd.c: Likewise.
28012 * include/grub/command.h: Likewise.
28013 * include/grub/extcmd.h: Likewise.
28014 * kern/command.c: Likewise.
28015 * kern/corecmd.c: Likewise.
28017 * kern/list.c (grub_list_iterate): Return int instead of void.
28018 (grub_list_insert): New function.
28019 (grub_prio_list_insert): Likewise.
28021 * kern/rescue.c (grub_rescue_command): Removed.
28022 (grub_rescue_command_list): Likewise.
28023 (grub_rescue_register_command): Likewise.
28024 (grub_rescue_unregister_command): Likewise.
28025 (grub_rescue_cmd_boot): Move to minicmd.c
28026 (grub_rescue_cmd_help): Likewise.
28027 (grub_rescue_cmd_info): Likewise.
28028 (grub_rescue_cmd_boot): Likewise.
28029 (grub_rescue_cmd_testload): Likewise.
28030 (grub_rescue_cmd_dump): Likewise.
28031 (grub_rescue_cmd_rmmod): Likewise.
28032 (grub_rescue_cmd_lsmod): Likewise.
28033 (grub_rescue_cmd_exit): Likewise.
28034 (grub_rescue_print_devices): Moved to corecmd.c.
28035 (grub_rescue_print_files): Likewise.
28036 (grub_rescue_cmd_ls): Likewise.
28037 (grub_rescue_cmd_insmod): Likewise.
28038 (grub_rescue_cmd_set): Likewise.
28039 (grub_rescue_cmd_unset): Likewise.
28040 (attempt_normal_mode): Use grub_command_find to get normal module.
28041 (grub_enter_rescue_mode): Use grub_register_core_commands to register
28042 commands, remove grub_rescue_register_command calls.
28044 * normal/command.c (grub_register_command): Removed.
28045 (grub_unregister_command): Likewise.
28046 (grub_command_find): Likewise.
28047 (grub_iterate_commands): Likewise.
28048 (rescue_command): Likewise.
28049 (export_command): Moved to corecmd.c.
28050 (set_command): Removed.
28051 (unset_command): Likewise.
28052 (insmod_command): Likewise.
28053 (rmmod_command): Likewise.
28054 (lsmod_command): Likewise.
28055 (grub_command_init): Likewise.
28057 * normal/completion.c (iterate_command): Use cmd->prio to check for
28059 (complete_arguments): Use grub_extcmd_t structure to find options.
28060 (grub_normal_do_completion): Change function grub_iterate_commands to
28061 grub_command_iterate.
28063 * normal/execute.c (grub_script_execute_cmd): No need to parse
28066 * normal/main.c (grub_dyncmd_dispatcher): New function.
28067 (read_command_list): Register unload commands as dyncmd.
28068 (grub_cmd_normal): Use new command interface, register rescue,
28069 unregister normal at entry, register normal, unregister rescue at exit.
28071 * include/grub/list.h (grub_list_test_t): New type.
28072 (grub_list_iterate): Return int instead of void.
28073 (grub_list_insert): New function.
28074 (GRUB_AS_NAMED_LIST_P): New macro.
28075 (GRUB_AS_PRIO_LIST): Likewise.
28076 (GRUB_AS_PRIO_LIST_P): Likewise.
28077 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
28078 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
28079 (grub_prio_list): New structure.
28080 (grub_prio_list_insert): New function.
28081 (grub_prio_list_remove): New inline function.
28083 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
28084 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
28085 (GRUB_COMMAND_FLAG_MENU): Likewise.
28086 (GRUB_COMMAND_FLAG_BOTH): Likewise.
28087 (GRUB_COMMAND_FLAG_TITLE): Likewise.
28088 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
28089 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
28090 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
28091 (grub_command): Likewise.
28092 (grub_register_command): Likewise.
28093 (grub_command_find): Likewise.
28094 (grub_iterate_commands): Likewise.
28095 (grub_command_init): Likewise.
28096 (grub_arg_parse): Likewise.
28097 (grub_arg_show_help): Likewise.
28099 * include/grub/rescue.h (grub_rescue_register_command): Removed.
28100 (grub_rescue_unregister_command): Likewise.
28102 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
28103 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
28104 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
28106 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
28107 grub_rescue_cmd_initrd.
28108 * include/grub/i386/loader.h: Likewise.
28109 * include/grub/x86_64/loader.h: Likewise.
28111 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
28113 2009-03-21 Bean <bean123ch@gmail.com>
28115 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
28116 instead of stat in mingw environment.
28118 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
28120 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
28122 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
28125 2009-03-21 Bean <bean123ch@gmail.com>
28127 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
28128 out of range error.
28130 2009-03-18 Michel Dänzer <michel@daenzer.net>
28132 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
28133 checking inode flags for EXT4_EXTENTS_FLAG.
28135 2009-03-18 Robert Millan <rmh@aybabtu.com>
28137 * loader/i386/linux.c: Include `<grub/video.h>' and
28138 `<grub/i386/pc/vbe.h>'..
28139 (grub_linux_setup_video): New function. Loosely based on the EFI one.
28140 (grub_linux32_boot): Attempt to configure video settings with
28141 grub_linux_setup_video().
28142 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
28143 to avoid grub_console_fini() which would step out of graphical mode
28146 2009-03-14 Robert Millan <rmh@aybabtu.com>
28148 Fix build on powerpc.
28149 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
28151 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
28153 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
28154 background image command.
28156 2009-03-12 Colin D Bennett <colin@gibibit.com>
28158 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
28159 (grub_gfxterm_putchar): Extract pairs of identical calls to
28160 draw_cursor out of conditional blocks.
28162 2009-03-11 Pavel Roskin <proski@gnu.org>
28164 * fs/hfs.c (grub_hfs_strncasecmp): New function.
28165 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
28167 2009-03-11 Robert Millan <rmh@aybabtu.com>
28169 * loader/i386/multiboot_elfxx.c
28170 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
28172 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
28174 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
28177 2009-03-11 Robert Millan <rmh@aybabtu.com>
28179 * loader/i386/multiboot.c (code_size): New variable.
28180 (grub_multiboot): Define offsets by adding to `code_size' rather
28181 than subtracting from `grub_multiboot_payload_size'. Provide
28182 4-byte alignment to MBI and others by increasing
28183 `boot_loader_name_length' appropriately.
28185 * loader/i386/multiboot_elfxx.c
28186 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
28188 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
28190 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
28193 2009-03-08 Robert Millan <rmh@aybabtu.com>
28195 Make loader/i386/linux.c usable on i386-pc again.
28197 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
28199 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
28202 2009-03-07 Bean <bean123ch@gmail.com>
28204 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
28207 2009-03-06 Robert Millan <rmh@aybabtu.com>
28209 Fix display issue on terminals with screen size other than 80x25
28210 (e.g. gfxterm with resolution higher than 640x480).
28212 * normal/main.c (grub_normal_init_page): Display title text in a
28213 position relative to the center of the terminal instead of relying
28214 on a hardcoded offset.
28216 2009-03-04 Robert Millan <rmh@aybabtu.com>
28218 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
28221 * Makefile.in (host_kernel): New variable.
28222 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
28223 scripts instead of just the windows one.
28224 * configure.ac: Initialize and AC_SUBST `host_kernel'.
28226 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28228 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
28230 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28231 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28232 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28233 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28234 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28235 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28237 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28239 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
28240 or if there's no space for the disk label and print the partition number on a
28243 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
28245 * util/misc.c: Include <time.h>.
28246 (grub_millisleep): New function.
28248 2009-03-04 Bean <bean123ch@gmail.com>
28250 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
28251 another option -mno-red-zone.
28253 * commands/handler.c: Change module description.
28255 * kern/handler.c: Add missing space at the end of description line.
28257 * kern/list.c: Likewise.
28259 2009-03-03 Robert Millan <rmh@aybabtu.com>
28261 Move more components to the relocation area, and fix mbi pointer
28262 handling to use the destination rather than the origin (thanks to
28263 Vladimir Serbinenko for spotting).
28265 * loader/i386/multiboot.c (mbi_dest): New variable.
28266 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
28267 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
28270 2009-03-01 Bean <bean123ch@gmail.com>
28272 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
28273 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
28274 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
28275 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
28277 * loader/i386/efi/linux.c (acpi_guid): New variable.
28278 (acpi_guid): Likewise.
28279 (EBDA_SEG_ADDR): New constant.
28280 (LOW_MEM_ADDR): Likewise.
28281 (FAKE_EBDA_SEG): Likewise.
28282 (fake_bios_data): New function.
28283 (grub_linux_boot): Call fake_bios_data.
28285 2009-03-01 Bean <bean123ch@gmail.com>
28287 * commands/terminal.c: Removed.
28289 * commands/handler.c: New file.
28291 * include/grub/list.h: Likewise.
28293 * include/grub/handler.h: Likewise.
28295 * kern/list.c: Likewise.
28297 * kern/handler.c: Likewise.
28299 * kern/term.h: Include header file <grub/handler.h>.
28300 (grub_term_input): Move next field to the beginning.
28301 (grub_term_output): Likewise.
28302 (grub_term_input_class): New variable.
28303 (grub_term_output_class): Likewise.
28304 (grub_term_register_input): Changed to inline function.
28305 (grub_term_register_output): Likewise.
28306 (grub_term_unregister_input): Likewise.
28307 (grub_term_unregister_output): Likewise.
28308 (grub_term_set_current_input): Likewise.
28309 (grub_term_set_current_output): Likewise.
28310 (grub_term_get_current_input): Likewise.
28311 (grub_term_get_current_output): Likewise.
28312 (grub_term_iterate_input): Removed.
28313 (grub_term_iterate_output): Likewise.
28315 * kern/term.c (grub_term_list_input): Removed.
28316 (grub_term_list_output): Likewise.
28317 (grub_term_input_class): New variable.
28318 (grub_term_output_class): Likewise.
28319 (grub_cur_term_input): Change variable as macro.
28320 (grub_cur_term_output): Likewise.
28321 (grub_term_register_input): Removed.
28322 (grub_term_register_output): Likewise.
28323 (grub_term_unregister_input): Likewise.
28324 (grub_term_unregister_output): Likewise.
28325 (grub_term_set_current_input): Likewise.
28326 (grub_term_set_current_output): Likewise.
28327 (grub_term_iterate_input): Likewise.
28328 (grub_term_iterate_output): Likewise.
28329 (grub_term_get_current_input): Likewise.
28330 (grub_term_get_current_output): Likewise.
28332 * util/grub-editenv.c: Include header file <grub/handler.h>.
28333 (grub_term_get_current_input): Removed.
28334 (grub_term_get_current_output): Likewise.
28335 (grub_term_input_class): New variable.
28336 (grub_term_output_class): Likewise.
28338 * util/grub-fstest.c (grub_term_get_current_input): Removed.
28339 (grub_term_get_current_output): Likewise.
28340 (grub_term_input_class): New variable.
28341 (grub_term_output_class): Likewise.
28343 * util/grub-probe.c (grub_term_get_current_input): Removed.
28344 (grub_term_get_current_output): Likewise.
28345 (grub_term_input_class): New variable.
28346 (grub_term_output_class): Likewise.
28348 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
28349 (grub_term_get_current_output): Likewise.
28350 (grub_term_input_class): New variable.
28351 (grub_term_output_class): Likewise.
28353 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
28354 (terminal_mod_SOURCES): Likewise.
28355 (terminal_mod_CFLAGS): Likewise.
28356 (terminal_mod_LDFLAGS): Likewise.
28358 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
28360 (kernel_img_SOURCES): Add list.c and handler.c.
28361 (kernel_img_HEADERS): Add list.h and handler.h.
28363 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
28365 (kernel_mod_SOURCES): Add list.c and handler.c.
28366 (kernel_mod_HEADERS): Add list.h and handler.h.
28368 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
28370 (kernel_elf_SOURCES): Add list.c and handler.c.
28371 (kernel_elf_HEADERS): Add list.h and handler.h.
28373 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
28375 (kernel_elf_SOURCES): Add list.c and handler.c.
28376 (kernel_elf_HEADERS): Add list.h and handler.h.
28378 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
28380 (kernel_mod_SOURCES): Add list.c and handler.c.
28381 (kernel_mod_HEADERS): Add list.h and handler.h.
28383 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
28385 (kernel_elf_SOURCES): Add list.c and handler.c.
28386 (kernel_elf_HEADERS): Add list.h and handler.h.
28388 2009-02-27 Robert Millan <rmh@aybabtu.com>
28390 Factorize elf32 / elf64 code in Multiboot loader. This will
28391 prevent it from getting out of sync again.
28393 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
28394 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
28395 grub_multiboot_load_elf64): Move from here ...
28396 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
28397 grub_multiboot_load_elf): ... to here (new file).
28399 2009-02-27 Robert Millan <rmh@aybabtu.com>
28401 * util/grub.d/10_linux.in: Rename "single-user mode" to
28404 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
28406 Don't leak in SCSI code.
28407 * disk/scsi.c (grub_scsi_close): free `scsi'.
28409 2009-02-27 Robert Millan <rmh@aybabtu.com>
28411 * loader/i386/pc/multiboot.c: Move from here ...
28412 * loader/i386/multiboot.c: ... to here. Update all users.
28414 2009-02-27 Robert Millan <rmh@aybabtu.com>
28416 Patch from Alexandre Bique <bique.alexandre@gmail.com>
28417 * util/i386/pc/grub-setup.c (setup): Fix directory path.
28419 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
28421 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
28424 2009-02-27 Robert Millan <rmh@aybabtu.com>
28426 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
28427 `0x' qualifier as 0 when base is specified as parameter).
28429 2009-02-24 Bean <bean123ch@gmail.com>
28431 * configure.ac: Check for -mcmodel=large in x86_64 target.
28433 * include/grub/efi/api.h (efi_call_10): New macro.
28434 (efi_wrap_10): New function.
28436 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
28437 (GRUB_PE32_REL_BASED_HIGH): Likewise.
28438 (GRUB_PE32_REL_BASED_LOW): Likewise.
28439 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
28440 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
28441 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
28442 (GRUB_PE32_REL_BASED_SECTION): Likewise.
28443 (GRUB_PE32_REL_BASED_REL): Likewise.
28444 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
28445 (GRUB_PE32_REL_BASED_DIR64): Likewise.
28446 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
28448 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
28451 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
28452 (efi_wrap_10): New function.
28454 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
28456 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
28457 MB/MBP model (NV chipset).
28458 (devdata_devs): Add devpath_5 to the list.
28460 * load/i386/efi/linux.c (video_base): Remove variable.
28461 (RGB_MASK): New macro.
28462 (RGB_MAGIC): Likewise.
28463 (LINE_MIN): Likewise.
28464 (LINE_MAX): Likewise.
28465 (FBTEST_STEP): Likewise.
28466 (FBTEST_COUNT): Likewise.
28467 (fb_list): New variable.
28468 (grub_find_video_card): Remove function.
28469 (find_framebuf): New function.
28470 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
28473 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
28474 problem for x86_64.
28476 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
28478 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
28480 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
28483 2009-02-22 Robert Millan <rmh@aybabtu.com>
28485 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
28486 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
28487 in our relocation, instead of using it directly from heap. Also
28488 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
28490 2009-02-21 Robert Millan <rmh@aybabtu.com>
28492 Implement USB keyboard support (based on patch by Marco Gerards)
28494 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
28495 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
28496 (usb_keyboard_mod_LDFLAGS): New variables.
28498 * term/usb_keyboard.c: New file.
28500 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
28502 Corrected wrong declaration
28504 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
28506 2009-02-14 Christian Franke <franke@computer.org>
28508 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
28509 (grub_lspci_iter): Print class code and programming interface byte.
28511 2009-02-14 Christian Franke <franke@computer.org>
28513 * gendistlist.sh: Ignore `.svn' directories.
28515 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
28517 * fs/fat.c: Add 2009 to Copyright line.
28519 2009-02-14 Christian Franke <franke@computer.org>
28521 * commands/hdparm.c: New file. Provides `hdparm' command
28522 which sends ATA commands via grub_disk_ata_pass_through ().
28524 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
28526 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
28527 and <grub/cpu/io.h> to include/grub/ata.h.
28528 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
28529 (GRUB_CDROM_SECTOR_SIZE): Remove.
28530 (GRUB_ATA_*): Move to include/grub/ata.h.
28531 (GRUB_ATAPI_*): Likewise.
28532 (enum grub_ata_commands): Likewise.
28533 (enum grub_ata_timeout_milliseconds): Likewise.
28534 (struct grub_ata_device): Likewise.
28535 (grub_ata_regset): Likewise.
28536 (grub_ata_regget): Likewise.
28537 (grub_ata_regset2): Likewise.
28538 (grub_ata_regget2): Likewise.
28539 (grub_ata_check_ready): Likewise.
28540 (grub_ata_wait_not_busy): Remove static, exported in
28541 include/grub/ata.h.
28542 (grub_ata_wait_drq): Likewise.
28543 (grub_ata_pio_read): Likewise.
28545 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
28546 function for hdparm.mod.
28548 * include/grub/ata.h: New file, contains declarations from
28550 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
28552 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
28553 (grub_disk_ata_pass_through): New exported variable.
28555 * kern/disk.c (grub_disk_ata_pass_through): New variable.
28557 2009-02-13 Colin D Bennett <colin@gibibit.com>
28559 Support multiple fallback entries, and provide an API to support
28560 executing default+fallback menu entries. Renamed the `terminal' menu
28563 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
28564 variable declaration.
28565 (grub_menu_execute_callback): New structure declaration.
28566 (grub_menu_execute_callback_t): New typedef.
28567 (grub_menu_execute_with_fallback): New function declaration.
28568 (grub_menu_get_entry): Likewise.
28569 (grub_menu_get_timeout): Likewise.
28570 (grub_menu_set_timeout): Likewise.
28572 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
28574 * normal/menu.c (grub_wait_after_message): Moved to
28575 `normal/menu_text.c'.
28576 (draw_border): Likewise.
28577 (print_message): Likewise.
28578 (print_entry): Likewise.
28579 (print_entries): Likewise.
28580 (grub_menu_init_page): Likewise.
28581 (get_entry_number): Likewise.
28582 (print_timeout): Likewise.
28583 (run_menu): Likewise.
28584 (grub_menu_execute_entry): Likewise.
28585 (show_text_menu): Likewise.
28586 (get_and_remove_first_entry_number): New function.
28587 (grub_menu_execute_with_fallback): Likewise.
28588 (get_entry): Renamed to ...
28589 (grub_menu_get_entry): .. this and made it global.
28590 (get_timeout): Renamed to ...
28591 (grub_menu_get_timeout): ... this and made it global.
28592 (set_timeout): Renamed to ...
28593 (grub_menu_set_timeout): ... this and made it global.
28594 (grub_normal_terminal_menu_viewer): Renamed to ...
28595 (grub_normal_text_menu_viewer): ... this.
28597 * normal/menu_text.c: New file. Extracted text-menu-specific code
28598 from normal/menu.c.
28600 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
28601 (normal_mod_SOURCES): Likewise.
28603 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28604 (normal_mod_SOURCES): Likewise.
28606 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28607 (normal_mod_SOURCES): Likewise.
28609 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
28610 (normal_mod_SOURCES): Likewise.
28612 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28613 (normal_mod_SOURCES): Likewise.
28615 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28616 (normal_mod_SOURCES): Likewise.
28618 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28619 (normal_mod_SOURCES): Likewise.
28621 2009-02-11 Robert Millan <rmh@aybabtu.com>
28623 * util/grub.d/00_header.in: Update old reference to `font' command.
28625 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
28627 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
28629 Based on patch from Javier Martín.
28631 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28633 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
28634 to avoid false positives with FAT.
28635 (grub_fstest_SOURCES): Likewise.
28636 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28637 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28638 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28639 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28640 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28641 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28643 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
28645 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
28646 bpb.version_specific.fat12_or_fat16.fstype and
28647 bpb.version_specific.fat32.fstype.
28649 2009-02-08 Robert Millan <rmh@aybabtu.com>
28651 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
28653 2009-02-08 Robert Millan <rmh@aybabtu.com>
28655 * Makefile.in (host_os, host_cpu): New variables.
28656 (target_os): Remove. Update all users.
28658 2009-02-08 Marco Gerards <marco@gnu.org>
28660 * Makefile.in (enable_grub_emu_usb): New variable.
28661 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
28662 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
28663 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
28664 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
28665 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
28666 `usbtest.mod' and `usbms.mod'.
28667 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
28668 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
28669 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
28670 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
28671 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
28674 * disk/usbms.c: New file.
28676 * include/grub/usb.h: Likewise.
28678 * include/grub/usbtrans.h: Likewise.
28680 * include/grub/usbdesc.h: Likewise.
28682 * bus/usb/usbtrans.c: Likewise.
28684 * bus/usb/ohci.c: Likewise.
28686 * bus/usb/uhci.c: Likewise.
28688 * bus/usb/usbhub.c: Likewise.
28690 * bus/usb/usb.c: Likewise.
28692 * commands/usbtest.c: Likewise.
28694 * util/usb.c: Likewise.
28696 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
28698 * configure.ac: Test for libusb presence.
28700 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
28702 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
28704 * kern/mm.c: Add more comments.
28706 2009-02-08 Robert Millan <rmh@aybabtu.com>
28708 Patch from Javier Martín.
28709 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
28710 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
28712 2009-02-08 Robert Millan <rmh@aybabtu.com>
28714 * fs/cpio.c: Split tar functionality to ...
28715 * fs/tar.c: ... here (new file). Update all users.
28717 2009-02-07 Robert Millan <rmh@aybabtu.com>
28719 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
28720 backward-incompatible features.
28722 Based on patch from Javier Martín, with some adjustments.
28724 2009-02-07 Michael Scherer <misc@mandriva.org>
28726 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
28728 2009-02-07 Robert Millan <rmh@aybabtu.com>
28730 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
28731 position of `disk/lvm.c' to ensure grub_init_all() always picks it
28732 after the RAID stuff.
28734 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
28736 Fixes problem when running vbetest command as reported by
28737 Vladimir Serbinenko <phcoder@gmail.com>.
28739 * (grub_vbe_set_video_mode): Fixed problem with text modes.
28741 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
28743 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
28744 /dev/md/NpN style mdraid devices.
28746 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28748 * util/unifont2pff.rb: Remove.
28750 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28752 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
28755 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
28757 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
28758 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28759 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28760 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28761 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28762 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28763 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28765 2009-02-02 Christian Franke <franke@computer.org>
28767 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
28769 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
28771 * INSTALL: Note that we now require at least autoconf 2.59 and
28772 that LZO is optional.
28774 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28776 Base on patch on bug #24154 created by Tomas Tintera
28777 <trosos@seznam.cz>.
28779 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
28781 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
28783 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
28784 <bero@arklinux.org>.
28786 * normal/parser.y (script_init): Add missing semicolon.
28788 2009-01-31 Colin D Bennett <colin@gibibit.com>
28790 * normal/main.c: Add include to grub/menu_viewer.h.
28791 (free_menu_entry_classes): Added.
28792 (grub_normal_menu_addentry): Added class property handling.
28793 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
28794 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
28796 * normal/menu_viewer.c: New file.
28798 * normal/menu.c (run_menu_entry): Renamed to ...
28799 (grub_menu_execute_entry): ... this and made it as global.
28800 (grub_menu_run): Renamed to ...
28801 (show_text_menu): ... this and made it local.
28802 (show_text_menu): Adapt to new function names.
28803 (grub_normal_terminal_menu_viewer): New global variable.
28805 * include/grub/menu.h: New file.
28807 * include/grub/menu_viewer.h: New file.
28809 * include/grub/normal.h: Added include to grub/menu.h.
28810 (grub_menu_entry): Moved to include/grub/menu.h.
28811 (grub_menu_entry_t): Likewise.
28812 (grub_menu): Likewise.
28813 (grub_menu_t): Likewise.
28814 (grub_normal_terminal_menu_viewer): Added.
28815 (grub_menu_execute_entry): Likewise.
28816 (grub_menu_run): Removed.
28818 * DISTLIST: Added include/grub/menu.h.
28819 Added include/grub/menu_viewer.h.
28820 Added normal/menu_viewer.c.
28822 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
28824 * normal/execute.c (grub_script_execute_menuentry): Changed to use
28825 arglist for menutitle arguments.
28827 * normal/main.c (grub_normal_menu_addentry): Likewise.
28829 * normal/parser.y (menuentry): Likewise.
28831 * normal/script.c (grub_script_create_cmdmenu): Likewise.
28833 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
28834 (grub_script_create_cmdmenu): Likewise.
28836 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
28838 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
28841 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
28843 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
28845 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
28847 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28849 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28851 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
28853 2009-01-30 Christian Franke <franke@computer.org>
28855 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
28856 in option help text.
28858 2009-01-27 Pavel Roskin <proski@gnu.org>
28860 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
28862 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28864 * commands/lsmmap.c: Add include to grub/machine/memory.h.
28866 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
28868 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
28869 unregister function.
28871 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
28873 * disk/scsi.c (grub_scsi_read): Fix sign problem.
28875 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
28877 * util/grub-mkfont.c (usage): Fix typo.
28879 * util/elf/grub-mkimage.c (load_modules): Fix warning.
28881 2009-01-26 Daniel Mierswa <impulze@impulze.org>
28883 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
28885 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
28887 * kern/misc.c (grub_strcasecmp): New function.
28888 (grub_strcasecmp): Use grub_size_t instead of int for length.
28890 * include/grub/misc.h: Update function prototypes.
28892 2009-01-26 Robert Millan <rmh@aybabtu.com>
28894 * configure.ac: Fix cross-compilation check.
28896 2009-01-22 Christian Franke <franke@computer.org>
28898 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
28899 (precision) digit string. Allow `.format2' without `format1' (width).
28900 Limit input chars for `%s' output to `format2' if specified. This is
28901 compatible with standard printf ().
28903 2009-01-22 Christian Franke <franke@computer.org>
28905 * disk/ata.c (grub_ata_wait_status): Replace by ...
28906 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
28907 other status bits may be invalid while BSY is asserted.
28908 (grub_ata_check_ready): New function.
28909 (grub_ata_cmd): Removed.
28910 (grub_ata_wait_drq): New function.
28911 (grub_ata_strncpy): Remove inline.
28912 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
28913 and error check now done by grub_ata_wait_drq ().
28914 (grub_ata_pio_write): Likewise.
28915 (grub_atapi_identify): Set DEV before check for !BSY. Use
28916 grub_ata_wait_drq () to wait for data.
28917 (grub_ata_device_initialize): Add status register check to
28918 detect missing SATA slave devices. Add debug messages.
28919 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
28920 (grub_atapi_packet): Set DEV before check for !BSY. Replace
28921 transfer loop by grub_ata_pio_write ().
28922 (grub_ata_identify): Set DEV before check for !BSY. Use
28923 grub_ata_wait_drq () to wait for data.
28924 (grub_ata_setaddress): Set DEV before check for !BSY.
28925 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
28926 read/write in one loop. Fix invalid command on write. Fix incomplete
28927 command on (size % batch) == 0. Add missing error check after write of
28928 last block. Add debug messages.
28929 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
28931 2009-01-19 Christian Franke <franke@computer.org>
28933 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
28934 (GRUB_ATAPI_IREASON_*): Likewise.
28935 (grub_ata_pio_write): Fix timeout error return.
28936 (grub_atapi_identify): Add grub_ata_wait () after cmd.
28937 (grub_atapi_wait_drq): New function.
28938 (grub_atapi_packet): New parameter `size'.
28939 Use grub_atapi_wait_drq () and direct write instead of
28940 grub_ata_pio_write ().
28941 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
28942 reads the number of bytes requested by the device for each DRQ
28944 (grub_atapi_write): Remove old implementation, return not
28945 implemented instead.
28947 2009-01-19 Christian Franke <franke@computer.org>
28949 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
28950 of 512 to calculate data size.
28951 (grub_scsi_read12): Likewise.
28952 (grub_scsi_write10): Likewise.
28953 (grub_scsi_write12): Likewise.
28954 (grub_scsi_read): Adjust size according to blocksize.
28955 Add checks for invalid blocksize and unaligned transfer.
28957 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
28959 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
28961 * term/gfxterm.c (write_char): Fix background rendering for wide
28964 2009-01-19 Robert Millan <rmh@aybabtu.com>
28966 * config.guess: Update to latest version from config git.
28967 * config.sub: Likewise.
28969 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
28971 * Makefile.in: Change font compilation to use new grub-mkfont instead
28974 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
28975 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
28976 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28977 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
28978 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
28979 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
28980 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
28981 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
28982 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
28984 2009-01-16 Christian Franke <franke@computer.org>
28986 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
28987 (enum grub_ata_timeout_milliseconds): New enum.
28988 (grub_ata_wait_status): Add parameter milliseconds.
28989 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
28990 recovery from timed-out commands.
28991 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
28992 return grub_errno instead of REG_ERROR.
28993 (grub_ata_pio_write): Add parameter milliseconds.
28994 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
28995 Pass milliseconds to grub_ata_wait_status () and
28996 grub_ata_pio_read ().
28997 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
28998 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
28999 grub_ata_wait_status (). Fix IDENTIFY timeout check.
29000 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
29001 It is not suitable for device detection, because DEV bit is ignored,
29002 the command may run too long, and not all devices set the signature
29004 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
29005 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
29006 Fix device selection, DEV bit must be set first to address the registers
29007 of the correct device.
29008 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
29009 grub_ata_pio_read/write ().
29010 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
29011 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
29013 2009-01-13 Carles Pina i Estany <carles@pina.cat>
29015 * util/grub-editenv.c (main): Use fseeko(), not fseek().
29017 2009-01-13 Bean <bean123ch@gmail.com>
29019 * util/grub-mkfont.c (write_font): forget to remove some debug code.
29021 2009-01-13 Bean <bean123ch@gmail.com>
29023 * Makefile.in: (enable_grub_mkfont): New variable.
29024 (freetype_cflags): Likewise.
29025 (freetype_libs): Likewise.
29027 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
29028 (grub_mkfont_SOURCES): New variable.
29029 (grub_mkfont_CFLAGS): Likewise.
29030 (grub_mkfont_LDFLAGS): Likewise.
29032 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
29033 library if `--enable-grub-mkfont' is requested.
29034 (enable_grub_mkfont): New variable.
29035 (freetype_cflags): Likewise.
29036 (freetype_libs): Likewise.
29038 * util/grub-mkfont.c: New file.
29040 2009-01-12 Christian Franke <franke@computer.org>
29042 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
29043 mode check. Fix setting of compat_use[].
29045 2009-01-10 Robert Millan <rmh@aybabtu.com>
29047 Update a few copyright years which we forgot to do in 2008 (only for
29048 files whose changes made in 2008 were copyright-significant)
29050 * Makefile.in: Add 2008 to Copyright line.
29051 * disk/ieee1275/ofdisk.c: Likewise.
29052 * disk/efi/efidisk.c: Likewise.
29053 * kern/dl.c: Likewise.
29054 * kern/sparc64/ieee1275/init.c: Likewise.
29055 * kern/mm.c: Likewise.
29056 * kern/efi/mm.c: Likewise.
29057 * boot/i386/pc/boot.S: Likewise.
29058 * genfslist.sh: Likewise.
29059 * fs/iso9660.c: Likewise.
29060 * fs/hfs.c: Likewise.
29061 * fs/jfs.c: Likewise.
29062 * fs/minix.c: Likewise.
29063 * fs/ufs.c: Likewise.
29064 * gensymlist.sh.in: Likewise.
29065 * genkernsyms.sh.in: Likewise.
29066 * include/grub/misc.h: Likewise.
29067 * include/grub/types.h: Likewise.
29068 * include/grub/symbol.h: Likewise.
29069 * include/grub/elf.h: Likewise.
29070 * include/grub/kernel.h: Likewise.
29071 * include/grub/disk.h: Likewise.
29072 * include/grub/dl.h: Likewise.
29073 * include/grub/i386/linux.h: Likewise.
29074 * include/grub/i386/pc/biosdisk.h: Likewise.
29075 * include/grub/efi/api.h: Likewise.
29076 * include/grub/efi/pe32.h: Likewise.
29077 * include/grub/util/misc.h: Likewise.
29078 * normal/execute.c: Likewise.
29079 * normal/arg.c: Likewise.
29080 * normal/completion.c: Likewise.
29081 * normal/lexer.c: Likewise.
29082 * normal/parser.y: Likewise.
29083 * normal/misc.c: Likewise.
29084 * commands/i386/pc/vbeinfo.c: Likewise.
29085 * commands/hexdump.c: Likewise.
29086 * commands/terminal.c: Likewise.
29087 * commands/ls.c: Likewise.
29088 * commands/help.c: Likewise.
29089 * partmap/pc.c: Likewise.
29090 * loader/efi/chainloader.c: Likewise.
29091 * loader/multiboot_loader.c: Likewise.
29092 * loader/i386/pc/multiboot2.c: Likewise.
29093 * term/efi/console.c: Likewise.
29094 * term/i386/pc/serial.c: Likewise.
29095 * util/lvm.c: Likewise.
29096 * util/console.c: Likewise.
29097 * util/i386/efi/grub-mkimage.c: Likewise.
29098 * util/raid.c: Likewise.
29100 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
29102 * commands/videotest.c: Removed include to grub/machine/memory.h.
29104 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
29105 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
29106 (video_mod_SOURCES): Removed.
29107 (video_mod_CFLAGS): Likewise.
29108 (video_mod_LDFLAGS): Likewise.
29109 (gfxterm_mod_SOURCES): Likewise.
29110 (gfxterm_mod_CFLAGS): Likewise.
29111 (gfxterm_mod_LDFLAGS): Likewise.
29112 (videotest_mod_SOURCES): Likewise.
29113 (videotest_mod_CFLAGS): Likewise.
29114 (videotest_mod_LDFLAGS): Likewise.
29115 (bitmap_mod_SOURCES): Likewise.
29116 (bitmap_mod_CFLAGS): Likewise.
29117 (bitmap_mod_LDFLAGS): Likewise.
29118 (tga_mod_SOURCES): Likewise.
29119 (tga_mod_CFLAGS): Likewise.
29120 (tga_mod_LDFLAGS): Likewise.
29121 (jpeg_mod_SOURCES): Likewise.
29122 (jpeg_mod_CFLAGS): Likewise.
29123 (jpeg_mod_LDFLAGS): Likewise.
29124 (png_mod_SOURCES): Likewise.
29125 (png_mod_CFLAGS): Likewise.
29126 (png_mod_LDFLAGS): Likewise.
29128 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
29129 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
29130 (video_mod_SOURCES): Added.
29131 (video_mod_CFLAGS): Likewise.
29132 (video_mod_LDFLAGS): Likewise.
29133 (videotest_mod_SOURCES): Likewise.
29134 (videotest_mod_CFLAGS): Likewise.
29135 (videotest_mod_LDFLAGS): Likewise.
29136 (bitmap_mod_SOURCES): Likewise.
29137 (bitmap_mod_CFLAGS): Likewise.
29138 (bitmap_mod_LDFLAGS): Likewise.
29139 (tga_mod_SOURCES): Likewise.
29140 (tga_mod_CFLAGS): Likewise.
29141 (tga_mod_LDFLAGS): Likewise.
29142 (jpeg_mod_SOURCES): Likewise.
29143 (jpeg_mod_CFLAGS): Likewise.
29144 (jpeg_mod_LDFLAGS): Likewise.
29145 (png_mod_SOURCES): Likewise.
29146 (png_mod_CFLAGS): Likewise.
29147 (png_mod_LDFLAGS): Likewise.
29148 (gfxterm_mod_SOURCES): Likewise.
29149 (gfxterm_mod_CFLAGS): Likewise.
29150 (gfxterm_mod_LDFLAGS): Likewise.
29152 * term/gfxterm.c: Removed include to grub/machine/memory.h,
29153 grub/machine/console.h.
29155 2009-01-04 Jerone Young <jerone@gmail.com>
29157 Make on screen instructions clearer
29159 Based on patch created by Jidanni <jidanni@jidanni.org>
29161 * normal/menu.c: print clearer instructions on the screen
29163 2009-01-02 Colin D Bennett <colin@gibibit.com>
29167 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
29168 build system and fixed gfxterm.c to work with different sized fonts.
29170 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
29172 * configure: Re-generated.
29174 * DISTLIST: Removed font/manager.c.
29176 Added font/font_cmd.c.
29178 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
29181 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
29183 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
29185 * kern/term.c: Changed users of grub_utf8_to_ucs4.
29187 * normal/menu.c: Likewise.
29189 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
29190 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
29192 * include/grub/font.h: Replaced with new file.
29194 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
29195 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
29196 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
29197 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
29198 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
29199 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
29200 fg_red, fg_green, fg_blue, fg_alpha.
29201 (grub_video_adapter): Removed blit_glyph.
29202 (grub_video_blit_glyph): Removed.
29204 * font/manager.c: Removed file.
29206 * font/font.c: New file.
29208 * font/font_cmd.c: Likewise.
29210 * video/video.c (grub_video_blit_glyph): Removed.
29212 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
29213 (grub_video_vbe_map_rgba): Likewise.
29214 (grub_video_vbe_unmap_color_int): Likewise.
29215 (grub_video_vbe_blit_glyph): Removed.
29216 (grub_video_vbe_adapter): Removed blit_glyph.
29218 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
29219 (get_pixel): Likewise.
29220 (set_pixel): Likewise.
29222 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
29224 * term/gfxterm.c: Adapted to new font engine.
29226 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
29228 * term/i386/pc/vga.c: Likewise.
29230 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
29232 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
29234 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29236 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
29238 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
29240 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
29242 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
29244 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
29246 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
29248 * util/grub.d/00_header.in: Changed to use new loadfont command.
29250 * util/grub-mkconfig_lib.in: Changed font extension.
29252 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
29254 * util/getroot.c (grub_util_get_grub_dev): Add support for
29255 /dev/md/dNNpNN style partitionable mdraid devices.
29257 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
29259 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
29260 at a time limit of the PXE TFTP API correctly.
29261 (grub_pxefs_close): Likewise.
29263 2008-11-29 Robert Millan <rmh@aybabtu.com>
29265 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
29266 grub_ata_device_initialize() calls.
29268 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
29270 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
29272 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
29274 2008-11-28 Robert Millan <rmh@aybabtu.com>
29276 Fix build on powerpc-ieee1275. Based on patch created by
29277 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
29278 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
29279 `kern/ieee1275/mmap.c'.
29280 * include/grub/powerpc/ieee1275/memory.h: New file.
29282 Provide grub-install on coreboot.
29283 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
29284 (grub_install_SOURCES): New variable.
29285 * util/i386/pc/grub-install.in: Add a few condition checks to make it
29286 usable on coreboot.
29288 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
29290 * util/grub-fstest.c (grub_term_get_current_input): Change return type
29291 to `grub_term_input_t'.
29292 (grub_term_get_current_output): Change return type to
29293 `grub_term_output_t'.
29295 2008-11-22 Robert Millan <rmh@aybabtu.com>
29297 Fix breakage on coreboot due to declaration mismatch.
29298 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
29299 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
29300 grub_vga_text_cls().
29302 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
29303 comments. Avoid copying one more byte than necessary (just in case).
29305 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
29306 to 0x200000 (avoids trouble with some OFW implementations, and matches
29307 with the one in Yaboot).
29308 Reported by Manoel Abranches
29310 2008-11-20 Robert Millan <rmh@aybabtu.com>
29312 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
29313 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
29315 * util/grub-mkconfig_lib.in (grub_warn): New function.
29316 (convert_system_path_to_grub_path): Use grub_warn() when issuing
29317 warnings, to obtain consistent formatting.
29318 * util/grub.d/00_header.in: Likewise.
29319 * util/update-grub_lib.in: Likewise.
29321 * loader/i386/linux.c (allocate_pages): Fix a warning.
29322 Move comment text to `#error' stanza.
29324 Harmonize ieee1275's grub_available_iterate() with the generic
29325 grub_machine_mmap_iterate() interface (fixes a recently-introduced
29326 build problem on i386-ieee1275):
29327 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
29328 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
29329 parameter `type'. Update all users of this function.
29330 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
29331 `kern/ieee1275/mmap.c'.
29332 * kern/ieee1275/init.c
29333 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
29335 (grub_machine_mmap_iterate): ... this.
29336 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
29337 return type to `grub_err_t'. Update all implementations of this
29338 function prototype.
29339 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
29342 Add `lsmmap' command (lists firmware-provided memory map):
29343 * commands/lsmmap.c: New file.
29344 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
29345 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
29347 * conf/powerpc-ieee1275.rmk: Likewise.
29348 * conf/i386-coreboot.rmk: Likewise.
29349 * conf/i386-ieee1275.rmk: Likewise.
29351 2008-11-19 Robert Millan <rmh@aybabtu.com>
29353 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
29354 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
29355 constraints to initrd allocation (based on code from
29356 loader/i386/pc/linux.c). Without them, initrd was allocated too high
29357 for Linux to find it.
29359 2008-11-14 Robert Millan <rmh@aybabtu.com>
29361 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
29362 order to cope with duplicate slashes.
29364 2008-11-14 Robert Millan <rmh@aybabtu.com>
29366 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
29367 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
29368 don't want to mess with lower memory, because it is used in the Linux
29371 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
29372 an appropriate place in lower memory, between 0x10000 and 0x90000,
29373 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
29374 is in our heap (probably as a result of it being corrupted during
29375 decompression). Add #error instance with comment to explain why this
29376 loader isn't currently usable on PC/BIOS.
29378 2008-11-14 Robert Millan <rmh@aybabtu.com>
29380 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
29381 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
29383 2008-11-12 Robert Millan <rmh@aybabtu.com>
29385 Make loader/i386/linux.c buildable on i386-pc (although disabled).
29387 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
29388 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
29390 * include/grub/i386/pc/memory.h: ... to here.
29392 2008-11-12 Robert Millan <rmh@aybabtu.com>
29394 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
29397 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
29398 (grub_console_cur_color, grub_console_real_putchar)
29399 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
29400 (grub_console_setcolorstate, grub_console_setcolor)
29401 (grub_console_getcolor): Move from here ...
29402 * include/grub/i386/vga_common.h: ... to here (new file).
29404 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
29405 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
29406 `<grub/i386/io.h>'.
29407 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
29408 `<grub/i386/vga_common.h>'.
29410 2008-11-12 Robert Millan <rmh@aybabtu.com>
29412 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
29413 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
29414 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
29416 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
29417 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
29419 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
29420 grub_console_init() with call to grub_vga_text_init().
29421 (grub_machine_fini): Replace call to
29422 grub_console_fini() with call to grub_vga_text_fini() and
29423 grub_at_keyboard_fini().
29425 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
29426 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
29427 (grub_console_setcolorstate, grub_console_setcolor)
29428 (grub_console_getcolor): New function prototypes.
29430 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
29431 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
29432 (grub_vga_text_setcursor): Static-ize.
29433 (grub_vga_text_term): New structure.
29434 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
29436 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
29437 (grub_console_cur_color, grub_console_standard_color)
29438 (grub_console_normal_color, grub_console_highlight_color)
29439 (map_char, grub_console_putchar, grub_console_getcharwidth)
29440 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
29441 (grub_console_getcolor): Move from here ...
29442 * term/i386/vga_common.c: ... to here (same function names).
29444 2008-11-12 Robert Millan <rmh@aybabtu.com>
29446 Use newly-added Multiboot support in coreboot.
29448 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
29449 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
29451 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
29452 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
29453 (codestart): Store the MBI in `startup_multiboot_info' when we're
29454 being loaded using Multiboot.
29456 * kern/i386/coreboot/init.c (grub_machine_init): Move
29457 grub_at_keyboard_init() call to beginning of function (useful for
29458 debugging). Call grub_machine_mmap_init() before attempting to use
29459 grub_machine_mmap_iterate().
29460 (grub_lower_mem, grub_upper_mem): Move from here ...
29461 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
29464 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
29465 function prototype.
29467 2008-11-12 Robert Millan <rmh@aybabtu.com>
29469 Fix a regression introduced by the at_keyboard.mod split. Because
29470 some terminals are default on some platforms and non-default on
29471 others, the first terminal being registered determines which is
29472 going to be default.
29474 * kern/term.c (grub_term_register_input): If this is the first
29475 terminal being registered, set it as the current one.
29476 (grub_term_register_output): Likewise.
29478 * term/efi/console.c (grub_console_init): Do not call
29479 grub_term_set_current_output() or grub_term_set_current_input().
29480 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
29481 * term/i386/pc/console.c (grub_console_init): Likewise.
29482 (grub_console_fini): Do not call grub_term_set_current_input()
29483 (but leave grub_term_set_current_output() to restore text mode).
29485 2008-11-10 Robert Millan <rmh@aybabtu.com>
29487 * util/grub.d/00_header.in: Add backward compatibility check for
29488 versions of terminal.mod that don't understand `terminal_input' or
29491 2008-11-09 Robert Millan <rmh@aybabtu.com>
29493 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
29494 `terminal_input' / `terminal_output', not `terminal'.
29496 2008-11-08 Robert Millan <rmh@aybabtu.com>
29498 * Makefile.in (include_DATA): Fix srcdir=. assumption.
29499 (DISTCLEANFILES): Add `build_env.mk'.
29501 2008-11-08 Robert Millan <rmh@aybabtu.com>
29503 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
29504 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29505 members. Update all users.
29506 * util/console.c (grub_ncurses_term): Split in ...
29507 (grub_ncurses_term_input): ... this, and ...
29508 (grub_ncurses_term_output): ... this. Update all users.
29509 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
29511 2008-11-08 Robert Millan <rmh@aybabtu.com>
29513 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
29514 (PKGDATA): Add $(pkgdata_SRCDIR).
29515 (pkglib_BUILDDIR): New variable.
29516 (pkgdata_SRCDIR): New variable.
29517 (build_env.mk): New target.
29518 (include_DATA): New variable.
29519 (install-local): Install $(include_DATA) files in $(includedir).
29521 2008-11-07 Pavel Roskin <proski@gnu.org>
29523 * gendistlist.sh: Use C locale for sorting to ensure consistent
29524 output on all systems.
29526 * util/grub.d/00_header.in: Remove incorrect space before
29529 2008-11-07 Robert Millan <rmh@aybabtu.com>
29531 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
29533 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
29534 * loader/multiboot_loader.c (find_multi_boot2_header): New function
29535 (based on find_multi_boot1_header).
29536 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
29537 using find_multi_boot2_header(), and abort if neither Multiboot or
29538 Multiboot headers were found.
29540 2008-11-07 Robert Millan <rmh@aybabtu.com>
29542 Modularize at_keyboard.mod:
29544 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
29545 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
29546 (at_keyboard_mod_LDFLAGS): New variables.
29548 Actual terminal split:
29550 * include/grub/term.h (struct grub_term): Split in ...
29551 (struct grub_term_input): ... this, and ...
29552 (struct grub_term_output): ... this. Update all users.
29553 (grub_term_set_current): Split in ...
29554 (grub_term_set_current_input): ... this, and ...
29555 (grub_term_set_current_output): ... this.
29556 (grub_term_get_current): Split in ...
29557 (grub_term_get_current_input): ... this, and ...
29558 (grub_term_get_current_output): ... this.
29559 (grub_term_register): Split in ...
29560 (grub_term_register_input): ... this, and ...
29561 (grub_term_register_output): ... this.
29562 (grub_term_unregister): Split in ...
29563 (grub_term_unregister_input): ... this, and ...
29564 (grub_term_unregister_output): ... this.
29565 (grub_term_iterate): Split in ...
29566 (grub_term_iterate_input): ... this, and ...
29567 (grub_term_iterate_output): ... this.
29569 * kern/term.c (grub_term_list): Split in ...
29570 (grub_term_list_input): ... this, and ...
29571 (grub_term_list_output): ... this. Update all users.
29572 (grub_cur_term): Split in ...
29573 (grub_cur_term_input): ... this, and ...
29574 (grub_cur_term_output): ... this. Update all users.
29575 (grub_term_set_current): Split in ...
29576 (grub_term_set_current_input): ... this, and ...
29577 (grub_term_set_current_output): ... this.
29578 (grub_term_get_current): Split in ...
29579 (grub_term_get_current_input): ... this, and ...
29580 (grub_term_get_current_output): ... this.
29581 (grub_term_register): Split in ...
29582 (grub_term_register_input): ... this, and ...
29583 (grub_term_register_output): ... this.
29584 (grub_term_unregister): Split in ...
29585 (grub_term_unregister_input): ... this, and ...
29586 (grub_term_unregister_output): ... this.
29587 (grub_term_iterate): Split in ...
29588 (grub_term_iterate_input): ... this, and ...
29589 (grub_term_iterate_output): ... this.
29591 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
29592 a check for input and one for output (and only attempt to get keys
29593 from user when input works).
29595 * util/grub-probe.c (grub_term_get_current): Split in ...
29596 (grub_term_get_current_input): ... this, and ...
29597 (grub_term_get_current_output): ... this.
29598 * util/grub-fstest.c: Likewise.
29599 * util/i386/pc/grub-setup.c: Likewise.
29600 * util/grub-editenv.c: Likewise.
29602 Portability adjustments:
29604 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
29605 `term/i386/pc/at_keyboard.c'.
29606 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
29607 grub_keyboard_controller_init() (now handled by terminal .init).
29608 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
29609 grub_at_keyboard_init().
29610 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
29611 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
29612 at_keyboard.mod via input terminal interface).
29613 * include/grub/i386/coreboot/console.h: Convert into a stub for
29614 `<grub/i386/pc/console.h>'.
29616 Migrate full terminals to new API:
29618 * term/efi/console.c (grub_console_term): Split into ...
29619 (grub_console_term_input): ... this, and ...
29620 (grub_console_term_output): ... this. Update all users.
29621 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
29622 (grub_ofconsole_init): Split into ...
29623 (grub_ofconsole_init_input): ... this, and ...
29624 (grub_ofconsole_init_output): ... this.
29625 (grub_ofconsole_term): Split into ...
29626 (grub_ofconsole_term_input): ... this, and ...
29627 (grub_ofconsole_term_output): ... this. Update all users.
29628 * term/i386/pc/serial.c (grub_serial_term): Split into ...
29629 (grub_serial_term_input): ... this, and ...
29630 (grub_serial_term_output): ... this. Update all users.
29631 * term/i386/pc/console.c (grub_console_term): Split into ...
29632 (grub_console_term_input): ... this, and ...
29633 (grub_console_term_output): ... this. Update all users.
29634 (grub_console_term_input): Only enable it on PC/BIOS platform.
29635 (grub_console_init): Remove grub_keyboard_controller_init() call.
29637 Migrate input terminals to new API:
29639 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
29640 `i386' and `i386/pc' to enable build on x86_64 (this driver is
29641 i386-specific anyway).
29642 (grub_console_checkkey): Rename to ...
29643 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
29645 (grub_keyboard_controller_orig): New variable.
29646 (grub_console_getkey): Rename to ...
29647 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
29649 (grub_keyboard_controller_init): Static-ize. Save original
29650 controller value so that it can be restored ...
29651 (grub_keyboard_controller_fini): ... here (new function).
29652 (grub_at_keyboard_term): New structure.
29653 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
29656 Migrate output terminals to new API:
29658 * term/i386/pc/vga.c (grub_vga_term): Change type to
29659 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29660 members. Update all users.
29661 * term/gfxterm.c (grub_video_term): Change type to
29662 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
29663 members. Update all users.
29664 * include/grub/i386/pc/console.h (grub_console_checkkey)
29665 (grub_console_getkey): Do not export (no longer needed by gfxterm,
29668 Migrate `terminal' command and userland tools to new API:
29670 * commands/terminal.c (grub_cmd_terminal): Split into ...
29671 (grub_cmd_terminal_input): ... this, and ...
29672 (grub_cmd_terminal_output): ... this.
29673 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
29674 `terminal_input' and `terminal_output'.
29675 * util/grub.d/00_header.in: Adjust `terminal' calls to new
29676 `terminal_input' / `terminal_output' API.
29677 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
29678 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
29679 provided ${GRUB_TERMINAL}, convert it).
29681 2008-11-04 Robert Millan <rmh@aybabtu.com>
29683 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
29685 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
29687 2008-11-03 Bean <bean123ch@gmail.com>
29689 * kern/elf.c (grub_elf32_load): Revert to previous code.
29690 (grub_elf64_load): Likewise.
29692 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
29694 2008-11-01 Robert Millan <rmh@aybabtu.com>
29696 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
29697 (TARGET_CPPFLAGS): Likewise.
29698 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
29700 2008-11-01 Carles Pina i Estany <carles@pina.cat>
29702 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
29704 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29706 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
29707 addition of objects until the code is not going to be able to fail.
29709 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
29711 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
29712 (add a missing NULL check, and correct them by moving the pointer
29713 operations after the actual check).
29715 2008-10-29 Robert Millan <rmh@aybabtu.com>
29717 * util/i386/pc/grub-install.in: Handle empty string as output from
29718 make_system_path_relative_to_its_root().
29720 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
29722 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
29723 circular metadata worst case scenario. If the metadata is circular
29724 then copy the wrap in place.
29725 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
29726 project lib/format_text/layout.h
29727 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
29729 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29731 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
29733 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
29735 * util/update-grub_lib.in: Mention filename in warning message.
29737 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29739 * NEWS: Update for rename of update-grub to grub-mkconfig.
29741 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
29743 * util/update-grub_lib.in: Copy to ...
29744 * util/grub-mkconfig_lib.in: ... this. Update all users.
29745 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
29746 * util/update-grub.in: Rename to ...
29747 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
29748 option. Add `--output' option to allow users to specify the generated
29749 configuration file. Default to stdout.
29750 (update_grub_dir): Rename to ...
29751 (grub_mkconfig_dir): ... this.
29752 (grub_cfg): Default to an empty string.
29753 * conf/common.rmk (update-grub): Rename to ...
29754 (grub-mkconfig): ... this.
29755 (update-grub_lib): Copy to ...
29756 (grub-mkconfig_lib): ... this.
29757 (update-grub_SCRIPTS): Copy to ...
29758 (grub-mkconfig_SCRIPTS): ... this. Update all users.
29759 (update-grub_DATA): Rename to ...
29760 (grub-mkconfig_DATA): ... this.
29762 2008-09-28 Robert Millan <rmh@aybabtu.com>
29764 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
29765 to `modified'. Add the real `created' field.
29766 (grub_iso9660_uuid): Use `modified' rather than `created' for
29767 constructing the UUID.
29769 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
29771 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
29772 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
29774 2008-09-28 Bean <bean123ch@gmail.com>
29776 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
29777 Thanks to Christian Franke for finding this bug.
29779 2008-09-25 Robert Millan <rmh@aybabtu.com>
29781 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
29782 instances of grub_util_get_disk_name() (see previous commit).
29784 2008-09-25 Robert Millan <rmh@aybabtu.com>
29786 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
29787 `util/i386/get_disk_name.c'.
29788 * conf/i386-efi.rmk: Likewise.
29789 * conf/x86_64-efi.rmk: Likewise.
29790 * conf/i386-coreboot.rmk: Likewise.
29791 * conf/i386-ieee1275.rmk: Likewise.
29792 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
29793 `util/ieee1275/get_disk_name.c'.
29794 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
29795 * util/ieee1275/get_disk_name.c: Remove file.
29796 * util/i386/get_disk_name.c: Remove file.
29797 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
29798 "hd%d" for device.map entries, rather than using
29799 grub_util_get_disk_name().
29801 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29803 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
29805 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
29807 2008-09-24 Carles Pina i Estany <carles@pina.cat>
29809 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
29811 (GRUB_TERM_PPAGE): Changed to 0x4900.
29813 2008-09-24 Robert Millan <rmh@aybabtu.com>
29815 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
29816 macros (they were i386-pc specific).
29817 * include/grub/sparc64/ieee1275/console.h: Likewise.
29818 * include/grub/efi/console.h: Likewise.
29820 2008-09-22 Bean <bean123ch@gmail.com>
29822 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
29823 resident and in attribute list.
29825 * include/grub/ntfs.h (BMP_LEN): Removed.
29827 2008-09-22 Bean <bean123ch@gmail.com>
29829 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
29830 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
29832 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
29833 error occurs, as grub_disk_open will call grub_disk_close, which will
29834 call p->close (scsi).
29836 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29838 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
29839 (AC_PREREQ): Bumped to 2.59.
29840 (AC_TRY_COMPILE): Replace obsolete macro with ...
29841 (AC_COMPILE_IFELSE): ... this.
29842 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
29843 (AC_LINK_IFELSE): ... this.
29845 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
29847 * autogen.sh: Add a call to `gendistlist.sh'.
29849 2008-09-19 Christian Franke <franke@computer.org>
29851 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
29852 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
29853 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
29854 Export __enable_execute_stack() to modules.
29855 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
29858 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29860 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
29863 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
29865 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
29866 #include <grub/util/hostdisk.h>.
29868 2008-09-08 Robert Millan <rmh@aybabtu.com>
29870 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
29871 segments when their filesz is zero (grub_file_read() interprets
29872 zero-size as "read until EOF", which results in memory corruption).
29873 Use `lowest_segment' rather than 0 for calculating the current
29874 segment load address.
29876 2008-09-08 Robert Millan <rmh@aybabtu.com>
29878 * util/hostdisk.c (open_device): Replace a grub_util_info() call
29879 with grub_dprintf("hostdisk", ...), as it was so verbose that it
29880 clobbered useful information.
29882 2008-09-08 Robert Millan <rmh@aybabtu.com>
29884 * include/grub/util/biosdisk.h: Move to ...
29885 * include/grub/util/hostdisk.h: ... here. Update all users.
29886 * util/biosdisk.c: Move to ...
29887 * util/hostdisk.c: ... here. Update all users.
29889 2008-09-07 Robert Millan <rmh@aybabtu.com>
29891 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
29893 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
29894 and length can be stored directly in the `mbi->mmap_addr' and
29895 `mbi->mmap_length' struct fields.
29897 2008-09-07 Robert Millan <rmh@aybabtu.com>
29899 * conf/i386.rmk: New file. Provides declaration for building
29901 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
29902 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
29904 Include `conf/i386.mk'.
29905 * conf/i386-efi.rmk: Likewise.
29906 * conf/x86_64-efi.rmk: Likewise.
29907 * conf/i386-coreboot.rmk: Likewise.
29908 * conf/i386-ieee1275.rmk: Likewise.
29910 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
29912 Based on patch created by Colin D Bennett <colin@gibibit.com>.
29913 Adds optimization support for BGR based modes.
29915 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
29916 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
29917 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29918 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29919 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29920 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29921 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29922 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29923 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29924 (grub_video_i386_vbeblit_index_index): Likewise.
29925 (grub_video_i386_vbeblit_replace_directN): Added.
29926 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
29927 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
29928 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
29929 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
29930 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
29931 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
29932 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
29933 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
29934 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
29935 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
29936 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
29937 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
29938 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
29940 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
29941 (grub_video_i386_vbefill_R8G8B8): Likewise.
29942 (grub_video_i386_vbefill_index): Likewise.
29943 (grub_video_i386_vbefill_direct32): Added.
29944 (grub_video_i386_vbefill_direct24): Likewise.
29945 (grub_video_i386_vbefill_direct16): Likewise.
29946 (grub_video_i386_vbefill_direct8): Likewise.
29948 * include/grub/video.h (grub_video_blit_format): Removed
29949 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
29950 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
29951 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
29952 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
29953 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
29955 * video/video.c (grub_video_get_blit_format): Updated to use new
29956 blit formats. Added handling for 16 bit color modes.
29958 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
29960 (common_blitter): Updated to use new blitters.
29962 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
29964 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
29965 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29966 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29967 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29968 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29969 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29970 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29971 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29972 (grub_video_i386_vbeblit_index_index): Likewise.
29973 (grub_video_i386_vbeblit_replace_directN): Added.
29974 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
29975 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
29976 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
29977 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
29978 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
29979 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
29980 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
29981 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
29982 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
29983 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
29984 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
29985 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
29986 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
29988 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
29989 (grub_video_i386_vbefill_R8G8B8): Likewise.
29990 (grub_video_i386_vbefill_index): Likewise.
29991 (grub_video_i386_vbefill_direct32): Added.
29992 (grub_video_i386_vbefill_direct24): Likewise.
29993 (grub_video_i386_vbefill_direct16): Likewise.
29994 (grub_video_i386_vbefill_direct8): Likewise.
29996 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
29999 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
30002 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
30005 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
30008 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
30010 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
30013 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
30015 * fs/iso9660.c (grub_iso9660_date): New structure.
30016 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
30017 (grub_iso9660_uuid): New function.
30019 2008-09-05 Bean <bean123ch@gmail.com>
30021 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
30023 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
30024 insensitive bit for names in Win32 and Win32 & DOS namespace.
30026 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
30028 * include/grub/types.h (LONG_MAX): Likewise.
30030 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
30032 * util/getroot.c: Include <config.h>.
30033 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
30034 add support for /dev/md/N devices and handle LVM double dash escaping.
30036 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
30038 * config.guess: Update to latest version from config git.
30039 * config.sub: Likewise.
30041 2008-09-03 Robert Millan <rmh@aybabtu.com>
30043 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
30044 `disk->total_sectors'.
30046 2008-09-01 Colin D Bennett <colin@gibibit.com>
30048 * include/grub/normal.h: Fixed incorrect comment for
30049 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
30051 2008-09-01 Colin D Bennett <colin@gibibit.com>
30053 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
30054 values with defines.
30056 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
30057 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
30058 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
30059 (GRUB_VBE_MODEATTR_COLOR): Likewise.
30060 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
30061 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
30062 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
30063 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
30064 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
30065 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
30066 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
30067 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
30068 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
30069 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
30070 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
30071 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
30072 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
30073 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
30074 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
30076 2008-08-31 Robert Millan <rmh@aybabtu.com>
30078 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
30080 (grub_multiboot): Fix a few warnings.
30082 2008-08-31 Robert Millan <rmh@aybabtu.com>
30084 * loader/i386/pc/multiboot.c: Update comment not to say that
30085 boot_device support is unimplemented.
30087 2008-08-31 Robert Millan <rmh@aybabtu.com>
30089 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
30090 or memory map support are unimplemented.
30092 2008-08-31 Colin D Bennett <colin@gibibit.com>
30094 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
30096 2008-08-31 Colin D Bennett <colin@gibibit.com>
30098 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
30099 total video memory in 'vbeinfo' output; show color format details for
30102 2008-08-30 Pavel Roskin <proski@gnu.org>
30104 * util/genmoddep.c: Remove for real this time.
30105 * DISTLIST: Remove util/genmoddep.c.
30107 2008-08-30 Robert Millan <rmh@aybabtu.com>
30109 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
30110 as required by Multiboot spec (it was already 4-byte aligned, but
30113 2008-08-29 Pavel Roskin <proski@gnu.org>
30115 * kern/powerpc/ieee1275/crt0.S: Rename to ...
30116 * kern/powerpc/ieee1275/startup.S: ... this.
30117 * conf/powerpc-ieee1275.rmk: Adjust for the above.
30118 * DISTLIST: Likewise.
30120 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
30121 grub/cpu/kernel.h. Add start label for consistency with other
30122 platforms. Add grub_prefix immediately after start. Add jump
30123 to the code after grub_prefix.
30124 * include/grub/powerpc/kernel.h: Provide valid values for
30125 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
30127 2008-08-29 Bean <bean123ch@gmail.com>
30129 * configure.ac: Change host_os to cygwin for mingw.
30130 (asprintf): New check for function.
30132 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
30133 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
30135 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
30136 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
30137 sync, sleep and grub_util_get_disk_size for mingw.
30139 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
30140 to get size in mingw.
30141 (open_device): Use flag O_BINARY if it's defined.
30142 (find_root_device): Add dummy code for mingw.
30144 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
30145 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
30146 (get_scsi_disk_name): Return 0 for mingw.
30148 * util/hostfs.c: #include <grub/util/misc.h>.
30149 (grub_hostfs_open): Use "rb" flag to open file, use
30150 grub_util_get_disk_size to get disk size for mingw.
30152 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
30153 (asprintf): New function if HAVE_ASPRINTF is not set.
30154 (sync): New function for mingw.
30156 (grub_util_get_disk_size): Likewise.
30158 2008-08-28 Pavel Roskin <proski@gnu.org>
30160 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30163 2008-08-28 Robert Millan <rmh@aybabtu.com>
30165 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
30167 2008-08-28 Robert Millan <rmh@aybabtu.com>
30169 Change find_grub_drive() syntax so it doesn't prevent it from
30170 detecting NULL names as errors.
30172 * util/biosdisk.c (find_grub_drive): Move free slot search code
30174 (find_free_slot): ... to here.
30175 (read_device_map): Use find_free_slot() to search for free slots.
30177 2008-08-27 Marco Gerards <marco@gnu.org>
30179 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
30180 (scsi_mod_SOURCES): New variable.
30181 (scsi_mod_CFLAGS): Likewise
30182 (scsi_mod_LDFLAGS): Likewise.
30184 * disk/scsi.c: New file.
30186 * include/grub/scsi.h: Likewise.
30188 * include/grub/scsicmd.h: Likewise.
30190 * disk/ata.c: Include <grub/scsi.h>.
30191 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
30193 (grub_ata_iterate): Skip ATAPI devices.
30194 (grub_ata_open): Only handle ATAPI devices.
30195 (struct grub_atapi_read): Removed.
30196 (grub_atapi_readsector): Likewise.
30197 (grub_ata_read): No longer handle ATAPI devices.
30198 (grub_ata_write): Likewise.
30199 (grub_atapi_iterate): New function.
30200 (grub_atapi_read): Likewise.
30201 (grub_atapi_write): Likewise.
30202 (grub_atapi_open): Likewise.
30203 (grub_atapi_close): Likewise.
30204 (grub_atapi_dev): New variable.
30205 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
30206 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
30208 * include/grub/disk.h (enum grub_disk_dev_id): Add
30209 `GRUB_DISK_DEVICE_SCSI_ID'.
30211 2008-08-26 Robert Millan <rmh@aybabtu.com>
30213 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
30214 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
30217 2008-08-23 Bean <bean123ch@gmail.com>
30219 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
30220 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
30221 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
30222 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
30224 (raid5rec_mod_SOURCES): New macro.
30225 (raid5rec_mod_CFLAGS): Likewise.
30226 (raid5rec_mod_LDFLAGS): Likewise.
30227 (raid6rec_mod_SOURCES): Likewise.
30228 (raid6rec_mod_CFLAGS): Likewise.
30229 (raid6rec_mod_LDFLAGS): Likewise.
30230 (mdraid_mod_SOURCES): Likewise.
30231 (mdraid_mod_CFLAGS): Likewise.
30232 (mdraid_mod_LDFLAGS): Likewise.
30233 (dm_nv_mod_SOURCES): Likewise.
30234 (dm_nv_mod_CFLAGS): Likewise.
30235 (dm_nv_mod_LDFLAGS): Likewise.
30237 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
30238 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
30239 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
30241 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
30242 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
30244 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30246 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30248 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30250 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30252 * disk/raid5_recover.c: New file.
30254 * disk/raid6_recover.c: Likewise.
30256 * disk/mdraid_linux.c: Likewise.
30258 * disk/dmraid_nvidia.c: Likewise.
30260 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
30263 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
30264 calculate the size of raid device.
30265 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
30266 different layout of raid5.
30267 (grub_raid_scan_device): Remove code specific to mdraid.
30268 (grub_raid_list): New variable.
30269 (free_array): New function.
30270 (grub_raid_register): Likewise.
30271 (grub_raid_unregister): Likewise.
30272 (grub_raid_rescan): Likewise.
30273 (GRUB_MOD_INIT): Don't iterate device here.
30274 (GRUB_MOD_FINI): Use free_array to release resource.
30276 * include/grub/raid.h: Remove macro and structure specific to mdraid.
30277 (grub_raid5_recover_func_t): New function variable type.
30278 (grub_raid6_recover_func_t): Likewise.
30279 (grub_raid5_recover_func): New variable.
30280 (grub_raid6_recover_func): Likewise.
30281 (grub_raid_register): New function.
30282 (grub_raid_unregister): Likewise.
30283 (grub_raid_rescan): Likewise.
30284 (grub_raid_block_xor): Likewise.
30286 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
30287 (CMD_CRC): New macro.
30289 (read_file): Handle device as well as file.
30290 (cmd_crc): New function.
30291 (fstest): Handle multiple disks.
30292 (options): Remove part, raw and long, add root and diskcount.
30293 (usage): Add crc, remove -p, -r, -l, add -r and -c.
30294 (main): Find the first non option entry and ignore subsequent options,
30295 add handling for the new options, support multiple disks.
30297 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
30299 2008-08-23 Bean <bean123ch@gmail.com>
30301 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
30303 * genfslist.sh: Ignore kernel.mod.
30305 * genpartmaplist.sh: Likewise.
30307 2008-08-23 Robert Millan <rmh@aybabtu.com>
30309 * util/getroot.c (find_root_device): Skip anything that starts with
30310 a dot, not just directories. This avoids things like /dev/.tmp.md0.
30312 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
30314 * util/update-grub.in (GRUB_GFXMODE): Export variable.
30315 * util/grub.d/00_header.in: Allow the administrator to change default
30316 gfxmode via ${GRUB_GFXMODE}.
30318 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
30320 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
30322 2008-08-21 Robert Millan <rmh@aybabtu.com>
30324 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
30326 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
30327 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
30329 2008-08-20 Carles Pina i Estany <carles@pina.cat>
30331 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
30332 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
30334 2008-08-19 Robert Millan <rmh@aybabtu.com>
30336 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
30337 (struct grub_virtual_screen): Remove `cursor_color'.
30338 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
30340 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
30342 2008-08-18 Robert Millan <rmh@aybabtu.com>
30344 Unify (identical) linux_normal.c files.
30345 * loader/i386/efi/linux_normal.c: Move from here ...
30346 * loader/linux_normal.c: ... to here. Update all users.
30347 * loader/i386/pc/linux_normal.c: Delete. Update all users.
30348 * loader/i386/ieee1275/linux_normal.c: Likewise.
30350 2008-08-18 Robert Millan <rmh@aybabtu.com>
30352 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
30353 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
30354 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
30355 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
30356 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
30358 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
30359 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
30360 (GRUB_LINUX_CL_END_OFFSET): ... to here.
30361 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
30362 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
30363 (GRUB_EFI_CL_END_OFFSET): Rename to ...
30364 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
30365 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
30366 Initialize `params->video_cursor_x' and `params->video_cursor_y'
30367 portably using grub_getxy().
30368 Replace `-EFI' with `-bzImage' in boot message.
30370 2008-08-17 Robert Millan <rmh@aybabtu.com>
30372 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
30374 2008-08-17 Robert Millan <rmh@aybabtu.com>
30376 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
30378 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
30379 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
30380 (grub_machine_mmap_iterate): New function declaration.
30381 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
30383 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
30386 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
30387 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
30388 Move e820 parsing from here ...
30389 * kern/i386/pc/mmap.c: New file.
30390 (grub_machine_mmap_iterate): ... to here.
30392 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
30393 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
30394 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
30395 (grub_available_iterate): Redeclare to return `void', and redeclare
30396 its hook to use grub_uint64_t as addr and size parameters, and rename
30398 (grub_machine_mmap_iterate): ... this. Update all users.
30400 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
30401 to make it more readable. Rename to ...
30402 (grub_machine_mmap_iterate): ... this.
30404 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
30405 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
30406 (grub_multiboot): Allocate an extra region after the payload, and fill
30407 it with a Multiboot memory map. Adjust a.out loader to calculate size
30408 with the extra space.
30409 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
30410 with the extra space.
30412 2008-08-17 Carles Pina i Estany <carles@pina.cat>
30414 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
30416 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
30418 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
30419 mdate-sh to the list `find' searches for.
30420 * DISTLIST: Regenerated.
30422 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
30424 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
30425 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
30426 genmoddep.awk, gensymlist.sh.in.
30427 (DISTDIRS): Add bus, docs, hook, lib.
30428 * DISTLIST: Regenerated.
30429 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
30431 2008-08-16 Robert Millan <rmh@aybabtu.com>
30433 * disk/raid.c (grub_raid_init): Handle/report errors set by
30434 grub_device_iterate().
30435 * disk/lvm.c (grub_lvm_init): Likewise.
30437 2008-08-15 Bean <bean123ch@gmail.com>
30439 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30441 (datetime_mod_SOURCES): New macro.
30442 (datetime_mod_CFLAGS): Likewise.
30443 (datetime_mod_LDFLAGS): Likewise.
30444 (date_mod_SOURCES): Likewise.
30445 (date_mod_CFLAGS): Likewise.
30446 (date_mod_LDFLAGS): Likewise.
30447 (datehook_mod_SOURCES): Likewise.
30448 (datehook_mod_CFLAGS): Likewise.
30449 (datehook_mod_LDFLAGS): Likewise.
30451 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30453 (datetime_mod_SOURCES): New macro.
30454 (datetime_mod_CFLAGS): Likewise.
30455 (datetime_mod_LDFLAGS): Likewise.
30456 (date_mod_SOURCES): Likewise.
30457 (date_mod_CFLAGS): Likewise.
30458 (date_mod_LDFLAGS): Likewise.
30459 (datehook_mod_SOURCES): Likewise.
30460 (datehook_mod_CFLAGS): Likewise.
30461 (datehook_mod_LDFLAGS): Likewise.
30463 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30465 (datetime_mod_SOURCES): New macro.
30466 (datetime_mod_CFLAGS): Likewise.
30467 (datetime_mod_LDFLAGS): Likewise.
30468 (date_mod_SOURCES): Likewise.
30469 (date_mod_CFLAGS): Likewise.
30470 (date_mod_LDFLAGS): Likewise.
30471 (datehook_mod_SOURCES): Likewise.
30472 (datehook_mod_CFLAGS): Likewise.
30473 (datehook_mod_LDFLAGS): Likewise.
30475 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30477 (datetime_mod_SOURCES): New macro.
30478 (datetime_mod_CFLAGS): Likewise.
30479 (datetime_mod_LDFLAGS): Likewise.
30480 (date_mod_SOURCES): Likewise.
30481 (date_mod_CFLAGS): Likewise.
30482 (date_mod_LDFLAGS): Likewise.
30483 (datehook_mod_SOURCES): Likewise.
30484 (datehook_mod_CFLAGS): Likewise.
30485 (datehook_mod_LDFLAGS): Likewise.
30487 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
30489 (datetime_mod_SOURCES): New macro.
30490 (datetime_mod_CFLAGS): Likewise.
30491 (datetime_mod_LDFLAGS): Likewise.
30492 (date_mod_SOURCES): Likewise.
30493 (date_mod_CFLAGS): Likewise.
30494 (date_mod_LDFLAGS): Likewise.
30495 (datehook_mod_SOURCES): Likewise.
30496 (datehook_mod_CFLAGS): Likewise.
30497 (datehook_mod_LDFLAGS): Likewise.
30499 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
30501 * commands/date.c: New file.
30503 * hook/datehook.c: Likewise.
30505 * include/grub/lib/datetime.h: Likewise.
30507 * include/grub/i386/cmos.h: Likewise.
30509 * lib/datetime.c: Likewise.
30511 * lib/i386/datetime.c: Likewise.
30513 * lib/efi/datetime.c: Likewise.
30515 2008-08-14 Robert Millan <rmh@aybabtu.com>
30517 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
30518 (grub_mkelfimage_SOURCES): New variable.
30519 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
30521 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
30522 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
30523 * conf/powerpc-ieee1275.rmk: Likewise.
30524 * conf/i386-ieee1275.rmk: Likewise.
30526 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
30527 * kern/i386/coreboot/init.c: Likewise.
30529 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
30530 with `<grub/cpu/kernel.h>'.
30531 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
30533 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
30534 * kern/i386/coreboot/startup.S: Likewise.
30536 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
30537 (GRUB_MOD_GAP): Remove.
30538 * include/grub/powerpc/kernel.h: New file.
30539 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
30540 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30541 * include/grub/i386/kernel.h: New file.
30542 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
30543 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
30544 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
30546 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
30548 Use --directory when invoking grub_mkimage.
30550 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
30551 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
30552 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
30553 and GRUB_KERNEL_CPU_PREFIX.
30555 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
30557 * include/grub/err.h (grub_err_printf): New function prototype.
30558 * util/misc.c (grub_err_printf): New function.
30559 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
30561 * kern/err.c (grub_print_error): Use grub_err_printf.
30563 2008-08-13 Robert Millan <rmh@aybabtu.com>
30565 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
30567 2008-08-13 Robert Millan <rmh@aybabtu.com>
30569 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
30572 2008-08-12 Robert Millan <rmh@aybabtu.com>
30574 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
30575 of the relocation code from here ...
30576 (grub_multiboot): ... to here.
30577 (forward_relocator, backward_relocator): Move from here ...
30578 * kern/i386/loader.S (grub_multiboot_forward_relocator)
30579 (grub_multiboot_backward_relocator): ... to here.
30580 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
30581 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
30582 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
30583 (grub_multiboot_forward_relocator_end)
30584 (grub_multiboot_backward_relocator)
30585 (grub_multiboot_backward_relocator_end): New variables.
30587 2008-08-12 Bean <bean123ch@gmail.com>
30589 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
30591 2008-08-11 Robert Millan <rmh@aybabtu.com>
30593 * kern/i386/linuxbios/startup.S: Move from here ...
30594 * kern/i386/coreboot/startup.S: ... to here.
30596 * kern/i386/linuxbios/init.c: Move from here ...
30597 * kern/i386/coreboot/init.c: ... to here.
30599 * kern/i386/linuxbios/table.c: Move from here ...
30600 * kern/i386/coreboot/mmap.c: ... to here.
30602 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
30604 2008-08-11 Robert Millan <rmh@aybabtu.com>
30606 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
30607 errors. Leave it to the upper layer to handle them.
30609 2008-08-09 Christian Franke <franke@computer.org>
30611 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
30612 * conf/common.rmk: Install `grub-pe2elf' only if requested.
30613 Install `grub.d/10_windows' only on Cygwin.
30614 * configure.ac: Add subst of `target_os'.
30615 Check `target_os' also before setting TARGET_OBJ2ELF.
30616 Add `--enable-grub-pe2elf'.
30618 2008-08-08 Robert Millan <rmh@aybabtu.com>
30620 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30621 (grub_last_time): Change type to grub_uint64_t.
30622 (grub_disk_open): Migrate code from to using grub_get_time_ms().
30623 (grub_disk_close): Likewise.
30625 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
30626 (run_menu): Migrate code from to using grub_get_time_ms().
30628 * util/misc.c (grub_get_time_ms): New function.
30630 2008-08-08 Marco Gerards <marco@gnu.org>
30632 * disk/ata.c (grub_ata_regget): Change return type to
30634 (grub_ata_regget2): Likewise.
30635 (grub_ata_wait_status): New function.
30636 (grub_ata_wait_busy): Removed function, updated all users to use
30637 `grub_ata_wait_status'.
30638 (grub_ata_wait_drq): Likewise.
30639 (grub_ata_cmd): New function.
30640 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
30642 (grub_ata_pio_write): Add error handling.
30643 (grub_atapi_identify): Likewise.
30644 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
30646 (grub_ata_identify): Use `grub_ata_cmd' and improve error
30647 handling. Actually use the detected registers. Reorder the
30648 detection logic such that it is easier to read.
30649 (grub_ata_pciinit): Do not assign the same ID to each controller.
30650 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
30652 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
30654 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
30656 2008-08-08 Marco Gerards <marco@gnu.org>
30660 2008-08-07 Bean <bean123ch@gmail.com>
30662 * include/grub/x86_64/pci.h: New file.
30664 2008-08-07 Christian Franke <franke@computer.org>
30666 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
30667 (TIMER2_GATE): Likewise.
30668 (grub_pit_wait): Add enable/disable of the timer2 gate
30669 bit of port 0x61. This fixes a possible infinite loop.
30671 2008-08-07 Bean <bean123ch@gmail.com>
30673 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
30674 kern/i386/tsc.c and kern/i386/pit.c.
30676 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
30679 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
30682 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
30684 2008-08-07 Bean <bean123ch@gmail.com>
30686 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
30688 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
30690 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
30691 multiple inclusion. Add #include <grub/types.h>.
30693 2008-08-06 Christian Franke <franke@computer.org>
30695 * conf/common.rmk: Build and install `10_windows'.
30696 * util/grub.d/10_windows.in: New script.
30698 2008-08-06 Pavel Roskin <proski@gnu.org>
30700 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
30702 2008-08-06 Robert Millan <rmh@aybabtu.com>
30704 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
30705 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
30707 2008-08-06 Bean <bean123ch@gmail.com>
30709 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
30710 (grub_pxefs_fs_int): Remove dummy definition.
30711 (grub_pxefs_open): Use data->block_size to store the current block
30713 (grub_pxefs_read): Use block size stored in data->block_size. As the
30714 value of grub_pxe_blksize can be changed after the file is opened.
30716 2008-08-06 Bean <bean123ch@gmail.com>
30718 * fs/i386/pc/pxe.c (curr_file): new variable.
30719 (grub_pxefs_open): Simply the handling of pxe file system. Don't
30720 require the dummy internal file system anymore.
30721 (grub_pxefs_read): Removed.
30722 (grub_pxefs_close): Likewise.
30723 (grub_pxefs_fs_int): Likewise.
30724 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
30725 connection when we switch file.
30726 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
30728 2008-08-06 Robert Millan <rmh@aybabtu.com>
30730 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
30732 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
30733 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
30735 * kern/i386/halt.c: New file.
30736 * kern/i386/reboot.c: Likewise.
30737 * include/grub/i386/reboot.h: Likewise.
30738 * include/grub/i386/halt.h: Likewise.
30740 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
30741 Include `<grub/cpu/halt.h>'.
30742 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
30743 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
30745 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
30746 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
30747 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
30748 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
30749 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
30750 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
30752 * include/grub/i386/at_keyboard.h: ... to here.
30754 2008-08-05 Robert Millan <rmh@aybabtu.com>
30756 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
30757 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
30758 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
30759 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30760 `kern/generic/millisleep.c'.
30762 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
30763 instead of grub_get_rtc().
30764 (grub_tsc_init): Initialize `tsc_boot_time'.
30766 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
30767 (grub_machine_init): Use grub_tsc_init() rather than
30768 installing an RTC-based handler via grub_install_get_time_ms().
30770 * kern/i386/pit.c: New file.
30771 * include/grub/i386/pit.h: Likewise.
30773 2008-08-05 Bean <bean123ch@gmail.com>
30775 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
30777 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
30778 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
30779 (pxe_mod_SOURCES): New macro.
30780 (pxe_mod_CFLAGS): Likewise.
30781 (pxe_mod_LDFLAGS): Likewise.
30782 (pxecmd_mod_SOURCES): Likewise.
30783 (pxecmd_mod_CFLAGS): Likewise.
30784 (pxecmd_mod_LDFLAGS): Likewise.
30786 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
30787 (grub_pxe_call): Likewise.
30789 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
30791 * commands/i386/pc/pxecmd.c: New file.
30793 * fs/i386/pc/pxe.c: Likewise.
30795 * include/grub/i386/pc/pxe.h: Likewise.
30797 2008-08-05 Bean <bean123ch@gmail.com>
30799 * util/console.c (grub_console_cur_color): New variable.
30800 (grub_console_standard_color): Likewise.
30801 (grub_console_normal_color): Likewise.
30802 (grub_console_highlight_color): Likewise.
30803 (color_map): Likewise.
30804 (use_color): Likewise.
30805 (NUM_COLORS): New macro.
30806 (grub_ncurses_setcolorstate): Handle color properly.
30807 (grub_ncurses_setcolor): Don't change color here, just remember the
30808 settings, color will be set in grub_ncurses_setcolorstate.
30809 (grub_ncurses_getcolor): New function.
30810 (grub_ncurses_init): Initialize color pairs.
30811 (grub_ncurses_term): New member grub_ncurses_getcolor.
30813 2008-08-05 Colin D Bennett <colin@gibibit.com>
30815 High resolution timer support. Implemented for x86 CPUs using TSC.
30816 Extracted generic grub_millisleep() so it's linked in only as needed.
30817 This requires a Pentium compatible CPU; if the RDTSC instruction is
30818 not supported, then it falls back on the generic grub_get_time_ms()
30819 implementation that uses the machine's RTC.
30821 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
30822 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
30823 `kern/generic/millisleep.c'.
30825 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
30826 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
30828 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
30829 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
30831 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30833 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
30834 `kern/generic/millisleep.c'.
30836 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30838 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
30840 * kern/generic/rtc_get_time_ms.c: New file.
30842 * kern/generic/millisleep.c: New file.
30844 * kern/misc.c: Don't include
30845 <kern/time.h> anymore.
30846 (grub_millisleep_generic): Removed.
30848 * commands/sleep.c (grub_interruptible_millisleep): Uses
30849 grub_get_time_ms() instead of grub_get_rtc().
30851 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
30853 (grub_cpu_is_cpuid_supported): New inline function.
30854 (grub_cpu_is_tsc_supported): New inline function.
30855 (grub_tsc_init): New function prototype.
30856 (grub_tsc_get_time_ms): New function prototype.
30858 * kern/i386/tsc.c (grub_get_time_ms): New file.
30860 * include/grub/time.h: Include <grub/types.h.
30861 (grub_millisleep_generic): Removed.
30862 (grub_get_time_ms): New prototype.
30863 (grub_install_get_time_ms): New prototype.
30864 (grub_rtc_get_time_ms): New prototype.
30866 * kern/time.c (grub_get_time_ms): New function.
30867 (grub_install_get_time_ms): New function.
30869 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
30870 <grub/time.h> anymore.
30871 (grub_millisleep): Removed.
30872 (grub_machine_init): Call grub_tsc_init.
30874 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
30875 get_time_ms() implementation.
30877 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
30878 (ieee1275_get_time_ms): New function.
30879 (grub_machine_init): Install get_time_ms() implementation.
30881 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
30882 (grub_machine_init): Call grub_tsc_init().
30883 (grub_millisleep): Removed.
30885 * kern/ieee1275/init.c (grub_millisleep): Removed.
30886 (grub_machine_init): Install ieee1275_get_time_ms()
30888 (ieee1275_get_time_ms): New function.
30889 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
30892 2008-08-05 Marco Gerards <marco@gnu.org>
30894 * disk/ata.c: Include <grub/pci.h>.
30895 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
30896 (grub_ata_initialize): Rewritten.
30897 (grub_ata_device_initialize): New function.
30899 2008-08-04 Pavel Roskin <proski@gnu.org>
30901 * kern/main.c: Include grub/mm.h.
30903 2008-08-04 Robert Millan <rmh@aybabtu.com>
30905 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
30906 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
30907 corruption problem).
30909 2008-08-04 Robert Millan <rmh@aybabtu.com>
30911 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
30912 warnings introduced in my last commit.
30914 2008-08-03 Robert Millan <rmh@aybabtu.com>
30916 Make PCI available on all i386 architectures.
30918 * include/grub/i386/pc/pci.h: Move from here ...
30919 * include/grub/i386/pci.h: ... to here.
30921 * include/grub/i386/pc/pci.h: Remove.
30922 * include/grub/i386/efi/pci.h: Remove.
30923 * include/grub/x86_64/efi/pci.h: Remove.
30925 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
30926 `<grub/cpu/pci.h>'.
30928 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
30929 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
30930 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
30932 * conf/i386-ieee1275.rmk: Likewise.
30934 2008-08-03 Robert Millan <rmh@aybabtu.com>
30936 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
30937 (grub_console_setcursor): Make it possible to set cursor off.
30939 2008-08-03 Robert Millan <rmh@aybabtu.com>
30941 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
30942 of modules instead of assuming which platform provides what.
30943 * util/update-grub.in: Likewise.
30945 2008-08-03 Robert Millan <rmh@aybabtu.com>
30947 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
30948 instead of `grub_install_dos_part' to determine whether a drive needs
30949 to be prepended to prefix (`grub_install_dos_part' is not reliable,
30950 because it can be overridden when loading GRUB via Multiboot).
30952 2008-08-02 Robert Millan <rmh@aybabtu.com>
30954 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
30956 2008-08-02 Robert Millan <rmh@aybabtu.com>
30958 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
30959 of informational grub_dprintf() calls.
30961 2008-08-02 Robert Millan <rmh@aybabtu.com>
30963 * disk/memdisk.c (memdisk_size): Don't initialize.
30964 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
30966 * include/grub/i386/pc/kernel.h
30967 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
30968 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
30969 (grub_memdisk_image_size, grub_arch_memdisk_addr)
30970 (grub_arch_memdisk_size): Remove.
30972 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
30973 field (was only used to transfer a constant). Add `type' field to
30974 support multiple module types.
30975 (grub_module_iterate): New function.
30977 * kern/device.c (grub_device_open): Do not hide error messages
30978 when grub_disk_open() fails. Use grub_print_error() instead.
30980 * kern/i386/pc/init.c (grub_arch_modules_addr)
30981 (grub_arch_memdisk_size): Remove functions.
30982 (grub_arch_modules_addr): Return the module address in high memory
30983 (now that it isn't copied anymore).
30985 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
30986 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
30987 decompression routine (grub_total_module_size already includes that
30988 now). Don't copy modules back to low memory.
30990 * kern/main.c: Include `<grub/mm.h>'.
30991 (grub_load_modules): Split out (and use) ...
30992 (grub_module_iterate): ... this function, which iterates through
30993 module objects and runs a hook.
30994 Comment out grub_mm_init_region() call, as it would cause non-ELF
30995 modules to be overwritten.
30997 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
30998 the memdisk image in its own region, make it part of the module list.
30999 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
31000 (main): Parse --memdisk|-m option, and pass user-provided path as
31001 parameter to generate_image().
31002 (add_segments): Pass `memdisk_path' down to load_modules().
31003 (load_modules): Embed memdisk image in module section when requested.
31004 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
31005 `header.type' instead of `header.offset'.
31007 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
31008 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
31009 (memdisk_mod_LDFLAGS): New variables.
31010 * conf/i386-coreboot.rmk: Likewise.
31011 * conf/i386-ieee1275.rmk: Likewise.
31013 2008-08-02 Robert Millan <rmh@aybabtu.com>
31015 * loader/i386/pc/multiboot.c (playground, forward_relocator)
31016 (backward_relocator): New variables. Used to allocate and relocate
31017 the payload, respectively.
31018 (grub_multiboot_load_elf32): Load into heap instead of requested
31019 address, install the appropriate relocator code in each bound of
31020 the payload, and set the entry point such that
31021 grub_multiboot_real_boot() will jump to one of them.
31023 * kern/i386/loader.S (grub_multiboot_payload_size)
31024 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
31025 (grub_multiboot_payload_entry_offset): New variables.
31026 (grub_multiboot_real_boot): Set cpu context to what the relocator
31027 expects, and jump to the relocator instead of the payload.
31029 * include/grub/i386/loader.h (grub_multiboot_payload_size)
31030 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
31031 (grub_multiboot_payload_entry_offset): Export.
31033 2008-08-01 Bean <bean123ch@gmail.com>
31035 * normal/menu_entry.c (editor_getline): Don't return the original
31036 string as result, as it will be released by lexer once it has done
31039 2008-08-01 Robert Millan <rmh@aybabtu.com>
31041 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
31042 within menuentries, not before them.
31043 util/grub.d/10_hurd.in: Likewise.
31045 2008-08-01 Bean <bean123ch@gmail.com>
31047 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
31048 (bufio_mod_SOURCES): New macro.
31049 (bufio_mod_CFLAGS): Likewise.
31050 (bufio_mod_LDFLAGS): Likewise.
31052 * include/grub/bufio.h: New file.
31054 * io/bufio.c: Likewise.
31056 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
31057 (grub_video_reader_png): Use grub_buffile_open to open file.
31059 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
31060 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
31062 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
31063 (grub_video_reader_tga): Use grub_buffile_open to open file.
31065 * font/manager.c: Include <grub/bufio.h>.
31066 (add_font): Use grub_buffile_open to open file.
31068 2008-07-31 Robert Millan <rmh@aybabtu.com>
31070 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
31071 ELF segments, use a macro for arbitrarily accessing any of them instead
31072 of preparing a pointer that allows access to one at a time.
31073 (grub_multiboot_load_elf64): Likewise.
31075 2008-07-31 Bean <bean123ch@gmail.com>
31077 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
31078 GRUB_KERNEL_MACHINE_DATA_END.
31080 2008-07-30 Robert Millan <rmh@aybabtu.com>
31082 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
31083 Increase from 0x50 to 0x60.
31084 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
31085 use UUIDs to identify the root drive for them. If that's not
31087 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
31088 check, for cross-disk installs.
31090 2008-07-30 Robert Millan <rmh@aybabtu.com>
31092 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
31093 is non-empty, use it to set the `prefix' environment variable instead
31094 of the usual approach.
31095 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
31096 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
31097 environment variable instead of dummy make_install_device().
31099 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
31100 (start): Insert a data section, with `grub_prefix' variable.
31101 * kern/i386/linuxbios/startup.S: Likewise.
31103 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
31104 New variable reference.
31105 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
31106 New macro. Defines offset of `grub_prefix' within startup.S (relative
31108 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
31109 section within startup.S (relative to `start').
31110 * include/grub/i386/coreboot/kernel.h: Likewise.
31112 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
31113 Overwrite grub_prefix with its contents, at the beginning of the
31115 (main): Understand -p|--prefix.
31117 2008-07-30 Robert Millan <rmh@aybabtu.com>
31119 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
31121 2008-07-30 Robert Millan <rmh@aybabtu.com>
31123 * term/i386/pc/vga_text.c (grub_console_cls): Use
31124 grub_console_gotoxy() to go back to beginning of the screen.
31125 Found by Patrick Georgi <patrick.georgi@coresystems.de>
31127 2008-07-29 Christian Franke <franke@computer.org>
31129 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
31130 Add conversion of emulated mount points on Cygwin.
31132 2008-07-29 Christian Franke <franke@computer.org>
31134 * util/update-grub.in: Add a check for admin
31136 Remove old `grub.cfg.new' before creation.
31137 Add `-f' to `mv' to handle the different filesystem
31138 semantics of Windows.
31140 2008-07-29 Bean <bean123ch@gmail.com>
31142 * normal/main.c (get_line): Fix buffer overflow bug.
31144 2008-07-28 Robert Millan <rmh@aybabtu.com>
31146 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
31147 (struct grub_apple_header): New struct. Describes the layout of
31148 the partmap header.
31149 (apple_partition_map_iterate): Check the header magic as well as the
31150 partition magic (which was already being checked).
31152 2008-07-28 Pavel Roskin <proski@gnu.org>
31154 * genmk.rb: Add a warning to the beginning of the output that
31155 it's a generated file and should not be edited.
31157 2008-07-28 Robert Millan <rmh@aybabtu.com>
31159 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
31160 with the same number are found, just use issue a warning with
31161 grub_dprintf(), as this error has been reported to be non-fatal.
31163 2008-07-27 Robert Millan <rmh@aybabtu.com>
31165 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
31168 2008-07-27 Bean <bean123ch@gmail.com>
31170 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
31171 (grub_fat_find_dir): Ignore case when comparing filename.
31173 2008-07-27 Bean <bean123ch@gmail.com>
31175 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
31176 smallino, as it's more descriptive, and i8count can be confused with
31177 the other field count.
31178 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
31181 2008-07-27 Bean <bean123ch@gmail.com>
31183 * commands/crc.c: New file.
31185 * lib/crc.c: Likewise.
31187 * include/grub/lib/crc.h: Likewise.
31189 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
31191 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
31192 (hexdump): Move this function to ...
31194 * lib/hexdump.c: ... here.
31196 * include/grub/hexdump.h: Renamed to ...
31198 * include/grub/lib/hexdump.h: ... this.
31200 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
31202 * util/grub-editenv.c: Likewise.
31204 * include/envblk.h: Renamed to ...
31206 * include/lib/envblk.h: ... this.
31208 * util/envblk.c: Renamed to ...
31210 * lib/envblk.c: ... this.
31212 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
31214 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
31215 (pkglib_MODULES): Add crc.mod.
31216 (hexdump_mod_SOURCES): Add lib/hexdump.c.
31217 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
31218 (crc_mod_SOURCES): New macro.
31219 (crc_mod_CFLAGS): Likewise.
31220 (crc_mod_LDFLAGS): Likewise.
31222 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
31224 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31226 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31228 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31230 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31232 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
31234 * commands/help.c: Include <grub/term.h>.
31235 (TERM_WIDTH): Removed. Updated all users.
31237 2008-07-27 Pavel Roskin <proski@gnu.org>
31239 * util/getroot.c (find_root_device): Rephrase a comment to avoid
31240 spurious warnings about a comment within a comment.
31242 2008-07-25 Robert Millan <rmh@aybabtu.com>
31244 * util/getroot.c (find_root_device): Skip devices that match
31245 /dev/dm-[0-9]. This lets the real device be found for any type of
31246 abstraction (LVM, EVMS, RAID..).
31247 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
31248 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
31249 device is found first, find_root_device() will now skip it.
31251 2008-07-24 Pavel Roskin <proski@gnu.org>
31253 * include/grub/types.h: Use __builtin_bswap32() and
31254 __builtin_bswap64() with gcc 4.3 and newer.
31256 2008-07-24 Christian Franke <franke@computer.org>
31258 * util/i386/pc/grub-install.in: If `--debug' is specified,
31259 pass `--verbose' to grub-setup.
31260 Abort script if make_system_path_relative_to_its_root() fails.
31262 2008-07-24 Bean <bean123ch@gmail.com>
31264 * configure.ac: Fixed a bug caused by the previous cygwin patch,
31265 variable `target_platform' should be `platform'.
31267 2008-07-24 Bean <bean123ch@gmail.com>
31269 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
31270 (grub_png_init_fixed_block): New function.
31271 (grub_png_decode_image_data): Handle fixed huffman code compression.
31273 2008-07-24 Bean <bean123ch@gmail.com>
31275 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
31276 (grub_pe2elf_SOURCES): New macro.
31277 (CLEANFILES): Add grub-pe2elf.
31279 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
31280 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
31281 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
31282 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
31283 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
31284 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
31285 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
31286 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
31287 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
31288 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
31289 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
31290 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
31291 (GRUB_PE32_DT_FUNCTION): Likewise.
31292 (GRUB_PE32_REL_I386_DIR32): Likewise.
31293 (GRUB_PE32_REL_I386_REL32): Likewise.
31294 (grub_pe32_symbol): New structure.
31295 (grub_pe32_reloc): Likewise.
31297 * util/grub-pe2elf.c: New file.
31299 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
31300 start symbol in non pc platform.
31302 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
31304 The following patches are from Christian Franke.
31306 * include/grub/dl.h: Remove .previous, gas supports this only
31309 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
31310 Remove .type, gas supports this only for ELF format.
31312 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
31313 nullbytes in symbol table. This fixes an infinite loop if table is
31316 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
31317 TARGET_IMG_LDFLAGS and EXEEXT.
31319 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
31320 TARGET_IMG_LDFLAGS_AC.
31321 (grub_CHECK_STACK_ARG_PROBE): New function.
31323 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
31325 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
31327 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
31328 to set TARGET_IMG_LD* accordingly.
31329 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
31330 Add call to grub_CHECK_STACK_ARG_PROBE.
31331 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
31333 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
31335 * genmk.rb: Add EXEEXT to CLEANFILES.
31337 2008-07-23 Robert Millan <rmh@aybabtu.com>
31339 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
31340 define the codes for arrows and lines used for the menu).
31341 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
31344 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
31345 fonts, because the latter are too slow.
31347 2008-07-21 Bean <bean123ch@gmail.com>
31349 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
31350 a20. Run keyboard test last, as it will cause macbook to halt.
31352 2008-07-18 Pavel Roskin <proski@gnu.org>
31354 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
31355 load foreign architecture modules correctly anyway. Keep
31356 support for loading host architecture modules, whether we
31357 compile them or not.
31359 2008-07-17 Pavel Roskin <proski@gnu.org>
31361 * configure.ac: Use -m32 or -m64 regardless of whether we had to
31362 change target_cpu. The compiler default can mismatch target_cpu
31365 * disk/efi/efidisk.c: Fix format warnings on x86_64.
31366 * kern/efi/efi.c: Likewise.
31368 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
31369 target compiler is functional.
31370 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
31373 * configure.ac: Default to efi platform for x86_64-apple. Allow
31374 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
31375 adjustments from the rest, only do them if target is not
31376 explicitly given. Merge other adjustments with the final sanity
31377 check. Remove an extraneous check for supported CPU. Be
31378 specific which CPU and which platform is not supported.
31380 * configure.ac: Default to pc platform for x86_64.
31382 2008-07-17 Robert Millan <rmh@aybabtu.com>
31384 Partial LinuxBIOS -> Coreboot rename.
31386 * conf/i386-linuxbios.rmk: Renamed to ...
31387 * conf/i386-coreboot.rmk: ... this.
31388 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
31389 * configure.ac: Accept "coreboot" as input platform (but maintain
31390 compatibility with "linuxbios").
31391 * include/grub/i386/linuxbios: Renamed to ...
31392 * include/grub/i386/coreboot: ... this.
31394 2008-07-17 Bean <bean123ch@gmail.com>
31396 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
31397 (appleldr_mod_SOURCE): New variable.
31398 (appleldr_mod_CFLAGS): Likewise.
31399 (appleldr_mod_LDFLAGS): Likewise.
31400 (pci_mod_SOURCES): Likewise.
31401 (pci_mod_CFLAGS): Likewise.
31402 (pci_mod_LDFLAGS): Likewise.
31403 (lspci_mod_SOURCES): Likewise.
31404 (lspci_mod_CFLAGS): Likewise.
31405 (lspci_mod_LDFLAGS): Likewise.
31407 * conf/x86_64-efi.rmk: New file.
31409 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
31411 (grub_efidisk_write): Likewise.
31413 * include/efi/api.h (efi_call_0): New macro.
31414 (efi_call_1): Likewise.
31415 (efi_call_2): Likewise.
31416 (efi_call_3): Likewise.
31417 (efi_call_4): Likewise.
31418 (efi_call_5): Likewise.
31419 (efi_call_6): Likewise.
31421 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
31422 grub_rescue_cmd_chainloader.
31424 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
31425 (grub_pe32_optional_header): Change some fields based on i386 or
31427 (GRUB_PE32_PE32_MAGIC): Likewise.
31429 * include/grub/efi/uga_draw.h: New file.
31431 * include/grub/elf.h (STN_ABS): New constant.
31432 (R_X86_64_NONE): Relocation constant for x86_64.
31433 (R_X86_64_64): Likewise.
31434 (R_X86_64_PC32): Likewise.
31435 (R_X86_64_GOT32): Likewise.
31436 (R_X86_64_PLT32): Likewise.
31437 (R_X86_64_COPY): Likewise.
31438 (R_X86_64_GLOB_DAT): Likewise.
31439 (R_X86_64_JUMP_SLOT): Likewise.
31440 (R_X86_64_RELATIVE): Likewise.
31441 (R_X86_64_GOTPCREL): Likewise.
31442 (R_X86_64_32): Likewise.
31443 (R_X86_64_32S): Likewise.
31444 (R_X86_64_16): Likewise.
31445 (R_X86_64_PC16): Likewise.
31446 (R_X86_64_8): Likewise.
31447 (R_X86_64_PC8): Likewise.
31449 * include/grub/i386/efi/pci.h: New file.
31451 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
31452 Change it value based on platform.
31453 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
31454 (GRUB_E820_RAM): Likewise.
31455 (GRUB_E820_RESERVED): Likewise.
31456 (GRUB_E820_ACPI): Likewise.
31457 (GRUB_E820_NVS): Likewise.
31458 (GRUB_E820_EXEC_CODE): Likewise.
31459 (GRUB_E820_MAX_ENTRY): Likewise.
31460 (grub_e820_mmap): New structure.
31461 (linux_kernel_header): Change the efi field according to different
31462 kernel version, also field from linux_kernel_header.
31464 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
31466 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
31467 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
31468 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
31469 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
31470 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
31471 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
31472 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
31473 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
31474 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
31475 (GRUB_PCI_ADDR_IO_MASK): Likewise.
31477 * include/grub/x86_64/efi/kernel.h: New file.
31479 * include/grub/x86_64/efi/loader.h: Likewise.
31481 * include/grub/x86_64/efi/machine.h: Likewise.
31483 * include/grub/x86_64/efi/pci.h: Likewise.
31485 * include/grub/x86_64/efi/time.h: Likewise.
31487 * include/grub/x86_64/linux.h: Likewise.
31489 * include/grub/x86_64/setjmp.h: Likewise.
31491 * include/grub/x86_64/time.h: Likewise.
31493 * include/grub/x86_64/types.h: Likewise.
31495 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
31496 GRUB_TARGET_SIZEOF_VOID_P.
31498 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
31499 (grub_efi_locate_handle): Likewise.
31500 (grub_efi_open_protocol): Likewise.
31501 (grub_efi_set_text_mode): Likewise.
31502 (grub_efi_stall): Likewise.
31503 (grub_exit): Likewise.
31504 (grub_reboot): Likewise.
31505 (grub_halt): Likewise.
31506 (grub_efi_exit_boot_services): Likewise.
31507 (grub_get_rtc): Likewise.
31509 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
31510 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
31511 (grub_efi_allocate_pages): Wrap efi calls.
31512 (grub_efi_free_pages): Wrap efi calls.
31513 (grub_efi_get_memory_map): Wrap efi calls.
31515 * kern/x86_64/dl.c: New file.
31517 * kern/x86_64/efi/callwrap.S: Likewise.
31519 * kern/x86_64/efi/startup.S: Likewise.
31521 * loader/efi/appleloader.c: Likewise.
31523 * loader/efi/chainloader.c (cmdline): New variable.
31524 (grub_chainloader_unload): Wrap efi calls.
31525 (grub_chainloader_boot): Likewise.
31526 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
31529 * loader/efi/chainloader_normal.c (chainloader_command):
31530 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
31533 * loader/i386/efi/linux.c (allocate_pages): Change allocation
31535 (grub_e820_add_region): New function.
31536 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
31538 (grub_find_video_card): New function.
31539 (grub_linux_setup_video): New function.
31540 (grub_rescue_cmd_linux): Probe for video information.
31542 * normal/x86_64/setjmp.S: New file.
31544 * term/efi/console.c (map_char): New function.
31545 (grub_console_putchar): Map unicode char.
31546 (grub_console_checkkey): Wrap efi calls.
31547 (grub_console_getkey): Likewise.
31548 (grub_console_getwh): Likewise.
31549 (grub_console_gotoxy): Likewise.
31550 (grub_console_cls): Likewise.
31551 (grub_console_setcolorstate): Likewise.
31552 (grub_console_setcursor): Likewise.
31554 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
31556 2008-07-16 Pavel Roskin <proski@gnu.org>
31558 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
31561 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
31562 pointer, not an integer. This fixes a warning and prevents
31563 precision loss on 64-bit systems.
31564 (relocate_addresses): Remove unneeded cast.
31566 2008-07-15 Pavel Roskin <proski@gnu.org>
31568 * kern/i386/ieee1275/init.c: Include grub/cache.h.
31570 * term/ieee1275/ofconsole.c: Disable code unused on i386.
31572 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
31573 Fix comparison between signed and unsigned.
31575 * include/grub/i386/ieee1275/console.h: Declare
31576 grub_console_init() and grub_console_fini().
31578 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
31579 It's empty and unused.
31581 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
31582 beginning to avoid warnings with some compilers.
31584 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
31585 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
31587 2008-07-14 Pavel Roskin <proski@gnu.org>
31589 * kern/env.c (grub_register_variable_hook): Don't copy empty
31590 string, it leaks memory. Pass "" to grub_env_set(), it should
31591 handle constant strings.
31593 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
31594 * commands/cmp.c (grub_cmd_cmp): Likewise.
31595 * kern/dl.c (grub_dl_flush_cache): Likewise.
31596 (grub_dl_load_core): Likewise.
31597 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
31598 (grub_elf64_load_phdrs): Likewise.
31600 2008-07-13 Pavel Roskin <proski@gnu.org>
31602 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
31603 between signed and unsigned.
31604 (LzmaEnc_Finish): Fix warning about an unused parameter.
31606 2008-07-13 Bean <bean123ch@gmail.com>
31608 * Makefile.in (enable_lzo): New rule.
31610 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
31612 * configure.ac (ENABLE_LZO): New option --enable-lzo.
31614 * boot/i386/pc/lnxboot.S: #include <config.h>.
31616 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
31617 its value according to the compression algorithm used, lzo or lzma.
31619 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
31620 compression algorithm according to configure macro.
31622 * kern/i386/pc/startup.S (codestart): Likewise.
31624 * kern/i386/pc/lzma_decode.S: New file.
31626 * include/grub/lib/LzFind.h: Likewise.
31628 * include/grub/lib/LzHash.h: Likewise.
31630 * include/grub/lib/LzmaDec.h: Likewise.
31632 * include/grub/lib/LzmaEnc.h: Likewise.
31634 * include/grub/lib/LzmaTypes.h: Likewise.
31636 * lib/LzFind.c: Likewise.
31638 * lib/LzmaDec.c: Likewise.
31640 * lib/LzmaEnc.c: Likewise.
31642 2008-07-13 Bean <bean123ch@gmail.com>
31644 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
31645 (grub_ext4_extent_header): New structure.
31646 (grub_ext4_extent): Likewise.
31647 (grub_ext4_extent_idx): Likewise.
31648 (grub_ext4_find_leaf): New function.
31649 (grub_ext2_read_block): Handle extents.
31651 2008-07-12 Robert Millan <rmh@aybabtu.com>
31653 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
31655 2008-07-11 Robert Millan <rmh@aybabtu.com>
31657 * util/grub.d/40_custom.in: New file. Example on how to add custom
31658 entries to /etc/grub.d.
31659 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
31660 40_custom (implicitly, by merging all the grub.d rules).
31662 2008-07-11 Pavel Roskin <proski@gnu.org>
31664 * commands/read.c (grub_getline): Fix invalid memory access.
31665 Don't add newline to the variable value.
31667 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
31668 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
31669 (serial_hw_get_port): Check validity of the port number.
31670 (grub_cmd_serial): Check return value of serial_hw_get_port().
31672 2008-07-07 Pavel Roskin <proski@gnu.org>
31674 * boot/i386/pc/diskboot.S (notification_string): Replace
31675 "Loading kernel" with just "loading". This is shorter, less
31676 confusing and saves a few bytes for possible future changes.
31678 2008-07-05 Pavel Roskin <proski@gnu.org>
31680 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
31681 size for ATAPI devices, they are undefined. Output sector
31682 number in decimal form.
31684 * disk/ata.c: Use named constants for status bits.
31686 2008-07-04 Pavel Roskin <proski@gnu.org>
31688 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
31689 grub_addr_t before casting it to the void pointer to fix a
31690 warning. Non-addressable regions are discarded earlier.
31691 (grub_arch_modules_addr): Cast _end to grub_addr_t.
31692 * kern/i386/linuxbios/table.c: Include grub/misc.h.
31693 (check_signature): Don't shadow table_header.
31694 (grub_linuxbios_table_iterate): Cast numeric constants to
31695 grub_linuxbios_table_header_t.
31696 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
31699 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
31702 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
31703 pointer, which can cause warnings. Support 64-bit addresses.
31705 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
31706 of sizeof(long). This fixes PowerPC image generation on x86_64.
31708 2008-07-04 Robert Millan <rmh@aybabtu.com>
31710 This fixes a performance issue when pc & gpt partmap iterators
31711 didn't abort iteration even after our hook found what it was
31712 looking for (often causing expensive probes of non-existent drives).
31714 Some callers relied on previous buggy behaviour, since they would
31715 raise an error when their own hooks caused early abortion of its
31718 * kern/device.c (grub_device_open): Improve error message.
31719 * disk/lvm.c (grub_lvm_open): Likewise.
31720 * disk/raid.c (grub_raid_open): Likewise.
31722 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
31723 when hook requests it, independently of grub_errno.
31724 (pc_partition_map_probe): Do not fail when find_func() caused
31725 early abortion of pc_partition_map_iterate().
31727 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
31728 when hook requests it, independently of grub_errno.
31729 (gpt_partition_map_probe): Do not fail when find_func() caused
31730 early abortion of gpt_partition_map_iterate().
31732 * kern/partition.c (grub_partition_iterate): Abort parent iteration
31733 when hook requests it, independently of grub_errno. Do not fail when
31734 part_map_iterate_hook() caused early abortion of p->iterate().
31736 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
31737 when grub_partition_iterate() returned with non-zero.
31739 2008-07-03 Pavel Roskin <proski@gnu.org>
31741 * disk/ata.c (grub_ata_pio_write): Check status before writing,
31742 like we do in grub_ata_pio_read().
31743 (grub_ata_readwrite): Always write individual sectors. Fix the
31744 sector count for the remainder.
31745 (grub_ata_write): Enable writing to ATA devices. Correctly
31746 report error for ATAPI devices.
31748 2008-07-02 Pavel Roskin <proski@gnu.org>
31750 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
31753 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
31754 for every read sector, we already increment it for the whole
31755 batch. This fixes reading more than 256 sectors at once.
31757 * util/grub-editenv.c (cmd_info): Cast argument to long
31758 explicitly. ptrdiff_t reduces to int on i386.
31760 * util/grub-editenv.c (main): Be specific which parameter is
31763 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
31764 (memdisk): Make memdisk_orig_addr a pointer.
31766 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
31767 for file offsets, use grub_off_t instead. Fix printf format
31770 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
31771 there. Real unexpected warnings should not drown in the noise
31772 about known problems.
31774 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
31775 grub_disk_addr_t for memory addresses.
31777 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
31778 explicitly to fix a warning.
31780 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
31782 * Makefile.in (MODULE_LDFLAGS): New variable.
31783 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
31784 the linker accepts --build-id=none.
31785 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
31787 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
31789 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
31790 those in Linux XFS code. Provide a way to access 64-bit parent
31792 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
31793 the end of struct grub_xfs_dir_header.
31795 2008-07-02 Bean <bean123ch@gmail.com>
31797 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
31798 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31799 and GRUB_IEEE1275_FLAG_NO_ANSI.
31801 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
31802 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
31803 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
31805 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
31806 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
31808 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
31809 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
31811 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
31812 esc sequence on non ANSI terminal.
31813 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
31815 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
31818 2008-07-02 Bean <bean123ch@gmail.com>
31820 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
31821 (grub_editenv_SOURCES): New variable.
31822 (pkglib_MODULES): Add loadenv.mod.
31823 (loadenv_mod_SOURCES): New variable.
31824 (loadenv_mod_CFLAGS): Likewise.
31825 (loadenv_mod_LDFLAGS): Likewise.
31827 * include/grub/envblk.h: New file.
31829 * util/envblk.c: New file.
31831 * util/grub-editenv.c: New file.
31833 * commands/loadenv.c: New file.
31835 2008-07-01 Pavel Roskin <proski@gnu.org>
31837 * include/multiboot2.h (struct multiboot_tag_module): Use char,
31838 not unsigned char. This fixes warnings and is consistent with
31841 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
31843 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
31845 * term/tparm.c (analyze): Always set *popcount.
31847 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
31848 cast to fix a warning.
31850 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
31851 cast to suppress a warning.
31853 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
31854 grub_fshelp_read_file() expects.
31856 * fs/fat.c: Fix UUID calculation on big-endian systems. We
31857 write uuid as a 32-bit value in CPU byte order, so declare and
31860 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
31861 long if the format specifier expects it.
31862 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
31863 * partmap/pc.c (pc_partition_map_iterate): Likewise.
31864 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
31865 long to fix a warning.
31866 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
31867 grub_dprintf() arguments to fix warnings.
31869 2008-06-30 Pavel Roskin <proski@gnu.org>
31871 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
31872 install_bsd_part immediately before core.img is embedded or
31873 modified on disk. This fixes core.img verification if core.img
31874 cannot be embedded.
31876 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
31877 core_path to calculate the blocklist.
31878 Patch from Javier Martín <lordhabbit@gmail.com>
31880 2008-06-29 Robert Millan <rmh@aybabtu.com>
31882 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
31883 block to disk block.
31884 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
31885 Patch from Niels Böhm <bitbucket@arcor.de>
31887 2008-06-29 Robert Millan <rmh@aybabtu.com>
31889 * util/update-grub_lib.in (font_path): Search for fonts in
31890 /boot/grub first, which is more likely to be readable (we aren't
31891 deciding where fonts live, just looking for them).
31893 2008-06-26 Pavel Roskin <proski@gnu.org>
31895 * util/biosdisk.c (read_device_map): Don't leave dead map
31896 entries for devices failing stat() check.
31898 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
31899 core_path_dev for the core.img path on the target device.
31901 2008-06-26 Robert Millan <rmh@aybabtu.com>
31903 * disk/fs_uuid.c: New file.
31904 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
31905 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
31906 (fs_uuid_mod_LDFLAGS): New variables.
31907 * include/grub/disk.h (grub_disk_dev_id): Add
31908 `GRUB_DISK_DEVICE_UUID_ID'.
31909 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
31910 implement iterate().
31912 2008-06-26 Robert Millan <rmh@aybabtu.com>
31914 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
31915 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
31916 Linux image includes no initrd.
31918 2008-06-21 Javier Martín <lordhabbit@gmail.com>
31920 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
31921 call to resolve the core image location that effectively appended the
31924 2008-06-21 Robert Millan <rmh@aybabtu.com>
31926 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
31929 * util/grub.d/10_hurd.in: ... to here ...
31930 * util/grub.d/10_linux.in: ... and here.
31932 2008-06-19 Robert Millan <rmh@aybabtu.com>
31934 * kern/main.c (grub_main): Export `prefix' variable immediately
31935 after it has been set by grub_machine_set_prefix().
31937 2008-06-19 Robert Millan <rmh@aybabtu.com>
31939 * commands/search.c (search_label, search_fs_uuid, search_file): Print
31940 search result when not saving to variable, not the other way around.
31941 When saving to variable, abort iteration as soon as a match is found.
31943 2008-06-19 Robert Millan <rmh@aybabtu.com>
31945 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
31946 check for partition that provides /boot/grub. Its logic is flawed,
31947 as it prevents prepare_grub_to_access_device() from being called
31950 2008-06-19 Robert Millan <rmh@aybabtu.com>
31952 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
31953 "insmod" command directly when abstraction modules are needed,
31954 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
31955 since it had already been processed).
31957 2008-06-19 Pavel Roskin <proski@gnu.org>
31959 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
31960 changed. This is needed in case GRUB_LIBDIR changes.
31961 * conf/i386-ieee1275.rmk: Likewise.
31962 * conf/i386-linuxbios.rmk: Likewise.
31963 * conf/i386-pc.rmk: Likewise.
31964 * conf/powerpc-ieee1275.rmk: Likewise.
31966 2008-06-18 Pavel Roskin <proski@gnu.org>
31968 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
31969 kernel_elf_symlist.c to symlist.c for consistency with other
31970 architectures. Update all users.
31971 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
31973 2008-06-18 Robert Millan <rmh@aybabtu.com>
31975 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
31978 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
31979 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
31980 a RAID device, run setup() for all members independently on whether
31981 LVM abstraction is being used.
31982 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
31983 If grub-mkimage has set `*install_dos_part == -2', don't override this
31985 Perform *install_dos_part adjustments independently on whether
31986 we're embedding or not.
31987 Clarify error message when image is too big for embedding.
31988 Remove duplicate *install_dos_part stanza.
31990 2008-06-17 Robert Millan <rmh@aybabtu.com>
31992 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
31993 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
31995 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
31996 values in grub_ofconsole_normal_color and
31997 grub_ofconsole_highlight_color (they're not directly related to
31998 background and foreground).
31999 (grub_ofconsole_setcolorstate): Extract background and foreground
32000 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
32002 2008-06-17 Robert Millan <rmh@aybabtu.com>
32004 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
32005 /boot/grub for the check in last commit, not /boot (they could be
32006 different partitions).
32008 2008-06-16 Robert Millan <rmh@aybabtu.com>
32010 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
32011 asked to setup access for the same partition that provides /boot,
32012 don't bother using UUIDs since our root already has the value we
32015 2008-06-16 Robert Millan <rmh@aybabtu.com>
32017 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
32019 Patch from Sven Mueller <sven@debian.org>.
32021 2008-06-16 Robert Millan <rmh@aybabtu.com>
32023 * util/update-grub.in: Check for $EUID instead of $UID.
32024 Reported by Vincent Zweije.
32026 2008-06-16 Bean <bean123ch@gmail.com>
32028 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
32029 (grub_ext2_read_block): Likewise.
32030 (grub_ext2_read_inode): Likewise.
32031 (grub_ext2_mount): Likewise.
32032 (grub_ext2_close): Likewise.
32033 (grub_ext3_get_journal): Removed.
32035 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
32036 (grub_reiserfs_read_symlink): Likewise.
32037 (grub_reiserfs_mount): Likewise.
32038 (grub_reiserfs_open): Likewise.
32039 (grub_reiserfs_read): Likewise.
32040 (grub_reiserfs_close): Likewise.
32041 (grub_reiserfs_get_journal): Removed.
32043 * fs/fshelp.c (grub_fshelp_read): Removed.
32044 (grub_fshelp_map_block): Likewise.
32046 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
32047 (grub_fshelp_journal): Likewise.
32048 (grub_fshelp_read): Likewise.
32049 (grub_fshelp_map_block): Likewise.
32051 2008-06-16 Pavel Roskin <proski@gnu.org>
32053 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
32054 floating point anymore.
32055 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
32057 2008-06-15 Pavel Roskin <proski@gnu.org>
32059 * commands/ls.c (grub_ls_list_files): Use integer calculations
32060 for human readable format, avoid floating point use.
32061 * kern/misc.c (grub_ftoa): Remove.
32062 (grub_vsprintf): Remove floating point support.
32064 2008-06-15 Robert Millan <rmh@aybabtu.com>
32066 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
32068 Reported by Max Vozeler.
32070 2008-06-15 Robert Millan <rmh@aybabtu.com>
32072 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
32073 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
32075 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
32076 the beginning of the prefix.
32078 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
32079 It is assumed that if we have a memdisk, grub-mkimage has set
32080 grub_prefix to include the "(memdisk)" drive in it.
32082 2008-06-15 Robert Millan <rmh@aybabtu.com>
32084 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
32085 Initialize keyboard controller after registering the terminal, so that
32086 grub_printf() can be called from grub_keyboard_controller_init().
32088 2008-06-15 Robert Millan <rmh@aybabtu.com>
32090 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
32091 extent-btree which is written as big endian on disk.
32092 Reported by Alain Greppin <al@chilibi.org>.
32094 2008-06-14 Robert Millan <rmh@aybabtu.com>
32096 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
32097 * util/i386/pc/grub-install.in (modules): Likewise.
32099 2008-06-13 Pavel Roskin <proski@gnu.org>
32101 * commands/ls.c (grub_ls_list_files): Fix format warnings.
32103 2008-06-13 Bean <bean123ch@gmail.com>
32105 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
32107 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
32109 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
32110 to indicate sparse block.
32112 2008-06-12 Pavel Roskin <proski@gnu.org>
32114 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
32115 number, grub_fshelp_read() does it for us.
32117 * fs/fshelp.c (grub_fshelp_read): New function. Implement
32118 linear disk read with journal translation.
32119 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
32120 * include/grub/fshelp.h: Declare grub_fshelp_read().
32122 2008-06-09 Pavel Roskin <proski@gnu.org>
32124 * fs/minix.c (grub_minix_mount): Handle error reading
32127 2008-06-08 Robert Millan <rmh@aybabtu.com>
32129 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
32130 don't append the RAID prefix afterwards.
32131 Reported by Clint Adams.
32133 2008-06-08 Robert Millan <rmh@aybabtu.com>
32135 Based on description from Pavel:
32136 * kern/disk.c (grub_disk_check_range): Rename to ...
32137 (grub_disk_adjust_range): ... this. Add a comment explaining the
32138 tasks performed by this function.
32140 2008-06-08 Robert Millan <rmh@aybabtu.com>
32142 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
32143 `num_serial' (for consistency with other variables).
32144 (struct grub_ntfs_data): Add `uuid' member.
32145 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
32146 (grub_ntfs_uuid): New function.
32147 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
32149 2008-06-07 Pavel Roskin <proski@gnu.org>
32151 * util/biosdisk.c (open_device): Revert last change to the
32152 function, it broke installation. The sector needs to be
32153 different dependent on which device is opened.
32155 2008-06-06 Robert Millan <rmh@aybabtu.com>
32157 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
32158 rest of GRUB, and breakage doesn't happen if its value were modified.
32160 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
32161 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
32162 a constant (same value).
32163 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
32164 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
32166 2008-06-06 Robert Millan <rmh@aybabtu.com>
32168 * util/biosdisk.c (open_device): Do not modify sector offset when
32169 accessing a partition. kern/disk.c already handles this for us.
32171 2008-06-06 Robert Millan <rmh@aybabtu.com>
32173 * util/grub-emu.c (grub_machine_init): Move code in this function from
32175 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
32176 segfault in case grub_printf() is called).
32178 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
32179 grub_probe. Update all users not to explicitly add it again.
32180 (grub_device): New variable; contains corresponding device for grubdir.
32181 (fs_module, partmap_module, devabstraction_module): Pass
32182 `--device ${grub_device}' to grub_probe to avoid traversing /dev
32185 2008-06-05 Robert Millan <rmh@aybabtu.com>
32187 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
32188 is found, print it (same layout as with labels).
32190 2008-06-04 Robert Millan <rmh@aybabtu.com>
32192 * util/biosdisk.c (get_drive): Rename to ...
32193 (find_grub_drive): ... this. Update all users.
32195 (get_os_disk): Rename to ...
32196 (convert_system_partition_to_system_disk): ... this. Update all users.
32198 (find_drive): Rename to ...
32199 (find_system_device): ... this. Update all users.
32201 2008-06-04 Robert Millan <rmh@aybabtu.com>
32203 * util/biosdisk.c (get_os_disk): Handle IDA devices.
32204 * util/grub-mkdevicemap.c (get_mmc_disk_name)
32205 (make_device_map): Likewise.
32207 2008-06-01 Robert Millan <rmh@aybabtu.com>
32209 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
32210 before dereferencing it.
32212 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
32213 union with fat12/fat16-specific ones. Add some new fields, including
32214 `num_serial' for both versions.
32215 (struct grub_fat_data): Add `uuid' member.
32216 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
32217 names. Initialize `data->uuid' using `num_serial'.
32218 (grub_fat_uuid): New function.
32219 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
32221 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
32222 (grub_reiserfs_uuid): New function.
32223 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
32226 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
32227 (grub_xfs_uuid): New function.
32228 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
32230 2008-06-01 Robert Millan <rmh@aybabtu.com>
32232 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
32233 code that is backward compatible with pre-uuid search command.
32235 2008-05-31 Robert Millan <rmh@aybabtu.com>
32237 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
32238 floppies after everything else, to ensure floppy drive isn't accessed
32239 unnecessarily (patch from Bean).
32241 2008-05-31 Robert Millan <rmh@aybabtu.com>
32243 * commands/search.c (search_label, search_fs_uuid, search_file): Do
32244 not print device names when we were asked to set a variable.
32246 2008-05-31 Robert Millan <rmh@aybabtu.com>
32248 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
32249 using "cursor-on" and "cursor-off" commands (understood at least by
32250 the Open Firmware flavour on OLPC).
32252 2008-05-31 Michael Gorven <michael@gorven.za.net>
32254 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
32255 on and off sequences.
32257 2008-05-31 Robert Millan <rmh@aybabtu.com>
32259 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
32260 * util/update-grub.in: Likewise.
32262 2008-05-30 Pavel Roskin <proski@gnu.org>
32264 * util/biosdisk.c (linux_find_partition): Simplify logic and
32265 make the code more universal. Keep special processing for
32266 devfs, but use a simple rule for all other devices. If the
32267 device ends with a number, append 'p' and the partition number.
32268 Otherwise, append only the partition number.
32270 2008-05-30 Robert Millan <rmh@aybabtu.com>
32272 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
32273 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
32274 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
32275 the `root' parameter to Linux.
32277 2008-05-30 Robert Millan <rmh@aybabtu.com>
32279 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
32280 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
32281 --fs_uuid with --fs-uuid.
32282 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
32283 all filesystems support them).
32285 2008-05-30 Robert Millan <rmh@aybabtu.com>
32287 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
32288 grub_printf() flags, since we're printing in units of 2 bytes.
32290 2008-05-30 Robert Millan <rmh@aybabtu.com>
32292 * util/grub.d/00_header.in: Remove obsolete comment referencing
32293 convert_system_path_to_grub_path().
32294 * util/update-grub.in: Likewise.
32295 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
32296 (convert_system_path_to_grub_path): Add a warning message explaining
32297 that this function is deprecated. Rely on is_path_readable_by_grub()
32298 for the readability checks.
32299 (font_path): Use is_path_readable_by_grub() for the readability
32300 check rather than convert_system_path_to_grub_path().
32302 2008-05-30 Robert Millan <rmh@aybabtu.com>
32304 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
32305 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
32306 converting it first.
32307 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
32308 grub.cfg for access to font file, and afterwards call it again to set
32311 2008-05-30 Robert Millan <rmh@aybabtu.com>
32313 * commands/search.c (options): Add --fs_uuid option.
32314 (search_fs_uuid): New function.
32315 (grub_cmd_search): Fix --set argument passing.
32316 Use search_fs_uuid() when requested via --fs_uuid.
32317 (grub_search_init): Update help message.
32318 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
32319 and redeclare it as an array of 16-bit words.
32320 (grub_ext2_uuid): New function.
32321 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
32322 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
32323 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
32324 (GRUB_DEVICE_BOOT_UUID): New variables.
32325 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
32326 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
32328 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
32329 just assume `root' variable has the right value.
32330 * util/grub.d/10_linux.in: Likewise.
32331 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
32333 (main): Recognise `-t fs_uuid' argument.
32335 2008-05-30 Robert Millan <rmh@aybabtu.com>
32337 * util/biosdisk.c (map): Redefine structure to hold information
32338 about GRUB drive name.
32339 (get_drive): Reimplement without assuming (and verifying) BIOS-like
32341 (call_hook): Remove.
32342 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
32343 member. Assume drive has partitions.
32344 (grub_util_biosdisk_open): Access device names via `.device' struct
32346 (open_device): Likewise.
32347 (find_drive): Likewise.
32348 (read_device_map): Adjust map[] usage to match the new struct
32349 definition. Don't check for duplicates (still possible, but not cheap
32351 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
32352 (make_device_name): Remove assumption of BIOS-like drive names.
32354 2008-05-30 Pavel Roskin <proski@gnu.org>
32356 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
32357 compiling execute.c doesn't need grub_script.tab.h anymore.
32358 (normal/command.c_DEPENDENCIES): Likewise.
32359 (normal/function.c_DEPENDENCIES): Likewise.
32360 * conf/i386-ieee1275.rmk: Likewise.
32361 * conf/i386-linuxbios.rmk: Likewise.
32362 * conf/i386-pc.rmk: Likewise.
32363 * conf/powerpc-ieee1275.rmk: Likewise.
32364 * conf/sparc64-ieee1275.rmk: Likewise.
32366 2008-05-29 Pavel Roskin <proski@gnu.org>
32368 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
32369 when scanning metadata for volume group name.
32371 * include/grub/script.h: Don't include grub_script.tab.h. It's
32372 a generated file, which may only be included from the files with
32373 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
32374 use union YYSTYPE, as the later allows forward declaration.
32375 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
32377 2008-05-29 Robert Millan <rmh@aybabtu.com>
32379 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
32380 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
32381 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
32382 (grub_console_checkkey): Add grub_dprintf() call to report unknown
32385 2008-05-29 Robert Millan <rmh@aybabtu.com>
32387 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
32388 control key combinations.
32390 2008-05-29 Robert Millan <rmh@aybabtu.com>
32392 * util/powerpc/ieee1275/grub-install.in: Move from here ...
32393 * util/ieee1275/grub-install.in: ... to here.
32394 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
32395 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
32396 (grub_install_SOURCES): Likewise.
32398 2008-05-29 Robert Millan <rmh@aybabtu.com>
32400 * fs/affs.c: Update copyright year.
32401 * fs/ext2.c: Likewise.
32402 * fs/fshelp.c: Likewise.
32403 * fs/hfsplus.c: Likewise.
32404 * fs/ntfs.c: Likewise.
32405 * fs/xfs.c: Likewise.
32406 * include/grub/fshelp.h: Likewise.
32407 * util/grub-mkdevicemap.c: Likewise.
32409 2008-05-28 Robert Millan <rmh@aybabtu.com>
32411 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
32412 might need to be fatfs to support some firmware implementations
32415 2008-05-28 Robert Millan <rmh@aybabtu.com>
32417 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
32419 * util/grub-mkdevicemap.c (get_mmc_disk_name)
32420 (make_device_map): Likewise.
32422 2008-05-20 Bean <bean123ch@gmail.com>
32424 * fs/fshelp.c (grub_fshelp_map_block): New function.
32425 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
32426 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
32428 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
32429 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
32430 (grub_fshelp_journal): New structure.
32431 (grub_fshelp_map_block): New function prototype.
32432 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
32433 (grub_fshelp_map_block): Likewise.
32435 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
32436 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
32437 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
32438 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
32439 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
32440 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
32441 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
32442 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
32443 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
32444 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
32445 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
32446 (grub_ext2_sblock): New members for journal support.
32447 (grub_ext3_journal_header): New structure.
32448 (grub_ext3_journal_revoke_header): Likewise.
32449 (grub_ext3_journal_block_tag): Likewise.
32450 (grub_ext3_journal_sblock): Likewise.
32451 (grub_fshelp_node): New members logfile and journal.
32452 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
32453 grub_fshelp_map_block to get real block number.
32454 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
32456 (grub_ext2_read_inode): Likewise.
32457 (grub_ext3_get_journal): New function.
32458 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
32459 (grub_ext2_close): Release memory used by journal.
32461 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
32462 (REISERFS_MAGIC_DESC_BLOCK): New macro.
32463 (grub_reiserfs_transaction_header): Renamed to
32464 grub_reiserfs_description_block, replace field data with real_blocks.
32465 (grub_reiserfs_commit_block): New structure.
32466 (grub_reiserfs_data): New member journal.
32467 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
32469 (grub_reiserfs_read_symlink): Likewise.
32470 (grub_reiserfs_iterate_dir): Likewise.
32471 (grub_reiserfs_open): Likewise.
32472 (grub_reiserfs_read): Likewise.
32473 (grub_reiserfs_get_journal): New function.
32474 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
32475 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
32476 using grub_reiserfs_get_journal.
32477 (grub_reiserfs_close): Release memory used by journal.
32479 * fs/affs.c (grub_affs_read_block): Change block type to
32480 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
32482 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
32484 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
32486 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
32488 * fs/udf.c (grub_udf_read_block): Change block type to
32489 grub_disk_addr_t. Use type cast to avoid warning.
32491 * fs/xfs.c (grub_xfs_read_block): Likewise.
32493 2008-05-16 Christian Franke <franke@computer.org>
32495 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
32496 to ensure that break with ESC will always work.
32497 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
32498 Remove ESC from keyboard queue.
32500 2008-05-16 Christian Franke <franke@computer.org>
32502 * util/biosdisk.c: [__CYGWIN__] Add includes.
32503 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
32504 (get_os_disk): Move variable declarations to OS specific
32505 parts to avoid warning.
32506 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
32507 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
32508 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
32510 * util/getroot.c: [__CYGWIN__] Add includes.
32511 (strip_extra_slashes): Fix "/" case.
32512 [__CYGWIN__] (get_win32_path): New function.
32513 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
32514 [__CYGWIN__] (find_root_device): Disable.
32515 [__CYGWIN__] (get_bootsec_serial): New function.
32516 [__CYGWIN__] (find_cygwin_root_device): Likewise.
32517 [__linux__] (grub_guess_root_device): Add early returns to simplify
32519 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
32520 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
32521 check for Linux only.
32523 2008-05-15 Bean <bean123ch@gmail.com>
32525 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
32526 keyboard hang problem in apple's intel mac.
32528 2008-05-09 Robert Millan <rmh@aybabtu.com>
32530 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
32532 * util/grub-mkdevicemap.c (get_virtio_disk_name)
32533 (make_device_map): Likewise.
32534 Reported by Aurelien Jarno <aurel32@debian.org>
32536 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
32538 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
32539 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
32540 (make_device_map): Output entries for xvd type disks.
32542 2008-05-07 Robert Millan <rmh@aybabtu.com>
32544 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
32546 * util/grub-mkdevicemap.c (get_cciss_disk_name)
32547 (make_device_map): Likewise.
32548 Reported by Roland Dreier <rdreier@cisco.com>
32550 2008-05-07 Robert Millan <rmh@aybabtu.com>
32552 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
32553 grub_strstr() call. Correct a few mistakes in failure path handling.
32555 2008-05-06 Robert Millan <rmh@aybabtu.com>
32557 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
32558 Do not print a trailing slash (therefore, the root directory is an
32560 (convert_system_path_to_grub_path): Do not remove trailing slash
32561 from make_system_path_relative_to_its_root() output.
32563 * util/i386/pc/grub-install.in: Add trailing slash to output from
32564 make_system_path_relative_to_its_root().
32566 2008-05-06 Robert Millan <rmh@aybabtu.com>
32568 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
32569 ensures that output lines aren't intermangled with those sent to
32570 stderr (via grub_util_info()).
32571 * util/grub-probe.c (grub_refresh): Likewise.
32572 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
32574 2008-05-05 Christian Franke <franke@computer.org>
32576 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
32577 Add Cygwin device names.
32578 (get_ide_disk_name) [__CYGWIN__]: Likewise.
32579 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
32580 (check_device): Return error instead of success on empty name.
32581 (make_device_map): Move label inside linux specific code to
32582 prevent compiler warning.
32584 2008-04-30 Robert Millan <rmh@aybabtu.com>
32586 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
32587 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
32589 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
32591 2008-04-29 Robert Millan <rmh@aybabtu.com>
32593 * docs/grub.cfg: New file (example GRUB configuration).
32595 2008-04-26 Robert Millan <rmh@aybabtu.com>
32597 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
32598 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
32599 and `disk/ieee1275/nand.c'.
32601 2008-04-25 Bean <bean123ch@gmail.com>
32603 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
32606 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
32607 change the buffer size to 4096 for cdrom device.
32609 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
32611 (_linux_mod_SOURCES): New variable.
32612 (_linux_mod_CFLAGS): Likewise.
32613 (_linux_mod_LDFLAGS): Likewise.
32614 (linux_mod_SOURCES): Likewise.
32615 (linux_mod_CFLAGS): Likewise.
32616 (linux_mod_LDFLAGS): Likewise.
32617 (nand_mod_SOURCES): Likewise.
32618 (nand_mod_CFLAGS): Likewise.
32619 (nand_mod_LDFLAGS): Likewise.
32621 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
32622 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
32623 type property. (nand device in olpc don't have this property)
32625 * include/grub/disk.h (grub_disk_dev_id): New macro
32626 GRUB_DISK_DEVICE_NAND_ID.
32628 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
32629 function prototype.
32630 (grub_rescue_cmd_initrd): Likewise.
32632 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
32633 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
32634 ofw_cif_handler and ofw_idt, adjust padding number.
32636 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
32637 GRUB_MACHINE_IEEE1275 is defined.
32639 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
32640 Use NESTED_FUNC_ATTR attribute on the hook parameter.
32642 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
32643 on nested function heap_init.
32644 (grub_upper_mem): New variable for i386-ieee1275.
32645 (grub_get_extended_memory): New function for i386-ieee1275.
32646 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
32648 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
32649 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
32652 * loader/i386/ieee1275/linux.c: New file.
32654 * loader/i386/ieee1275/linux_normal.c: New file.
32656 * disk/ieee1275/nand.c: New file.
32658 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
32660 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
32662 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
32664 2008-04-18 Robert Millan <rmh@aybabtu.com>
32666 Restructures early code path on ieee1275 to unify grub_main() as
32667 the first C function that is executed in every platform.
32669 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
32670 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
32672 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
32673 * kern/ieee1275/cmain.c (cmain): Rename to ...
32674 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
32675 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
32678 2008-04-18 Robert Millan <rmh@aybabtu.com>
32680 * util/update-grub.in: Fix syntax error when setting
32681 `GRUB_PRELOAD_MODULES'.
32682 Reported by Stephane Chazelas <stephane@artesyncp.com>
32684 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
32686 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
32687 section into account, newer toolchains generate unique build ids
32688 * configure.ac: remove the test for --build-id=none acceptance,
32689 we want build ids to be preserved
32690 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
32691 far from other sections don't cause the raw binary images grow
32694 2008-04-15 Robert Millan <rmh@aybabtu.com>
32696 * disk/lvm.c: Update copyright year.
32697 * kern/misc.c: Likewise.
32699 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32701 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
32702 there is no memory left for physical volume name.
32704 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
32706 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
32707 volume name mapping to support bigger than 9 character names properly.
32709 2008-04-13 Robert Millan <rmh@aybabtu.com>
32711 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
32712 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
32714 2008-04-13 Christian Franke <franke@computer.org>
32716 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
32717 to create a floppy emulation boot CD when non emulation mode
32719 Enable Joliet CD filesystem extension.
32721 2008-04-13 Robert Millan <rmh@aybabtu.com>
32723 * kern/misc.c (grub_strncat): Fix off-by-one error.
32724 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
32726 * kern/env.c (grub_env_context_close): Clear current context, not
32728 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
32730 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
32732 2008-04-13 Robert Millan <rmh@aybabtu.com>
32734 Improve robustness when handling LVM.
32736 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
32737 (and leave `*p' unmodified).
32738 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
32740 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
32741 iterating through it.
32742 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
32744 (grub_lvm_scan_device): Check the return value (and fail gracefully
32745 when due) on each grub_lvm_getvalue() or grub_strstr() call.
32746 Don't assume `vg->pvs != NULL' when iterating through it.
32748 2008-04-13 Robert Millan <rmh@aybabtu.com>
32750 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
32751 * genmk.rb (partmap): New variable.
32752 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
32753 (#{partmap}): New target rule.
32754 * genpartmaplist.sh: New file.
32755 * Makefile.in (pkglib_DATA): Add partmap.lst.
32756 (partmap.lst): New target rule.
32757 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
32758 modules (including all partition maps), instead of preloading them.
32760 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
32762 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
32763 `linux-boot-prober' (if installed) to detect other operating
32764 systems which are installed on the computer and add them to
32766 * conf/common.rmk: Build and install 30_os-prober.
32768 2008-04-12 Robert Millan <rmh@aybabtu.com>
32770 * kern/powerpc/ieee1275/init.c: Move from here ...
32771 * kern/ieee1275/init.c: ... to here. Update all users.
32773 * kern/powerpc/ieee1275/cmain.c: Move from here ...
32774 * kern/ieee1275/cmain.c: ... to here. Update all users.
32776 * kern/powerpc/ieee1275/openfw.c: Move from here ...
32777 * kern/ieee1275/openfw.c: ... to here. Update all users.
32779 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
32780 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
32782 2008-04-10 Pavel Roskin <proski@gnu.org>
32784 * configure.ac: Always use "_cv_" in cache variables for
32785 compatibility with Autoconf 2.62.
32787 2008-04-07 Robert Millan <rmh@aybabtu.com>
32789 Revert grub/machine/init.h addition by Pavel (since it breaks on
32790 i386-ieee1275 and others):
32791 * util/i386/pc/misc.c: Remove grub/machine/init.h.
32792 * util/powerpc/ieee1275/misc.c: Likewise.
32794 2008-04-07 Robert Millan <rmh@aybabtu.com>
32796 * util/grub-probe.c (probe): Improve error message.
32798 2008-04-07 Robert Millan <rmh@aybabtu.com>
32800 * util/biosdisk.c (read_device_map): Skip devices that don't exist
32801 (this prevents the presence of a bogus entry from ruining the whole
32804 2008-04-06 Pavel Roskin <proski@gnu.org>
32806 * util/biosdisk.c: Include grub/util/biosdisk.h.
32807 * util/grub-fstest.c (execute_command): Make static.
32808 * util/grub-mkdevicemap.c (check_device): Likewise.
32809 * util/i386/pc/misc.c: Include grub/machine/init.h.
32810 * util/powerpc/ieee1275/misc.c: Likewise.
32811 * util/lvm.c: Include grub/util/lvm.h.
32812 * util/misc.c: Include grub/kernel.h, grub/misc.h and
32814 * util/raid.c: Include grub/util/raid.h.
32815 (grub_util_getdiskname): Make static.
32817 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
32818 grub_hostfs_fini(), as they are called from grub_init_all() and
32819 grub_fini_all() respectively. This fixes an infinite loop in
32820 grub-fstest due to double registration of hostfs.
32821 Reported by Christian Franke <Christian.Franke@t-online.de>
32823 2008-04-05 Pavel Roskin <proski@gnu.org>
32825 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
32826 all 8 functions. Otherwise, probe function 0 only.
32828 2008-04-04 Pavel Roskin <proski@gnu.org>
32830 * commands/lspci.c (grub_lspci_iter): Print the bus number
32833 * commands/lspci.c (grub_pci_classes): Fix typos.
32834 (grub_lspci_iter): Don't print func twice. Print vendor ID
32835 before device ID, as it's normally done.
32837 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
32838 Fix signedness warnings.
32839 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
32841 * util/ieee1275/get_disk_name.c: Include config.h so that
32842 _GNU_SOURCE is defined and getline() is declared. Mark an
32843 unused argument as such. Fix a signedness warning.
32845 2008-04-02 Pavel Roskin <proski@gnu.org>
32847 * genkernsyms.sh.in: Use more robust assignments for CC and
32848 srcdir. Quote srcdir.
32849 * gensymlist.sh.in: Likewise. Assert at the compile time that
32850 the symbol table is not empty.
32852 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
32853 * fs/cpio.c (grub_cpio_read): Likewise.
32855 2008-04-01 Pavel Roskin <proski@gnu.org>
32857 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
32858 * disk/host.c (grub_host_open): Likewise.
32859 * disk/loopback.c (grub_loopback_open): Likewise.
32860 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
32861 disk->id as in disk/host.c, not a multi-character constant.
32863 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
32864 later is obsolete, potentially dangerous and sets a bad example.
32865 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
32866 * util/misc.c (grub_util_get_image_size): Likewise.
32868 * disk/loopback.c (options): Improve help for "--partitions".
32870 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
32871 options to align them with the short options, e.g. "echo -e".
32873 2008-03-31 Bean <bean123ch@gmail.com>
32875 * video/reader/png.c (grub_png_data): New member is_16bit and
32877 (grub_png_decode_image_header): Detect 16 bit png image.
32878 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
32879 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
32880 (grub_video_reader_png): Release memory occupied by image_data.
32882 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
32884 (grub_nfs_mount): Skip the test for sector per cluster.
32886 * include/grub/ntfs.h (MAX_SPC): Removed.
32888 2008-03-31 Bean <bean123ch@gmail.com>
32890 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
32891 (grub_probe_SOURCES): Add fs/afs.c.
32892 (grub_fstest_SOURCES): Likewise.
32893 (afs_mod_SOURCES): New variable.
32894 (afs_mod_CFLAGS): Likewise.
32895 (afs_mod_LDFLAGS): Likewise.
32897 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
32898 (grub_emu_SOURCES): Likewise.
32900 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32902 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32904 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32906 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32908 * fs/afs.c: New file.
32910 2008-03-30 Pavel Roskin <proski@gnu.org>
32912 * disk/host.c: Include grub/misc.h to fix a warning.
32913 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
32914 warnings about implicit declarations.
32916 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
32918 * include/grub/i386/loader.h: Change declaration of
32919 grub_linux_boot() to match what grub_loader_set() expects.
32920 * util/getroot.c (grub_guess_root_device): Return const char* to
32922 * util/grub-probe.c (probe): Fix a warning about uninitialized
32923 abstraction_name variable.
32924 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
32925 second argument as unused to fix a warning.
32927 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
32928 missing grub_error() call.
32930 * util/update-grub_lib.in: Define datarootdir, since Autoconf
32931 2.60 and newer uses it to define datadir.
32933 * commands/sleep.c: Fix warning about implicit declaration.
32934 * disk/memdisk.c: Likewise.
32935 * loader/aout.c: Likewise.
32936 * loader/i386/bsd_normal.c: Likewise.
32937 * util/grub-probe.c: Likewise.
32939 * commands/i386/cpuid.c (has_longmode): Make static.
32940 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
32941 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
32943 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
32944 GDT. This is more robust, as %ds can change.
32945 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
32946 calling real_to_prot().
32947 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
32949 2008-03-28 Pavel Roskin <proski@gnu.org>
32951 * kern/i386/pc/startup.S: Assert that uncompressed functions
32952 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
32953 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
32954 code, as they push parts of the code (error handlers) beyond
32955 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
32956 code as correctness and size.
32958 2008-03-28 Pavel Roskin <proski@gnu.org>
32960 * kern/i386/pc/startup.S
32961 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
32962 data block address to the real mode, keep offset minimal. This
32963 works around a bug in AWARD BIOS on old Athlon systems, which
32964 makes CD detection hang.
32966 2008-03-26 Pavel Roskin <proski@gnu.org>
32968 * normal/color.c (grub_parse_color_name_pair): Make `name' a
32970 * include/grub/normal.h: Add grub_parse_color_name_pair()
32973 2008-03-24 Bean <bean123ch@gmail.com>
32975 * disk/i386/pc/biosdisk.c (cd_start): Removed.
32976 (cd_count): Removed.
32977 (cd_drive): New variable.
32978 (grub_biosdisk_get_drive): Don't check for (cdN) device.
32979 (grub_biosdisk_call_hook): Likewise.
32980 (grub_biosdisk_iterate): Change cdrom detection method.
32981 (grub_biosdisk_open): Replace cd_start with cd_drive.
32982 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
32983 detect cdrom device.
32985 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
32987 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
32988 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
32989 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
32990 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
32991 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
32992 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
32993 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
32994 (grub_biosdisk_cdrp): New structure.
32995 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
32997 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
32999 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
33002 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
33005 2008-03-20 Robert Millan <rmh@aybabtu.com>
33007 Remove 2 TiB limit in ata.mod.
33008 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
33009 (grub_ata_dumpinfo): Print sector count with 0x%llx.
33010 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
33011 grub_uint64_t instead of grub_uint32_t.
33013 2008-03-05 Bean <bean123ch@gmail.com>
33015 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
33016 (grub_multiboot): Set boot device.
33018 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
33020 2008-03-02 Bean <bean123ch@gmail.com>
33022 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
33025 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
33027 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
33030 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
33033 * docs/fdl.texi: New file.
33035 * docs/mdate-sh: New file. Copied from gnulib.
33036 * docs/texinfo.tex: Likewise.
33038 * config.guess: Updated from gnulib.
33039 * install-sh: Likewise.
33041 2008-02-28 Robert Millan <rmh@aybabtu.com>
33043 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
33044 (aout_mod_SOURCES): New variable.
33045 (aout_mod_CFLAGS): Likewise.
33046 (aout_mod_LDFLAGS): Likewise.
33048 * conf/i386-ieee1275.rmk: Likewise.
33050 2008-02-28 Robert Millan <rmh@aybabtu.com>
33052 * util/update-grub.in: Reorganise terminal validity check. Accept
33053 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
33054 Based on suggestion by Franklin PIAT.
33056 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
33058 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
33060 * util/getroot.c (grub_util_check_block_device): New function that
33061 returns the given argument if it is a block device and returns NULL else.
33062 * util/grub-probe.c (argument_is_device): New variable.
33063 (probe): Promote device_name from a variable to an argument. Receive
33064 device_name from grub_util_check_block_device() if path is NULL and from
33065 grub_guess_root_device() else. Do not free() device_name anymore.
33066 (options): Introduce new parameter '-d, --device'.
33067 (main): Add description of the new parameter to the help screen.
33068 Rename path variable to argument. Set argument_is_device if the '-d'
33069 option is given. Pass argument to probe() depending on
33070 argument_is_device.
33072 2008-02-24 Bean <bean123ch@gmail.com>
33074 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
33075 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
33076 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
33077 (GRUB_ISO9660_VOLDESC_PART): Likewise.
33078 (GRUB_ISO9660_VOLDESC_END): Likewise.
33079 (grub_iso9660_primary_voldesc): New member escape.
33080 (grub_iso9660_data): New member joliet.
33081 (grub_iso9660_convert_string): New function.
33082 (grub_iso9660_mount): Detect joliet extension.
33083 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
33084 (grub_iso9660_iso9660_label): Likewise.
33086 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
33087 (grub_setup_SOURCES): Add fs/udf.c.
33088 (grub_fstest_SOURCES): Likewise.
33089 (udf_mod_SOURCES): New variable.
33090 (udf_mod_CFLAGS): Likewise.
33091 (udf_mod_LDFLAGS): Likewise.
33093 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
33094 (grub_emu_SOURCES): Likewise.
33096 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33098 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33100 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33104 * fs/udf.c: New file.
33106 2008-02-24 Robert Millan <rmh@aybabtu.com>
33108 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
33109 (normal/lexer.c_DEPENDENCIES): New variables.
33110 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33111 (normal/lexer.c_DEPENDENCIES): Likewise.
33112 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
33113 (normal/lexer.c_DEPENDENCIES): Likewise.
33114 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
33115 (normal/lexer.c_DEPENDENCIES): Likewise.
33116 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33117 (normal/lexer.c_DEPENDENCIES): Likewise.
33118 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
33119 (normal/lexer.c_DEPENDENCIES): Likewise.
33121 2008-02-23 Robert Millan <rmh@aybabtu.com>
33123 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
33124 since they were intended to be in hex. This didn't break previously
33125 because of a bug in gpt_partition_map_iterate() (see below).
33127 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
33128 when checking the validity of GPT header.
33129 Remove `partno', since it always provides the same information as `i'.
33131 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
33133 * include/grub/efi/time.h: Fix a wrong comment.
33135 2008-02-19 Pavel Roskin <proski@gnu.org>
33137 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
33140 2008-02-19 Bean <bean123ch@gmail.com>
33142 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
33143 (aout_mod_SOURCES): New variable.
33144 (aout_mod_CFLAGS): Likewise.
33145 (aout_mod_LDFLAGS): Likewise.
33146 (_bsd_mod_SOURCES): New variable.
33147 (_bsd_mod_CFLAGS): Likewise.
33148 (_bsd_mod_LDFLAGS): Likewise.
33149 (bsd_mod_SOURCES): New variable.
33150 (bsd_mod_CFLAGS): Likewise.
33151 (bsd_mod_LDFLAGS): Likewise.
33153 * include/grub/aout.h: New file.
33155 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
33157 * include/grub/i386/bsd.h: New file.
33159 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
33162 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
33163 function is called, so that it's possible to change it inside the hook.
33164 (grub_elf64_load): Likewise.
33165 (grub_elf_file): Don't close the file if elf header is not found.
33166 (grub_elf_close): Close the file if grub_elf_file fails (The new
33167 grub_elf_file won't close it).
33168 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
33169 (grub_elf64_size): Likewise.
33171 * kern/i386/loader.S (grub_unix_real_boot): New function.
33173 * loader/aout.c: New file.
33175 * loader/i386/bsd.c: New file.
33177 * loader/i386/bsd_normal.c: New file.
33179 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
33181 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
33182 can test other formats.
33184 2008-02-19 Robert Millan <rmh@aybabtu.com>
33186 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
33187 (grub_gpt_partition_type_empty): Redefine with macro from
33188 `<grub/gpt_partition.h>'.
33189 (gpt_partition_map_iterate): Adjust partition type comparison.
33191 Export `entry' as partmap-specific `part.data' struct.
33192 (grub_gpt_header, grub_gpt_partentry): Move from here ...
33194 * include/grub/gpt_partition.h (grub_gpt_header)
33195 (grub_gpt_partentry): ... to here (new file).
33197 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
33199 (grub_gpt_partition_type_bios_boot): New const variable, defined
33200 with macro from `<grub/gpt_partition.h>'.
33202 (setup): Replace `first_start' with `embed_region', which keeps
33203 track of the embed region (and is partmap-agnostic).
33205 Replace find_first_partition_start() with find_usable_region(),
33206 which finds a usable region for embedding using partmap-specific
33207 knowledge (supports PC/MSDOS and GPT).
33209 Fix all assumptions that the embed region start at sector 1, using
33210 `embed_region.start' from now on. Similarly, use `embed_region.end'
33211 rather than `first_start' to calculate available size.
33213 In grub_util_info() message, replace "into after the MBR" with an
33214 indication of the specific sector our embed region starts at.
33216 2008-02-19 Robert Millan <rmh@aybabtu.com>
33218 * DISTLIST: Replace `commands/ieee1275/halt.c' and
33219 `commands/ieee1275/reboot.c' with `commands/halt.c' and
33220 `commands/reboot.c'.
33221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
33222 (halt_mod_SOURCES): Likewise.
33223 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
33224 (halt_mod_SOURCES): Likewise.
33226 2008-02-17 Christian Franke <franke@computer.org>
33228 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
33230 2008-02-17 Robert Millan <rmh@aybabtu.com>
33232 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
33233 set `first_start' to 0 for non-PC/MSDOS partition maps.
33235 2008-02-16 Robert Millan <rmh@aybabtu.com>
33237 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
33238 do not assume partition map is PC/MSDOS before performing checks that
33239 are specific to that layout.
33241 2008-02-13 Robert Millan <rmh@aybabtu.com>
33243 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
33244 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
33245 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
33247 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
33249 * configure.ac: Only a cosmetic change on the handling of
33250 -fno-stack-protector.
33252 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
33254 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
33255 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
33257 (grub_install_SOURCES): Add halt.mod and reboot.mod.
33258 (halt_mod_SOURCES): New variable.
33259 (halt_mod_CFLAGS): Likewise.
33260 (halt_mod_LDFLAGS): Likewise.
33261 (reboot_mod_SOURCES): Likewise.
33262 (reboot_mod_CFLAGS): Likewise.
33263 (reboot_mod_LDFLAGS): Likewise.
33265 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
33266 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
33268 (halt_mod_SOURCES): Likewise.
33269 (reboot_mod_SOURCES): Likewise.
33271 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
33272 commands/i386/pc/reboot.c by commands/reboot.c.
33273 (reboot_mod_SOURCES): Likewise.
33275 * commands/i386/pc/reboot.c: merge this file ...
33277 * commands/ieee1275/reboot.c: ... and this file ...
33279 * commands/reboot.c: ... to this file.
33280 Add some precompiler directive to include the correct header for
33283 * commands/ieee1275/halt.c: move this file ...
33285 * commands/halt.c: ... to here.
33286 Add some precompiler directive to include the correct header for
33289 * include/grub/efi/efi.h (grub_reboot): New function declaration.
33290 (grub_halt): Likewise.
33292 * kern/efi/efi.c (grub_reboot): New function.
33293 (grub_halt): Likewise.
33295 2008-02-12 Robert Millan <rmh@aybabtu.com>
33297 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
33298 /dev (like it is done for /dev/mapper). This doesn't provide support
33299 for EVMS, but at least it is now easy to identify the problem when it
33302 2008-02-11 Robert Millan <rmh@aybabtu.com>
33304 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
33305 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
33306 comparing it with -1, not 0.
33308 2008-02-10 Robert Millan <rmh@aybabtu.com>
33310 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
33312 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33313 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
33315 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
33316 `disk/lvm.c' to the end of the list.
33317 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33318 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33320 2008-02-10 Robert Millan <rmh@aybabtu.com>
33322 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
33323 grub_print_error() instead. This will let user know why we're entering
33325 Based on suggestions from Sam Morris.
33327 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
33329 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
33330 on remaining N args, instead of "--" arg N times.
33332 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
33334 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
33335 (fill_with_default_glyph): Changed to use unknown_glyph for fill
33336 pattern for unknown glyphs.
33338 2008-02-09 Robert Millan <rmh@aybabtu.com>
33340 * configure.ac: Probe for `help2man'.
33341 * Makefile.in (builddir): New variable.
33342 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
33343 or otherwise add a few flags/options to it.
33344 (install-local): For every executable utility or script that is
33345 installed, invoke $(HELP2MAN) to install a manpage based on --help
33348 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
33349 that it doesn't prevent --help from working in build tree.
33351 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
33352 with `bug-grub@gnu.org'.
33353 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
33354 * util/update-grub.in (usage): New function.
33355 Implement proper argument check, with support for --help and --version
33356 (as well as existing -y).
33358 2008-02-09 Christian Franke <franke@computer.org>
33360 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
33361 avoid overwriting previous output.
33362 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
33364 2008-02-09 Robert Millan <rmh@aybabtu.com>
33366 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
33369 2008-02-09 Robert Millan <rmh@aybabtu.com>
33371 * commands/sleep.c: New file.
33372 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
33373 (sleep_mod_SOURCES): New variable.
33374 (sleep_mod_CFLAGS): Likewise.
33375 (sleep_mod_LDFLAGS): Likewise.
33377 2008-02-09 Robert Millan <rmh@aybabtu.com>
33379 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
33380 situations in which we can deduce the RAID size and the superblock
33383 2008-02-09 Robert Millan <rmh@aybabtu.com>
33385 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
33386 and return a grub_diskmemberlist_t composed of LVM physical volumes.
33387 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
33389 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
33390 and return a grub_diskmemberlist_t composed of physical array members.
33391 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
33393 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
33395 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
33396 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
33397 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
33399 * util/grub-probe.c (probe): Move partmap probing code from here ...
33400 (probe_partmap): ... to here.
33401 (probe): Use probe_partmap() once for the disk we're probing, and
33402 additionally, when such disk contains a memberlist() struct member,
33403 once for each disk that is contained in the structure returned by
33406 2008-02-09 Robert Millan <rmh@aybabtu.com>
33408 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
33409 environment variable to 'all' in order to obtain debug output from
33411 * util/i386/pc/grub-setup.c (main): Likewise.
33413 2008-02-08 Robert Millan <rmh@aybabtu.com>
33415 * disk/raid.c (grub_raid_scan_device): Check for
33416 `array->device[sb.this_disk.number]' rather than for
33417 `array->device[sb.this_disk.number]->name', since the latter is not
33418 guaranteed to be accessible.
33420 2008-02-08 Robert Millan <rmh@aybabtu.com>
33422 * disk/raid.c: Update copyright.
33423 * fs/cpio.c: Likewise.
33424 * include/grub/raid.h: Likewise.
33425 * loader/i386/pc/multiboot.c: Likewise.
33426 * util/hostfs.c: Likewise.
33428 2008-02-08 Robert Millan <rmh@aybabtu.com>
33430 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
33431 to a grub_disk_t array.
33432 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
33434 (grub_raid_scan_device): Replace `device[x].name' accesses with
33435 `device[x]->name'. Simplify initialization of `array->device[x]'.
33437 2008-02-08 Robert Millan <rmh@aybabtu.com>
33439 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
33440 grub_dprintf() calls.
33441 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
33444 2008-02-07 Christian Franke <franke@computer.org>
33446 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
33447 instead of fseek and ftell to support large files.
33448 (grub_hostfs_read): Likewise.
33450 2008-02-07 Robert Millan <rmh@aybabtu.com>
33452 Patch from Jeroen Dekkers.
33453 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
33454 failure, since successfully reading all array members might not be
33457 2008-02-06 Robert Millan <rmh@aybabtu.com>
33459 * util/grub-probe.c (probe): Simplify partmap probing (with the
33460 assumption that the first word up to the underscore equals to
33463 2008-02-06 Christian Franke <franke@computer.org>
33465 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
33466 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
33467 last block of a cpio or tar stream.
33468 Check for "TRAILER!!!" instead of any empty data
33469 block to detect last block of a cpio stream.
33470 (grub_cpio_dir): Fix constness of variable np.
33471 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
33472 cpio or tar trailer is detected. This fixes a crash
33473 on open of a non existing file.
33475 2008-02-05 Bean <bean123ch@gmail.com>
33477 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
33479 (grub_multiboot_load_elf64): Likewise.
33480 (grub_multiboot): Initialize mbi structure.
33482 * util/grub-fstest.c: Don't include unused header file script.h.
33484 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
33486 (grub_fstest_SOURCES): Likewise.
33488 2008-02-05 Robert Millan <rmh@aybabtu.com>
33490 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
33491 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
33492 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
33493 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
33495 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
33496 (translation_table): Replace hardcoded values with macros
33497 provided by `<grub/term.h>'.
33499 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
33500 (keyboard_map): Correct/add a few values, with macros provided
33501 by `<grub/term.h>'.
33502 (keyboard_map_shift): Zero values that don't differ from their
33503 `keyboard_map' equivalents.
33504 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
33505 Discard the second scan code that is always sent by Caps lock.
33506 Only use `keyboard_map_shift' when it provides a non-zero value,
33507 otherwise fallback to `keyboard_map'.
33509 2008-02-04 Bean <bean123ch@gmail.com>
33511 * Makefile.in (enable_grub_fstest): New variable.
33513 * conf/common.rmk (grub_fstest_init.lst): New rule.
33514 (grub_fstest_init.h): Likewise.
33515 (grub_fstest_init.c): Likewise.
33516 (util/grub-fstest.c_DEPENDENCIES): New variable.
33517 (grub_fstest_SOURCES): Likewise.
33519 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
33521 * util/grub-fstest.c: New file.
33523 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33525 Make grub-setup handle a separate root device.
33527 * util/i386/pc/grub-setup.c (setup): Always open the root device,
33528 so that the root device can be compared with the destination
33530 When embedding the core image, if the root and destination devices
33531 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
33533 When not embedding, set ROOT_DRIVE to 0xFF.
33535 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33537 Add support for having a grub directory in a different drive. This
33538 is still only the data handling part.
33540 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
33541 (codestart): Save %dh in GRUB_ROOT_DRIVE.
33542 (grub_root_drive): New variable.
33544 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
33545 instead of GRUB_BOOT_DRIVE to construct a device name. Set
33546 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
33549 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
33551 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
33553 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
33555 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
33556 is bogus, because PXE booting does not specify any drive
33559 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
33560 am not sure if this is really correct.
33562 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
33563 is always identical to the boot drive when booting from a CD.
33565 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
33567 (root_drive): New variable.
33568 (real_start): Unconditionally set %dh to ROOT_DRIVE.
33569 (setup_sectors): Push %dx right after popping it, because %dh will
33571 (copy_buffer): Restore %dx.
33573 2008-02-03 Robert Millan <rmh@aybabtu.com>
33575 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
33576 use `cdboot.img' for cdrom images.
33578 2008-02-03 Robert Millan <rmh@aybabtu.com>
33580 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
33581 only setup gfxterm when `font' command has succeeded.
33583 2008-02-03 Robert Millan <rmh@aybabtu.com>
33585 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
33586 (grub_rescue_cmd_multiboot_loader)
33587 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
33589 2008-02-03 Pavel Roskin <proski@gnu.org>
33591 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
33592 %edx and %esi from stack only after grub_gate_a20() is called.
33593 grub_gate_a20() clobbers %edx.
33595 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
33597 * configure.ac (AC_INIT): Bumped to 1.96.
33599 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
33600 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
33601 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
33602 video/readers/png.c.
33604 2008-02-03 Bean <bean123ch@gmail.com>
33606 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
33607 (cdboot_img_SOURCES): New variable.
33608 (cdboot_img_ASFLAGS): New variable.
33609 (cdboot_img_LDFLAGS): New variable.
33611 * boot/i386/pc/cdboot.S: New file.
33613 * disk/i386/pc/biosdisk.c (cd_start): New variable.
33614 (cd_count): Likewise.
33615 (grub_biosdisk_get_drive): Add support for cd device.
33616 (grub_biosdisk_call_hook): Likewise.
33617 (grub_biosdisk_iterate): Likewise.
33618 (grub_biosdisk_open): Likewise.
33619 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
33620 (grub_biosdisk_rw): Support reading from cd device.
33621 (GRUB_MOD_INIT): Iterate cd devices.
33623 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
33624 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
33625 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
33627 * kern/i386/pc/init.c (make_install_device): Check for cd device.
33629 2008-02-02 Robert Millan <rmh@aybabtu.com>
33631 * commands/read.c: New file.
33632 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
33633 (read_mod_SOURCES): New variable.
33634 (read_mod_CFLAGS): Likewise.
33635 (read_mod_LDFLAGS): Likewise.
33637 2008-02-02 Robert Millan <rmh@aybabtu.com>
33639 * normal/main.c (grub_normal_execute): Check for `menu->size' when
33640 determining whether menu has to be displayed.
33642 2008-02-02 Marco Gerards <marco@gnu.org>
33644 * bus/pci.c: New file.
33646 * include/grub/pci.h: Likewise.
33648 * include/grub/i386/pc/pci.h: Likewise.
33650 * commands/lspci.c: Likewise.
33652 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
33654 (pci_mod_SOURCES): New variable.
33655 (pci_mod_CFLAGS): Likewise.
33656 (pci_mod_LDFLAGS): Likewise.
33657 (lspci_mod_SOURCES): Likewise.
33658 (lspci_mod_CFLAGS): Likewise.
33659 (lspci_mod_LDFLAGS): Likewise.
33661 2008-02-02 Bean <bean123ch@gmail.com>
33663 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
33664 (grub_ufs_get_file_block): Fix indirect block calculation problem.
33666 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
33667 (grub_xfs_btree_node): New structure.
33668 (grub_xfs_btree_root): New structure.
33669 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
33670 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
33671 (GRUB_XFS_EXTENT_BLOCK): Likewise.
33672 (GRUB_XFS_EXTENT_SIZE): Likewise.
33673 (grub_xfs_read_block): Support btree format type.
33674 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
33675 Use directory block as basic unit.
33677 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
33679 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
33680 __attribute__ ((__regparm__ (1))).
33682 2008-02-01 Robert Millan <rmh@aybabtu.com>
33684 Correct a mistake in previous commit.
33686 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
33688 (normal/command.c_DEPENDENCIES): New variable.
33690 2008-02-01 Robert Millan <rmh@aybabtu.com>
33692 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
33694 (normal/command.c_DEPENDENCIES): New variable.
33695 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
33696 * conf/i386-ieee1275.rmk: Likewise.
33697 * conf/i386-linuxbios.rmk: Likewise.
33698 * conf/i386-pc.rmk: Likewise.
33699 * conf/sparc64-ieee1275.rmk: Likewise.
33700 * conf/powerpc-ieee1275.rmk: Likewise.
33701 (grub_emu_SOURCES): Add `fs/fshelp.c'.
33703 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
33705 2008-02-01 Robert Millan <rmh@aybabtu.com>
33707 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
33708 call at beginning of function.
33710 2008-01-31 Pavel Roskin <proski@gnu.org>
33712 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
33713 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
33714 (grub_mkrescue_SOURCES): Likewise.
33715 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
33717 2008-01-30 Robert Millan <rmh@aybabtu.com>
33719 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
33720 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
33721 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
33722 (grub_probe_SOURCES): ... to here.
33724 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
33725 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
33726 * conf/i386-ieee1275.rmk: Likewise.
33727 * conf/i386-linuxbios.rmk: Likewise.
33728 * conf/powerpc-ieee1275.rmk: Likewise.
33730 2008-01-30 Tristan Gingold <gingold@free.fr>
33732 * kern/rescue.c: Silently accept empty lines.
33734 2008-01-29 Bean <bean123ch@gmail.com>
33736 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
33737 (real_code_2): Code cleanup and change comment style.
33738 (move_memory): Avoid using 32-bit address mode.
33740 2008-01-29 Bean <bean123ch@gmail.com>
33742 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
33743 (png_mod_SOURCES): New variable.
33744 (png_mod_CFLAGS): Likewise.
33745 (png_mod_LDFLAGS): Likewise.
33747 * video/readers/png.c: New file.
33749 2008-01-28 Robert Millan <rmh@aybabtu.com>
33751 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
33752 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
33753 `ifndef GRUB_MOD_GAP' hack.
33754 * util/elf/grub-mkimage.c (add_segments): Likewise.
33756 2008-01-27 Robert Millan <rmh@aybabtu.com>
33758 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
33759 `GRUB_MOD_GAP' for platforms in which it's not defined.
33760 * util/elf/grub-mkimage.c (add_segments): Likewise.
33762 2008-01-27 Robert Millan <rmh@aybabtu.com>
33764 Get grub-emu to build again (including parallel builds).
33766 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
33768 (util/grub-emu.c_DEPENDENCIES): ... this, ...
33769 (normal/execute.c_DEPENDENCIES): ... this, ...
33770 (grub-emu_DEPENDENCIES): ... and this.
33772 * conf/i386-efi.rmk: Likewise.
33773 * conf/i386-linuxbios.rmk: Likewise.
33774 * conf/i386-ieee1275.rmk: Likewise.
33775 * conf/powerpc-ieee1275.rmk: Likewise.
33776 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
33778 2008-01-27 Robert Millan <rmh@aybabtu.com>
33780 * NEWS: Add a few items.
33782 2008-01-27 Robert Millan <rmh@aybabtu.com>
33784 Fix parallel builds with grub-emu. Based on earlier commit for
33785 grub-probe and grub-setup.
33787 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33788 (util/grub-emu.c_DEPENDENCIES): ... this.
33789 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33790 (util/grub-emu.c_DEPENDENCIES): ... this.
33791 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33792 (util/grub-emu.c_DEPENDENCIES): ... this.
33793 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33794 (util/grub-emu.c_DEPENDENCIES): ... this.
33795 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
33796 (util/grub-emu.c_DEPENDENCIES): ... this.
33798 2008-01-27 Pavel Roskin <proski@gnu.org>
33800 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
33801 to create a gap between _end and the modules added to the image
33802 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
33803 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
33804 * util/elf/grub-mkimage.c (add_segments): Likewise.
33806 2008-01-26 Pavel Roskin <proski@gnu.org>
33808 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
33809 just return an error.
33811 2008-01-26 Bean <bean123ch@gmail.com>
33813 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
33814 (grub_reiserfs_get_item): Save offset of the next item.
33815 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
33817 2008-01-25 Robert Millan <rmh@aybabtu.com>
33819 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
33820 make all filesystem sources appear together (possibly fixing omissions
33822 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33823 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33824 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
33825 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33827 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
33829 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
33830 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33831 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
33832 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
33834 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
33835 (probe): Add a sanity check to make sure of our ability to read
33836 requested files when probing for filesystem type.
33838 * genmk.rb: Update copyright year (2007).
33840 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
33841 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
33842 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
33843 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
33844 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
33845 : Remove function prototypes.
33847 2008-01-25 Robert Millan <rmh@aybabtu.com>
33849 Revert my previous commits (based on wrong assumption of how grub_errno
33852 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
33853 * kern/file.c (grub_file_open): Likewise.
33855 2008-01-24 Pavel Roskin <proski@gnu.org>
33857 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
33858 that hang if GRUB tries to setup colors.
33859 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
33860 colors for firmwares that don't support it.
33861 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
33862 Recognize Open Hack'Ware, set flags to work around its
33865 2008-01-24 Robert Millan <rmh@aybabtu.com>
33867 * kern/file.c (grub_file_open): Do not account previous failures of
33868 unrelated functions when grub_errno is checked for.
33869 Reported by Oleg Strikov.
33871 2008-01-24 Bean <bean123ch@gmail.com>
33873 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
33874 (grub_ufs_sblock): New member volume name.
33875 (grub_ufs_find_file): Fix string copy bug.
33876 (grub_ufs_label): Implement this function properly.
33878 * fs/hfs.c (grub_hfs_cnid_type): New enum.
33879 (grub_hfs_iterate_records): Use the correct file number for extents
33880 and catalog file. Fix problem in next index calculation.
33881 (grub_hfs_find_node): Replace recursive function call with loop.
33882 (grub_hfs_iterate_dir): Replace recursive function call with loop.
33884 2008-01-23 Robert Millan <rmh@aybabtu.com>
33886 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
33887 `<grub/symbol.h>' and `<grub/multiboot.h>'.
33888 (grub_multiboot2_real_boot): New function prototype.
33890 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
33891 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
33893 * kern/i386/ieee1275/init.c (grub_os_area_addr)
33894 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
33896 2008-01-23 Robert Millan <rmh@aybabtu.com>
33898 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
33899 #ifdef'ed out grub_printf().
33901 2008-01-23 Robert Millan <rmh@aybabtu.com>
33903 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
33904 grub_dprintf calls, since they make "debug=all" mode unusable.
33905 (grub_console_checkkey): Likewise.
33907 2008-01-23 Robert Millan <rmh@aybabtu.com>
33909 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33910 `term/i386/pc/at_keyboard.c'.
33911 (pkglib_MODULES): Add `serial.mod'.
33912 (serial_mod_SOURCES): New variable.
33913 (serial_mod_CFLAGS): Likewise.
33914 (serial_mod_LDFLAGS): Likewise.
33916 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
33917 `<grub/powerpc/ieee1275/console.h>'.
33918 (grub_keyboard_controller_init): New function prototype.
33919 (grub_console_checkkey): Likewise.
33920 (grub_console_getkey): Likewise.
33922 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
33925 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
33926 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
33928 2008-01-23 Robert Millan <rmh@aybabtu.com>
33930 * kern/i386/pc/init.c (make_install_device): When memdisk image is
33931 present, "(memdisk)/boot/grub" becomes the default prefix.
33933 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
33934 a memdisk tarball with all the modules. Add --overlay=DIR option that
33935 allows users to overlay additional files into the image.
33937 2008-01-23 Robert Millan <rmh@aybabtu.com>
33939 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
33940 and `machine/memory.h'.
33941 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
33942 (_multiboot_mod_SOURCES): New variable.
33943 (_multiboot_mod_CFLAGS): Likewise.
33944 (_multiboot_mod_LDFLAGS): Likewise.
33945 (multiboot_mod_SOURCES): Likewise.
33946 (multiboot_mod_CFLAGS): Likewise.
33947 (multiboot_mod_LDFLAGS): Likewise.
33949 * include/grub/i386/ieee1275/loader.h: New file.
33951 * include/grub/i386/ieee1275/machine.h: Likewise.
33953 * include/grub/i386/ieee1275/memory.h: Likewise.
33955 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
33956 variable declaration.
33957 (grub_os_area_size): Likewise.
33959 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
33960 (grub_lower_mem, grub_upper_mem): New variables.
33961 (grub_stop_floppy): New function (just to make
33962 grub_multiboot2_real_boot() happy).
33964 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
33965 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
33966 (grub_stop): New function.
33967 Include `"../realmode.S"' and `"../loader.S"'.
33969 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
33970 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
33972 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
33973 rely on grub_multiboot2_real_boot() for final boot.
33975 2008-01-22 Robert Millan <rmh@aybabtu.com>
33977 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
33978 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
33979 device that doesn't look like an SD card.
33980 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
33981 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
33982 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
33983 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
33986 2008-01-22 Robert Millan <rmh@aybabtu.com>
33988 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
33989 avoid claiming over our own code.
33991 2008-01-22 Bean <bean123ch@gmail.com>
33993 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
33994 (jpeg_mod_SOURCES): New variable.
33995 (jpeg_mod_CFLAGS): Likewise.
33996 (jpeg_mod_LDFLAGS): Likewise.
33998 * video/readers/jpeg.c : New file.
34000 2008-01-22 Bean <bean123ch@gmail.com>
34002 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
34003 there are no more items.
34005 2008-01-21 Robert Millan <rmh@aybabtu.com>
34007 * kern/mm.c (grub_mm_init_region): Improve debug message.
34009 2008-01-21 Robert Millan <rmh@aybabtu.com>
34011 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
34012 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
34014 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
34016 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
34017 Indicates start of upper memory.
34018 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
34019 (generate_image): Abort when image size is big enough to corrupt
34022 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
34023 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
34024 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
34025 instead of hardcoding 0xA0000.
34026 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
34027 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
34028 instead of hardcoding 0xA0000.
34030 2008-01-21 Robert Millan <rmh@aybabtu.com>
34032 * disk/memdisk.c (memdisk_size): New variable.
34033 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
34035 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
34036 image to dynamic memory.
34037 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
34038 `memdisk_size'. Free memdisk block.
34040 2008-01-21 Robert Millan <rmh@aybabtu.com>
34042 Fix detection of very small filesystems (like tar).
34044 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
34045 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
34046 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
34047 a problem with this disk).
34049 2008-01-21 Robert Millan <rmh@aybabtu.com>
34051 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
34052 on grub_biosdisk_rw_standard() error.
34054 2008-01-21 Robert Millan <rmh@aybabtu.com>
34056 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
34058 * kern/elf.c: Likewise.
34059 * kern/ieee1275/ieee1275.c: Likewise.
34060 * kern/powerpc/ieee1275/openfw.c: Likewise.
34061 * term/ieee1275/ofconsole.c: Likewise.
34063 2008-01-21 Robert Millan <rmh@aybabtu.com>
34065 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
34067 * include/grub/kernel.h (grub_arch_memdisk_addr)
34068 (grub_arch_memdisk_size): Moved from here ...
34070 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
34071 (grub_arch_memdisk_size): ... to here.
34073 2008-01-21 Robert Millan <rmh@aybabtu.com>
34075 Mostly based on bugfix from Bean.
34077 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
34078 attribute with hook() parameter.
34079 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
34081 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
34082 attribute with hook() parameter.
34083 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
34086 2008-01-21 Robert Millan <rmh@aybabtu.com>
34088 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
34089 (pkglib_MODULES): Add `memdisk.mod'.
34090 (memdisk_mod_SOURCES): New variable.
34091 (memdisk_mod_CFLAGS): Likewise.
34092 (memdisk_mod_LDFLAGS): Likewise.
34094 * disk/memdisk.c: New file.
34096 * include/grub/disk.h (grub_disk_dev_id): Add
34097 `GRUB_DISK_DEVICE_MEMDISK_ID'.
34099 * include/grub/i386/pc/kernel.h
34100 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
34101 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
34102 (grub_kernel_image_size): New variable declaration.
34103 (grub_total_module_size): Likewise.
34104 (grub_memdisk_image_size): Likewise.
34106 * include/grub/i386/pc/memory.h
34107 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
34109 * include/grub/kernel.h: Include `<grub/symbol.h>'.
34110 (grub_arch_memdisk_addr): New variable declaration.
34111 (grub_arch_memdisk_size): Likewise.
34113 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
34114 (grub_arch_memdisk_size): Likewise.
34116 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
34117 (codestart): Replace hardcoded `0x100000' with
34118 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
34120 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
34121 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
34122 not NULL, append the contents of the file it refers to, at the end of
34123 the compressed kernel image. Initialize `grub_memdisk_image_size'
34124 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
34125 (options): Add "memdisk"|'m' option.
34126 (main): Parse --memdisk|-m option, and pass user-provided path as
34127 parameter to generate_image().
34129 2008-01-20 Robert Millan <rmh@aybabtu.com>
34131 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
34132 grub_dprintf() calls from here ...
34133 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
34135 2008-01-20 Robert Millan <rmh@aybabtu.com>
34137 Fix detection of "real mode" when /options/real-mode? doesn't exist.
34139 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
34141 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
34142 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
34143 `GRUB_IEEE1275_FLAG_REAL_MODE'.
34144 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
34146 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
34147 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
34149 2008-01-19 Robert Millan <rmh@aybabtu.com>
34151 Get rid of confusing function (superseded by
34152 `grub_ieee1275_get_integer_property')
34153 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
34155 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
34157 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
34158 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
34159 in native endianness from grub_ieee1275_get_integer_property().
34161 2008-01-19 Robert Millan <rmh@aybabtu.com>
34163 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
34164 command after "shut-down", since implementations differ on which
34165 the command for halt is.
34167 2008-01-19 Robert Millan <rmh@aybabtu.com>
34169 * include/grub/i386/linuxbios/console.h: Add header protection.
34170 (grub_keyboard_controller_init): New function prototype.
34171 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
34172 (KEYBOARD_COMMAND_READ): Likewise.
34173 (KEYBOARD_COMMAND_WRITE): Likewise.
34174 (KEYBOARD_SCANCODE_SET1): Likewise.
34175 (grub_keyboard_controller_write): New function.
34176 (grub_keyboard_controller_read): Likewise.
34177 (grub_keyboard_controller_init): Likewise.
34179 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
34180 (grub_console_init): On coreboot/LinuxBIOS, call
34181 grub_keyboard_controller_init().
34183 2008-01-19 Robert Millan <rmh@aybabtu.com>
34185 PowerPC changes provided by Pavel Roskin.
34187 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
34188 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
34189 don't rely on cmain() doing it.
34190 * kern/i386/ieee1275/startup.S (_start): Store %eax in
34191 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
34193 2008-01-16 Robert Millan <rmh@aybabtu.com>
34195 * include/grub/i386/linuxbios/memory.h
34196 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
34197 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
34198 receive `table_header' as argument. Instead, probe for it in the
34199 known memory ranges where it can be present.
34200 (grub_available_iterate): Do not pass a fixed `table_header' address
34201 to grub_linuxbios_table_iterate().
34203 2008-01-15 Robert Millan <rmh@aybabtu.com>
34205 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
34206 * conf/i386-ieee1275.rmk: New file.
34207 * include/grub/i386/ieee1275/console.h: Likewise.
34208 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
34209 * include/grub/i386/ieee1275/kernel.h: Likewise.
34210 * include/grub/i386/ieee1275/time.h: Likewise.
34211 * kern/i386/ieee1275/init.c: Likewise.
34212 * kern/i386/ieee1275/startup.S: Likewise.
34214 2008-01-15 Robert Millan <rmh@aybabtu.com>
34216 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
34217 when pointers are 32-bit (but still do set it to one when they are
34220 2008-01-15 Robert Millan <rmh@aybabtu.com>
34222 * include/grub/ieee1275/ieee1275.h
34223 (grub_ieee1275_get_integer_property): New function prototype.
34225 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
34226 (grub_ieee1275_get_integer_property): New function. Wraps around
34227 grub_ieee1275_get_property() to handle endianness.
34229 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
34230 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
34232 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
34233 (grub_map): Likewise.
34234 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
34236 2008-01-15 Bean <bean123ch@gmail.com>
34238 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
34239 (grub_script_execute_cmdline): Reset grub_errno.
34241 * normal/main.c (read_config_file): Reset grub_errno.
34243 * normal/parse.y (script_init): New.
34244 (script): Move function and menuentry here.
34246 (command): Add delimiter at the end of command.
34247 (commands): Adjust to match the new command.
34248 (commandblock): Remove grub_script_lexer_record_start.
34249 (menuentry): Add grub_script_lexer_record_start, use the new commands.
34250 (if): Use the new commands.
34252 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
34254 2008-01-15 Robert Millan <rmh@aybabtu.com>
34256 * normal/menu.c (run_menu): Move timeout message from here ...
34257 (print_timeout): ... to here.
34258 (run_menu): Use print_timeout() once during initial draw to print
34259 the whole message, and again in every clock tick to update only
34260 the number of seconds.
34262 2008-01-15 Robert Millan <rmh@aybabtu.com>
34264 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
34265 actual size of `available' from grub_ieee1275_get_property(), and
34266 restrict parsing to that bound.
34268 2008-01-15 Christian Franke <franke@computer.org>
34270 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
34271 (argp_program_version): Remove variable.
34272 (argp_program_bug_address): Likewise.
34273 (options): Convert from struct argp_option to struct option.
34274 (struct arguments): Remove.
34275 (parse_opt): Remove.
34276 (usage): New function.
34277 (main): Replace struct args members by simple variables.
34278 Replace argp_parse() by getopt_long().
34279 Add switch to evaluate options.
34280 Add missing "(...)" around root_dev in prefix string.
34282 2008-01-14 Robert Millan <rmh@aybabtu.com>
34284 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
34285 for grub_ieee1275_exit(), in order to improve portability.
34287 2008-01-14 Robert Millan <rmh@aybabtu.com>
34289 * util/grub.d/10_linux.in (prefix): Define.
34290 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
34292 2008-01-13 Pavel Roskin <proski@gnu.org>
34294 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
34295 grub_errno if no errors have been detected.
34297 2008-01-12 Robert Millan <rmh@aybabtu.com>
34299 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
34300 (grub_util_get_dev_abstraction): New function prototype.
34302 * util/getroot.c: Include `<grub/util/getroot.h>'
34303 (grub_util_get_grub_dev): Move detection of abstraction type to ...
34304 (grub_util_get_dev_abstraction): ... here (new function).
34306 * util/grub-probe.c: Convert PRINT_* to an enum. Add
34307 `PRINT_ABSTRACTION'.
34308 (probe): Probe for abstraction type when requested.
34309 (main): Understand `--target=abstraction'.
34311 * util/i386/efi/grub-install.in: Add abstraction module to core
34312 image when it is found to be necessary.
34313 * util/i386/pc/grub-install.in: Likewise.
34314 * util/powerpc/ieee1275/grub-install.in: Likewise.
34316 * util/update-grub_lib.in (font_path): Return system path without
34317 converting to GRUB path.
34318 * util/update-grub.in: Convert system path returned by font_path()
34319 to a GRUB path. Use `grub-probe -t abstraction' to determine what
34320 abstraction module is needed for loading fonts (if any). Export
34321 that as `GRUB_PRELOAD_MODULES'.
34322 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
34325 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
34327 Remove some unused code from reiserfs.
34329 * fs/reiserfs.c (struct grub_reiserfs_key)
34330 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
34331 (struct grub_reiserfs_node_body): Removed.
34332 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
34334 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34336 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34338 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
34340 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
34342 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
34344 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34345 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34346 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
34348 2008-01-10 Robert Millan <rmh@aybabtu.com>
34350 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
34351 Determines if a file is garbage left by packaging systems, etc.
34352 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
34353 for processing /etc/grub.d scripts.
34354 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
34355 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
34356 as a condition for processing Linux images.
34358 2008-01-10 Pavel Roskin <proski@gnu.org>
34360 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
34361 to compile reiserfs.c on PowerPC.
34363 2008-01-10 Robert Millan <rmh@aybabtu.com>
34365 * kern/device.c (grub_device_iterate): Do not abort device iteration
34366 when one of the devices cannot be opened.
34367 * kern/disk.c (grub_disk_open): Do not account previous failures of
34368 unrelated functions when grub_errno is checked for.
34370 2008-01-08 Robert Millan <rmh@aybabtu.com>
34372 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
34373 `! grub_linux_is_bzimage', change order of address comparison to make
34374 it more intuitive, and improve "too big zImage" error message.
34376 2008-01-08 Robert Millan <rmh@aybabtu.com>
34378 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
34379 `$(update-grub_DATA)'.
34380 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
34383 2008-01-07 Robert Millan <rmh@aybabtu.com>
34385 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
34386 which instruction is modified by grub-setup during installation
34387 (since it wasn't obvious by only looking at this file).
34389 2008-01-07 Robert Millan <rmh@aybabtu.com>
34391 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
34392 listing actual TODO items.
34394 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34396 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
34398 (grub_reiserfs_get_key_offset): Likewise.
34399 (grub_reiserfs_set_key_offset): Likewise.
34400 (grub_reiserfs_set_key_type): Likewise.
34401 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
34403 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
34404 better to remove the bitfield version completely.
34406 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34408 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
34409 allocated from the heap, due to the fshelp implementation.
34410 (grub_reiserfs_dir): Free NODE, due to the same reason.
34412 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34414 Mostly from Vincent Pelletier:
34416 * fs/reiserfs.c: New file.
34418 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
34419 (reiserfs_mod_SOURCES): New variable.
34420 (reiserfs_mod_CFLAGS): Likewise.
34421 (reiserfs_mod_LDFLAGS): Likewise.
34423 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
34424 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
34425 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
34428 2008-01-06 Robert Millan <rmh@aybabtu.com>
34430 * normal/color.c: Remove `<grub/env.h>'.
34432 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
34434 * include/grub/normal.h: Include <grub/env.h>.
34436 2008-01-05 Robert Millan <rmh@aybabtu.com>
34438 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
34439 usage example with `(hd0,1)'.
34440 Reported by Samuel Thibault.
34442 2008-01-05 Robert Millan <rmh@aybabtu.com>
34444 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
34445 (grub_linux_boot_zimage): Rename to ...
34446 (grub_linux_boot): ... this.
34447 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
34448 (grub_linux_boot_zimage): Conditionalize zImage copy.
34450 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
34451 (grub_linux_boot_bzimage): Remove prototype.
34452 (grub_linux_boot_zimage): Rename to ...
34453 (grub_linux_boot): ... this.
34455 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
34456 (grub_linux_boot): Remove function.
34458 2008-01-05 Robert Millan <rmh@aybabtu.com>
34460 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
34461 (grub_env_write_color_highlight): Likewise.
34462 (grub_wait_after_message): Likewise.
34464 * normal/color.c: New file.
34466 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34467 (normal_mod_DEPENDENCIES): Likewise.
34469 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34470 (normal_mod_DEPENDENCIES): Likewise.
34472 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34473 (normal_mod_DEPENDENCIES): Likewise.
34475 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
34476 (normal_mod_DEPENDENCIES): Likewise.
34478 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
34479 for waiting after a message is printed.
34480 * normal/main.c (read_config_file): Likewise.
34481 (grub_normal_init): Register grub_env_write_color_normal() and
34482 grub_env_write_color_highlight() hooks. Mark `color_normal' and
34483 `color_highlight' variables as global.
34485 * normal/menu.c (grub_wait_after_message): New function.
34486 (grub_color_menu_normal): New variable. Replaces ...
34487 (GRUB_COLOR_MENU_NORMAL): ... this macro.
34488 (grub_color_menu_highlight): New variable. Replaces ...
34489 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
34490 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
34491 `GRUB_TERM_COLOR_STANDARD'.
34492 (print_message): Use `grub_setcolorstate' to reload colors. Rename
34493 `normal_code' and `highlight_code' to `old_color_normal' and
34494 `old_color_highlight', respectively.
34495 (grub_menu_init_page): Update colors when drawing the menu, based on
34496 `menu_color_normal' and `menu_color_highlight' variables.
34497 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
34498 a message is printed.
34500 2008-01-05 Robert Millan <rmh@aybabtu.com>
34502 * kern/env.c (grub_env_context_open): Propagate hooks for global
34503 variables to new context.
34505 * kern/main.c (grub_set_root_dev): Export `root' variable.
34507 2008-01-05 Robert Millan <rmh@aybabtu.com>
34509 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
34510 discs unconditionally, since udev and others have options to provide
34513 2008-01-05 Robert Millan <rmh@aybabtu.com>
34515 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
34517 2008-01-04 Christian Franke <franke@computer.org>
34519 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
34522 2008-01-03 Pavel Roskin <proski@gnu.org>
34524 * kern/i386/linuxbios/init.c: Put "void" to all function
34525 declarations with no arguments.
34526 * kern/powerpc/ieee1275/init.c: Likewise.
34527 * term/i386/pc/at_keyboard.c: Likewise.
34528 * term/i386/pc/vga_text.c: Likewise.
34529 * util/grub-mkdevicemap.c: Likewise.
34531 2008-01-02 Robert Millan <rmh@aybabtu.com>
34533 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
34534 message when loaded image is out of bounds.
34535 (grub_multiboot_load_elf64): Likewise.
34537 2008-01-02 Pavel Roskin <proski@gnu.org>
34539 * util/grub.d/10_linux.in: Try version without ".old" when
34540 looking for initrd. It's better to use initrd from the newer
34541 kernel of the same version than no initrd at all.
34543 2008-01-01 Robert Millan <rmh@aybabtu.com>
34545 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
34547 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
34549 * include/grub/video.h: Added grub_video_unmap_color and
34550 grub_video_get_active_render_target.
34551 (grub_video_adapter): Added unmap_color and get_active_render_target.
34553 * video/video.c: Added grub_video_unmap_color and
34554 grub_video_get_active_render_target.
34555 (grub_video_get_info): Changed method to accept NULL pointer as an
34556 argument to allow detection of active video adapter.
34558 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
34559 grub_video_vbe_unmap_color_int.
34560 Added grub_video_vbe_unmap_color and
34561 grub_video_vbe_get_active_render_target.
34562 (grub_video_vbe_adapter): Added unmap_color and
34563 get_active_render_target.
34565 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
34566 with grub_video_vbe_unmap_color_int.
34568 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
34569 (DEFAULT_NORMAL_COLOR): Likewise.
34570 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
34571 (DEFAULT_FG_COLOR): Removed.
34572 (DEFAULT_BG_COLOR): Likewise.
34573 (DEFAULT_CURSOR_COLOR): Changed value.
34574 (grub_virtual_screen): Added standard_color_setting,
34575 normal_color_setting, highlight_color_setting and term_color.
34576 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
34577 (bitmap_width): Added.
34578 (bitmap_height): Likewise.
34579 (bitmap): Likewise.
34580 (set_term_color): Likewise.
34581 (grub_virtual_screen_setup): Changed to use new terminal coloring
34583 (grub_gfxterm_init): Added init for bitmap.
34584 (grub_gfxterm_fini): Added destroy for bitmap.
34585 (redraw_screen_rect): Updated to use background bitmap and new
34587 (scroll_up): Added optimization for case when there is no bitmap.
34588 (grub_gfxterm_cls): Fixed to use correct background color.
34589 (grub_virtual_screen_setcolorstate): Changed to use new terminal
34591 (grub_virtual_screen_setcolor): Likewise.
34592 (grub_virtual_screen_getcolor): Added.
34593 (grub_gfxterm_background_image_cmd): Likewise.
34594 (grub_video_term): Added setcolor and getcolor.
34595 (MOD_INIT): Added registration of background_image command.
34596 (MOD_TERM): Added unregistration for background_image command.
34598 2007-12-30 Pavel Roskin <proski@gnu.org>
34600 * loader/multiboot_loader.c: Fix multiboot command
34601 unregistration. Fix all typos in the word "multiboot".
34603 2007-12-29 Pavel Roskin <proski@gnu.org>
34605 * util/grub.d/10_linux.in: Refactor search for initrd. Add
34606 support for initrd names used in Fedora.
34608 2007-12-26 Bean <bean123ch@gmail.com>
34610 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
34611 (cpio_mod_SOURCES): New variable.
34612 (cpio_mod_CFLAGS): Likewise.
34613 (cpio_mod_LDFLAGS): Likewise.
34615 * fs/cpio.c: New file.
34617 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
34619 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34621 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
34623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34625 2007-12-25 Robert Millan <rmh@aybabtu.com>
34627 * include/grub/term.h (struct grub_term): Add `getcolor' function.
34628 (grub_getcolor): New function.
34630 * kern/term.c (grub_getcolor): New function.
34631 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
34632 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
34633 (print_entry): Set normal and highlight colors to
34634 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
34635 respectively, before printing and restore them to old
34637 (grub_menu_init_page): Likewise. Fill an additional colored space
34638 that would otherwise be left blank.
34640 * term/efi/console.c (grub_console_getcolor): New function.
34641 (struct grub_console_term.getcolor): New variable.
34642 * term/i386/pc/console.c (grub_console_getcolor): New function.
34643 (struct grub_console_term.getcolor): New variable.
34644 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
34645 (struct grub_console_term.getcolor): New variable.
34647 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
34648 (struct grub_console_term.setcolor): Remove variable.
34649 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
34650 (struct grub_console_term.setcolor): Remove variable.
34651 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
34652 (struct grub_console_term.setcolor): Remove variable.
34653 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
34654 (struct grub_console_term.setcolor): Remove variable.
34656 2007-12-25 Robert Millan <rmh@aybabtu.com>
34658 * configure.ac: Search for possible unifont.hex locations, and
34659 define UNIFONT_HEX if found.
34661 * Makefile.in (UNIFONT_HEX): Define variable.
34662 (DATA): Rename to ...
34663 (PKGLIB): ... this. Update all users.
34664 (PKGDATA): New variable.
34665 (pkgdata_IMAGES): Rename to ...
34666 (pkglib_IMAGES): ... this. Update all users.
34667 (pkgdata_MODULES): Rename to ...
34668 (pkglib_MODULES): ... this. Update all users.
34669 (pkgdata_PROGRAMS): Rename to ...
34670 (pkglib_PROGRAMS): ... this. Update all users.
34671 (pkgdata_DATA): Rename to ...
34672 (pkglib_DATA): ... this. Update all users.
34673 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
34674 (unicode.pff, ascii.pff): New rules.
34675 (all-local): Add `$(PKGDATA)' dependency.
34676 (install-local): Process `$(PKGDATA)'.
34678 * util/update-grub_lib.in (font_path): Search for *.pff files in
34679 a few more locations, including `${pkgdata}'.
34681 2007-12-23 Robert Millan <rmh@aybabtu.com>
34683 Patch from Bean <bean123ch@gmail.com>:
34684 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
34687 2007-12-21 Bean <bean123ch@gmail.com>
34689 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
34690 (ntfscomp_mod_SOURCES): New variable.
34691 (ntfscomp_mod_CFLAGS): Likewise.
34692 (ntfscomp_mod_LDFLAGS): Likewise.
34694 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
34695 (grub_probe_SOURCES): Likewise.
34696 (grub_emu_SOURCES): Likewise.
34698 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34699 (grub_emu_SOURCES): Likewise.
34701 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34702 (grub_emu_SOURCES): Likewise.
34704 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
34705 (grub_emu_SOURCES): Likewise.
34707 * fs/ntfs.c (grub_ntfscomp_func): New variable.
34708 (read_run_list): Renamed to grub_ntfs_read_run_list.
34709 (decomp_nextvcn): Moved to ntfscomp.c.
34710 (decomp_getch): Likewise.
34711 (decomp_get16): Likewise.
34712 (decomp_block): Likewise.
34713 (read_block): Likewise.
34714 (read_data): Partially moved to ntfscomp.c.
34715 (fixup): Change unsigned to grub_uint16_t.
34716 (read_mft): Change unsigned long to grub_uint32_t.
34717 (read_attr): Likewise.
34718 (read_data): Likewise.
34719 (read_run_data): Likewise.
34720 (read_run_list): Likewise.
34721 (read_mft): Likewise.
34723 * fs/ntfscomp.c: New file.
34725 * include/grub/ntfs.h: New file.
34727 2007-12-16 Robert Millan <rmh@aybabtu.com>
34729 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
34730 IDE disk check, since Linux is known to support 20 IDE disks.
34731 Reported by Colin Watson.
34733 2007-12-15 Bean <bean123ch@gmail.com>
34735 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
34736 (lnxboot_img_SOURCES): New variable.
34737 (lnxboot_img_ASFLAGS): Likewise.
34738 (lnxboot_img_LDFLAGS): Likewise.
34740 * boot/i386/pc/lnxboot.S: New file.
34742 2007-11-24 Pavel Roskin <proski@gnu.org>
34744 * configure.ac: Test if '--build-id=none' is supported by the
34745 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
34746 objcopy to generate incorrect binary files (binutils
34747 2.17.50.0.18-1 as shipped by Fedora 8).
34748 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
34749 linking, so that build ID doesn't break the test.
34751 2007-11-24 Pavel Roskin <proski@gnu.org>
34753 * include/grub/i386/time.h: use "void" in the argument list
34754 of grub_cpu_idle().
34755 * include/grub/powerpc/time.h: Likewise.
34756 * include/grub/sparc64/time.h: Likewise.
34758 2007-11-18 Christian Franke <franke@computer.org>
34760 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
34761 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
34762 This fixes the problem that function keys did not work in grub-emu.
34764 2007-11-18 Christian Franke <franke@computer.org>
34766 * disk/host.c (grub_host_open): Remove attribute unused from
34767 name parameter. Add check for "host". This fixes the problem
34768 that grub-emu does not find partitions.
34770 2007-11-18 Christian Franke <franke@computer.org>
34772 * util/hostfs.c (is_dir): New function.
34773 (grub_hostfs_dir): Handle missing dirent.d_type case.
34774 (grub_hostfs_read): Add missing fseek().
34775 (grub_hostfs_label): Clear label pointer. This fixes a crash
34776 of grub-emu on "ls (host)".
34778 2007-11-18 Christian Franke <franke@computer.org>
34780 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
34781 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
34782 to 64 bit boundary by default.
34784 2007-11-18 Bean <bean123ch@gmail.com>
34786 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
34787 (hexdump_mod_SOURCES): New variable.
34788 (hexdump_mod_CFLAGS): Likewise.
34789 (hexdump_mod_LDFLAGS): Likewise.
34791 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34793 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34795 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34797 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
34799 * include/grub/hexdump.h: New file.
34801 * commands/hexdump.c: New file.
34803 2007-11-10 Robert Millan <rmh@aybabtu.com>
34805 * commands/i386/pc/play.c (beep_off): Switch order of arguments
34806 in grub_outb() calls.
34807 (beep_on): Likewise.
34809 2007-11-10 Christian Franke <franke@computer.org>
34811 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
34812 (grub_menu_run): Likewise.
34814 2007-11-10 Robert Millan <rmh@aybabtu.com>
34816 * include/grub/i386/efi/machine.h: New file.
34817 * include/grub/i386/linuxbios/machine.h: Likewise.
34818 * include/grub/i386/pc/machine.h: Likewise.
34819 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34820 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34822 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
34823 (serial_hw_io_addr): New variable.
34824 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
34825 instead of `(unsigned short *) 0x400'.
34827 2007-11-10 Bean <bean123ch@gmail.com>
34829 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
34831 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34833 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
34834 (vga_mod_SOURCES): Added.
34835 (vga_mod_CFLAGS): Likewise.
34836 (vga_mod_LDFLAGS): Likewise.
34838 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
34840 (set_map_mask): Likewise.
34841 (set_read_map): Likewise.
34842 (set_read_address): Likewise.
34843 (vga_font): Removed variable.
34844 (get_vga_glyph): Removed function.
34845 (invalidate_char): Likewise.
34846 (write_char): Changed to use grub_font_get_glyph() for font
34848 (grub_vga_putchar): Likewise.
34849 (grub_vga_getcharwidth): Likewise.
34851 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
34853 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
34855 (pxeboot_img_LDFLAGS): Likewise.
34856 (diskboot_img_LDFLAGS): Likewise.
34857 (kernel_img_LDFLAGS): Likewise.
34859 2007-11-06 Robert Millan <rmh@aybabtu.com>
34861 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
34862 in grub_outb() calls.
34863 (serial_hw_init): Likewise.
34865 2007-11-05 Robert Millan <rmh@aybabtu.com>
34867 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
34868 spaces. Skip non-regular files.
34870 2007-11-05 Robert Millan <rmh@aybabtu.com>
34872 * kern/disk.c (grub_disk_firmware_fini)
34873 (grub_disk_firmware_is_tainted): New variables.
34875 * include/grub/disk.h (grub_disk_firmware_fini)
34876 (grub_disk_firmware_is_tainted): Likewise.
34878 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
34879 (grub_disk_biosdisk_fini): ... to here.
34880 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
34881 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
34882 is set. Register grub_disk_biosdisk_fini() in
34883 `grub_disk_firmware_fini'.
34885 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
34886 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
34887 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
34888 to finish existing firmware disk interface.
34890 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
34891 (ata_mod_SOURCES): New variable.
34892 (ata_mod_CFLAGS): Likewise.
34893 (ata_mod_LDFLAGS): Likewise.
34895 2007-11-05 Robert Millan <rmh@aybabtu.com>
34897 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
34898 (grub_ata_wait): Reimplement using grub_millisleep().
34900 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
34901 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
34903 2007-11-03 Marco Gerards <marco@gnu.org>
34905 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
34906 (CRTC_ADDR_PORT): New macro.
34907 (CRTC_DATA_PORT): Likewise.
34908 (CRTC_CURSOR): Likewise.
34909 (CRTC_CURSOR_ADDR_HIGH): Likewise.
34910 (CRTC_CURSOR_ADDR_LOW): Likewise.
34911 (update_cursor): New function.
34912 (grub_console_real_putchar): Call `update_cursor'.
34913 (grub_console_gotoxy): Likewise.
34914 (grub_console_cls): Set the default color when clearing the
34916 (grub_console_setcursor): Implemented.
34918 2007-11-03 Marco Gerards <marco@gnu.org>
34920 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
34922 (grub_ata_pio_write): Likewise.
34924 (grub_atapi_identify): Wait after issuing an ATA command.
34925 (grub_atapi_packet): Likewise.
34926 (grub_ata_identify): Likewise.
34927 (grub_ata_readwrite): Likewise.
34929 2007-11-03 Marco Gerards <marco@gnu.org>
34931 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
34932 (grub_ata_pio_write): Likewise.
34933 (grub_ata_readwrite): Use `grub_error', instead of
34934 returning `grub_errno'.
34936 2007-11-03 Marco Gerards <marco@gnu.org>
34938 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
34939 grub_ata_pio_write once for every single sector, instead of for
34942 2007-10-31 Robert Millan <rmh@aybabtu.com>
34944 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
34946 * conf/i386-linuxbios.rmk: New file.
34948 * kern/i386/pc/hardware.c: Likewise.
34949 * term/i386/pc/at_keyboard.c: Likewise.
34950 * term/i386/pc/vga_text.c: Likewise.
34952 * include/grub/i386/linuxbios/boot.h: Likewise.
34953 * include/grub/i386/linuxbios/console.h: Likewise.
34954 * include/grub/i386/linuxbios/init.h: Likewise.
34955 * include/grub/i386/linuxbios/kernel.h: Likewise.
34956 * include/grub/i386/linuxbios/loader.h: Likewise.
34957 * include/grub/i386/linuxbios/memory.h: Likewise.
34958 * include/grub/i386/linuxbios/serial.h: Likewise.
34959 * include/grub/i386/linuxbios/time.h: Likewise.
34961 * kern/i386/linuxbios/init.c: Likewise.
34962 * kern/i386/linuxbios/startup.S: Likewise.
34963 * kern/i386/linuxbios/table.c: Likewise.
34965 2007-10-31 Marco Gerards <marco@gnu.org>
34967 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
34968 (ata_mod_SOURCES): New variable.
34969 (ata_mod_CFLAGS): Likewise.
34970 (ata_mod_LDFLAGS): Likewise.
34972 * disk/ata.c: New file.
34974 * include/grub/disk.h (grub_disk_dev_id): Add
34975 `GRUB_DISK_DEV_ATA_ID'.
34977 2007-10-31 Robert Millan <rmh@aybabtu.com>
34979 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
34980 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
34982 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
34983 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
34985 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
34988 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
34990 2007-10-27 Robert Millan <rmh@aybabtu.com>
34992 * include/grub/types.h (ULONG_MAX): Define macro.
34994 2007-10-22 Robert Millan <rmh@aybabtu.com>
34996 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
34998 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
35000 2007-10-22 Robert Millan <rmh@aybabtu.com>
35002 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
35003 (pkgdata_MODULES): Add `biosdisk.mod'.
35004 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
35007 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
35008 (grub_biosdisk_init): Replace with ...
35009 (GRUB_MOD_INIT(biosdisk)): ... this.
35010 (grub_biosdisk_fini): Replace with ...
35011 (GRUB_MOD_FINI(biosdisk)): ... this.
35013 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
35014 (grub_machine_init): Remove call to grub_biosdisk_init().
35015 (grub_machine_fini): Remove call to grub_machine_fini().
35017 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
35019 2007-10-22 Robert Millan <rmh@aybabtu.com>
35021 * include/grub/time.h: New file.
35022 * include/grub/i386/time.h: Likewise.
35023 * include/grub/powerpc/time.h: Likewise.
35024 * include/grub/sparc64/time.h: Likewise.
35026 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
35028 (KERNEL_MACHINE_TIME_HEADER): ... this.
35029 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
35031 (KERNEL_MACHINE_TIME_HEADER): ... this.
35032 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
35034 (KERNEL_MACHINE_TIME_HEADER): ... this.
35036 * kern/i386/efi/init.c: Include `<grub/time.h>'.
35037 (grub_millisleep): New function.
35038 * kern/i386/pc/init.c: Include `<grub/time.h>'.
35039 (grub_millisleep): New function.
35040 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
35041 Remove `grub/machine/time.h' include.
35042 (grub_millisleep): New function.
35043 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
35044 Remove `grub/machine/time.h' include.
35045 (grub_millisleep): New function.
35047 * include/grub/misc.h (grub_div_roundup): New function.
35049 * kern/misc.c: Include `<grub/time.h>'.
35050 (grub_millisleep_generic): New function.
35052 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
35054 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
35056 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
35057 `machine/time.h'. Add `time.h'.
35058 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
35060 2007-10-21 Robert Millan <rmh@aybabtu.com>
35062 * include/grub/misc.h (grub_max): New function.
35064 2007-10-21 Robert Millan <rmh@aybabtu.com>
35066 * util/misc.c (grub_util_info): Call fflush() before returning.
35068 2007-10-20 Robert Millan <rmh@aybabtu.com>
35070 * genmk.rb (Image): Copy `extra_flags' from here ...
35071 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
35073 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
35074 to `argc' and `args' arguments.
35076 2007-10-17 Robert Millan <rmh@aybabtu.com>
35078 * kern/i386/loader.S: New file.
35080 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
35081 * kern/i386/loader.S (grub_linux_prot_size)... to here.
35082 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
35083 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
35084 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
35085 * kern/i386/loader.S (grub_linux_real_addr)... to here.
35086 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
35087 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
35088 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
35089 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
35090 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
35091 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
35092 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
35093 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
35095 * kern/i386/realmode.S: New file.
35097 * kern/i386/pc/startup.S (protstack): Moved from here ...
35098 * kern/i386/realmode.S (protstack)... to here.
35099 * kern/i386/pc/startup.S (gdt): Moved from here ...
35100 * kern/i386/realmode.S (gdt)... to here.
35101 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
35102 * kern/i386/realmode.S (prot_to_real)... to here.
35104 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
35105 `kern/i386/realmode.S'.
35107 2007-10-17 Robert Millan <rmh@aybabtu.com>
35109 * include/grub/i386/loader.h: New file.
35111 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
35112 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
35113 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
35114 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
35115 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
35116 * include/grub/i386/loader.h (grub_linux_prot_size)
35117 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
35118 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
35119 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
35120 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
35122 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
35124 2007-10-15 Robert Millan <rmh@aybabtu.com>
35126 * normal/misc.c (grub_normal_print_device_info): Do not probe for
35127 filesystem when dev->disk is unset.
35128 Do probe for filesystem even when dev->disk->has_partitions is set.
35129 In case a filesystem is found, always report it.
35130 In case it isn't, if dev->disk->has_partitions is set, report that
35131 a partition table was found instead of reporting that no filesystem
35132 could be identified.
35134 2007-10-12 Robert Millan <rmh@aybabtu.com>
35136 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
35137 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
35139 * include/grub/types.h (grub_host_to_target16): New macro.
35140 (grub_host_to_target32): Likewise.
35141 (grub_host_to_target64): Likewise.
35142 (grub_target_to_host16): Likewise.
35143 (grub_target_to_host32): Likewise.
35144 (grub_target_to_host64): Likewise.
35146 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
35147 Renamed from to ...
35148 (GRUB_MOD_ALIGN): ...this. Update all users.
35150 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
35151 grub_host_to_target32.
35152 Replace grub_be_to_cpu32 with grub_target_to_host32.
35153 (load_modules): Likewise.
35154 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
35155 Replace grub_be_to_cpu32 with grub_target_to_host32.
35156 Replace grub_cpu_to_be16 with grub_host_to_target16.
35157 Replace grub_cpu_to_be32 grub_host_to_target32.
35159 2007-10-12 Robert Millan <rmh@aybabtu.com>
35161 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
35162 * util/elf/grub-mkimage.c: ... here.
35164 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
35165 `util/powerpc/ieee1275/grub-mkimage.c'.
35167 2007-10-07 Robert Millan <rmh@aybabtu.com>
35169 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
35170 and make it easier to figure out.
35171 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
35172 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
35173 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
35174 leave us with less than HEAP_MIN_SIZE total heap.
35175 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
35177 2007-10-03 Robert Millan <rmh@aybabtu.com>
35179 * include/grub/i386/io.h: New file.
35180 * commands/i386/pc/play.c (inb): Removed.
35182 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35184 * term/i386/pc/serial.c (inb): Removed.
35186 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35188 * term/i386/pc/vga.c (inb): Removed.
35190 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
35193 2007-10-02 Robert Millan <rmh@aybabtu.com>
35195 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
35196 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35197 Reported by Marcin Kurek.
35199 2007-09-07 Robert Millan <rmh@aybabtu.com>
35201 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
35202 SmartFirmware version updates (as released by Sven Luther), and avoid
35203 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
35204 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
35207 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35209 From Hitoshi Ozeki:
35210 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
35211 when merging two regions.
35213 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35215 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
35216 * normal/completion.c (grub_normal_do_completion): Likewise.
35217 Reported by Hitoshi Ozeki.
35219 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
35221 Do not use devices at boot in chainloading.
35223 * loader/i386/pc/chainloader.c (boot_drive): New variable.
35224 (boot_part_addr): Likewise.
35225 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
35226 with BOOT_DRIVE and BOOT_PART_ADDR.
35227 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
35228 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
35230 2007-08-29 Robert Millan <rmh@aybabtu.com>
35232 Patch from Simon Peter <dn.tlp@gmx.net>:
35233 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
35234 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
35235 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
35236 util/i386/pc/grub-setup.c_DEPENDENCIES.
35237 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
35238 util/grub-probe.c_DEPENDENCIES.
35239 * conf/powerpc-ieee1275.rmk: Likewise.
35241 2007-08-28 Robert Millan <rmh@aybabtu.com>
35243 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
35244 to tell grub-mkdevicemap how to name devices.
35245 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
35248 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
35249 util/i386/get_disk_name.c.
35250 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
35251 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
35252 util/ieee1275/get_disk_name.c.
35254 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
35256 * DISTLIST: Add util/i386/get_disk_name.c and
35257 util/ieee1275/get_disk_name.c.
35259 * util/grub-mkdevicemap.c: Replace device naming logic with
35260 grub_util_get_disk_name() calls.
35262 2007-08-20 Robert Millan <rmh@aybabtu.com>
35264 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
35265 (so that it works for both plural and singular quantities).
35267 2007-08-05 Robert Millan <rmh@aybabtu.com>
35269 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
35270 so that [xz] isn't taken into account when determining order.
35272 2007-08-02 Marco Gerards <marco@gnu.org>
35274 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
35275 `include/multiboot2.h', `include/grub/elfload.h',
35276 `include/multiboot.h', `include/grub/multiboot.h',
35277 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
35278 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
35279 `kern/elf.c', `loader/multiboot_loader.c',
35280 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
35281 `loader/i386/pc/multiboot2.c',
35282 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
35283 `util/i386/pc/grub-mkrescue.in'. Remove
35284 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
35285 `include/grub/i386/pc/util/biosdisk.h' and
35286 `include/grub/powerpc/ieee1275/multiboot.h'.
35288 2007-08-02 Bean <bean123ch@gmail.com>
35290 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
35291 (ntfs_mod_SOURCES): New variable.
35292 (ntfs_mod_CFLAGS): Likewise.
35293 (ntfs_mod_LDFLAGS): Likewise.
35295 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
35296 (grub_probe_SOURCES): Likewise.
35297 (grub_emu_SOURCES): Likewise.
35299 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
35300 (grub_emu_SOURCES): Likewise.
35302 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
35303 (grub_emu_SOURCES): Likewise.
35305 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
35307 * fs/ntfs.c: New file.
35309 2007-08-02 Bean <bean123ch@gmail.com>
35311 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
35313 * file.h (grub_file): Likewise.
35315 * fshelp.h (grub_fshelp_read_file): Likewise.
35317 * util/i386/pc/grub-setup.c (setup): Likewise.
35318 (save_first_sector): Likewise.
35319 (save_blocklists): Likewise.
35321 * fs/affs.c (grub_affs_read_file): Likewise.
35323 * fs/ext2.c (grub_ext2_read_file): Likewise.
35325 * fs/fat.c (grub_fat_read_data): Likewise.
35327 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
35329 * fs/hfs.c (grub_hfs_read_file): Likewise.
35331 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
35333 * fs/jfs.c (grub_jfs_read_file): Likewise.
35335 * fs/minix.c (grub_minix_read_file): Likewise.
35337 * fs/sfs.c (grub_sfs_read_file): Likewise.
35339 * fs/ufs.c (grub_ufs_read_file): Likewise.
35341 * fs/xfs.c (grub_xfs_read_file): Likewise.
35343 * command/blocklist.c (read_blocklist): Likewise.
35344 (print_blocklist): Likewise.
35346 2007-08-02 Marco Gerards <marco@gnu.org>
35348 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
35351 * disk/host.c: New file.
35353 * util/hostfs.c: Likewise.
35355 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
35356 return `GRUB_ERR_BAD_FS'.
35357 * fs/sfs.c (grub_sfs_mount): Likewise.
35358 * fs/xfs.c (grub_xfs_mount): Likewise.
35360 * include/grub/disk.h (enum grub_disk_dev_id): Add
35361 `GRUB_DISK_DEVICE_HOST_ID'.
35363 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
35365 2007-07-24 Jerone Young <jerone@gmail.com>
35367 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
35368 modules for compilation.
35369 * conf/powerpc-ieee1275.rmk: Likewise.
35371 * include/multiboot.h: Move multiboot definitions to one file. Rename
35372 many definitions to not get grub specific.
35373 * include/multiboot2.h: Create header with multiboot 2 definitions.
35374 * include/grub/multiboot.h: Header for grub specific function
35375 prototypes and definitions.
35376 * include/grub/multiboot2.h: Likewise.
35377 * include/grub/multiboot_loader.h: Likewise.
35378 * include/grub/i386/pc/multiboot.h: Removed.
35379 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
35381 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
35382 and 2 to allow for one multiboot and module commands.
35383 * loader/multiboot2.c: Add multiboot2 functionality.
35384 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
35385 and definition names.
35386 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
35388 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
35389 ieee1275 specific multiboot2 code.
35391 * kern/i386/pc/startup.S: Change headers and definition names for
35392 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
35394 2007-07-22 Robert Millan <rmh@aybabtu.com>
35396 * geninitheader.sh: Process file specified in first parameter rather
35397 than hardcoding grub_modules_init.lst.
35398 * geninit.sh: Likewise. Also, construct header name dynamically rather
35399 than hardcoding grub_modules_init.h.
35401 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
35402 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
35403 grub_probe_init.[ch] and grub_setup_init.[ch].
35405 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
35406 grub_modules_init.h with grub_emu_init.h.
35407 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
35408 grub_probe_init.[ch] files.
35409 * conf/i386-efi.rmk: Likewise.
35410 * conf/i386-pc.rmk: Likewise.
35411 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
35412 grub_setup_init.[ch] files.
35414 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
35415 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
35416 to initialize modules rather than a list of hardcoded functions.
35417 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
35418 grub_init_all() to initialize modules rather than a list of hardcoded
35421 2007-07-22 Robert Millan <rmh@aybabtu.com>
35423 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
35424 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
35426 2007-07-22 Robert Millan <rmh@aybabtu.com>
35428 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
35429 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
35430 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
35431 flag when running on SmartFirmware.
35432 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
35433 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
35436 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
35437 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
35438 rather than decreasing it.
35440 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
35441 there's not enough space to do it, fail in the same way as when it
35442 can't be done because there are no partitions.
35444 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
35445 when nvsetenv failed.
35447 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
35449 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
35450 because this rule is automatically generated.
35451 (grub-mkrescue): Removed for the same reason as above.
35453 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
35455 Migrate to GNU General Public License Version 3.
35457 * COPYING: Replaced with the plain text version of GPLv3.
35459 * config.guess: Updated from gnulib.
35460 * config.sub: Likewise.
35462 * geninit.sh: Output a GPLv3 copyright notice.
35463 * geninitheader.sh: Likewise.
35464 * genmodsrc.sh: Likewise.
35465 * gensymlist.sh.in: Likewise.
35467 * boot/i386/pc/boot.S: Upgraded to GPLv3.
35468 * boot/i386/pc/diskboot.S: Likewise.
35469 * boot/i386/pc/pxeboot.S: Likewise.
35470 * commands/blocklist.c: Likewise.
35471 * commands/boot.c: Likewise.
35472 * commands/cat.c: Likewise.
35473 * commands/cmp.c: Likewise.
35474 * commands/configfile.c: Likewise.
35475 * commands/echo.c: Likewise.
35476 * commands/help.c: Likewise.
35477 * commands/ls.c: Likewise.
35478 * commands/search.c: Likewise.
35479 * commands/terminal.c: Likewise.
35480 * commands/test.c: Likewise.
35481 * commands/videotest.c: Likewise.
35482 * commands/i386/cpuid.c: Likewise.
35483 * commands/i386/pc/halt.c: Likewise.
35484 * commands/i386/pc/play.c: Likewise.
35485 * commands/i386/pc/reboot.c: Likewise.
35486 * commands/i386/pc/vbeinfo.c: Likewise.
35487 * commands/i386/pc/vbetest.c: Likewise.
35488 * commands/ieee1275/halt.c: Likewise.
35489 * commands/ieee1275/reboot.c: Likewise.
35490 * commands/ieee1275/suspend.c: Likewise.
35491 * disk/loopback.c: Likewise.
35492 * disk/lvm.c: Likewise.
35493 * disk/raid.c: Likewise.
35494 * disk/efi/efidisk.c: Likewise.
35495 * disk/i386/pc/biosdisk.c: Likewise.
35496 * disk/ieee1275/ofdisk.c: Likewise.
35497 * font/manager.c: Likewise.
35498 * fs/affs.c: Likewise.
35499 * fs/ext2.c: Likewise.
35500 * fs/fat.c: Likewise.
35501 * fs/fshelp.c: Likewise.
35502 * fs/hfs.c: Likewise.
35503 * fs/hfsplus.c: Likewise.
35504 * fs/iso9660.c: Likewise.
35505 * fs/jfs.c: Likewise.
35506 * fs/minix.c: Likewise.
35507 * fs/sfs.c: Likewise.
35508 * fs/ufs.c: Likewise.
35509 * fs/xfs.c: Likewise.
35510 * hello/hello.c: Likewise.
35511 * include/grub/acorn_filecore.h: Likewise.
35512 * include/grub/arg.h: Likewise.
35513 * include/grub/bitmap.h: Likewise.
35514 * include/grub/boot.h: Likewise.
35515 * include/grub/cache.h: Likewise.
35516 * include/grub/device.h: Likewise.
35517 * include/grub/disk.h: Likewise.
35518 * include/grub/dl.h: Likewise.
35519 * include/grub/elfload.h: Likewise.
35520 * include/grub/env.h: Likewise.
35521 * include/grub/err.h: Likewise.
35522 * include/grub/file.h: Likewise.
35523 * include/grub/font.h: Likewise.
35524 * include/grub/fs.h: Likewise.
35525 * include/grub/fshelp.h: Likewise.
35526 * include/grub/gzio.h: Likewise.
35527 * include/grub/hfs.h: Likewise.
35528 * include/grub/kernel.h: Likewise.
35529 * include/grub/loader.h: Likewise.
35530 * include/grub/lvm.h: Likewise.
35531 * include/grub/misc.h: Likewise.
35532 * include/grub/mm.h: Likewise.
35533 * include/grub/net.h: Likewise.
35534 * include/grub/normal.h: Likewise.
35535 * include/grub/parser.h: Likewise.
35536 * include/grub/partition.h: Likewise.
35537 * include/grub/pc_partition.h: Likewise.
35538 * include/grub/raid.h: Likewise.
35539 * include/grub/rescue.h: Likewise.
35540 * include/grub/script.h: Likewise.
35541 * include/grub/setjmp.h: Likewise.
35542 * include/grub/symbol.h: Likewise.
35543 * include/grub/term.h: Likewise.
35544 * include/grub/terminfo.h: Likewise.
35545 * include/grub/tparm.h: Likewise.
35546 * include/grub/types.h: Likewise.
35547 * include/grub/video.h: Likewise.
35548 * include/grub/efi/api.h: Likewise.
35549 * include/grub/efi/chainloader.h: Likewise.
35550 * include/grub/efi/console.h: Likewise.
35551 * include/grub/efi/console_control.h: Likewise.
35552 * include/grub/efi/disk.h: Likewise.
35553 * include/grub/efi/efi.h: Likewise.
35554 * include/grub/efi/pe32.h: Likewise.
35555 * include/grub/efi/time.h: Likewise.
35556 * include/grub/i386/linux.h: Likewise.
35557 * include/grub/i386/setjmp.h: Likewise.
35558 * include/grub/i386/types.h: Likewise.
35559 * include/grub/i386/efi/kernel.h: Likewise.
35560 * include/grub/i386/efi/loader.h: Likewise.
35561 * include/grub/i386/efi/time.h: Likewise.
35562 * include/grub/i386/pc/biosdisk.h: Likewise.
35563 * include/grub/i386/pc/boot.h: Likewise.
35564 * include/grub/i386/pc/chainloader.h: Likewise.
35565 * include/grub/i386/pc/console.h: Likewise.
35566 * include/grub/i386/pc/init.h: Likewise.
35567 * include/grub/i386/pc/kernel.h: Likewise.
35568 * include/grub/i386/pc/loader.h: Likewise.
35569 * include/grub/i386/pc/memory.h: Likewise.
35570 * include/grub/i386/pc/multiboot.h: Likewise.
35571 * include/grub/i386/pc/serial.h: Likewise.
35572 * include/grub/i386/pc/time.h: Likewise.
35573 * include/grub/i386/pc/vbe.h: Likewise.
35574 * include/grub/i386/pc/vbeblit.h: Likewise.
35575 * include/grub/i386/pc/vbefill.h: Likewise.
35576 * include/grub/i386/pc/vbeutil.h: Likewise.
35577 * include/grub/i386/pc/vga.h: Likewise.
35578 * include/grub/ieee1275/ieee1275.h: Likewise.
35579 * include/grub/ieee1275/ofdisk.h: Likewise.
35580 * include/grub/powerpc/libgcc.h: Likewise.
35581 * include/grub/powerpc/setjmp.h: Likewise.
35582 * include/grub/powerpc/types.h: Likewise.
35583 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
35584 * include/grub/powerpc/ieee1275/console.h: Likewise.
35585 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
35586 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
35587 * include/grub/powerpc/ieee1275/loader.h: Likewise.
35588 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
35589 * include/grub/powerpc/ieee1275/time.h: Likewise.
35590 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
35591 * include/grub/sparc64/libgcc.h: Likewise.
35592 * include/grub/sparc64/setjmp.h: Likewise.
35593 * include/grub/sparc64/types.h: Likewise.
35594 * include/grub/sparc64/ieee1275/console.h: Likewise.
35595 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
35596 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
35597 * include/grub/sparc64/ieee1275/time.h: Likewise.
35598 * include/grub/util/biosdisk.h: Likewise.
35599 * include/grub/util/getroot.h: Likewise.
35600 * include/grub/util/lvm.h: Likewise.
35601 * include/grub/util/misc.h: Likewise.
35602 * include/grub/util/raid.h: Likewise.
35603 * include/grub/util/resolve.h: Likewise.
35604 * io/gzio.c: Likewise.
35605 * kern/device.c: Likewise.
35606 * kern/disk.c: Likewise.
35607 * kern/dl.c: Likewise.
35608 * kern/elf.c: Likewise.
35609 * kern/env.c: Likewise.
35610 * kern/err.c: Likewise.
35611 * kern/file.c: Likewise.
35612 * kern/fs.c: Likewise.
35613 * kern/loader.c: Likewise.
35614 * kern/main.c: Likewise.
35615 * kern/misc.c: Likewise.
35616 * kern/mm.c: Likewise.
35617 * kern/parser.c: Likewise.
35618 * kern/partition.c: Likewise.
35619 * kern/rescue.c: Likewise.
35620 * kern/term.c: Likewise.
35621 * kern/efi/efi.c: Likewise.
35622 * kern/efi/init.c: Likewise.
35623 * kern/efi/mm.c: Likewise.
35624 * kern/i386/dl.c: Likewise.
35625 * kern/i386/efi/init.c: Likewise.
35626 * kern/i386/efi/startup.S: Likewise.
35627 * kern/i386/pc/init.c: Likewise.
35628 * kern/i386/pc/lzo1x.S: Likewise.
35629 * kern/i386/pc/startup.S: Likewise.
35630 * kern/ieee1275/ieee1275.c: Likewise.
35631 * kern/powerpc/cache.S: Likewise.
35632 * kern/powerpc/dl.c: Likewise.
35633 * kern/powerpc/ieee1275/cmain.c: Likewise.
35634 * kern/powerpc/ieee1275/crt0.S: Likewise.
35635 * kern/powerpc/ieee1275/init.c: Likewise.
35636 * kern/powerpc/ieee1275/openfw.c: Likewise.
35637 * kern/sparc64/cache.S: Likewise.
35638 * kern/sparc64/dl.c: Likewise.
35639 * kern/sparc64/ieee1275/init.c: Likewise.
35640 * kern/sparc64/ieee1275/openfw.c: Likewise.
35641 * loader/efi/chainloader.c: Likewise.
35642 * loader/efi/chainloader_normal.c: Likewise.
35643 * loader/i386/efi/linux.c: Likewise.
35644 * loader/i386/efi/linux_normal.c: Likewise.
35645 * loader/i386/pc/chainloader.c: Likewise.
35646 * loader/i386/pc/chainloader_normal.c: Likewise.
35647 * loader/i386/pc/linux.c: Likewise.
35648 * loader/i386/pc/linux_normal.c: Likewise.
35649 * loader/i386/pc/multiboot.c: Likewise.
35650 * loader/i386/pc/multiboot_normal.c: Likewise.
35651 * loader/powerpc/ieee1275/linux.c: Likewise.
35652 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35653 * normal/arg.c: Likewise.
35654 * normal/cmdline.c: Likewise.
35655 * normal/command.c: Likewise.
35656 * normal/completion.c: Likewise.
35657 * normal/execute.c: Likewise.
35658 * normal/function.c: Likewise.
35659 * normal/lexer.c: Likewise.
35660 * normal/main.c: Likewise.
35661 * normal/menu.c: Likewise.
35662 * normal/menu_entry.c: Likewise.
35663 * normal/misc.c: Likewise.
35664 * normal/parser.y: Likewise.
35665 * normal/script.c: Likewise.
35666 * normal/i386/setjmp.S: Likewise.
35667 * normal/powerpc/setjmp.S: Likewise.
35668 * normal/sparc64/setjmp.S: Likewise.
35669 * partmap/acorn.c: Likewise.
35670 * partmap/amiga.c: Likewise.
35671 * partmap/apple.c: Likewise.
35672 * partmap/gpt.c: Likewise.
35673 * partmap/pc.c: Likewise.
35674 * partmap/sun.c: Likewise.
35675 * term/gfxterm.c: Likewise.
35676 * term/terminfo.c: Likewise.
35677 * term/efi/console.c: Likewise.
35678 * term/i386/pc/console.c: Likewise.
35679 * term/i386/pc/serial.c: Likewise.
35680 * term/i386/pc/vesafb.c: Likewise.
35681 * term/i386/pc/vga.c: Likewise.
35682 * term/ieee1275/ofconsole.c: Likewise.
35683 * util/biosdisk.c: Likewise.
35684 * util/console.c: Likewise.
35685 * util/genmoddep.c: Likewise.
35686 * util/getroot.c: Likewise.
35687 * util/grub-emu.c: Likewise.
35688 * util/grub-mkdevicemap.c: Likewise.
35689 * util/grub-probe.c: Likewise.
35690 * util/lvm.c: Likewise.
35691 * util/misc.c: Likewise.
35692 * util/raid.c: Likewise.
35693 * util/resolve.c: Likewise.
35694 * util/update-grub.in: Likewise.
35695 * util/update-grub_lib.in: Likewise.
35696 * util/grub.d/00_header.in: Likewise.
35697 * util/grub.d/10_hurd.in: Likewise.
35698 * util/grub.d/10_linux.in: Likewise.
35699 * util/i386/efi/grub-install.in: Likewise.
35700 * util/i386/efi/grub-mkimage.c: Likewise.
35701 * util/i386/pc/grub-install.in: Likewise.
35702 * util/i386/pc/grub-mkimage.c: Likewise.
35703 * util/i386/pc/grub-mkrescue.in: Likewise.
35704 * util/i386/pc/grub-setup.c: Likewise.
35705 * util/i386/pc/misc.c: Likewise.
35706 * util/powerpc/ieee1275/grub-install.in: Likewise.
35707 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
35708 * util/powerpc/ieee1275/misc.c: Likewise.
35709 * video/bitmap.c: Likewise.
35710 * video/video.c: Likewise.
35711 * video/i386/pc/vbe.c: Likewise.
35712 * video/i386/pc/vbeblit.c: Likewise.
35713 * video/i386/pc/vbefill.c: Likewise.
35714 * video/i386/pc/vbeutil.c: Likewise.
35715 * video/readers/tga.c: Likewise.
35717 2007-07-02 Robert Millan <rmh@aybabtu.com>
35719 * conf/i386-efi.rmk: Replace obsolete reference to
35720 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
35721 with util/getroot.c.
35722 * conf/powerpc-ieee1275.rmk: Likewise.
35723 * conf/sparc64-ieee1275.rmk: Likewise.
35725 * util/grub-emu.c (main): Fix unchecked pointer handling.
35727 2007-07-02 Robert Millan <rmh@aybabtu.com>
35729 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
35730 invocation to fail, in order to support partition-less media.
35732 * util/i386/pc/grub-install.in: Likewise.
35734 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
35735 which fs or partmap modules are needed (akin to its sister scripts).
35737 Also use grub-probe to get rid of unportable /proc/mounts check.
35739 Print the same informational message that the other scripts do, before
35742 2007-06-23 Robert Millan <rmh@aybabtu.com>
35744 * util/update-grub_lib.in (font_path): New function. Determine whether
35745 a font file can be found and, if so, echo the GRUB path to it.
35747 * util/update-grub.in: Handle multiple terminals depending on user
35748 input, platform availability and font file presence. Propagate
35749 variables of our findings to /etc/grub.d/ children.
35751 * util/grub.d/00_header.in: Handle multiple terminals, based on
35752 environment setup by update-grub.
35754 2007-06-23 Robert Millan <rmh@aybabtu.com>
35756 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
35758 2007-06-21 Robert Millan <rmh@aybabtu.com>
35760 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
35761 indicate end of data section in kernel image.
35762 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
35763 GRUB_KERNEL_MACHINE_DATA_END.
35765 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
35767 * kern/i386/efi/startup.S: Likewise.
35769 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
35770 during image generation. Implement --prefix option to override this
35772 * util/i386/efi/grub-mkimage.c: Likewise.
35774 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
35775 code to make path relative to its root into a separate function.
35777 * util/i386/pc/grub-install.in: Use newly provided
35778 make_system_path_relative_to_its_root() to convert ${grubdir}, then
35779 pass the result to grub-install --prefix.
35781 2007-06-13 Robert Millan <rmh@aybabtu.com>
35783 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
35784 DEFAULT_DEVICE_MAP.
35785 * util/grub-emu.c: Use above definitions from misc.h instead of
35787 * util/grub-mkdevicemap.c: Likewise.
35788 * util/i386/pc/grub-setup.c: Likewise.
35789 * util/grub-probe.c: Likewise.
35790 (probe): Abort with grub_util_error() when either
35791 grub_guess_root_device or grub_util_get_grub_dev fails.
35793 2007-06-12 Robert Millan <rmh@aybabtu.com>
35795 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
35796 "pager" assignment.
35797 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
35799 * util/grub-probe.c (probe): Likewise for "drive_name".
35801 2007-06-11 Robert Millan <rmh@aybabtu.com>
35803 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
35804 not just the cdrom one.
35806 2007-06-11 Robert Millan <rmh@aybabtu.com>
35808 * util/i386/pc/grub-mkrescue.in: Add "set -e".
35809 Add --pkglibdir=DIR option to override pkglibdir.
35810 Mention --image-type=TYPE in help output.
35811 Fix --grub-mkimage (it was a no-op).
35812 Abort gracefully when no parameter is given.
35814 2007-06-11 Robert Millan <rmh@aybabtu.com>
35816 * util/i386/pc/grub-mkrescue.in: New file.
35817 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
35818 * Makefile.in: Handle bin_SCRIPTS.
35820 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
35822 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
35823 list of video modes.
35825 2007-06-06 Robert Millan <rmh@aybabtu.com>
35827 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
35828 file doesn't exist, or if it is in a filesystem grub can't read.
35830 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
35831 not abort if GRUB_DRIVE could not be defined. Rearrange generated
35832 header comment to fit in 80 columns when the variables are resolved.
35834 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
35835 could be identified by update-grub. Remove redundant check for
35836 unifont.pff existence (since convert_system_path_to_grub_path now
35839 2007-06-04 Robert Millan <rmh@aybabtu.com>
35841 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
35843 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
35845 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
35847 2007-06-04 Robert Millan <rmh@aybabtu.com>
35849 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
35851 * include/grub/partition.h: Declare grub_apple_partition_map_init and
35852 grub_apple_partition_map_fini.
35855 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
35856 to access >2 TiB disks).
35858 Print disk->total_sectors with %llu instead of %lu, since this
35859 variable is always 64-bit (prevents wrong disk size from being displayed
35860 on either >2 TiB disk or big-endian CPU).
35862 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
35863 into a generic case that supports all (sane) partition maps.
35865 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
35868 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
35869 and grub_apple_partition_map_fini() after that.
35871 2007-06-01 Robert Millan <rmh@aybabtu.com>
35873 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
35875 * util/grub.d/00_header.in: Only enable gfxterm when
35876 convert_system_path_to_grub_path() succeeds.
35878 2007-05-20 Robert Millan <rmh@aybabtu.com>
35880 * util/update-grub_lib.in: New file.
35881 * DISTLIST: Add update-grub_lib.in.
35882 * conf/common.rmk: Generate update-grub_lib and install it in
35884 * Makefile.in: Add install routine for $(lib_DATA).
35886 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
35887 function provided by update-grub_lib to support arbitrary paths of
35889 * util/update-grub.in: Use convert_system_path_to_grub_path() to
35890 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
35892 2007-05-19 Robert Millan <rmh@aybabtu.com>
35894 * commands/i386/cpuid.c: New module.
35895 * DISTLIST: Add it.
35896 * conf/i386-efi.rmk: Enable cpuid.mod.
35897 * conf/i386-pc.rmk: Likewise.
35899 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35901 * kern/disk.c (grub_disk_read): Check return value of
35904 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
35906 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
35908 * disk/raid.c (grub_raid_open): Likewise.
35910 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
35912 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
35913 stack instead of on the heap.
35915 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
35916 before doing a read on it.
35918 * configure.ac: Only use -fno-stack-protector for the target
35921 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
35923 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
35924 __attribute_ ((unused)) to mode_type argument.
35926 * util/getroot.c (grub_guess_root_device): Fix #endif.
35928 * kern/misc.c (memcmp): Fix prototype.
35930 * include/grub/partition.h [GRUB_UTIL]
35931 (grub_gpt_partition_map_init): Add prototype.
35932 (grub_gpt_partition_map_fini): Likewise.
35934 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
35935 at the right place.
35937 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
35938 (grub_fat_read_data): Likewise.
35939 (grub_fat_find_dir): Likewise.
35941 * font/manager.c (find_glyph): Make table a const.
35942 (grub_font_get_glyph): Remove bitmap from if statement.
35944 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
35946 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
35947 code, first search for device in /dev/mapper, then in /dev.
35948 (grub_util_get_grub_dev): New function.
35949 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
35951 * util/grub-probe.c (probe): Remove check for RAID, call
35952 grub_util_get_grub_dev() instead of
35953 grub_util_biosdisk_get_grub_dev().
35954 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
35955 grub_util_biosdisk_get_grub_dev().
35956 * util/i386/pc/grub-setup.c (main): Likewise.
35958 2007-05-16 Robert Millan <rmh@aybabtu.com>
35960 * DISTLIST: Update for the latest changes.
35961 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
35962 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
35963 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
35964 grub/util/biosdisk.h.
35965 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
35966 grub/util/biosdisk.h.
35968 2007-05-16 Robert Millan <rmh@aybabtu.com>
35970 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
35972 2007-05-16 Robert Millan <rmh@aybabtu.com>
35974 * util/i386/efi/grub-install.in: New.
35975 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
35976 newly added grub-install.
35977 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
35979 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
35980 grub/util/biosdisk.h.
35981 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
35982 grub/util/biosdisk.h.
35984 2007-05-16 Robert Millan <rmh@aybabtu.com>
35986 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
35987 * include/grub/util/biosdisk.h: ... here.
35988 * util/i386/pc/biosdisk.c: Moved to ...
35989 * util/biosdisk.c: ... here.
35990 * util/i386/pc/getroot.c: Moved to ...
35991 * util/getroot.c: ... here.
35992 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
35993 * util/grub-mkdevicemap.c: ... here.
35994 * util/i386/pc/grub-probe.c: Moved to ...
35995 * util/grub-probe.c: ... here.
35997 2007-05-15 Robert Millan <rmh@aybabtu.com>
35999 * util/update-grub.in: Remove duplicated line in grub.cfg header
36002 2007-05-13 Robert Millan <rmh@aybabtu.com>
36004 * util/update-grub.in: Fix a few assumptions about the devices holding
36005 /, /boot and /boot/grub being the same.
36006 * util/grub.d/00_header.in: Likewise.
36007 * util/grub.d/10_hurd.in: Likewise.
36008 * util/grub.d/10_linux.in: Likewise.
36010 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
36011 patterns. Use that to define the `.old' suffix as older than `'.
36013 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
36015 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
36016 the grub.cfg header message.
36018 2007-05-11 Robert Millan <rmh@aybabtu.com>
36020 * util/update-grub.in: Create device.map if it doesn't already exist,
36021 before attempting to run grub-probe.
36022 Check for grub-probe and grub-mkdevicemap with the same code
36023 grub-install is using.
36026 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
36028 * Makefile.in: Add the datarootdir autoconf variable.
36030 2007-05-09 Robert Millan <rmh@aybabtu.com>
36032 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
36033 fail gracefully if dev->disk->partition == NULL.
36035 2007-05-07 Robert Millan <rmh@aybabtu.com>
36037 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
36038 determine partition map module.
36039 * util/i386/pc/grub-install.in: Use this feature to decide which
36040 partition module to load, instead of hardcoding pc and gpt.
36042 2007-05-07 Robert Millan <rmh@aybabtu.com>
36044 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
36045 source directory differs from build directory.
36047 2007-05-05 Robert Millan <rmh@aybabtu.com>
36049 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
36052 2007-05-05 Robert Millan <rmh@aybabtu.com>
36054 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
36056 2007-05-05 Robert Millan <rmh@aybabtu.com>
36058 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
36059 command-line arguments via ${GRUB_CMDLINE_LINUX}.
36061 2007-05-05 Robert Millan <rmh@aybabtu.com>
36063 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
36064 (grub_probe_SOURCES): Likewise.
36065 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
36066 GPT and initialize dos_part and bsd_part accordingly.
36067 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
36069 (main): Activate gpt module for use during partition identification,
36070 and deactivate it afterwards.
36071 * util/i386/pc/grub-install.in: Add gpt module to core.img.
36072 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
36073 partition identification, and deactivate it afterwards.
36075 2007-05-05 Robert Millan <rmh@aybabtu.com>
36077 * term/i386/pc/console.c (grub_console_fini): Call
36078 grub_term_set_current() before grub_term_unregister().
36080 2007-05-04 Robert Millan <rmh@aybabtu.com>
36082 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
36083 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
36084 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
36085 and update-grub_DATA.
36086 * conf/common.rmk: Build and install update-grub components.
36087 * conf/common.mk: Regenerate.
36088 * util/update-grub.in: New. Core of update-grub.
36089 * util/grub.d/00_header.in: New. Generates grub.cfg header.
36090 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
36091 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
36092 * util/grub.d/README: New. Document grub.d directory layout.
36094 2007-05-01 Robert Millan <rmh@aybabtu.com>
36096 * util/grub-emu.c: Move initialization functions
36097 grub_util_biosdisk_init() and grub_init_all() before
36098 grub_util_biosdisk_get_grub_dev(), which relies on them.
36100 2007-04-19 Robert Millan <rmh@aybabtu.com>
36102 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
36105 2007-04-18 Jerone Young <jerone@gmail.com>
36107 * kernel/elf.c: Add missing parenthesis for conditional statement
36110 2007-04-10 Jerone Young <jerone@gmail.com>
36112 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
36113 continue on and look for device node with real device name.
36115 2007-04-10 Jerone Young <jerone@gmail.com>
36117 * configure.ac: Add argument for autoconf to use transformation
36119 * Makefile.in: Add autoconf package transformation code.
36120 * util/i386/pc/grub-install.in: Likewise.
36121 * util/powerpc/ieee1275/grub-install.in: Likewise.
36123 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
36125 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
36126 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
36127 (EXT2_REVISION): Likewise.
36128 (EXT2_INODE_SIZE): Likewise.
36129 (struct grub_ext2_block_group): Added a missing member
36131 (grub_ext2_read_inode): Divide by the inode size in a superblock
36132 instead of 128 to obtain INODES_PER_BLOCK.
36133 Use the macro EXT2_INODE_SIZE instead of directly using
36134 SBLOCK->INODE_SIZE.
36136 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
36138 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
36139 superblock instead of the structure size to compute an
36140 offset. This fixes the problem that GRUB could not read a
36141 filesystem when inode size is different from 128-byte.
36143 2007-03-05 Marco Gerards <marco@gnu.org>
36145 * normal/main.c (read_config_file): When "menu" is not set, create
36146 an initial context.
36148 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
36150 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
36151 (HEAP_LIMIT): New macro.
36152 (grub_claim_heap): Claim memory up to `heaplimit'.
36154 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
36156 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
36157 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
36158 (_start): Likewise.
36159 (grub_arch_modules_addr): Return address after `_end'.
36160 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
36161 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
36162 (add_segments): Calculate `_end' from phdr size and location.
36163 (ALIGN_UP): Moved to ...
36164 * include/grub/misc.h: here.
36165 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
36167 (GRUB_IEEE1275_MODULE_BASE): Removed.
36169 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36171 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
36174 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36176 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
36178 (grub_elf64_load_hook_t): Likewise.
36179 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
36182 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
36184 * kern/mm.c: Update copyright.
36185 (grub_mm_debug): Correct syntax error.
36186 (grub_mm_dump_free): New function.
36187 (grub_debug_free): Call `grub_free'.
36188 * include/grub/mm.h: Update copyright.
36189 (grub_mm_dump_free): Add declaration.
36191 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
36193 * include/grub/ieee1275/ieee1275.h: Update copyright.
36194 * kern/powerpc/ieee1275/init.c: Likewise.
36195 * kern/powerpc/ieee1275/openfw.c: Likewise.
36197 * loader/powerpc/ieee1275/linux.c: Likewise.
36198 * include/grub/elfload.h: Likewise.
36199 * kern/elf.c: Likewise.
36200 (grub_elf32_load): Pass `base' and `size' parameters. Update all
36202 (grub_elf64_load): Likewise.
36203 (grub_elf32_load_segment): Move to a nested function.
36204 (grub_elf64_load_segment): Likewise.
36206 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
36208 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
36210 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
36211 (grub_heap_len): Likewise.
36212 (HEAP_SIZE): New macro.
36213 (grub_claim_heap): New function.
36214 (grub_machine_init): Don't claim heap directly. Call
36216 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
36217 (grub_available_iterate): New function.
36219 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
36221 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
36222 * configure.ac: Use it for testing the HOST and TARGET compilers.
36224 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
36226 * Makefile.in (enable_grub_emu): New variable.
36227 * configure.ac (--enable-grub-emu): New option.
36228 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
36229 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
36230 * conf/i386-pc.rmk: Likewise.
36231 * conf/powerpc-ieee1275.rmk: Likewise.
36232 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
36234 2006-12-12 Marco Gerards <marco@gnu.org>
36236 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
36238 * kern/env.c (grub_env_unset): Don't free the member `value' when
36239 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
36242 * normal/main.c (current_menu): Removed.
36243 (free_menu): Unset the `menu' environment variable.
36244 (grub_normal_menu_addentry): Make use of the environment variable
36245 `menu', instead of using the global `current_menu'. Allocate
36246 memory for the sourcecode of this entry.
36247 (read_config_file): New argument `nested', changed all callers.
36248 Only in the case of a new context, initialize a new menu. Set the
36249 `menu' environment variable.
36250 (grub_normal_execute): Don't set and unset the environment
36251 variable `menu' here anymore. Only free the menu when leaving the
36254 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
36257 2006-12-11 Marco Gerards <marco@gnu.org>
36259 * normal/menu_entry.c (run): Fix off by one bug so the last line
36260 is executed. Move the loader check to outside the loop.
36262 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
36264 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
36266 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
36268 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
36269 the number of sectors. Reported by Andrey Shuvikov
36270 <mr_hyro@yahoo.com>.
36272 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
36274 * kern/disk.c (grub_disk_read): When there is a read error, always
36275 try to read only the necessary data.
36277 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
36279 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
36281 [GRUB_UTIL] (grub_raid_fini): Likewise.
36282 [GRUB_UTIL] (grub_lvm_init): Likewise.
36283 [GRUB_UTIL] (grub_lvm_fini): Likewise.
36284 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
36285 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
36286 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
36287 and grub_raid_fini().
36289 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
36291 * include/grub/types.h (__unused): Rename to UNUSED.
36292 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
36293 (grub_elf64_size): Likewise.
36295 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
36297 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
36298 grub_error_push and grub_error_pop in the error-handling path.
36299 (grub_elf32_load_segment): Only call grub_file_read with non-zero
36302 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
36304 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
36305 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36307 (kernel_elf_SOURCES): Likewise.
36308 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
36309 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
36310 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
36311 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
36312 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
36313 (elf_mod_SOURCES): New variable.
36314 (elf_mod_CFLAGS): Likewise.
36315 (elf_mod_LDFLAGS): Likewise.
36316 * include/grub/types.h (__unused): New macro.
36317 * include/grub/elfload.h: New file.
36318 * kern/elf.c: Likewise.
36319 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
36320 (ELF32_LOADMASK): New macro.
36321 (ELF64_LOADMASK): Likewise.
36322 (vmlinux): Removed.
36323 (grub_linux_load32): New function.
36324 (grub_linux_load64): Likewise.
36325 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
36326 Use grub_elf_t instead of grub_file_t.
36328 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
36330 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
36331 `catch_result' to struct set_color_args.
36333 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
36335 * normal/menu.c: Include grub/script.h.
36336 * normal/menu_entry.c: Likewise.
36337 * include/grub/normal.h: Do not include grub/script.h.
36339 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36341 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
36343 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36345 * kern/disk.c (grub_disk_open): Print debug messages when opening a
36347 (grub_disk_close): Print debug messages when closing a disk.
36348 (grub_disk_read): Print debug messages when disk read fails.
36349 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
36351 * kern/partition.c: Include misc.h.
36352 (grub_partition_iterate): Print debug messages when detecting
36355 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
36357 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
36359 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
36361 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
36363 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
36364 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
36366 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
36368 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
36369 instead of sizeof(lv). Patch by Michael Guntsche.
36371 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
36373 * disk/lvm.c: Rename VGS to VG_LIST.
36374 (grub_lvm_iterate): Change VGS->LV to VG-LV.
36375 (grub_lvm_open): Likewise.
36376 Thanks to Michael Guntsche for finding this bug.
36378 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
36380 * configure.ac (AC_INIT): Bumped to 1.95.
36382 2006-10-14 Robert Millan <rmh@aybabtu.com>
36384 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
36385 with "/dev/.static/dev/md".
36387 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
36389 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
36390 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
36391 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
36392 DRIVE_NAME are always freed.
36394 * util/i386/pc/biosdisk.c (make_device_name): Add one into
36395 DOS_PART, as a DOS partition is counted from one instead of zero
36396 now. Reported by Robert Millan.
36398 2006-10-14 Robert Millan <rmh@aybabtu.com>
36400 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
36401 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
36402 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
36403 string returned by grub_guess_root_device.
36404 * util/i386/pc/grub-setup.c: Likewise.
36405 * util/i386/pc/grub-probefs.c: Likewise.
36407 * util/i386/pc/grub-probefs.c: Rename to ...
36408 * util/i386/pc/grub-probe.c: ... this.
36409 * DISTLIST: Remove grub-probefs, add grub-probe.
36410 * conf/i386-efi.rmk: Likewise.
36411 * conf/i386-pc.rmk: Likewise.
36412 * util/i386/pc/grub-install.in: Likewise.
36414 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
36415 choose which information we want to print.
36417 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
36419 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
36420 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
36421 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
36422 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
36423 video/readers/tga.c and video/i386/pc/vbeutil.c.
36425 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
36427 Added support for RAID and LVM.
36429 * disk/lvm.c: New file.
36430 * disk/raid.c: Likewise.
36431 * include/grub/lvm.h: Likewise.
36432 * include/grub/raid.h: Likewise.
36433 * include/grub/util/lvm.h: Likewise.
36434 * include/grub/util/raid.h: Likewise.
36435 * util/lvm.c: Likewise.
36436 * util/raid.c: Likewise.
36438 * include/grub/disk.h (grub_disk_dev_id): Add
36439 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
36440 (grub_disk_get_size): New prototype.
36441 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
36442 returns a partition.
36443 (grub_disk_get_size): New function.
36445 * kern/i386/pc/init.c (make_install_device): Copy the prefix
36446 verbatim if grub_install_dos_part is -2.
36448 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
36451 * util/i386/pc/grub-setup.c (setup): New argument
36452 MUST_EMBED. Force embedding of GRUB when the argument is
36453 true. Close FILE before returning.
36454 (main): Add support for RAID and LVM.
36456 * conf/common.rmk: Add RAID and LVM modules.
36457 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
36459 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
36461 * kern/misc.c (grub_strstr): New function.
36462 * include/grub/misc.h (grub_strstr): New prototype.
36464 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
36466 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
36468 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
36470 * kern/misc.c (grub_strtoull): Guess the base only if not
36473 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36475 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
36478 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36480 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
36482 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
36483 Remove `flags' argument. All callers changed.
36484 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
36485 (IEEE1275_IHANDLE_INVALID): New variable.
36486 (IEEE1275_CELL_INVALID): New variable.
36487 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36488 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
36489 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
36490 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
36491 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
36492 codes from Open Firmware. All callers updated.
36493 (grub_ieee1275_next_property): Directly return Open Firmware return
36495 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
36496 Standardize error checking from `grub_ieee1275_get_property'.
36497 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
36498 `devalias' to `aliases'. Correct comments. Consolidate error paths.
36500 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
36502 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
36503 `instance_to_package_args' to `instance_to_path_args'.
36505 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
36506 `grub_ieee1275_chosen'.
36508 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
36509 `grub_ieee1275_interpret'.
36511 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
36513 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
36515 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
36517 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
36518 (__cmpdi): Likewise.
36520 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
36521 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
36524 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
36526 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
36527 to type `grub_ssize_t'.
36528 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
36530 2006-09-22 Marco Gerards <marco@gnu.org>
36532 * normal/script.c (grub_script_create_cmdmenu): Skip leading
36535 2006-09-22 Marco Gerards <marco@gnu.org>
36537 * commands/echo.c: New file.
36539 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
36541 * conf/common.rmk (echo_mod_SOURCES): New variable.
36542 (echo_mod_CFLAGS): Likewise.
36543 (echo_mod_LDFLAGS): Likewise.
36545 2006-09-22 Marco Gerards <marco@gnu.org>
36547 * normal/main.c (get_line): Malloc memory instead of using
36548 preallocated memory. Removed the arguments `cmdline' and
36549 `max_len'. Updated all callers.
36551 2006-09-22 Marco Gerards <marco@gnu.org>
36553 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
36554 (normal_mod_DEPENDENCIES): Likewise.
36556 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
36557 (normal_mod_DEPENDENCIES): Likewise.
36559 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
36561 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
36563 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
36565 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
36566 (normal_mod_DEPENDENCIES): Likewise.
36567 * conf/i386-pc.mk: Regenerate.
36568 * conf/i386-efi.mk: Likewise
36569 * conf/common.mk: Likewise.
36570 * conf/powerpc-ieee1275.mk: Likewise.
36571 * conf/sparc64-ieee1275.mk: Likewise.
36573 2006-09-22 Robert Millan <rmh@aybabtu.com>
36575 Sync with i386 version.
36576 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
36577 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
36579 2006-09-21 Robert Millan <rmh@aybabtu.com>
36581 Import from GRUB Legacy (lib/device.c):
36582 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
36583 (init_device_map) [__linux__]: Add support for I2O devices.
36585 2006-09-14 Marco Gerards <marco@gnu.org>
36587 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
36590 2006-09-14 Robert Millan <rmh@aybabtu.com>
36592 * util/i386/pc/grub-install.in: Skip menu.lst when removing
36595 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
36597 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
36598 before adding it to device.map.
36600 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
36602 * genmk.rb: Let GCC generate dependencies the first time it
36603 compiles a file; using the -MD option.
36604 * conf/common.mk: Regenerate.
36605 * conf/i386-pc.mk: Likewise.
36606 * conf/i386-efi.mk: Likewise.
36607 * conf/powerpc-ieee1275.mk: Likewise.
36608 * conf/sparc64-ieee1275.mk: Likewise.
36610 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
36612 Move the prototypes of grub_setjmp and grub_longjmp to
36613 cpu/setjmp.h, so that each architecture may specify different
36616 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
36617 (grub_longjmp): Likewise.
36618 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
36619 (grub_longjmp): Likewise.
36620 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
36621 (grub_longjmp): Likewise.
36623 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
36624 [!GRUB_UTIL] (grub_longjmp): Removed.
36626 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
36628 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
36629 "color!" method does not return any value.
36631 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36633 * include/grub/bitmap.h: New file.
36635 * include/grub/i386/pc/vbeutil.h: Likewise.
36637 * video/bitmap.c: Likewise.
36639 * video/readers/tga.c: Likewise.
36641 * video/i386/pc/vbeutil.c: Likewise.
36643 * commands/videotest.c: Code cleanup and updated to reflect to new
36646 * term/gfxterm.c: Likewise.
36648 * video/video.c: Likewise.
36650 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
36651 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
36652 (bitmap_mod_SOURCES): New entry.
36653 (bitmap_mod_CFLAGS): Likewise.
36654 (bitmap_mod_LDFLAGS): Likewise.
36655 (tga_mod_SOURCES): Likewise.
36656 (tga_mod_CFLAGS): Likewise.
36657 (tga_mod_LDFLAGS): Likewise.
36659 * include/grub/video.h (grub_video_blit_operators): New enum type.
36660 (grub_video_render_target): Changed as forward declaration and moved
36661 actual definition to be video driver specific.
36662 (grub_video_adapter.blit_bitmap): Added blitting operator.
36663 (grub_video_adapter.blit_render_target): Likewise.
36664 (grub_video_blit_bitmap): Likewise.
36665 (grub_video_blit_render_target): Likewise.
36667 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
36668 driver specific render target definition.
36669 (grub_video_vbe_map_rgba): Added driver internal helper.
36670 (grub_video_vbe_unmap_color): Updated to use
36671 grub_video_i386_vbeblit_info.
36672 (grub_video_vbe_get_video_ptr): Likewise.
36674 * include/grub/i386/pc/vbeblit.h
36675 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
36676 grub_video_i386_vbeblit_info.
36677 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36678 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36679 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36680 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36681 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36682 (grub_video_i386_vbeblit_index_index): Likewise.
36683 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
36684 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36685 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36686 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
36688 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
36691 * video/i386/pc/vbeblit.c: Updated to reflect changes on
36692 include/grub/i386/pc/vbeblit.h.
36694 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
36695 Updated to use grub_video_i386_vbeblit_info.
36696 (grub_video_i386_vbefill_R8G8B8): Likewise.
36697 (grub_video_i386_vbefill_index): Likewise.
36698 (grub_video_i386_vbefill): Added generic filler.
36700 * video/i386/pc/vbefill.c: Updated to reflect changes on
36701 include/grub/i386/pc/vbefill.h.
36703 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
36704 grub_video_i386_vbeblit_info.
36705 (grub_video_vbe_unmap_color): Likewise.
36706 (grub_video_vbe_blit_glyph): Likewise.
36707 (grub_video_vbe_scroll): Likewise.
36708 (grub_video_vbe_draw_pixel): Removed function.
36709 (grub_video_vbe_get_pixel): Likewise.
36710 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
36711 updated code to use it.
36712 (common_blitter): Added common blitter for render target and bitmap.
36713 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
36714 (grub_video_vbe_blit_render_target): Likewise.
36716 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
36718 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
36719 is in text mode if there is no console control protocol instance
36722 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36724 * include/grub/video.h: Code cleanup.
36726 * include/grub/i386/pc/vbe.h: Likewise.
36728 * video/i386/pc/vbe.c: Likewise.
36730 * video/i386/pc/vbeblit.c: Likewise.
36732 * video/i386/pc/vbefill.c: Likewise.
36734 * video/video.c: Likewise. Also added more comments.
36736 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
36738 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
36739 (struct grub_biosdisk_dap): Likewise.
36741 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
36742 linkage settings for all functions.
36744 2006-07-12 Marco Gerards <marco@gnu.org>
36746 * configure.ac (--enable-mm-debug): Fix typo.
36748 * genkernsyms.sh.in: Use proper quoting for `CC'.
36750 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
36752 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
36753 (normal_mod_ASFLAGS): Remove "-m32".
36755 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
36757 * util/misc.c: Include config.h.
36758 [!HAVE_MEMALIGN]: Do not include malloc.h.
36759 (grub_memalign): Use posix_memalign, if present. Then, use
36760 memalign, if present. Otherwise, emit an error.
36762 * util/grub-emu.c: Do not include malloc.h.
36764 * include/grub/util/misc.h: Include unistd.h. This is required for
36765 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
36766 D. Eades III <hde@foobar-qux.org>.
36768 * configure.ac (AC_GNU_SOURCE): Added.
36769 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
36772 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
36774 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
36775 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
36777 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
36779 * include/grub/types.h (grub_host_addr_t): Rename to
36780 grub_target_addr_t.
36781 (grub_host_off_t): Rename to grub_target_off_t.
36782 (grub_host_size_t): Rename to grub_target_size_t.
36783 (grub_host_ssize_t): Rename to grub_target_ssize_t.
36784 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
36786 * include/grub/kernel.h (struct grub_module_header): Change type
36787 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
36788 (grub_module_info): Likewise.
36790 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36792 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
36793 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
36794 Velazquez <jesus.velazquez@gmail.com>.
36796 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
36798 Count partitions from 1 instead of 0 in the string representation
36799 of partitions. Still use 0-based internally.
36801 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
36802 (sun_partition_map_iterate): Use grub_partition_t instead of
36803 struct grub_partition *. Cast DESC->START_CYLINDER to
36804 grub_uint64_t after converting the endian.
36805 (sun_partition_map_probe): Subtract 1 for PARTNUM.
36806 (sun_partition_map_get_name): Add 1 to P->INDEX.
36808 * partmap/pc.c (grub_partition_parse): Subtract 1 for
36810 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
36812 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
36813 zero instead of one.
36814 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
36815 (gpt_partition_map_get_name): Add 1 into P->INDEX.
36817 * partmap/apple.c (apple_partition_map_iterate): Change the type
36818 of POS to unsigned.
36819 (apple_partition_map_probe): Subtract 1 for PARTNUM.
36820 (apple_partition_map_get_name): Add 1 into P->INDEX.
36822 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
36823 of POS to unsigned.
36824 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
36825 calculate the offset of a partition.
36826 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
36827 (amiga_partition_map_get_name): Add 1 into P->INDEX.
36829 * partmap/acorn.c (acorn_partition_map_find): Change the type of
36830 SECTOR to grub_disk_addr_t.
36831 (acorn_partition_map_iterate): Likewise.
36832 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
36833 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
36835 (acorn_partition_map_get_name): Add 1 into P->INDEX.
36837 * kern/i386/pc/init.c (make_install_device): Add 1 into
36838 GRUB_INSTALL_DOS_PART.
36840 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
36843 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
36845 Clean up the code to support 64-bit addressing in disks and
36846 files. This change is not enough for filesystems yet.
36848 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
36849 type of "start" to grub_uint64_t.
36850 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
36851 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
36852 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
36855 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
36856 to grub_disk_addr_t.
36858 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
36861 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36863 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
36866 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
36868 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
36870 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
36872 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
36873 to grub_off_t, to detect an error from grub_file_seek.
36874 (grub_multiboot_load_elf32): Likewise.
36876 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
36877 maximum unsigned long value when an overflow is detected.
36878 (grub_strtoull): New function.
36879 (grub_divmod64): Likewise.
36880 (grub_lltoa): use grub_divmod64.
36882 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
36884 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
36885 the pointer to next character. Use grub_strtoull instead of
36887 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
36888 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
36891 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
36892 return value is signed.
36893 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
36894 test if OFFSET is less than zero, as OFFSET is unsigned now.
36896 * kern/disk.c (struct grub_disk_cache): Change the type of
36897 "sector" to grub_disk_addr_t.
36898 (grub_disk_cache_get_index): Change the type of SECTOR to
36899 grub_disk_addr_t. Calculate the hash with SECTOR casted to
36900 unsigned after shifting.
36901 (grub_disk_cache_invalidate): Change the type of SECTOR to
36903 (grub_disk_cache_unlock): Likewise.
36904 (grub_disk_cache_store): Likewise.
36905 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
36906 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
36907 grub_disk_addr_t and grub_uint64_t, respectively.
36908 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
36909 body, as the value of OFFSET is tweaked by
36910 grub_disk_check_range. Change the types of START_SECTOR, LEN and
36911 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
36913 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
36914 body, as the value of OFFSET is tweaked by
36915 grub_disk_check_range. Change the types of LEN and N to
36918 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
36919 and "saved_offset" to grub_off_t.
36920 (test_header): Cast BUF to char *.
36921 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
36923 (grub_gzio_read): Change the types of OFFSET and SIZE to
36924 grub_off_t and grub_size_t, respectively.
36926 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
36928 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
36929 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
36930 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
36931 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
36932 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
36934 * include/grub/types.h (grub_off_t): Unconditionally set to
36936 (grub_disk_addr_t): Changed to grub_uint64_t.
36938 * include/grub/partition.h (struct grub_partition): Change the
36939 types of "start", "len" and "offset" to grub_disk_addr_t,
36940 grub_uint64_t and grub_disk_addr_t, respectively.
36941 (grub_partition_get_start): Return grub_disk_addr_t.
36942 (grub_partition_get_len): Return grub_uint64_t.
36944 * include/grub/misc.h (grub_strtoull): New prototype.
36945 (grub_divmod64): Likewise.
36947 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
36948 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
36949 grub_off_t, respectively.
36950 All callers and references changed.
36952 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
36953 grub_size_t in "read".
36954 All callers and references changed.
36956 * include/grub/file.h (struct grub_file): Change the types of
36957 "offset" and "size" to grub_off_t and grub_off_t,
36958 respectively. Change the type of SECTOR to grub_disk_addr_t in
36960 (grub_file_read): Change the type of LEN to grub_size_t.
36961 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
36963 (grub_file_size): Return grub_off_t.
36964 (grub_file_tell): Likewise.
36965 All callers and references changed.
36967 * include/grub/disk.h (struct grub_disk_dev): Change the types of
36968 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
36970 (struct grub_disk): Change the type of "total_sectors" to
36971 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
36973 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
36974 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
36975 (grub_disk_write): Likewise.
36976 All callers and references changed.
36978 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
36979 char * for grub_strncmp to silence gcc.
36980 (grub_iso9660_mount): Likewise.
36981 (grub_iso9660_mount): Likewise.
36982 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
36984 (grub_iso9660_iterate_dir): Likewise.
36985 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
36987 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
36988 LEN to grub_disk_addr_t and grub_size_t, respectively.
36990 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
36992 * fs/jfs.c (grub_jfs_read_file): Likewise.
36994 * fs/minix.c (grub_jfs_read_file): Likewise.
36996 * fs/sfs.c (grub_jfs_read_file): Likewise.
36998 * fs/ufs.c (grub_jfs_read_file): Likewise.
37000 * fs/xfs.c (grub_jfs_read_file): Likewise.
37002 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
37003 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
37006 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
37007 BLKNR to -1 instead of returning GRUB_ERRNO.
37008 (grub_ext2_read_file): Change the types of SECTOR and
37009 LEN to grub_disk_addr_t and grub_size_t, respectively.
37011 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
37012 LEN to grub_disk_addr_t and grub_size_t, respectively.
37014 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
37017 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
37018 string. Do not cast SECTOR explicitly.
37020 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
37021 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
37022 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
37023 grub_disk_addr_t and grub_size_t, respectively. If the sector is
37024 over 2TB and LBA mode is not supported, raise an error.
37025 (get_safe_sectors): New function.
37026 (grub_biosdisk_read): Use get_safe_sectors.
37027 (grub_biosdisk_write): Likewise.
37029 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
37030 (grub_efidisk_write): Likewise.
37032 * disk/loopback.c (delete_loopback): Cosmetic changes.
37033 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
37035 (grub_loopback_open): Likewise.
37036 (grub_loopback_read): Likewise. Also, change the type of POS to
37037 grub_off_t, and fix the usage of grub_memset.
37039 * commands/i386/pc/play.c: Include grub/machine/time.h.
37041 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
37044 * commands/configfile.c: Include grub/env.h.
37046 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
37047 GRUB_ERRNO directly instead. Change the type of POS to
37048 grub_off_t. Follow the coding standard.
37050 * commands/blocklist.c: Include grub/partition.h.
37051 (grub_cmd_blocklist): Return an error if the underlying device is
37052 not a disk. Take the starting sector of a partition into account,
37053 if a partition is used.
37055 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
37057 (lba_mode): Support 64-bit addresses.
37058 (chs_mode): Likewise.
37059 (copy_buffer): Adapted to the new offsets of a length field and a
37061 (blocklist_default_start): Allocate 64-bit space.
37063 * boot/i386/pc/boot.S (force_lba): Removed.
37064 (boot_drive): Moved to under KERNEL_SECTOR.
37065 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
37067 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
37069 (lba_mode): Refactored to support a 64-bit address. More size
37071 (setup_sectors): Likewise.
37073 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
37075 * DISTLIST: Added include/grub/i386/linux.h. Removed
37076 include/grub/i386/pc/linux.h
37078 * configure.ac (AC_INIT): Bumped to 1.94.
37080 * config.guess: Updated from gnulib.
37081 * config.sub: Likewise.
37082 * install-sh: Likewise.
37083 * mkinstalldirs: Likewise.
37085 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
37087 * conf/common.rmk (grub_modules_init.lst): Depended on
37088 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
37091 * genmk.rb (PModule::rule): Reverted the previous change.
37093 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
37095 * conf/common.rmk (grub_modules_init.lst): Depends on
37096 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
37097 that the target does not exist before producing.
37098 (grub_modules_init.h): Remove the target before generating.
37099 (grub_emu_init.c): Likewise.
37101 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
37103 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
37105 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
37106 for the target-specific tests. Make sure that we also have the
37107 up-to-date target variables for those tests.
37109 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
37111 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
37112 (PModule::rule): Likewise.
37114 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
37116 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
37117 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
37118 target-specific flags should be prefixed.
37119 (PModule::rule): Likewise.
37121 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
37123 * configure.ac (CMP): Check if cmp is available explicitly.
37125 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
37127 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
37128 (target_cpu): New variable.
37129 (pkglibdir): Use target_cpu instead of host_cpu.
37131 * util/i386/pc/grub-install.in (host_cpu): Removed.
37132 (target_cpu): New variable.
37133 (pkglibdir): Use target_cpu instead of host_cpu.
37135 * util/genmoddep.c: Removed.
37137 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
37138 instead of GRUB_HOST_SIZEOF_VOID_P.
37139 * kern/dl.c: Likewise.
37141 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
37143 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37144 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37145 (GRUB_TARGET_SIZEOF_LONG): ... this.
37146 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37147 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37148 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
37150 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37151 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37152 (GRUB_TARGET_SIZEOF_LONG): ... this.
37153 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37154 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37155 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
37157 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
37158 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
37159 (GRUB_TARGET_SIZEOF_LONG): ... this.
37160 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
37161 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
37163 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
37164 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
37165 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
37166 instead of GRUB_HOST_SIZEOF_LONG.
37167 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
37168 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
37169 GRUB_CPU_WORDS_BIGENDIAN.
37170 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
37171 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
37174 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
37175 (genmoddep_SOURCES): Likewise.
37176 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
37177 (genmoddep_SOURCES): Likewise.
37178 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
37179 (genmoddep_SOURCES): Likewise.
37180 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
37182 (genmoddep_SOURCES): Likewise.
37184 * genmoddep.awk: New file.
37186 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
37187 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
37188 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
37189 (PModule::rule): Likewise.
37190 (Program::rule): Likewise.
37191 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
37192 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
37195 * configure.ac: Rewritten intensively to use host and target
37196 instead of build and host, respectively.
37198 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
37199 (host_cpu): Removed.
37200 (target_cpu): New variable.
37201 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
37202 (BUILD_CC): Removed.
37203 (BUILD_CFLAGS): Likewise.
37204 (BUILD_CPPFLAGS): Likewise.
37205 (TARGET_CC): New variable.
37206 (TARGET_CFLAGS): Likewise.
37207 (TARGET_CPPFLAGS): Likewise.
37208 (TARGET_LDFLAGS): Likewise.
37210 (include): Use target_cpu instead of host_cpu.
37211 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
37213 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
37215 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
37217 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
37218 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
37219 field 'false' to 'exec_on_false'.
37220 (grub_script_create_cmdif): Renamed argument names to reflect above
37223 * normal/execute.c (grub_script_execute_cmdif): Likewise.
37225 * normal/script.c (grub_script_create_cmdif): Likewise.
37227 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
37229 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
37231 (grub_hfsplus_btree_recptr): Likewise.
37232 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
37233 FILEBLOCK both to pass a block number and store next block
37235 (grub_hfsplus_read_block): Rewritten heavily to support an extent
37236 overflow file correctly. Specify errors appropriately, because
37237 fshelp expects that GRUB_ERRNO is set when fails. Reuse
37238 grub_hfsplus_btree_recptr to get the pointer to a found key.
37239 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
37242 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
37244 (_linux_mod_SOURCES): New variable.
37245 (_linux_mod_CFLAGS): Likewise.
37246 (_linux_mod_LDFLAGS): Likewise.
37247 (linux_mod_SOURCES): Likewise.
37248 (linux_mod_CFLAGS): Likewise.
37249 (linux_mod_LDFLAGS): Likewise.
37251 * DISTLIST: Added loader/i386/efi/linux.c,
37252 loader/i386/efi/linux_normal.c and
37253 include/grub/i386/efi/loader.h.
37255 * loader/i386/efi/linux.c: New file.
37256 * loader/i386/efi/linux_normal.c: Likewise.
37257 * include/grub/i386/efi/loader.h: Likewise.
37259 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
37261 * commands/blocklist.c: New file.
37263 * DISTLIST: Added commands/blocklist.c.
37265 * term/efi/console.c (grub_console_highlight_color): Use a lighter
37266 color for the background, and a darker color for the foreground.
37267 (grub_console_checkkey): Return READ_KEY.
37268 (grub_console_cls): Set the background to
37269 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
37271 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
37273 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
37274 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
37276 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
37279 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
37280 BG. The spec is wrong again.
37282 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
37284 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
37286 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
37287 commands/blocklist.c.
37288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37290 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
37291 (blocklist_mod_SOURCES): New variable.
37292 (blocklist_mod_CFLAGS): Likewise.
37293 (blocklist_mod_LDFLAGS): Likewise.
37295 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
37297 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
37299 (lba_mode): Use %eax more intensively to reduce the code size.
37301 2006-05-20 Marco Gerards <marco@gnu.org>
37303 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
37305 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
37307 (script): Accept leading newlines.
37308 (newlines): New rule to describe 0 or more newlines.
37309 (commands): Accept `command' with trailing newline. Fixed the
37310 order in which arguments were passed to `grub_script_add_cmd'.
37311 Accept commands separated by newlines.
37312 (function): Changed to accept newlines.
37313 (menuentry) Rewritten.
37315 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
37316 front of the list, instead of to the end.
37318 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
37320 * util/i386/pc/grub-install.in (bindir): New variable.
37321 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
37322 Shaver <lbgwjl@gmail.com>.
37324 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
37326 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
37327 grub/machine/linux.h
37328 * loader/i386/pc/linux.c: Likewise.
37330 * include/grub/i386/pc/linux.h: Moved to ...
37331 * include/grub/i386/linux.h: ... here.
37333 * include/grub/i386/linux.h (struct linux_kernel_params): New
37336 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
37338 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
37340 (grub_video_vbe_blit_glyph): Likewise.
37341 (grub_video_vbe_blit_bitmap): Likewise.
37342 (grub_video_vbe_blit_render_target): Likewise.
37344 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
37346 * configure.ac (--with-platform): Properly quote the square
37349 2006-05-08 Marco Gerards <marco@gnu.org>
37351 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
37353 (kernel_elf_HEADERS): ...to this. Updated all users.
37354 (grubof_symlist.c): Renamed from this...
37355 (kernel_elf_symlist.c): ...to this. Updated all users.
37356 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
37357 (grubof_SOURCES): Renamed from this...
37358 (kernel_elf_SOURCES): ...to this.
37359 (grubof_HEADERS): Renamed from this...
37360 (kernel_elf_HEADERS): ...to this.
37361 (grubof_CFLAGS): Renamed from this...
37362 (kernel_elf_CFLAGS): ...to this.
37363 (grubof_ASFLAGS): Renamed from this...
37364 (kernel_elf_ASFLAGS): ...to this.
37365 (grubof_LDFLAGS): Renamed from this...
37366 (kernel_elf_LDFLAGS): ...to this.
37368 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
37370 (kernel_elf_HEADERS): ...to this. Updated all users.
37371 (grubof_symlist.c): Renamed from this...
37372 (kernel_elf_symlist.c): ...to this. Updated all users.
37373 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
37374 (grubof_SOURCES): Renamed from this...
37375 (kernel_elf_SOURCES): ...to this.
37376 (grubof_HEADERS): Renamed from this...
37377 (kernel_elf_HEADERS): ...to this.
37378 (grubof_CFLAGS): Renamed from this...
37379 (kernel_elf_CFLAGS): ...to this.
37380 (grubof_ASFLAGS): Renamed from this...
37381 (kernel_elf_ASFLAGS): ...to this.
37382 (grubof_LDFLAGS): Renamed from this...
37383 (kernel_elf_LDFLAGS): ...to this.
37385 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
37386 `kernel.elf' instead of `grubof'.
37388 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
37390 Add --with-platform to configure. Use pkglibdir instead of
37391 pkgdatadir. This is reported by Roger Leigh.
37393 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
37394 (host_vendor): Likewise.
37395 (host_os): Likewise.
37396 (pkgdatadir): Likewise.
37397 (platform): New variable.
37398 (pkglibdir): Likewise.
37399 Use PKGLIBDIR instead of PKGDATADIR.
37401 * util/i386/pc/grub-install.in (datadir): Removed.
37402 (host_vendor): Likewise.
37403 (host_os): Likewise.
37404 (pkgdatadir): Likewise.
37405 (platform): New variable.
37406 (pkglibdir): Likewise.
37407 Use PKGLIBDIR instead of PKGDATADIR.
37409 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
37410 instead of GRUB_DATADIR.
37412 * util/i386/pc/grub-mkimage.c (usage): Likewise.
37414 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37417 * configure.ac (--with-platform): New option.
37418 Use PLATFORM instead of HOST_VENDOR to specify a platform.
37420 * Makefile.in: Include a makefile based on PLATFORM instead of
37422 (pkgdatadir): Not appended by the machine type.
37423 (pkglibdir): Appended by the machine type.
37424 (host_vendor): Removed.
37425 (platform): New variable.
37426 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
37427 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
37428 (uninstall): Likewise.
37430 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
37432 Use the environment context in the menu. Remove the commands
37433 "default" and "timeout", and use variables instead.
37435 * normal/menu.c: Include grub/env.h.
37436 (print_entry): Cast TITLE to silence gcc.
37437 (get_timeout): New function.
37438 (set_timeout): Likewise.
37439 (get_entry_number): Likewise.
37440 (run_menu): Use a default entry, a fallback entry and a timeout
37441 in the environment variables "default", "fallback" and
37442 "timeout". Also, tweak the default entry if it is not within the
37443 current menu entries.
37444 (grub_menu_run): Use a fallback entry in the environment variable
37447 * normal/main.c (read_config_file): Do not initialize
37448 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
37450 (grub_normal_execute): Use a data slot to store the menu.
37452 * include/grub/normal.h (struct grub_menu): Removed default_entry,
37453 fallback_entry and timeout.
37454 (struct grub_menu_list): Removed.
37455 (grub_menu_list_t): Likewise.
37456 (struct grub_context): Likewise.
37457 (grub_context_t): Likewise.
37458 (grub_context_get): Likewise.
37459 (grub_context_get_current_menu): Likewise.
37460 (grub_context_push_menu): Likewise.
37461 (grub_context_pop_menu): Likewise.
37462 (grub_default_init): Likewise.
37463 (grub_default_fini): Likewise.
37464 (grub_timeout_init): Likewise.
37465 (grub_timeout_fini): Likewise.
37467 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
37469 (normal_mod_SOURCES): Removed normal/context.c.
37471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
37472 commands/default.c, commands/timeout.c and normal/context.c.
37473 (normal_mod_SOURCES): Removed normal/context.c.
37475 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
37476 commands/timeout.c and normal/context.c.
37477 (normal_mod_SOURCES): Removed normal/context.c.
37479 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
37480 commands/default.c, commands/timeout.c and normal/context.c.
37481 (normal_mod_SOURCES): Removed normal/context.c.
37483 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
37485 (default_mod_SOURCES): Removed.
37486 (default_mod_CFLAGS): Likewise.
37487 (default_mod_LDFLAGS): Likewise.
37488 (timeout_mod_SOURCES): Removed.
37489 (timeout_mod_CFLAGS): Likewise.
37490 (timeout_mod_LDFLAGS): Likewise.
37492 * DISTLIST: Removed commands/default.c, commands/timeout.c and
37495 * commands/default.c: Removed.
37496 * commands/timeout.c: Likewise.
37497 * normal/context.c: Likewise.
37499 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
37501 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
37503 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
37505 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
37506 "next" to "prev" for readability.
37507 (struct grub_env_sorted_var): New struct.
37508 (grub_env_context): Renamed to ...
37509 (initial_context): ... this.
37510 (grub_env_var_context): Renamed to ...
37511 (current_context): ... this.
37512 (grub_env_find): Look only at CURRENT_CONTEXT.
37513 (grub_env_context_open): Rewritten to copy exported variables from
37515 (grub_env_context_close): Rewritten according to the new
37516 scheme. Also, add an assertion to prevent the initial context from
37518 (grub_env_insert): Removed the code for the sorted list.
37519 (grub_env_remove): Likewise.
37520 (grub_env_export): Simply mark the variable with
37521 GRUB_ENV_VAR_GLOBAL.
37522 (grub_env_set): A cosmetic change for naming consistency.
37523 (grub_env_get): Likewise.
37524 (grub_env_unset): Likewise.
37525 (grub_env_iterate): Rewritten to sort variables within this
37527 (grub_register_variable_hook): Fixed for naming consistency. Call
37528 grub_env_find again, only if NAME is not found at the first time.
37529 (mangle_data_slot_name): New function.
37530 (grub_env_set_data_slot): Likewise.
37531 (grub_env_get_data_slot): Likewise.
37532 (grub_env_unset_data_slot): Likewise.
37534 * include/grub/env.h (grub_env_var_type): New enum.
37535 (GRUB_ENV_VAR_LOCAL): New constant.
37536 (GRUB_ENV_VAR_GLOBAL): Likewise.
37537 (GRUB_ENV_VAR_DATA): Likewise.
37538 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
37540 (grub_env_set): Replace VAR with NAME for consistency.
37541 (grub_register_variable_hook): Likewise.
37542 (grub_env_export): Specify the name of the argument.
37543 (grub_env_set_data_slot): New prototype.
37544 (grub_env_get_data_slot): Likewise.
37545 (grub_env_unset_data_slot): Likewise.
37547 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37549 Extend the loader so that GRUB can accept a loader which comes
37550 back to GRUB when a loaded image exits. Also, this change adds
37551 support for a chainloader on EFI.
37553 * term/efi/console.c: Include grub/misc.h.
37554 (grub_console_checkkey): Display a scan code on the top for
37555 debugging. This will be removed once the EFI port gets stable.
37556 Correct the scan code mapping.
37558 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
37559 allocate memory from larger regions, in order to reduce the number
37560 of allocated regions. Otherwise, the MacOSX loader panics.
37561 (filter_memory_map): Avoid less than 1MB for compatibility with
37563 (add_memory_regions): Allocate from the tail of a region, if
37564 possible, to avoid allocating a region near to 1MB, for the MacOSX
37567 * kern/efi/init.c (grub_efi_set_prefix): Specify
37568 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
37570 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
37571 argument IMAGE_HANDLE and specify it to get a loaded image.
37572 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
37573 grub_efi_get_loaded_image.
37574 (grub_efi_get_filename): Divide the length by the size of
37576 (grub_efi_get_device_path): New function.
37577 (grub_efi_print_device_path): Print End Device Path nodes. Divide
37578 the length by the size of grub_efi_char16_t for a file path device
37581 * kern/loader.c (grub_loader_noreturn): New variable.
37582 (grub_loader_set): Accept a new argument NORETURN. Set
37583 GRUB_LOADER_NORETURN to NORETURN.
37584 All callers changed.
37585 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
37588 * include/grub/efi/efi.h (grub_efi_get_device_path): New
37590 (grub_efi_get_loaded_image): Take an argument to specify an image
37593 * include/grub/loader.h (grub_loader_set): Added one more argument
37596 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
37597 instead of grub_efi_open_protocol.
37598 (grub_efidisk_get_device_name): Likewise.
37599 (grub_efidisk_close): Print a newline.
37600 (grub_efidisk_get_device_handle): Fixed to use
37601 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
37602 GRUB_EFI_DEVICE_PATH_TYPE.
37604 * disk/efi/efidisk.c (device_path_guid): Moved to ...
37605 * kern/efi/efi.c (device_path_guid): ... here.
37607 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
37609 (kernel_mod_HEADERS): Added efi/disk.h.
37610 (_chain_mod_SOURCES): New variable.
37611 (_chain_mod_CFLAGS): Likewise.
37612 (_chain_mod_LDFLAGS): Likewise.
37613 (chain_mod_SOURCES): Likewise.
37614 (chain_mod_CFLAGS): Likewise.
37615 (chain_mod_LDFLAGS): Likewise.
37617 * DISTLIST: Added include/grub/efi/chainloader.h,
37618 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
37620 * include/grub/efi/chainloader.h: New file.
37621 * loader/efi/chainloader.c: Likewise.
37622 * loader/efi/chainloader_normal.c: Likewise.
37624 2006-04-30 Marco Gerards <marco@gnu.org>
37626 * commands/configfile.c (grub_cmd_source): New function.
37627 (GRUB_MOD_INIT): Register the commands `source' and `.'.
37628 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
37630 2006-04-30 Marco Gerards <marco@gnu.org>
37632 * normal/execute.c (grub_script_execute_cmd): Change the return
37633 type to `grub_err_t'. Correctly return the error.
37634 (grub_script_execute_cmdline): In case a command line is not a
37635 command or a function, try to interpret it as an assignment.
37637 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
37639 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
37640 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
37641 skip a node whose name is obviously invalid as UTF-16,
37642 i.e. contains a NUL character. Stop the iteration when the last
37643 directory entry is found. Instead of using the return value of
37644 grub_hfsplus_btree_iterate_node, store the value in RET and use
37645 it, because the iterator can be stopped by the last directory
37648 2006-04-30 Marco Gerards <marco@gnu.org>
37650 * include/grub/env.h (grub_env_export): New prototype. Reported
37651 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
37653 2006-04-30 Marco Gerards <marco@gnu.org>
37655 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
37656 size of the extents in a catalog file record.
37658 2006-04-29 Marco Gerards <marco@gnu.org>
37660 * commands/configfile.c (grub_cmd_configfile): Execute the
37661 configfile within its own context.
37663 * include/grub/env.h (grub_env_context_open): New prototype.
37664 (grub_env_context_close): Likewise.
37666 * kern/env.c (grub_env): Removed.
37667 (grub_env_sorted): Likewise.
37668 (grub_env_context): New variable.
37669 (grub_env_var_context): Likewise.
37670 (grub_env_find): Search both the active context and the global
37672 (grub_env_context_open): New function.
37673 (grub_env_context_close): Likewise.
37674 (grub_env_insert): Likewise.
37675 (grub_env_remove): Likewise.
37676 (grub_env_export): Likewise.
37677 (grub_env_set): Changed to use helper functions to avoid code
37679 (grub_env_iterate): Rewritten so both the current context and the
37680 global context are being used.
37682 * normal/command.c (export_command): New function.
37683 (grub_command_init): Register the `export' function.
37685 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
37687 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
37688 explicitly to suppress gcc's warnings.
37689 * fs/fat.c (grub_fat_find_dir): Likewise.
37690 (grub_fat_label): Likewise.
37691 * fs/xfs.c (grub_xfs_read_inode): Likewise.
37692 (grub_xfs_mount): Likewise.
37693 (grub_xfs_label): Likewise.
37694 * fs/affs.c (grub_affs_mount): Likewise.
37695 (grub_affs_label): Likewise.
37696 (grub_affs_iterate_dir): Likewise.
37697 * fs/sfs.c (grub_sfs_mount): Likewise.
37698 (grub_sfs_iterate_dir): Likewise.
37699 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
37700 * fs/hfs.c (grub_hfs_mount): Likewise.
37701 (grub_hfs_cmp_catkeys): Likewise.
37702 (grub_hfs_find_dir): Likewise.
37703 (grub_hfs_dir): Likewise.
37704 (grub_hfs_label): Likewise.
37705 * fs/jfs.c (grub_jfs_mount): Likewise.
37706 (grub_jfs_opendir): Likewise.
37707 (grub_jfs_getent): Likewise.
37708 (grub_jfs_lookup_symlink): Likewise.
37709 (grub_jfs_label): Likewise.
37710 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
37711 (grub_hfsplus_iterate_dir): Likewise.
37712 (grub_hfsplus_btree_iterate_node): Made static.
37714 * util/grub-emu.c (prefix): New variable.
37715 (grub_machine_set_prefix): New function.
37716 (main): Do not set the environment variable "prefix" here. Only
37717 set PREFIX, which is used later by grub_machine_set_prefix.
37719 * include/grub/video.h: Do not include grub/symbol.h.
37720 (grub_video_register): Not exported. This symbol is not defined in
37722 (grub_video_unregister): Likewise.
37723 (grub_video_iterate): Likewise.
37724 (grub_video_setup): Likewise.
37725 (grub_video_restore): Likewise.
37726 (grub_video_get_info): Likewise.
37727 (grub_video_get_blit_format): Likewise.
37728 (grub_video_set_palette): Likewise.
37729 (grub_video_get_palette): Likewise.
37730 (grub_video_set_viewport): Likewise.
37731 (grub_video_get_viewport): Likewise.
37732 (grub_video_map_color): Likewise.
37733 (grub_video_map_rgb): Likewise.
37734 (grub_video_map_rgba): Likewise.
37735 (grub_video_fill_rect): Likewise.
37736 (grub_video_blit_glyph): Likewise.
37737 (grub_video_blit_bitmap): Likewise.
37738 (grub_video_blit_render_target): Likewise.
37739 (grub_video_scroll): Likewise.
37740 (grub_video_swap_buffers): Likewise.
37741 (grub_video_create_render_target): Likewise.
37742 (grub_video_delete_render_target): Likewise.
37743 (grub_video_set_active_render_target): Likewise.
37745 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
37747 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
37749 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
37750 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37751 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37752 instead of $(srcdir)/genkernsyms.sh.
37754 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
37755 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37756 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37757 instead of $(srcdir)/genkernsyms.sh.
37759 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
37760 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37761 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37762 instead of $(srcdir)/genkernsyms.sh.
37764 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
37765 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
37766 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
37767 instead of $(srcdir)/genkernsyms.sh.
37769 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
37772 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
37774 (gensymlist.sh): New target.
37775 (genkernsyms.sh): Likewise.
37777 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
37778 genkernsyms.sh.in and gensymlist.sh.in.
37780 * genkernsyms.sh: Removed.
37781 * gensymlist.sh: Likewise.
37783 * genkernsyms.sh.in: New file.
37784 * gensymlist.sh.in: Likewise.
37786 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37788 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
37789 clobber "prefix", since we may have already set it manually.
37791 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
37793 * kern/misc.c (abort): New alias for grub_abort.
37795 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
37797 A new machine-specific function "grub_machine_set_prefix" is
37798 defined. This is called after loading modules, so that a prefix
37799 initialization can use modules. Also, this change adds an
37800 intensive debugging feature for the memory manager via the
37801 configure option "--enable-mm-debug".
37803 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
37806 * kern/sparc64/ieee1275/init.c (abort): Removed.
37807 (grub_stop): Likewise.
37808 (grub_exit): New function.
37809 (grub_set_prefix): Renamed to ...
37810 (grub_machine_set_prefix): ... this.
37811 (grub_machine_init): Do not call grub_set_prefix.
37813 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
37814 (grub_machine_set_prefix): ... this.
37815 (grub_machine_init): Do not call grub_set_prefix.
37817 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
37818 (grub_machine_init): Do not set the prefix here.
37820 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
37822 * kern/efi/init.c: Include grub/mm.h.
37823 (grub_efi_set_prefix): New function.
37825 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
37826 (grub_efi_get_filename): New function.
37827 (grub_print_device_path): Renamed to ...
37828 (grub_efi_print_device_path): ... this.
37830 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
37831 [MM_DEBUG] (grub_realloc): Likewise.
37832 [MM_DEBUG] (grub_free): Likewise.
37833 [MM_DEBUG] (grub_memalign): Likewise.
37834 [MM_DEBUG] (grub_mm_debug): New variable.
37835 [MM_DEBUG] (grub_debug_malloc): New function.
37836 [MM_DEBUG] (grub_debug_free): New function.
37837 [MM_DEBUG] (grub_debug_realloc): New function.
37838 [MM_DEBUG] (grub_debug_memalign): New function.
37840 * kern/misc.c (grub_abort): Print a newline to distinguish
37843 * kern/main.c (grub_main): Call grub_machine_set_prefix and
37844 grub_set_root_dev after loading modules. This is necessary when
37845 setting a prefix depends on modules.
37847 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
37848 (grub_efi_print_device_path): ... this.
37849 (grub_efi_get_filename): New prototype.
37850 (grub_efi_set_prefix): Likewise.
37852 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
37854 (grub_efidisk_get_device_handle): New prototype.
37855 (grub_efidisk_get_device_name): Likewise.
37857 * include/grub/mm.h: Include config.h.
37858 (MM_DEBUG): Removed.
37859 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
37860 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
37861 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
37862 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
37863 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
37864 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
37865 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
37866 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
37867 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
37869 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
37871 * disk/efi/efidisk.c: Include grub/partition.h.
37872 (iterate_child_devices): New function.
37873 (add_device): First, compare only last device path nodes, so that
37874 devices are sorted by the types.
37875 (grub_efidisk_get_device_handle): New function.
37876 (grub_efidisk_get_device_name): Likewise.
37878 * configure.ac (--enable-mm-debug): New option to enable the
37879 memory manager debugging feature. This makes the binary much
37880 bigger, so is disabled by default.
37882 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
37884 Use grub_abort instead of grub_stop, and grub_exit must be
37885 define in each architecture now. Also, this change adds support
37888 * util/i386/pc/grub-probefs.c: Include grub/term.h.
37889 (grub_getkey): New function.
37890 (grub_term_get_current): Likewise.
37892 * util/i386/pc/grub-setup.c: Include grub/term.h.
37893 (grub_getkey): New function.
37894 (grub_term_get_current): Likewise.
37896 * util/misc.c (grub_stop): Renamed to ...
37897 (grub_exit): ... this.
37899 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
37900 (grub_exit): ... this.
37901 (grub_machine_init): Use grub_abort instead of abort.
37902 (grub_stop): Removed.
37904 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
37907 * kern/i386/pc/startup.S (grub_exit): New function.
37908 (cold_reboot): New label.
37910 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
37911 (grub_efi_init): Call grub_efidisk_init.
37912 (grub_efi_fini): Call grub_efidisk_fini.
37914 * kern/efi/efi.c: Include grub/mm.h.
37915 (grub_efi_console_control_guid): Renamed to ...
37916 (console_control_guid): ... this.
37917 (grub_efi_loaded_image_guid): Renamed to ...
37918 (loaded_image_guid): ... this.
37919 (grub_efi_locate_handle): New function.
37920 (grub_efi_open_protocol): Likewise.
37921 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
37922 GRUB_EFI_CONSOLE_CONTROL_GUID.
37923 (grub_efi_exit): Removed.
37924 (grub_stop): Likewise.
37925 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
37926 (grub_exit): New function.
37927 (grub_print_device_path): Likewise.
37929 * kern/rescue.c (grub_rescue_cmd_exit): New function.
37930 (grub_enter_rescue_mode): Register "exit".
37932 * kern/misc.c (grub_real_dprintf): A cosmetic change.
37933 (grub_abort): New function.
37935 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
37937 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
37939 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
37941 * include/grub/efi/efi.h (grub_efi_exit): Removed.
37942 (grub_print_device_path): New prototype.
37943 (grub_efi_locate_handle): Likewise.
37944 (grub_efi_open_protocol): Likewise.
37946 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
37947 * disk/efi/efidisk.c: Likewise.
37949 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
37951 * include/grub/efi/console_control.h
37952 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
37954 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
37955 last 8 bytes as an array.
37956 (GRUB_EFI_DISK_IO_GUID): New macro.
37957 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
37958 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
37959 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
37961 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
37962 (struct grub_efi_device_path): Rename the member "sub_type" to
37964 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
37965 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
37966 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
37967 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
37968 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
37969 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
37970 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
37971 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
37972 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
37973 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
37974 (struct grub_efi_pci_device_path): New structure.
37975 (grub_efi_pci_device_path_t): New type.
37976 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
37977 (struct grub_efi_pccard_device_path): New structure.
37978 (grub_efi_pccard_device_path_t): New type.
37979 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
37980 (struct grub_efi_memory_mapped_device_path): New structure.
37981 (grub_efi_memory_mapped_device_path_t): New type.
37982 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
37983 (struct grub_efi_vendor_device_path): New structure.
37984 (grub_efi_vendor_device_path_t): New type.
37985 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
37986 (struct grub_efi_controller_device_path): New structure.
37987 (grub_efi_controller_device_path_t): New type.
37988 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
37989 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
37990 (struct grub_efi_acpi_device_path): New structure.
37991 (grub_efi_acpi_device_path_t): New type.
37992 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
37993 (struct grub_efi_expanded_acpi_device_path): New structure.
37994 (grub_efi_expanded_acpi_device_path_t): New type.
37995 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
37996 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
37997 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
37998 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
37999 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
38000 (struct grub_efi_atapi_device_path): New structure.
38001 (grub_efi_atapi_device_path_t): New type.
38002 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
38003 (struct grub_efi_fibre_channel_device_path): New structure.
38004 (grub_efi_fibre_channel_device_path_t): New type.
38005 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
38006 (struct grub_efi_1394_device_path): New structure.
38007 (grub_efi_1394_device_path_t): New type.
38008 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
38009 (struct grub_efi_usb_device_path): New structure.
38010 (grub_efi_usb_device_path_t): New type.
38011 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
38012 (struct grub_efi_usb_class_device_path): New structure.
38013 (grub_efi_usb_class_device_path_t): New type.
38014 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
38015 (struct grub_efi_i2o_device_path): New structure.
38016 (grub_efi_i2o_device_path_t): New type.
38017 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
38018 (struct grub_efi_mac_address_device_path): New structure.
38019 (grub_efi_mac_address_device_path_t): New type.
38020 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
38021 (struct grub_efi_ipv4_device_path): New structure.
38022 (grub_efi_ipv4_device_path_t): New type.
38023 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
38024 (struct grub_efi_ipv6_device_path): New structure.
38025 (grub_efi_ipv6_device_path_t): New type.
38026 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
38027 (struct grub_efi_infiniband_device_path): New structure.
38028 (grub_efi_infiniband_device_path_t): New type.
38029 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
38030 (struct grub_efi_uart_device_path): New structure.
38031 (grub_efi_uart_device_path_t): New type.
38032 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
38033 (struct grub_efi_vendor_messaging_device_path): New structure.
38034 (grub_efi_vendor_messaging_device_path_t): New type.
38035 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
38036 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
38037 (struct grub_efi_hard_drive_device_path): New structure.
38038 (grub_efi_hard_drive_device_path_t): New type.
38039 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
38040 (struct grub_efi_cdrom_device_path): New structure.
38041 (grub_efi_cdrom_device_path_t): New type.
38042 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
38043 (struct grub_efi_vendor_media_device_path): New structure.
38044 (grub_efi_vendor_media_device_path_t): New type.
38045 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
38046 (struct grub_efi_file_path_device_path): New structure.
38047 (grub_efi_file_path_device_path_t): New type.
38048 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
38049 (struct grub_efi_protocol_device_path): New structure.
38050 (grub_efi_protocol_device_path_t): New type.
38051 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
38052 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
38053 (struct grub_efi_bios_device_path): New structure.
38054 (grub_efi_bios_device_path_t): New type.
38055 (struct grub_efi_disk_io): New structure.
38056 (grub_efi_disk_io_t): New type.
38057 (struct grub_efi_block_io_media): New structure.
38058 (grub_efi_block_io_media_t): New type.
38059 (struct grub_efi_block_io): New structure.
38060 (grub_efi_block_io_t): New type.
38062 * include/grub/misc.h (grub_stop): Removed.
38063 (grub_exit): New prototype.
38064 (grub_abort): Likewise.
38066 * include/grub/disk.h (enum grub_disk_dev_id): Added
38067 GRUB_DISK_DEVICE_EFIDISK_ID.
38069 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
38070 disk/efi/efidisk.c.
38071 (kernel_syms.lst): Remove the target if an error occurs.
38073 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
38075 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
38076 as it was simply too buggy.
38078 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
38080 * kern/misc.c (grub_lltoa): New function.
38081 (grub_vsprintf): Added support for the long long suffix,
38084 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
38086 * Makefile.in (LDFLAGS): Add variable.
38087 (LD): Remove variable.
38088 * configure.ac: Add -m32 to LDFLAGS.
38089 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
38090 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
38091 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
38092 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
38093 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
38095 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
38096 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
38097 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
38099 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
38101 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
38102 length for unknown glyph.
38104 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
38106 Add support for pre-loaded modules into the EFI port.
38108 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
38109 completely. Accept one more argument DIR. The caller has changed.
38111 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
38113 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
38114 (grub_efi_loaded_image_guid): New variable.
38115 (grub_efi_get_loaded_image): New function.
38116 (grub_arch_modules_addr): Likewise.
38118 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
38121 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
38122 (struct grub_efi_loaded_image): New structure.
38123 (grub_efi_loaded_image_t): New type.
38125 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
38127 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
38128 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
38129 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
38131 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
38133 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
38135 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
38137 * DISTLIST: Added include/grub/efi/console.h,
38138 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
38139 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
38141 * include/grub/efi/console.h: New file.
38142 * include/grub/efi/time.h: Likewise.
38143 * include/grub/i386/efi/kernel.h: Likewise.
38144 * kern/efi/init.c: Likewise.
38145 * kern/efi/mm.c: Likewise.
38146 * term/efi/console.c: Likewise.
38148 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
38149 (grub_stop): Removed.
38150 (grub_get_rtc): Likewise.
38151 (grub_machine_init): Simply call grub_efi_init.
38152 (grub_machine_fini): Call grub_efi_fini.
38154 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
38155 (grub_efi_output_string): Removed.
38156 (grub_efi_stall): New function.
38157 (grub_stop): Likewise.
38158 (grub_get_rtc): Likewise.
38160 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
38161 (grub_efi_stall): New prototype.
38162 (grub_efi_allocate_pages): Likewise.
38163 (grub_efi_free_pages): Likewise.
38164 (grub_efi_get_memory_map): Likewise.
38165 (grub_efi_mm_init): Likewise.
38166 (grub_efi_mm_fini): Likewise.
38167 (grub_efi_init): Likewise.
38168 (grub_efi_fini): Likewise.
38170 * include/grub/i386/efi/time.h: Do not include
38171 grub/symbol.h. Include grub/efi/time.h.
38172 (GRUB_TICKS_PER_SECOND): Removed.
38173 (grub_get_rtc): Likewise.
38175 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
38176 Added padding. The EFI spec is buggy.
38177 (GRUB_EFI_BLACK): New macro.
38178 (GRUB_EFI_BLUE): Likewise.
38179 (GRUB_EFI_GREEN): Likewise.
38180 (GRUB_EFI_CYAN): Likewise.
38181 (GRUB_EFI_RED): Likewise.
38182 (GRUB_EFI_MAGENTA): Likewise.
38183 (GRUB_EFI_BROWN): Likewise.
38184 (GRUB_EFI_LIGHTGRAY): Likewise.
38185 (GRUB_EFI_BRIGHT): Likewise.
38186 (GRUB_EFI_DARKGRAY): Likewise.
38187 (GRUB_EFI_LIGHTBLUE): Likewise.
38188 (GRUB_EFI_LIGHTGREEN): Likewise.
38189 (GRUB_EFI_LIGHTCYAN): Likewise.
38190 (GRUB_EFI_LIGHTRED): Likewise.
38191 (GRUB_EFI_LIGHTMAGENTA): Likewise.
38192 (GRUB_EFI_YELLOW): Likewise.
38193 (GRUB_EFI_WHITE): Likewise.
38194 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
38195 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
38196 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
38197 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
38198 (GRUB_EFI_BACKGROUND_RED): Likewise.
38199 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
38200 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
38201 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
38202 (GRUB_EFI_TEXT_ATTR): Likewise.
38204 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
38205 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
38206 (kernel_mod_HEADERS): Added efi/time.h.
38208 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
38210 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
38211 include/grub/efi/api.h, include/grub/efi/console_control.h,
38212 include/grub/efi/efi.h, include/grub/efi/pe32.h,
38213 include/grub/i386/efi/time.h, kern/efi/efi.c,
38214 kern/i386/efi/init.c, kern/i386/efi/startup.S,
38215 and util/i386/efi/grub-mkimage.c.
38217 * Makefile.in (RMKFILES): Added i386-efi.rmk.
38219 * genmk.rb (PModule#rule): Do not export symbols if
38220 #{prefix}_EXPORTS is set to "no".
38222 * conf/i386-efi.mk: New file.
38223 * conf/i386-efi.rmk: Likewise.
38224 * include/grub/efi/api.h: Likewise.
38225 * include/grub/efi/console_control.h: Likewise.
38226 * include/grub/efi/efi.h: Likewise.
38227 * include/grub/efi/pe32.h: Likewise.
38228 * include/grub/i386/efi/time.h: Likewise.
38229 * kern/efi/efi.c: Likewise.
38230 * kern/i386/efi/init.c: Likewise.
38231 * kern/i386/efi/startup.S: Likewise.
38232 * util/i386/efi/grub-mkimage.c: Likewise.
38234 2006-04-17 Marco Gerards <marco@gnu.org>
38236 * include/grub/script.h: Include <grub/parser.h> and
38237 "grub_script.tab.h".
38238 (struct grub_lexer_param): New struct.
38239 (struct grub_parser_param): Likewise.
38240 (grub_script_create_arglist): Pass the state in an argument.
38241 (grub_script_add_arglist): Likewise.
38242 (grub_script_create_cmdline): Likewise.
38243 (grub_script_create_cmdblock): Likewise.
38244 (grub_script_create_cmdif): Likewise.
38245 (grub_script_create_cmdmenu): Likewise.
38246 (grub_script_add_cmd): Likewise.
38247 (grub_script_arg_add): Likewise.
38248 (grub_script_lexer_ref): Likewise.
38249 (grub_script_lexer_deref): Likewise.
38250 (grub_script_lexer_record_start): Likewise.
38251 (grub_script_lexer_record_stop): Likewise.
38252 (grub_script_mem_record): Likewise.
38253 (grub_script_mem_record_stop): Likewise.
38254 (grub_script_malloc): Likewise.
38255 (grub_script_yylex): Likewise.
38256 (grub_script_yyparse): Likewise.
38257 (grub_script_yyerror): Likewise.
38258 (grub_script_yylex): Likewise.
38259 (grub_script_lexer_init): Return the state.
38261 * normal/lexer.c (grub_script_lexer_state): Removed variable.
38262 (grub_script_lexer_done): Likewise.
38263 (grub_script_lexer_getline): Likewise.
38264 (grub_script_lexer_refs): Likewise.
38265 (script): Likewise.
38266 (newscript): Likewise.
38267 (record): Likewise.
38268 (recording): Likewise.
38269 (recordpos): Likewise.
38270 (recordlen): Likewise.
38271 (grub_script_lexer_init): Return the state instead of setting
38273 (grub_script_lexer_ref): Use the newly added argument for state
38274 instead of globals.
38275 (grub_script_lexer_deref): Likewise.
38276 (grub_script_lexer_record_start): Likewise.
38277 (grub_script_lexer_record_stop): Likewise.
38278 (recordchar): Likewise.
38279 (nextchar): Likewise.
38280 (grub_script_yylex2): Likewise.
38281 (grub_script_yylex): Likewise.
38282 (grub_script_yyerror): Likewise.
38284 * normal/parser.y (func_mem): Removed variable.
38285 (menu_entry): Likewise.
38287 (%lex-param): New parser option.
38288 (%parse-param): Likewise.
38289 (script): Always return the AST.
38290 (argument): Pass the state around.
38291 (arguments): Likewise.
38292 (grubcmd): Likewise.
38293 (commands): Likewise.
38294 (function): Likewise.
38295 (menuentry): Likewise.
38296 (if_statement): Likewise.
38299 * normal/script.c (grub_script_memused): Removed variable.
38300 (grub_script_parsed): Likewise.
38301 (grub_script_malloc): Added a state argument. Use that instead of
38303 (grub_script_mem_record): Likewise.
38304 (grub_script_mem_record_stop): Likewise.
38305 (grub_script_arg_add): Likewise.
38306 (grub_script_add_arglist): Likewise.
38307 (grub_script_create_cmdline): Likewise.
38308 (grub_script_create_cmdif): Likewise.
38309 (grub_script_create_cmdmenu): Likewise.
38310 (grub_script_add_cmd): Likewise.
38311 (grub_script_parse): Setup the state before calling the parser.
38313 2006-04-16 Marco Gerards <marco@gnu.org>
38315 * normal/command.c (grub_command_init): Remove the title command.
38317 * normal/lexer.c (grub_script_yylex): Renamed from this...
38318 (grub_script_yylex2): ... to this.
38319 (grub_script_yylex): New function. Temporary
38320 introduced to filter some tokens.
38321 (grub_script_yyerror): Print a newline.
38323 * normal/main.c (read_config_file): Output information about the
38324 lines that contain errors. Wait for a key after all lines have
38325 been processed. Don't return an empty menu.
38327 * normal/parser.y (func_mem): Don't initialize.
38328 (menu_entry): Likewise.
38329 (err): New variable.
38330 (script): Don't return anything when an error was encountered.
38331 (ws, returns): Removed rules.
38332 (argument): Disabled concatenated variable support.
38333 (arguments): Remove explicit separators.
38334 (grubcmd): Likewise.
38335 (function): Likewise.
38336 (menuentry): Likewise.
38338 (commands): Likewise. Add error handling.
38340 * normal/script.c (grub_script_create_cmdline): If
38341 `grub_script_parsed' is 0, assume the parser encountered an error.
38343 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
38345 * configure.ac: Add support for EFI. Fix the typo
38346 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
38348 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
38350 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
38351 foreign multibyte characters should be shown correctly.
38353 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
38355 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
38357 (read_config_file): Made it to close file before returning.
38359 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
38361 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
38362 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
38363 video/i386/pc/vbefill.c.
38365 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
38366 video/i386/pc/vbefill.c.
38368 * include/grub/video.h (grub_video_blit_format): New enum.
38369 (grub_video_mode_info): Added new member blit_format.
38370 (grub_video_get_blit_format): New function prototype.
38372 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
38373 function prototype.
38374 (grub_video_vbe_map_rgb): Likewise.
38375 (grub_video_vbe_unmap_color): Likewise.
38377 * include/grub/i386/pc/vbeblit.h: New file.
38379 * include/grub/i386/pc/vbefill.h: New file.
38381 * video/video.c (grub_video_get_blit_format): New function.
38382 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
38383 (grub_video_vbe_map_rgb): Likewise.
38384 (grub_video_vbe_unmap_color): Likewise.
38386 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
38388 (grub_video_vbe_blit_render_target): Changed to use more optimized
38390 (grub_video_vbe_setup): Added detection for optimized settings.
38391 (grub_video_vbe_create_render_target): Likewise.
38393 * video/i386/pc/vbeblit.c: New file.
38395 * video/i386/pc/vbefill.c: New file.
38397 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
38399 * font/manager.c (grub_font_get_glyph): Removed font fixup from
38402 * util/unifont2pff.rb: ... and moved it to here. Improved argument
38403 parsing to support both hex and dec ranges. If filename was missing
38404 show usage information.
38406 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
38408 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
38409 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
38411 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
38412 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
38413 (video_mod_SOURCES): Added.
38414 (video_mod_CFLAGS): Likewise.
38415 (video_mod_LDFLAGS): Likewise.
38416 (gfxterm_mod_SOURCES): Likewise.
38417 (gfxterm_mod_CFLAGS): Likewise.
38418 (gfxterm_mod_LDFLAGS): Likewise.
38419 (videotest_mod_SOURCES): Likewise.
38420 (videotest_mod_CFLAGS): Likewise.
38421 (videotest_mod_LDFLAGS): Likewise.
38422 (vesafb_mod_SOURCES): Removed.
38423 (vesafb_mod_CFLAGS): Likewise.
38424 (vesafb_mod_LDFLAGS): Likewise.
38425 (vga_mod_SOURCES): Likewise.
38426 (vga_mod_CFLAGS): Likewise.
38427 (vga_mod_LDFLAGS): Likewise.
38429 * commands/videotest.c: New file.
38431 * font/manager.c (fill_with_default_glyph): Modified to use
38433 (grub_font_get_glyph): Likewise.
38434 (fontmanager): Renamed from this...
38435 (font_manager): ... to this.
38437 * include/grub/font.h (grub_font_glyph): Added new structure.
38438 (grub_font_get_glyph): Modified to use grub_font_glyph.
38440 * include/grub/misc.h (grub_abs): Added as inline function.
38442 * include/grub/video.h: New file.
38444 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
38445 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
38446 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
38447 (grub_vbe_get_controller_info): Renamed from this...
38448 (grub_vbe_bios_get_controller_info): ... to this.
38449 (grub_vbe_get_mode_info): Renamed from this...
38450 (grub_vbe_bios_get_mode_info): ... to this.
38451 (grub_vbe_set_mode): Renamed from this...
38452 (grub_vbe_bios_set_mode): ... to this.
38453 (grub_vbe_get_mode): Renamed from this...
38454 (grub_vbe_bios_get_mode): ... to this.
38455 (grub_vbe_set_memory_window): Renamed from this...
38456 (grub_vbe_bios_set_memory_window): ... to this.
38457 (grub_vbe_get_memory_window): Renamed from this...
38458 (grub_vbe_bios_get_memory_window): ... to this.
38459 (grub_vbe_set_scanline_length): Renamed from this...
38460 (grub_vbe_set_scanline_length): ... to this.
38461 (grub_vbe_get_scanline_length): Renamed from this...
38462 (grub_vbe_bios_get_scanline_length): ... to this.
38463 (grub_vbe_set_display_start): Renamed from this...
38464 (grub_vbe_bios_set_display_start): ... to this.
38465 (grub_vbe_get_display_start): Renamed from this...
38466 (grub_vbe_bios_get_display_start): ... to this.
38467 (grub_vbe_set_palette_data): Renamed from this...
38468 (grub_vbe_bios_set_palette_data): ... to this.
38469 (grub_vbe_set_pixel_rgb): Removed.
38470 (grub_vbe_set_pixel_index): Likewise.
38472 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
38474 (grub_vbe_bios_get_controller_info): ... to this.
38475 (grub_vbe_get_mode_info): Renamed from this...
38476 (grub_vbe_bios_get_mode_info): ... to this.
38477 (grub_vbe_set_mode): Renamed from this...
38478 (grub_vbe_bios_set_mode): ... to this.
38479 (grub_vbe_get_mode): Renamed from this...
38480 (grub_vbe_bios_get_mode): ... to this.
38481 (grub_vbe_set_memory_window): Renamed from this...
38482 (grub_vbe_bios_set_memory_window): ... to this.
38483 (grub_vbe_get_memory_window): Renamed from this...
38484 (grub_vbe_bios_get_memory_window): ... to this.
38485 (grub_vbe_set_scanline_length): Renamed from this...
38486 (grub_vbe_set_scanline_length): ... to this.
38487 (grub_vbe_get_scanline_length): Renamed from this...
38488 (grub_vbe_bios_get_scanline_length): ... to this.
38489 (grub_vbe_set_display_start): Renamed from this...
38490 (grub_vbe_bios_set_display_start): ... to this.
38491 (grub_vbe_get_display_start): Renamed from this...
38492 (grub_vbe_bios_get_display_start): ... to this.
38493 (grub_vbe_set_palette_data): Renamed from this...
38494 (grub_vbe_bios_set_palette_data): ... to this.
38495 (grub_vbe_bios_get_controller_info): Fixed problem with registers
38496 getting corrupted after calling it. Added more pushes and pops.
38497 (grub_vbe_bios_set_mode): Likewise.
38498 (grub_vbe_bios_get_mode): Likewise.
38499 (grub_vbe_bios_get_memory_window): Likewise.
38500 (grub_vbe_bios_set_scanline_length): Likewise.
38501 (grub_vbe_bios_get_scanline_length): Likewise.
38502 (grub_vbe_bios_get_display_start): Likewise.
38503 (grub_vbe_bios_set_palette_data): Likewise.
38505 * normal/cmdline.c (cl_set_pos): Refresh the screen.
38506 (cl_insert): Likewise.
38507 (cl_delete): Likewise.
38509 * term/gfxterm.c: New file.
38511 * term/i386/pc/vesafb.c: Removed file.
38513 * video/video.c: New file.
38515 * video/i386/pc/vbe.c (real2pm): Added new function.
38516 (grub_video_vbe_draw_pixel): Likewise.
38517 (grub_video_vbe_get_video_ptr): Likewise.
38518 (grub_video_vbe_get_pixel): Likewise
38519 (grub_video_vbe_init): Likewise.
38520 (grub_video_vbe_fini): Likewise.
38521 (grub_video_vbe_setup): Likewise.
38522 (grub_video_vbe_get_info): Likewise.
38523 (grub_video_vbe_set_palette): Likewise.
38524 (grub_video_vbe_get_palette): Likewise.
38525 (grub_video_vbe_set_viewport): Likewise.
38526 (grub_video_vbe_get_viewport): Likewise.
38527 (grub_video_vbe_map_color): Likewise.
38528 (grub_video_vbe_map_rgb): Likewise.
38529 (grub_video_vbe_map_rgba): Likewise.
38530 (grub_video_vbe_unmap_color): Likewise.
38531 (grub_video_vbe_fill_rect): Likewise.
38532 (grub_video_vbe_blit_glyph): Likewise.
38533 (grub_video_vbe_blit_bitmap): Likewise.
38534 (grub_video_vbe_blit_render_target): Likewise.
38535 (grub_video_vbe_scroll): Likewise.
38536 (grub_video_vbe_swap_buffers): Likewise.
38537 (grub_video_vbe_create_render_target): Likewise.
38538 (grub_video_vbe_delete_render_target): Likewise.
38539 (grub_video_vbe_set_active_render_target): Likewise.
38540 (grub_vbe_set_pixel_rgb): Remove function.
38541 (grub_vbe_set_pixel_index): Likewise.
38542 (index_color_mode): Remove static variable.
38543 (active_mode): Likewise.
38544 (framebuffer): Likewise.
38545 (bytes_per_scan_line): Likewise.
38546 (grub_video_vbe_adapter): Added new static variable.
38547 (framebuffer): Likewise.
38548 (render_target): Likewise.
38549 (initial_mode): Likewise.
38550 (mode_in_use): Likewise.
38551 (mode_list): Likewise.
38553 2006-03-10 Marco Gerards <marco@gnu.org>
38555 * configure.ac (AC_INIT): Bumped to 1.93.
38557 * DISTLIST: Added `include/grub/hfs.h'.
38559 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
38561 * boot/i386/pc/boot.S (general_error): Before looping, try INT
38562 18H, which might help the BIOS falling back to next boot media.
38564 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
38566 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
38567 Poe Chen <poe.poechen@gmail.com>.
38569 2006-01-17 Marco Gerards <marco@gnu.org>
38571 * include/grub/normal.h: Include <grub/script.h>.
38572 (grub_command_list): Removed struct.
38573 (grub_command_list_t): Removed type.
38574 (grub_menu_entry): Remove members `num' and `command_list'. Add
38575 members `commands' and `sourcecode'.
38576 * include/grub/script.h: Add inclusion guards.
38577 (grub_script_cmd_menuentry): New struct.
38578 (grub_script_execute_menuentry): New prototype.
38579 (grub_script_lexer_record_start): Likewise.
38580 (grub_script_lexer_record_stop): Likewise.
38581 * normal/execute.c (grub_script_execute_menuentry): New function.
38582 * normal/lexer.c (record, recording, recordpos, recordlen): New
38584 (grub_script_lexer_record_start): New function.
38585 (grub_script_lexer_record_stop): Likewise.
38586 (recordchar): Likewise.
38587 (nextchar): Likewise.
38588 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
38589 2048 as the buffer size. Add the tokens `menuentry' and `@'.
38590 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
38591 (current_menu): New variable.
38592 (free_menu): Mainly rewritten.
38593 (grub_normal_menu_addentry): New function.
38594 (read_config_file): Rewritten.
38595 * normal/menu.c (run_menu_entry): Mainly rewritten.
38596 * normal/menu_entry.c (make_screen): Rewritten the code to insert
38598 (run): Mainly rewritten.
38599 * normal/parser.y (menu_entry): New variable.
38600 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
38601 (menuentry): New rule.
38602 (command): Add `menuentry'.
38603 (if_statement): Allow additional returns before `fi'.
38604 * normal/script.c (grub_script_create_cmdmenu): New function.
38606 2006-01-03 Marco Gerards <marco@gnu.org>
38608 * INSTALL: GNU Bison is required.
38609 * configure.ac: Rewritten the test to detect Bison.
38610 * Makefile.in (YACC): New variable. Reported by Xun Sun
38611 <xun.sun.cn@gmail.com>.
38613 2006-01-03 Marco Gerards <marco@gnu.org>
38615 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
38616 the HFS+ filesystem to filesystem blocks.
38617 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
38618 GCC warning is silenced.
38620 2006-01-03 Marco Gerards <marco@gnu.org>
38622 * partmap/apple.c (apple_partition_map_iterate): Convert the data
38623 read from disk from big endian to host byte order.
38625 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
38627 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
38629 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
38630 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
38631 embedded HFS+ filesystem.
38632 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
38633 (grub_hfs_sblock): Move from here...
38634 * include/grub/hfs.h: To here... New file.
38635 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
38637 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
38639 (grub_hfsplus_volheader): Change type of member `magic' to
38641 (grub_hfsplus_data): Add new member `embedded_offset'.
38642 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
38644 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
38645 Calculate the offset.
38647 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38649 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
38651 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
38653 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38655 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
38656 ENV->NAME is NULL after allocating ENV->VALUE.
38658 2005-12-25 Marco Gerards <marco@gnu.org>
38660 * kern/env.c (grub_env_set): Rewritten the error handling code.
38662 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38664 * geninit.sh: Made more robust, and more portable.
38666 2005-12-25 Marco Gerards <marco@gnu.org>
38668 Add support for Apple HFS+ filesystems.
38670 * fs/hfsplus.c: New file.
38672 * DISTLIST: Added `fs/hfsplus.c'.
38674 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
38675 (hfsplus_mod_SOURCES): New variable.
38676 (hfsplus_mod_CFLAGS): Likewise.
38677 (hfsplus_mod_LDFLAGS): Likewise.
38678 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
38679 (grub_setup_SOURCES): Likewise.
38680 (grub_mkdevicemap_SOURCES): Likewise.
38681 (grub_emu_SOURCES): Likewise.
38682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38684 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
38686 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
38688 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
38690 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
38691 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
38692 include/grub/parser.h, include/grub/script.h, kern/parser.c,
38693 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
38694 normal/lexer.c, normal/parser.y, normal/script.c, and
38696 Removed kern/sparc64/cache.c.
38698 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
38699 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
38702 * configure.ac (AC_INIT): Bumped to 1.92.
38704 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
38706 * kern/err.c (grub_error_push): Added new function to support error
38708 (grub_error_pop): Likewise.
38709 (grub_error_stack_items): New local variable to support error stacks.
38710 (grub_error_stack_pos): Likewise.
38711 (grub_error_stack_assert): Likewise.
38712 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
38714 (grub_print_error): Added support to print errors from error stack.
38716 * include/grub/err.h (grub_error_push): Added function prototype.
38717 (grub_error_pop): Likewise.
38719 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
38721 * configure.ac: Accept `powerpc64' as host_cpu.
38722 (amd64): Rename to `biarch32'.
38724 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
38725 non-cacheline-aligned addresses.
38727 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
38728 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
38729 if `size' is non-zero.
38731 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
38733 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
38734 and `cd' to make sure the filename is not prefixed with a
38736 (pkgdata_MODULES): Add `gpt.mod'.
38737 (gpt_mod_SOURCES): New variable.
38738 (gpt_mod_CFLAGS): Likewise.
38739 (gpt_mod_LDFLAGS): Likewise.
38741 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
38743 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
38746 * partmap/gpt.c: New file.
38748 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
38749 GPT partition map is detected.
38751 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
38753 * commands/i386/pc/play.c: New file.
38754 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
38755 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
38758 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
38760 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
38761 ((unused))' to silence gcc warning.
38763 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
38765 * configure.ac: Correct `AC_PROG_YACC' test.
38767 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38769 * util/powerpc/ieee1275/grub-install.in: Run the mount point
38770 check before installing files.
38772 2005-11-22 Mike Small <smallm@panix.com>
38774 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
38775 number regex so multidigit numbers are recognized correctly.
38777 2005-11-22 Mike Small <smallm@panix.com>
38779 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
38780 debugging message before attempting to claim memory.
38781 (grub_rescue_cmd_initrd): Add a claim debugging message and try
38782 multiple addresses in case of failure.
38784 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38786 * term/tparm.c (get_space): Remove empty `if' statement.
38788 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
38790 * kern/parser.c (check_varstate): Rename `state' to 's'.
38792 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38794 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
38795 variable definitions to the beginning of each function. Sort stack
38797 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
38798 `buf' argument to `char *'.
38800 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
38802 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
38803 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38804 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38805 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38806 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38807 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38808 configfile.mod, search.mod, gzio.mod and test.mod.
38809 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38810 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38811 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38812 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38813 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38814 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38815 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38816 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38817 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38818 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38819 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38820 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38821 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38822 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38823 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38824 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38825 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38826 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38827 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38828 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38829 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38830 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38831 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
38833 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
38835 (pkgdata_MODULES): Add test.mod.
38837 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38839 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
38840 appending to variables with "+=".
38841 (PModule): Use full pathname to generate *.lst filenames.
38843 * Makefile.in: Fixed list rules moved from genmk.rb.
38844 (.DELETE_ON_ERROR): New special target.
38845 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
38847 * conf/i386-pc.rmk: Include conf/common.mk.
38848 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
38849 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
38850 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
38851 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
38852 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
38853 configfile.mod, search.mod, gzio.mod and test.mod.
38854 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
38855 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
38856 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
38857 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
38858 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
38859 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
38860 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
38861 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
38862 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
38863 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
38864 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
38865 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
38866 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
38867 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
38868 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
38869 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
38870 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
38871 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
38872 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
38873 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
38874 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
38875 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
38876 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
38878 * conf/common.rmk: ... to here. New file.
38880 * conf/common.mk: New file.
38882 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
38884 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
38885 (grub_script.tab.c): ... here.
38887 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
38888 (grub_script.tab.c): ... here.
38890 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
38891 (grub_script.tab.c): ... here.
38893 * normal/command.c (grub_command_find): Fixed a memory leak of
38894 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
38896 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38898 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
38899 "@" which marks the start of a comment on ARM.
38900 (VARIABLE): Likewise.
38902 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
38904 Add support for Linux/ADFS partition tables.
38906 * partmap/acorn.c: New file.
38908 * include/grub/acorn_filecore.h: Likewise.
38910 * DISTLIST: Added `partmap/acorn.c' and
38911 `include/grub/acorn_filecore.h'.
38913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38915 (pkgdata_MODULES): Add `acorn.mod'.
38916 (acorn_mod_SOURCES): New variable.
38917 (acorn_mod_CFLAGS): Likewise.
38919 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
38921 (pkgdata_MODULES): Add `acorn.mod'.
38922 (acorn_mod_SOURCES): New variable.
38923 (acorn_mod_CFLAGS): Likewise.
38925 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
38926 (pkgdata_MODULES): Add `acorn.mod'.
38927 (acorn_mod_SOURCES): New variable.
38928 (acorn_mod_CFLAGS): Likewise.
38929 (acorn_mod_LDFLAGS): Likewise.
38931 * include/types.h (grub_disk_addr_t): New typedef.
38933 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
38935 * geninit.sh: New file.
38937 * geninitheader.sh: Likewise.
38939 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
38940 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
38941 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
38942 * commands/configfile.c (grub_configfile_init)
38943 (grub_configfile_fini): Likewise.
38944 * commands/default.c (grub_default_init, grub_default_fini):
38946 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
38947 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
38948 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
38949 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
38951 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
38952 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
38954 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
38955 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
38957 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
38959 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
38961 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
38962 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
38963 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
38964 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
38965 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
38966 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
38967 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
38968 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
38969 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
38970 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
38971 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
38972 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
38973 * partmap/amiga.c (grub_amiga_partition_map_init)
38974 (grub_amiga_partition_map_fini): Likewise.
38975 * partmap/apple.c (grub_apple_partition_map_init)
38976 (grub_apple_partition_map_fini): Likewise.
38977 * partmap/pc.c (grub_pc_partition_map_init)
38978 (grub_pc_partition_map_fini): Likewise.
38979 * partmap/sun.c (grub_sun_partition_map_init,
38980 grub_sun_partition_map_fini): Likewise.
38981 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
38984 * util/grub-emu.c: Include <grub_modules_init.h>.
38985 (main): Don't initialize and de-initialize any modules directly,
38986 use `grub_init_all' and `grub_fini_all' instead.
38988 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
38989 `grub_vesafb_mod_init'.
38990 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
38992 * term/i386/pc/vga.c (grub_vga_init): Renamed to
38993 `grub_vga_mod_init'. Updated all users.
38994 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
38996 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
38997 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
39000 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
39001 Generate a function to initialize the module in utilities.
39002 Updated all callers.
39003 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
39004 initialize the module in utilities. Updated all callers.
39006 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
39008 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
39009 escape sequence and a literal ^L to clear the screen.
39011 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
39012 when returning from Open Firmware.
39014 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
39016 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
39017 (grub_ofconsole_height): Likewise.
39018 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
39019 manually insert a '\n'.
39020 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
39021 `grub_ofconsole_height'. Return early if these are already set.
39023 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
39025 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
39026 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
39027 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
39028 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
39029 and `normal/script.c'.
39030 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39031 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39032 (test_mod_SOURCES): New variable.
39033 (test_mod_CFLAGS): Likewise.
39034 (test_mod_LDFLAGS): Likewise.
39035 (pkgdata_MODULES): Add `test.mod'.
39036 (grub_script.tab.c): New rule.
39037 (grub_script.tab.h): Likewise.
39039 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
39041 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39042 `commands/test.c', `normal/execute.c', `normal/lexer.c',
39043 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39044 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39045 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39046 (test_mod_SOURCES): New variable.
39047 (test_mod_CFLAGS): Likewise.
39048 (pkgdata_MODULES): Add `test.mod'.
39049 (grub_script.tab.c): New rule.
39050 (grub_script.tab.h): Likewise.
39052 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
39054 Add initial scripting support.
39056 * commands/test.c: New file.
39057 * include/grub/script.h: Likewise.
39058 * normal/execute.c: Likewise.
39059 * normal/function.c: Likewise.
39060 * normal/lexer.c: Likewise.
39061 * normal/parser.y: Likewise.
39062 * normal/script.c: Likewise.
39064 * configure.ac: Add `AC_PROG_YACC' test.
39066 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
39067 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
39068 `normal/function.c' and `normal/script.c'.
39069 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
39070 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
39071 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
39073 (pkgdata_MODULES): Add `test.mod'.
39074 (grub_script.tab.c): New rule.
39075 (grub_script.tab.h): Likewise.
39077 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
39079 * include/grub/normal.h (grub_test_init): New prototype.
39080 (grub_test_fini): Likewise.
39082 * normal/command.c: Include <grub/script.h>.
39083 (grub_command_execute): Rewritten.
39085 * util/grub-emu.c (main): Call `grub_test_init' and
39088 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
39090 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
39092 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
39093 there are no pending characters.
39095 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
39097 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
39098 `grub_strndup' to drop device arguments. Replace unnecessary
39099 `grub_strndup' with `grub_strdup'.
39101 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
39103 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
39104 `debug' environment variable has been set.
39106 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
39108 * Makefile.in (install-local): Use $(DATA).
39109 (uninstall): Likewise.
39110 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
39111 (sbin_UTILITIES): ... to here.
39112 (sbin_SCRIPTS): New variable.
39113 (grub_install_SOURCES): New variable.
39114 * util/powerpc/ieee1275/grub-install.in: New file.
39115 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
39117 (add_segments): Call `grub_util_get_path'.
39119 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
39121 From Timothy Baldwin:
39122 * commands/ls.c (grub_ls_list_files): Close FILE with
39124 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
39126 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
39128 * include/grub/parser.h: New file.
39130 * kern/parser.c: Likewise.
39132 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
39133 (grub_setup_SOURCES): Likewise.
39134 (grub_probefs_SOURCES): Likewise.
39135 (grub_emu_SOURCES): Likewise.
39136 (kernel_img_HEADERS): Add `parser.h'.
39138 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
39139 (grub_emu_SOURCES): Add `kern/parser.c'.
39140 (grubof_SOURCES): Likewise.
39142 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
39143 (grubof_SOURCES): Add `kern/parser.c'.
39145 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
39147 * kern/misc.c (grub_split_cmdline): Removed function.
39149 * kern/rescue.c: Include <grub/parser.h>.
39150 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
39151 of `grub_split_cmdline'.
39153 * normal/command.c: Include <grub/parser.h>.
39154 (grub_command_execute): Use `grub_parser_split_cmdline' instead
39155 of `grub_split_cmdline'.
39157 * normal/completion.c: Include <grub/parser.h>.
39158 (cmdline_state): New variable.
39159 (iterate_dir): End the filename with a quote depending on the
39160 command line state.
39161 (get_state): new function.
39162 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
39163 split the arguments and determine the current argument. When the
39164 argument string is not quoted, escape all spaces.
39166 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39168 * normal/sparc64/setjmp.S: New file.
39170 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39172 * include/grub/sparc64/libgcc.h: New file.
39173 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
39174 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
39175 normal/sparc64/setjmp.c.
39177 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
39179 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
39180 * kern/sparc64/cache.S: New file.
39181 * kern/sparc64/cache.c: Removed.
39182 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
39183 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
39185 (COMMON_LDFLAGS): Add -melf64_sparc.
39186 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
39187 (grubof_SOURCES): Use cache.S instead of cache.c.
39188 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
39189 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
39190 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
39192 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
39193 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
39194 (linux_mod_CFLAGS): Commented out.
39195 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
39196 out because module isn't built.
39197 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
39198 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
39199 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
39200 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
39201 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
39202 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
39203 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
39204 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
39205 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
39206 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
39207 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
39208 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
39209 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
39210 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
39212 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
39214 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
39215 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
39216 longer, because HFS should not be used on PC.
39218 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39220 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
39221 consistently within the loop.
39223 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
39225 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
39226 directory can not be read.
39228 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39230 * configure.ac (AC_INIT): Increase the version number to 1.91.
39232 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
39233 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
39234 term/i386/pc/serial.c.
39236 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39238 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
39239 file size must be permitted.
39241 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
39242 between %ah and %al.
39244 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
39246 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
39248 Call the hook with a NUL-terminated filename.
39249 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
39252 * kern/term.c (cursor_state): New variable.
39253 (grub_term_set_current): Reset the cursor state on a new
39255 (grub_setcursor): Rewritten to use CURSOR_STATE.
39256 (grub_getcursor): New function.
39258 * include/grub/term.h (grub_getcursor): New prototype.
39260 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
39261 integers on ARM. Reported by Timothy Baldwin
39262 <T.E.Baldwin99@members.leeds.ac.uk>.
39264 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
39266 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
39268 (grub_sfs_dir): Likewise.
39270 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
39272 Add support for the SFS filesystem.
39274 * fs/sfs.c: New file.
39276 * DISTLIST: Added `fs/sfs.c'.
39278 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
39279 (grub_probefs_SOURCES): Likewise.
39280 (grub_emu_SOURCES): Likewise.
39281 (pkgdata_MODULES): Add `sfs.mod'.
39282 (sfs_mod_SOURCES): New variable.
39283 (sfs_mod_CFLAGS): Likewise.
39284 (sfs_mod_LDFLAGS): Likewise.
39286 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
39287 (pkgdata_MODULES): Add `sfs.mod'.
39288 (sfs_mod_SOURCES): New variable.
39289 (sfs_mod_CFLAGS): Likewise.
39291 * util/grub-emu.c (main): Call `grub_sfs_init' and
39294 * include/grub/fs.h (grub_sfs_init): New prototype.
39295 (grub_sfs_fini): Likewise.
39297 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
39299 Add support for the AFFS filesystem.
39301 * fs/affs.c: New file.
39303 * DISTLIST: Added `fs/affs.c'.
39305 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
39306 (grub_probefs_SOURCES): Likewise.
39307 (grub_emu_SOURCES): Likewise.
39308 (pkgdata_MODULES): Add `affs.mod'.
39309 (affs_mod_SOURCES): New variable.
39310 (affs_mod_CFLAGS): Likewise.
39311 (affs_mod_LDFLAGS): Likewise.
39313 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
39314 (pkgdata_MODULES): Add `affs.mod'.
39315 (affs_mod_SOURCES): New variable.
39316 (affs_mod_CFLAGS): Likewise.
39318 * util/grub-emu.c (main): Call `grub_affs_init' and
39321 * include/grub/fs.h (grub_affs_init): New prototype.
39322 (grub_affs_fini): Likewise.
39324 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
39326 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
39328 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
39330 * configure.ac: Accept `x86_64' as host_cpu. In that case add
39333 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
39336 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
39337 (COMMON_LDFLAGS): New variable.
39338 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
39339 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
39340 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
39341 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
39342 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
39343 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
39344 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
39345 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
39346 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
39347 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
39348 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
39349 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
39350 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
39351 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
39352 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
39354 (normal_mod_ASFLAGS): Add `-m32'.
39356 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
39357 (grub_host_size_t, grub_host_ssize_t): New types.
39358 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
39359 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
39360 `GRUB_HOST_SIZEOF_VOID_P'.
39362 * include/grub/kernel.h (struct grub_module_header): Type of
39363 member offset changed to `grub_host_off_t'. Type of member size
39364 changed to `grub_host_size_t'.
39365 (struct grub_module_info): Type of member offset changed to
39366 `grub_host_off_t'. Type of member size changed to
39367 `grub_host_size_t'.
39369 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
39371 Make GRUB's kernel compliant to Multiboot Specification.
39373 * kern/i386/pc/startup.S (multiboot_header): New label.
39374 (multiboot_entry): Likewise.
39375 (multiboot_trampoline): Likewise.
39377 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
39378 Increased to 0x4A0.
39380 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
39381 put parentheses after a question mark.
39382 [!GRUB_UTIL] (my_mod): New variable.
39384 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
39386 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
39388 Adds support for the XFS filesystem. Btrees are not supported
39391 * fs/xfs.c: New file.
39393 * DISTLIST: Added `fs/xfs.c'.
39395 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
39396 (grub_probefs_SOURCES): Likewise.
39397 (grub_emu_SOURCES): Likewise.
39398 (pkgdata_MODULES): Add `xfs.mod'.
39399 (xfs_mod_SOURCES): New variable.
39400 (xfs_mod_CFLAGS): Likewise.
39402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
39403 (pkgdata_MODULES): Add `xfs.mod'.
39404 (xfs_mod_SOURCES): New variable.
39405 (xfs_mod_CFLAGS): Likewise.
39407 * util/grub-emu.c (main): Call `grub_xfs_init' and
39410 * include/grub/fs.h (grub_xfs_init): New prototype.
39411 (grub_xfs_fini): Likewise.
39414 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
39416 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
39417 color modes, allow greater than 16 colors to be configured as
39420 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
39422 * normal/completion.c (complete_arguments): Add the qualifier
39423 const into OPTIONS.
39425 From Omniflux <omniflux+lists@omniflux.com>:
39426 * include/grub/terminfo.h: New file.
39427 * include/grub/tparm.h: Likewise.
39428 * include/grub/i386/pc/serial.h: Likewise.
39429 * term/terminfo.c: Likewise.
39430 * term/tparm.c: Likewise.
39431 * term/i386/pc/serial.c: Likewise.
39432 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
39434 (terminfo_mod_SOURCES): New variable.
39435 (terminfo_mod_CFLAGS): Likewise.
39436 (serial_mod_SOURCES): Likewise.
39437 (serial_mod_CFLAGS): Likewise.
39439 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
39441 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
39442 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
39443 and kern/powerpc/ieee1275/cmain.c, respectively.
39445 * boot/powerpc/ieee1275/crt0.S: Moved to ...
39446 * kern/powerpc/ieee1275/crt0.S: ... here.
39448 * boot/powerpc/ieee1275/cmain.c: Moved to ...
39449 * kern/powerpc/ieee1275/cmain.c: ... here.
39451 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
39452 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
39453 instead of boot/powerpc/ieee1275/crt0.S and
39454 boot/powerpc/ieee1275/cmain.c, respectively.
39456 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
39457 sectors. It was not used anyway.
39459 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
39461 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
39462 `unused parameter' warning.
39464 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
39466 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
39468 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
39471 2005-08-28 Marco Gerards <metgerards@student.han.nl>
39473 * include/grub/normal.h (enum grub_completion_type): Added
39474 `GRUB_COMPLETION_TYPE_ARGUMENT'.
39476 * normal/cmdline.c (print_completion): Handle
39477 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
39478 * normal/menu_entry.c (store_completion): Likewise.
39480 * normal/completion.c (complete_arguments): New function.
39481 (grub_normal_do_completion): Call `complete_arguments' when the
39482 current words start with a dash.
39484 2005-08-27 Marco Gerards <metgerards@student.han.nl>
39486 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
39487 `gzio.mod' instead of `io.mod').
39489 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
39491 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
39492 (DISTDIRS): Added io and video.
39493 Rewrite the search routine to make an output consistently.
39495 * DISTLIST: Added conf/sparc64-ieee1275.mk,
39496 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
39497 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
39498 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
39499 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
39500 util/powerpc/ieee1275/misc.c.
39502 * include/grub/gzio.h: New file.
39503 * io/gzio.c: Likewise.
39505 * kern/file.c (grub_file_close): Call grub_device_close only if
39506 FILE->DEVICE is not NULL.
39508 * include/grub/mm.h [!NULL] (NULL): New macro.
39510 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
39512 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
39513 (pkgdata_MODULES): Added gzio.mod.
39514 (gzio_mod_SOURCES): New variable.
39515 (gzio_mod_CFLAGS): Likewise.
39517 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
39518 (pkgdata_MODULES): Added gzio.mod.
39519 (gzio_mod_SOURCES): New variable.
39520 (gzio_mod_CFLAGS): Likewise.
39522 * commands/cat.c: Include grub/gzio.h.
39523 (grub_cmd_cat): Use grub_gzfile_open instead of
39526 * commands/cmp.c: Include grub/gzio.h.
39527 (grub_cmd_cmp): Use grub_gzfile_open instead of
39530 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
39531 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
39533 (grub_rescue_cmd_module): Likewise.
39535 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39537 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
39538 kern/sparc64/ieee1275/init.c because it contains _start.
39539 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
39541 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
39543 * configure.ac: Add support for sparc64 host with ieee1275
39545 * configure: Generated from configure.ac.
39546 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
39548 (grub_ofdisk_read): Likewise.
39549 (grub_ofdisk_open): Use %p to print pointer values, and cast the
39550 pointers as (void *) to remove a warning.
39551 (grub_ofdisk_close): Likewise.
39552 (grub_ofdisk_read): Likewise.
39553 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
39554 returns, so make it return void to remove a warning.
39555 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
39556 Corresponding prototype change.
39557 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
39558 values, and cast the pointers as (void *) to remove a warning.
39559 (grub_mm_dump): Likewise.
39560 * conf/sparc64-ieee1275.mk: New file.
39561 * conf/sparc64-ieee1275.rmk: Likewise.
39562 * include/grub/sparc64/setjmp.h: Likewise.
39563 * include/grub/sparc64/types.h: Likewise.
39564 * include/grub/sparc64/ieee1275/console.h: Likewise.
39565 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
39566 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
39567 * include/grub/sparc64/ieee1275/time.h: Likewise.
39568 * kern/sparc64/cache.c: Likewise.
39569 * kern/sparc64/dl.c: Likewise.
39570 * kern/sparc64/ieee1275/init.c: Likewise.
39571 * kern/sparc64/ieee1275/openfw.c: Likewise.
39573 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39575 * util/console.c (grub_ncurses_putchar): If C is greater than
39576 0x7f, set C to a question mark.
39577 (grub_ncurses_getcharwidth): New function.
39578 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
39581 * normal/menu.c (print_entry): Made aware of Unicode. First,
39582 convert TITLE to UCS-4, and predict the cursor position by
39585 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
39587 * kern/misc.c (grub_utf16_to_utf8): Likewise.
39589 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39591 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
39592 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39595 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
39596 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
39597 grub_strcpy and grub_strlen. Take it into account that a space
39598 character is inserted as a delimiter.
39600 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39602 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
39603 invalid magic in the error.
39605 * commands/search.c: New file.
39607 * util/grub-emu.c (main): Call grub_search_init and
39610 * kern/rescue.c (grub_rescue_print_disks): Removed.
39611 (grub_rescue_print_devices): New function.
39612 (grub_rescue_cmd_ls): Use grub_device_iterate with
39613 grub_rescue_print_devices instead of grub_disk_dev_iterate with
39614 grub_rescue_print_disks.
39616 * kern/partition.c (grub_partition_iterate): Return the result of
39617 PARTMAP->ITERATE instead of GRUB_ERRNO.
39619 * kern/device.c: Include grub/partition.h.
39620 (grub_device_iterate): New function.
39622 * include/grub/partition.h (grub_partition_iterate): Return int
39623 instead of grub_err_t.
39625 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
39627 [GRUB_UTIL] (grub_search_fini): Likewise.
39629 * include/grub/device.h (grub_device_iterate): New prototype.
39631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
39633 (pkgdata_MODULES): Added search.mod.
39634 (search_mod_SOURCES): New variable.
39635 (search_mod_CFLAGS): Likewise.
39637 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
39638 (pkgdata_MODULES): Added search.mod.
39639 (search_mod_SOURCES): New variable.
39640 (search_mod_CFLAGS): Likewise.
39642 * commands/ls.c (grub_ls_list_disks): Renamed to ...
39643 (grub_ls_list_devices): ... this, and use grub_device_iterate.
39644 All callers changed.
39646 * DISTLIST: Added commands/search.c.
39648 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
39650 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
39652 (grub_getcharwidth): New function.
39654 * kern/misc.c (grub_utf8_to_ucs4): New function.
39656 * include/grub/term.h (struct grub_term): Added a new member
39658 (grub_getcharwidth): New prototype.
39660 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
39662 * term/i386/pc/console.c (map_char): New function. Segregated from
39663 grub_console_putchar.
39664 (grub_console_putchar): Use map_char.
39665 (grub_console_getcharwidth): New function.
39666 (grub_console_term): Specified grub_console_getcharwidth as
39669 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
39670 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
39672 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
39674 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
39675 on grub_strtoul completely.
39676 (write_char): Declare local variables in the beginning of the
39678 (grub_vesafb_getcharwidth): New function.
39679 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
39682 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
39684 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
39685 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
39686 commands/i386/pc/vbetest.c.
39688 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
39689 call grub_vbe_get_controller_info again, because the returned
39690 information is volatile.
39691 (grub_vbe_set_video_mode): Mostly rewritten.
39692 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
39693 grub_vbe_status_t correctly.
39694 (grub_vbe_get_video_mode_info): Likewise.
39695 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
39696 several if statements.
39698 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
39699 * commands/i386/pc/vbeinfo.c: ... this.
39701 * commands/i386/pc/vbe_test.c: Renamed to ...
39702 * commands/i386/pc/vbetest.c: ... this.
39704 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
39706 (grub_cmd_vbeinfo): ... this. Save video modes before
39707 iterating. Skip a video mode, if it is not available, not enough
39708 information is given or it is monochrome. Show the memory
39709 model. Leave the interpretation of MODEVAR to grub_strtoul
39711 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
39712 (GRUB_MOD_FINI): Likewise.
39714 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
39715 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
39716 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
39717 duplicated grub_env_get. Leave the interpretation of MODEVAR to
39718 grub_strtoul completely.
39719 (real2pm): Removed.
39720 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
39721 (GRUB_MOD_FINI): Likewise.
39723 * normal/misc.c: Include grub/mm.h.
39725 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
39726 vbe_list_modes with vbetest.mod and vbeinfo.mod.
39727 (vbe_list_modes_mod_SOURCES): Removed.
39728 (vbe_list_modes_mod_CFLAGS): Likewise.
39729 (vbe_test_mod_SOURCES): Likewise.
39730 (vbe_test_mod_CFLAGS): Likewise.
39731 (vbeinfo_mod_SOURCES): New variable.
39732 (vbeinfo_mod_CFLAGS): Likewise.
39733 (vbetest_mod_SOURCES): Likewise.
39734 (vbetest_mod_CFLAGS): Likewise.
39736 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
39738 * normal/misc.c: New file.
39740 * DISTLIST: Added normal/misc.c.
39742 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
39743 DISK to HOOK. Call HOOK with DISK.
39744 * partmap/apple.c (apple_partition_map_iterate): Likewise.
39745 * partmap/pc.c (pc_partition_map_iterate): Likewise.
39746 * partmap/sun.c (sun_partition_map_iterate): Likewise.
39748 * normal/menu_entry.c (struct screen): Added a new member
39749 "completion_shown".
39750 (completion_buffer): New global variable.
39751 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
39752 (store_completion): New function.
39753 (complete): Likewise.
39754 (clear_completions): Likewise.
39755 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
39756 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
39757 a tab, call complete.
39759 * normal/completion.c (disk_dev): Removed.
39760 (print_simple_completion): Likewise.
39761 (print_partition_completion): Likewise.
39762 (print_func): New global variable.
39763 (add_completion): Do not take the arguments WHAT or PRINT any
39764 longer. Added a new argument TYPE. Instead of printing directly,
39765 call PRINT_FUNC if not NULL.
39766 All callers changed.
39767 (complete_device): Use a local variable DEV instead of
39768 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
39769 (grub_normal_do_completion): Take a new argument HOOK. Do not
39770 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
39771 empty string, return NULL instead.
39772 All callers changed.
39774 * normal/cmdline.c (print_completion): New function.
39776 * kern/partition.c (grub_partition_iterate): Add an argument DISK
39778 All callers changed.
39780 * kern/disk.c (grub_print_partinfo): Removed.
39782 * include/grub/partition.h (struct grub_partition_map): Add a new
39783 argument DISK into HOOK of ITERATE.
39784 (grub_partition_iterate): Add a new argument DISK to HOOK.
39786 * include/grub/normal.h (enum grub_completion_type): New enum.
39787 (grub_completion_type_t): New type.
39788 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
39789 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
39790 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
39791 (GRUB_COMPLETION_TYPE_FILE): Likewise.
39792 (grub_normal_do_completion): Added a new argument HOOK.
39793 (grub_normal_print_device_info): New prototype.
39795 * include/grub/disk.h (grub_print_partinfo): Removed.
39797 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
39798 (normal_mod_SOURCES): Likewise.
39799 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39800 (normal_mod_SOURCES): Likewise.
39802 * commands/ls.c (grub_ls_list_disks): Use
39803 grub_normal_print_device_info instead of grub_print_partinfo. Free
39805 (grub_ls_list_files): Use grub_normal_print_device_info instead of
39806 duplicating the code.
39808 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39810 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
39811 follow GCS more precisely.
39812 * commands/i386/pc/vbe_test.c: Likewise.
39813 * include/grub/i386/pc/vbe.h: Likewise.
39814 * term/i386/pc/vesafb.c: Likewise.
39815 * video/i386/pc/vbe.c: Likewise.
39817 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
39819 * DISTLIST: Added term/i386/pc/vesafb.c
39820 DISTLIST: Added video/i386/pc/vbe.c
39821 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
39822 DISTLIST: Added commands/i386/pc/vbe_test.c.
39823 * commands/i386/pc/vbe_list_modes.c: New file.
39824 * commands/i386/pc/vbe_test.c: Likewise.
39825 * term/i386/pc/vesafb.c: Likewise.
39826 * video/i386/pc/vbe.c: Likewise.
39827 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
39828 (grub_vbe_probe) Added prototype.
39829 (grub_vbe_set_video_mode) Likewise.
39830 (grub_vbe_get_video_mode) Likewise.
39831 (grub_vbe_get_video_mode_info) Likewise.
39832 (grub_vbe_set_pixel_rgb) Likewise.
39833 (grub_vbe_set_pixel_index) Likewise.
39834 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
39835 (pkgdata_MODULES): Added vesafb.mod.
39836 (pkgdata_MODULES): Added vbe_list_modes.mod.
39837 (pkgdata_MODULES): Added vbe_test.mod.
39838 (vbe_mod_SOURCES): Added.
39839 (vbe_mod_CFLAGS): Likewise.
39840 (vesafb_mod_SOURCES): Likewise.
39841 (vesafb_mod_CFLAGS): Likewise.
39842 (vbe_list_modes_mod_SOURCES): Likewise.
39843 (vbe_list_modes_mod_CFLAGS): Likewise.
39844 (vbe_test_mod_SOURCES): Likewise.
39845 (vbe_test_mod_CFLAGS): Likewise.
39847 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
39849 * normal/command.c (grub_command_execute): If INTERACTIVE is
39850 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
39851 CMDLINE. Disable the pager if INTERACTIVE is true.
39852 All callers are changed.
39854 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
39855 before reading a config file.
39856 * normal/main.c (read_config_file): Even if a command is not
39857 found, register it if it is within an entry.
39859 * util/grub-emu.c: Include sys/types.h and unistd.h.
39860 (options): Added --hold.
39861 (struct arguments): Added a new member "hold".
39862 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
39864 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
39865 cleared by a debugger, if it is not zero.
39867 * include/grub/normal.h (grub_command_execute): Add an argument
39870 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
39872 * DISTLIST: Added include/grub/i386/pc/vbe.h.
39874 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
39876 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
39877 program with another one, because the old one didn't detect a bug
39878 in gcc-3.4. Always use regparm 2, because the new test is still
39879 not enough for gcc-4.0. Someone must investigate a simple test
39880 case which detects a bug in gcc-4.0.
39882 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
39884 * DISTLIST: Added normal/completion.c.
39886 * normal/completion.c: New file.
39888 * term/i386/pc/console.c (grub_console_getwh): New function.
39889 (grub_console_term): Assign grub_console_getwh to getwh.
39891 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
39892 function is defined in normal/completion.c as
39893 grub_normal_do_completion.
39894 (grub_cmdline_get): Use grub_normal_do_completion instead of
39897 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
39898 returns non-zero, otherwise return 0.
39899 (grub_partition_iterate): First, probe the partition map. Then,
39900 call ITERATE only for this partition map.
39902 * kern/misc.c (grub_strncmp): Rewritten.
39904 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
39905 returns non-zero. Otherwise return 0.
39907 * include/grub/partition.h (grub_partition_map_iterate): Return
39908 int instead of void.
39910 * include/grub/normal.h (grub_normal_do_completion): New prototype.
39912 * include/grub/misc.h (grub_strncmp): Change the type of N to
39915 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
39918 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
39919 unsigned explicitly before comparing it with I.
39921 * kern/main.c (grub_env_write_root): Add the attribute unused into
39924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
39925 normal/completion.c.
39926 (normal_mod_SOURCES): Likewise.
39927 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39928 (normal_mod_SOURCES): Likewise.
39930 * normal/command.c (grub_iterate_commands): If ITERATE returns
39931 non-zero, return one immediately.
39933 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
39935 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
39936 * kern/i386/pc/startup.S: Updated Global Descriptor table's
39938 (grub_vbe_get_controller_info): New function.
39939 (grub_vbe_get_mode_info): Likewise.
39940 (grub_vbe_set_mode): Likewise.
39941 (grub_vbe_get_mode): Likewise.
39942 (grub_vbe_set_memory_window): Likewise.
39943 (grub_vbe_get_memory_window): Likewise.
39944 (grub_vbe_set_scanline_length): Likewise.
39945 (grub_vbe_get_scanline_length): Likewise.
39946 (grub_vbe_set_display_start): Likewise.
39947 (grub_vbe_get_display_start): Likewise.
39948 (grub_vbe_set_palette_data): Likewise.
39949 * include/grub/i386/pc/vbe.h: New file.
39951 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39953 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
39954 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
39955 * DISTLIST: Likewise.
39956 * kern/ieee1275/of.c: Moved to ...
39957 * kern/ieee1275/ieee1275.c: ... here.
39959 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39961 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
39962 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
39963 Pass 0 as `end' parameter to grub_strtoul().
39965 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
39967 * include/grub/powerpc/ieee1275/console.h: Do not include
39968 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
39970 (grub_console_cur_color): Remove i386-specific prototype.
39971 (grub_console_real_putchar): Likewise.
39972 (grub_console_checkkey): Likewise.
39973 (grub_console_getkey): Likewise.
39974 (grub_console_getxy): Likewise.
39975 (grub_console_gotoxy): Likewise.
39976 (grub_console_cls): Likewise.
39977 (grub_console_setcursor): Likewise.
39978 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
39979 Include <grub/machine/console.h>.
39980 * term/ieee1275/ofconsole.c: Likewise.
39982 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
39984 * Makefile.in (LIBLZO): New variable.
39986 * configure.ac: Check for LZO version 2.
39988 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
39989 lzo/lzo1x.h instead of lzo1x.h.
39991 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
39994 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
39995 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
39997 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
39998 copying the data from PARTITION to P.
40000 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40002 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
40003 negative, unload the module.
40005 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
40006 map is "pc_partition_map" but not "pc".
40007 (usage): Fix the description. The options are --boot-image and
40008 --core-image but not --boot-file or --core-file.
40009 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
40010 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
40013 * util/i386/pc/grub-install.in: Do not specify --boot-file or
40014 --core-file. Specify INSTALL_DEVICE as an argument.
40016 * util/console.c: Include config.h.
40017 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
40018 [HAVE_NCURSES_H]: Include ncurses.h.
40019 [HAVE_CURSES_H]: Include curses.h.
40020 [!A_NORMAL] (A_NORMAL): Defined as zero.
40021 [!A_STANDOUT] (A_STANDOUT): Likewise.
40023 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
40025 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
40027 * configure.ac: Check for curses libraries and headers.
40029 * Makefile.in (LIBCURSES): New variable.
40031 * genmk.rb (Script::rule): Set the executable bits.
40033 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
40034 name of the PC partition map is "pc_partition_map" but not "pc".
40036 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40038 * util/i386/pc/grub-install.in (grub_probefs): New variable.
40039 (modules): Likewise.
40040 (usage): Added descriptions for --modules and --grub-probefs.
40041 Handle --modules and --grub-probefs. Save the arguments in MODULES
40042 and GRUB_PROBEFS, respectively.
40043 Auto-detect a filesystem module against GRUBDIR. If the result is
40044 empty and modules are not specified explicitly, abort the
40045 installation. Add the result to MODULES.
40047 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
40048 disk/powerpc/ieee1275/ofdisk.c,
40049 include/grub/powerpc/ieee1275/init.h and
40050 term/powerpc/ieee1275/ofconsole.c.
40051 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
40052 term/ieee1275/ofconsole.c.
40054 * include/grub/powerpc/ieee1275/console.h: Resurrected.
40056 * COPYING: Upgraded to the latest version. Only the address of the
40057 FSF office has changed.
40059 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
40061 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
40062 kern/ieee1275.c with kern/ieee1275/of.c.
40064 * kern/ieee1275.c: Moved to ...
40065 * kern/ieee1275/of.c: ... here.
40067 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
40069 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
40072 * config.guess: Updated to the latest version from gnulib.
40073 * config.sub: Likewise.
40074 * install.sh: Likewise.
40075 * mkinstalldirs: Likewise.
40077 * include/grub/console.h: Removed. This file is arch-specific. Do
40078 not put this in include/grub.
40080 * include/grub/i386/pc/console.h: Resurrected.
40082 * util/console.c: Include grub/machine/console.h instead of
40084 * util/grub-emu.c: Likewise.
40086 2005-08-04 Marco Gerards <metgerards@student.han.nl>
40088 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
40091 From Vincent Pelletier <subdino2004@yahoo.fr>
40092 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
40093 Redefined to use grub_getwh.
40094 (grub_term): New member named getwh.
40095 (grub_getwh): New prototype.
40096 * kern/term.c (grub_getwh): New function.
40097 * term/i386/pc/console.c (grub_console_getwh): New function.
40098 (grub_console_term): New member `getwh'.
40099 * term/i386/pc/vga.c (grub_vga_getwh): New function.
40100 (grub_vga_term): New member `getwh'.
40101 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
40103 (grub_ofconsole_getw): New function.
40104 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
40105 (grub_ofconsole_term): New field named getwh and new initial
40108 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
40110 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
40111 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
40112 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
40113 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
40114 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
40115 of <grub/machine/ieee1275.h>.
40116 * commands/ieee1275/reboot.c: Likewise.
40117 * boot/powerpc/ieee1275/ieee1275.c: Move ...
40118 * kern/ieee1275.c: ... to here. All users updated. Change all
40119 parameter structs to use new type `grub_ieee1275_cell_t'.
40120 * term/powerpc/ieee1275/ofconsole.c: Move ...
40121 * term/ieee1275/ofconsole.c: ... to here. All users updated.
40122 * disk/powerpc/ieee1275/ofdisk.c: Move ...
40123 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
40124 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
40126 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
40127 Remove unused prototypes. All users updated.
40128 * include/grub/powerpc/ieee1275/console.h: Removed.
40129 * include/grub/powerpc/ieee1275/ieee1275.h: Define
40130 `grub_ieee1275_cell_t'.
40131 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
40132 Cast comparisons with -1 to the correct type.
40133 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
40134 type to match `grub_ieee1275_entry_fn'.
40136 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
40138 * DISTLIST: Added util/i386/pc/grub-probefs.c.
40140 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
40141 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
40143 (grub_probefs_SOURCES): New variable.
40145 * util/i386/pc/grub-probefs.c: New file.
40147 * util/i386/pc/grub-setup.c (main): Call
40148 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
40149 grub_hfs_init and grub_jfs_init to initialize the system. Call
40150 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
40151 grub_pc_partition_map_fini to finish the system.
40153 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
40155 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
40157 (grub_multiboot_load_elf32): Likewise.
40158 (grub_multiboot_is_elf64): Likewise.
40159 (grub_multiboot_load_elf64): Likewise.
40160 (grub_multiboot_load_elf): Likewise.
40161 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
40162 an ELF32 or ELF64 file.
40163 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
40165 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
40166 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
40167 NULL before calling FS->LABEL.
40168 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
40169 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
40170 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
40171 before calling FS->LABEL.
40173 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
40175 * util/i386/pc/grub-install.in (datadir): New variable.
40177 (pkgdatadir): New variable.
40178 (pkglibdir): Removed.
40180 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
40182 * DISTLIST: Added util/i386/pc/grub-install.in.
40184 * util/i386/pc/grub-install.in: New file.
40186 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
40187 (grub_install_SOURCES): Likewise.
40189 * genmk.rb: Added support for scripts.
40190 (Script): New class.
40191 (scripts): New variable.
40193 * Makefile.in (install-local): Install sbin_SCRIPTS by
40195 (uninstall): Remove sbin_SCRIPTS.
40197 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
40198 device, try to get a GRUB device by
40199 grub_util_biosdisk_get_grub_dev.
40202 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
40203 description for --device-map.
40205 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
40207 Change the semantics of variable hooks. They now return strings
40208 instead of error values.
40210 * util/i386/pc/grub-setup.c: Include grub/env.h.
40211 (setup): Use grub_device_set_root instead of grub_env_set.
40213 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
40214 grub_env_get instead of grub_device_set_root and
40215 grub_device_get_root, respectively.
40217 * kern/main.c (grub_env_write_root): New function.
40218 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
40219 grub_env_set instead of grub_device_set_root.
40221 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
40223 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
40224 rather than calling ENV->WRITE_HOOK afterwards.
40225 (grub_env_get): Return the result of ENV->READ_HOOK rather than
40226 passing a pointer of a pointer.
40227 (grub_register_variable_hook): Change the types of "read_hook" and
40228 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
40230 Allocate the default empty string on the heap, because this string
40231 may be freed later.
40233 * kern/device.c: Include grub/env.h.
40234 (grub_device_set_root): Removed.
40235 (grub_device_get_root): Likewise.
40236 (grub_device_open): Use grub_env_get instead of
40237 grub_device_get_root.
40239 * include/grub/env.h (grub_env_read_hook_t): New type.
40240 (grub_env_write_hook_t): Likewise.
40241 (grub_env_var): Change the types of "read_hook" and "write_hook"
40242 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
40243 (grub_register_variable_hook): Likewise.
40245 * include/grub/device.h (grub_device_set_root): Removed.
40246 (grub_device_set_root): Likewise.
40248 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
40249 make sure that DIRNAME terminates with '/', so that
40250 grub_fat_find_dir will fail if PATH is not a directory.
40252 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
40254 Use the qualifier auto for print_files and print_files_long.
40255 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
40257 Put a newline only if there is no error.
40258 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
40261 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
40263 * kern/partition.c (grub_partition_probe): Initialize PART to
40264 NULL. Otherwise, when no partition map is registered, this returns
40267 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
40269 * partmap/apple.c (apple_partition_map_iterate): Check if POS
40270 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
40273 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
40275 * commands/ls.c (grub_ls_list_disks): Print the filesystem
40276 information on each device, if it does not have partitions. Print
40277 "Device" instead of "Disk", because this function is not specific
40280 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
40281 static to ensure that it is put on the memory rather than a
40284 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40286 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
40287 (grub_cat_init): Likewise.
40288 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
40289 (options): Likewise.
40290 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
40291 (grub_configfile_init): Likewise.
40292 * font/manager.c (GRUB_MOD_INIT): Likewise.
40293 * commands/help.c (GRUB_MOD_INIT): Likewise.
40294 (grub_help_init): Likewise.
40295 * normal/command.c (grub_command_init): Likewise.
40296 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
40297 * disk/loopback.c (grub_loop_init): Likewise.
40298 (GRUB_MOD_INIT): Likewise.
40299 * commands/ls.c (grub_ls_init): Likewise.
40300 (GRUB_MOD_INIT): Likewise.
40301 (options): Likewise.
40302 * commands/boot.c (grub_boot_init): Likewise.
40303 (GRUB_MOD_INIT): Likewise.
40304 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
40305 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
40306 (GRUB_MOD_INIT): Likewise.
40307 * commands/cmp.c (grub_cmp_init): Likewise.
40308 (GRUB_MOD_INIT): Likewise.
40310 * normal/arg.c: Use <> instead of "" to include header files.
40311 (SHORT_ARG_HELP): New macro.
40312 (SHORT_ARG_USAGE): Likewise.
40313 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
40314 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
40316 (find_short): Check if C is 'h' or 'u' explicitly.
40317 (grub_arg_show_help): Use space characters instead of tabs. Treat
40318 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
40319 are shown with --help and --usage only if they are not used for
40320 the command itself.
40321 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
40324 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
40325 const into "longarg". Change the type of "shortarg" to int.
40327 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40329 * boot/i386/pc/boot.S (boot_drive_check): New label.
40331 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
40334 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
40335 which do not pass a boot drive correctly. Copied from GRUB Legacy.
40337 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40339 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
40340 When turning off Gate A20, skip the check and return immediately,
40341 because this is not fatal usually.
40343 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
40345 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
40346 be 0x7C00 instead of 0x8000.
40348 * boot/i386/pc/pxeboot.S: Rewritten.
40350 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
40352 (gate_a20_check_state): Read a byte from 0x108000. Invert the
40355 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
40357 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
40358 robustness. This routine now supports a BIOS call and System
40359 Control Port A to modify the gate A20.
40361 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
40362 Increased to 0x440.
40364 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
40366 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
40367 device path and resulting ihandle.
40368 (grub_ofdisk_close): dprintf the ihandle being closed.
40369 (grub_ofdisk_read): dprintf function parameters.
40370 * kern/mm.c (grub_mm_init_region): Likewise.
40371 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
40372 (grub_linux_boot): dprintf the Linux entry point, initrd address and
40373 size, and boot arguments.
40374 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
40375 before loading into memory.
40376 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
40377 before loading into memory.
40379 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
40381 * kern/mm.c: Added much documentation.
40382 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
40383 8, set to 5 instead of 8.
40385 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
40387 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
40389 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
40390 (grub_mkdevicemap_SOURCES): New variable.
40392 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
40393 lib/device.c of GRUB Legacy.
40395 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
40397 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
40398 instead of PATH is NULL.
40400 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
40402 * commands/cmp.c (BUFFER_SIZE): New macro.
40403 (grub_cmd_cmp): Close the right file at the right time. Compare
40404 only data just read. Don't report files of different size as
40405 identical. Dynamically allocate buffers. Move variable
40406 declarations at the beginning of function.
40408 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
40410 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
40413 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
40415 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
40416 when backspace is pressed at beginning of line.
40418 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
40420 * DISTLIST: Added genfslist.sh.
40422 * normal/main.c (fs_module_list): New variable.
40423 (autoload_fs_module): New function.
40424 (read_fs_list): Likewise.
40425 (grub_normal_execute): Call read_fs_list.
40427 * kern/fs.c (grub_fs_autoload_hook): New variable.
40428 (grub_fs_probe): Added support for auto-loading.
40430 * include/grub/normal.h (struct grub_fs_module_list): New struct.
40431 (grub_fs_module_list_t): New type.
40433 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
40434 (grub_fs_autoload_hook): New prototype.
40436 * genfslist.sh: New file.
40438 * genmk.rb: Added a rule to generate a filesystem list.
40440 2005-06-30 Marco Gerards <metgerards@student.han.nl>
40442 * configure.ac: Fix the test for cross-compiling.
40444 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
40445 define GRUB_UTIL anymore.
40447 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
40448 so this function works on other systems than just big endian.
40449 (load_modules): Likewise.
40450 (add_segments): Likewise.
40452 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
40454 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
40455 contains `l' modifier, get a long from va_arg().
40457 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
40459 * kern/mm.c (grub_free): If the next free block which is being
40460 merged is the first free block, set the first block to the block
40462 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
40464 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
40466 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
40467 `grub_ieee1275_chosen'.
40469 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
40471 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
40472 (grub_ieee1275_chosen): New variable.
40473 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
40475 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
40476 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
40477 Rename first argument to `phandle' for consistency.
40478 (grub_ieee1275_get_property_length): Likewise.
40479 (grub_ieee1275_next_property): Likewise. Change type of first argument
40480 to grub_ieee1275_phandle_t.
40481 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
40482 Move export next to declaration.
40483 (grub_ieee1275_chosen): New variable.
40484 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
40485 Correct cosmetic typo.
40486 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
40487 `grub_ieee1275_chosen'.
40488 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
40489 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
40490 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
40491 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
40492 `grub_ieee1275_chosen'.
40494 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
40496 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
40498 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
40499 /chosen/bootargs as "variable=value" pairs.
40501 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
40503 * include/grub/misc.h (grub_dprintf): New macro.
40504 (grub_real_dprintf): New prototype.
40505 (grub_strword): Likewise.
40506 (grub_iswordseparator): Likewise.
40507 * kern/misc.c (grub_real_dprintf): New function.
40508 (grub_strword): Likewise.
40509 (grub_iswordseparator): Likewise.
40511 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
40513 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
40514 (roundup): Remove macro.
40515 (grub_ieee1275_flags): Make static.
40516 (grub_ieee1275_realmode): Remove.
40517 (grub_ieee1275_test_flag): New function.
40518 (grub_ieee1275_set_flag): Likewise.
40519 (find_options): Rename to `grub_ieee1275_find_options'; update
40520 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
40521 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
40522 (cmain): New prototype.
40523 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
40524 `grub_ieee1275_flags' directly.
40525 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
40526 machine/biosdisk.h.
40527 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
40528 Don't include grub/machine/init.h.
40529 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
40530 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
40532 (grub_ieee1275_realmode): Likewise.
40533 (grub_ieee1275_flag): New enum.
40534 (grub_ieee1275_test_flag): New prototype.
40535 (grub_ieee1275_set_flag): New prototype.
40536 * include/grub/powerpc/ieee1275/init.h: Remove file.
40537 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
40538 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
40539 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
40540 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
40542 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
40543 `grub_ieee1275_test_flag'.
40544 (grub_ieee1275_encode_devname): Likewise.
40546 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
40548 * include/grub/powerpc/ieee1275/ieee1275.h
40549 (grub_ieee1275_encode_devname): New prototype.
40550 (grub_ieee1275_get_filename): Likewise.
40551 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
40553 (grub_set_prefix): Likewise.
40554 (grub_machine_init): Call grub_set_prefix.
40555 * kern/powerpc/ieee1275/openfw.c: Fix typos.
40556 (grub_parse_type): New enum.
40557 (grub_ieee1275_get_devargs): New function.
40558 (grub_ieee1275_get_devname): Likewise.
40559 (grub_ieee1275_parse_args): Likewise.
40560 (grub_ieee1275_get_filename): Likewise.
40561 (grub_ieee1275_encode_devname): Likewise.
40563 2005-03-30 Marco Gerards <metgerards@student.han.nl>
40565 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
40566 `grub_loader_unset'.
40568 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
40570 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
40571 instead of grub_ieee1275_interpret.
40572 (grub_halt_init): New function.
40573 (grub_halt_fini): Likewise.
40574 (GRUB_MOD_INIT): Correct message grammar.
40575 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
40576 instead of grub_ieee1275_interpret.
40577 (grub_reboot_init): New function.
40578 (grub_reboot_fini): Likewise.
40579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
40580 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
40581 util/i386/pc/misc.c with commands/ieee1275/halt.c,
40582 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
40583 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
40585 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
40587 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
40589 (grub_halt): Likewise.
40590 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
40591 (cmain): Remove __attribute__((unused)).
40592 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
40593 (grub_heap_len): Likewise.
40594 (grub_machine_fini): New function.
40595 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
40596 (grub_halt): Likewise.
40597 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
40599 * util/powerpc/ieee1275/misc.c: New file.
40601 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
40603 * DISTLIST: New file.
40604 * gendistlist.sh: Likewise.
40606 * Makefile.in (COMMON_DISTFILES): Removed.
40607 (BOOT_DISTFILES): Likewise.
40608 (CONF_DISTFILES): Likewise.
40609 (DISK_DISTFILES): Likewise.
40610 (FS_DISTFILES): Likewise.
40611 (INCLUDE_DISTFILES): Likewise.
40612 (KERN_DISTFILES): Likewise.
40613 (LOADER_DISTFILES): Likewise.
40614 (TERM_DISTFILES): Likewise.
40615 (UTIL_DISTFILES): Likewise.
40616 (DISTFILES): Likewise.
40617 (uninstall): Uninstall files in $(pkgdata_DATA).
40618 (DISTLIST): New target.
40619 (distdir): Use the contents of the file DISTLIST to get a list of
40622 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
40624 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
40625 descriptor. This is ported from GRUB Legacy.
40627 * gencmdlist.sh: Added an extra semicolon to make it work with
40628 old sed versions. Reported by Robert Bihlmeyer
40629 <robbe@orcus.priv.at>.
40631 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
40633 Automatic loading of commands is supported.
40635 * normal/main.c (read_command_list): New function.
40636 (grub_normal_execute): Call read_command_list.
40638 * normal/command.c (grub_register_command): Return zero or CMD.
40639 Allocate CMD->NAME from the heap.
40640 Initialize CMD->MODULE_NAME to zero.
40641 Find the same name as well. If the same command is found and it is
40642 a dummy command, overwrite members. If it is not a dummy command,
40644 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
40645 (grub_command_find): If a dummy command is found, load a module
40646 and retry to find a command only once.
40648 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
40649 make sure that each command is loaded.
40651 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
40653 (struct grub_command): Remove const from the member `name'.
40654 Add a new member `module_name'.
40655 (grub_register_command): Return grub_command_t.
40657 * commands/help.c (grub_cmd_help): Call grub_command_find to make
40658 sure that each command is loaded.
40660 * genmk.rb (PModule::rule): Specify a module name without the
40661 suffix ".mod" to gencmdlist.sh.
40663 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40665 * gencmdlist.sh: New file.
40667 * genmk.rb (PModule::rule): Generate a rule for a command list.
40669 Generate command.lst from $(COMMANDFILES).
40671 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
40672 (DATA): Added $(pkgdata_DATA).
40673 (install-local): Install files in $(pkgdata_DATA).
40675 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
40677 * term/i386/pc/vga.c (debug_command): Removed.
40678 (GRUB_MOD_INIT): Do not register the command "debug".
40680 From Hollis Blanchard:
40681 * commands/configfile.c: New file.
40682 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40683 commands/configfile.c.
40684 (pkgdata_MODULES): Added configfile.mod.
40685 (configfile_mod_SOURCES): New variable.
40686 (configfile_mod_CFLAGS): Likewise.
40687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
40688 commands/configfile.c.
40689 (pkgdata_MODULES): Added configfile.mod.
40690 (configfile_mod_SOURCES): New variable.
40691 (configfile_mod_CFLAGS): Likewise.
40692 * util/grub-emu.c (main): Call grub_configfile_init and
40693 grub_configfile_fini.
40694 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
40696 [GRUB_UTIL] (grub_configfile_fini): Likewise.
40698 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40700 * normal/arg.c (grub_arg_show_help): Do not show the bug report
40703 * commands/help.c (grub_cmd_help): Do not print newlines after
40704 the last command in print_command_help.
40706 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
40708 * commands/default.h: New file.
40709 * commands/timeout.h: Likewise.
40710 * normal/context.c: Likewise.
40712 * util/misc.c: Do not include sys/times.h.
40713 Include sys/time.h and grub/machine/time.h.
40714 (grub_get_rtc): Rewritten with gettimeofday.
40716 * util/grub-emu.c (main): Call grub_default_init and
40717 grub_timeout_init before grub_normal_init, and call
40718 grub_timeout_fini and grub_default_fini after grub_main.
40720 * util/console.c (grub_ncurses_checkkey): Return the read
40723 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
40726 * normal/main.c (read_config_file): Push MENU. If this fails,
40727 print an error and wait for a user input.
40728 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
40729 If a menu is empty or an error occurs, pop MENU.
40730 (grub_normal_execute): Pop and free MENU after grub_menu_run
40733 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
40735 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
40737 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40739 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
40741 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
40744 * include/grub/normal.h (struct grub_menu_list): New struct.
40745 (grub_menu_list_t): New type.
40746 (struct grub_context): New struct.
40747 (grub_context_t): New type.
40748 (grub_register_command): Got rid of EXPORT_FUNC.
40749 (grub_unregister_command): Likewise.
40750 (grub_context_get): New prototype.
40751 (grub_context_get_current_menu): Likewise.
40752 (grub_context_push_menu): Likewise.
40753 (grub_context_pop_menu): Likewise.
40754 [GRUB_UTIL] (grub_default_init): Likewise.
40755 [GRUB_UTIL] (grub_default_fini): Likewise.
40756 [GRUB_UTIL] (grub_timeout_init): Likewise.
40757 [GRUB_UTIL] (grub_timeout_fini): Likewise.
40759 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
40760 commands/timeout.c and normal/context.c.
40761 (pkgdata_MODULES): Added default.mod and timeout.mod.
40762 (normal_mod_SOURCES): Added normal/context.c.
40763 (default_mod_SOURCES): New variable.
40764 (default_mod_CFLAGS): Likewise.
40765 (timeout_mod_SOURCES): Likewise.
40766 (timeout_mod_CFLAGS): Likewise.
40767 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
40769 (pkgdata_MODULES): Added default.mod and timeout.mod.
40770 (normal_mod_SOURCES): Added normal/context.c.
40771 (default_mod_SOURCES): New variable.
40772 (default_mod_CFLAGS): Likewise.
40773 (timeout_mod_SOURCES): Likewise.
40774 (timeout_mod_CFLAGS): Likewise.
40776 * Makefile.in (all-local): Added $(MKFILES).
40778 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
40780 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
40781 (grub_emu_SOURCES): Likewise.
40782 (pkgdata_MODULES): Add `sun.mod'.
40783 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40784 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40786 (pkgdata_MODULES): Add `sun.mod'.
40787 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
40788 * include/grub/partition.h (grub_sun_partition_map_init): New
40790 (grub_sun_partition_map_fini): Likewise.
40791 * partmap/sun.c: New file.
40792 * util/grub-emu.c (main): Initialize and de-initialize the sun
40793 partitionmap support.
40795 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
40797 This implements an Emacs-like menu entry editor.
40799 * normal/menu_entry.c: New file.
40801 * util/console.c (grub_ncurses_putchar): Translate some Unicode
40802 characters to ASCII.
40803 (saved_char): New variable.
40804 (grub_ncurses_checkkey): Rewritten completely.
40805 (grub_ncurses_getkey): Likewise.
40806 (grub_ncurses_init): Call raw instead of cbreak.
40808 * normal/menu.c (print_entry): Do not put a space.
40809 (init_page): Renamed to ...
40810 (grub_menu_init_page): ... this. All callers changed.
40811 (edit_menu_entry): Removed.
40812 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
40814 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
40816 * kern/misc.c (grub_vprintf): Call grub_refresh.
40818 * normal/menu.c (DISP_LEFT): Renamed to ...
40819 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
40820 * normal/menu.c (DISP_UP): Renamed to ...
40821 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
40822 * normal/menu.c (DISP_RIGHT): Renamed to ...
40823 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
40824 * normal/menu.c (DISP_DOWN): Renamed to ...
40825 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
40826 * normal/menu.c (DISP_HLINE): Renamed to ...
40827 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
40828 * normal/menu.c (DISP_VLINE): Renamed to ...
40829 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
40830 * normal/menu.c (DISP_UL): Renamed to ...
40831 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
40832 * normal/menu.c (DISP_UR): Renamed to ...
40833 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
40834 * normal/menu.c (DISP_LL): Renamed to ...
40835 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
40836 * normal/menu.c (DISP_LR): Renamed to ...
40837 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
40838 * normal/menu.c (TERM_WIDTH): Renamed to ...
40839 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
40840 * normal/menu.c (TERM_HEIGHT): Renamed to ...
40841 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
40842 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
40843 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
40844 * normal/menu.c (TERM_MARGIN): Renamed to ...
40845 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
40846 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
40847 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
40848 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
40849 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
40850 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
40851 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
40852 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
40853 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
40854 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
40855 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
40856 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
40857 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
40858 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
40859 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
40860 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
40861 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
40862 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
40863 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
40864 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
40865 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
40866 All callers changed.
40868 * include/grub/normal.h: New prototype.
40870 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40871 normal/menu_entry.c.
40872 (normal_mod_SOURCES): Likewise.
40873 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40874 (normal_mod_SOURCES): Likewise.
40876 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
40878 * include/grub/normal.h (grub_halt_init): New prototype.
40879 (grub_halt_fini): Likewise.
40880 (grub_reboot_init): Likewise.
40881 (grub_reboot_fini): Likewise.
40883 * util/grub-emu.c: Include signal.h.
40884 (main_env): New global variable.
40885 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
40887 (grub_machine_fini): New function.
40888 (main): Call grub_halt_init and grub_reboot_init before
40889 grub_main, and grub_reboot_fini and grub_halt_fini after it.
40890 Call setjmp with MAIN_ENV to go back afterwards.
40891 Call grub_machine_fini right before return.
40893 * include/grub/util/misc.h: Include setjmp.h.
40894 (main_env): New prototype.
40896 * include/grub/kernel.h (grub_machine_fini): New prototype.
40897 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
40898 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
40900 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
40901 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
40902 * term/i386/pc/console.c (grub_console_fini): Likewise.
40904 * util/i386/pc/misc.c: New file.
40906 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
40907 util/i386/pc/misc.c, commands/i386/pc/halt.c and
40908 commands/i386/pc/reboot.c.
40910 2005-02-14 Guillem Jover <guillem@hadrons.org>
40912 * include/grub/dl.h (grub_dl_check_header): New prototype.
40913 (grub_arch_dl_check_header): Change return type to grub_err_t,
40914 remove size parameter and export function. Update all callers.
40915 * kern/dl.c (grub_dl_check_header): New function.
40916 (grub_dl_load_core): Use `grub_dl_check_header' instead of
40917 `grub_arch_dl_check_header'. Check ELF type. Check if sections
40918 are inside the core.
40919 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
40920 independent ELF header checks.
40921 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
40922 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
40923 `grub_dl_check_header' instead of explicit checks. Check for the
40925 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
40926 `grub_dl_check_header' instead of explicit checks. Remove arch
40927 specific ELF header checks.
40929 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
40932 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
40934 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
40935 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
40937 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
40939 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
40940 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
40941 (part_map_iterate): Clear `grub_errno' and return 0 if
40942 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
40943 * partmap/amiga.c (amiga_partition_map_iterate): Return
40944 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
40945 * partmap/apple.c (apple_partition_map_iterate): Likewise.
40947 2005-02-01 Guillem Jover <guillem@hadrons.org>
40949 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
40952 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40954 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
40956 (grub_rescue_cmd_linux): New prototype.
40957 (grub_rescue_cmd_initrd): Likewise.
40958 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
40960 (grub_linux_release_mem): Release the memory for the initrd.
40961 (grub_load_linux): Renamed from this...
40962 (grub_rescue_cmd_linux): ...To this. Changed all callers.
40963 Changed `entry' not to be static. Loop over memory regions to
40964 find another one when the default fails.
40965 (grub_rescue_cmd_initrd): New function.
40966 (grub_linux_init): Remove function.
40967 (grub_linux_fini): Likewise.
40968 (GRUB_MOD_INIT): Register `initrd'.
40969 (GRUB_MOD_FINI): Unregister `initrd'.
40970 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
40972 (grub_linux_normal_fini): Likewise.
40973 (GRUB_MOD_INIT): Register `initrd'.
40974 (GRUB_MOD_FINI): Unregister `initrd'.
40976 2005-01-31 Marco Gerards <metgerards@student.han.nl>
40978 * commands/help.c: New file.
40979 * normal/arg.c (show_help): Renamed to...
40980 (grub_arg_show_help): ... this.
40981 * commands/i386/pc/halt.c: New file.
40982 * commands/i386/pc/reboot.c: Likewise.
40983 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
40984 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
40985 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
40986 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
40988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
40990 (pkgdata_MODULES): Add `help.mod'.
40991 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
40992 * grub/i386/pc/init.h (grub_reboot): New prototype.
40993 (grub_halt): Likewise.
40994 * include/grub/normal.h (grub_arg_show_help): New prototype.
40995 (grub_help_init): Likewise.
40996 (grub_help_fini): Likewise.
40997 * util/grub-emu.c (main): Initialize and deinitialize the help
41000 * normal/cmdline.c (grub_cmdline_get): Doc fix.
41002 * normal/command.c (grub_command_init): Fixed the description of
41003 the `set' and `unset' commands.
41005 2005-01-31 Marco Gerards <metgerards@student.han.nl>
41007 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
41009 * commands/ieee1275/halt.c: New file.
41010 * commands/ieee1275/reboot.c: Likewise.
41011 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
41012 `__attribute__ ((unused))'. Some GCS related fixed.
41013 (grub_suspend_init) [GRUB_UTIL]: Function removed.
41014 (grub_suspend_fini): Likewise.
41015 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
41017 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
41018 (halt_mod_CFLAGS): New variables.
41019 * include/grub/powerpc/ieee1275/ieee1275.h
41020 (grub_ieee1275_interpret): New prototype.
41022 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
41024 * include/grub/misc.h (memmove): New prototype.
41025 (memcpy): Likewise.
41027 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
41029 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
41030 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
41032 2005-01-22 Marco Gerards <metgerards@student.han.nl>
41034 * kern/misc.c (grub_strndup): Function rewritten.
41036 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
41038 * normal/menu.c (TERM_WIDTH): Macro redefined.
41039 (TERM_TOP_BORDER_Y): Likewise.
41040 (draw_border): Replaced while-loop by a for-loop. Make the number
41041 of lines consistent with the number of lines displayed in
41042 print_entries. Added a margin below the rectangle.
41043 (print_entry): Make the entry fit in the rectangle.
41044 (print_entries): Display the scroll arrows next to the right
41047 2005-01-21 Marco Gerards <metgerards@student.han.nl>
41049 * fs/minix.c (grub_minix_find_file): Reserve more space for
41050 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
41051 `grub_strncpy' to copy `path' into it.
41053 2005-01-21 Marco Gerards <metgerards@student.han.nl>
41055 Add the loopback device, a device via which files can be accessed
41058 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
41059 (pkgdata_MODULES): Add loopback.mod.
41060 (loopback_mod_SOURCES): New variable.
41061 (loopback_mod_CFLAGS): Likewise.
41062 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
41064 (pkgdata_MODULES): Add loopback.mod.
41065 (loopback_mod_SOURCES): New variable.
41066 (loopback_mod_CFLAGS): Likewise.
41067 * disk/loopback.c: new file.
41068 * include/grub/normal.h (grub_loop_init): New prototype.
41069 (grub_loop_fini): New prototype.
41070 * util/grub-emu.c (main): Initialize and de-initialize loopback
41072 * include/grub/disk.h (grub_disk_dev_id): Add
41073 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
41075 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
41077 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
41079 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
41080 (suspend_mod_SOURCES): New variable.
41081 (suspend_mod_CFLAGS): Likewise.
41082 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
41084 * commands/ieee1275/suspend.c: New file.
41086 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
41088 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
41089 ((unused))' to `__attribute__ ((used))'.
41090 (GRUB_MOD_FINI): Likewise.
41091 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
41092 * genmk.rb (PModule): Assign space to common symbols when linking
41095 2005-01-20 Marco Gerards <metgerards@student.han.nl>
41097 * include/grub/mm.h (grub_mm_init_region): Change the type of the
41098 `unsigned' arguments to `grub_size_t'.
41099 (grub_malloc): Likewise.
41100 (grub_realloc): Likewise.
41101 (grub_memalign): Likewise.
41102 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
41103 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
41104 * util/misc.c (grub_malloc): Likewise.
41105 (grub_realloc): Likewise.
41106 * kern/mm.c (get_header_from_pointer): Change the casts to
41107 `unsigned' into a cast to `grub_size_t'.
41109 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
41110 point to `currnode' when `currnode' is changed.
41112 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
41113 Schottelius <nico-linux@schottelius.org>.
41115 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
41117 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
41118 (note_path): Remove variable.
41119 (GRUB_IEEE1275_NOTE_NAME): New macro.
41120 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
41121 (grub_ieee1275_note_hdr): New structure.
41122 (grub_ieee1275_note_desc): Likewise.
41123 (grub_ieee1275_note): Likewise.
41124 (load_note): Remove `dir' argument. All callers updated. Remove
41125 `note_img' and `path'. Do not load a file from `note_path'.
41126 Initialize a struct grub_ieee1275_note and write that to `out'.
41127 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
41129 2005-01-05 Marco Gerards <metgerards@student.han.nl>
41131 * util/misc.c (grub_util_read_image): Revert last change. It
41132 called `grub_util_read_at', which seeks from the beginning of the
41135 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
41137 * TODO: Add note about endianness in grub-mkimage.
41138 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
41140 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
41141 (grub_mkimage_SOURCES): New target.
41142 * include/grub/kernel.h (grub_start_addr): Remove variable.
41143 (grub_end_addr): Likewise.
41144 (grub_total_module_size): Likewise.
41145 (grub_kernel_image_size): Likewise.
41146 (GRUB_MODULE_MAGIC): New constant.
41147 (grub_module_info): New structure.
41148 (grub_arch_modules_addr): New prototype.
41149 (grub_get_end_addr): Remove prototype.
41150 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
41151 * include/grub/powerpc/ieee1275/kernel.h: New file.
41152 * include/grub/util/misc.h (grub_util_get_fp_size): New
41154 (grub_util_read_at): Likewise.
41155 (grub_util_write_image_at): Likewise.
41156 * kern/main.c (grub_get_end_addr): Remove function.
41157 (grub_load_modules): Call grub_arch_modules_addr instead of using
41158 grub_end_addr. Look for a grub_module_info struct in memory. Use
41159 the grub_module_info fields instead of calling grub_get_end_addr
41160 as loop conditions. Move grub_add_unused_region code here.
41161 (grub_add_unused_region): Remove function.
41162 * kern/i386/pc/init.c: Include grub/cache.h.
41163 (grub_machine_init): Remove call to grub_get_end_addr. Remove
41164 one call to add_mem_region.
41165 (grub_arch_modules_addr): New function.
41166 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
41167 (grub_total_module_size): Likewise.
41168 Include grub/machine/kernel.h.
41169 (grub_arch_modules_addr): New function.
41170 * util/grub-emu.c (grub_end_addr): Remove variable.
41171 (grub_total_module_size): Likewise.
41172 (grub_arch_modules_addr): New function.
41173 * util/misc.c: Include unistd.h.
41174 (grub_util_get_fp_size): New function.
41175 (grub_util_read_at): Likewise.
41176 (grub_util_write_image_at): Likewise.
41177 (grub_util_read_image): Call grub_util_read_at.
41178 (grub_util_write_image): Call grub_util_write_image_at.
41179 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
41180 additional memory in kernel_img for a struct grub_module_info.
41181 Fill in that grub_module_info.
41182 * util/powerpc/ieee1275/grub-mkimage.c: New file.
41184 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
41186 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
41188 * include/grub/powerpc/ieee1275/ieee1275.h
41189 (grub_ieee1275_milliseconds): New prototype.
41190 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
41192 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
41193 grub_ieee1275_milliseconds.
41195 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
41197 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
41199 (find_options): New function.
41200 (cmain): Call find_options.
41201 * include/grub/powerpc/ieee1275/ieee1275.h
41202 (grub_ieee1275_realmode): New extern variable.
41203 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
41204 grub_map if grub_ieee1275_realmode is false.
41206 2004-12-29 Marco Gerards <metgerards@student.han.nl>
41208 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
41209 lines are inserted and make it work like readline. Reported by
41210 Vincent Pelletier <subdino2004@yahoo.fr>.
41212 2004-12-28 Marco Gerards <metgerards@student.han.nl>
41214 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
41216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
41217 `kern/powerpc/cache.S'.
41219 2004-12-27 Marco Gerards <metgerards@student.han.nl>
41221 * genmk.rb: Handle the `Program' class in the main loop. Written
41222 by Johan Rydberg <jrydberg@gnu.org>.
41223 (Program): New class.
41224 (programs): New variable.
41225 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
41226 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
41227 instead of "grub/kernel.h". Include <grub/machine/init.h>.
41228 (help_arch): Function removed.
41229 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
41230 `powerpc/libgcc.h' and `loader.h'.
41231 (pkgdata_PROGRAMS): New variable.
41232 (sbin_UTILITIES): Variable removed.
41233 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
41234 (grubof_SOURCES): Variable re-defined so it only includes the
41235 core functionality.
41236 (grubof_CFLAGS): Remove `-DGRUBOF'.
41237 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
41238 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
41239 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
41240 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
41241 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
41242 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
41243 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
41244 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
41245 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
41246 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
41247 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
41248 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
41249 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
41250 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
41251 (pc_mod_CFLAGS): New variables.
41252 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
41253 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
41254 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
41255 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
41257 * include/grub/i386/pc/init.h (grub_os_area_addr)
41258 (rub_os_area_size): ... to here.
41259 * include/grub/powerpc/ieee1275/ieee1275.h
41260 (grub_ieee1275_entry_fn): Export symbol.
41261 * include/grub/powerpc/ieee1275/init.h: New file.
41262 * include/grub/powerpc/libgcc.h: Likewise.
41263 * include/grub/cache.h: Likewise.
41264 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
41265 <hollis@penguinppc.org>.
41266 * kern/dl.c: Include <grub/cache.h>.
41267 (grub_dl_flush_cache): New function.
41268 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
41270 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
41271 (grub_console_init): Removed prototypes.
41272 (grub_machine_init): Don't initialize the modules anymore.
41273 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
41275 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
41276 Macro undef removed.
41277 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
41278 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
41279 relocation `R_PPC_REL32'. Return an error when the relocation is
41281 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
41282 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
41283 * util/misc.c (grub_arch_sync_caches): Likewise.
41285 2004-12-19 Marco Gerards <metgerards@student.han.nl>
41287 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
41288 `symlist.c', add `grubof_symlist.c'.
41289 (symlist.c): Variable removed.
41290 (grubof_HEADERS): Variable added.
41291 (grubof_symlist.c): New target.
41292 (kernel_syms.lst): Use `grubof_HEADERS' instead of
41293 `kernel_img_HEADERS'.
41294 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
41295 * kern/powerpc/dl.c: New file.
41296 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
41298 (grub_arch_dl_relocate_symbols): Likewise.
41299 (grub_register_exported_symbols): Likewise.
41301 2004-12-13 Marco Gerards <metgerards@student.han.nl>
41303 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
41304 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
41305 to fail instead. Reported by Vincent Pelletier
41306 <subdino2004@yahoo.fr>.
41308 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
41309 it is not allocated. Reported by Vincent Pelletier
41310 <subdino2004@yahoo.fr>.
41312 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
41313 output so the output looks better.
41315 2004-12-04 Marco Gerards <metgerards@student.han.nl>
41317 Modulize the partition map support and add support for the amiga
41320 * commands/ls.c: Include <grub/partition.h> instead of
41321 <grub/machine/partition.h>.
41322 * kern/disk.c: Likewise.
41323 * kern/rescue.c: Likewise.
41324 * loader/i386/pc/chainloader.c: Likewise.
41325 * normal/cmdline.c: Likewise.
41326 * kern/powerpc/ieee1275/init.c: Likewise.
41327 (grub_machine_init): Call `grub_pc_partition_map_init',
41328 `grub_amiga_partition_map_init' and
41329 `grub_apple_partition_map_init'.
41330 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
41331 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
41332 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
41333 `partition.h' and `pc_partition.h'.
41334 (grub_setup_SOURCES): Remove
41335 `disk/i386/pc/partition.c'. Add `kern/partition.c',
41336 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
41337 (grub_emu_SOURCES): Likewise.
41338 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
41339 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
41340 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
41341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
41342 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
41343 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
41344 (grubof_SOURCES): Likewise.
41345 * disk/i386/pc/partition.c: File removed.
41346 * disk/powerpc/ieee1275/partition.c: Likewise.
41347 * include/grub/powerpc/ieee1275/partition.h: Likewise.
41348 * include/grub/i386/pc/partition.h: Likewise.
41349 * kern/partition.c: New file.
41350 * partmap/amiga.c: Likewise.
41351 * partmap/apple.c: Likewise.
41352 * partmap/pc.c: Likewise.
41353 * include/grub/partition.h: Likewise..
41354 * include/grub/pc_partition.h: Likewise.
41355 * util/grub-emu.c: Include <grub/partition.h> instead of
41356 <grub/machine/partition.h>.
41357 (main): Call `grub_pc_partition_map_init',
41358 `grub_amiga_partition_map_init' and
41359 `grub_apple_partition_map_init' and deinitialize afterwards.
41360 * util/i386/pc/biosdisk.c: Include `#include
41361 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
41362 `<grub/machine/partition.h>'.
41363 * util/i386/pc/grub-setup.c: Likewise.
41364 * util/i386/pc/biosdisk.c: Likewise.
41365 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
41366 partition information in case of a PC partition.
41367 * util/i386/pc/grub-setup.c: Include `#include
41368 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
41369 `<grub/machine/partition.h>'.
41370 (setup): Only access the PC specific partition information in case
41373 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
41375 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
41376 (grub_longjmp): Likewise.
41377 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
41379 * normal/powerpc/setjmp.S: New file.
41380 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
41381 `normal/powerpc/setjmp.S'.
41382 (grubof_CFLAGS): Add `-DGRUBOF'.
41383 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
41384 [GRUB_UTIL && !GRUBOF].
41386 2004-11-16 Marco Gerards <metgerards@student.han.nl>
41388 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
41389 property named `name'. Correctly handle the error returned by
41390 `grub_ieee1275_finddevice' if a device can not be opened.
41392 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
41394 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
41395 `actual' for negativity.
41396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
41399 2004-11-01 Marco Gerards <metgerards@student.han.nl>
41401 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
41402 (PAGE_OFFSET): New macro.
41403 (CRTC_ADDR_PORT): Likewise.
41404 (CRTC_DATA_PORT): Likewise.
41405 (START_ADDR_HIGH_REGISTER): Likewise.
41406 (START_ADDR_LOW_REGISTER): Likewise.
41407 (GRAPHICS_ADDR_PORT): Likewise.
41408 (GRAPHICS_DATA_PORT): Likewise.
41409 (READ_MAP_REGISTER): Likewise.
41410 (INPUT_STATUS1_REGISTER): Likewise.
41411 (INPUT_STATUS1_VERTR_BIT): Likewise.
41412 (page): New variable.
41413 (wait_vretrace): New function.
41414 (set_read_map): Likewise.
41415 (set_start_address): Likewise.
41416 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
41418 (check_vga_mem): Take the page into account.
41419 (write_char): Likewise.
41420 (write_cursor): Likewise.
41421 (scroll_up): Likewise. Copy the page to the page that is not
41422 shown and switch between both pages.
41423 (grub_vga_putchar): Fix off by one error.
41424 (grub_vga_cls): Wait for the vertical retrace. Take the page into
41427 2004-11-01 Marco Gerards <metgerards@student.han.nl>
41429 Add support for iso9660 (including rockridge).
41431 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
41432 (iso9660_mod_SOURCES): New variable.
41433 (iso9660_mod_CFLAGS): Likewise.
41434 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
41435 * include/grub/fs.h (grub_iso9660_init): New prototype.
41436 * util/grub-emu.c (main): Call `grub_iso9660_init'.
41437 * fs/iso9660.c: New file.
41439 * include/grub/misc.h (grub_strncat): New prototype.
41440 * kern/misc.c (grub_strncat): New function.
41442 * fs/hfs.c (grub_hfs_mount): Translate the error
41443 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
41444 * fs/jfs.c (grub_jfs_mount): Likewise.
41445 * fs/ufs.c (grub_ufs_mount): Likewise.
41447 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
41449 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
41450 which initialized BAT registers.
41451 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
41452 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
41454 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
41455 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
41457 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
41458 (grub_mapclaim): Likewise.
41459 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
41460 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
41463 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
41465 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
41466 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
41467 -ffreestanding and -msoft-float.
41469 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
41471 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
41472 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
41473 set in grub_ieee1275_flags.
41475 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
41477 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
41479 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
41480 grub_console_init first.
41481 Change the memory range used for grub_ieee1275_claim and
41482 grub_mm_init_region.
41483 Print an error message if the claim fails.
41484 Include <grub/misc.h>.
41486 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
41488 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
41489 Call grub_children_iterate for device nodes of type `scsi',
41491 (grub_ofdisk_open): Remove manual device alias resolution.
41492 Fix memory leak when device cannot be opened.
41493 * include/grub/powerpc/ieee1275/ieee1275.h
41494 (grub_children_iterate): New prototype.
41495 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
41497 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41498 Return -1 if args.size was -1.
41500 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
41502 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
41503 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
41504 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
41505 Open Firmware's memory for it; claim memory from _start to _end.
41506 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
41507 (_end): New extern.
41508 (_start): Zero BSS from __bss_start to _end.
41509 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
41511 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
41513 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
41515 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
41516 -1 if args.base was -1.
41518 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
41520 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
41521 escape sequence instead of a literal ^L. Also call
41522 grub_ofconsole_gotoxy.
41524 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
41526 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
41527 void * arguments to grub_addr_t. All callers updated. Also make
41528 the `result' argument optional.
41529 (grub_ieee1275_release): change void * arguments to grub_addr_t.
41530 All callers updated.
41532 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
41534 * commands/ls.c (grub_ls_list_files): Use the string following the
41535 initial ')', if present, as the filesystem path.
41536 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
41538 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
41540 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
41542 Make the source code of the menu interface more readable.
41544 * normal/menu.c: Include grub/mm.h.
41545 (TERM_WIDTH): New macro.
41546 (TERM_HEIGHT): Likewise.
41547 (TERM_INFO_HEIGHT): Likewise.
41548 (TERM_MARGIN): Likewise.
41549 (TERM_SCROLL_WIDTH): Likewise.
41550 (TERM_TOP_BORDER_Y): Likewise.
41551 (TERM_LEFT_BORDER_X): Likewise.
41552 (TERM_BORDER_WIDTH): Likewise.
41553 (TERM_MESSAGE_HEIGHT): Likewise.
41554 (TERM_BORDER_HEIGHT): Likewise.
41555 (TERM_NUM_ENTRIES): Likewise.
41556 (TERM_FIRST_ENTRY_Y): Likewise.
41557 (TERM_ENTRY_WIDTH): Likewise.
41558 (TERM_CURSOR_X): Likewise.
41559 (draw_border): Use macros instead of magic numbers.
41560 (print_entry): Likewise.
41561 (print_entries): Likewise.
41562 (run_menu): Likewise. Also, handle the key 'e'.
41563 (run_menu_entry): Ignore empty command lines.
41564 (print_message): Added a new argument EDIT. If EDIT is true,
41565 print a different message.
41566 (init_page): Likewise.
41567 (edit_menu_entry): New function. Not implemented yet.
41569 2004-09-17 Marco Gerards <metgerards@student.han.nl>
41571 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
41572 can be loaded from normal mode.
41574 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
41576 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
41577 (multiboot_mod_CFLAGS): New variables.
41578 * loader/i386/pc/linux_normal.c: New file.
41579 * loader/i386/pc/multiboot_normal.c: Likewise.
41581 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
41582 attribute `unused'.
41584 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
41585 `fdiro' to read the mode information from instead of `diro'.
41587 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
41588 looking up a symlink.
41590 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
41592 * normal/command.c (grub_command_execute): Don't parse the
41593 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
41594 flags of the command.
41596 * normal/menu.c (grub_menu_run): Fix typo.
41598 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
41600 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
41602 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
41603 `y + 1' instead of `y - 1'.
41605 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
41607 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
41609 From Hollis Blanchard <hollis@penguinppc.org>:
41610 * kern/misc.c (memmove): New alias for grub_memmove.
41611 (memcmp): New alias for grub_memcmp.
41612 (memset): New alias for grub_memset.
41613 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
41614 Change "int handle" to "grub_ieee1275_phandle_t handle".
41615 * include/grub/powerpc/ieee1275/ieee1275.h
41616 (grub_ieee1275_get_property): Likewise.
41618 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
41620 Added normal mode command `chainloader' as module chain.mod, which
41621 depends on normal.mod and _chain.mod.
41623 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
41624 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
41625 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
41627 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
41628 but arguments parsing moved to ...
41629 (grub_chainloader_cmd): ... here. New function.
41630 * include/grub/i386/pc/chainloader.h: New file.
41631 * loader/i386/pc/chainloader_normal.c: Likewise.
41633 2004-09-11 Marco Gerards <metgerards@student.han.nl>
41635 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
41636 (grub_mkimage_LDFLAGS): Likewise.
41637 (grub_emu_SOURCES): Likewise.
41638 (kernel_img_HEADERS): Added fshelp.h.
41639 * fs/ext2.c: Include <grub/fshelp.h>.
41640 (FILETYPE_REG): New macro.
41641 (FILETYPE_INO_REG): Likewise.
41642 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
41644 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
41646 (grub_fshelp_node): New struct.
41647 (grub_ext2_data): Added member `diropen'. Changed member `inode'
41649 (grub_ext2_get_file_block): Removed function.
41650 (grub_ext2_read_block): New function.
41651 (grub_ext2_read_file): Replaced parameter `data' by `node'.
41652 This function was written.
41653 (grub_ext2_mount): Read the root inode. Create a diropen struct.
41654 (grub_ext2_find_file): Removed function.
41655 (grub_ext2_read_symlink): New function.
41656 (grub_ext2_iterate_dir): Likewise.
41657 (grub_ext2_open): Rewritten.
41658 (grub_ext2_dir): Rewritten.
41659 * include/grub/fshelp.h: New file.
41660 * fs/fshelp.c: Likewise.
41662 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
41664 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
41665 (print_message): Add a missing newline.
41666 (run_menu): Added timeout support.
41667 (run_menu_entry): New local function.
41668 (grub_menu_run): Added support for booting.
41670 * kern/loader.c (grub_loader_is_loaded): New function.
41672 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
41673 (grub_get_rtc): Exported.
41675 * include/grub/i386/pc/time.h: Include grub/symbol.h.
41676 (grub_get_rtc): Exported.
41678 * include/grub/normal.h (struct grub_command_list): Remove
41679 constant from the member `command'.
41681 * include/grub/loader.h (grub_loader_is_loaded): Declared.
41683 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
41685 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
41687 2004-08-28 Marco Gerards <metgerards@student.han.nl>
41689 Add support for the JFS filesystem.
41691 * fs/jfs.c: New file.
41692 * include/grub/fs.h (grub_jfs_init): New prototype.
41693 (grub_jfs_fini): New prototype.
41694 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
41695 (grub_emu_SOURCES): Likewise.
41696 (pkgdata_MODULES): Add jfs.mod.
41697 (jfs_mod_SOURCES): New variable.
41698 (jfs_mod_CFLAGS): Likewise.
41699 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
41700 (grubof_SOURCES): Likewise.
41701 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
41703 * fs/fat.c (grub_fat_find_dir): Convert the filename little
41704 endian to the host endian.
41705 (grub_fat_utf16_to_utf8): Move function from there...
41706 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
41707 the endianness of the source string anymore.
41708 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
41710 2004-08-24 Marco Gerards <metgerards@student.han.nl>
41712 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
41713 (grub_boot_fini) [GRUB_UTIL]: Likewise.
41714 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
41715 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
41717 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
41718 (grub_hfs_iterate_dir): Make the function static. Add prototypes
41719 for `node_found' and `it_dir'.
41720 (grub_hfs_dir): Add prototype for `dir_hook'.
41722 * fs/minix.c (grub_minix_get_file_block): Add prototype for
41723 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
41724 and `indir32' to silence a gcc warning.
41726 * include/grub/fs.h (grub_hfs_init): New prototype.
41727 (grub_hfs_fini): Likewise.
41730 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
41732 Each disk device has its own id now. This is useful to make use
41733 of multiple disk devices.
41735 * include/grub/disk.h (grub_disk_dev_id): New enum.
41736 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
41737 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
41739 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
41740 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41742 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
41743 GRUB_DISK_DEVICE_OFDISK_ID as an id.
41745 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
41746 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
41748 * include/grub/disk.h (struct grub_disk_dev): Added a new member
41749 "id" which is used by the cache manager.
41751 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
41754 2004-08-18 Marco Gerards <metgerards@student.han.nl>
41756 * fs/hfs.c: New file.
41757 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
41758 (grub_emu_SOURCES): Likewise.
41759 (pkgdata_MODULES): Add hfs.mod.
41760 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
41761 (grubof_SOURCES): Likewise.
41762 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
41764 * include/grub/misc.h (grub_strncasecmp): Add prototype.
41765 * kern/misc.c (grub_strncasecmp): Add function.
41767 2004-08-14 Marco Gerards <metgerards@student.han.nl>
41769 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
41772 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
41773 (grub_ext2_dir): In case the directory entry type is unknown, read
41776 2004-08-02 Peter Bruin <pjbruin@dds.nl>
41778 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
41779 grub_load_linux instead of grub_rescue_cmd_linux as second
41780 argument of grub_rescue_register_command.
41782 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
41784 2004-07-27 Marco Gerards <metgerards@student.han.nl>
41786 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
41788 * commands/boot.c: Remove the check for `GRUB_UTIL'.
41789 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
41790 `loader/powerpc/ieee1275/linux.c',
41791 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
41792 * include/grub/powerpc/ieee1275/ieee1275.h
41793 (grub_ieee1275_release): New prototype.
41794 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
41795 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
41796 normal, boot, linux and linux_normal.
41797 * loader/powerpc/ieee1275/linux.c: New file.
41798 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
41800 2004-07-12 Marco Gerards <metgerards@student.han.nl>
41802 * normal/arg.c (grub_arg_parse): Correct error handling after
41803 reallocating the argumentlist (check if `argl' is not null instead
41804 of checking if `args' is not null).
41805 * kern/mm.c (grub_realloc): Return the same pointer when using the
41806 same region, instead of returning the header address.
41808 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41810 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
41811 one block instead of two when looking for the initial partition.
41812 (grub_partition_probe): Initialize the local variable `p' with 0.
41813 Use base 10 for the grub_strtoul call.
41814 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
41815 need for one local variable.
41816 (grub_strtoul): Don't add the new value to `num', instead of that
41819 2004-07-11 Marco Gerards <metgerards@student.han.nl>
41821 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
41822 (pxeboot_img_SOURCES): New variable.
41823 (pxeboot_img_ASFLAGS): Likewise.
41824 (pxeboot_img_LDFLAGS): Likewise.
41825 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
41826 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
41827 <lode_leroy@hotmail.com>.
41829 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41831 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
41832 there was no input.
41834 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41836 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
41837 the history buffer logic.
41839 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
41841 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
41842 (FILETYPE_INO_SYMLINK): New macros.
41843 (grub_ext2_find_file): Check if the node is a directory using the
41844 inode stat information instead of using the filetype in the
41845 dirent. Exclude the first character of an absolute symlink.
41846 (grub_ext2_dir): Mask out the filetype part of the mode member of
41849 2004-05-24 Marco Gerards <metgerards@student.han.nl>
41851 Add support for UFS version 1 and 2. Add support for the minix
41852 filesystem version 1 and 2, both the variants with 14 and 30 long
41855 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
41857 (grub_emu_SOURCES): Likewise.
41858 (pkgdata_MODULES): Add ufs.mod and minix.mod.
41859 (ufs_mod_SOURCES): New variable.
41860 (ufs_mod_CFLAGS): Likewise.
41861 (minix_mod_SOURCES): Likewise.
41862 (minix_mod_CFLAGS): Likewise.
41863 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
41865 (grubof_SOURCES): Likewise.
41866 * fs/ufs.c: New file.
41867 * fs/minix.c: New file.
41868 * include/grub/fs.h (grub_ufs_init): New prototype.
41869 (grub_ufs_fini): Likewise.
41870 (grub_minix_init): Likewise.
41871 (grub_minix_fini): Likewise.
41872 * util/grub-emu.c (main): Initialize and deinitialize UFS and
41875 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
41877 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
41878 commands/ls.c, commands/terminal.c, commands/boot.c,
41879 commands/cmp.c and commands/cat.c.
41880 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
41882 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
41885 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41887 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
41888 and grub_, respectively. Because the conversion is trivial and
41889 mechanical, I omit the details here. Please refer to the CVS
41890 if you need more information.
41892 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
41894 * include/pupa: Renamed to ...
41895 * include/grub: ... this.
41896 * util/i386/pc/pupa-mkimage.c: Renamed to ...
41897 * util/i386/pc/grub-mkimage.c: ... this.
41898 * util/i386/pc/pupa-setup.c: Renamed to ...
41899 * util/i386/pc/grub-setup.c: ... this.
41900 * util/pupa-emu.c: Renamed to ...
41901 * util/grub-emu.c: ... this.
41903 2004-03-29 Marco Gerards <metgerards@student.han.nl>
41905 Add support for the newworld apple macintosh (PPC). This has been
41906 tested on the powerbook 2000 only. It only adds support for
41907 generic ieee1275 functions, console and disk support. This should
41908 be easy to port to other architectures with support for Open
41911 * configure.ac: Accept the powerpc as host_cpu. In the case of
41912 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
41913 specific tests are only executed while building for the i386.
41914 Inverse test for crosscompile.
41915 * genmk.rb (Utility): Allow assembler files.
41916 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
41917 * conf/powerpc-ieee1275.rmk: New file.
41918 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
41919 * disk/powerpc/ieee1275/partition.c: Likewise.
41920 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
41921 * include/pupa/powerpc/ieee1275/console.h: Likewise.
41922 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
41923 * include/pupa/powerpc/ieee1275/time.h: Likewise.
41924 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
41925 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
41926 * include/pupa/powerpc/ieee1275/loader.h
41927 * include/pupa/powerpc/setjmp.h: Likewise.
41928 * include/pupa/powerpc/types.h: Likewise.
41929 * kern/powerpc/ieee1275/init.c: Likewise.
41930 * kern/powerpc/ieee1275/openfw.c: Likewise.
41931 * term/powerpc/ieee1275/ofconsole.c: Likewise.
41933 These files were written by Johan Rydberg
41934 (jrydberg@night.trouble.net) and I only modified them slightly.
41936 * boot/powerpc/ieee1275/cmain.c: New file.
41937 * boot/powerpc/ieee1275/crt0.S: Likewise.
41938 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
41939 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
41941 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
41943 * Makefile.in: Update copyright.
41944 * genmodsrc.sh: Likewise.
41945 * gensymlist.sh: Likewise.
41946 * term/i386/pc/vga.c: Indent correctly.
41948 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
41949 bugreporting address.
41950 * util/i386/pc/pupa-setup.c (usage): Likewise,
41951 (main): Call pupa_ext2_init and pupa_ext2_fini.
41953 * fs/fat.c (log2): Renamed to ...
41954 (fat_log2): ... this.
41955 All callers changed.
41956 * kern/misc.c (memcpy): Alias to pupa_memmove.
41957 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
41959 * util/console.c (pupa_ncurses_fini): Return 0.
41961 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
41962 Move fail label here.
41963 [__GNU__]: Don't warn when using stat.
41964 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
41965 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
41966 long int. Use strtol instead of strtoul.
41968 2004-03-14 Marco Gerards <metgerards@student.han.nl>
41970 * commands/boot.c: New file.
41971 * commands/cat.c: Likewise.
41972 * commands/cmp.c: Likewise.
41973 * commands/ls.c: Likewise.
41974 * commands/terminal.c: Likewise.
41975 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
41976 (pupa_register_command): Changed interface to match the new
41978 (pupa_command_execute): Changed (almost rewritten) so it uses
41979 pupa_split_command. Added support for setting variables using the
41981 (rescue_command): Changed to work with the new argument parser.
41982 (terminal_command): Moved from here to commands/terminal.c.
41983 (set_command): New function.
41984 (unset_command): New function.
41985 (insmod_command): New function.
41986 (rmmod_command): New function.
41987 (lsmod_command): New function.
41988 (pupa_command_init): Don't initialize the command terminal
41989 anymore. Initialize the commands set, unset, insmod, rmmod and
41991 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
41992 (kernel_img_HEADERS): Add arg.h and env.h.
41993 (pupa_mkimage_LDFLAGS): Add kern/env.c.
41994 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
41995 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
41997 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
41999 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
42000 (boot_mod_SOURCES): New variable.
42001 (terminal_mod_SOURCES): Likewise.
42002 (ls_mod_SOURCES): Likewise.
42003 (cmp_mod_SOURCES): Likewise.
42004 (cat_mod_SOURCES): Likewise.
42006 * normal/arg.c: New file.
42007 * kern/env.c: Likewise.
42008 * include/pupa/arg.h: Likewise.
42009 * include/pupa/env.h: Likewise.
42010 * font/manager.c (font_command): Changed to match argument parsing
42012 (PUPA_MOD_INIT): Likewise.
42013 * hello/hello.c (pupa_cmd_hello): Likewise.
42014 (PUPA_MOD_INIT): Likewise.
42015 * include/pupa/disk.h: Include <pupa/device.h>.
42016 (pupa_print_partinfo): New prototype.
42017 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
42018 (pupa_dl_get_prefix): Likewise.
42019 * include/pupa/misc.h: Include <pupa/err.h>.
42020 (pupa_isgraph): New prototype.
42021 (pupa_isdigit): Likewise.
42022 (pupa_split_cmdline): Likewise.
42023 * include/pupa/normal.h: Include <pupa/arg.h>.
42024 (pupa_command): Changed the prototype of the member `func' to
42025 match the argument parsing interface. Added member `options'.
42026 (pupa_register_command): Updated to match function.
42027 (pupa_arg_parse): New prototype.
42028 (pupa_hello_init) [PUPA_UTIL]: New prototype.
42029 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
42030 (pupa_ls_init) [PUPA_UTIL]: Likewise.
42031 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
42032 (pupa_cat_init) [PUPA_UTIL]: Likewise.
42033 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
42034 (pupa_boot_init) [PUPA_UTIL]: Likewise.
42035 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
42036 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
42037 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
42038 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
42039 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
42040 * kern/disk.c: Include <pupa/file.h>.
42041 (pupa_print_partinfo): New function.
42042 * kern/dl.c: Include <pupa/env.h>.
42043 (pupa_dl_dir): Variable removed.
42044 (pupa_dl_load): Use the environment variable `prefix' instead of
42045 the variable pupa_dl_dir.
42046 (pupa_dl_set_prefix): Function removed.
42047 (pupa_dl_get_prefix): Likewise.
42048 * kern/i386/pc/init.c: Include <pupa/env.h>.
42049 (pupa_machine_init): Use the environment variable `prefix' instead of
42050 using pupa_dl_set_prefix to set the prefix.
42051 * kern/main.c: Include <pupa/env.h>.
42052 (pupa_set_root_dev): Use the environment variable `prefix' instead of
42053 using pupa_dl_get_prefix to get the prefix.
42054 * kern/misc.c: Include <pupa/env.h>.
42055 (pupa_isdigit): New function.
42056 (pupa_isgraph): Likewise.
42057 (pupa_ftoa): Likewise.
42058 (pupa_vsprintf): Added support for printing values of the type
42059 `double'. Make it possible to format variable output when using
42060 formatting like `%1.2%f'.
42061 (pupa_split_cmdline): New function.
42062 * kern/rescue.c: Include <pupa/env.h>.
42063 (next_word): Removed function.
42064 (pupa_rescue_cmd_prefix): Likewise.
42065 (pupa_rescue_cmd_set): New function.
42066 (pupa_rescue_cmd_unset): New function.
42067 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
42068 split the command line instead of splitting it here. Added
42069 support for setting variables using the syntax `foo=bar'. Don't
42070 initialize the prefix command anymore. Initialized the set and
42072 * normal/cmdline.c: Include <pupa/env.h>.
42073 (pupa_tab_complete): Added prototypes for print_simple_completion,
42074 print_partition_completion, add_completion, iterate_commands,
42075 iterate_dev, iterate_part and iterate_dir. Moved code to print
42076 partition information from here to kern/disk.c.
42077 (pupa_cmdline_run): Don't check if the function exists anymore.
42078 * normal/main.c: Include <pupa/env.h>.
42079 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
42080 instead of using pupa_dl_get_prefix to get the prefix.
42081 * term/i386/pc/vga.c: Include <pupa/arg.h>.
42082 (check_vga_mem): Cast pointers to `void *' to silence a gcc
42084 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
42085 (pupa_vga_setcolor): Declare unused variables with `__attribute__
42086 ((unused))' to silence a gcc warning.
42087 (pupa_vga_setcolor): Likewise.
42088 (debug_command): Changed to match argument parsing
42090 * util/pupa-emu.c: Include <pupa/env.h>.
42091 (options): Added 0's for unused fields to silence a gcc warning.
42093 (main): Use the environment variable `prefix' instead of using
42094 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
42095 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
42098 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
42099 * util/misc.c: Include <malloc.h>.
42100 (pupa_malloc): Rewritten so errors are correctly reported.
42101 (pupa_realloc): Likewise.
42102 (pupa_memalign): Likewise.
42103 (pupa_mm_init_region): Declare unused variables with
42104 `__attribute__ ((unused))' to silence a gcc warning.
42105 * normal/i386/setjmp.S: Remove tab at the end of the file to
42106 silence a gcc warning.
42107 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
42108 variables with `__attribute__ ((unused))' to silence a gcc
42110 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
42111 local variable i unsigned to silence a gcc warning.
42113 * kern/term.c: Include <pupa/misc.h>.
42114 (pupa_more_lines): New variable.
42115 (pupa_more): Likewise.
42116 (pupa_putcode): When the pager is active pause at the end of every
42118 (pupa_set_more): New function.
42119 * include/pupa/term.h (pupa_set_more): New prototype.
42122 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
42124 Now this project is GRUB 2 rather than PUPA. The location of
42125 the CVS repository was moved to GRUB's.
42127 * configure.ac: Use bug-grub as the reporting address.
42128 Use GRUB instead of PUPA.
42129 Change the version number to 1.90.
42131 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
42133 * genkernsyms.sh: Updated copyright information.
42134 * genmk.rb: Likewise.
42135 * genmodsrc.sh: Likewise.
42136 * gensymlist.sh: Likewise.
42137 * boot/i386/pc/boot.S: Likewise.
42138 * boot/i386/pc/diskboot.S: Likewise.
42139 * disk/i386/pc/biosdisk.c: Likewise.
42140 * disk/i386/pc/partition.c: Likewise.
42141 * font/manager.c: Likewise.
42142 * fs/ext2.c: Likewise.
42143 * fs/fat.c: Likewise.
42144 * include/pupa/boot.h: Likewise.
42145 * include/pupa/device.h: Likewise.
42146 * include/pupa/disk.h: Likewise.
42147 * include/pupa/dl.h: Likewise.
42148 * include/pupa/elf.h: Likewise.
42149 * include/pupa/err.h: Likewise.
42150 * include/pupa/file.h: Likewise.
42151 * include/pupa/font.h: Likewise.
42152 * include/pupa/fs.h: Likewise.
42153 * include/pupa/kernel.h: Likewise.
42154 * include/pupa/loader.h: Likewise.
42155 * include/pupa/misc.h: Likewise.
42156 * include/pupa/mm.h: Likewise.
42157 * include/pupa/net.h: Likewise.
42158 * include/pupa/normal.h: Likewise.
42159 * include/pupa/rescue.h: Likewise.
42160 * include/pupa/setjmp.h: Likewise.
42161 * include/pupa/symbol.h: Likewise.
42162 * include/pupa/term.h: Likewise.
42163 * include/pupa/types.h: Likewise.
42164 * include/pupa/i386/setjmp.h: Likewise.
42165 * include/pupa/i386/types.h: Likewise.
42166 * include/pupa/i386/pc/biosdisk.h: Likewise.
42167 * include/pupa/i386/pc/boot.h: Likewise.
42168 * include/pupa/i386/pc/console.h: Likewise.
42169 * include/pupa/i386/pc/init.h: Likewise.
42170 * include/pupa/i386/pc/kernel.h: Likewise.
42171 * include/pupa/i386/pc/linux.h: Likewise.
42172 * include/pupa/i386/pc/loader.h: Likewise.
42173 * include/pupa/i386/pc/memory.h: Likewise.
42174 * include/pupa/i386/pc/multiboot.h: Likewise.
42175 * include/pupa/i386/pc/partition.h: Likewise.
42176 * include/pupa/i386/pc/time.h: Likewise.
42177 * include/pupa/i386/pc/vga.h: Likewise.
42178 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
42179 * include/pupa/util/getroot.h: Likewise.
42180 * include/pupa/util/misc.h: Likewise.
42181 * include/pupa/util/resolve.h: Likewise.
42182 * kern/device.c: Likewise.
42183 * kern/disk.c: Likewise.
42184 * kern/dl.c: Likewise.
42185 * kern/err.c: Likewise.
42186 * kern/file.c: Likewise.
42187 * kern/fs.c: Likewise.
42188 * kern/loader.c: Likewise.
42189 * kern/main.c: Likewise.
42190 * kern/misc.c: Likewise.
42191 * kern/mm.c: Likewise.
42192 * kern/rescue.c: Likewise.
42193 * kern/term.c: Likewise.
42194 * kern/i386/dl.c: Likewise.
42195 * kern/i386/pc/init.c: Likewise.
42196 * kern/i386/pc/lzo1x.S: Likewise.
42197 * kern/i386/pc/startup.S: Likewise.
42198 * loader/i386/pc/chainloader.c: Likewise.
42199 * loader/i386/pc/linux.c: Likewise.
42200 * loader/i386/pc/multiboot.c: Likewise.
42201 * normal/cmdline.c: Likewise.
42202 * normal/command.c: Likewise.
42203 * normal/main.c: Likewise.
42204 * normal/menu.c: Likewise.
42205 * normal/i386/setjmp.S: Likewise.
42206 * term/i386/pc/console.c: Likewise.
42207 * term/i386/pc/vga.c: Likewise.
42208 * util/console.c: Likewise.
42209 * util/genmoddep.c: Likewise.
42210 * util/misc.c: Likewise.
42211 * util/pupa-emu.c: Likewise.
42212 * util/resolve.c: Likewise.
42213 * util/unifont2pff.rb: Likewise.
42214 * util/i386/pc/biosdisk.c: Likewise.
42215 * util/i386/pc/getroot.c: Likewise.
42216 * util/i386/pc/pupa-mkimage.c: Likewise.
42217 * util/i386/pc/pupa-setup.c: Likewise.
42219 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
42221 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
42222 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
42223 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
42224 reading and reset it after reading.
42225 (pupa_ext2_close): Return PUPA_ERR_NONE.
42227 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
42229 (struct linux_kernel_header): Add kernel_version and
42231 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
42232 pupa_file_read succeeds.
42233 (pupa_rescue_cmd_initrd): Implement.
42235 2003-12-03 Marco Gerards <metgerards@student.han.nl>
42237 * fs/ext2.c (pupa_ext2_label): New function.
42238 (pupa_ext2_fs): Added label.
42239 * fs/fat.c (pupa_fat_label): New function.
42240 (pupa_fat_fs): Added label.
42241 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
42243 * kern/misc.c (pupa_strndup): New function.
42244 * include/pupa/misc.h (pupa_strndup): New prototype.
42246 * include/pupa/normal.h: Include <pupa/err.h>.
42247 (pupa_set_history): New prototype.
42248 (pupa_iterate_commands): New prototype.
42249 * normal/cmdline.c: Include <pupa/machine/partition.h>,
42250 <pupa/disk.h>, <pupa/file.h>.
42251 (hist_size): New variable.
42252 (hist_lines): Likewise.
42253 (hist_end): Likewise.
42254 (hist_used): Likewise.
42255 (pupa_set_history): New function.
42256 (pupa_history_get): Likewise.
42257 (pupa_history_add): Likewise.
42258 (pupa_history_replace): Likewise.
42259 (pupa_tab_complete): Likewise.
42260 (pupa_cmdline_run): Added tab completion and history buffer. Tab
42261 completion shows partitionnames while completing partitions, this
42262 feature was suggested by Jeff Bailey.
42263 * normal/command.c (pupa_iterate_commands): New function.
42264 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
42265 (pupa_normal_init): Initialize history buffer.
42266 (PUPA_MOD_INIT): Likewise.
42267 (pupa_normal_fini): Free the history buffer.
42268 (PUPA_MOD_FINI): Likewise.
42270 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
42273 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
42274 * configure.ac [i386]: Check for regparam bug.
42275 (NESTED_FUNC_ATTR) [! i386]: Defined.
42277 2003-11-17 Marco Gerards <metgerards@student.han.nl>
42279 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
42280 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
42281 (pupa_emu_SOURCES): New variable.
42282 (pupa_emu_LDFLAGS): Likewise.
42283 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
42284 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
42285 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
42286 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
42287 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
42288 (pupa_jmp_buf): New typedef.
42289 (pupa_setjmp) [PUPA_UTIL]: New macro.
42290 (pupa_longjmp) [PUPA_UTIL]: Likewise.
42291 * include/pupa/term.h (struct pupa_term): New member `refresh'.
42292 (pupa_refresh): New prototype.
42293 * include/pupa/util/getroot.h: New file.
42294 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
42296 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
42297 (pupa_rescue_cmd_cat): Likewise.
42298 (pupa_rescue_cmd_ls): Likewise.
42299 (pupa_rescue_cmd_testload): Likewise.
42300 (pupa_rescue_cmd_lsmod): Likewise.
42301 * normal/cmdline.c (pupa_cmdline_get): Likewise.
42302 * normal/menu.c (run_menu): Likewise.
42303 * kern/term.c (pupa_cls): Likewise.
42304 (pupa_refresh): New function.
42305 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
42306 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
42307 * util/console.c: New file.
42309 * util/i386/pc/getroot.c: New file.
42310 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
42311 (pupa_putchar): New function.
42312 (pupa_refresh): Likewise.
42313 (xgetcwd): Function moved to ...
42314 (strip_extra_slashes): Likewise.
42315 (get_prefix): Likewise.
42316 * util/i386/pc/getroot.c: ... here.
42317 (find_root_device): Function moved and renamed to...
42318 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
42319 Changed all callers.
42320 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
42322 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
42323 Changed all callers.
42324 * util/misc.c (pupa_memalign): New function.
42325 (pupa_mm_init_region): Likewise.
42326 (pupa_register_exported_symbols): Likewise.
42327 (pupa_putchar): Function removed.
42328 * util/pupa-emu.c: New file.
42330 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
42332 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
42333 (_multiboot_mod_SOURCES): New variable.
42334 (_multiboot_mod_CFLAGS): Likewise.
42335 * loader/i386/pc/multiboot.c: New file.
42336 * include/pupa/i386/pc/multiboot.h: Likewise.
42337 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
42338 (pupa_multiboot_real_boot): New function.
42339 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
42340 (pupa_multiboot_real_boot): New prototype.
42341 (pupa_rescue_cmd_multiboot): Likewise
42342 (pupa_rescue_cmd_module): Likewise.
42344 * kern/loader.c (pupa_loader_set): Continue when
42345 pupa_loader_unload_func() fails.
42346 (pupa_loader_unset): New function.
42347 * include/pupa/loader.h (pupa_loader_unset): New prototype.
42349 * kern/misc.c (pupa_stpcpy): New function.
42350 * include/pupa/misc.h (pupa_stpcpy): New prototype.
42352 2003-11-12 Marco Gerards <metgerards@student.han.nl>
42354 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
42355 for available extensions.
42357 * include/pupa/i386/pc/time.h: New file.
42358 * kern/disk.c: Include <pupa/machine/time.h>.
42359 (PUPA_CACHE_TIMEOUT): New macro.
42360 (pupa_last_time): New variable.
42361 (pupa_disk_open): Flush the cache when there was a timeout.
42362 (pupa_disk_close): Reset the timer.
42363 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
42365 * util/misc.c: Include <sys/times.h>
42366 (pupa_get_rtc): New function.
42368 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
42370 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
42372 (pupa_ext2_get_file_block): Use blocks member.
42374 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
42375 first block. Return -1 instead of pupa_errno on error.
42377 2003-10-27 Marco Gerards <metgerards@student.han.nl>
42379 * README: In the pupa-mkimage example use _chain instead of chain
42380 and ext2 instead of fat.
42381 * TODO: Replace ext2fs with jfs as an example. Add an item for
42382 adding journal playback for ext2fs.
42383 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
42384 (pkgdata_MODULES): Added ext2.mod.
42385 (ext2_mod_SOURCES): New variable.
42386 (ext2_mod_CFLAGS): Likewise.
42387 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
42388 * include/pupa/misc.h (pupa_strncpy): New prototype.
42389 (pupa_strcat): Likewise.
42390 (pupa_strncmp): Likewise.
42391 * kern/misc.c (pupa_strcat): Enable function.
42392 (pupa_strncpy): New function.
42393 (pupa_strncmp): Likewise.
42394 * fs/ext2.c: New file.
42396 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
42397 when the read failed before retrying.
42398 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
42399 (_FILE_OFFSET_BITS): Likewise.
42400 * configure.ac: Added AC_SYS_LARGEFILE.
42402 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
42404 * genmk.rb (PModule#rule): Make sure to get only symbol names
42405 from the output of nm.
42406 Reported by Robert Millan <rmh.grub@aybabtu.com>.
42408 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
42410 I forgot to check in these changes for a long time. This adds
42411 incomplete support for VGA console, and this is still very
42412 buggy. Also, a lot of consideration is required for I18N,
42413 UNICODE, and VGA font issues. Therefore, assume that this is
42414 such that "better than nothing".
42416 * font/manager.c: New file.
42417 * include/pupa/font.h: Likewise.
42418 * include/pupa/i386/pc/vga.h: Likewise.
42419 * term/i386/pc/vga.c: Likewise.
42420 * util/unifont2pff.rb: Likewise.
42422 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
42423 (pkgdata_MODULES): Added vga.mod and font.mod.
42424 (vga_mod_SOURCES): New variables.
42425 (vga_mod_CFLAGS): Likewise.
42426 (font_mod_SOURCES): Likewise.
42427 (font_mod_CFLAGS): Likewise.
42429 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
42431 * include/pupa/term.h: Include pupa/err.h.
42432 (struct pupa_term): Added init and fini.
42433 Changed the argument of putchar to pupa_uint32_t.
42435 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
42436 (pupa_console_real_putchar): New prototype.
42437 (pupa_console_putchar): Removed.
42438 (pupa_console_checkkey): Exported.
42439 (pupa_console_getkey): Likewise.
42441 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
42444 * kern/term.c (pupa_term_set_current): Rewritten.
42445 (pupa_putchar): Likewise.
42446 (pupa_putcode): New function.
42448 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
42449 (pupa_console_real_putchar): ... this.
42450 (pupa_vga_set_mode): New function.
42451 (pupa_vga_get_font): Likewise.
42453 * normal/command.c: Include pupa/term.h.
42454 (terminal_command): New function.
42455 (pupa_command_init): Register the command "terminal".
42457 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
42458 (DISP_UP): Likewise.
42459 (DISP_RIGHT): Likewise.
42460 (DISP_DOWN): Likewise.
42461 (DISP_HLINE): Likewise.
42462 (DISP_VLINE): Likewise.
42463 (DISP_UL): Likewise.
42464 (DISP_UR): Likewise.
42465 (DISP_LL): Likewise.
42466 (DISP_LR): Likewise.
42468 * term/i386/pc/console.c (pupa_console_putchar): New function.
42470 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
42472 * util/resolve.c (pupa_util_resolve_dependencies): BUG
42473 FIX. Reverse the path_list.
42475 * include/pupa/normal.h: Export pupa_register_command and
42476 pupa_unregister_command.
42478 * hello/hello.c (pupa_cmd_hello): New module.
42479 * conf/i386-pc.rmk: Added hello.mod.
42481 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
42483 * kern/i386/pc/lzo1x.S: New file.
42485 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
42486 (compress_kernel): New variable.
42487 (generate_image): Heavily modified to support compressing a
42488 large part of the core image.
42490 * util/misc.c (pupa_util_read_image): Fix a file descriptor
42492 (pupa_util_load_image): New function.
42494 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
42495 (pupa_compressed_size): New variable.
42496 (codestart): Enable Gate A20 here.
42497 Decompress the compressed part of the core image.
42498 Rearrange the code to put functions and variables which are
42499 required for initialization in the non-compressed part.
42502 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
42505 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
42507 * include/pupa/i386/pc/kernel.h
42508 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
42509 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
42510 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
42511 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
42512 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
42514 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
42516 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
42517 (Utility#rule): Likewise.
42519 * configure.ac: Check if LZO is available.
42521 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
42523 * include/pupa/normal.h: New file.
42524 * include/pupa/setjmp.h: Likewise.
42525 * include/pupa/i386/setjmp.h: Likewise.
42526 * normal/cmdline.c: Likewise.
42527 * normal/command.c: Likewise.
42528 * normal/main.c: Likewise.
42529 * normal/menu.c: Likewise.
42530 * normal/i386/setjmp.S: Likewise.
42532 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
42533 (pupa_rescue_cmd_initrd): Likewise.
42535 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
42538 * kern/i386/pc/startup.S (translation_table): New variable.
42539 (translate_keycode): New function.
42540 (pupa_console_getkey): Call translate_keycode.
42542 * kern/rescue.c (attempt_normal_mode): New function.
42543 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
42544 it failed, print a message.
42546 * kern/mm.c (pupa_real_malloc): Print more information when a
42547 free magic is broken.
42548 (pupa_free): If the first free header is not free actually, set
42551 * kern/main.c (pupa_load_normal_mode): Just load the module
42553 (pupa_main): Don't print the message
42554 "Entering into rescue mode..." here.
42556 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
42558 (pupa_rescue_cmd_initrd): Likewise.
42559 (pupa_rescue_cmd_initrd): Likewise.
42561 * include/pupa/symbol.h (FUNCTION): Specify the type.
42562 (VARIABLE): Likewise.
42564 * include/pupa/err.h (pupa_err_t): Added
42565 PUPA_ERR_UNKNOWN_COMMAND.
42567 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
42568 (pupa_dl_get_prefix): Likewise.
42570 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
42571 Added _chain.mod and _linux.mod instead of chain.mod and
42573 (chain_mod_SOURCES): Renamed to ...
42574 (_chain_mod_SOURCES): ... this.
42575 (chain_mod_CFLAGS): Renamed to ...
42576 (_chain_mod_CFLAGS): ... this.
42577 (linux_mod_SOURCES): Renamed to ...
42578 (_linux_mod_SOURCES): ... this.
42579 (linux_mod_CFLAGS): Renamed to ...
42580 (_linux_mod_CFLAGS): ... this.
42581 (normal_mod_SOURCES): New variable.
42582 (normal_mod_CFLAGS): Likewise.
42583 (normal_mod_ASFLAGS): Likewise.
42585 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
42587 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
42590 * kern/dl.c (pupa_dl_ref): Refer depending modules
42592 (pupa_dl_unref): Unrefer depending modules recursively.
42593 Don't call pupa_dl_unload implicitly, because PUPA can crash if
42594 a module is unloaded before one depending on that module is
42596 (pupa_dl_unload): Unload depending modules explicitly,
42599 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
42601 * include/pupa/i386/pc/linux.h: New file.
42602 * loader/i386/pc/linux.c: Likewise.
42604 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
42606 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
42607 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
42608 of PUPA_CHAINLOADER_BOOT_SECTOR.
42610 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
42611 (pupa_linux_prot_size): New variable.
42612 (pupa_linux_tmp_addr): Likewise.
42613 (pupa_linux_real_addr): Likewise.
42614 (pupa_linux_boot_zimage): New function.
42615 (pupa_linux_boot_bzimage): Likewise.
42617 * kern/i386/pc/init.c (struct mem_region): New structure.
42618 (MAX_REGIONS): New macro.
42619 (mem_regions): New variable.
42620 (num_regions): Likewise.
42621 (pupa_os_area_addr): Likewise.
42622 (pupa_os_area_size): Likewise.
42623 (pupa_lower_mem): Likewise.
42624 (pupa_upper_mem): Likewise.
42625 (add_mem_region): New function.
42626 (compact_mem_regions): Likewise.
42627 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
42628 the size of the conventional memory and that of so-called upper
42629 memory (before the first memory hole).
42630 Instead of adding each found region to free memory, use
42631 add_mem_region and add them after removing overlaps.
42632 Also, add only 1/4 of the upper memory to free memory. The rest
42633 is used for loading OS images. Maybe this is ad hoc, but this
42634 makes it much easier to relocate OS images when booting.
42636 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
42637 (pupa_enter_rescue_mode): Don't register initrd and module.
42639 * kern/mm.c: Include pupa/dl.h.
42641 * kern/main.c: Include pupa/file.h and pupa/device.h.
42643 * kern/loader.c (pupa_loader_load_module_func): Removed.
42644 (pupa_loader_load_module): Likewise.
42646 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
42649 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
42650 (pupa_linux_tmp_addr): Likewise.
42651 (pupa_linux_real_addr): Likewise.
42652 (pupa_linux_boot_zimage): Likewise.
42653 (pupa_linux_boot_bzimage): Likewise.
42655 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
42656 (pupa_upper_mem): Likewise.
42657 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
42658 module is too dangerous.
42660 * include/pupa/loader.h (pupa_os_area_addr): Declared.
42661 (pupa_os_area_size): Likewise.
42662 (pupa_loader_set): Remove the first argument. Loader doesn't
42663 manage modules or initrd any longer.
42664 (pupa_loader_load_module): Removed.
42666 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
42667 (linux_mod_SOURCES): New variable.
42668 (linux_mod_CFLAGS): Likewise.
42670 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
42672 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
42673 the length of a blocklist correctly.
42675 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
42676 Use ioctl only if the OS file is a block device.
42677 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
42678 not very useful for normal files.
42680 * kern/main.c (pupa_set_root_dev): New function.
42681 (pupa_load_normal_mode): Likewise.
42682 (pupa_main): Call those above.
42684 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
42687 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
42689 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42691 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
42692 (setup): Configure the installed partition information and the
42695 * loader/i386/pc/chainloader.c (my_mod): New variable.
42696 (pupa_chainloader_unload): New function.
42697 (pupa_rescue_cmd_chainloader): Refer itself.
42698 (PUPA_MOD_INIT): Save its own module in MY_MOD.
42700 * kern/i386/pc/startup.S (install_partition): Removed.
42701 (version_string): Likewise.
42702 (config_file): Likewise.
42703 (pupa_install_dos_part): New variable.
42704 (pupa_install_bsd_part): Likewise.
42705 (pupa_prefix): Likewise.
42706 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
42708 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
42710 (make_install_device): New function.
42711 (pupa_machine_init): Set the dl prefix.
42713 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
42714 (buf): Renamed to ...
42715 (linebuf): ... this.
42716 (pupa_rescue_cmd_prefix): New function.
42717 (pupa_rescue_cmd_insmod): Likewise.
42718 (pupa_rescue_cmd_rmmod): Likewise.
42719 (pupa_rescue_cmd_lsmod): Likewise.
42720 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
42723 * kern/mm.c (pupa_memalign): If failed even after invalidating
42724 disk caches, unload unneeded modules and retry.
42726 * kern/misc.c (pupa_memmove): New function.
42727 (pupa_memcpy): Removed.
42728 (pupa_strcpy): New function.
42729 (pupa_itoa): Made static.
42731 * kern/dl.c (pupa_dl_iterate): New function.
42732 (pupa_dl_ref): Likewise.
42733 (pupa_dl_unref): Likewise.
42734 (pupa_dl_unload): Return if succeeded or not.
42735 (pupa_dl_unload_unneeded): New function.
42736 (pupa_dl_unload_all): Likewise.
42737 (pupa_dl_init): Renamed to ...
42738 (pupa_dl_set_prefix): ... this.
42739 (pupa_dl_get_prefix): New function.
42741 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
42742 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
42743 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
42744 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
42745 (pupa_install_dos_part): Declared.
42746 (pupa_install_bsd_part): Likewise.
42747 (pupa_prefix): Likewise.
42748 (pupa_boot_drive): Likewise.
42750 * include/pupa/types.h: Fix a typo.
42752 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
42754 (pupa_memmove): Declared.
42755 (pupa_strcpy): Likewise.
42757 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
42758 pupa_mod_init takes one argument, its own module.
42759 (pupa_dl_unload_unneeded): Declared.
42760 (pupa_dl_unload_all): Likewise.
42761 (pupa_dl_ref): Likewise.
42762 (pupa_dl_unref): Likewise.
42763 (pupa_dl_iterate): Likewise.
42764 (pupa_dl_init): Renamed to ...
42765 (pupa_dl_set_prefix): ... this.
42766 (pupa_dl_get_prefix): Declared.
42768 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
42769 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
42771 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
42772 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
42774 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
42775 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
42777 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42779 * util/i386/pc/pupa-setup.c (setup): Define the internal
42780 function find_first_partition_start at the top level, because GCC
42781 3.0.x cannot compile internal functions in deeper scopes
42783 (find_root_device): Use lstat instead of stat.
42784 Don't follow symbolic links.
42785 Fix the path-constructing code.
42787 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
42788 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
42789 by a BLKGETSIZE ioctl first, because block devices don't fill
42790 the member st_mode of the structure stat on Linux.
42791 [__linux__] (linux_find_partition): Use a temporary buffer
42792 REAL_DEV for the working space. Copy it to DEV before returning.
42793 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
42794 buffer cache consistent.
42795 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
42796 strncmp. The previous value was merely wrong.
42797 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
42799 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
42800 FAT size is 12. The previous value was merely wrong.
42802 * kern/main.c (pupa_main): Don't split the starting message from
42805 * kern/term.c (pupa_putchar): Put CR after LF instead of before
42806 LF, because BIOS goes crazy about character attributes in this
42809 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
42811 * include/i386/pc/util/biosdisk.h: New file.
42812 * util/i386/pc/biosdisk.c: Likewise.
42813 * util/i386/pc/pupa-setup.c: Likewise.
42815 * Makefile.in (INCLUDE_DISTFILES): Added
42816 include/pupa/i386/pc/util/biosdisk.h.
42817 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
42818 directory util/i386/pc.
42819 (install-local): Added a rule for sbin_UTILITIES.
42820 (uninstall): Likewise.
42822 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
42824 * util/misc.c (xrealloc): New function.
42825 (pupa_malloc): Likewise.
42826 (pupa_free): Likewise.
42827 (pupa_realloc): Likewise.
42828 (pupa_stop): Likewise.
42829 (pupa_putchar): Likewise.
42831 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
42833 * include/pupa/util/misc.h (xrealloc): Declared.
42835 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
42837 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
42838 (PUPA_BOOT_MACHINE_BPB_END): ... this.
42840 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
42841 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42843 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
42844 way should be implemented.
42845 [PUPA_UTIL] (pupa_fat_fini): Likewise.
42847 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
42848 the size of NAME for safety.
42849 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
42852 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
42853 (pupa_setup_SOURCES): Likewise.
42855 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
42857 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42859 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
42860 bunch of pushl's from pusha, because this destroys the return
42863 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
42865 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
42866 This means that any missing prototypes could be fatal. Also, you
42867 must take care when writing assembly code. See the comments at
42868 the beginning of startup.S, for more details.
42870 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
42871 compilation mechanism.
42872 (pupa_chainloader_real_boot): Likewise.
42873 (pupa_biosdisk_rw_int13_extensions): Likewise.
42874 (pupa_biosdisk_rw_standard): Likewise.
42875 (pupa_biosdisk_check_int13_extensions): Likewise.
42876 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
42877 (pupa_biosdisk_get_diskinfo_standard): Likewise.
42878 (pupa_get_memsize): Likewise.
42879 (pupa_get_mmap_entry): Likewise.
42880 (pupa_console_putchar): Likewise.
42881 (pupa_console_setcursor): Likewise.
42882 (pupa_getrtsecs): Use pushl instead of push.
42884 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
42885 memory instead of the stack for a mmap entry, because some
42886 BIOSes may ignore the maximum size and overflow.
42888 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
42890 * genmk.rb (PModule#rule): Compile automatically generated
42891 sources with module-specific CFLAGS as well as other sources.
42893 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42895 * configure.ac: Check ld.
42896 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
42897 respectively, before checking endianness and sizes.
42899 * Makefile.in (LD): New variable.
42901 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42903 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
42905 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
42907 * Changelog: New file.