1 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
3 * kern/term.c: Fix indentation.
5 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
7 * util/hostdisk.c: Fix a comment.
9 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
11 Fix regression introduced in r2539.
13 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
16 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
18 * util/grub.d/30_os-prober.in: Don't throw away stderr from
19 os-prober. Under normal operation, it does not print anything to
20 stderr; if it does, we need to debug it, and throwing away stderr
21 makes that excessively difficult.
23 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
25 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
27 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
29 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
30 AC_LANG_PROGRAM from autoconf.
31 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
32 prototypes (fixes warning).
34 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35 `--disable-werror' was used.
37 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
39 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
40 uninitialized `lastaddr'.
42 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
44 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
46 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
48 * commands/test.c (get_fileinfo): Return immediately if
51 2009-09-14 José MartÃnez <xosemp@gmail.com>
53 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
55 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
57 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
60 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
62 * configure.ac: Remove --enable-grub-pe2elf. Only build
63 grub-pe2elf when needed by the build system itself.
64 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
66 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
68 * configure.ac: Bump version to 1.97~beta3.
69 * docs/version.texi: Likewise.
71 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
73 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
74 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
76 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
77 (grub_linux_setup_video): ... to here (with some adjustments).
79 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
81 Fix memory corruption issue (spotted by Colin Watson).
83 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
84 causing returned size to be stored in an incorrect memory location.
85 Fix use of uninitialized value when storing the returned size.
87 2009-09-12 Yves Blusseau <blusseau@zetam.org>
89 Change clean rules to properly remove files
91 * genmk.rb: add new clean rules
92 * Makefile.in (clean): add the new targets
93 (mostlyclean): likewise
95 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
97 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
99 * fs/ntfs.c (init_file): Understand 64-bit sizes for
102 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
104 * configure.ac: Don't look for help2man when cross-compiling. Fixes
107 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
109 * util/grub-mkconfig.in: Make the created config mode 400 and
110 print a warning if it fails.
112 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
114 * util/grub.d/40_custom.in: Ask user to type custom entries below
115 comment, rather than below 'exec tail' line.
117 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
119 * util/grub.d/40_custom.in: Make sure that the explanatory text is
122 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
124 * util/grub.d/40_custom.in: Make it a little clearer how to use this
127 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
129 * docs/grub.cfg: Add an example menu entry for memtest86+.
131 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
133 * config.guess: Update to latest version from config git.
134 * config.sub: Likewise.
136 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
138 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
139 unknown-command case. Fixes bug #27320.
141 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
143 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
144 `help' if the command exists.
146 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
148 * INSTALL: Require GCC 4.1.3 or later.
150 2009-09-06 Yves Blusseau <blusseau@zetam.org>
152 * Makefile.in (RMKFILES): add i386-qemu.rmk
153 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
156 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
158 * util/grub-probe.c (probe): Comment out buggy codepath, which
159 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
160 should be re-enabled after 1.97.
162 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
164 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
167 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
169 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
170 unnecessary calls to grub_error.
172 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
174 * NEWS: Mention `keystatus' and Unicode fonts.
176 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
178 * configure.ac: Bump version to 1.97~beta2.
179 * docs/version.texi: Likewise.
181 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
183 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
184 containing unwind information in some cases where it previously did
185 not. Use -fno-dwarf2-cfi-asm if available to restore the old
186 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
189 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
191 Embedding loadenv module into grub-emu
193 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
195 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
196 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
197 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
198 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
199 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
200 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
202 2009-09-03 Magnus Granberg <zorry@ume.nu>
204 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
205 include -fPIE in the default specs.
206 * configure.ac: Check if pie_possible is yes and add -fno-PIE
209 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
211 * INSTALL: Note that GNU Bison 2.3 or later is required.
213 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
215 * kern/i386/pc/startup.S: Fix typo.
217 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
219 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
222 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
224 * docs/grub.texi (Naming convention): Describe one-based partition
226 (Device syntax): Likewise.
227 (File name syntax): Likewise.
228 (Block list syntax): Likewise.
229 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
231 (File name syntax): Likewise.
232 (Command-line and menu entry commands): Document acpi, blocklist,
233 crc, export, insmod, keystatus, ls, set, and unset commands.
235 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
237 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
238 to avoid implying that only one of --shift, --ctrl, or --alt may be
241 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
243 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
244 rather than comparing against S_IFREG, which will almost never work.
246 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
248 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
249 (write_blocklists): Likewise.
251 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
253 * script/lua/grub_lua.h (fputs): Supply a format string as the first
254 argument to grub_printf.
256 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
258 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
261 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
263 * kern/file.c (grub_file_read): Spelling fix
265 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
267 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
268 loading of headers in some cases.
270 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
272 * configure.ac: Bump version to 1.97~beta1.
273 * docs/version.texi: Likewise.
275 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
277 * include/grub/i386/xnu.h: Add license header.
278 include grub/err.h explicitly.
280 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
282 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
283 to `ufs' in the vfs.root.mountfrom kernel parameter.
285 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
287 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
289 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
290 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
292 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
295 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
297 * kern/file.c (grub_file_read): Check offset.
298 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
299 * fs/jfs.c (grub_jfs_read_file): Likewise.
300 * fs/ntfs.c (grub_ntfs_read): Likewise.
301 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
302 * fs/minix.c (grub_minix_read_file): Correct offset check.
303 * fs/ufs.c (grub_ufs_read_file): Likewise.
305 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
307 * term/i386/pc/console.c (bios_data_area): Cast
308 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
310 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
312 1-bit optimised blitters.
314 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
316 (grub_video_fbblit_replace_24bit_1bit): Likewise.
317 (grub_video_fbblit_replace_16bit_1bit): Likewise.
318 (grub_video_fbblit_replace_8bit_1bit): Likewise.
319 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
320 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
321 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
322 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
324 (grub_video_fbblit_replace_24bit_1bit): Likewise.
325 (grub_video_fbblit_replace_16bit_1bit): Likewise.
326 (grub_video_fbblit_replace_8bit_1bit): Likewise.
327 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
328 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
329 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
330 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
332 * video/video.c (grub_video_get_blit_format): Return
333 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
335 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
337 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
338 the first argument to grub_printf.
340 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
341 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
343 Add `getkeystatus' terminal method. Add a new `keystatus' command
346 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
347 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
348 modifier key bitmasks.
349 (struct grub_term_input): Add `getkeystatus' member.
350 (grub_getkeystatus): Add prototype.
351 * kern/term.c (grub_getkeystatus): New function.
353 * include/grub/i386/pc/memory.h
354 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
355 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
357 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
358 (grub_console_term_input): Set `getkeystatus' member.
359 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
361 (grub_usb_keyboard_getreport): Likewise.
362 (grub_usb_keyboard_checkkey): Likewise.
363 (grub_usb_keyboard_getkeystatus): New function.
364 (grub_usb_keyboard_term): Set `getkeystatus' member.
366 * commands/keystatus.c: New file.
367 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
368 (keystatus_mod_SOURCES): New variable.
369 (keystatus_mod_CFLAGS): Likewise.
370 (keystatus_mod_LDFLAGS): Likewise.
371 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
372 commands/keystatus.c.
373 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
374 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
375 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
376 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
377 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
378 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
380 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
382 Split befs.mod and afs.mod into *_be.mod and *.mod
384 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
385 (grub_fstest_SOURCES): Likewise.
386 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
387 (afs_be_mod_SOURCES): New variable.
388 (afs_be_mod_CFLAGS): Likewise.
389 (afs_be_mod_LDFLAGS): Likewise.
390 (befs_be_mod_SOURCES): Likewise.
391 (befs_be_mod_CFLAGS): Likewise.
392 (befs_be_mod_LDFLAGS): Likewise.
393 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
394 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
395 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
396 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
397 (grub_emu_SOURCES): Likewise.
398 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
399 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
400 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
401 * fs/afs_be.c: New file.
402 * fs/befs_be.c: New file.
403 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
404 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
405 (U16): Replaced with ...
406 (grub_afs_to_cpu16): ...this. All users updated.
407 (U32): Replaced with ...
408 (grub_afs_to_cpu32): ...this. All users updated.
409 (U64): Replaced with ...
410 (grub_afs_to_cpu64): ...this. All users updated.
411 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
412 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
413 (grub_afs_validate_sblock): Check only one endianness.
414 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
415 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
416 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
417 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
418 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
419 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
420 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
421 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
423 2009-08-26 Bean <bean123ch@gmail.com>
425 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
427 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
428 (grub_xfs_inode_block): Change return type to grub_uint64_t.
429 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
431 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
433 NetBSD memory map support.
435 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
436 (grub_netbsd_btinfo_mmap_header): New structure.
437 (grub_netbsd_btinfo_mmap_entry): Likewise.
438 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
440 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
442 Enable bsd.mod on coreboot.
444 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
445 (bsd_mod_SOURCES): New variable.
446 (bsd_mod_CFLAGS): Likewise.
447 (bsd_mod_LDFLAGS): Likewise.
448 (bsd_mod_ASFLAGS): Likewise.
449 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
450 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
452 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
454 Cleanup NetBSD root support.
456 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
460 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
462 * util/grub.d/00_header.in: Move check for the video backend of
463 gfxterm from here ...
464 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
465 a suitable video backend.
467 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
469 Fix breakage in grub-setup.
471 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
472 "msdos_partition_map".
474 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
476 Fix breakage in normal/auth.c.
478 * normal/auth.c (grub_iswordseparator): New function.
480 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
482 Authentication support.
484 * commands/password.c: New file.
485 * conf/common.rmk (pkglib_MODULES): Add password.mod.
486 (password_mod_SOURCES): New variable.
487 (password_mod_CFLAGS): Likewise.
488 (password_mod_LDFLAGS): Likewise.
489 (normal_mod_SOURCES): Add normal/auth.c.
490 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
492 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
493 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
494 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
495 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
496 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
497 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
498 * include/grub/auth.h: New file.
499 * include/grub/err.h (grub_err_t): New enum value
500 GRUB_ERR_ACCESS_DENIED.
501 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
503 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
504 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
506 * normal/auth.c: New file.
507 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
508 (grub_cmdline_run): Don't allow to go to command line without
510 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
511 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
512 menuentry without superuser rights.
513 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
514 user isn't a superuser.
516 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
518 Save space by inlining misc.c functions.
520 * kern/misc.c (grub_iswordseparator): Made static.
521 * kern/misc.c (grub_strcat): Moved from here ...
522 * include/grub/misc.h (grub_strcat): ... here. Inlined.
523 * kern/misc.c (grub_strncat): Moved from here ...
524 * include/grub/misc.h (grub_strncat): ... here. Inlined.
525 * kern/misc.c (grub_strcasecmp): Moved from here ...
526 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
527 * kern/misc.c (grub_strncasecmp): Moved from here ...
528 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
529 * kern/misc.c (grub_isalpha): Moved from here ...
530 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
531 * kern/misc.c (grub_isdigit): Moved from here ...
532 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
533 * kern/misc.c (grub_isgraph): Moved from here ...
534 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
535 * kern/misc.c (grub_tolower): Moved from here ...
536 * include/grub/misc.h (grub_tolower): ... here. Inlined.
538 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
540 * script/sh/function.c (grub_script_function_find): Cut error message
541 not to flood terminal.
542 * script/sh/lexer.c (grub_script_yylex): Remove command line length
544 * script/sh/script.c (grub_script_arg_add): Duplicate string.
546 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
548 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
549 `report' grub_uint8_t *.
550 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
551 Use a 50-millisecond timeout rather than just repeating
552 grub_usb_keyboard_getreport 50 times.
553 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
555 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
557 Rename *_partition_map to part_*
559 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
560 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
561 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
562 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
564 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
566 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
567 * util/grub-probe.c (probe_partmap): Don't transform partition name
570 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
572 Fix OpenBSD and NetBSD support.
574 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
575 memory address conflict.
576 (OPENBSD_MMAP_ACPI): New definition.
577 (OPENBSD_MMAP_NVS): Likewise.
578 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
579 and OPENBSD_MMAP_NVS.
580 Add memory map terminator
581 Explicit cast when calling grub_unix_real_boot.
582 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
584 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
586 Let user specify NetBSD root device.
588 * loader/i386/bsd.c (netbsd_root): New variable.
589 (netbsd_opts): New option 'root'.
590 (NETBSD_ROOT_ARG): New macro.
591 (grub_netbsd_boot): Use 'netbsd_root'.
592 (grub_bsd_unload): Free 'netbsd_root'.
593 (grub_cmd_netbsd): Fill 'netbsd_root'.
595 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
597 Support for 64-bit NetBSD.
599 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
600 point when booting non-FreeBSD.
602 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
604 Support --no-smp and --no-acpi for NetBSD.
606 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
607 (NETBSD_AB_NOACPI): Likewise.
608 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
609 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
611 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
613 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
615 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
616 errors. Call grub_error when needed.
618 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
620 * commands/search.c (search_fs): Try searching without autoload first.
621 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
622 filesystem module explicitly for faster booting.
624 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
626 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
628 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
630 * util/grub.d/30_os-prober.in: Disable os-prober if
631 `GRUB_DISABLE_OS_PROBER' was set to true.
633 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
635 * partmap/pc.c: Rename to ...
636 * partmap/msdos.c: ... this. Update all users.
637 (grub_pc_partition_map): Rename to ...
638 (grub_msdos_partition_map): ... this. Update all users.
640 * parttool/pcpart.c: Rename to ...
641 * parttool/msdospart.c: ... this. Update all users.
643 * include/grub/pc_partition.h: Rename to ...
644 * include/grub/msdos_partition.h: ... this. Update all users.
645 (grub_pc_partition_bsd_entry): Rename to ...
646 (grub_msdos_partition_bsd_entry): ... this. Update all users.
647 (grub_pc_partition_disk_label): Rename to ...
648 (grub_msdos_partition_disk_label): ... this. Update all users.
649 (grub_pc_partition_entry): Rename to ...
650 (grub_msdos_partition_entry): ... this. Update all users.
651 (grub_pc_partition_mbr): Rename to ...
652 (grub_msdos_partition_mbr): ... this. Update all users.
653 (grub_pc_partition): Rename to ...
654 (grub_msdos_partition): ... this. Update all users.
655 (grub_pc_partition_is_empty): Rename to ...
656 (grub_msdos_partition_is_empty): ... this. Update all users.
657 (grub_pc_partition_is_extended): Rename to ...
658 (grub_msdos_partition_is_extended): ... this. Update all users.
659 (grub_pc_partition_is_bsd): Rename to ...
660 (grub_msdos_partition_is_bsd): ... this. Update all users.
662 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
663 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
664 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
665 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
666 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
667 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
668 (gpt_mod_LDFLAGS): Rename to ...
669 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
670 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
671 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
672 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
673 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
674 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
675 (part_gpt_mod_LDFLAGS): ... this.
676 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
677 `pcpart.mod' to `msdospart.mod'.
678 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
680 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
681 (msdospart_mod_LDFLAGS): ... this.
683 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
685 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
686 (openbsd_opts): Likewise.
687 (netbsd_opts): Likewise.
688 (freebsd_flags): Added 0 terminator.
689 (openbsd_flags): Likewise.
690 (netbsd_flags): Likewise.
691 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
692 (grub_cmd_freebsd): Transformed into extended command.
693 (grub_cmd_openbsd): Likewise.
694 (grub_cmd_netbsd): Likewise.
695 (cmd_freebsd): Changed type to grub_extcmd_t.
696 (cmd_openbsd): Likewise.
697 (cmd_netbsd): Likewise.
698 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
699 grub_cmd_openbsd as extended commands.
700 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
701 cmd_netbsd and cmd_openbsd
703 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
705 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
707 2009-08-21 Pavel Roskin <proski@gnu.org>
709 * Makefile.in (install-local): When checking if a file is in the
710 build directory, use "test -e" to detect symlinks.
712 * Makefile.in (install-local): Remove all files in
713 $(DESTDIR)$(pkglibdir) before installing new files there.
715 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
717 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
720 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
722 * util/grub-mkconfig.in: Don't use gfxterm by default if not
723 explicitly specified by the user.
725 2009-08-18 Pavel Roskin <proski@gnu.org>
727 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
728 grub_uint8_t pointer for data.
729 * include/grub/fbutil.h (struct grub_video_fbblit_info):
731 * video/fb/fbutil.c: Remove unnecessary casts.
733 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
737 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
738 (grub_vbe_set_video_mode): Save active mode info
739 only after setting the mode.
740 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
743 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
745 Rename variables for clarity.
747 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
748 (active_vbe_mode_info): ... this. All users updated.
749 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
751 (initial_mode): Rename to ...
752 (initial_vbe_mode): ... this. All users updated.
753 (mode_in_use): Rename to ..
754 (vbe_mode_in_use): ... this. All users updated.
755 (mode_list): Rename to ..
756 (vbe_mode_list): ... this. All users updated.
757 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
758 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
759 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
760 'mode_list_size' to 'vbe_mode_list_size'.
761 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
762 'best_mode_info' to 'best_vbe_mode_info' and
763 'best_mode' to 'best_vbe_mode'
765 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
767 Remove duplicate grub_video_fb_get_video_ptr.
769 * include/grub/fbutil.h (get_data_ptr): Rename to ...
770 (grub_video_fb_get_video_ptr): ... this.
771 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
772 * video/fb/fbutil.c: Add comment about addressing.
773 (get_data_ptr): Rename to ...
774 (grub_video_fb_get_video_ptr): ... this. All users updated.
775 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
777 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
779 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
780 grub_dprintf() that was just added.
782 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
784 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
785 (DEFAULT_VIDEO_MODE): Remove macros.
786 (grub_linux_boot): Remove assumption that Linux has FB support,
787 and use "text" as default video mode.
789 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
791 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
793 * fs/fat.c (grub_fat_read_data): Likewise.
795 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
797 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
799 (grub_module): Likewise.
801 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
803 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
804 mbi->cmdline but free playground.
806 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
808 Handle group offset on UFS1.
810 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
811 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
813 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
815 Split ufs.mod into ufs1.mod and ufs2.mod.
817 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
818 (grub_fstest_SOURCES): Likewise.
819 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
820 (ufs_mod_SOURCES): Remove.
821 (ufs_mod_CFLAGS): Likewise.
822 (ufs_mod_LDFLAGS): Likewise.
823 (ufs1_mod_SOURCES): New variable.
824 (ufs1_mod_CFLAGS): Likewise.
825 (ufs1_mod_LDFLAGS): Likewise.
826 (ufs2_mod_SOURCES): New variable.
827 (ufs2_mod_CFLAGS): Likewise.
828 (ufs2_mod_LDFLAGS): Likewise.
829 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
830 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
832 (grub_emu_SOURCES): Likewise.
833 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
834 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
835 (grub_setup_SOURCES): Likewise.
836 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
837 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
838 (grub_setup_SOURCES): Likewise.
839 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
841 * fs/ufs2.c: New file.
842 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
844 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
848 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
849 subsystem at the end.
850 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
851 (video_fb_mod_SOURCES): New variable.
852 (video_fb_mod_CFLAGS): Likewise.
853 (video_fb_mod_LDFLAGS): Likewise.
854 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
855 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
856 * video/i386/pc/vbeblit.c: Moved from here ...
857 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
858 * video/i386/pc/vbefill.c: Moved from here ...
859 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
860 * video/i386/pc/vbeutil.c: Moved from here ...
861 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
862 * include/grub/i386/pc/vbeblit.h: Moved from here ...
863 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
864 * include/grub/i386/pc/vbefill.h: Moved from here ...
865 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
866 * include/grub/i386/pc/vbeutil.h: Moved from here ...
867 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
868 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
869 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
870 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
871 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
872 (grub_video_adapter): Added 'get_info_and_fini'.
873 (grub_video_get_info_and_fini): New prototype.
874 (grub_video_set_mode): make modestring const char *.
875 * loader/i386/linux.c (grub_linux_setup_video): Use
876 grub_video_get_info_and_fini.
877 (grub_linux_boot): Move modesetting just before booting.
878 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
879 grub_video_get_info_and_fini.
880 * video/i386/pc/vbe.c: Moved framebuffer part ...
881 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
882 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
883 grub_video_fbstd_colors and grub_video_fb_set_palette.
884 (grub_video_vbe_init): Clear 'framebuffer' variable and use
886 (grub_video_vbe_fini): Use grub_video_fb_fini.
887 (grub_video_vbe_setup): Use framebuffer.render_target instead of
888 render_target and use grub_video_fb_set_active_render_target and
889 grub_video_fb_set_palette.
890 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
891 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
892 (grub_video_vbe_adapter): Use framebuffer.
893 * video/video.c (grub_video_get_info_and_fini): New function.
894 (grub_video_set_mode): Make modestring const char *.
895 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
896 values are already initialised.
898 2009-08-14 Pavel Roskin <proski@gnu.org>
900 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
902 * boot/i386/pc/diskboot.S: Likewise.
903 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
904 sectors allow compilation on MacOSX.
905 * conf/i386-pc.rmk: Enable unconditional compilation of
908 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
910 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
911 * util/grub.d/00_header.in: Enter interruptible sleep if
912 GRUB_HIDDEN_TIMEOUT is set.
914 2009-08-13 Yves Blusseau <blusseau@zetam.org>
916 * include/grub/symbol.h: Add the LOCAL macro.
917 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
920 2009-08-13 Pavel Roskin <proski@gnu.org>
922 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
923 any modern compilers we support.
925 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
926 Use local labels starting with "L_" so that Apple assembler
927 knows they are local.
929 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
931 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
932 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
933 (bsd_kernel_types): ... this enum.
935 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
936 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
937 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
939 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
940 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
941 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
944 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
946 * util/grub-dumpdevtree: Moved from here ...
947 * util/i386/efi/grub-dumpdevtree: ... to here.
948 (hexify): New function. Converts a string to its hex version.
949 Generate hex versions of "efi" and "device-properties" by calling
950 hexify() on the ASCII strings rather than by hardcoding numbers.
952 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
954 * fs/jfs.c: Update copyright year.
956 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
958 * util/grub.d/00_header.in: Fix a comment.
959 * util/grub.d/10_linux.in: Likewise.
960 * util/grub.d/10_windows.in: Likewise.
961 * util/grub.d/10_hurd.in: Likewise.
963 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
965 * util/grub-mkconfig.in: Allow the user to specify the used font
968 2009-08-08 Pavel Roskin <proski@gnu.org>
970 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
971 available, xfs.mod needs it now.
973 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
974 the "g" modifier in sed when the intention is to strip something
975 once. This fixes comparison of kernels with multiple dashes.
977 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
978 on it. Add missing space before closing bracket. Fix
979 misleading formatting.
981 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
983 * docs/grub.texi: Major overhaul. Remove all sections that are
984 specific to GRUB Legacy, or mostly composed of Legacy-specific
987 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
989 * docs/version.texi: New file. Provides version information for
992 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
994 * docs/grub.texi: Update CVS information to SVN.
995 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
997 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
999 * util/grub-mkconfig.in: Remove a wrong `fi'.
1001 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1003 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
1004 (grub_jfs_uuid): New function.
1005 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
1007 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1009 * util/grub-mkconfig_lib.in (font_path): Move the functionality
1011 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
1012 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
1014 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1016 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
1017 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
1020 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
1021 not just "vmlinu[zx]".
1023 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
1026 * util/grub.d/10_linux.in (find_latest): Moved from here ...
1027 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
1030 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1032 * util/grub.d/10_freebsd.in: Use an absolute device path for
1033 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
1035 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
1037 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1038 handling of multiple abstraction modules.
1040 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
1042 Fix a bug resulting in black screen when loading Linux using a
1045 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
1048 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
1049 (grub_vbe_bios_getset_dac_palette_width): New function.
1050 (grub_vbe_bios_get_dac_palette_width)
1051 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
1052 grub_vbe_bios_getset_dac_palette_width()).
1054 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
1055 check for return status.
1056 (grub_vbe_get_video_mode_info): When getting information for a packed
1057 mode (<= 8 bpp), obtain DAC palette width using
1058 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
1059 {red,green,blue}_mark_size.
1061 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
1063 * commands/search.c (options): Fix help output to match actual code.
1065 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1067 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
1070 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1072 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
1075 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1077 Support Apple partition map with sector size different from 512 bytes.
1079 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
1080 (apple_partition_map_iterate): Respect 'aheader.blocksize'
1081 and 'apart.partmap_size'.
1083 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1084 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
1088 * commands/i386/cpuid.c (options): New variable.
1089 (grub_cmd_cpuid): Return real error.
1090 (GRUB_MOD_INIT(cpuid)): Declare options.
1092 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
1094 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
1097 2009-07-31 Bean <bean123ch@gmail.com>
1099 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
1101 (grub_fshelp_node): Move inode field to the end.
1102 (grub_xfs_data): Remove inode field.
1103 (grub_xfs_inode_block): Calculate inode size using sblock.
1104 (grub_xfs_inode_offset): Likewise.
1105 (grub_xfs_read_inode): Calculate inode size using sblock.
1106 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
1107 (grub_xfs_iterate_dir): Calculate inode size using sblock.
1108 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
1109 to match inode size.
1110 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
1111 not accessible when data is null.
1112 (grub_xfs_open): Likewise.
1114 2009-07-31 Bean <bean123ch@gmail.com>
1116 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
1117 Don't change pv->disk if it's already set.
1119 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
1120 (grub_raid_register): ... here.
1121 (grub_raid_rescan): Removed.
1123 * include/grub/raid.h (grub_raid_rescan): Removed.
1125 * util/grub-fstest.c: Remove include file <grub/raid.h>.
1126 (fstest): Replace grub_raid_rescan with module fini function followed
1129 * util/grub-probe.c: Add include file <grub/raid.h>.
1130 (probe_raid_level): New function.
1131 (probe): Detect abstraction by walking the disk device, support two
1132 level of abstraction (LVM on RAID) when detecting partition map.
1134 2009-07-31 Pavel Roskin <proski@gnu.org>
1136 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1137 to grub_zalloc(), it was erroneous.
1138 Reported by Bean <bean123ch@gmail.com>
1140 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1142 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1143 embedding zone, not only the first one.
1145 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1147 * term/gfxterm.c (clear_char): New function.
1148 (grub_virtual_screen_setup): Use clear_char.
1149 (scroll_up): Likewise.
1150 (grub_virtual_screen_cls): Likewise.
1152 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1154 * util/deviceiter.c (get_acceleraid_disk_name): New static
1156 (grub_util_iterate_devices): Handle Accelraid devices.
1157 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1159 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1161 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1162 separator for the suggested gfxpayload string (';' collides with the
1163 parser and needs escaping).
1165 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1167 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1168 Clear direction flag before jumping to OS.
1169 (grub_multiboot2_real_boot): Likewise.
1171 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1173 * util/i386/pc/grub-install: Fix parsing of --disk-module
1176 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1178 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
1181 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
1183 * util/grub-mkconfig.in (package_version): New variable.
1184 Use it do display the version.
1186 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1188 * kern/file.c (grub_file_open): Revert to previous check with
1191 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1193 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
1194 from help line. It's out of sync with code.
1196 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1198 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
1199 entries on failed boot.
1201 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1203 * kern/file.c (grub_file_open): Fix an error check.
1205 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1207 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
1208 partition map couldn't be identified.
1210 2009-07-23 Pavel Roskin <proski@gnu.org>
1212 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
1213 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
1214 case of little endian words becomes just an optimization.
1215 Respect const modifier.
1216 (md5_final): Use code that doesn't depend on endianness.
1218 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
1219 to avoid loss of upper bits if align is unsigned and shorter
1222 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1224 UUID support for UFS
1226 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
1227 (grub_ufs_uuid): New function.
1228 (grub_ufs_fs): add .uuid
1230 2009-07-21 Pavel Roskin <proski@gnu.org>
1232 * kern/dl.c (grub_dl_check_header): Make static.
1234 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
1236 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
1237 add drivemap for Vista. It breaks Windows 7.
1239 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1241 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
1244 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1248 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
1249 (grub_fstest_SOURCES): Likewise.
1250 (pkglib_MODULES): Add befs.mod.
1251 (befs_mod_SOURCES): New variable.
1252 (befs_mod_CFLAGS): Likewise.
1253 (befs_mod_LDFLAGS): Likewise.
1254 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1255 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1256 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1257 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1258 (grub_setup_SOURCES): Likewise.
1259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1260 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1261 (grub_setup_SOURCES): Likewise.
1262 * fs/befs.c: New file.
1263 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
1264 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
1265 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
1266 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
1267 (B_KEY_INDEX_ALIGN): New declaration.
1268 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
1269 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
1270 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
1271 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
1272 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
1273 (grub_afs_mount) [MODE_BFS]: Likewise.
1274 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
1275 (grub_afs_fs): Use GRUB_AFS_FSNAME
1276 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
1277 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
1278 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
1279 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
1281 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
1283 * util/getroot.c (find_root_device): Add support for MacOSX.
1284 * util/hostdisk.c: Likewise.
1286 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1288 * font/font.c (find_glyph): Check whether a font is present to avoid
1291 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
1293 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
1295 2009-07-20 Pavel Roskin <proski@gnu.org>
1297 * configure.ac: Trim excessively wordy excuses.
1299 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1301 Add symlink, mtime and label support to AtheFS.
1303 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
1304 (grub_afs_iterate_dir): Handle symlinks.
1305 (grub_afs_open): Use grub_afs_read_symlink.
1306 (grub_afs_dir): Likewise.
1308 (grub_afs_label): New function.
1309 (grub_afs_fs): Add grub_afs_label.
1310 (grub_afs_read_symlink): New function.
1312 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1316 * fs/afs.c: Fix comments style.
1317 (grub_afs_blockrun): Declare as packed.
1318 (grub_afs_datastream): Likewise.
1319 (grub_afs_bnode): Likewise.
1320 (grub_afs_btree): Likewise.
1321 (grub_afs_sblock): Likewise.
1322 Declare `name' as char.
1323 (grub_afs_inode): Declare as packed.
1324 Change void *vnode to grub_uint32_t unused.
1325 (grub_afs_iterate_dir): Check that key_size is positive.
1326 (grub_afs_mount): Don't read superblock twice.
1327 (grub_afs_dir): Don't free node in case of error,
1328 grub_fshelp_find_file already handles this.
1329 (grub_afs_open): Likewise.
1331 2009-07-19 Pavel Roskin <proski@gnu.org>
1333 * Makefile.in: Remove LIBLZO and enable_lzo.
1334 * conf/i386-pc.rmk: Remove lzo support.
1335 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
1336 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
1338 * kern/i386/pc/lzo1x.S: Remove.
1339 * kern/i386/pc/startup.S: Remove lzo support.
1340 * util/i386/pc/grub-mkimage.c: Likewise.
1342 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
1344 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
1345 * fs/xfs.c (grub_xfs_dir): Likewise.
1346 * fs/afs.c (grub_afs_dir): Likewise.
1347 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1348 (grub_iso9660_open): Likewise.
1349 * fs/jfs.c (grub_jfs_open): Likewise.
1350 * fs/ext2.c (grub_ext2_dir): Likewise.
1351 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
1352 * script/sh/lexer.c (grub_script_yylex): Likewise.
1354 2009-07-16 Pavel Roskin <proski@gnu.org>
1356 * configure.ac: Never add "-c" to CFLAGS.
1358 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
1360 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
1361 grub_cv_cc_efiemu should be used.
1363 * configure.ac: Typo fixes.
1365 * kern/mm.c (grub_zalloc): New function.
1366 (grub_debug_zalloc): Likewise.
1367 * include/grub/mm.h: Declare grub_zalloc() and
1368 grub_debug_zalloc().
1369 * util/misc.c (grub_zalloc): New function.
1370 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
1371 instead of grub_malloc(), remove unneeded initializations.
1372 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
1373 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
1374 * commands/parttool.c (grub_cmd_parttool): Likewise.
1375 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1376 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
1377 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
1378 * disk/usbms.c (grub_usbms_finddevs): Likewise.
1379 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
1380 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
1381 (grub_cmd_efiemu_pnvram): Likewise.
1382 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
1383 * fs/iso9660.c (grub_iso9660_mount): Likewise.
1384 (grub_iso9660_iterate_dir): Likewise.
1385 * fs/jfs.c (grub_jfs_opendir): Likewise.
1386 * fs/ntfs.c (list_file): Likewise.
1387 (grub_ntfs_mount): Likewise.
1388 * kern/disk.c (grub_disk_open): Likewise.
1389 * kern/dl.c (grub_dl_load_core): Likewise.
1390 * kern/elf.c (grub_elf_file): Likewise.
1391 * kern/env.c (grub_env_context_open): Likewise.
1392 (grub_env_set): Likewise.
1393 (grub_env_set_data_slot): Likewise.
1394 * kern/file.c (grub_file_open): Likewise.
1395 * kern/fs.c (grub_fs_blocklist_open): Likewise.
1396 * loader/i386/multiboot.c (grub_module): Likewise.
1397 * loader/xnu.c (grub_xnu_create_key): Likewise.
1398 (grub_xnu_create_value): Likewise.
1399 * normal/main.c (grub_normal_add_menu_entry): Likewise.
1400 (read_config_file): Likewise.
1401 * normal/menu_entry.c (make_screen): Likewise.
1402 * partmap/sun.c (sun_partition_map_iterate): Likewise.
1403 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
1404 * script/sh/script.c (grub_script_parse): Likewise.
1405 * video/bitmap.c (grub_video_bitmap_create): Likewise.
1406 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1407 * video/readers/png.c (grub_png_output_byte): Likewise.
1408 (grub_video_reader_png): Likewise.
1410 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1412 Enable all targets that can be built by default
1414 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
1415 grub-mkfont and grub-fstest if they can be built
1417 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1419 Fix hang and segmentation fault in grub-emu-usb
1421 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
1422 * util/usb.c (grub_libusb_devices): likewise
1423 (grub_libusb_init): rename to ...
1424 (GRUB_MOD_INIT (libusb)):...this
1425 (grub_libusb_fini): rename to ..
1426 (GRUB_MOD_FINI (libusb)):...this
1427 * disk/usbms.c (grub_usbms_transfer): fix retry logic
1428 * include/grub/disk.h (grub_raid_init): removed, it's useless
1429 (grub_raid_fini): likewise
1430 (grub_lvm_init): likewise
1431 (grub_lvm_fini): likewise
1432 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
1435 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1439 * Makefile.in (LIBUSB): new macro
1440 * genmk.rb (Utility/print_tail): new method
1441 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
1442 (top level): call util.print_tail at the end.
1444 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1446 Make FreeBSD accept zpool.cache
1448 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
1449 type is /boot/zfs/zpool.cache
1451 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1455 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
1456 correct wrong typedef
1457 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
1459 2009-07-15 Pavel Roskin <proski@gnu.org>
1461 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
1462 * kern/disk.c (struct grub_disk_cache): Likewise.
1464 * commands/probe.c (options): Typo fix.
1466 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
1467 Increase to 0x5a to accommodate FAT32. Adjust other offsets
1469 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
1471 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
1472 the end of "Error" to make the message more readable.
1474 * boot/i386/pc/boot.S (kernel_segment): Remove.
1475 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
1478 * boot/i386/pc/boot.S (boot_version): Remove.
1479 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
1482 * include/grub/i386/pc/boot.h: Sort all offsets.
1483 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
1484 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
1485 * boot/i386/pc/boot.S: Assert location of every offset listed in
1486 include/grub/i386/pc/boot.h.
1488 2009-07-13 Pavel Roskin <proski@gnu.org>
1490 * include/grub/i386/coreboot/machine.h: Rename
1491 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
1492 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
1493 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
1495 * kern/dl.c: Force native word size to suppress warnings when
1498 * kern/device.c (grub_device_iterate): Change struct part_ent to
1499 hold the name, not a pointer to it. Use one grub_malloc() per
1500 partition, not two. Free partition_name if grub_malloc() fails.
1501 Set ents to NULL only before grub_partition_iterate() is called.
1503 2009-07-11 Bean <bean123ch@gmail.com>
1505 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
1508 2009-07-10 Bean <bean123ch@gmail.com>
1509 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
1511 * kern/ieee1275/openfw.c (grub_children_iterate)
1512 (grub_devalias_iterate): Fix size evaluation for property or path
1513 strings, which was broken since r2132.
1515 2009-07-07 Pavel Roskin <proski@gnu.org>
1517 * commands/search.c (search_file): Merge into ...
1518 (search_fs): ... this. Accept search type as argument.
1519 (grub_cmd_search): Pass search type to search_fs().
1521 * include/grub/util/console.h: New file.
1522 * util/console.c: Use it instead of grub/machine/console.h.
1523 * util/grub-emu.c: Likewise.
1525 * lib/arg.c (find_long_option): Remove.
1526 (find_long): Add `len' argument, make `s' const char *.
1527 (grub_arg_parse): Parse long options in place, not in a
1530 2009-07-06 Pavel Roskin <proski@gnu.org>
1532 * commands/search.c (search_fs): Fix potential NULL pointer
1535 * commands/search.c (search_fs): Replace QUID macro with quid_fn
1538 2009-07-06 Daniel Mierswa <impulze@impulze.org>
1540 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
1543 2009-07-05 Pavel Roskin <proski@gnu.org>
1545 * include/grub/i386/linux.h (struct linux_kernel_params):
1546 Restore padding3, it's still needed.
1548 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
1550 * util/osdetect.lua: Likewise.
1552 2009-07-05 Bean <bean123ch@gmail.com>
1554 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
1556 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
1557 (grub_lua_getenv): Likewise.
1558 (grub_lua_setenv): Likewise.
1559 (save_errno): New function.
1560 (push_result): Likewise.
1561 (grub_lua_enum_device): Likewise.
1562 (grub_lua_enum_file): Likewise.
1563 (grub_lua_file_open): Likewise.
1564 (grub_lua_file_close): Likewise.
1565 (grub_lua_file_seek): Likewise.
1566 (grub_lua_file_read): Likewise.
1567 (grub_lua_file_getline): Likewise.
1568 (grub_lua_file_getsize): Likewise.
1569 (grub_lua_file_getpos): Likewise.
1570 (grub_lua_file_eof): Likewise.
1571 (grub_lua_file_exist): Likewise.
1572 (grub_lua_add_menu): Likewise.
1574 * script/lua/grub_lua.h (isupper): New inline function.
1575 (islower): Likewise.
1576 (ispunct): Likewise.
1577 (isxdigit): Likewise.
1578 (strcspn): Change to normal function.
1579 (strpbkr): New function declaration.
1582 * script/lua/grub_main.c (scan_str): New function.
1583 (strcspn): Likewise.
1584 (strpbrk): Likewise.
1587 * script/lua/linit.c (lualibs): Enable the string library.
1589 * util/osdetect.lua: New file.
1591 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
1593 * include/grub/i386/linux.h (struct linux_kernel_params): Add
1594 `capabilities' member.
1596 2009-07-02 Pavel Roskin <proski@gnu.org>
1598 * genparttoollist.sh: Add missing newline at the end.
1600 2009-07-01 Pavel Roskin <proski@gnu.org>
1602 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
1604 * util/hostdisk.c (open_device): Remove `const' from
1605 `sysctl_size', as sysctlbyname() can change it (in this case it
1606 doesn't actually happen).
1608 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
1609 using signed long int constants.
1611 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
1612 constant to avoid a warning on FreeBSD.
1614 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
1617 * Makefile.in: Install include/grub/machine symlink.
1619 * Makefile.in: When installing symlinks, use "cp -fR", which
1620 works on FreeBSD and MacOSX.
1621 From Yves Blusseau <cl7m42e02@sneakemail.com>
1623 * kern/dl.c (grub_dl_resolve_symbol): Make static.
1624 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
1626 * util/misc.c: Move grub_reboot() and grub_halt() ...
1627 * util/grub-emu.c: ... here. Make main_env static.
1628 * include/grub/util/misc.h: Remove main_env.
1630 * kern/mm.c: Use correct format to print size_t.
1632 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
1633 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
1634 * kern/powerpc/dl.c: Likewise.
1635 * kern/sparc64/dl.c: Likewise.
1636 * kern/x86_64/dl.c: Likewise.
1638 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1640 Fix grub-emu build on sparc64-ieee1275.
1642 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
1643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
1645 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1647 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
1648 (grub_reboot, grub_halt): New functions.
1650 * util/i386/pc/misc.c: Delete. Update all users.
1651 * util/sparc64/ieee1275/misc.c: Likewise.
1652 * util/powerpc/ieee1275/misc.c: Likewise.
1654 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1656 * conf/i386.rmk (setjmp_mod_SOURCES)
1657 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
1658 * conf/common.rmk (setjmp_mod_SOURCES)
1659 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
1660 to use $(target_cpu).
1661 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
1662 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
1663 * conf/powerpc-ieee1275.rmk: Likewise.
1664 * conf/sparc64-ieee1275.rmk: Likewise.
1666 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
1667 $(target_cpu) for kern/$(target_cpu)/dl.c.
1668 * conf/i386-efi.rmk: Likewise.
1669 * conf/i386-ieee1275.rmk: Likewise.
1670 * conf/x86_64-efi.rmk: Likewise.
1671 * conf/i386-coreboot.rmk: Likewise.
1672 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
1673 $(target_cpu) for kern/$(target_cpu)/dl.c and for
1674 kern/$(target_cpu)/cache.S.
1675 * conf/sparc64-ieee1275.rmk: Likewise.
1677 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1679 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
1680 type to `grub_uint8_t', and adjust `padding9' accordingly.
1682 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
1684 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
1686 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
1687 assembly in final jump, using register constraints.
1689 (grub_linux_boot): For text mode, initialize `have_vga' using
1690 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
1692 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
1693 right before the final jump.
1695 Set `video_mode' to 0x3.
1697 Document initialization of `video_page', `video_mode' and
1700 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
1702 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
1703 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
1704 and set GRUB_LINUX_FLAG_QUIET appropriately.
1706 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
1708 Fix build on Debian / sparc.
1710 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
1712 2009-06-28 Pavel Roskin <proski@gnu.org>
1714 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
1717 * util/grub.d/10_linux.in: Match SUSE style initrd names.
1719 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
1721 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
1724 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
1728 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
1729 file can't be opened. grub_file_open() is already supposed to set
1730 grub_errno / grub_errmsg appropriately.
1731 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
1733 2009-06-27 Pavel Roskin <proski@gnu.org>
1734 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
1736 * include/grub/dl.h: Include grub/elf.h.
1737 (struct grub_dl): Add symtab field.
1738 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
1739 GRUB_MODULES_MACHINE_READONLY.
1740 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
1741 of the header for read-only modules.
1742 (grub_dl_unload): Free mod->symtab for read-only modules.
1743 * kern/i386/dl.c: Use mod->symtab.
1744 * kern/powerpc/dl.c: Likewise.
1745 * kern/sparc64/dl.c: Likewise.
1746 * kern/x86_64/dl.c: Likewise.
1748 * conf/i386-qemu.rmk: New file.
1749 * kern/i386/qemu/startup.S: Likewise.
1750 * kern/i386/qemu/mmap.c: Likewise.
1751 * boot/i386/qemu/boot.S: Likewise.
1752 * include/grub/i386/qemu/time.h: Likewise.
1753 * include/grub/i386/qemu/serial.h: Likewise.
1754 * include/grub/i386/qemu/kernel.h: Likewise.
1755 * include/grub/i386/qemu/console.h: Likewise.
1756 * include/grub/i386/qemu/boot.h: Likewise.
1757 * include/grub/i386/qemu/init.h: Likewise.
1758 * include/grub/i386/qemu/machine.h: Likewise.
1759 * include/grub/i386/qemu/loader.h: Likewise.
1760 * include/grub/i386/qemu/memory.h: Likewise.
1762 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
1763 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
1764 [qemu] (pkglib_IMAGES): Add `boot.img'.
1765 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
1766 [qemu] (boot_img_FORMAT): New variables.
1767 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
1768 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
1769 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
1770 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
1771 [qemu] (kernel_img_FORMAT): New variables.
1773 * configure.ac: Recognise `i386-qemu'.
1775 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
1776 (for no compression).
1777 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
1778 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
1779 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
1780 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
1783 2009-06-27 Pavel Roskin <proski@gnu.org>
1785 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
1787 * efiemu/prepare32.c: Likewise.
1788 * efiemu/prepare64.c: Likewise.
1790 2009-06-26 Pavel Roskin <proski@gnu.org>
1792 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
1793 * include/grub/elf.h: Define symbols without "32" or "64" based
1794 on GRUB_TARGET_WORDSIZE.
1795 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
1796 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
1798 * efiemu/loadcore64.c: Likewise.
1799 * loader/i386/bsd32.c: Likewise.
1800 * loader/i386/bsd64.c: Likewise.
1801 * kern/dl.c: Remove own ELF definitions.
1802 * util/i386/efi/grub-mkimage.c: Likewise.
1804 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
1806 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
1807 segment 0x0 unconditionally, because the reference generated by
1808 GAS is an absolute address.
1810 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1812 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
1813 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
1815 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1817 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
1818 indexes. Check for -f explicitly.
1819 (search_file): Improve error message.
1820 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
1822 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1824 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
1825 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
1827 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1829 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
1830 * conf/i386-ieee1275.rmk: Likewise.
1831 * conf/i386-coreboot.rmk: Likewise.
1833 * kern/i386/pc/startup.S (grub_stop): Remove function.
1834 * kern/i386/ieee1275/startup.S: Likewise.
1835 * kern/i386/coreboot/startup.S: Likewise.
1836 * kern/i386/misc.S (grub_stop): New function.
1838 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1840 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
1841 * kern/i386/realmode.S (real_to_prot): ... to here.
1843 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1845 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
1847 (kernel_elf_SOURCES): Rename to ...
1848 (kernel_img_SOURCES): ... this.
1849 (kernel_elf_HEADERS): Rename to ...
1850 (kernel_img_HEADERS): ... this. Update all users.
1851 (kernel_elf_ASFLAGS): Rename to ...
1852 (kernel_img_ASFLAGS): ... this.
1853 (kernel_elf_CFLAGS): Rename to ...
1854 (kernel_img_CFLAGS): ... this.
1855 (kernel_elf_LDFLAGS): Rename to ...
1856 (kernel_img_LDFLAGS): ... this.
1857 * conf/i386-coreboot.rmk: Likewise.
1858 * conf/powerpc-ieee1275.rmk: Likewise.
1860 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
1863 2009-06-21 Pavel Roskin <proski@gnu.org>
1865 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
1866 to match nested functions.
1867 * loader/sparc64/ieee1275/linux.c: Likewise.
1869 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
1871 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
1873 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
1876 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
1878 Fix asm file handling on ELF, and remove workarounds.
1880 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
1881 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
1882 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
1883 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
1885 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1887 Load BSD ELF modules
1889 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
1890 and loader/i386/bsd64.c
1891 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
1892 (FREEBSD_MODTYPE_ELF_MODULE): New definition
1893 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
1894 (grub_freebsd_load_elfmodule32): New declaration
1895 (grub_freebsd_load_elfmoduleobj64): Likewise
1896 (grub_freebsd_load_elf_meta32): Likewise
1897 (grub_freebsd_load_elf_meta64): Likewise
1898 (grub_freebsd_add_meta): Likewise
1899 (grub_freebsd_add_meta_module): Likewise
1900 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
1901 (grub_freebsd_add_meta_module): Likewise and move module-specific
1902 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
1903 (grub_cmd_freebsd): Add elf-kernel specific parts
1904 based on grub_freebsd_add_meta_module
1905 (grub_cmd_freebsd_module): Add type parsing moved from
1906 grub_freebsd_add_meta_module
1907 (grub_cmd_freebsd_module_elf): New function
1908 (cmd_freebsd_module_elf): New variable
1909 (GRUB_MOD_INIT): Register freebsd_module_elf
1910 * loader/i386/bsd32.c: New file
1911 * loader/i386/bsd64.c: Likewise
1912 * loader/i386/bsdXX.c: Likewise
1913 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
1914 (grub_elf64_load): Likewise
1915 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
1917 (grub_elf64_load_hook_t): Likewise
1919 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
1921 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
1923 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
1924 don't write a menu entry for recovery mode.
1926 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
1928 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
1929 after it's no longer needed.
1931 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
1933 * include/grub/i386/loader.h (grub_linux_prot_size)
1934 (grub_linux_tmp_addr, grub_linux_real_addr)
1935 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
1936 GRUB_MACHINE_PCBIOS.
1937 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
1938 common grub_util_info() call to ...
1939 (generate_image): ... here.
1940 Fix use of uninitialized memory, comparison of signed with
1941 unsigned integers and memory leak.
1942 Remove bogus module address message.
1944 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1946 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
1948 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
1950 2009-06-19 Pavel Roskin <proski@gnu.org>
1952 * configure.ac: Remove stray AC_MSG_CHECKING.
1954 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1956 * disk/scsi.c (grub_scsi_open): use continue instead of big if
1958 2009-06-18 Pavel Roskin <proski@gnu.org>
1960 * conf/common.rmk: Add fs_file.mod.
1961 * disk/fs_file.c: New file.
1962 * include/grub/disk.h (enum grub_disk_dev_id): Add
1963 GRUB_DISK_DEVICE_FILE_ID.
1965 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1967 Fix build with Apple's toolchain. Part 2
1969 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
1972 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1974 Fix build with Apple's toolchain. Part 1
1976 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
1978 * configure.ac: remove a leftover AC_MSG_RESULT
1979 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
1982 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1986 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
1987 (decomp_block): initialize ch
1988 use grub_memcpy instead of memcpy
1990 2009-06-17 Pavel Roskin <proski@gnu.org>
1992 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
1993 version, use declarations needed to use vga_text as the startup
1996 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
1997 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
1999 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
2000 and grub_at_keyboard_fini(), it's done on module load and
2003 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
2005 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
2006 file can't be found.
2007 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2009 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2011 Fix newline handling
2013 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
2014 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
2015 (grub_script_yylex): don't segfault on unterminated script
2016 newline terminates command and variable
2018 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2020 avoid double grub_adjust_range call. Bug reported by David Simner
2022 * kern/disk.c (grub_disk_write): change to raw disk access before
2025 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
2027 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
2028 spaces, for the benefit of help2man.
2029 * util/i386/efi/grub-mkimage.c (usage): Likewise.
2031 2009-06-16 Pavel Roskin <proski@gnu.org>
2033 * kern/i386/halt.c: Include grub/machine/init.h.
2034 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
2036 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
2038 * util/grub.d/30_os-prober.in: Use ${root} in the generated
2041 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
2043 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
2046 2009-06-16 Pavel Roskin <proski@gnu.org>
2048 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
2049 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
2050 save %dx, we only need %dl and we never change it.
2051 * boot/i386/pc/cdboot.S: Don't set the root drive.
2052 * boot/i386/pc/pxeboot.S: Likewise.
2053 * include/grub/i386/pc/boot.h: Remove
2054 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
2055 GRUB_BOOT_MACHINE_DRIVE_CHECK.
2056 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
2057 * kern/i386/pc/init.c (make_install_device): Remove references
2059 * kern/i386/pc/startup.S: Likewise.
2060 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
2062 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2066 * commands/xnu_uuid.c: new file
2067 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
2068 (xnu_uuid_mod_SOURCES): new variable
2069 (xnu_uuid_mod_CFLAGS): likewise
2070 (xnu_uuid_mod_LDFLAGS): likewise
2071 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2072 * conf/i386-ieee1275.rmk: likewise
2073 * conf/i386-pc.rmk: likewise
2074 * conf/powerpc-ieee1275.rmk: likewise
2075 * conf/sparc64-ieee1275.rmk: likewise
2076 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
2078 2009-06-16 Pavel Roskin <proski@gnu.org>
2080 * configure.ac: Avoid '==' in test command, it's not portable.
2082 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2086 * commands/probe.c: new file
2087 * conf/common.rmk (pkglib_MODULES): add probe.mod
2088 (probe_mod_SOURCES): new variable
2089 (probe_mod_CFLAGS): likewise
2090 (probe_mod_LDFLAGS): likewise
2091 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2092 * conf/i386-ieee1275.rmk: likewise
2093 * conf/i386-pc.rmk: likewise
2094 * conf/powerpc-ieee1275.rmk: likewise
2095 * conf/sparc64-ieee1275.rmk: likewise
2097 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2099 Fix handling of string like \"hello\" and "a
2102 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
2103 (grub_script_yylex): fix parsing of quoting, escaping and newline
2105 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2107 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
2110 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
2112 * util/grub-mkconfig.in: Fix parsing of --output option.
2114 2009-06-12 Pavel Roskin <proski@gnu.org>
2116 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
2117 genmk.rb don't need to be generated or installed.
2119 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
2121 * commands/i386/pc/drivemap_int13h.S: add more comments
2123 2009-06-11 Pavel Roskin <proski@gnu.org>
2125 * Makefile.in (uninstall): Uninstall manuals.
2127 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
2128 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
2129 and update-grub_lib in two places.
2130 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2132 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2135 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2136 `entry_lo' to fix variable shadowing.
2138 2009-06-11 Christian Franke <franke@computer.org>
2140 * kern/misc.c (__enable_execute_stack): Add missing return type
2141 to prevent gcc warning.
2143 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2145 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2147 2009-06-11 Pavel Roskin <proski@gnu.org>
2149 * Makefile.in: Don't rely on any scripts being executable.
2150 Always use $(SHELL) to run shell scripts.
2152 * configure.ac: Always define ___main if using -nostdlib. This
2153 fixes tests on Cygwin.
2155 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2159 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2160 is in bytes and not in blocks
2162 2009-06-11 Pavel Roskin <proski@gnu.org>
2164 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2167 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2169 * util/grub.d/30_os-prober.in: Fix a comment. Source
2170 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2171 to set the root device. Place drivemap command in the generated
2174 2009-06-11 Pavel Roskin <proski@gnu.org>
2176 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2177 have long been resolved.
2179 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
2181 * util/grub.d/10_linux.in: Capitalise "Linux".
2183 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
2185 2009-06-11 Pavel Roskin <proski@gnu.org>
2187 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
2188 fix a gcc warning and ensure that the function won't ever exit.
2190 * kern/i386/ieee1275/init.c: Add missing prototype for
2193 * loader/ieee1275/multiboot2.c [__i386__]: Include
2194 grub/cpu/multiboot.h.
2196 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
2197 casts to short - they are not portable and cause warnings. Fix
2198 use of uninitialized values in input_buf. Use ARRAY_SIZE.
2200 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2204 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
2206 (grub_get_root_biosnumber_saved): new variable
2207 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
2208 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
2209 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
2210 %dx after the call if necessary
2211 * conf/common.rmk (pkglib_MODULES): remove boot.mod
2212 (boot_mod_SOURCES): remove
2213 (boot_mod_CFLAGS): remove
2214 (boot_mod_LDFLAGS): remove
2215 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
2216 (boot_mod_SOURCES): new variable
2217 (boot_mod_CFLAGS): likewise
2218 (boot_mod_LDFLAGS): likewise
2219 * conf/i386-efi.rmk: likewise
2220 * conf/i386-ieee1275.rmk: likewise
2221 * conf/i386-pc.rmk: likewise
2222 * conf/powerpc-ieee1275.rmk: likewise
2223 * conf/sparc64-ieee1275.rmk: likewise
2224 * conf/x86_64-efi.rmk: likewise
2225 * include/grub/i386/pc/biosnum.h: new file
2226 * lib/i386/pc/biosnum.c: likewise
2227 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
2228 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
2229 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
2231 2009-06-10 Pavel Roskin <proski@gnu.org>
2233 * io/gzio.c (test_header): Don't reuse one buffer for all data.
2234 Use separate variables. Read only the file size at the end, but
2235 not the checksum that we don't use.
2237 * kern/file.c (grub_file_read): Use void pointer for the buffer.
2240 * kern/ieee1275/openfw.c: Remove libc includes.
2241 * kern/ieee1275/cmain.c: Likewise.
2242 * include/grub/ieee1275/ieee1275.h: Likewise.
2244 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
2247 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2249 * Makefile.in: Remove all trailing whitespace.
2250 * conf/i386-pc.rmk: Likewise.
2251 * conf/powerpc-ieee1275.rmk: Likewise.
2252 * conf/sparc64-ieee1275.rmk: Likewise.
2253 * docs/grub.texi: Likewise.
2254 * docs/texinfo.tex: Likewise.
2255 * disk/fs_uuid.c: Likewise.
2256 * disk/lvm.c: Likewise.
2257 * disk/scsi.c: Likewise.
2258 * disk/ata.c: Likewise.
2259 * disk/ieee1275/ofdisk.c: Likewise.
2260 * disk/i386/pc/biosdisk.c: Likewise.
2261 * disk/host.c: Likewise.
2262 * disk/raid.c: Likewise.
2263 * disk/efi/efidisk.c: Likewise.
2264 * disk/usbms.c: Likewise.
2265 * disk/memdisk.c: Likewise.
2266 * disk/loopback.c: Likewise.
2267 * kern/powerpc/dl.c: Likewise.
2268 * kern/device.c: Likewise.
2269 * kern/dl.c: Likewise.
2270 * kern/sparc64/dl.c: Likewise.
2271 * kern/ieee1275/ieee1275.c: Likewise.
2272 * kern/term.c: Likewise.
2273 * kern/fs.c: Likewise.
2274 * kern/i386/dl.c: Likewise.
2275 * kern/i386/pc/startup.S: Likewise.
2276 * kern/i386/pc/init.c: Likewise.
2277 * kern/i386/pc/mmap.c: Likewise.
2278 * kern/i386/pc/lzo1x.S: Likewise.
2279 * kern/i386/ieee1275/init.c: Likewise.
2280 * kern/i386/realmode.S: Likewise.
2281 * kern/i386/tsc.c: Likewise.
2282 * kern/partition.c: Likewise.
2283 * kern/corecmd.c: Likewise.
2284 * kern/file.c: Likewise.
2285 * kern/efi/efi.c: Likewise.
2286 * kern/efi/init.c: Likewise.
2287 * kern/efi/mm.c: Likewise.
2288 * kern/main.c: Likewise.
2289 * kern/err.c: Likewise.
2290 * kern/env.c: Likewise.
2291 * kern/disk.c: Likewise.
2292 * kern/generic/millisleep.c: Likewise.
2293 * kern/generic/rtc_get_time_ms.c: Likewise.
2294 * kern/misc.c: Likewise.
2295 * kern/parser.c: Likewise.
2296 * genmk.rb: Likewise.
2297 * configure.ac: Likewise.
2298 * boot/i386/pc/diskboot.S: Likewise.
2299 * boot/i386/pc/pxeboot.S: Likewise.
2300 * boot/i386/pc/boot.S: Likewise.
2301 * boot/i386/pc/lnxboot.S: Likewise.
2302 * boot/i386/pc/cdboot.S: Likewise.
2303 * parttool/pcpart.c: Likewise.
2304 * video/readers/tga.c: Likewise.
2305 * video/video.c: Likewise.
2306 * video/bitmap.c: Likewise.
2307 * lib/envblk.c: Likewise.
2308 * lib/i386/setjmp.S: Likewise.
2309 * fs/xfs.c: Likewise.
2310 * fs/afs.c: Likewise.
2311 * fs/fat.c: Likewise.
2312 * fs/ntfs.c: Likewise.
2313 * fs/udf.c: Likewise.
2314 * fs/affs.c: Likewise.
2315 * fs/iso9660.c: Likewise.
2316 * fs/hfs.c: Likewise.
2317 * fs/fshelp.c: Likewise.
2318 * fs/ext2.c: Likewise.
2319 * fs/jfs.c: Likewise.
2320 * fs/reiserfs.c: Likewise.
2321 * fs/hfsplus.c: Likewise.
2322 * fs/minix.c: Likewise.
2323 * fs/cpio.c: Likewise.
2324 * fs/sfs.c: Likewise.
2325 * fs/ufs.c: Likewise.
2326 * efiemu/prepare.c: Likewise.
2327 * efiemu/loadcore_common.c: Likewise.
2328 * efiemu/runtime/efiemu.sh: Likewise.
2329 * efiemu/runtime/efiemu.S: Likewise.
2330 * efiemu/runtime/efiemu.c: Likewise.
2331 * efiemu/pnvram.c: Likewise.
2332 * efiemu/main.c: Likewise.
2333 * efiemu/i386/pc/cfgtables.c: Likewise.
2334 * efiemu/i386/loadcore64.c: Likewise.
2335 * efiemu/i386/loadcore32.c: Likewise.
2336 * efiemu/loadcore.c: Likewise.
2337 * efiemu/symbols.c: Likewise.
2338 * efiemu/mm.c: Likewise.
2339 * include/grub/autoefi.h: Likewise.
2340 * include/grub/datetime.h: Likewise.
2341 * include/grub/term.h: Likewise.
2342 * include/grub/hfs.h: Likewise.
2343 * include/grub/lvm.h: Likewise.
2344 * include/grub/i386/tsc.h: Likewise.
2345 * include/grub/i386/linux.h: Likewise.
2346 * include/grub/i386/xnu.h: Likewise.
2347 * include/grub/i386/efiemu.h: Likewise.
2348 * include/grub/i386/pc/biosdisk.h: Likewise.
2349 * include/grub/i386/pc/memory.h: Likewise.
2350 * include/grub/i386/pc/vbe.h: Likewise.
2351 * include/grub/parttool.h: Likewise.
2352 * include/grub/video.h: Likewise.
2353 * include/grub/memory.h: Likewise.
2354 * include/grub/fs.h: Likewise.
2355 * include/grub/partition.h: Likewise.
2356 * include/grub/xnu.h: Likewise.
2357 * include/grub/efi/api.h: Likewise.
2358 * include/grub/efi/pe32.h: Likewise.
2359 * include/grub/efi/memory.h: Likewise.
2360 * include/grub/multiboot.h: Likewise.
2361 * include/grub/usbdesc.h: Likewise.
2362 * include/grub/multiboot2.h: Likewise.
2363 * include/grub/acpi.h: Likewise.
2364 * include/grub/efiemu/efiemu.h: Likewise.
2365 * include/grub/disk.h: Likewise.
2366 * include/grub/ieee1275/ieee1275.h: Likewise.
2367 * include/grub/net.h: Likewise.
2368 * include/grub/machoload.h: Likewise.
2369 * include/grub/macho.h: Likewise.
2370 * include/multiboot.h: Likewise.
2371 * genmoddep.awk: Likewise.
2372 * normal/main.c: Likewise.
2373 * normal/menu_entry.c: Likewise.
2374 * normal/menu_viewer.c: Likewise.
2375 * normal/completion.c: Likewise.
2376 * normal/cmdline.c: Likewise.
2377 * normal/misc.c: Likewise.
2378 * normal/datetime.c: Likewise.
2379 * bus/usb/usbtrans.c: Likewise.
2380 * bus/usb/ohci.c: Likewise.
2381 * bus/usb/uhci.c: Likewise.
2382 * bus/usb/usb.c: Likewise.
2383 * mmap/efi/mmap.c: Likewise.
2384 * mmap/i386/pc/mmap_helper.S: Likewise.
2385 * mmap/i386/pc/mmap.c: Likewise.
2386 * mmap/i386/mmap.c: Likewise.
2387 * mmap/i386/uppermem.c: Likewise.
2388 * mmap/mmap.c: Likewise.
2389 * commands/acpi.c: Likewise.
2390 * commands/echo.c: Likewise.
2391 * commands/blocklist.c: Likewise.
2392 * commands/loadenv.c: Likewise.
2393 * commands/usbtest.c: Likewise.
2394 * commands/boot.c: Likewise.
2395 * commands/parttool.c: Likewise.
2396 * commands/search.c: Likewise.
2397 * commands/cat.c: Likewise.
2398 * commands/i386/pc/play.c: Likewise.
2399 * commands/i386/pc/drivemap.c: Likewise.
2400 * commands/i386/pc/vbeinfo.c: Likewise.
2401 * commands/i386/pc/acpi.c: Likewise.
2402 * commands/i386/pc/vbetest.c: Likewise.
2403 * commands/ls.c: Likewise.
2404 * commands/cmp.c: Likewise.
2405 * commands/test.c: Likewise.
2406 * commands/efi/acpi.c: Likewise.
2407 * commands/gptsync.c: Likewise.
2408 * commands/help.c: Likewise.
2409 * partmap/amiga.c: Likewise.
2410 * partmap/apple.c: Likewise.
2411 * partmap/acorn.c: Likewise.
2412 * partmap/pc.c: Likewise.
2413 * partmap/sun.c: Likewise.
2414 * partmap/gpt.c: Likewise.
2415 * script/sh/lexer.c: Likewise.
2416 * script/sh/function.c: Likewise.
2417 * font/font.c: Likewise.
2418 * font/font_cmd.c: Likewise.
2419 * loader/powerpc/ieee1275/linux.c: Likewise.
2420 * loader/efi/chainloader.c: Likewise.
2421 * loader/multiboot_loader.c: Likewise.
2422 * loader/macho.c: Likewise.
2423 * loader/i386/multiboot.c: Likewise.
2424 * loader/i386/linux.c: Likewise.
2425 * loader/i386/pc/linux.c: Likewise.
2426 * loader/i386/pc/multiboot2.c: Likewise.
2427 * loader/i386/pc/chainloader.c: Likewise.
2428 * loader/i386/pc/xnu.c: Likewise.
2429 * loader/i386/bsd_trampoline.S: Likewise.
2430 * loader/i386/efi/linux.c: Likewise.
2431 * loader/i386/multiboot_elfxx.c: Likewise.
2432 * loader/i386/bsd_helper.S: Likewise.
2433 * loader/i386/bsd.c: Likewise.
2434 * loader/i386/linux_trampoline.S: Likewise.
2435 * loader/i386/xnu_helper.S: Likewise.
2436 * loader/i386/xnu.c: Likewise.
2437 * loader/i386/bsd_pagetable.c: Likewise.
2438 * loader/i386/multiboot_helper.S: Likewise.
2439 * loader/xnu.c: Likewise.
2440 * loader/xnu_resume.c: Likewise.
2441 * io/gzio.c: Likewise.
2442 * term/efi/console.c: Likewise.
2443 * term/terminfo.c: Likewise.
2444 * term/ieee1275/ofconsole.c: Likewise.
2445 * term/i386/pc/serial.c: Likewise.
2446 * term/i386/pc/vesafb.c: Likewise.
2447 * term/i386/pc/vga.c: Likewise.
2448 * term/usb_keyboard.c: Likewise.
2449 * term/gfxterm.c: Likewise.
2450 * aclocal.m4: Likewise.
2451 * util/lvm.c: Likewise.
2452 * util/grub.d/30_os-prober.in: Likewise.
2453 * util/grub.d/10_hurd.in: Likewise.
2454 * util/console.c: Likewise.
2455 * util/grub-macho2img.c: Likewise.
2456 * util/grub-probe.c: Likewise.
2457 * util/hostfs.c: Likewise.
2458 * util/i386/pc/grub-mkimage.c: Likewise.
2459 * util/i386/pc/grub-setup.c: Likewise.
2460 * util/i386/efi/grub-mkimage.c: Likewise.
2461 * util/grub-mkconfig.in: Likewise.
2462 * util/raid.c: Likewise.
2463 * util/resolve.c: Likewise.
2464 * util/grub-mkdevicemap.c: Likewise.
2465 * util/grub-emu.c: Likewise.
2466 * util/getroot.c: Likewise.
2467 * util/hostdisk.c: Likewise.
2468 * util/usb.c: Likewise.
2469 * util/grub-editenv.c: Likewise.
2470 * util/misc.c: Likewise.
2472 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2474 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
2475 `genparttoollist.sh'.
2476 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
2477 Add `*.sh' to the list find searches for and change `mdate.sh'
2480 2009-06-10 Pavel Roskin <proski@gnu.org>
2482 * include/grub/multiboot2.h: Provide compatibility defines for
2484 * include/multiboot2.h: Include stdint.h only if needed, using
2486 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
2488 * loader/ieee1275/multiboot2.c: Likewise.
2489 * loader/multiboot2.c: Likewise.
2490 * loader/multiboot_loader.c: Likewise.
2492 * configure.ac: Use -nostdlib when probing for the target. It
2493 should not be required to have libc for the target.
2495 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
2496 they fail without libc headers for the target.
2497 * include/grub/powerpc/libgcc.h: Use weak attribute for all
2499 * include/grub/sparc64/libgcc.h: Likewise. Don't use
2500 preprocessor conditionals.
2502 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
2503 build system doesn't need to be aware of the tar.c internals.
2505 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
2507 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
2509 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
2511 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
2512 disk limit to 26 for IDE, Virtio, Xen and SCSI.
2514 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
2516 * util/i386/pc/grub-install.in: Change the error message if UUIDs
2517 aren't available if ata.mod gets used.
2519 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
2521 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
2522 initialising controller.
2523 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2525 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2527 * util/i386/pc/grub-install.in: Add a parameter --disk-module
2528 to choose between ata and biosdisk module on i386-pc.
2530 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
2532 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
2533 Subclass and Programming Interface fields in terms of the 3 byte
2534 Class Code register.
2535 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2537 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
2538 interface is OHCI. Add grub_dprintf for symmetry with
2540 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
2541 interface is UHCI. Add interf variable for programming
2542 interface. Print interface with class/subclass.
2544 * bus/usb/ohci.c: Set interf with correct field.
2546 * bus/usb/uhci.c: Remove unneeded doubled lines.
2547 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
2548 Remove whitespace inside comment.
2550 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
2552 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
2553 as fallback an equivalent option without depth.
2555 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2557 Not fail if unable to retrieve C/H/S on LBA disks
2559 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
2560 if unable to retrieve C/H/S on LBA disks
2562 2009-06-08 Pavel Roskin <proski@gnu.org>
2564 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
2567 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2569 * Makefile.in (uninstall): Remove all $lib_DATA files.
2571 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2573 Bugfix: install on partitionless device
2575 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
2578 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2580 * Makefile.in (uninstall): Remove all $include_DATA files.
2582 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2584 * commands/true.c: New file. Implement the true and false commands.
2585 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
2586 (true_mod_SOURCES): New variable.
2587 (true_mod_CFLAGS): Likewise.
2588 (true_mod_LDFLAGS): Likewise.
2590 2009-06-05 Colin D Bennett <colin@gibibit.com>
2592 Optimized font character lookup using binary search instead of linear
2593 search. Fonts now are required to have the character index ordered by
2596 * font/font.c (load_font_index): Verify that fonts have ordered
2598 (find_glyph): Use binary search instead of linear search to find a
2599 character in a font.
2601 2009-06-05 Michael Scherer <misc@mandriva.org>
2603 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
2604 uses case sensitive btree.
2605 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
2606 only for case insensitive filesystems.
2608 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2610 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
2611 * conf/common.rmk (search_mod_CFLAGS): likewise
2613 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2615 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
2616 compensate a compiler bug
2618 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2620 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
2623 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2625 Definitions for creating asm symbols with Apple's CC
2627 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
2628 [APPLE_CC] (VARIABLE): likewise
2630 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2632 Disable lnxboot.img when compiled
2635 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
2636 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
2637 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
2638 [! APPLE_CC] (CODE_LENG): skip
2639 [! APPLE_CC] (setup_sects): likewise
2640 [! APPLE_CC]: skip filling
2642 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2644 Address in trampolines based on 32-bit registers when compiled
2647 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
2649 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
2651 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2653 Avoid aliases when compiling with Apple's CC for PCBIOS machine
2655 * kern/misc.c [APPLE_CC] (memcpy): new function
2656 [APPLE_CC] (memmove): likewise
2657 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
2658 (memcpy): define alias conditionally on !APPLE_CC
2661 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
2662 APPLE_CC are defined
2663 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
2664 (grub_assert_fail): make prototype conditional
2666 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2668 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
2670 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
2672 (CLEANFILES): add grub-macho2img
2673 (grub_macho2img_SOURCES): new variable
2674 * kern/i386/pc/startup.S (bss_start): new variable
2676 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
2677 * util/grub-macho2img.c: new file
2679 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2681 Use objconv when compiling with Apple's CC
2683 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
2684 (efiemu64.o): likewise
2685 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
2686 when compiling with Apple's CC
2687 (efiemu64_s.o): likewise
2688 * configure.ac: check for objconv when compiling with Apple's CC
2689 * genmk.rb: use objconv for modules when compiled with Apple's CC
2691 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2693 Define segment as well as section when compiling with
2696 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
2697 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
2698 (efiemu_convert_pointer): likewise
2699 (efiemu_set_virtual_address_map): likewise
2700 (efiemu_convert_pointer): likewise
2701 (efiemu_getcrc32): likewise
2702 (init_crc32_table): likewise
2704 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
2705 (GRUB_MOD_DEP): likewise
2707 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2709 Allow a compilation without -mcmodel=large
2711 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
2712 when compiled without -mcmodel=large
2713 (filter_memory_map): remove memory post 4 GiB when compiled
2714 without -mcmodel=large
2715 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
2716 TARGET_CFLAGS when -mcmodel=large isn't supported
2718 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2720 Remove nested functions in efiemu core
2722 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
2724 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2726 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
2728 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
2730 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
2732 (grub_cpu_is_tsc_supported): likewise
2733 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
2735 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2737 Absolute addressing through constant with Apple's cc
2739 * kern/i386/pc/startup.S: Define necessary constants
2740 and address through it when using ABS with Apple's CC
2741 * boot/i386/pc/diskboot.S: likewise
2742 * boot/i386/pc/boot.S: likewise
2743 * boot/i386/pc/lnxboot.S: likewise
2744 * boot/i386/pc/cdboot.S: likewise
2745 * mmap/i386/pc/mmap_helper.S: likewise
2746 * commands/i386/pc/drivemap_int13h.S: likewise
2748 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2750 Check if compiler is apple cc
2752 * Makefile.in (ASFLAGS): new variable
2753 (TARGET_ASFLAGS): likewise
2754 (TARGET_MODULE_FORMAT): likewise
2755 (TARGET_APPLE_CC): likewise
2757 (TARGET_IMG_CFLAGS): likewise
2758 (TARGET_CPPFLAGS): add includedir
2759 * configure.ac: call grub_apple_cc and grub_apple_target_cc
2760 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
2761 Check for linker script only if compiler isn't Apple's CC
2762 (TARGET_MODULE_FORMAT): set
2763 (TARGET_APPLE_CC): likewise
2764 (TARGET_ASFLAGS): likewise
2766 Check for objcopy only if compiler isn't Apple's CC
2767 Check for BSS symbol only if compiler isn't Apple's CC
2768 * genmk.rb: adapt nm options if we use Apple's utils
2769 * aclocal.m4 (grub_apple_cc): new test
2770 (grub_apple_target_cc): likewise
2772 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2774 Simplify sed expressions and improve awk
2776 * Makefile.in (install-local): simplify sed expression
2777 * gencmdlist.sh: likewise
2778 * genmoddep.awk: avoid adding module as a dependency of itself
2780 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2782 Add missing start symbols
2784 * boot/i386/pc/boot.S: add start
2785 * boot/i386/pc/pxeboot.S: likewise
2787 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2789 Fix wrong assumptions with grub-mkimage on EFI
2791 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
2792 (relocate_addresses): consider both r_addend and value at offset
2793 (make_mods_section): zerofill modinfo and header
2794 (convert_elf): write prefix here
2796 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2798 Use .asciz instead of .string
2800 * i386/pc/diskboot.S: use .asciz instead of .string
2801 * i386/pc/boot.S: likewise
2802 * include/grub/dl.h (GRUB_MOD_DEP): likewise
2803 (GRUB_MOD_NAME): likewise
2805 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2809 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
2810 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
2811 (grub_video_setup): remove
2812 (grub_video_set_mode): new prototype
2813 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
2815 (linux_vesafb_res): compile only on PCBIOS
2816 (grub_linux_boot): support gfxpayload
2817 * loader/i386/pc/xnu.c (video_hook): new function
2818 (grub_xnu_set_video): support gfxpayload
2819 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
2820 (DEFAULT_VIDEO_HEIGHT): likewise
2821 (DEFAULT_VIDEO_FLAGS): likewise
2822 (DEFAULT_VIDEO_MODE): new definition
2823 (video_hook): new function
2824 (grub_gfxterm_init): use grub_video_set_mode
2825 * util/grub.d/30_os-prober.in: remove explicit modesetting before
2827 * video/video.c (grub_video_setup): removed
2828 (grub_video_set_mode): new function based on grub_gfxterm_init and
2831 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2833 Avoid calling biosdisk in drivemap
2835 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
2836 (revparse_biosdisk): likewise
2837 (list_mappings): derive name from id directly
2838 (grub_cmd_drivemap): use tryparse_diskstring
2840 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2844 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
2845 (grub_lexer_param): add tokenonhold
2846 (grub_script_create_cmdline): remove cmdline. All callers updated
2847 (grub_script_function_create): make functionname
2848 grub_script_arg. All callers updated
2849 (grub_script_execute_argument_to_string): new prototype
2850 * kern/parser.c (state_transitions): reorder
2851 (grub_parser_cmdline_state): fix a bug and make more compact
2852 * script/sh/execute.c (grub_script_execute_argument_to_string):
2854 (grub_script_execute_cmdline): use new format
2855 * script/sh/function.c (grub_script_function_create): make functionname
2856 grub_script_arg. All callers updated
2857 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
2858 (grub_script_yylex): remove
2859 (grub_script_yylex2): renamed to ...
2860 (grub_script_yylex): ...renamed
2861 parse the expressions like a${b}c
2862 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
2863 (GRUB_PARSER_TOKEN_VAR): remove
2864 (GRUB_PARSER_TOKEN_NAME): likewise
2865 ("if"): declare as typeless
2867 ("function"): likewise
2872 (argument): likewise
2873 (script): accept empty scripts and make exit on error
2874 (arguments): use GRUB_PARSER_TOKEN_ARG
2875 (function): likewise
2876 (command): move error handling to script
2877 (menuentry): move grub_script_lexer_ref before
2878 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
2879 argument. All callers updated
2881 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
2883 Prevent GRUB from probing floppies during boot.
2885 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
2886 * commands/search.c (options): Add --no-floppy.
2887 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
2888 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
2889 --no-floppy when searching for UUIDs.
2891 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
2893 Simplify the code duplication in commands/search.c.
2895 * commands/search.c (search_label, search_fs_uuid): Merge into ...
2896 (search_fs): ... this. Update all users.
2898 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
2900 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
2902 2009-05-28 Pavel Roskin <proski@gnu.org>
2904 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
2905 Remove the original symlink explicitly.
2907 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
2908 just one slash. That's how grub_fshelp_find_file() does it.
2910 2009-05-26 Pavel Roskin <proski@gnu.org>
2912 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
2915 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
2918 2009-05-25 Christian Franke <franke@computer.org>
2920 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
2922 (grub_atapi_identify): Add wait after drive select.
2923 (grub_ata_identify): Do more strict status register check before
2924 calling grub_atapi_identify (). Suppress error message if status
2925 register is 0x00 after command failure. Add status register
2926 check after PIO read to avoid bogus identify due to stuck DRQ.
2927 Thanks to Pavel Roskin for testing.
2928 (grub_device_initialize): Remove unsafe status register check.
2929 Thanks to 'phcoder' for problem report and patch.
2930 Prevent sign extension in debug message.
2932 2009-05-23 Colin D Bennett <colin@gibibit.com>
2934 Cleaned up `include/grub/normal.h'. Grouped prototypes by
2935 definition file, and functions defined in `normal/menu.c' have had
2936 their prototypes moved to `include/grub/menu.h' for consistency.
2938 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
2940 (grub_menu_get_entry): Likewise.
2941 (grub_menu_get_timeout): Likewise.
2942 (grub_menu_set_timeout): Likewise.
2943 (grub_menu_execute_entry): Likewise.
2944 (grub_menu_execute_with_fallback): Likewise.
2945 (grub_menu_entry_run): Likewise.
2947 * include/grub/normal.h: Re-ordered and grouped function
2948 prototypes by file that the function is defined in.
2949 (grub_menu_execute_callback): Removed; moved to menu.h.
2950 (grub_menu_get_entry): Likewise.
2951 (grub_menu_get_timeout): Likewise.
2952 (grub_menu_set_timeout): Likewise.
2953 (grub_menu_execute_entry): Likewise.
2954 (grub_menu_execute_with_fallback): Likewise.
2955 (grub_menu_entry_run): Likewise.
2956 (grub_menu_addentry): Renamed from this ...
2957 (grub_normal_add_menu_entry): ... to this.
2959 * normal/main.c (grub_menu_addentry): Renamed from this ...
2960 (grub_normal_add_menu_entry): ... to this.
2962 * script/sh/execute.c (grub_script_execute_menuentry): Update
2963 reference to renamed grub_menu_addentry function.
2965 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
2967 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
2969 2009-05-22 Pavel Roskin <proski@gnu.org>
2971 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
2972 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
2973 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
2974 compiling for the i386 targets, but not for the utilities.
2976 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
2978 (grub_root_drive): Likewise.
2979 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
2981 (grub_root_drive): Change size to byte.
2982 (grub_start_addr): Remove.
2983 (grub_end_addr): Likewise.
2984 (grub_apm_bios_info): Likewise.
2986 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
2988 * normal/i386: Remove.
2989 * normal/powerpc: Likewise.
2990 * normal/sparc64: Likewise.
2991 * normal/x86_64: Likewise.
2993 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
2995 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
2996 * loader/i386/linux_trampoline.S: Fix indentation
2997 * loader/i386/xnu_helper.S: Likewise
2999 2009-05-18 Colin D Bennett <colin@gibibit.com>
3001 Display error messages when parsing a Lua statement fails.
3002 Previously, executing a syntactically invalid statement like
3003 ")foo" or "bar;" would silently fail.
3005 * script/lua/grub_main.c (handle_lua_error): New function.
3006 (grub_lua_parse_line): Improved reporting of Lua parser and
3009 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3011 Remove -Werror which causes build to fail on some systems
3013 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
3014 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
3015 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
3017 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3019 trampoline for linux on 64-bit platform
3021 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
3022 loader/i386/efi/linux_trampoline.S
3023 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
3025 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
3027 * loader/i386/linux_trampoline.S: moved here
3028 * loader/i386/efi/linux.c (allocate_pages): reserve space for
3030 (jumpvector): removed
3031 (grub_linux_trampoline_start): new declaration
3032 (grub_linux_trampoline_end): likewise
3033 (grub_linux_boot): use trampoline when on 64-bit platform
3034 * loader/i386/linux.c: likewise
3036 2009-05-16 Pavel Roskin <proski@gnu.org>
3038 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
3039 const to avoid a warning.
3040 (grub_lua_setenv): Likewise.
3041 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
3042 lmsg to fix a warning.
3044 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3046 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
3047 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3048 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
3049 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3050 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3051 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3052 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3053 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3055 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3057 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
3059 2009-05-16 Bean <bean123ch@gmail.com>
3061 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
3062 (lua_mod_SOURCES): New variable.
3063 (lua_mod_CFLAGS): Likewise.
3064 (lua_mod_LDFLAGS): Likewise.
3066 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
3067 (setjmp_mod_SOURCES): New variable.
3068 (setjmp_mod_CFLAGS): Likewise.
3069 (setjmp_LDFLAGS): Likewise.
3071 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
3072 (setjmp_mod_SOURCES): New variable.
3073 (setjmp_mod_CFLAGS): Likewise.
3074 (setjmp_LDFLAGS): Likewise.
3076 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3077 (setjmp_mod_SOURCES): New variable.
3078 (setjmp_mod_CFLAGS): Likewise.
3079 (setjmp_LDFLAGS): Likewise.
3081 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3082 (setjmp_mod_SOURCES): New variable.
3083 (setjmp_mod_CFLAGS): Likewise.
3084 (setjmp_LDFLAGS): Likewise.
3086 * normal/i386/setjmp.S: Moved from here ...
3087 * lib/i386/setjmp.S: ... Moved here
3088 * normal/x86_64/setjmp.S: Moved from here ...
3089 * lib/x86_64/setjmp.S: ... Moved here
3090 * normal/powerpc/setjmp.S: Moved from here ...
3091 * lib/powerpc/setjmp.S: ... Moved here
3092 * normal/sparc64/setjmp.S: Moved from here ...
3093 * lib/sparc64/setjmp.S: ... Moved here
3095 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
3096 returns_twice in mingw.
3098 * script/lua/grub_lib.c: New file.
3099 * script/lua/grub_lib.h: Likewise.
3100 * script/lua/grub_lua.h: Likewise.
3101 * script/lua/grub_main.c: Likewise.
3102 * script/lua/lapi.c: Likewise.
3103 * script/lua/lapi.h: Likewise.
3104 * script/lua/lauxlib.c: Likewise.
3105 * script/lua/lauxlib.h: Likewise.
3106 * script/lua/lbaselib.c: Likewise.
3107 * script/lua/lcode.c: Likewise.
3108 * script/lua/lcode.h: Likewise.
3109 * script/lua/ldblib.c: Likewise.
3110 * script/lua/ldebug.c: Likewise.
3111 * script/lua/ldebug.h: Likewise.
3112 * script/lua/ldo.c: Likewise.
3113 * script/lua/ldo.h: Likewise.
3114 * script/lua/ldump.c: Likewise.
3115 * script/lua/lfunc.c: Likewise.
3116 * script/lua/lfunc.h: Likewise.
3117 * script/lua/lgc.c: Likewise.
3118 * script/lua/lgc.h: Likewise.
3119 * script/lua/linit.c: Likewise.
3120 * script/lua/liolib.c: Likewise.
3121 * script/lua/llex.c: Likewise.
3122 * script/lua/llex.h: Likewise.
3123 * script/lua/llimits.h: Likewise.
3124 * script/lua/lmathlib.c: Likewise.
3125 * script/lua/lmem.c: Likewise.
3126 * script/lua/lmem.h: Likewise.
3127 * script/lua/loadlib.c: Likewise.
3128 * script/lua/lobject.c: Likewise.
3129 * script/lua/lobject.h: Likewise.
3130 * script/lua/lopcodes.c: Likewise.
3131 * script/lua/lopcodes.h: Likewise.
3132 * script/lua/loslib.c: Likewise.
3133 * script/lua/lparser.c: Likewise.
3134 * script/lua/lparser.h: Likewise.
3135 * script/lua/lstate.c: Likewise.
3136 * script/lua/lstate.h: Likewise.
3137 * script/lua/lstring.c: Likewise.
3138 * script/lua/lstring.h: Likewise.
3139 * script/lua/lstrlib.c: Likewise.
3140 * script/lua/ltable.c: Likewise.
3141 * script/lua/ltable.h: Likewise.
3142 * script/lua/ltablib.c: Likewise.
3143 * script/lua/ltm.c: Likewise.
3144 * script/lua/ltm.h: Likewise.
3145 * script/lua/lua.h: Likewise.
3146 * script/lua/luaconf.h: Likewise.
3147 * script/lua/lualib.h: Likewise.
3148 * script/lua/lundump.c: Likewise.
3149 * script/lua/lundump.h: Likewise.
3150 * script/lua/lvm.c: Likewise.
3151 * script/lua/lvm.h: Likewise.
3152 * script/lua/lzio.c: Likewise.
3153 * script/lua/lzio.h: Likewise.
3155 2009-05-16 Bean <bean123ch@gmail.com>
3157 * include/grub/kernel.h (grub_module_header_types): Add type
3160 * kern/main.c (grub_load_config): New function.
3161 (grub_main): Call grub_load_config to read boot config.
3163 * grub-mkimage (generate_image): New parameter config_path.
3164 (options): New option --config.
3165 (main): Parse --config option, and pass it to generate_image.
3167 2009-05-14 Christian Franke <franke@computer.org>
3169 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3170 This fixes build on Cygwin.
3172 2009-05-14 Pavel Roskin <proski@gnu.org>
3174 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3175 jump. This saves two bytes, so the typical case of 2 swapped
3176 drives would fit 32 bytes.
3178 2009-05-13 Pavel Roskin <proski@gnu.org>
3180 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
3181 grub_uint32_t to avoid a warning.
3183 * loader/i386/linux.c (allocate_pages): When assigning
3184 real_mode_mem, cast through grub_size_t to fix a warning. The
3185 code already makes sure that the value would fit a pointer.
3186 (grub_linux_setup_video): Cast render_target->data to
3187 grub_size_t to fix a warning.
3189 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
3191 * commands/i386/pc/drivemap.c: New file - implement drivemap
3193 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
3194 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
3196 2009-05-13 Pavel Roskin <proski@gnu.org>
3198 * util/i386/pc/grub-setup.c (setup): Remove unused variable
3199 embedding_area_exists.
3201 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
3203 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
3204 it easier to understand / work with.
3205 Improve warning messages for cases where there's no embedding area,
3206 or when it is too small (or core.img too large).
3208 2009-05-13 Pavel Roskin <proski@gnu.org>
3210 * loader/i386/pc/multiboot2.c: Add necessary includes for
3211 grub_multiboot2_real_boot().
3213 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
3214 PX record is always little-endian. We only need the lower 2
3217 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
3218 facilitate code reuse.
3219 (grub_cpio_mount): Use "struct head", not a char buffer. This
3220 fixes a warning reported by gcc 4.4.
3222 * kernel/disk.c (grub_disk_read): Use void pointer for the
3224 (grub_disk_write): Use const void pointer for the buffer.
3225 Adjust all callers. Remove unnecessary casts.
3227 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
3229 * util/i386/pc/grub-install.in: Update copyright year.
3231 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3235 * commands/gptsync.c: new file
3236 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
3237 (gptsync_mod_SOURCES): new variable
3238 (gptsync_mod_CFLAGS): likewise
3239 (gptsync_mod_LDFLAGS): likewise
3240 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
3242 (GRUB_PC_PARTITION_TYPE_HFS): likewise
3243 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
3244 * conf/i386-ieee1275.rmk: likewise
3245 * conf/i386-pc.rmk: likewise
3246 * conf/powerpc-ieee1275.rmk: likewise
3248 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3252 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
3253 (grub_dl_ref): likewise
3255 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
3257 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
3258 split in two functions (one for msdos and one for gpt).
3260 2009-05-08 Pavel Roskin <proski@gnu.org>
3262 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
3265 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
3266 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
3267 Initialize them with -1. Add sanity check for bad1. Eliminate
3270 2009-05-08 David S. Miller <davem@davemloft.net>
3272 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
3274 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
3276 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
3279 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
3281 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
3282 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
3284 2009-05-05 David S. Miller <davem@davemloft.net>
3286 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
3288 2009-05-05 Pavel Roskin <proski@gnu.org>
3290 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
3291 of grub_dl_ref() and grub_dl_unref().
3292 * commands/parttool.c: Remove preprocessor conditionals around
3293 grub_dl_ref() and grub_dl_unref().
3294 * fs/affs.c: Likewise.
3295 * fs/afs.c: Likewise.
3296 * fs/cpio.c: Likewise.
3297 * fs/ext2.c: Likewise.
3298 * fs/fat.c: Likewise.
3299 * fs/hfs.c: Likewise.
3300 * fs/hfsplus.c: Likewise.
3301 * fs/iso9660.c: Likewise.
3302 * fs/jfs.c: Likewise.
3303 * fs/minix.c: Likewise.
3304 * fs/ntfs.c: Likewise.
3305 * fs/reiserfs.c: Likewise.
3306 * fs/sfs.c: Likewise.
3307 * fs/udf.c: Likewise.
3308 * fs/ufs.c: Likewise.
3309 * fs/xfs.c: Likewise.
3310 * include/grub/dl.h: Likewise.
3311 * loader/xnu.c: Likewise.
3313 2009-05-04 Pavel Roskin <proski@gnu.org>
3315 * commands/acpi.c: Remove unused variable my_mod.
3316 * partmap/amiga.c: Likewise.
3317 * partmap/apple.c: Likewise.
3318 * partmap/gpt.c: Likewise.
3319 * partmap/pc.c: Likewise.
3320 * partmap/sun.c: Likewise.
3321 * term/gfxterm.c: Likewise.
3322 * term/i386/pc/vesafb.c: Likewise.
3323 * term/i386/pc/vga.c: Likewise.
3325 2009-05-04 David S. Miller <davem@davemloft.net>
3327 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
3328 pointer args to grub_ieee1275_get_property().
3330 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
3332 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
3333 devices, and do not traverse down under controller nodes.
3335 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
3336 (grub_ofdisk_open): Use it to un-escape "," characters.
3337 * kern/disk.c (find_part_sep): New.
3338 (grub_disk_open): Use it to find the first non-escaped ','
3339 character in the disk name.
3340 * util/ieee1275/devicemap.c (escape_of_path): New.
3341 (grub_util_emit_devicemap_entry): Use it.
3342 * util/sparc64/ieee1275/grub-install.in: Update script to
3343 strip partition specifiers properly by not triggering on
3344 '\' escaped ',' characters.
3346 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3348 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
3350 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
3352 (linux_vesafb_modes): Add a lot of additional modes to the list (based
3353 on documentation from Wikipedia).
3355 2009-05-04 Pavel Roskin <proski@gnu.org>
3357 * disk/ata.c: Spelling fixes.
3358 * disk/raid.c: Likewise.
3359 * disk/usbms.c: Likewise.
3360 * disk/dmraid_nvidia.c: Likewise.
3361 * kern/ieee1275/openfw.c: Likewise.
3362 * kern/ieee1275/init.c: Likewise.
3363 * kern/ieee1275/cmain.c: Likewise.
3364 * boot/i386/pc/cdboot.S: Likewise.
3365 * video/readers/png.c: Likewise.
3366 * video/i386/pc/vbe.c: Likewise.
3367 * fs/udf.c: Likewise.
3368 * fs/hfs.c: Likewise.
3369 * fs/reiserfs.c: Likewise.
3370 * efiemu/runtime/efiemu.c: Likewise.
3371 * efiemu/main.c: Likewise.
3372 * efiemu/mm.c: Likewise.
3373 * include/grub/elf.h: Likewise.
3374 * include/grub/xnu.h: Likewise.
3375 * include/grub/usbdesc.h: Likewise.
3376 * include/grub/usb.h: Likewise.
3377 * include/grub/script_sh.h: Likewise.
3378 * include/grub/lib/LzmaEnc.h: Likewise.
3379 * include/grub/efiemu/efiemu.h: Likewise.
3380 * include/grub/command.h: Likewise.
3381 * normal/menu.c: Likewise.
3382 * normal/main.c: Likewise.
3383 * normal/datetime.c: Likewise.
3384 * bus/usb/uhci.c: Likewise.
3385 * mmap/i386/uppermem.c: Likewise.
3386 * mmap/mmap.c: Likewise.
3387 * commands/acpi.c: Likewise.
3388 * commands/test.c: Likewise.
3389 * partmap/apple.c: Likewise.
3390 * font/font.c: Likewise.
3391 * loader/sparc64/ieee1275/linux.c: Likewise.
3392 * loader/macho.c: Likewise.
3393 * loader/i386/bsd_trampoline.S: Likewise.
3394 * loader/i386/bsd.c: Likewise.
3395 * loader/xnu.c: Likewise.
3396 * term/i386/pc/vesafb.c: Likewise.
3397 * term/usb_keyboard.c: Likewise.
3398 * util/resolve.c: Likewise.
3399 * util/getroot.c: Likewise.
3401 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3403 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
3405 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3407 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
3410 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3412 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
3413 parameter only available on BIOS.
3415 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3417 Removed wrong semicolon in declaration
3419 * grub/misc.h (grub_dprintf): remove semicolon
3421 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3423 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
3424 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
3425 is done by grub_cmd_linux() now).
3426 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
3427 restore video to text mode.
3428 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
3429 indicates lack of "vga=" parameter. "vga=0" is mapped to
3430 `GRUB_LINUX_VID_MODE_NORMAL'.
3432 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3434 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
3435 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
3436 and `normal/script.c'. Add `kern/rescue_reader.c',
3437 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
3438 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
3439 `grub_script.tab.c'.
3441 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3442 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3443 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3444 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3445 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3447 * Makefile.in: Remove duplicated 2008 in Copyright line.
3449 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3451 * util/misc.c (grub_util_warn): New function. Emits a warning
3453 * include/grub/util/misc.h (grub_util_warn): New declaration.
3455 * util/i386/pc/grub-install.in: Understand --force and pass it down
3458 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
3460 (setup): Improve error messages and add warnings when requested to
3461 install in odd layouts. Refuse to install using blocklists unless
3464 2009-05-04 martin f. krafft <madduck@madduck.net>
3466 * disk/raid.c (grub_raid_scan_device): Improve debug message.
3468 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3470 Updated copyright year
3472 * fs/hfsplus.c: updated copyright year
3474 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3478 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
3479 in the space previously used by unused3
3480 (grub_hfsplus_uuid): new function
3481 (grub_hfsplus_fs): added uuid field
3483 2009-05-03 Pavel Roskin <proski@gnu.org>
3485 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
3486 suppress warnings. It's no longer needed.
3487 * disk/host.c: Likewise.
3488 * disk/ata_pthru.c: Likewise.
3489 * disk/loopback.c: Likewise.
3490 * hook/datehook.c: Likewise.
3491 * parttool/pcpart.c: Likewise.
3492 * fs/i386/pc/pxe.c: Likewise.
3493 * fs/ntfscomp.c: Likewise.
3494 * efiemu/main.c: Likewise.
3495 * mmap/mmap.c: Likewise.
3496 * commands/crc.c: Likewise.
3497 * commands/hexdump.c: Likewise.
3498 * commands/hdparm.c: Likewise.
3499 * commands/acpi.c: Likewise.
3500 * commands/echo.c: Likewise.
3501 * commands/minicmd.c: Likewise.
3502 * commands/blocklist.c: Likewise.
3503 * commands/memrw.c: Likewise.
3504 * commands/loadenv.c: Likewise.
3505 * commands/usbtest.c: Likewise.
3506 * commands/lsmmap.c: Likewise.
3507 * commands/boot.c: Likewise.
3508 * commands/parttool.c: Likewise.
3509 * commands/configfile.c: Likewise.
3510 * commands/search.c: Likewise.
3511 * commands/ieee1275/suspend.c: Likewise.
3512 * commands/cat.c: Likewise.
3513 * commands/i386/pc/pxecmd.c: Likewise.
3514 * commands/i386/pc/play.c: Likewise.
3515 * commands/i386/pc/halt.c: Likewise.
3516 * commands/i386/pc/vbeinfo.c: Likewise.
3517 * commands/i386/pc/vbetest.c: Likewise.
3518 * commands/lspci.c: Likewise.
3519 * commands/date.c: Likewise.
3520 * commands/handler.c: Likewise.
3521 * commands/ls.c: Likewise.
3522 * commands/test.c: Likewise.
3523 * commands/cmp.c: Likewise.
3524 * commands/efi/loadbios.c: Likewise.
3525 * commands/efi/fixvideo.c: Likewise.
3526 * commands/halt.c: Likewise.
3527 * commands/help.c: Likewise.
3528 * commands/reboot.c: Likewise.
3529 * hello/hello.c: Likewise.
3530 * script/sh/main.c: Likewise.
3531 * loader/xnu.c: Likewise.
3532 * term/terminfo.c: Likewise.
3533 * term/i386/pc/serial.c: Likewise.
3534 * term/usb_keyboard.c: Likewise.
3536 2009-05-03 David S. Miller <davem@davemloft.net>
3538 * normal/menu.c: Include grub/parser.h
3540 2009-05-03 Pavel Roskin <proski@gnu.org>
3542 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
3544 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
3545 Suggested by Javier MartÃn <lordhabbit@gmail.com>
3547 * util/i386/pc/grub-mkrescue.in: Allow for the case when
3548 efiemu??.o doesn't exist.
3549 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
3552 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
3554 FreeBSD 64-bit support
3556 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
3557 and loader/i386/bsd_trampoline.S
3558 (bsd_mod_ASFLAGS): new variable
3559 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
3560 (FREEBSD_MODTYPE_KERNEL64): likewise
3561 (grub_bsd64_trampoline_start): likewise
3562 (grub_bsd64_trampoline_end): likewise
3563 (grub_bsd64_trampoline_selfjump): likewise
3564 (grub_bsd64_trampoline_gdt): likewise
3565 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
3566 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
3567 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
3568 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
3569 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
3571 * loader/i386/bsd_pagetable.c: new file
3572 * loader/i386/bsd_trampoline.S: likewise
3573 * loader/i386/bsd.c (ALIGN_QWORD): new macro
3574 (ALIGN_VAR): likewise
3575 (entry_hi): new variable
3576 (kern_end_mdofs): likewise
3577 (is_64bit): likewise
3578 (grub_freebsd_add_meta): use ALIGN_VAR
3579 (grub_e820_mmap): new declaration
3580 (grub_freebsd_add_mmap): new function
3581 (grub_freebsd_add_meta_module): support 64 bit kernels
3582 (grub_freebsd_list_modules): use ALIGN_VAR
3583 (gdt_descriptor): new declaration
3584 (grub_freebsd_boot): support 64 bit kernels
3585 (grub_bsd_elf64_hook): new function
3586 (grub_bsd_load_elf): support elf64
3588 2009-05-03 Bean <bean123ch@gmail.com>
3590 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
3591 after we get the result of if statement.
3593 2009-05-03 Bean <bean123ch@gmail.com>
3595 * Makefile.in (enable_efiemu): New variable.
3597 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
3599 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
3601 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
3602 path, add -mno-red-zone option.
3603 (efiemu64_s.o): Likewise.
3604 (efiemu64.o): Use macro $^ for source file.
3606 * configure.ac (--enable-efiemu): New option.
3608 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3612 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
3613 (pkglib_MODULES): add xnu.mod
3614 (xnu_mod_SOURCES): new variable
3615 (xnu_mod_CFLAGS): likewise
3616 (xnu_mod_LDFLAGS): likewise
3617 (xnu_mod_ASFLAGS): likewise
3618 * conf/i386-pc.rmk: likewise
3619 * conf/x86_64-efi.rmk: likewise
3620 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
3622 * include/grub/i386/macho.h: new file
3623 * include/grub/i386/xnu.h: likewise
3624 * include/grub/macho.h: likewise
3625 * include/grub/machoload.h: likewise
3626 * include/grub/x86_64/macho.h: likewise
3627 * include/grub/x86_64/xnu.h: likewise
3628 * include/grub/xnu.h: likewise
3629 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
3630 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
3631 * loader/i386/efi/xnu.c: new file
3632 * loader/i386/pc/xnu.c: likewise
3633 * loader/i386/xnu.c: likewise
3634 * loader/i386/xnu_helper.S: likewise
3635 * loader/macho.c: likewise
3636 * loader/xnu.c: likewise
3637 * loader/xnu_resume.c: likewise
3638 * util/grub-dumpdevtree: likewise
3639 * include/grub/i386/pit.h: include grub/err.h
3640 (grub_pit_wait): export
3641 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
3643 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3647 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
3648 _linux_efi, linux_efi.
3649 new files in grub-emu
3650 new targets efiemu32.o and efiemu64.o
3651 * loader/linux_normal_efiemu.c: likewise
3652 * loader/i386/efi/linux.c: added preliminary efiemu support
3653 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
3655 * include/grub/autoefi.h: new file
3656 * include/grub/i386/efiemu.h: likewise
3657 * include/grub/i386/pc/efiemu.h: likewise
3658 * include/grub/efi/api.h: add LL suffix when necessary
3659 new definitions relating to tables
3660 * include/grub/efiemu/efiemu.h: new file
3661 * include/grub/efiemu/runtime.h: likewise
3662 * efiemu/prepare.c: likewise
3663 * efiemu/loadcore_common.c: likewise
3664 * efiemu/loadcore64.c: likewise
3665 * efiemu/runtime/efiemu.sh: likewise
3666 * efiemu/runtime/efiemu.S: likewise
3667 * efiemu/runtime/efiemu.c: likewise
3668 * efiemu/runtime/config.h: likewise
3669 * efiemu/prepare32.c: likewise
3670 * efiemu/main.c: likewise
3671 * efiemu/modules/pnvram.c: likewise
3672 * efiemu/modules/i386: likewise
3673 * efiemu/modules/i386/pc: likewise
3674 * efiemu/modules/acpi.c: likewise
3675 * efiemu/i386/pc/cfgtables.c: likewise
3676 * efiemu/i386/loadcore64.c: likewise
3677 * efiemu/i386/loadcore32.c: likewise
3678 * efiemu/prepare64.c: likewise
3679 * efiemu/loadcore.c: likewise
3680 * efiemu/symbols.c: likewise
3681 * efiemu/mm.c: likewise
3682 * efiemu/loadcore32.c: likewise
3684 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3688 * commands/acpi.c: new file
3689 * commands/i386/pc/acpi.c: likewise
3690 * commands/efi/acpi.c: likewise
3691 * include/grub/acpi.h: likewise
3692 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
3693 (acpi_mod_SOURCES): new variable
3694 (acpi_mod_CFLAGS): likewise
3695 (acpi_mod_LDFLAGS): likewise
3696 * conf/i386-efi.rmk: likewise
3697 * conf/x86_64-efi.rmk: likewise
3699 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3701 Missing part from mmap patch
3703 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
3704 (grub_mmap_unregister)
3705 (grub_mmap_free_and_unregister): use grub_mmap_register
3707 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3711 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
3712 * loader/i386/linux.c (find_mmap_size): likewise
3713 (allocate_pages): likewise
3714 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
3715 (grub_fill_multiboot_mmap): likewise
3716 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
3717 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
3718 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
3719 (OPENBSD_MMAP_RESERVED): likewise
3720 * include/grub/i386/pc/memory.h: include grub/memory.h
3721 (grub_lower_mem): removed
3722 (grub_upper_mem): likewise
3723 (GRUB_MACHINE_MEMORY_ACPI): new definition
3724 (GRUB_MACHINE_MEMORY_NVS): likewise
3725 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
3726 (GRUB_MACHINE_MEMORY_HOLE): likewise
3727 (grub_machine_mmap_register): likewise
3728 (grub_machine_mmap_unregister): likewise
3729 (grub_machine_get_upper): likewise
3730 (grub_machine_get_lower): likewise
3731 (grub_machine_get_post64): likewise
3732 * include/grub/i386/efi/memory.h: new file
3733 * include/grub/x86_64/efi/memory.h: likewise
3734 * include/grub/efi/memory.h: likewise
3735 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
3736 (mmap_mod_SOURCES): new variable
3737 (mmap_mod_LDFLAGS): likewise
3738 (mmap_mod_ASFLAGS): likewise
3739 * conf/i386-coreboot.rmk: likewise
3740 * conf/i386-ieee1275.rmk: likewise
3741 * conf/i386-efi.rmk: likewise
3742 * conf/x86_64-efi.rmk: likewise
3743 * include/grub/types.h (UINT_TO_PTR): new macro
3744 (PTR_TO_UINT32): likewise
3745 (PTR_TO_UINT64): likewise
3746 * include/grub/memory.h: new file
3747 * mmap/i386/pc/mmap.c: likewise
3748 * mmap/i386/pc/mmap_helper.S: likewise
3749 * mmap/i386/uppermem.c: likewise
3750 * mmap/mmap.c: likewise
3751 * mmap/efi/mmap.c: likewise
3752 * kern/i386/coreboot/init.c (grub_machine_init): don't use
3754 * kern/i386/pc/init.c (grub_lower_mem): removed variable
3755 (grub_upper_mem): likewise
3756 (grub_machine_init): don't use grub_upper_mem,
3757 make grub_lower_mem local
3758 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
3759 grub_mmap_iterate and grub_mmap_get_upper
3760 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
3762 2009-05-02 Bean <bean123ch@gmail.com>
3764 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
3766 (pkglib_MODULES): Add normal.mod and sh.mod.
3767 (normal_SOURCES): New variable.
3768 (normal_mod_CFLAGS): Likewise.
3769 (normal_mod_LDFLAGS): Likewise.
3770 (sh_mod_SOURCES): Likewise.
3771 (sh_mod_CFLAGS): Likewise.
3772 (sh_mod_LDFLAGS): Likewise.
3774 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
3775 script/sh/lexer.c_DEPENDENCIES.
3776 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
3777 kern/rescue_reader.c and kern/rescue_parser.c.
3778 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
3779 (grub_emu_SOURCES): Change source files.
3780 (pkglib_MODULES): Remove normal.mod.
3781 (normal_SOURCES): Removed.
3782 (normal_mod_CFLAGS): Likewise.
3783 (normal_mod_LDFLAGS): Likewise.
3784 * conf/i386-coreboot.rmk: Likewise.
3785 * conf/i386-efi.rmk: Likewise.
3786 * conf/i386-ieee1276.rmk: Likewise.
3787 * conf/powerpc-ieee1275.rmk: Likewise.
3788 * conf/sparc64-ieee1275.rmk: Likewise.
3789 * conf/x86_64-efi.rmk: Likewise.
3791 * include/grub/command.h (grub_command_execute): New inline function.
3793 * include/grub/menu.h (grub_menu_entry): Removed commands field.
3795 * include/grub/normal.h: Remove <grub/setjmp.h>.
3796 (grub_fs_module_list): Moved to normal/autofs.c.
3797 (grub_exit_env): Removed.
3798 (grub_command_execute): Likewise.
3799 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
3801 (read_command_list): New function declaration.
3802 (read_fs_list): Likewise.
3804 * include/parser.h: Include <grub/reader.h>.
3805 (grub_parser_split_cmdline): Change type of getline parameter.
3806 (grub_parser): New structure.
3807 (grub_parser_class): New variable.
3808 (grub_parser_execute): New function declaration.
3809 (grub_register_rescue_parser): Likewise.
3810 (grub_parser_register): New inline function.
3811 (grub_parser_unregister): Likewise.
3812 (grub_parser_get_current): Likewise.
3813 (grub_parser_set_current): Likewise.
3815 * include/grub/reader.h: New file.
3816 * kern/reader.c: Likewise.
3817 * kern/rescue_parser.c: Likewise.
3818 * kern/rescue_reader.c: Likewise.
3819 * normal/autofs.c: Likewise.
3820 * normal/dyncmd.c: Likewise.
3822 * include/grub/rescue.h: Removed.
3823 * normal/command.h: Likewise.
3825 * include/grub/script.h: Moved to ...
3826 * include/grub/script_sh.h: ... Moved here.
3827 * normal/execute.c: Moved to ...
3828 * script/sh/execute.c: ... Moved here.
3829 * normal/function.c: Moved to ...
3830 * script/sh/function.c: ... Moved here.
3831 * normal/lexer.c: Moved to ...
3832 * script/sh/lexer.c: ... Moved here.
3833 * normal/parser.y: Moved to ...
3834 * script/sh/parser.y: ... Moved here.
3835 * normal/script.c: Moved to ...
3836 * script/sh/script.c: ... Moved here.
3838 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
3840 (grub_exit_env): Removed.
3841 (fs_module_list): Moved to normal/autofs.c.
3842 (grub_file_getline): Don't handle comment here.
3843 (free_menu): Skip removed field entry->commands.
3844 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
3846 (read_config_file): Removed nested parameter, change getline function.
3847 (grub_enter_normal_mode): Removed.
3848 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
3849 (read_command_list): Likewise.
3850 (autoload_fs_module): Moved to normal/autofs.c.
3851 (read_fs_list): Likewise.
3852 (reader_nested): New variable.
3853 (grub_normal_execute): Run parser.sh to switch to sh parser.
3854 (grub_cmd_rescue): Removed.
3855 (cmd_normal): Removed.
3856 (grub_cmd_normal): Unregister itself at the beginning. Don't register
3858 (grub_cmdline_run): New function.
3859 (grub_normal_reader_init): Likewise.
3860 (grub_normal_read_line): Likewise.
3861 (grub_env_write_pager): Likewise.
3862 (cmdline): New variable.
3863 (grub_normal_reader): Likewise.
3864 (GRUB_MOD_INIT): Register normal reader and set as current, register
3865 pager hook, register normal command with grub_register_command_prio,
3866 so that it won't show up in command.lst.
3867 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
3868 grub_fs_autoload_hook.
3870 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
3871 (grub_menu_execute_entry): Replace grub_script_execute with
3872 grub_parser_execute, change parameter to grub_command_execute.
3874 * normal/menu_text.c: Remove <grub/script.h>.
3876 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
3877 and <grub/parser.h>.
3878 (run): Change editor_getline to use new parser interface. Change
3879 parameter to grub_command_execute.
3881 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
3882 <grub/reader.h> and <grub/parser.h>.
3883 (grub_load_normal_mode): Execute normal command.
3884 (grub_main): Call grub_register_core_commands,
3885 grub_register_rescue_parser and grub_register_rescue_reader, use
3886 grub_reader_loop to enter input loop.
3888 * kern/parser.c (grub_parser_split_cmdline): Change type of
3890 (grub_parser_class): New variable.
3891 (grub_parser_execute): New function.
3893 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
3894 * loader/multiboot2.c: Likewise.
3895 * loader/sparc64/ieee1275/linux.c: Likewise.
3897 * util/grub-emu.c (read_command_list): New dummy function.
3899 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
3901 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
3902 count to 16 for CCISS and IDA.
3904 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
3906 * normal/menu_text.c (grub_wait_after_message): Print a newline
3907 after waiting for user input.
3909 * loader/i386/linux.c: Include `<grub/normal.h>'.
3910 (grub_cmd_linux): Improve the error message about `ask' mode, by
3911 waiting for user input so it's not missed (we can do this, since
3912 user requested interaction).
3914 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3916 Added missing lst to grub-mkrescue
3918 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
3919 and ${input_dir}/parttool.lst
3921 2009-04-30 David S. Miller <davem@davemloft.net>
3923 * util/hostdisk.c (device_is_wholedisk): New function.
3924 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
3925 zero only if device_is_wholedisk() returns true.
3927 * util/hostdisk.c (convert_system_partition_to_system_disk):
3928 Handle virtual disk devices named /dev/vdiskX as found on sparc
3931 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
3932 lettered partition specifier is found, convert to numbered.
3934 2009-04-29 David S. Miller <davem@davemloft.net>
3936 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
3937 * include/grub/sparc64/ieee1275/memory.h: Likewise.
3939 * normal/command.c: Add missing newline at end of file.
3941 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
3943 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
3944 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
3945 grub_ofdisk_read): Likewise, and deal similarly with the fact that
3946 ihandles have a 32-bit type but need to be stored in a "void *".
3948 2009-04-28 Pavel Roskin <proski@gnu.org>
3950 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
3951 not disk. Adjust all dependencies.
3952 (grub_fs_uuid_close): Use grub_device_close(), not
3955 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
3956 parent's partition, don't copy it by reference, as it gets freed
3959 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3961 Preboot hooks support
3963 * commands/boot.c (struct grub_preboot_t): new declaration
3964 (preboots_head): new variable
3965 (preboots_tail): likewise
3966 (grub_loader_register_preboot_hook): new function
3967 (grub_loader_unregister_preboot_hook): likewise
3968 (grub_loader_set): launch preboot hooks
3969 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
3970 (grub_loader_register_preboot_hook): new declaration
3971 (grub_loader_unregister_preboot_hook): likewise
3973 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3977 * disk/scsi.c (grub_scsi_open): added missing cast when
3978 calling grub_dprintf
3980 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3982 Bug and warning fixes
3984 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
3986 * commands/test.c (test_parse): fixed bug with file tests and corrected
3987 declaration of find_file
3989 2009-04-26 Pavel Roskin <proski@gnu.org>
3991 * Makefile.in: Don't install empty manual pages if help2man is
3992 missing. Use help2man option for output, not shell redirection.
3994 2009-04-26 David S. Miller <davem@davemloft.net>
3996 * util/grub-mkdevicemap.c (make_device_map): Add missing
3997 NESTED_FUNC_ATTR to process_device().
3999 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4003 * commands/test.c: rewritten to use bash-like test
4005 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4007 Parttool autoloading and improvements
4009 * Makefile.in (pkglib_DATA): add parttool.lst
4010 (parttool.lst): new target
4011 * genmk.rb: generate parttool-*
4012 (CLEANFILES): add #{parttool}
4013 (PARTTOOLFILES): new variable
4014 * genparttoollist.sh: new file
4015 * parttool/pcpart.c (grub_pcpart_boot): more feedback
4016 (grub_pcpart_type): likewise
4017 * commands/parttool.c (helpmsg): new variable
4018 (grub_cmd_parttool): output help if not enough arguments are supplied
4020 (GRUB_MOD_INIT(parttool)): use helpmsg
4022 2009-04-24 David S. Miller <davem@davemloft.net>
4024 Avoiding opening same device multiple times in device iterator.
4026 * kern/device.c: (grub_device_iterate): Define struct part_ent,
4027 and use it to build a list of partitions in iterate_disk() and
4028 iterate_partition().
4030 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
4033 * disk/ieee1275/nand.c (grub_nand_iterate): Return
4034 grub_devalias_iterate() result instead of unconditional 0.
4035 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
4036 Also, capture hook return value, either directly or via
4037 grub_children_iterate(), and propagate to caller.
4038 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
4039 grub_children_iterate): Return value is now 'int' instead of
4041 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
4042 like a proper iterator, stopping when hooks return non-zero.
4043 (grub_devalias_iterate): Likewise.
4045 2009-04-23 David S. Miller <davem@davemloft.net>
4047 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
4049 2009-04-22 David S. Miller <davem@davemloft.net>
4051 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
4052 is larger than address_cells, use that value for address_cells too.
4054 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
4055 IEEE1275_MAX_PATH_LEN): Define.
4056 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
4057 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
4058 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
4059 'devtype'. Explicitly NULL terminate devalias expansion.
4061 * util/sparc64/ieee1275/misc.c: New file.
4062 * util/sparc64/ieee1275/grub-setup.c: New file.
4063 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
4064 * util/sparc64/ieee1275/grub-mkimage.c: New file.
4065 * util/sparc64/ieee1275/grub-install.in: New file.
4066 * util/ieee1275/ofpath.c: New file.
4067 * util/ieee1275/devicemap.c: New file.
4068 * util/devicemap.c: New file.
4069 * util/deviceiter.c: New file.
4070 * kern/sparc64/ieee1275/init.c: New file.
4071 * include/grub/util/ofpath.h: New file.
4072 * include/grub/util/deviceiter.h: New file.
4073 * util/grub-mkdevicemap.c: Include deviceiter.h.
4074 Implement using grub_util_emit_devicemap_entry and
4075 grub_util_iterate_devices.
4076 * conf/i386-corebook.rmk: Build util/deviceiter.c and
4077 util/devicemap.c into grub-mkdevicemap
4078 * conf/i386-efi.rmk: Likewise.
4079 * conf/i386-ieee1275.rmk: Likewise.
4080 * conf/i386-pc.rmk: Likewise.
4081 * conf/powerpc-ieee1275.rmk: Likewise.
4082 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
4083 images and installation utilities. Build kernel as image
4084 instead of as elf binary. Use common rules as much as possible.
4086 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4088 Correct GPT definition
4090 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4093 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
4095 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
4097 2009-04-19 David S. Miller <davem@davemloft.net>
4099 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
4100 (grub_rescue_cmd_linux): Rename to...
4101 (grub_cmd_linux): and fix prototype.
4102 (grub_rescue_cmd_initrd): Rename to...
4103 (grub_cmd_initrd): and fix prototype.
4104 (cmd_linux, cmd_initrd): New.
4105 (GRUB_MOD_INIT(linux)): Use grub_register_command().
4106 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
4108 2009-04-17 Pavel Roskin <proski@gnu.org>
4110 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
4112 (grub_ohci_transfer): Likewise.
4114 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
4116 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
4117 return without a value. Fix inconsistent indentation.
4119 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
4120 match struct grub_fs.
4122 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
4123 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
4124 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4125 * commands/lspci.c (grub_lspci_iter): Likewise.
4127 2009-04-16 Bean <bean123ch@gmail.com>
4129 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4132 2009-04-15 Pavel Roskin <proski@gnu.org>
4134 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4135 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4136 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4139 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4141 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4142 that no multiple data or metadata areas are supported and `Unknown
4145 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4147 Move loader out of the kernel
4149 * kern/loader.c: moved to ...
4150 * commands/boot.c: ... moved here
4151 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4152 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4153 * include/grub/kernel.h (grub_machine_fini): export
4154 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4155 (grub_loader_set): likewise
4156 (grub_loader_unset): likewise
4157 (grub_loader_boot): likewise
4158 * conf/common.rmk: new module boot.mod
4159 (pkglib_MODULES): add boot.mod
4160 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4161 (grub_emu_SOURCES): likewise
4162 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4163 (grub_emu_SOURCES): likewise
4164 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4165 (grub_emu_SOURCES): likewise
4166 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4167 (grub_emu_SOURCES): likewise
4168 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4169 (grub_emu_SOURCES): likewise
4170 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4171 (grub_emu_SOURCES): likewise
4172 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4173 (grub_emu_SOURCES): likewise
4175 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4177 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4179 * kern/misc.c (grub_itoa): Removed function
4180 (grub_ltoa): likewise
4181 (grub_vsprintf): use grub_lltoa
4183 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4187 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
4188 * conf/i386-coreboot.rmk: likewise
4189 * conf/i386-ieee1275.rmk: likewise
4190 * conf/powerpc-ieee1275.rmk: likewise
4192 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4194 * INSTALL: Add that `./autogen.sh' needs to be run before
4197 2009-04-14 Bean <bean123ch@gmail.com>
4199 * Makefile.in (pkglib_DATA): Add handler.lst.
4200 (handler.lst): New rule.
4202 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
4203 * conf/i386-coreboot.rmk: Likewise.
4204 * conf/i386-ieee1275.rmk: Likewise.
4205 * conf/i386-efi.rmk: Likewise.
4206 * conf/x86_64-efi.rmk: Likewise.
4207 * conf/powerpc-ieee1275.rmk: Likewise.
4208 * conf/sparc64-ieee1275.rmk: Likewise.
4210 * genhandlerlist.sh: New file.
4212 * genmk.rb: Add rules to generate handler.lst.
4214 * include/grub/normal.h (grub_file_getline): New function definition.
4215 (read_handler_list): Likewise.
4216 (free_handler_list): Likewise.
4218 * include/grub/term.h (grub_term_register_input): Add name parameter
4219 for auto generation of handler.lst.
4220 (grub_term_register_output): Likewise.
4222 * normal/handler.c: New file.
4224 * normal/main.c (get_line): Renamed to grub_file_getline.
4225 (read_config_file): Use the newly renamed grub_file_getline.
4226 (read_command_list): Likewise.
4227 (read_fs_list): Likewise.
4228 (grub_normal_execute): Call read_handler_list to parse handler.lst.
4229 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
4231 * term/efi/console.c (grub_console_init): Add name parameter for auto
4232 generation of handler.lst.
4233 * term/gfxterm.c: Likewise.
4234 * term/i386/pc/at_keyboard.c: Likewise.
4235 * term/i386/pc/console.c: Likewise.
4236 * term/i386/pc/serial.c: Likewise.
4237 * term/i386/pc/vesafb.c: Likewise.
4238 * term/i386/pc/vga.c: Likewise.
4239 * term/i386/pc/vga_text.c: Likewise.
4240 * term/ieee1275/ofconsole.c: Likewise.
4241 * term/usb_keyboard.c: Likewise.
4243 2009-04-14 Bean <bean123ch@gmail.com>
4245 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
4246 properly with null character.
4248 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4250 * configure: Remove.
4251 * config.h.in: Likewise.
4252 * stamp-h.in: Likewise.
4253 * DISTLIST: Likewise.
4254 * conf/common.mk: Likewise.
4255 * conf/i386-coreboot.mk: Likewise.
4256 * conf/i386-efi.mk: Likewise.
4257 * conf/i386-ieee1275.mk: Likewise.
4258 * conf/i386.mk: Likewise.
4259 * conf/i386-pc.mk: Likewise.
4260 * conf/powerpc-ieee1275.mk: Likewise.
4261 * conf/sparc64-ieee1275.mk: Likewise.
4262 * conf/x86_64-efi.mk: Likewise.
4264 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
4267 2009-04-14 John Stanley <jpsinthemix@verizon.net>
4268 David S. Miller <davem@davemloft.net>
4270 * util/hostdisk.c (make_device_name): Fix buffer length
4273 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4275 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
4276 <sys/param.h> and <sys/sysctl.h>.
4277 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
4278 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
4279 opening the device and reset them afterwards.
4281 2009-04-13 Pavel Roskin <proski@gnu.org>
4283 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
4284 Reported by John Stanley <jpsinthemix@verizon.net>
4286 2009-04-13 Robert Millan <rmh@aybabtu.com>
4288 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
4289 that name for menuentries when appropriate.
4291 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4293 * util/grub.d/10_freebsd.in: Add a missing `fi'.
4295 2009-04-13 Robert Millan <rmh@aybabtu.com>
4297 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
4298 to Linux, simply abort telling the user it's no longer supported.
4300 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4302 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
4303 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
4304 `freebsd_loadenv' only when devices.hints exist.
4306 2009-04-13 Pavel Roskin <proski@gnu.org>
4308 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
4310 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4312 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
4314 (grub_drive): Likewise.
4316 2009-04-13 David S. Miller <davem@davemloft.net>
4318 * kern/sparc64/ieee1275/ieee1275.c: New file.
4319 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
4320 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
4321 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
4322 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
4323 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
4324 grub_ieee1275_alloc_physmem): Declare new exported functions.
4326 * include/grub/sparc64/ieee1275/loader.h: New file.
4327 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4328 * include/grub/sparc64/kernel.h: Likewise.
4329 * loader/sparc64/ieee1275/linux.c: Likewise.
4331 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
4332 (grub_fstest_SOURCES): Likewise.
4334 * util/hostdisk.c (make_device_name): Do not make any assumptions
4335 about the length of drive names.
4337 * kern/dl.c (grub_dl_load_file): Close file immediately when
4338 we are done using it.
4340 2009-04-12 David S. Miller <davem@davemloft.net>
4342 * kern/misc.c (grub_ltoa): Fix cast when handling negative
4343 values. Noticed by Pavel Roskin.
4345 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
4348 * genmk.rb: Add more flexible image type specification, also
4349 pass --strip-unneeded to objcopy.
4350 * conf/i386-pc.rmk: Use *_FORMAT.
4351 * conf/i386-pc.mk: Rebuilt.
4353 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
4354 (OFDISK_HASH_SZ): Define.
4355 (ofdisk_hash): New hash table.
4356 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
4357 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
4358 instead of device phandle which is not unique.
4360 * kern/sparc64/ieee1275/init.c: Delete, replace with...
4361 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
4362 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
4363 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
4364 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
4365 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
4366 GRUB_KERNEL_MACHINE_DATA_END): Define.
4367 (grub_kernel_image_size, grub_total_module_size): Declare.
4369 2009-04-12 Pavel Roskin <proski@gnu.org>
4371 * configure.ac: Change the logic when we check for target tools.
4372 Do it when the target is specified and it's different from the
4373 specified value of the host.
4375 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
4377 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
4378 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
4379 GNU/kFreeBSD. Check if a device is a character device. Use
4380 DIOCGMEDIASIZE to get the size.
4381 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
4382 support for GNU/kFreeBSD.
4383 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
4384 is a character device instead of a block device. Add support for
4385 FreeBSD device names.
4387 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
4388 is a character device instead of a block device.
4390 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
4391 is a character device instead of a block device.
4393 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
4395 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
4396 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
4397 FreeBSD. Check if a device is a character device. Use
4398 DIOCGMEDIASIZE to get the size.
4399 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
4400 support for FreeBSD.
4401 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
4402 is a character device instead of a block device. Add support for
4403 FreeBSD device names.
4405 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
4406 a character device instead of a block device.
4407 (grub_util_check_char_device): New function.
4409 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
4410 a character device instead of a block device.
4412 * include/grub/util/getroot.h (grub_util_check_char_device): New
4415 2009-04-11 David S. Miller <davem@davemloft.net>
4417 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
4419 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
4420 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
4421 function, if present.
4422 (__bswapdi2): Likewise.
4424 * include/grub/sparc64/ieee1275/boot.h: New file.
4425 * boot/sparc64/ieee1275/boot.S: Likewise.
4426 * boot/sparc64/ieee1275/diskboot.S: Likewise.
4428 * kern/misc.c (grub_ltoa): New function.
4429 (grub_vsprintf): Use it to format 'long' integers.
4431 2009-04-10 David S. Miller <davem@davemloft.net>
4433 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
4434 slots are of type grub_ieee1275_cell_t.
4435 (grub_nand_read): Likewise.
4436 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
4437 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
4438 macros are used to compare values in arg/ret block of the call.
4439 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
4440 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
4441 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
4442 grub_ieee1275_instance_to_path, grub_ieee1275_write,
4443 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
4444 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
4445 grub_ieee1275_close, grub_ieee1275_set_property,
4446 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
4447 grub_ieee1275_cell_t.
4448 * kern/ieee1275/openfw.c (grub_map): Likewise.
4449 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
4450 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
4452 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
4453 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4454 (grub_devalias_iterate): Likewise.
4456 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4460 * fs/ufs.c (INODE_NBLOCKS): new definition
4461 (struct grub_ufs_dirent): added fields for non-BSD dirents
4462 (grub_ufs_get_file_block): fixed double indirect handling
4463 (grub_ufs_lookup_symlink): use more robust way to determine whether
4465 (grub_ufs_find_file): support for non-BSD dirents
4466 (grub_ufs_dir): support for non-BSD dirents
4468 2009-04-10 Bean <bean123ch@gnail.com>
4470 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
4471 attribute, otherwise the size would be wrong for i386 platform.
4473 * include/grub/pci.h (grub_pci_read_word): New inline function.
4474 (grub_pci_read_byte): Likewise.
4475 (grub_pci_write): Likewise.
4476 (grub_pci_write_word): Likewise.
4477 (grub_pci_write_byte): Likewise.
4479 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
4481 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
4482 (find_framebuf): Scan pci to locate the frame buffer address.
4484 * commands/efi/fixvideo.c: New file.
4486 * commands/efi/loadbios.c: Likewise.
4488 * commands/memrw.c: Likewise.
4490 * util/grub-dumpbios.in: Likewise.
4492 * conf/common.rmk (grub-dumpbios): New utility.
4493 (pkglib_MODULES): New module memrw.mod.
4494 (memrw_mod_SOURCE): New macro.
4495 (memrw_mod_CFLAGS): Likewise.
4496 (memrw_mod_LDFLAGS): Likewise.
4498 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
4500 (loadbios_mod_SOURCE): New macro.
4501 (loadbios_mod_CFLAGS): Likewise.
4502 (loadbios_mod_LDFLAGS): Likewise.
4503 (fixvideo_mod_SOURCE): Likewise.
4504 (fixvideo_mod_CFLAGS): Likewise.
4505 (fixvideo_mod_LDFLAGS): Likewise.
4507 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
4509 (loadbios_mod_SOURCE): New macro.
4510 (loadbios_mod_CFLAGS): Likewise.
4511 (loadbios_mod_LDFLAGS): Likewise.
4512 (fixvideo_mod_SOURCE): Likewise.
4513 (fixvideo_mod_CFLAGS): Likewise.
4514 (fixvideo_mod_LDFLAGS): Likewise.
4516 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
4518 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
4520 2009-04-07 David S. Miller <davem@davemloft.net>
4522 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
4523 support for R_SPARC_OLO10 relocations. Fix compile warning for
4524 R_SPARC_WDISP30 case.
4525 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
4527 2009-04-06 Pavel Roskin <proski@gnu.org>
4529 * include/grub/misc.h (ARRAY_SIZE): New macro.
4530 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
4532 * loader/i386/linux.c (allocate_pages): Use free_pages().
4533 (grub_linux_unload): Don't use free_pages().
4534 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
4535 wrong index. Treat all other modes as text modes.
4536 (grub_cmd_linux): Initialize vid_mode unconditionally to
4537 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
4539 * commands/help.c (print_command_help): Use cmd->prio, not
4540 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
4542 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4546 * parttool/pcpart.c: new file
4547 * commands/parttool.c: likewise
4548 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
4549 (parttool_mod_SOURCES): new variable
4550 (parttool_mod_CFLAGS): likewise
4551 (parttool_mod_LDFLAGS): likewise
4552 (pcpart_mod_SOURCES): likewise
4553 (pcpart_mod_CFLAGS): likewise
4554 (pcpart_mod_LDFLAGS): likewise
4555 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
4556 and parttool/pcpart.c
4557 * conf/i386-efi.rmk: likewise
4558 * conf/i386-ieee1275.rmk: likewise
4559 * conf/i386-pc.rmk: likewise
4560 * conf/powerpc-ieee1275.rmk: likewise
4561 * conf/sparc64-ieee1275.rmk: likewise
4562 * conf/x86_64-ieee1275.rmk: likewise
4564 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4566 Support for mtime and further expandability of dir command
4568 * include/grub/lib/datetime.h: moved to ...
4569 * include/grub/datetime.h: ... moved here and added
4570 declaration of grub_unixtime2datetime. All users updated
4571 * include/grub/fs.h: new syntax for dir and mtime functions in
4573 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
4574 and GRUB_FSHELP_FLAGS_MASK
4575 * commands/ls.c (grub_ls_list_files): Write mtime in long format
4576 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
4577 (grub_ext2_mtime): new function
4578 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
4579 (grub_hfsplus_mtime): new function
4580 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
4581 (GRUB_UFS_ATTR_FILE): likewise
4582 (GRUB_UFS_ATTR_LNK): likewise
4583 (struct grub_ufs_sblock): new fields mtime
4584 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
4586 (grub_ufs_dir): mtime support
4587 (grub_ufs_mtime): new function
4588 * fs/affs.c (grub_affs_dir): use new dir syntax
4589 * fs/afs.c (grub_afs_dir): likewise
4590 * fs/cpio.c (grub_cpio_dir): likewise
4591 * fs/fat.c (grub_fat_find_dir): likewise
4592 * fs/hfs.c (grub_hfs_dir): likewise
4593 * fs/iso9660.c (grub_iso9660_dir): likewise
4594 * fs/jfs.c (grub_jfs_dir): likewise
4595 * fs/minix.c (grub_minix_dir): likewise
4596 * fs/ntfs.c (grub_ntfs_dir): likewise
4597 * fs/reiserfs.c (grub_reiserfs_dir): likewise
4598 * fs/sfs.c (grub_sfs_dir): likewise
4599 * fs/xfs.c (grub_xfs_dir): likewise
4600 * util/hostfs.c (grub_hostfs_dir): likewise
4601 * lib/datetime.c: moved to ...
4602 * normal/datetime.c: ... moved here
4603 (grub_unixtime2datetime): new function
4604 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
4605 * normal/completion.c (iterate_dir): use new dir syntax
4606 * normal/misc.c (grub_normal_print_device_info): tell the
4607 last modification time of a volume
4608 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
4609 * conf/common.rmk: added lib/datetime.c to ls.mod
4610 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
4611 (normal_mod_SOURCES): likewise
4612 (datetime_mod_SOURCES): Removed lib/datetime.c
4613 * conf/i386-efi.rmk: likewise
4614 * conf/i386-ieee1275.rmk: likewise
4615 * conf/i386-pc.rmk: likewise
4616 * conf/powerpc-ieee1275.rmk: likewise
4617 * conf/sparc64-ieee1275.rmk: likewise
4618 * conf/x86_64-efi.rmk: likewise
4620 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4622 Trim trailing spaces in FAT label and support mtools-like labels
4624 * fs/fat.c (grub_fat_iterate_dir): New function based
4625 on grub_fat_find_dir
4626 (grub_fat_find_dir): use grub_fat_iterate_dir
4627 (grub_fat_label): likewise
4629 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4631 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
4633 remove extraneous kernel_elf_HEADERS
4635 2009-04-04 Bean <bean123ch@gnail.com>
4637 * include/grub/util/misc.h: Add dummy function fsync for mingw.
4639 * util/misc.c: Likewise.
4641 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
4643 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
4644 instead of grub_printf.
4646 2009-04-03 Robert Millan <rmh@aybabtu.com>
4648 * loader/i386/linux.c (grub_linux_setup_video): Fill
4649 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
4650 values from `mode info' structure instead of hardcoded
4653 2009-04-01 Pavel Roskin <proski@gnu.org>
4655 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
4657 * genmk.rb: Likewise.
4658 * configure.ac: Likewise.
4660 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
4662 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
4663 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
4665 2009-04-01 David S. Miller <davem@davemloft.net>
4667 * normal/sparc64/setjmp.S: Fix setjmp implementation.
4668 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
4669 (grub_setjmp): Mark with 'returns_twice' attribute.
4670 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
4671 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
4672 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
4674 2009-04-01 Robert Millan <rmh@aybabtu.com>
4676 Reapply fix from 2008-07-28 which was accidentally reverted; also
4677 perform the same fix to a similar check in same function.
4679 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
4680 with the same number are found, just use issue a warning with
4681 grub_dprintf(), as this error has been reported to be non-fatal.
4683 2009-03-31 Pavel Roskin <proski@gnu.org>
4685 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
4686 for cross-compilation.
4688 2009-03-30 Robert Millan <rmh@aybabtu.com>
4690 Fix i386-ieee1275 build.
4692 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
4695 2009-03-30 Pavel Roskin <proski@gnu.org>
4697 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
4698 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
4699 zero-terminated, rely only on the strlen value. Fix comparison
4700 of strings differing in length.
4702 2009-03-30 Robert Millan <rmh@aybabtu.com>
4704 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
4705 checking for abi version. Improve error messages on BIOS to notify
4706 user about `linux16' command.
4708 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4712 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
4713 in case of collision
4714 * disk/scsi.c (grub_scsi_open): free scsi in case of error
4716 2009-03-29 Robert Millan <rmh@aybabtu.com>
4718 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
4719 set `vid_mode' accordingly.
4720 (grub_linux_boot): Process `vid_mode' and set video mode.
4722 2009-03-29 Robert Millan <rmh@aybabtu.com>
4724 * util/grub.d/10_linux.in (linux_entry): New function.
4725 Factorize generation of Linux boot entries.
4727 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
4729 Make the format of Environment Block plain text. The boot loader
4730 part is not tested well yet.
4732 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
4735 (usage): Remove "info" and "clear". Add "unset". Update the
4736 description of "set", as this does not delete variables any
4738 (create_envblk_file): Complete rewrite.
4739 (open_envblk_file): Likewise.
4740 (cmd_info): Removed.
4741 (cmd_list): Likewise.
4742 (cmd_set): Likewise.
4743 (cmd_clear): Likewise.
4744 (list_variables): New function.
4745 (write_envblk): Likewise.
4746 (set_variables): Likewise.
4747 (unset_variables): Likewise.
4748 (main): Complete rewrite.
4750 * commands/loadenv.c (buffer): Removed.
4752 (open_envblk_file): New function.
4753 (read_envblk_file): Complete rewrite.
4754 (grub_cmd_load_env): Likewise.
4755 (grub_cmd_list_env): Likewise.
4756 (struct blocklist): New struct.
4757 (free_blocklists): New function.
4758 (check_blocklists): Likewise.
4759 (write_blocklists): Likewise.
4760 (grub_cmd_save_env): Complete rewrite.
4762 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
4763 a plain text signature.
4764 (GRUB_ENVBLK_MAXLEN): Removed.
4765 (struct grub_envblk): Complete rewrite.
4766 (grub_envblk_find): Removed.
4767 (grub_envblk_insert): Likewise.
4768 (grub_envblk_open): New prototype.
4769 (grub_envblk_set): Likewise.
4770 (grub_envblk_delete): Put const to VALUE.
4771 (grub_envblk_iterate): Put const to NAME and VALUE.
4772 (grub_envblk_close): New prototype.
4773 (grub_envblk_buffer): New inline function.
4774 (grub_envblk_size): Likewise.
4776 * lib/envblk.c: Include grub/mm.h.
4777 (grub_env_find): Removed.
4778 (grub_envblk_open): New function.
4779 (grub_envblk_close): Likewise.
4780 (escaped_value_len): Likewise.
4781 (find_next_line): Likewise.
4782 (grub_envblk_insert): Removed.
4783 (grub_envblk_set): New function.
4784 (grub_envblk_delete): Complete rewrite.
4785 (grub_envblk_iterate): Likewise.
4787 2009-03-28 Robert Millan <rmh@aybabtu.com>
4789 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
4790 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
4791 variables. Use 16-bit loader.
4792 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
4794 * kern/i386/loader.S (grub_linux_boot): Rename to ...
4795 (grub_linux16_boot): ... this. Update all users.
4796 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
4797 (grub_linux_boot): ... this. Update all users.
4799 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
4800 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
4801 commands to `linux16' and `initrd16'.
4802 (GRUB_MOD_FINI(linux)): Rename to ...
4803 (GRUB_MOD_FINI(linux16)): ... this.
4805 2009-03-24 Pavel Roskin <proski@gnu.org>
4807 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
4808 not just for compilation.
4810 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4812 Move multiboot helper out of kernel
4814 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
4815 `loader/i386/multiboot_helper.S'.
4816 * conf/i386-coreboot.rmk: Likewise
4817 * conf/i386-ieee1275.rmk: Likewise
4819 * kern/i386/loader.S: Move multiboot helpers from here...
4820 * loader/i386/multiboot_helper.S: ...moved here
4821 * include/grub/i386/loader.h: Move declarations of multiboot
4822 helpers from here...
4823 * include/grub/i386/multiboot.h: ...moved here
4824 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
4826 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
4828 * kern/env.c (grub_env_context_open): Added an argument to specify
4829 whether a new context inherits exported variables from current
4830 one. This is useful when making a sandbox to interpret a config
4832 All callers updated.
4834 * include/grub/env.h (grub_env_context_open): Updated the prototype.
4836 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
4838 * kern/env.c (grub_env_context_close): Fix memory leaks.
4840 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
4842 * normal/main.c (grub_normal_execute): Added an argument
4843 BATCH to specify if an interactive interface should be provided
4844 after reading a config file.
4845 All callers updated.
4846 (read_command_list): Prevent being executed twice.
4847 (read_fs_list): Likewise.
4849 * include/grub/normal.h (grub_normal_execute): Updated the
4852 2009-03-22 Pavel Roskin <proski@gno.org>
4854 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
4856 * kern/i386/pc/startup.S: Likewise.
4857 * kern/i386/efi/startup.S: Likewise.
4858 * kern/i386/ieee1275/startup.S: Likewise.
4859 * kern/i386/coreboot/startup.S: Likewise.
4860 * kern/x86_64/efi/startup.S: Likewise.
4862 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
4863 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
4864 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
4866 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
4868 Bugfixes in multiboot for bugs uncovered by solaris kernel.
4870 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
4872 Use vaddr of correct segment for entry_point.
4874 2009-03-21 Bean <bean123ch@gmail.com>
4876 * commands/blocklist.c: Add include file <grub/command.h>, remove
4877 <grub/normal.h> and <grub/arg.h>.
4878 (grub_cmd_blocklist): Use the new command interface.
4879 (GRUB_MOD_INIT): Likewise.
4880 (GRUB_MOD_FINI): Likewise.
4881 * commands/boot.c: Likewise.
4882 * commands/cat.c: Likewise.
4883 * commands/cmp.c: Likewise.
4884 * commands/configfile.c: Likewise.
4885 * commands/crc.c: Likewise.
4886 * commands/echo.c: Likewise.
4887 * commands/halt.c: Likewise.
4888 * commands/handler.c: Likewise.
4889 * commands/hdparm.c: Likewise.
4890 * commands/help.c: Likewise.
4891 * commands/hexdump.c: Likewise.
4892 * commands/loadenv.c: Likewise.
4893 * commands/ls.c: Likewise.
4894 * commands/lsmmap.c: Likewise.
4895 * commands/lspci.c: Likewise.
4896 * commands/loadenv.c: Likewise.
4897 * commands/read.c: Likewise.
4898 * commands/reboot.c: Likewise.
4899 * commands/search.c: Likewise.
4900 * commands/sleep.c: Likewise.
4901 * commands/test.c: Likewise.
4902 * commands/usbtest.c: Likewise.
4903 * commands/videotest.c: Likewise.
4904 * commands/i386/cpuid.c: Likewise.
4905 * commands/i386/pc/halt.c: Likewise.
4906 * commands/i386/pc/play.c: Likewise.
4907 * commands/i386/pc/pxecmd.c: Likewise.
4908 * commands/i386/pc/vbeinfo.c: Likewise.
4909 * commands/i386/pc/vbetest.c: Likewise.
4910 * commands/ieee1275/suspend.c: Likewise.
4911 * disk/loopback.c: Likewise.
4912 * font/font_cmd.c: Likewise.
4913 * hello/hello.c: Likewise.
4914 * loader/efi/appleloader.c: Likewise.
4915 * loader/efi/chainloader.c: Likewise.
4916 * loader/i386/bsd.c: Likewise.
4917 * loader/i386/efi/linux.c: Likewise.
4918 * loader/i386/ieee1275/linux.c: Likewise.
4919 * loader/i386/linux.c: Likewise.
4920 * loader/i386/pc/chainloader.c: Likewise.
4921 * loader/i386/pc/linux.c: Likewise.
4922 * loader/powerpc/ieee1275/linux.c: Likewise.
4923 * loader/multiboot_loader.c: Likewise.
4924 * term/gfxterm.c: Likewise.
4925 * term/i386/pc/serial.c: Likewise.
4926 * term/terminfo.c: Likewise.
4928 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
4929 * term/i386/pc/vga.c: Likewise.
4930 * video/readers/jpeg.c: Likewise.
4931 * video/readers/png.c: Likewise.
4932 * video/readers/tga.c: Likewise.
4934 * util/grub-fstest (cmd_loopback): Removed.
4935 (cmd_blocklist): Likewise.
4937 (grub_register_command): Likewise.
4938 (grub_unregister_command): Likewise.
4939 (execute_command): Use grub_command_find to locate command and execute
4942 * include/grub/efi/chainloader.h: Removed.
4943 * loader/efi/chainloader_normal.c: Likewise.
4944 * loader/i386/bsd_normal.c: Likewise.
4945 * loader/i386/pc/chainloader_normal.c: Likewise.
4946 * loader/i386/pc/multiboot_normal.c: Likewise.
4947 * loader/linux_normal.c: Likewise.
4948 * loader/multiboot_loader_normal.c: Likewise.
4949 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
4951 * gencmdlist.sh: Scan new registration command grub_register_extcmd
4952 and grub_register_command_p1.
4954 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
4955 kern/command.c, lib/arg.c and commands/extcmd.c.
4956 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
4957 (minicmd_mod_SOURCES): New variable.
4958 (minicmd_mod_CFLAGS): Likewise.
4959 (minicmd_mod_LDFLAGS): Likewise.
4960 (extcmd_mod_SOURCES): Likewise.
4961 (extcmd_mod_CFLAGS): Likewise.
4962 (extcmd_mod_LDFLAGS): Likewise.
4963 (boot_mod_SOURCES): Removed.
4964 (boot_mod_CFLAGS): Likewise.
4965 (boot_mod_LDFLAGS): Likewise.
4967 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
4969 (kernel_img_HEADERS): Add command.h.
4970 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
4971 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
4973 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
4974 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
4975 remove the corresponding normal mode command.
4976 (normal_mod_SOURCES): Remove normal/arg.c.
4977 * conf/i386-coreboot.rmk: Likewise.
4978 * conf/i386-efi.rmk: Likewise.
4979 * conf/i386-ieee1275.rmk: Likewise.
4980 * conf/powerpc-ieee1275.rmk: Likewise.
4981 * conf/x86_64-efi.rmk: Likewise.
4983 * include/grub/arg.h: Move from here ...
4984 * include/grub/lib/arg.h: ... to here.
4986 * normal/arg.c: Move from here ...
4987 * lib/arg.c: ... to here.
4989 * commands/extcmd.c: New file.
4990 * commands/minicmd.c: Likewise.
4991 * include/grub/command.h: Likewise.
4992 * include/grub/extcmd.h: Likewise.
4993 * kern/command.c: Likewise.
4994 * kern/corecmd.c: Likewise.
4996 * kern/list.c (grub_list_iterate): Return int instead of void.
4997 (grub_list_insert): New function.
4998 (grub_prio_list_insert): Likewise.
5000 * kern/rescue.c (grub_rescue_command): Removed.
5001 (grub_rescue_command_list): Likewise.
5002 (grub_rescue_register_command): Likewise.
5003 (grub_rescue_unregister_command): Likewise.
5004 (grub_rescue_cmd_boot): Move to minicmd.c
5005 (grub_rescue_cmd_help): Likewise.
5006 (grub_rescue_cmd_info): Likewise.
5007 (grub_rescue_cmd_boot): Likewise.
5008 (grub_rescue_cmd_testload): Likewise.
5009 (grub_rescue_cmd_dump): Likewise.
5010 (grub_rescue_cmd_rmmod): Likewise.
5011 (grub_rescue_cmd_lsmod): Likewise.
5012 (grub_rescue_cmd_exit): Likewise.
5013 (grub_rescue_print_devices): Moved to corecmd.c.
5014 (grub_rescue_print_files): Likewise.
5015 (grub_rescue_cmd_ls): Likewise.
5016 (grub_rescue_cmd_insmod): Likewise.
5017 (grub_rescue_cmd_set): Likewise.
5018 (grub_rescue_cmd_unset): Likewise.
5019 (attempt_normal_mode): Use grub_command_find to get normal module.
5020 (grub_enter_rescue_mode): Use grub_register_core_commands to register
5021 commands, remove grub_rescue_register_command calls.
5023 * normal/command.c (grub_register_command): Removed.
5024 (grub_unregister_command): Likewise.
5025 (grub_command_find): Likewise.
5026 (grub_iterate_commands): Likewise.
5027 (rescue_command): Likewise.
5028 (export_command): Moved to corecmd.c.
5029 (set_command): Removed.
5030 (unset_command): Likewise.
5031 (insmod_command): Likewise.
5032 (rmmod_command): Likewise.
5033 (lsmod_command): Likewise.
5034 (grub_command_init): Likewise.
5036 * normal/completion.c (iterate_command): Use cmd->prio to check for
5038 (complete_arguments): Use grub_extcmd_t structure to find options.
5039 (grub_normal_do_completion): Change function grub_iterate_commands to
5040 grub_command_iterate.
5042 * normal/execute.c (grub_script_execute_cmd): No need to parse
5045 * normal/main.c (grub_dyncmd_dispatcher): New function.
5046 (read_command_list): Register unload commands as dyncmd.
5047 (grub_cmd_normal): Use new command interface, register rescue,
5048 unregister normal at entry, register normal, unregister rescue at exit.
5050 * include/grub/list.h (grub_list_test_t): New type.
5051 (grub_list_iterate): Return int instead of void.
5052 (grub_list_insert): New function.
5053 (GRUB_AS_NAMED_LIST_P): New macro.
5054 (GRUB_AS_PRIO_LIST): Likewise.
5055 (GRUB_AS_PRIO_LIST_P): Likewise.
5056 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
5057 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
5058 (grub_prio_list): New structure.
5059 (grub_prio_list_insert): New function.
5060 (grub_prio_list_remove): New inline function.
5062 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
5063 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
5064 (GRUB_COMMAND_FLAG_MENU): Likewise.
5065 (GRUB_COMMAND_FLAG_BOTH): Likewise.
5066 (GRUB_COMMAND_FLAG_TITLE): Likewise.
5067 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
5068 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
5069 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
5070 (grub_command): Likewise.
5071 (grub_register_command): Likewise.
5072 (grub_command_find): Likewise.
5073 (grub_iterate_commands): Likewise.
5074 (grub_command_init): Likewise.
5075 (grub_arg_parse): Likewise.
5076 (grub_arg_show_help): Likewise.
5078 * include/grub/rescue.h (grub_rescue_register_command): Removed.
5079 (grub_rescue_unregister_command): Likewise.
5081 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
5082 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
5083 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
5085 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
5086 grub_rescue_cmd_initrd.
5087 * include/grub/i386/loader.h: Likewise.
5088 * include/grub/x86_64/loader.h: Likewise.
5090 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
5092 2009-03-21 Bean <bean123ch@gmail.com>
5094 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
5095 instead of stat in mingw environment.
5097 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
5099 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
5101 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
5104 2009-03-21 Bean <bean123ch@gmail.com>
5106 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
5109 2009-03-18 Michel Dänzer <michel@daenzer.net>
5111 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
5112 checking inode flags for EXT4_EXTENTS_FLAG.
5114 2009-03-18 Robert Millan <rmh@aybabtu.com>
5116 * loader/i386/linux.c: Include `<grub/video.h>' and
5117 `<grub/i386/pc/vbe.h>'..
5118 (grub_linux_setup_video): New function. Loosely based on the EFI one.
5119 (grub_linux32_boot): Attempt to configure video settings with
5120 grub_linux_setup_video().
5121 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
5122 to avoid grub_console_fini() which would step out of graphical mode
5125 2009-03-14 Robert Millan <rmh@aybabtu.com>
5127 Fix build on powerpc.
5128 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5130 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5132 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5133 background image command.
5135 2009-03-12 Colin D Bennett <colin@gibibit.com>
5137 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5138 (grub_gfxterm_putchar): Extract pairs of identical calls to
5139 draw_cursor out of conditional blocks.
5141 2009-03-11 Pavel Roskin <proski@gnu.org>
5143 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5144 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5146 2009-03-11 Robert Millan <rmh@aybabtu.com>
5148 * loader/i386/multiboot_elfxx.c
5149 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5151 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5153 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5156 2009-03-11 Robert Millan <rmh@aybabtu.com>
5158 * loader/i386/multiboot.c (code_size): New variable.
5159 (grub_multiboot): Define offsets by adding to `code_size' rather
5160 than subtracting from `grub_multiboot_payload_size'. Provide
5161 4-byte alignment to MBI and others by increasing
5162 `boot_loader_name_length' appropriately.
5164 * loader/i386/multiboot_elfxx.c
5165 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5167 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5172 2009-03-08 Robert Millan <rmh@aybabtu.com>
5174 Make loader/i386/linux.c usable on i386-pc again.
5176 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5178 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
5181 2009-03-07 Bean <bean123ch@gmail.com>
5183 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
5186 2009-03-06 Robert Millan <rmh@aybabtu.com>
5188 Fix display issue on terminals with screen size other than 80x25
5189 (e.g. gfxterm with resolution higher than 640x480).
5191 * normal/main.c (grub_normal_init_page): Display title text in a
5192 position relative to the center of the terminal instead of relying
5193 on a hardcoded offset.
5195 2009-03-04 Robert Millan <rmh@aybabtu.com>
5197 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
5200 * Makefile.in (host_kernel): New variable.
5201 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
5202 scripts instead of just the windows one.
5203 * configure.ac: Initialize and AC_SUBST `host_kernel'.
5205 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5207 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
5209 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5210 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5211 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5212 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5213 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5214 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5216 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5218 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
5219 or if there's no space for the disk label and print the partition number on a
5222 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5224 * util/misc.c: Include <time.h>.
5225 (grub_millisleep): New function.
5227 2009-03-04 Bean <bean123ch@gmail.com>
5229 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
5230 another option -mno-red-zone.
5232 * commands/handler.c: Change module description.
5234 * kern/handler.c: Add missing space at the end of description line.
5236 * kern/list.c: Likewise.
5238 2009-03-03 Robert Millan <rmh@aybabtu.com>
5240 Move more components to the relocation area, and fix mbi pointer
5241 handling to use the destination rather than the origin (thanks to
5242 Vladimir Serbinenko for spotting).
5244 * loader/i386/multiboot.c (mbi_dest): New variable.
5245 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
5246 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
5249 2009-03-01 Bean <bean123ch@gmail.com>
5251 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
5252 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
5253 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
5254 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
5256 * loader/i386/efi/linux.c (acpi_guid): New variable.
5257 (acpi_guid): Likewise.
5258 (EBDA_SEG_ADDR): New constant.
5259 (LOW_MEM_ADDR): Likewise.
5260 (FAKE_EBDA_SEG): Likewise.
5261 (fake_bios_data): New function.
5262 (grub_linux_boot): Call fake_bios_data.
5264 2009-03-01 Bean <bean123ch@gmail.com>
5266 * commands/terminal.c: Removed.
5268 * commands/handler.c: New file.
5270 * include/grub/list.h: Likewise.
5272 * include/grub/handler.h: Likewise.
5274 * kern/list.c: Likewise.
5276 * kern/handler.c: Likewise.
5278 * kern/term.h: Include header file <grub/handler.h>.
5279 (grub_term_input): Move next field to the beginning.
5280 (grub_term_output): Likewise.
5281 (grub_term_input_class): New variable.
5282 (grub_term_output_class): Likewise.
5283 (grub_term_register_input): Changed to inline function.
5284 (grub_term_register_output): Likewise.
5285 (grub_term_unregister_input): Likewise.
5286 (grub_term_unregister_output): Likewise.
5287 (grub_term_set_current_input): Likewise.
5288 (grub_term_set_current_output): Likewise.
5289 (grub_term_get_current_input): Likewise.
5290 (grub_term_get_current_output): Likewise.
5291 (grub_term_iterate_input): Removed.
5292 (grub_term_iterate_output): Likewise.
5294 * kern/term.c (grub_term_list_input): Removed.
5295 (grub_term_list_output): Likewise.
5296 (grub_term_input_class): New variable.
5297 (grub_term_output_class): Likewise.
5298 (grub_cur_term_input): Change variable as macro.
5299 (grub_cur_term_output): Likewise.
5300 (grub_term_register_input): Removed.
5301 (grub_term_register_output): Likewise.
5302 (grub_term_unregister_input): Likewise.
5303 (grub_term_unregister_output): Likewise.
5304 (grub_term_set_current_input): Likewise.
5305 (grub_term_set_current_output): Likewise.
5306 (grub_term_iterate_input): Likewise.
5307 (grub_term_iterate_output): Likewise.
5308 (grub_term_get_current_input): Likewise.
5309 (grub_term_get_current_output): Likewise.
5311 * util/grub-editenv.c: Include header file <grub/handler.h>.
5312 (grub_term_get_current_input): Removed.
5313 (grub_term_get_current_output): Likewise.
5314 (grub_term_input_class): New variable.
5315 (grub_term_output_class): Likewise.
5317 * util/grub-fstest.c (grub_term_get_current_input): Removed.
5318 (grub_term_get_current_output): Likewise.
5319 (grub_term_input_class): New variable.
5320 (grub_term_output_class): Likewise.
5322 * util/grub-probe.c (grub_term_get_current_input): Removed.
5323 (grub_term_get_current_output): Likewise.
5324 (grub_term_input_class): New variable.
5325 (grub_term_output_class): Likewise.
5327 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
5328 (grub_term_get_current_output): Likewise.
5329 (grub_term_input_class): New variable.
5330 (grub_term_output_class): Likewise.
5332 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
5333 (terminal_mod_SOURCES): Likewise.
5334 (terminal_mod_CFLAGS): Likewise.
5335 (terminal_mod_LDFLAGS): Likewise.
5337 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
5339 (kernel_img_SOURCES): Add list.c and handler.c.
5340 (kernel_img_HEADERS): Add list.h and handler.h.
5342 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5344 (kernel_mod_SOURCES): Add list.c and handler.c.
5345 (kernel_mod_HEADERS): Add list.h and handler.h.
5347 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
5349 (kernel_elf_SOURCES): Add list.c and handler.c.
5350 (kernel_elf_HEADERS): Add list.h and handler.h.
5352 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5354 (kernel_elf_SOURCES): Add list.c and handler.c.
5355 (kernel_elf_HEADERS): Add list.h and handler.h.
5357 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5359 (kernel_mod_SOURCES): Add list.c and handler.c.
5360 (kernel_mod_HEADERS): Add list.h and handler.h.
5362 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5364 (kernel_elf_SOURCES): Add list.c and handler.c.
5365 (kernel_elf_HEADERS): Add list.h and handler.h.
5367 2009-02-27 Robert Millan <rmh@aybabtu.com>
5369 Factorize elf32 / elf64 code in Multiboot loader. This will
5370 prevent it from getting out of sync again.
5372 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
5373 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
5374 grub_multiboot_load_elf64): Move from here ...
5375 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
5376 grub_multiboot_load_elf): ... to here (new file).
5378 2009-02-27 Robert Millan <rmh@aybabtu.com>
5380 * util/grub.d/10_linux.in: Rename "single-user mode" to
5383 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5385 Don't leak in SCSI code.
5386 * disk/scsi.c (grub_scsi_close): free `scsi'.
5388 2009-02-27 Robert Millan <rmh@aybabtu.com>
5390 * loader/i386/pc/multiboot.c: Move from here ...
5391 * loader/i386/multiboot.c: ... to here. Update all users.
5393 2009-02-27 Robert Millan <rmh@aybabtu.com>
5395 Patch from Alexandre Bique <bique.alexandre@gmail.com>
5396 * util/i386/pc/grub-setup.c (setup): Fix directory path.
5398 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
5400 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
5403 2009-02-27 Robert Millan <rmh@aybabtu.com>
5405 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
5406 `0x' qualifier as 0 when base is specified as parameter).
5408 2009-02-24 Bean <bean123ch@gmail.com>
5410 * configure.ac: Check for -mcmodel=large in x86_64 target.
5412 * include/grub/efi/api.h (efi_call_10): New macro.
5413 (efi_wrap_10): New function.
5415 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
5416 (GRUB_PE32_REL_BASED_HIGH): Likewise.
5417 (GRUB_PE32_REL_BASED_LOW): Likewise.
5418 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
5419 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
5420 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
5421 (GRUB_PE32_REL_BASED_SECTION): Likewise.
5422 (GRUB_PE32_REL_BASED_REL): Likewise.
5423 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
5424 (GRUB_PE32_REL_BASED_DIR64): Likewise.
5425 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
5427 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
5430 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
5431 (efi_wrap_10): New function.
5433 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
5435 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
5436 MB/MBP model (NV chipset).
5437 (devdata_devs): Add devpath_5 to the list.
5439 * load/i386/efi/linux.c (video_base): Remove variable.
5440 (RGB_MASK): New macro.
5441 (RGB_MAGIC): Likewise.
5442 (LINE_MIN): Likewise.
5443 (LINE_MAX): Likewise.
5444 (FBTEST_STEP): Likewise.
5445 (FBTEST_COUNT): Likewise.
5446 (fb_list): New variable.
5447 (grub_find_video_card): Remove function.
5448 (find_framebuf): New function.
5449 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
5452 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
5455 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
5457 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
5459 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
5462 2009-02-22 Robert Millan <rmh@aybabtu.com>
5464 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
5465 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
5466 in our relocation, instead of using it directly from heap. Also
5467 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
5469 2009-02-21 Robert Millan <rmh@aybabtu.com>
5471 Implement USB keyboard support (based on patch by Marco Gerards)
5473 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
5474 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
5475 (usb_keyboard_mod_LDFLAGS): New variables.
5477 * term/usb_keyboard.c: New file.
5479 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5481 Corrected wrong declaration
5483 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
5485 2009-02-14 Christian Franke <franke@computer.org>
5487 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
5488 (grub_lspci_iter): Print class code and programming interface byte.
5490 2009-02-14 Christian Franke <franke@computer.org>
5492 * gendistlist.sh: Ignore `.svn' directories.
5494 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
5496 * fs/fat.c: Add 2009 to Copyright line.
5498 2009-02-14 Christian Franke <franke@computer.org>
5500 * commands/hdparm.c: New file. Provides `hdparm' command
5501 which sends ATA commands via grub_disk_ata_pass_through ().
5503 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
5505 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
5506 and <grub/cpu/io.h> to include/grub/ata.h.
5507 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
5508 (GRUB_CDROM_SECTOR_SIZE): Remove.
5509 (GRUB_ATA_*): Move to include/grub/ata.h.
5510 (GRUB_ATAPI_*): Likewise.
5511 (enum grub_ata_commands): Likewise.
5512 (enum grub_ata_timeout_milliseconds): Likewise.
5513 (struct grub_ata_device): Likewise.
5514 (grub_ata_regset): Likewise.
5515 (grub_ata_regget): Likewise.
5516 (grub_ata_regset2): Likewise.
5517 (grub_ata_regget2): Likewise.
5518 (grub_ata_check_ready): Likewise.
5519 (grub_ata_wait_not_busy): Remove static, exported in
5521 (grub_ata_wait_drq): Likewise.
5522 (grub_ata_pio_read): Likewise.
5524 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
5525 function for hdparm.mod.
5527 * include/grub/ata.h: New file, contains declarations from
5529 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
5531 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
5532 (grub_disk_ata_pass_through): New exported variable.
5534 * kern/disk.c (grub_disk_ata_pass_through): New variable.
5536 2009-02-13 Colin D Bennett <colin@gibibit.com>
5538 Support multiple fallback entries, and provide an API to support
5539 executing default+fallback menu entries. Renamed the `terminal' menu
5542 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
5543 variable declaration.
5544 (grub_menu_execute_callback): New structure declaration.
5545 (grub_menu_execute_callback_t): New typedef.
5546 (grub_menu_execute_with_fallback): New function declaration.
5547 (grub_menu_get_entry): Likewise.
5548 (grub_menu_get_timeout): Likewise.
5549 (grub_menu_set_timeout): Likewise.
5551 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
5553 * normal/menu.c (grub_wait_after_message): Moved to
5554 `normal/menu_text.c'.
5555 (draw_border): Likewise.
5556 (print_message): Likewise.
5557 (print_entry): Likewise.
5558 (print_entries): Likewise.
5559 (grub_menu_init_page): Likewise.
5560 (get_entry_number): Likewise.
5561 (print_timeout): Likewise.
5562 (run_menu): Likewise.
5563 (grub_menu_execute_entry): Likewise.
5564 (show_text_menu): Likewise.
5565 (get_and_remove_first_entry_number): New function.
5566 (grub_menu_execute_with_fallback): Likewise.
5567 (get_entry): Renamed to ...
5568 (grub_menu_get_entry): .. this and made it global.
5569 (get_timeout): Renamed to ...
5570 (grub_menu_get_timeout): ... this and made it global.
5571 (set_timeout): Renamed to ...
5572 (grub_menu_set_timeout): ... this and made it global.
5573 (grub_normal_terminal_menu_viewer): Renamed to ...
5574 (grub_normal_text_menu_viewer): ... this.
5576 * normal/menu_text.c: New file. Extracted text-menu-specific code
5579 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
5580 (normal_mod_SOURCES): Likewise.
5582 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5583 (normal_mod_SOURCES): Likewise.
5585 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5586 (normal_mod_SOURCES): Likewise.
5588 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
5589 (normal_mod_SOURCES): Likewise.
5591 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5592 (normal_mod_SOURCES): Likewise.
5594 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5595 (normal_mod_SOURCES): Likewise.
5597 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5598 (normal_mod_SOURCES): Likewise.
5600 2009-02-11 Robert Millan <rmh@aybabtu.com>
5602 * util/grub.d/00_header.in: Update old reference to `font' command.
5604 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
5606 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
5608 Based on patch from Javier MartÃn.
5610 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
5612 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
5613 to avoid false positives with FAT.
5614 (grub_fstest_SOURCES): Likewise.
5615 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
5616 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5618 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5619 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5620 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5622 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
5624 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
5625 bpb.version_specific.fat12_or_fat16.fstype and
5626 bpb.version_specific.fat32.fstype.
5628 2009-02-08 Robert Millan <rmh@aybabtu.com>
5630 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
5632 2009-02-08 Robert Millan <rmh@aybabtu.com>
5634 * Makefile.in (host_os, host_cpu): New variables.
5635 (target_os): Remove. Update all users.
5637 2009-02-08 Marco Gerards <marco@gnu.org>
5639 * Makefile.in (enable_grub_emu_usb): New variable.
5640 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
5641 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
5642 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
5643 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
5644 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
5645 `usbtest.mod' and `usbms.mod'.
5646 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
5647 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
5648 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
5649 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
5650 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
5653 * disk/usbms.c: New file.
5655 * include/grub/usb.h: Likewise.
5657 * include/grub/usbtrans.h: Likewise.
5659 * include/grub/usbdesc.h: Likewise.
5661 * bus/usb/usbtrans.c: Likewise.
5663 * bus/usb/ohci.c: Likewise.
5665 * bus/usb/uhci.c: Likewise.
5667 * bus/usb/usbhub.c: Likewise.
5669 * bus/usb/usb.c: Likewise.
5671 * commands/usbtest.c: Likewise.
5673 * util/usb.c: Likewise.
5675 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
5677 * configure.ac: Test for libusb presence.
5679 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
5681 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
5683 * kern/mm.c: Add more comments.
5685 2009-02-08 Robert Millan <rmh@aybabtu.com>
5687 Patch from Javier MartÃn.
5688 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
5689 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
5691 2009-02-08 Robert Millan <rmh@aybabtu.com>
5693 * fs/cpio.c: Split tar functionality to ...
5694 * fs/tar.c: ... here (new file). Update all users.
5696 2009-02-07 Robert Millan <rmh@aybabtu.com>
5698 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
5699 backward-incompatible features.
5701 Based on patch from Javier MartÃn, with some adjustments.
5703 2009-02-07 Michael Scherer <misc@mandriva.org>
5705 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
5707 2009-02-07 Robert Millan <rmh@aybabtu.com>
5709 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
5710 position of `disk/lvm.c' to ensure grub_init_all() always picks it
5711 after the RAID stuff.
5713 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
5715 Fixes problem when running vbetest command as reported by
5716 Vladimir Serbinenko <phcoder@gmail.com>.
5718 * (grub_vbe_set_video_mode): Fixed problem with text modes.
5720 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
5722 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
5723 /dev/md/NpN style mdraid devices.
5725 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
5727 * util/unifont2pff.rb: Remove.
5729 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
5731 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
5734 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
5736 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
5737 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5738 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5739 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5740 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5741 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5742 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5744 2009-02-02 Christian Franke <franke@computer.org>
5746 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
5748 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
5750 * INSTALL: Note that we now require at least autoconf 2.59 and
5751 that LZO is optional.
5753 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
5755 Base on patch on bug #24154 created by Tomas Tintera
5758 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
5760 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
5762 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
5763 <bero@arklinux.org>.
5765 * normal/parser.y (script_init): Add missing semicolon.
5767 2009-01-31 Colin D Bennett <colin@gibibit.com>
5769 * normal/main.c: Add include to grub/menu_viewer.h.
5770 (free_menu_entry_classes): Added.
5771 (grub_normal_menu_addentry): Added class property handling.
5772 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
5773 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
5775 * normal/menu_viewer.c: New file.
5777 * normal/menu.c (run_menu_entry): Renamed to ...
5778 (grub_menu_execute_entry): ... this and made it as global.
5779 (grub_menu_run): Renamed to ...
5780 (show_text_menu): ... this and made it local.
5781 (show_text_menu): Adapt to new function names.
5782 (grub_normal_terminal_menu_viewer): New global variable.
5784 * include/grub/menu.h: New file.
5786 * include/grub/menu_viewer.h: New file.
5788 * include/grub/normal.h: Added include to grub/menu.h.
5789 (grub_menu_entry): Moved to include/grub/menu.h.
5790 (grub_menu_entry_t): Likewise.
5791 (grub_menu): Likewise.
5792 (grub_menu_t): Likewise.
5793 (grub_normal_terminal_menu_viewer): Added.
5794 (grub_menu_execute_entry): Likewise.
5795 (grub_menu_run): Removed.
5797 * DISTLIST: Added include/grub/menu.h.
5798 Added include/grub/menu_viewer.h.
5799 Added normal/menu_viewer.c.
5801 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
5803 * normal/execute.c (grub_script_execute_menuentry): Changed to use
5804 arglist for menutitle arguments.
5806 * normal/main.c (grub_normal_menu_addentry): Likewise.
5808 * normal/parser.y (menuentry): Likewise.
5810 * normal/script.c (grub_script_create_cmdmenu): Likewise.
5812 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
5813 (grub_script_create_cmdmenu): Likewise.
5815 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
5817 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
5820 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
5822 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
5824 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
5826 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
5828 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
5830 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
5832 2009-01-30 Christian Franke <franke@computer.org>
5834 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
5835 in option help text.
5837 2009-01-27 Pavel Roskin <proski@gnu.org>
5839 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
5841 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
5843 * commands/lsmmap.c: Add include to grub/machine/memory.h.
5845 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
5847 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
5848 unregister function.
5850 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
5852 * disk/scsi.c (grub_scsi_read): Fix sign problem.
5854 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
5856 * util/grub-mkfont.c (usage): Fix typo.
5858 * util/elf/grub-mkimage.c (load_modules): Fix warning.
5860 2009-01-26 Daniel Mierswa <impulze@impulze.org>
5862 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
5864 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
5866 * kern/misc.c (grub_strcasecmp): New function.
5867 (grub_strcasecmp): Use grub_size_t instead of int for length.
5869 * include/grub/misc.h: Update function prototypes.
5871 2009-01-26 Robert Millan <rmh@aybabtu.com>
5873 * configure.ac: Fix cross-compilation check.
5875 2009-01-22 Christian Franke <franke@computer.org>
5877 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
5878 (precision) digit string. Allow `.format2' without `format1' (width).
5879 Limit input chars for `%s' output to `format2' if specified. This is
5880 compatible with standard printf ().
5882 2009-01-22 Christian Franke <franke@computer.org>
5884 * disk/ata.c (grub_ata_wait_status): Replace by ...
5885 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
5886 other status bits may be invalid while BSY is asserted.
5887 (grub_ata_check_ready): New function.
5888 (grub_ata_cmd): Removed.
5889 (grub_ata_wait_drq): New function.
5890 (grub_ata_strncpy): Remove inline.
5891 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
5892 and error check now done by grub_ata_wait_drq ().
5893 (grub_ata_pio_write): Likewise.
5894 (grub_atapi_identify): Set DEV before check for !BSY. Use
5895 grub_ata_wait_drq () to wait for data.
5896 (grub_ata_device_initialize): Add status register check to
5897 detect missing SATA slave devices. Add debug messages.
5898 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
5899 (grub_atapi_packet): Set DEV before check for !BSY. Replace
5900 transfer loop by grub_ata_pio_write ().
5901 (grub_ata_identify): Set DEV before check for !BSY. Use
5902 grub_ata_wait_drq () to wait for data.
5903 (grub_ata_setaddress): Set DEV before check for !BSY.
5904 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
5905 read/write in one loop. Fix invalid command on write. Fix incomplete
5906 command on (size % batch) == 0. Add missing error check after write of
5907 last block. Add debug messages.
5908 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
5910 2009-01-19 Christian Franke <franke@computer.org>
5912 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
5913 (GRUB_ATAPI_IREASON_*): Likewise.
5914 (grub_ata_pio_write): Fix timeout error return.
5915 (grub_atapi_identify): Add grub_ata_wait () after cmd.
5916 (grub_atapi_wait_drq): New function.
5917 (grub_atapi_packet): New parameter `size'.
5918 Use grub_atapi_wait_drq () and direct write instead of
5919 grub_ata_pio_write ().
5920 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
5921 reads the number of bytes requested by the device for each DRQ
5923 (grub_atapi_write): Remove old implementation, return not
5924 implemented instead.
5926 2009-01-19 Christian Franke <franke@computer.org>
5928 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
5929 of 512 to calculate data size.
5930 (grub_scsi_read12): Likewise.
5931 (grub_scsi_write10): Likewise.
5932 (grub_scsi_write12): Likewise.
5933 (grub_scsi_read): Adjust size according to blocksize.
5934 Add checks for invalid blocksize and unaligned transfer.
5936 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
5938 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
5940 * term/gfxterm.c (write_char): Fix background rendering for wide
5943 2009-01-19 Robert Millan <rmh@aybabtu.com>
5945 * config.guess: Update to latest version from config git.
5946 * config.sub: Likewise.
5948 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
5950 * Makefile.in: Change font compilation to use new grub-mkfont instead
5953 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
5954 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
5955 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
5956 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
5957 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
5958 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
5959 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
5960 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
5961 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
5963 2009-01-16 Christian Franke <franke@computer.org>
5965 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
5966 (enum grub_ata_timeout_milliseconds): New enum.
5967 (grub_ata_wait_status): Add parameter milliseconds.
5968 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
5969 recovery from timed-out commands.
5970 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
5971 return grub_errno instead of REG_ERROR.
5972 (grub_ata_pio_write): Add parameter milliseconds.
5973 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
5974 Pass milliseconds to grub_ata_wait_status () and
5975 grub_ata_pio_read ().
5976 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
5977 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
5978 grub_ata_wait_status (). Fix IDENTIFY timeout check.
5979 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
5980 It is not suitable for device detection, because DEV bit is ignored,
5981 the command may run too long, and not all devices set the signature
5983 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
5984 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
5985 Fix device selection, DEV bit must be set first to address the registers
5986 of the correct device.
5987 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
5988 grub_ata_pio_read/write ().
5989 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
5990 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
5992 2009-01-13 Carles Pina i Estany <carles@pina.cat>
5994 * util/grub-editenv.c (main): Use fseeko(), not fseek().
5996 2009-01-13 Bean <bean123ch@gmail.com>
5998 * util/grub-mkfont.c (write_font): forget to remove some debug code.
6000 2009-01-13 Bean <bean123ch@gmail.com>
6002 * Makefile.in: (enable_grub_mkfont): New variable.
6003 (freetype_cflags): Likewise.
6004 (freetype_libs): Likewise.
6006 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
6007 (grub_mkfont_SOURCES): New variable.
6008 (grub_mkfont_CFLAGS): Likewise.
6009 (grub_mkfont_LDFLAGS): Likewise.
6011 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
6012 library if `--enable-grub-mkfont' is requested.
6013 (enable_grub_mkfont): New variable.
6014 (freetype_cflags): Likewise.
6015 (freetype_libs): Likewise.
6017 * util/grub-mkfont.c: New file.
6019 2009-01-12 Christian Franke <franke@computer.org>
6021 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
6022 mode check. Fix setting of compat_use[].
6024 2009-01-10 Robert Millan <rmh@aybabtu.com>
6026 Update a few copyright years which we forgot to do in 2008 (only for
6027 files whose changes made in 2008 were copyright-significant)
6029 * Makefile.in: Add 2008 to Copyright line.
6030 * disk/ieee1275/ofdisk.c: Likewise.
6031 * disk/efi/efidisk.c: Likewise.
6032 * kern/dl.c: Likewise.
6033 * kern/sparc64/ieee1275/init.c: Likewise.
6034 * kern/mm.c: Likewise.
6035 * kern/efi/mm.c: Likewise.
6036 * boot/i386/pc/boot.S: Likewise.
6037 * genfslist.sh: Likewise.
6038 * fs/iso9660.c: Likewise.
6039 * fs/hfs.c: Likewise.
6040 * fs/jfs.c: Likewise.
6041 * fs/minix.c: Likewise.
6042 * fs/ufs.c: Likewise.
6043 * gensymlist.sh.in: Likewise.
6044 * genkernsyms.sh.in: Likewise.
6045 * include/grub/misc.h: Likewise.
6046 * include/grub/types.h: Likewise.
6047 * include/grub/symbol.h: Likewise.
6048 * include/grub/elf.h: Likewise.
6049 * include/grub/kernel.h: Likewise.
6050 * include/grub/disk.h: Likewise.
6051 * include/grub/dl.h: Likewise.
6052 * include/grub/i386/linux.h: Likewise.
6053 * include/grub/i386/pc/biosdisk.h: Likewise.
6054 * include/grub/efi/api.h: Likewise.
6055 * include/grub/efi/pe32.h: Likewise.
6056 * include/grub/util/misc.h: Likewise.
6057 * normal/execute.c: Likewise.
6058 * normal/arg.c: Likewise.
6059 * normal/completion.c: Likewise.
6060 * normal/lexer.c: Likewise.
6061 * normal/parser.y: Likewise.
6062 * normal/misc.c: Likewise.
6063 * commands/i386/pc/vbeinfo.c: Likewise.
6064 * commands/hexdump.c: Likewise.
6065 * commands/terminal.c: Likewise.
6066 * commands/ls.c: Likewise.
6067 * commands/help.c: Likewise.
6068 * partmap/pc.c: Likewise.
6069 * loader/efi/chainloader.c: Likewise.
6070 * loader/multiboot_loader.c: Likewise.
6071 * loader/i386/pc/multiboot2.c: Likewise.
6072 * term/efi/console.c: Likewise.
6073 * term/i386/pc/serial.c: Likewise.
6074 * util/lvm.c: Likewise.
6075 * util/console.c: Likewise.
6076 * util/i386/efi/grub-mkimage.c: Likewise.
6077 * util/raid.c: Likewise.
6079 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
6081 * commands/videotest.c: Removed include to grub/machine/memory.h.
6083 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
6084 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
6085 (video_mod_SOURCES): Removed.
6086 (video_mod_CFLAGS): Likewise.
6087 (video_mod_LDFLAGS): Likewise.
6088 (gfxterm_mod_SOURCES): Likewise.
6089 (gfxterm_mod_CFLAGS): Likewise.
6090 (gfxterm_mod_LDFLAGS): Likewise.
6091 (videotest_mod_SOURCES): Likewise.
6092 (videotest_mod_CFLAGS): Likewise.
6093 (videotest_mod_LDFLAGS): Likewise.
6094 (bitmap_mod_SOURCES): Likewise.
6095 (bitmap_mod_CFLAGS): Likewise.
6096 (bitmap_mod_LDFLAGS): Likewise.
6097 (tga_mod_SOURCES): Likewise.
6098 (tga_mod_CFLAGS): Likewise.
6099 (tga_mod_LDFLAGS): Likewise.
6100 (jpeg_mod_SOURCES): Likewise.
6101 (jpeg_mod_CFLAGS): Likewise.
6102 (jpeg_mod_LDFLAGS): Likewise.
6103 (png_mod_SOURCES): Likewise.
6104 (png_mod_CFLAGS): Likewise.
6105 (png_mod_LDFLAGS): Likewise.
6107 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
6108 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
6109 (video_mod_SOURCES): Added.
6110 (video_mod_CFLAGS): Likewise.
6111 (video_mod_LDFLAGS): Likewise.
6112 (videotest_mod_SOURCES): Likewise.
6113 (videotest_mod_CFLAGS): Likewise.
6114 (videotest_mod_LDFLAGS): Likewise.
6115 (bitmap_mod_SOURCES): Likewise.
6116 (bitmap_mod_CFLAGS): Likewise.
6117 (bitmap_mod_LDFLAGS): Likewise.
6118 (tga_mod_SOURCES): Likewise.
6119 (tga_mod_CFLAGS): Likewise.
6120 (tga_mod_LDFLAGS): Likewise.
6121 (jpeg_mod_SOURCES): Likewise.
6122 (jpeg_mod_CFLAGS): Likewise.
6123 (jpeg_mod_LDFLAGS): Likewise.
6124 (png_mod_SOURCES): Likewise.
6125 (png_mod_CFLAGS): Likewise.
6126 (png_mod_LDFLAGS): Likewise.
6127 (gfxterm_mod_SOURCES): Likewise.
6128 (gfxterm_mod_CFLAGS): Likewise.
6129 (gfxterm_mod_LDFLAGS): Likewise.
6131 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6132 grub/machine/console.h.
6134 2009-01-04 Jerone Young <jerone@gmail.com>
6136 Make on screen instructions clearer
6138 Based on patch created by Jidanni <jidanni@jidanni.org>
6140 * normal/menu.c: print clearer instructions on the screen
6142 2009-01-02 Colin D Bennett <colin@gibibit.com>
6146 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6147 build system and fixed gfxterm.c to work with different sized fonts.
6149 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6151 * configure: Re-generated.
6153 * DISTLIST: Removed font/manager.c.
6155 Added font/font_cmd.c.
6157 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6160 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6162 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6164 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6166 * normal/menu.c: Likewise.
6168 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6169 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6171 * include/grub/font.h: Replaced with new file.
6173 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6174 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6175 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6176 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6177 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6178 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
6179 fg_red, fg_green, fg_blue, fg_alpha.
6180 (grub_video_adapter): Removed blit_glyph.
6181 (grub_video_blit_glyph): Removed.
6183 * font/manager.c: Removed file.
6185 * font/font.c: New file.
6187 * font/font_cmd.c: Likewise.
6189 * video/video.c (grub_video_blit_glyph): Removed.
6191 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
6192 (grub_video_vbe_map_rgba): Likewise.
6193 (grub_video_vbe_unmap_color_int): Likewise.
6194 (grub_video_vbe_blit_glyph): Removed.
6195 (grub_video_vbe_adapter): Removed blit_glyph.
6197 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
6198 (get_pixel): Likewise.
6199 (set_pixel): Likewise.
6201 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
6203 * term/gfxterm.c: Adapted to new font engine.
6205 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
6207 * term/i386/pc/vga.c: Likewise.
6209 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
6211 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6213 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6215 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6217 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6219 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6221 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6223 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6225 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6227 * util/grub.d/00_header.in: Changed to use new loadfont command.
6229 * util/grub-mkconfig_lib.in: Changed font extension.
6231 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
6233 * util/getroot.c (grub_util_get_grub_dev): Add support for
6234 /dev/md/dNNpNN style partitionable mdraid devices.
6236 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
6238 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
6239 at a time limit of the PXE TFTP API correctly.
6240 (grub_pxefs_close): Likewise.
6242 2008-11-29 Robert Millan <rmh@aybabtu.com>
6244 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
6245 grub_ata_device_initialize() calls.
6247 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
6249 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
6251 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
6253 2008-11-28 Robert Millan <rmh@aybabtu.com>
6255 Fix build on powerpc-ieee1275. Based on patch created by
6256 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
6257 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6258 `kern/ieee1275/mmap.c'.
6259 * include/grub/powerpc/ieee1275/memory.h: New file.
6261 Provide grub-install on coreboot.
6262 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
6263 (grub_install_SOURCES): New variable.
6264 * util/i386/pc/grub-install.in: Add a few condition checks to make it
6267 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
6269 * util/grub-fstest.c (grub_term_get_current_input): Change return type
6270 to `grub_term_input_t'.
6271 (grub_term_get_current_output): Change return type to
6272 `grub_term_output_t'.
6274 2008-11-22 Robert Millan <rmh@aybabtu.com>
6276 Fix breakage on coreboot due to declaration mismatch.
6277 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
6278 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
6279 grub_vga_text_cls().
6281 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
6282 comments. Avoid copying one more byte than necessary (just in case).
6284 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
6285 to 0x200000 (avoids trouble with some OFW implementations, and matches
6286 with the one in Yaboot).
6287 Reported by Manoel Abranches
6289 2008-11-20 Robert Millan <rmh@aybabtu.com>
6291 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
6292 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
6294 * util/grub-mkconfig_lib.in (grub_warn): New function.
6295 (convert_system_path_to_grub_path): Use grub_warn() when issuing
6296 warnings, to obtain consistent formatting.
6297 * util/grub.d/00_header.in: Likewise.
6298 * util/update-grub_lib.in: Likewise.
6300 * loader/i386/linux.c (allocate_pages): Fix a warning.
6301 Move comment text to `#error' stanza.
6303 Harmonize ieee1275's grub_available_iterate() with the generic
6304 grub_machine_mmap_iterate() interface (fixes a recently-introduced
6305 build problem on i386-ieee1275):
6306 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
6307 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
6308 parameter `type'. Update all users of this function.
6309 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
6310 `kern/ieee1275/mmap.c'.
6311 * kern/ieee1275/init.c
6312 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
6314 (grub_machine_mmap_iterate): ... this.
6315 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
6316 return type to `grub_err_t'. Update all implementations of this
6318 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
6321 Add `lsmmap' command (lists firmware-provided memory map):
6322 * commands/lsmmap.c: New file.
6323 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
6324 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
6326 * conf/powerpc-ieee1275.rmk: Likewise.
6327 * conf/i386-coreboot.rmk: Likewise.
6328 * conf/i386-ieee1275.rmk: Likewise.
6330 2008-11-19 Robert Millan <rmh@aybabtu.com>
6332 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
6333 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
6334 constraints to initrd allocation (based on code from
6335 loader/i386/pc/linux.c). Without them, initrd was allocated too high
6336 for Linux to find it.
6338 2008-11-14 Robert Millan <rmh@aybabtu.com>
6340 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
6341 order to cope with duplicate slashes.
6343 2008-11-14 Robert Millan <rmh@aybabtu.com>
6345 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
6346 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
6347 don't want to mess with lower memory, because it is used in the Linux
6350 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
6351 an appropriate place in lower memory, between 0x10000 and 0x90000,
6352 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
6353 is in our heap (probably as a result of it being corrupted during
6354 decompression). Add #error instance with comment to explain why this
6355 loader isn't currently usable on PC/BIOS.
6357 2008-11-14 Robert Millan <rmh@aybabtu.com>
6359 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
6360 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
6362 2008-11-12 Robert Millan <rmh@aybabtu.com>
6364 Make loader/i386/linux.c buildable on i386-pc (although disabled).
6366 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
6367 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
6369 * include/grub/i386/pc/memory.h: ... to here.
6371 2008-11-12 Robert Millan <rmh@aybabtu.com>
6373 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
6376 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
6377 (grub_console_cur_color, grub_console_real_putchar)
6378 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6379 (grub_console_setcolorstate, grub_console_setcolor)
6380 (grub_console_getcolor): Move from here ...
6381 * include/grub/i386/vga_common.h: ... to here (new file).
6383 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
6384 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
6386 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
6387 `<grub/i386/vga_common.h>'.
6389 2008-11-12 Robert Millan <rmh@aybabtu.com>
6391 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
6392 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
6393 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
6395 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6396 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
6398 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
6399 grub_console_init() with call to grub_vga_text_init().
6400 (grub_machine_fini): Replace call to
6401 grub_console_fini() with call to grub_vga_text_fini() and
6402 grub_at_keyboard_fini().
6404 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
6405 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6406 (grub_console_setcolorstate, grub_console_setcolor)
6407 (grub_console_getcolor): New function prototypes.
6409 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
6410 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
6411 (grub_vga_text_setcursor): Static-ize.
6412 (grub_vga_text_term): New structure.
6413 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
6415 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
6416 (grub_console_cur_color, grub_console_standard_color)
6417 (grub_console_normal_color, grub_console_highlight_color)
6418 (map_char, grub_console_putchar, grub_console_getcharwidth)
6419 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
6420 (grub_console_getcolor): Move from here ...
6421 * term/i386/vga_common.c: ... to here (same function names).
6423 2008-11-12 Robert Millan <rmh@aybabtu.com>
6425 Use newly-added Multiboot support in coreboot.
6427 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6428 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
6430 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
6431 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
6432 (codestart): Store the MBI in `startup_multiboot_info' when we're
6433 being loaded using Multiboot.
6435 * kern/i386/coreboot/init.c (grub_machine_init): Move
6436 grub_at_keyboard_init() call to beginning of function (useful for
6437 debugging). Call grub_machine_mmap_init() before attempting to use
6438 grub_machine_mmap_iterate().
6439 (grub_lower_mem, grub_upper_mem): Move from here ...
6440 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
6443 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
6446 2008-11-12 Robert Millan <rmh@aybabtu.com>
6448 Fix a regression introduced by the at_keyboard.mod split. Because
6449 some terminals are default on some platforms and non-default on
6450 others, the first terminal being registered determines which is
6451 going to be default.
6453 * kern/term.c (grub_term_register_input): If this is the first
6454 terminal being registered, set it as the current one.
6455 (grub_term_register_output): Likewise.
6457 * term/efi/console.c (grub_console_init): Do not call
6458 grub_term_set_current_output() or grub_term_set_current_input().
6459 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
6460 * term/i386/pc/console.c (grub_console_init): Likewise.
6461 (grub_console_fini): Do not call grub_term_set_current_input()
6462 (but leave grub_term_set_current_output() to restore text mode).
6464 2008-11-10 Robert Millan <rmh@aybabtu.com>
6466 * util/grub.d/00_header.in: Add backward compatibility check for
6467 versions of terminal.mod that don't understand `terminal_input' or
6470 2008-11-09 Robert Millan <rmh@aybabtu.com>
6472 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
6473 `terminal_input' / `terminal_output', not `terminal'.
6475 2008-11-08 Robert Millan <rmh@aybabtu.com>
6477 * Makefile.in (include_DATA): Fix srcdir=. assumption.
6478 (DISTCLEANFILES): Add `build_env.mk'.
6480 2008-11-08 Robert Millan <rmh@aybabtu.com>
6482 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
6483 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6484 members. Update all users.
6485 * util/console.c (grub_ncurses_term): Split in ...
6486 (grub_ncurses_term_input): ... this, and ...
6487 (grub_ncurses_term_output): ... this. Update all users.
6488 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
6490 2008-11-08 Robert Millan <rmh@aybabtu.com>
6492 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
6493 (PKGDATA): Add $(pkgdata_SRCDIR).
6494 (pkglib_BUILDDIR): New variable.
6495 (pkgdata_SRCDIR): New variable.
6496 (build_env.mk): New target.
6497 (include_DATA): New variable.
6498 (install-local): Install $(include_DATA) files in $(includedir).
6500 2008-11-07 Pavel Roskin <proski@gnu.org>
6502 * gendistlist.sh: Use C locale for sorting to ensure consistent
6503 output on all systems.
6505 * util/grub.d/00_header.in: Remove incorrect space before
6508 2008-11-07 Robert Millan <rmh@aybabtu.com>
6510 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
6512 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
6513 * loader/multiboot_loader.c (find_multi_boot2_header): New function
6514 (based on find_multi_boot1_header).
6515 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
6516 using find_multi_boot2_header(), and abort if neither Multiboot or
6517 Multiboot headers were found.
6519 2008-11-07 Robert Millan <rmh@aybabtu.com>
6521 Modularize at_keyboard.mod:
6523 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
6524 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
6525 (at_keyboard_mod_LDFLAGS): New variables.
6527 Actual terminal split:
6529 * include/grub/term.h (struct grub_term): Split in ...
6530 (struct grub_term_input): ... this, and ...
6531 (struct grub_term_output): ... this. Update all users.
6532 (grub_term_set_current): Split in ...
6533 (grub_term_set_current_input): ... this, and ...
6534 (grub_term_set_current_output): ... this.
6535 (grub_term_get_current): Split in ...
6536 (grub_term_get_current_input): ... this, and ...
6537 (grub_term_get_current_output): ... this.
6538 (grub_term_register): Split in ...
6539 (grub_term_register_input): ... this, and ...
6540 (grub_term_register_output): ... this.
6541 (grub_term_unregister): Split in ...
6542 (grub_term_unregister_input): ... this, and ...
6543 (grub_term_unregister_output): ... this.
6544 (grub_term_iterate): Split in ...
6545 (grub_term_iterate_input): ... this, and ...
6546 (grub_term_iterate_output): ... this.
6548 * kern/term.c (grub_term_list): Split in ...
6549 (grub_term_list_input): ... this, and ...
6550 (grub_term_list_output): ... this. Update all users.
6551 (grub_cur_term): Split in ...
6552 (grub_cur_term_input): ... this, and ...
6553 (grub_cur_term_output): ... this. Update all users.
6554 (grub_term_set_current): Split in ...
6555 (grub_term_set_current_input): ... this, and ...
6556 (grub_term_set_current_output): ... this.
6557 (grub_term_get_current): Split in ...
6558 (grub_term_get_current_input): ... this, and ...
6559 (grub_term_get_current_output): ... this.
6560 (grub_term_register): Split in ...
6561 (grub_term_register_input): ... this, and ...
6562 (grub_term_register_output): ... this.
6563 (grub_term_unregister): Split in ...
6564 (grub_term_unregister_input): ... this, and ...
6565 (grub_term_unregister_output): ... this.
6566 (grub_term_iterate): Split in ...
6567 (grub_term_iterate_input): ... this, and ...
6568 (grub_term_iterate_output): ... this.
6570 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
6571 a check for input and one for output (and only attempt to get keys
6572 from user when input works).
6574 * util/grub-probe.c (grub_term_get_current): Split in ...
6575 (grub_term_get_current_input): ... this, and ...
6576 (grub_term_get_current_output): ... this.
6577 * util/grub-fstest.c: Likewise.
6578 * util/i386/pc/grub-setup.c: Likewise.
6579 * util/grub-editenv.c: Likewise.
6581 Portability adjustments:
6583 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
6584 `term/i386/pc/at_keyboard.c'.
6585 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
6586 grub_keyboard_controller_init() (now handled by terminal .init).
6587 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
6588 grub_at_keyboard_init().
6589 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
6590 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
6591 at_keyboard.mod via input terminal interface).
6592 * include/grub/i386/coreboot/console.h: Convert into a stub for
6593 `<grub/i386/pc/console.h>'.
6595 Migrate full terminals to new API:
6597 * term/efi/console.c (grub_console_term): Split into ...
6598 (grub_console_term_input): ... this, and ...
6599 (grub_console_term_output): ... this. Update all users.
6600 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
6601 (grub_ofconsole_init): Split into ...
6602 (grub_ofconsole_init_input): ... this, and ...
6603 (grub_ofconsole_init_output): ... this.
6604 (grub_ofconsole_term): Split into ...
6605 (grub_ofconsole_term_input): ... this, and ...
6606 (grub_ofconsole_term_output): ... this. Update all users.
6607 * term/i386/pc/serial.c (grub_serial_term): Split into ...
6608 (grub_serial_term_input): ... this, and ...
6609 (grub_serial_term_output): ... this. Update all users.
6610 * term/i386/pc/console.c (grub_console_term): Split into ...
6611 (grub_console_term_input): ... this, and ...
6612 (grub_console_term_output): ... this. Update all users.
6613 (grub_console_term_input): Only enable it on PC/BIOS platform.
6614 (grub_console_init): Remove grub_keyboard_controller_init() call.
6616 Migrate input terminals to new API:
6618 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
6619 `i386' and `i386/pc' to enable build on x86_64 (this driver is
6620 i386-specific anyway).
6621 (grub_console_checkkey): Rename to ...
6622 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
6624 (grub_keyboard_controller_orig): New variable.
6625 (grub_console_getkey): Rename to ...
6626 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
6628 (grub_keyboard_controller_init): Static-ize. Save original
6629 controller value so that it can be restored ...
6630 (grub_keyboard_controller_fini): ... here (new function).
6631 (grub_at_keyboard_term): New structure.
6632 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
6635 Migrate output terminals to new API:
6637 * term/i386/pc/vga.c (grub_vga_term): Change type to
6638 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6639 members. Update all users.
6640 * term/gfxterm.c (grub_video_term): Change type to
6641 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6642 members. Update all users.
6643 * include/grub/i386/pc/console.h (grub_console_checkkey)
6644 (grub_console_getkey): Do not export (no longer needed by gfxterm,
6647 Migrate `terminal' command and userland tools to new API:
6649 * commands/terminal.c (grub_cmd_terminal): Split into ...
6650 (grub_cmd_terminal_input): ... this, and ...
6651 (grub_cmd_terminal_output): ... this.
6652 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
6653 `terminal_input' and `terminal_output'.
6654 * util/grub.d/00_header.in: Adjust `terminal' calls to new
6655 `terminal_input' / `terminal_output' API.
6656 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
6657 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
6658 provided ${GRUB_TERMINAL}, convert it).
6660 2008-11-04 Robert Millan <rmh@aybabtu.com>
6662 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
6664 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
6666 2008-11-03 Bean <bean123ch@gmail.com>
6668 * kern/elf.c (grub_elf32_load): Revert to previous code.
6669 (grub_elf64_load): Likewise.
6671 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
6673 2008-11-01 Robert Millan <rmh@aybabtu.com>
6675 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
6676 (TARGET_CPPFLAGS): Likewise.
6677 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
6679 2008-11-01 Carles Pina i Estany <carles@pina.cat>
6681 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
6683 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
6685 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
6686 addition of objects until the code is not going to be able to fail.
6688 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
6690 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
6691 (add a missing NULL check, and correct them by moving the pointer
6692 operations after the actual check).
6694 2008-10-29 Robert Millan <rmh@aybabtu.com>
6696 * util/i386/pc/grub-install.in: Handle empty string as output from
6697 make_system_path_relative_to_its_root().
6699 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
6701 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
6702 circular metadata worst case scenario. If the metadata is circular
6703 then copy the wrap in place.
6704 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
6705 project lib/format_text/layout.h
6706 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
6708 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
6710 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
6712 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
6714 * util/update-grub_lib.in: Mention filename in warning message.
6716 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
6718 * NEWS: Update for rename of update-grub to grub-mkconfig.
6720 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
6722 * util/update-grub_lib.in: Copy to ...
6723 * util/grub-mkconfig_lib.in: ... this. Update all users.
6724 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
6725 * util/update-grub.in: Rename to ...
6726 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
6727 option. Add `--output' option to allow users to specify the generated
6728 configuration file. Default to stdout.
6729 (update_grub_dir): Rename to ...
6730 (grub_mkconfig_dir): ... this.
6731 (grub_cfg): Default to an empty string.
6732 * conf/common.rmk (update-grub): Rename to ...
6733 (grub-mkconfig): ... this.
6734 (update-grub_lib): Copy to ...
6735 (grub-mkconfig_lib): ... this.
6736 (update-grub_SCRIPTS): Copy to ...
6737 (grub-mkconfig_SCRIPTS): ... this. Update all users.
6738 (update-grub_DATA): Rename to ...
6739 (grub-mkconfig_DATA): ... this.
6741 2008-09-28 Robert Millan <rmh@aybabtu.com>
6743 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
6744 to `modified'. Add the real `created' field.
6745 (grub_iso9660_uuid): Use `modified' rather than `created' for
6746 constructing the UUID.
6748 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
6750 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
6751 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
6753 2008-09-28 Bean <bean123ch@gmail.com>
6755 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
6756 Thanks to Christian Franke for finding this bug.
6758 2008-09-25 Robert Millan <rmh@aybabtu.com>
6760 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
6761 instances of grub_util_get_disk_name() (see previous commit).
6763 2008-09-25 Robert Millan <rmh@aybabtu.com>
6765 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
6766 `util/i386/get_disk_name.c'.
6767 * conf/i386-efi.rmk: Likewise.
6768 * conf/x86_64-efi.rmk: Likewise.
6769 * conf/i386-coreboot.rmk: Likewise.
6770 * conf/i386-ieee1275.rmk: Likewise.
6771 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
6772 `util/ieee1275/get_disk_name.c'.
6773 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
6774 * util/ieee1275/get_disk_name.c: Remove file.
6775 * util/i386/get_disk_name.c: Remove file.
6776 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
6777 "hd%d" for device.map entries, rather than using
6778 grub_util_get_disk_name().
6780 2008-09-24 Carles Pina i Estany <carles@pina.cat>
6782 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
6784 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
6786 2008-09-24 Carles Pina i Estany <carles@pina.cat>
6788 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
6790 (GRUB_TERM_PPAGE): Changed to 0x4900.
6792 2008-09-24 Robert Millan <rmh@aybabtu.com>
6794 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
6795 macros (they were i386-pc specific).
6796 * include/grub/sparc64/ieee1275/console.h: Likewise.
6797 * include/grub/efi/console.h: Likewise.
6799 2008-09-22 Bean <bean123ch@gmail.com>
6801 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
6802 resident and in attribute list.
6804 * include/grub/ntfs.h (BMP_LEN): Removed.
6806 2008-09-22 Bean <bean123ch@gmail.com>
6808 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
6809 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
6811 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
6812 error occurs, as grub_disk_open will call grub_disk_close, which will
6813 call p->close (scsi).
6815 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
6817 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
6818 (AC_PREREQ): Bumped to 2.59.
6819 (AC_TRY_COMPILE): Replace obsolete macro with ...
6820 (AC_COMPILE_IFELSE): ... this.
6821 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
6822 (AC_LINK_IFELSE): ... this.
6824 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
6826 * autogen.sh: Add a call to `gendistlist.sh'.
6828 2008-09-19 Christian Franke <franke@computer.org>
6830 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
6831 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
6832 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
6833 Export __enable_execute_stack() to modules.
6834 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
6837 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
6839 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
6842 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
6844 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
6845 #include <grub/util/hostdisk.h>.
6847 2008-09-08 Robert Millan <rmh@aybabtu.com>
6849 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
6850 segments when their filesz is zero (grub_file_read() interprets
6851 zero-size as "read until EOF", which results in memory corruption).
6852 Use `lowest_segment' rather than 0 for calculating the current
6853 segment load address.
6855 2008-09-08 Robert Millan <rmh@aybabtu.com>
6857 * util/hostdisk.c (open_device): Replace a grub_util_info() call
6858 with grub_dprintf("hostdisk", ...), as it was so verbose that it
6859 clobbered useful information.
6861 2008-09-08 Robert Millan <rmh@aybabtu.com>
6863 * include/grub/util/biosdisk.h: Move to ...
6864 * include/grub/util/hostdisk.h: ... here. Update all users.
6865 * util/biosdisk.c: Move to ...
6866 * util/hostdisk.c: ... here. Update all users.
6868 2008-09-07 Robert Millan <rmh@aybabtu.com>
6870 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
6872 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
6873 and length can be stored directly in the `mbi->mmap_addr' and
6874 `mbi->mmap_length' struct fields.
6876 2008-09-07 Robert Millan <rmh@aybabtu.com>
6878 * conf/i386.rmk: New file. Provides declaration for building
6880 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
6881 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
6883 Include `conf/i386.mk'.
6884 * conf/i386-efi.rmk: Likewise.
6885 * conf/x86_64-efi.rmk: Likewise.
6886 * conf/i386-coreboot.rmk: Likewise.
6887 * conf/i386-ieee1275.rmk: Likewise.
6889 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
6891 Based on patch created by Colin D Bennett <colin@gibibit.com>.
6892 Adds optimization support for BGR based modes.
6894 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
6895 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
6896 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
6897 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
6898 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
6899 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
6900 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
6901 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
6902 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
6903 (grub_video_i386_vbeblit_index_index): Likewise.
6904 (grub_video_i386_vbeblit_replace_directN): Added.
6905 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
6906 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
6907 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
6908 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
6909 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
6910 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
6911 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
6912 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
6913 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
6914 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
6915 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
6916 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
6917 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
6919 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
6920 (grub_video_i386_vbefill_R8G8B8): Likewise.
6921 (grub_video_i386_vbefill_index): Likewise.
6922 (grub_video_i386_vbefill_direct32): Added.
6923 (grub_video_i386_vbefill_direct24): Likewise.
6924 (grub_video_i386_vbefill_direct16): Likewise.
6925 (grub_video_i386_vbefill_direct8): Likewise.
6927 * include/grub/video.h (grub_video_blit_format): Removed
6928 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
6929 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
6930 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
6931 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
6932 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
6934 * video/video.c (grub_video_get_blit_format): Updated to use new
6935 blit formats. Added handling for 16 bit color modes.
6937 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
6939 (common_blitter): Updated to use new blitters.
6941 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
6943 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
6944 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
6945 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
6946 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
6947 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
6948 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
6949 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
6950 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
6951 (grub_video_i386_vbeblit_index_index): Likewise.
6952 (grub_video_i386_vbeblit_replace_directN): Added.
6953 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
6954 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
6955 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
6956 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
6957 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
6958 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
6959 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
6960 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
6961 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
6962 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
6963 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
6964 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
6965 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
6967 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
6968 (grub_video_i386_vbefill_R8G8B8): Likewise.
6969 (grub_video_i386_vbefill_index): Likewise.
6970 (grub_video_i386_vbefill_direct32): Added.
6971 (grub_video_i386_vbefill_direct24): Likewise.
6972 (grub_video_i386_vbefill_direct16): Likewise.
6973 (grub_video_i386_vbefill_direct8): Likewise.
6975 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
6978 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
6981 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
6984 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
6987 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
6989 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
6992 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
6994 * fs/iso9660.c (grub_iso9660_date): New structure.
6995 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
6996 (grub_iso9660_uuid): New function.
6998 2008-09-05 Bean <bean123ch@gmail.com>
7000 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
7002 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
7003 insensitive bit for names in Win32 and Win32 & DOS namespace.
7005 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
7007 * include/grub/types.h (LONG_MAX): Likewise.
7009 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7011 * util/getroot.c: Include <config.h>.
7012 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
7013 add support for /dev/md/N devices and handle LVM double dash escaping.
7015 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7017 * config.guess: Update to latest version from config git.
7018 * config.sub: Likewise.
7020 2008-09-03 Robert Millan <rmh@aybabtu.com>
7022 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
7023 `disk->total_sectors'.
7025 2008-09-01 Colin D Bennett <colin@gibibit.com>
7027 * include/grub/normal.h: Fixed incorrect comment for
7028 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
7030 2008-09-01 Colin D Bennett <colin@gibibit.com>
7032 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
7033 values with defines.
7035 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
7036 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
7037 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
7038 (GRUB_VBE_MODEATTR_COLOR): Likewise.
7039 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
7040 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
7041 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
7042 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
7043 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
7044 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
7045 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
7046 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
7047 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
7048 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
7049 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
7050 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
7051 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
7052 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
7053 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
7055 2008-08-31 Robert Millan <rmh@aybabtu.com>
7057 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
7059 (grub_multiboot): Fix a few warnings.
7061 2008-08-31 Robert Millan <rmh@aybabtu.com>
7063 * loader/i386/pc/multiboot.c: Update comment not to say that
7064 boot_device support is unimplemented.
7066 2008-08-31 Robert Millan <rmh@aybabtu.com>
7068 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
7069 or memory map support are unimplemented.
7071 2008-08-31 Colin D Bennett <colin@gibibit.com>
7073 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
7075 2008-08-31 Colin D Bennett <colin@gibibit.com>
7077 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
7078 total video memory in 'vbeinfo' output; show color format details for
7081 2008-08-30 Pavel Roskin <proski@gnu.org>
7083 * util/genmoddep.c: Remove for real this time.
7084 * DISTLIST: Remove util/genmoddep.c.
7086 2008-08-30 Robert Millan <rmh@aybabtu.com>
7088 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
7089 as required by Multiboot spec (it was already 4-byte aligned, but
7092 2008-08-29 Pavel Roskin <proski@gnu.org>
7094 * kern/powerpc/ieee1275/crt0.S: Rename to ...
7095 * kern/powerpc/ieee1275/startup.S: ... this.
7096 * conf/powerpc-ieee1275.rmk: Adjust for the above.
7097 * DISTLIST: Likewise.
7099 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
7100 grub/cpu/kernel.h. Add start label for consistency with other
7101 platforms. Add grub_prefix immediately after start. Add jump
7102 to the code after grub_prefix.
7103 * include/grub/powerpc/kernel.h: Provide valid values for
7104 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
7106 2008-08-29 Bean <bean123ch@gmail.com>
7108 * configure.ac: Change host_os to cygwin for mingw.
7109 (asprintf): New check for function.
7111 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
7112 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
7114 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
7115 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
7116 sync, sleep and grub_util_get_disk_size for mingw.
7118 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
7119 to get size in mingw.
7120 (open_device): Use flag O_BINARY if it's defined.
7121 (find_root_device): Add dummy code for mingw.
7123 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
7124 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
7125 (get_scsi_disk_name): Return 0 for mingw.
7127 * util/hostfs.c: #include <grub/util/misc.h>.
7128 (grub_hostfs_open): Use "rb" flag to open file, use
7129 grub_util_get_disk_size to get disk size for mingw.
7131 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7132 (asprintf): New function if HAVE_ASPRINTF is not set.
7133 (sync): New function for mingw.
7135 (grub_util_get_disk_size): Likewise.
7137 2008-08-28 Pavel Roskin <proski@gnu.org>
7139 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7142 2008-08-28 Robert Millan <rmh@aybabtu.com>
7144 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7146 2008-08-28 Robert Millan <rmh@aybabtu.com>
7148 Change find_grub_drive() syntax so it doesn't prevent it from
7149 detecting NULL names as errors.
7151 * util/biosdisk.c (find_grub_drive): Move free slot search code
7153 (find_free_slot): ... to here.
7154 (read_device_map): Use find_free_slot() to search for free slots.
7156 2008-08-27 Marco Gerards <marco@gnu.org>
7158 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7159 (scsi_mod_SOURCES): New variable.
7160 (scsi_mod_CFLAGS): Likewise
7161 (scsi_mod_LDFLAGS): Likewise.
7163 * disk/scsi.c: New file.
7165 * include/grub/scsi.h: Likewise.
7167 * include/grub/scsicmd.h: Likewise.
7169 * disk/ata.c: Include <grub/scsi.h>.
7170 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7172 (grub_ata_iterate): Skip ATAPI devices.
7173 (grub_ata_open): Only handle ATAPI devices.
7174 (struct grub_atapi_read): Removed.
7175 (grub_atapi_readsector): Likewise.
7176 (grub_ata_read): No longer handle ATAPI devices.
7177 (grub_ata_write): Likewise.
7178 (grub_atapi_iterate): New function.
7179 (grub_atapi_read): Likewise.
7180 (grub_atapi_write): Likewise.
7181 (grub_atapi_open): Likewise.
7182 (grub_atapi_close): Likewise.
7183 (grub_atapi_dev): New variable.
7184 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
7185 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
7187 * include/grub/disk.h (enum grub_disk_dev_id): Add
7188 `GRUB_DISK_DEVICE_SCSI_ID'.
7190 2008-08-26 Robert Millan <rmh@aybabtu.com>
7192 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
7193 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
7196 2008-08-23 Bean <bean123ch@gmail.com>
7198 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
7199 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7200 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
7201 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
7203 (raid5rec_mod_SOURCES): New macro.
7204 (raid5rec_mod_CFLAGS): Likewise.
7205 (raid5rec_mod_LDFLAGS): Likewise.
7206 (raid6rec_mod_SOURCES): Likewise.
7207 (raid6rec_mod_CFLAGS): Likewise.
7208 (raid6rec_mod_LDFLAGS): Likewise.
7209 (mdraid_mod_SOURCES): Likewise.
7210 (mdraid_mod_CFLAGS): Likewise.
7211 (mdraid_mod_LDFLAGS): Likewise.
7212 (dm_nv_mod_SOURCES): Likewise.
7213 (dm_nv_mod_CFLAGS): Likewise.
7214 (dm_nv_mod_LDFLAGS): Likewise.
7216 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
7217 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7218 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7220 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
7221 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7223 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7225 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7227 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7231 * disk/raid5_recover.c: New file.
7233 * disk/raid6_recover.c: Likewise.
7235 * disk/mdraid_linux.c: Likewise.
7237 * disk/dmraid_nvidia.c: Likewise.
7239 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
7242 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
7243 calculate the size of raid device.
7244 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
7245 different layout of raid5.
7246 (grub_raid_scan_device): Remove code specific to mdraid.
7247 (grub_raid_list): New variable.
7248 (free_array): New function.
7249 (grub_raid_register): Likewise.
7250 (grub_raid_unregister): Likewise.
7251 (grub_raid_rescan): Likewise.
7252 (GRUB_MOD_INIT): Don't iterate device here.
7253 (GRUB_MOD_FINI): Use free_array to release resource.
7255 * include/grub/raid.h: Remove macro and structure specific to mdraid.
7256 (grub_raid5_recover_func_t): New function variable type.
7257 (grub_raid6_recover_func_t): Likewise.
7258 (grub_raid5_recover_func): New variable.
7259 (grub_raid6_recover_func): Likewise.
7260 (grub_raid_register): New function.
7261 (grub_raid_unregister): Likewise.
7262 (grub_raid_rescan): Likewise.
7263 (grub_raid_block_xor): Likewise.
7265 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
7266 (CMD_CRC): New macro.
7268 (read_file): Handle device as well as file.
7269 (cmd_crc): New function.
7270 (fstest): Handle multiple disks.
7271 (options): Remove part, raw and long, add root and diskcount.
7272 (usage): Add crc, remove -p, -r, -l, add -r and -c.
7273 (main): Find the first non option entry and ignore subsequent options,
7274 add handling for the new options, support multiple disks.
7276 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
7278 2008-08-23 Bean <bean123ch@gmail.com>
7280 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
7282 * genfslist.sh: Ignore kernel.mod.
7284 * genpartmaplist.sh: Likewise.
7286 2008-08-23 Robert Millan <rmh@aybabtu.com>
7288 * util/getroot.c (find_root_device): Skip anything that starts with
7289 a dot, not just directories. This avoids things like /dev/.tmp.md0.
7291 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
7293 * util/update-grub.in (GRUB_GFXMODE): Export variable.
7294 * util/grub.d/00_header.in: Allow the administrator to change default
7295 gfxmode via ${GRUB_GFXMODE}.
7297 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
7299 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
7301 2008-08-21 Robert Millan <rmh@aybabtu.com>
7303 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
7305 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
7306 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
7308 2008-08-20 Carles Pina i Estany <carles@pina.cat>
7310 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
7311 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
7313 2008-08-19 Robert Millan <rmh@aybabtu.com>
7315 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
7316 (struct grub_virtual_screen): Remove `cursor_color'.
7317 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
7319 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
7321 2008-08-18 Robert Millan <rmh@aybabtu.com>
7323 Unify (identical) linux_normal.c files.
7324 * loader/i386/efi/linux_normal.c: Move from here ...
7325 * loader/linux_normal.c: ... to here. Update all users.
7326 * loader/i386/pc/linux_normal.c: Delete. Update all users.
7327 * loader/i386/ieee1275/linux_normal.c: Likewise.
7329 2008-08-18 Robert Millan <rmh@aybabtu.com>
7331 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
7332 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
7333 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
7334 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
7335 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
7337 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
7338 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
7339 (GRUB_LINUX_CL_END_OFFSET): ... to here.
7340 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
7341 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
7342 (GRUB_EFI_CL_END_OFFSET): Rename to ...
7343 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
7344 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
7345 Initialize `params->video_cursor_x' and `params->video_cursor_y'
7346 portably using grub_getxy().
7347 Replace `-EFI' with `-bzImage' in boot message.
7349 2008-08-17 Robert Millan <rmh@aybabtu.com>
7351 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
7353 2008-08-17 Robert Millan <rmh@aybabtu.com>
7355 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
7357 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
7358 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
7359 (grub_machine_mmap_iterate): New function declaration.
7360 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
7362 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
7365 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
7366 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
7367 Move e820 parsing from here ...
7368 * kern/i386/pc/mmap.c: New file.
7369 (grub_machine_mmap_iterate): ... to here.
7371 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
7372 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
7373 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
7374 (grub_available_iterate): Redeclare to return `void', and redeclare
7375 its hook to use grub_uint64_t as addr and size parameters, and rename
7377 (grub_machine_mmap_iterate): ... this. Update all users.
7379 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
7380 to make it more readable. Rename to ...
7381 (grub_machine_mmap_iterate): ... this.
7383 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
7384 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
7385 (grub_multiboot): Allocate an extra region after the payload, and fill
7386 it with a Multiboot memory map. Adjust a.out loader to calculate size
7387 with the extra space.
7388 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
7389 with the extra space.
7391 2008-08-17 Carles Pina i Estany <carles@pina.cat>
7393 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
7395 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
7397 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
7398 mdate-sh to the list `find' searches for.
7399 * DISTLIST: Regenerated.
7401 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
7403 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
7404 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
7405 genmoddep.awk, gensymlist.sh.in.
7406 (DISTDIRS): Add bus, docs, hook, lib.
7407 * DISTLIST: Regenerated.
7408 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
7410 2008-08-16 Robert Millan <rmh@aybabtu.com>
7412 * disk/raid.c (grub_raid_init): Handle/report errors set by
7413 grub_device_iterate().
7414 * disk/lvm.c (grub_lvm_init): Likewise.
7416 2008-08-15 Bean <bean123ch@gmail.com>
7418 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7420 (datetime_mod_SOURCES): New macro.
7421 (datetime_mod_CFLAGS): Likewise.
7422 (datetime_mod_LDFLAGS): Likewise.
7423 (date_mod_SOURCES): Likewise.
7424 (date_mod_CFLAGS): Likewise.
7425 (date_mod_LDFLAGS): Likewise.
7426 (datehook_mod_SOURCES): Likewise.
7427 (datehook_mod_CFLAGS): Likewise.
7428 (datehook_mod_LDFLAGS): Likewise.
7430 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7432 (datetime_mod_SOURCES): New macro.
7433 (datetime_mod_CFLAGS): Likewise.
7434 (datetime_mod_LDFLAGS): Likewise.
7435 (date_mod_SOURCES): Likewise.
7436 (date_mod_CFLAGS): Likewise.
7437 (date_mod_LDFLAGS): Likewise.
7438 (datehook_mod_SOURCES): Likewise.
7439 (datehook_mod_CFLAGS): Likewise.
7440 (datehook_mod_LDFLAGS): Likewise.
7442 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7444 (datetime_mod_SOURCES): New macro.
7445 (datetime_mod_CFLAGS): Likewise.
7446 (datetime_mod_LDFLAGS): Likewise.
7447 (date_mod_SOURCES): Likewise.
7448 (date_mod_CFLAGS): Likewise.
7449 (date_mod_LDFLAGS): Likewise.
7450 (datehook_mod_SOURCES): Likewise.
7451 (datehook_mod_CFLAGS): Likewise.
7452 (datehook_mod_LDFLAGS): Likewise.
7454 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7456 (datetime_mod_SOURCES): New macro.
7457 (datetime_mod_CFLAGS): Likewise.
7458 (datetime_mod_LDFLAGS): Likewise.
7459 (date_mod_SOURCES): Likewise.
7460 (date_mod_CFLAGS): Likewise.
7461 (date_mod_LDFLAGS): Likewise.
7462 (datehook_mod_SOURCES): Likewise.
7463 (datehook_mod_CFLAGS): Likewise.
7464 (datehook_mod_LDFLAGS): Likewise.
7466 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7468 (datetime_mod_SOURCES): New macro.
7469 (datetime_mod_CFLAGS): Likewise.
7470 (datetime_mod_LDFLAGS): Likewise.
7471 (date_mod_SOURCES): Likewise.
7472 (date_mod_CFLAGS): Likewise.
7473 (date_mod_LDFLAGS): Likewise.
7474 (datehook_mod_SOURCES): Likewise.
7475 (datehook_mod_CFLAGS): Likewise.
7476 (datehook_mod_LDFLAGS): Likewise.
7478 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
7480 * commands/date.c: New file.
7482 * hook/datehook.c: Likewise.
7484 * include/grub/lib/datetime.h: Likewise.
7486 * include/grub/i386/cmos.h: Likewise.
7488 * lib/datetime.c: Likewise.
7490 * lib/i386/datetime.c: Likewise.
7492 * lib/efi/datetime.c: Likewise.
7494 2008-08-14 Robert Millan <rmh@aybabtu.com>
7496 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
7497 (grub_mkelfimage_SOURCES): New variable.
7498 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
7500 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
7501 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
7502 * conf/powerpc-ieee1275.rmk: Likewise.
7503 * conf/i386-ieee1275.rmk: Likewise.
7505 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
7506 * kern/i386/coreboot/init.c: Likewise.
7508 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
7509 with `<grub/cpu/kernel.h>'.
7510 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
7512 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
7513 * kern/i386/coreboot/startup.S: Likewise.
7515 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
7516 (GRUB_MOD_GAP): Remove.
7517 * include/grub/powerpc/kernel.h: New file.
7518 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
7519 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7520 * include/grub/i386/kernel.h: New file.
7521 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
7522 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
7523 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7525 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
7527 Use --directory when invoking grub_mkimage.
7529 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
7530 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
7531 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
7532 and GRUB_KERNEL_CPU_PREFIX.
7534 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
7536 * include/grub/err.h (grub_err_printf): New function prototype.
7537 * util/misc.c (grub_err_printf): New function.
7538 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
7540 * kern/err.c (grub_print_error): Use grub_err_printf.
7542 2008-08-13 Robert Millan <rmh@aybabtu.com>
7544 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
7546 2008-08-13 Robert Millan <rmh@aybabtu.com>
7548 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
7551 2008-08-12 Robert Millan <rmh@aybabtu.com>
7553 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
7554 of the relocation code from here ...
7555 (grub_multiboot): ... to here.
7556 (forward_relocator, backward_relocator): Move from here ...
7557 * kern/i386/loader.S (grub_multiboot_forward_relocator)
7558 (grub_multiboot_backward_relocator): ... to here.
7559 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
7560 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
7561 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
7562 (grub_multiboot_forward_relocator_end)
7563 (grub_multiboot_backward_relocator)
7564 (grub_multiboot_backward_relocator_end): New variables.
7566 2008-08-12 Bean <bean123ch@gmail.com>
7568 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
7570 2008-08-11 Robert Millan <rmh@aybabtu.com>
7572 * kern/i386/linuxbios/startup.S: Move from here ...
7573 * kern/i386/coreboot/startup.S: ... to here.
7575 * kern/i386/linuxbios/init.c: Move from here ...
7576 * kern/i386/coreboot/init.c: ... to here.
7578 * kern/i386/linuxbios/table.c: Move from here ...
7579 * kern/i386/coreboot/mmap.c: ... to here.
7581 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
7583 2008-08-11 Robert Millan <rmh@aybabtu.com>
7585 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
7586 errors. Leave it to the upper layer to handle them.
7588 2008-08-09 Christian Franke <franke@computer.org>
7590 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
7591 * conf/common.rmk: Install `grub-pe2elf' only if requested.
7592 Install `grub.d/10_windows' only on Cygwin.
7593 * configure.ac: Add subst of `target_os'.
7594 Check `target_os' also before setting TARGET_OBJ2ELF.
7595 Add `--enable-grub-pe2elf'.
7597 2008-08-08 Robert Millan <rmh@aybabtu.com>
7599 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
7600 (grub_last_time): Change type to grub_uint64_t.
7601 (grub_disk_open): Migrate code from to using grub_get_time_ms().
7602 (grub_disk_close): Likewise.
7604 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
7605 (run_menu): Migrate code from to using grub_get_time_ms().
7607 * util/misc.c (grub_get_time_ms): New function.
7609 2008-08-08 Marco Gerards <marco@gnu.org>
7611 * disk/ata.c (grub_ata_regget): Change return type to
7613 (grub_ata_regget2): Likewise.
7614 (grub_ata_wait_status): New function.
7615 (grub_ata_wait_busy): Removed function, updated all users to use
7616 `grub_ata_wait_status'.
7617 (grub_ata_wait_drq): Likewise.
7618 (grub_ata_cmd): New function.
7619 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
7621 (grub_ata_pio_write): Add error handling.
7622 (grub_atapi_identify): Likewise.
7623 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
7625 (grub_ata_identify): Use `grub_ata_cmd' and improve error
7626 handling. Actually use the detected registers. Reorder the
7627 detection logic such that it is easier to read.
7628 (grub_ata_pciinit): Do not assign the same ID to each controller.
7629 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
7631 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
7633 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
7635 2008-08-08 Marco Gerards <marco@gnu.org>
7639 2008-08-07 Bean <bean123ch@gmail.com>
7641 * include/grub/x86_64/pci.h: New file.
7643 2008-08-07 Christian Franke <franke@computer.org>
7645 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
7646 (TIMER2_GATE): Likewise.
7647 (grub_pit_wait): Add enable/disable of the timer2 gate
7648 bit of port 0x61. This fixes a possible infinite loop.
7650 2008-08-07 Bean <bean123ch@gmail.com>
7652 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
7653 kern/i386/tsc.c and kern/i386/pit.c.
7655 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
7658 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
7661 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
7663 2008-08-07 Bean <bean123ch@gmail.com>
7665 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
7667 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
7669 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
7670 multiple inclusion. Add #include <grub/types.h>.
7672 2008-08-06 Christian Franke <franke@computer.org>
7674 * conf/common.rmk: Build and install `10_windows'.
7675 * util/grub.d/10_windows.in: New script.
7677 2008-08-06 Pavel Roskin <proski@gnu.org>
7679 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
7681 2008-08-06 Robert Millan <rmh@aybabtu.com>
7683 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
7684 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
7686 2008-08-06 Bean <bean123ch@gmail.com>
7688 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
7689 (grub_pxefs_fs_int): Remove dummy definition.
7690 (grub_pxefs_open): Use data->block_size to store the current block
7692 (grub_pxefs_read): Use block size stored in data->block_size. As the
7693 value of grub_pxe_blksize can be changed after the file is opened.
7695 2008-08-06 Bean <bean123ch@gmail.com>
7697 * fs/i386/pc/pxe.c (curr_file): new variable.
7698 (grub_pxefs_open): Simply the handling of pxe file system. Don't
7699 require the dummy internal file system anymore.
7700 (grub_pxefs_read): Removed.
7701 (grub_pxefs_close): Likewise.
7702 (grub_pxefs_fs_int): Likewise.
7703 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
7704 connection when we switch file.
7705 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
7707 2008-08-06 Robert Millan <rmh@aybabtu.com>
7709 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
7711 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
7712 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
7714 * kern/i386/halt.c: New file.
7715 * kern/i386/reboot.c: Likewise.
7716 * include/grub/i386/reboot.h: Likewise.
7717 * include/grub/i386/halt.h: Likewise.
7719 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
7720 Include `<grub/cpu/halt.h>'.
7721 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
7722 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
7724 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
7725 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
7726 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
7727 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
7728 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
7729 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
7731 * include/grub/i386/at_keyboard.h: ... to here.
7733 2008-08-05 Robert Millan <rmh@aybabtu.com>
7735 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
7736 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
7737 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
7738 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
7739 `kern/generic/millisleep.c'.
7741 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
7742 instead of grub_get_rtc().
7743 (grub_tsc_init): Initialize `tsc_boot_time'.
7745 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
7746 (grub_machine_init): Use grub_tsc_init() rather than
7747 installing an RTC-based handler via grub_install_get_time_ms().
7749 * kern/i386/pit.c: New file.
7750 * include/grub/i386/pit.h: Likewise.
7752 2008-08-05 Bean <bean123ch@gmail.com>
7754 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
7756 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
7757 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
7758 (pxe_mod_SOURCES): New macro.
7759 (pxe_mod_CFLAGS): Likewise.
7760 (pxe_mod_LDFLAGS): Likewise.
7761 (pxecmd_mod_SOURCES): Likewise.
7762 (pxecmd_mod_CFLAGS): Likewise.
7763 (pxecmd_mod_LDFLAGS): Likewise.
7765 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
7766 (grub_pxe_call): Likewise.
7768 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
7770 * commands/i386/pc/pxecmd.c: New file.
7772 * fs/i386/pc/pxe.c: Likewise.
7774 * include/grub/i386/pc/pxe.h: Likewise.
7776 2008-08-05 Bean <bean123ch@gmail.com>
7778 * util/console.c (grub_console_cur_color): New variable.
7779 (grub_console_standard_color): Likewise.
7780 (grub_console_normal_color): Likewise.
7781 (grub_console_highlight_color): Likewise.
7782 (color_map): Likewise.
7783 (use_color): Likewise.
7784 (NUM_COLORS): New macro.
7785 (grub_ncurses_setcolorstate): Handle color properly.
7786 (grub_ncurses_setcolor): Don't change color here, just remember the
7787 settings, color will be set in grub_ncurses_setcolorstate.
7788 (grub_ncurses_getcolor): New function.
7789 (grub_ncurses_init): Initialize color pairs.
7790 (grub_ncurses_term): New member grub_ncurses_getcolor.
7792 2008-08-05 Colin D Bennett <colin@gibibit.com>
7794 High resolution timer support. Implemented for x86 CPUs using TSC.
7795 Extracted generic grub_millisleep() so it's linked in only as needed.
7796 This requires a Pentium compatible CPU; if the RDTSC instruction is
7797 not supported, then it falls back on the generic grub_get_time_ms()
7798 implementation that uses the machine's RTC.
7800 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
7801 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
7802 `kern/generic/millisleep.c'.
7804 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
7805 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
7807 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
7808 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
7810 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
7812 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7813 `kern/generic/millisleep.c'.
7815 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
7817 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
7819 * kern/generic/rtc_get_time_ms.c: New file.
7821 * kern/generic/millisleep.c: New file.
7823 * kern/misc.c: Don't include
7824 <kern/time.h> anymore.
7825 (grub_millisleep_generic): Removed.
7827 * commands/sleep.c (grub_interruptible_millisleep): Uses
7828 grub_get_time_ms() instead of grub_get_rtc().
7830 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
7832 (grub_cpu_is_cpuid_supported): New inline function.
7833 (grub_cpu_is_tsc_supported): New inline function.
7834 (grub_tsc_init): New function prototype.
7835 (grub_tsc_get_time_ms): New function prototype.
7837 * kern/i386/tsc.c (grub_get_time_ms): New file.
7839 * include/grub/time.h: Include <grub/types.h.
7840 (grub_millisleep_generic): Removed.
7841 (grub_get_time_ms): New prototype.
7842 (grub_install_get_time_ms): New prototype.
7843 (grub_rtc_get_time_ms): New prototype.
7845 * kern/time.c (grub_get_time_ms): New function.
7846 (grub_install_get_time_ms): New function.
7848 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
7849 <grub/time.h> anymore.
7850 (grub_millisleep): Removed.
7851 (grub_machine_init): Call grub_tsc_init.
7853 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
7854 get_time_ms() implementation.
7856 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
7857 (ieee1275_get_time_ms): New function.
7858 (grub_machine_init): Install get_time_ms() implementation.
7860 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
7861 (grub_machine_init): Call grub_tsc_init().
7862 (grub_millisleep): Removed.
7864 * kern/ieee1275/init.c (grub_millisleep): Removed.
7865 (grub_machine_init): Install ieee1275_get_time_ms()
7867 (ieee1275_get_time_ms): New function.
7868 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
7871 2008-08-05 Marco Gerards <marco@gnu.org>
7873 * disk/ata.c: Include <grub/pci.h>.
7874 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
7875 (grub_ata_initialize): Rewritten.
7876 (grub_ata_device_initialize): New function.
7878 2008-08-04 Pavel Roskin <proski@gnu.org>
7880 * kern/main.c: Include grub/mm.h.
7882 2008-08-04 Robert Millan <rmh@aybabtu.com>
7884 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
7885 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
7886 corruption problem).
7888 2008-08-04 Robert Millan <rmh@aybabtu.com>
7890 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
7891 warnings introduced in my last commit.
7893 2008-08-03 Robert Millan <rmh@aybabtu.com>
7895 Make PCI available on all i386 architectures.
7897 * include/grub/i386/pc/pci.h: Move from here ...
7898 * include/grub/i386/pci.h: ... to here.
7900 * include/grub/i386/pc/pci.h: Remove.
7901 * include/grub/i386/efi/pci.h: Remove.
7902 * include/grub/x86_64/efi/pci.h: Remove.
7904 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
7907 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
7908 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
7909 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
7911 * conf/i386-ieee1275.rmk: Likewise.
7913 2008-08-03 Robert Millan <rmh@aybabtu.com>
7915 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
7916 (grub_console_setcursor): Make it possible to set cursor off.
7918 2008-08-03 Robert Millan <rmh@aybabtu.com>
7920 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
7921 of modules instead of assuming which platform provides what.
7922 * util/update-grub.in: Likewise.
7924 2008-08-03 Robert Millan <rmh@aybabtu.com>
7926 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
7927 instead of `grub_install_dos_part' to determine whether a drive needs
7928 to be prepended to prefix (`grub_install_dos_part' is not reliable,
7929 because it can be overridden when loading GRUB via Multiboot).
7931 2008-08-02 Robert Millan <rmh@aybabtu.com>
7933 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
7935 2008-08-02 Robert Millan <rmh@aybabtu.com>
7937 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
7938 of informational grub_dprintf() calls.
7940 2008-08-02 Robert Millan <rmh@aybabtu.com>
7942 * disk/memdisk.c (memdisk_size): Don't initialize.
7943 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
7945 * include/grub/i386/pc/kernel.h
7946 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
7947 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
7948 (grub_memdisk_image_size, grub_arch_memdisk_addr)
7949 (grub_arch_memdisk_size): Remove.
7951 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
7952 field (was only used to transfer a constant). Add `type' field to
7953 support multiple module types.
7954 (grub_module_iterate): New function.
7956 * kern/device.c (grub_device_open): Do not hide error messages
7957 when grub_disk_open() fails. Use grub_print_error() instead.
7959 * kern/i386/pc/init.c (grub_arch_modules_addr)
7960 (grub_arch_memdisk_size): Remove functions.
7961 (grub_arch_modules_addr): Return the module address in high memory
7962 (now that it isn't copied anymore).
7964 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
7965 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
7966 decompression routine (grub_total_module_size already includes that
7967 now). Don't copy modules back to low memory.
7969 * kern/main.c: Include `<grub/mm.h>'.
7970 (grub_load_modules): Split out (and use) ...
7971 (grub_module_iterate): ... this function, which iterates through
7972 module objects and runs a hook.
7973 Comment out grub_mm_init_region() call, as it would cause non-ELF
7974 modules to be overwritten.
7976 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
7977 the memdisk image in its own region, make it part of the module list.
7978 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
7979 (main): Parse --memdisk|-m option, and pass user-provided path as
7980 parameter to generate_image().
7981 (add_segments): Pass `memdisk_path' down to load_modules().
7982 (load_modules): Embed memdisk image in module section when requested.
7983 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
7984 `header.type' instead of `header.offset'.
7986 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
7987 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
7988 (memdisk_mod_LDFLAGS): New variables.
7989 * conf/i386-coreboot.rmk: Likewise.
7990 * conf/i386-ieee1275.rmk: Likewise.
7992 2008-08-02 Robert Millan <rmh@aybabtu.com>
7994 * loader/i386/pc/multiboot.c (playground, forward_relocator)
7995 (backward_relocator): New variables. Used to allocate and relocate
7996 the payload, respectively.
7997 (grub_multiboot_load_elf32): Load into heap instead of requested
7998 address, install the appropriate relocator code in each bound of
7999 the payload, and set the entry point such that
8000 grub_multiboot_real_boot() will jump to one of them.
8002 * kern/i386/loader.S (grub_multiboot_payload_size)
8003 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8004 (grub_multiboot_payload_entry_offset): New variables.
8005 (grub_multiboot_real_boot): Set cpu context to what the relocator
8006 expects, and jump to the relocator instead of the payload.
8008 * include/grub/i386/loader.h (grub_multiboot_payload_size)
8009 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8010 (grub_multiboot_payload_entry_offset): Export.
8012 2008-08-01 Bean <bean123ch@gmail.com>
8014 * normal/menu_entry.c (editor_getline): Don't return the original
8015 string as result, as it will be released by lexer once it has done
8018 2008-08-01 Robert Millan <rmh@aybabtu.com>
8020 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
8021 within menuentries, not before them.
8022 util/grub.d/10_hurd.in: Likewise.
8024 2008-08-01 Bean <bean123ch@gmail.com>
8026 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
8027 (bufio_mod_SOURCES): New macro.
8028 (bufio_mod_CFLAGS): Likewise.
8029 (bufio_mod_LDFLAGS): Likewise.
8031 * include/grub/bufio.h: New file.
8033 * io/bufio.c: Likewise.
8035 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
8036 (grub_video_reader_png): Use grub_buffile_open to open file.
8038 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
8039 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
8041 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
8042 (grub_video_reader_tga): Use grub_buffile_open to open file.
8044 * font/manager.c: Include <grub/bufio.h>.
8045 (add_font): Use grub_buffile_open to open file.
8047 2008-07-31 Robert Millan <rmh@aybabtu.com>
8049 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
8050 ELF segments, use a macro for arbitrarily accessing any of them instead
8051 of preparing a pointer that allows access to one at a time.
8052 (grub_multiboot_load_elf64): Likewise.
8054 2008-07-31 Bean <bean123ch@gmail.com>
8056 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
8057 GRUB_KERNEL_MACHINE_DATA_END.
8059 2008-07-30 Robert Millan <rmh@aybabtu.com>
8061 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
8062 Increase from 0x50 to 0x60.
8063 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
8064 use UUIDs to identify the root drive for them. If that's not
8066 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
8067 check, for cross-disk installs.
8069 2008-07-30 Robert Millan <rmh@aybabtu.com>
8071 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
8072 is non-empty, use it to set the `prefix' environment variable instead
8073 of the usual approach.
8074 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
8075 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
8076 environment variable instead of dummy make_install_device().
8078 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
8079 (start): Insert a data section, with `grub_prefix' variable.
8080 * kern/i386/linuxbios/startup.S: Likewise.
8082 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
8083 New variable reference.
8084 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
8085 New macro. Defines offset of `grub_prefix' within startup.S (relative
8087 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
8088 section within startup.S (relative to `start').
8089 * include/grub/i386/coreboot/kernel.h: Likewise.
8091 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
8092 Overwrite grub_prefix with its contents, at the beginning of the
8094 (main): Understand -p|--prefix.
8096 2008-07-30 Robert Millan <rmh@aybabtu.com>
8098 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
8100 2008-07-30 Robert Millan <rmh@aybabtu.com>
8102 * term/i386/pc/vga_text.c (grub_console_cls): Use
8103 grub_console_gotoxy() to go back to beginning of the screen.
8104 Found by Patrick Georgi <patrick.georgi@coresystems.de>
8106 2008-07-29 Christian Franke <franke@computer.org>
8108 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8109 Add conversion of emulated mount points on Cygwin.
8111 2008-07-29 Christian Franke <franke@computer.org>
8113 * util/update-grub.in: Add a check for admin
8115 Remove old `grub.cfg.new' before creation.
8116 Add `-f' to `mv' to handle the different filesystem
8117 semantics of Windows.
8119 2008-07-29 Bean <bean123ch@gmail.com>
8121 * normal/main.c (get_line): Fix buffer overflow bug.
8123 2008-07-28 Robert Millan <rmh@aybabtu.com>
8125 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
8126 (struct grub_apple_header): New struct. Describes the layout of
8128 (apple_partition_map_iterate): Check the header magic as well as the
8129 partition magic (which was already being checked).
8131 2008-07-28 Pavel Roskin <proski@gnu.org>
8133 * genmk.rb: Add a warning to the beginning of the output that
8134 it's a generated file and should not be edited.
8136 2008-07-28 Robert Millan <rmh@aybabtu.com>
8138 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8139 with the same number are found, just use issue a warning with
8140 grub_dprintf(), as this error has been reported to be non-fatal.
8142 2008-07-27 Robert Millan <rmh@aybabtu.com>
8144 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8147 2008-07-27 Bean <bean123ch@gmail.com>
8149 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8150 (grub_fat_find_dir): Ignore case when comparing filename.
8152 2008-07-27 Bean <bean123ch@gmail.com>
8154 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8155 smallino, as it's more descriptive, and i8count can be confused with
8156 the other field count.
8157 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8160 2008-07-27 Bean <bean123ch@gmail.com>
8162 * commands/crc.c: New file.
8164 * lib/crc.c: Likewise.
8166 * include/grub/lib/crc.h: Likewise.
8168 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8170 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8171 (hexdump): Move this function to ...
8173 * lib/hexdump.c: ... here.
8175 * include/grub/hexdump.h: Renamed to ...
8177 * include/grub/lib/hexdump.h: ... this.
8179 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
8181 * util/grub-editenv.c: Likewise.
8183 * include/envblk.h: Renamed to ...
8185 * include/lib/envblk.h: ... this.
8187 * util/envblk.c: Renamed to ...
8189 * lib/envblk.c: ... this.
8191 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
8193 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
8194 (pkglib_MODULES): Add crc.mod.
8195 (hexdump_mod_SOURCES): Add lib/hexdump.c.
8196 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
8197 (crc_mod_SOURCES): New macro.
8198 (crc_mod_CFLAGS): Likewise.
8199 (crc_mod_LDFLAGS): Likewise.
8201 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
8203 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8205 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8207 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8209 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8211 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
8213 * commands/help.c: Include <grub/term.h>.
8214 (TERM_WIDTH): Removed. Updated all users.
8216 2008-07-27 Pavel Roskin <proski@gnu.org>
8218 * util/getroot.c (find_root_device): Rephrase a comment to avoid
8219 spurious warnings about a comment within a comment.
8221 2008-07-25 Robert Millan <rmh@aybabtu.com>
8223 * util/getroot.c (find_root_device): Skip devices that match
8224 /dev/dm-[0-9]. This lets the real device be found for any type of
8225 abstraction (LVM, EVMS, RAID..).
8226 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
8227 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
8228 device is found first, find_root_device() will now skip it.
8230 2008-07-24 Pavel Roskin <proski@gnu.org>
8232 * include/grub/types.h: Use __builtin_bswap32() and
8233 __builtin_bswap64() with gcc 4.3 and newer.
8235 2008-07-24 Christian Franke <franke@computer.org>
8237 * util/i386/pc/grub-install.in: If `--debug' is specified,
8238 pass `--verbose' to grub-setup.
8239 Abort script if make_system_path_relative_to_its_root() fails.
8241 2008-07-24 Bean <bean123ch@gmail.com>
8243 * configure.ac: Fixed a bug caused by the previous cygwin patch,
8244 variable `target_platform' should be `platform'.
8246 2008-07-24 Bean <bean123ch@gmail.com>
8248 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
8249 (grub_png_init_fixed_block): New function.
8250 (grub_png_decode_image_data): Handle fixed huffman code compression.
8252 2008-07-24 Bean <bean123ch@gmail.com>
8254 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
8255 (grub_pe2elf_SOURCES): New macro.
8256 (CLEANFILES): Add grub-pe2elf.
8258 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
8259 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
8260 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
8261 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
8262 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
8263 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
8264 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
8265 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
8266 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
8267 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
8268 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
8269 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
8270 (GRUB_PE32_DT_FUNCTION): Likewise.
8271 (GRUB_PE32_REL_I386_DIR32): Likewise.
8272 (GRUB_PE32_REL_I386_REL32): Likewise.
8273 (grub_pe32_symbol): New structure.
8274 (grub_pe32_reloc): Likewise.
8276 * util/grub-pe2elf.c: New file.
8278 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
8279 start symbol in non pc platform.
8281 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
8283 The following patches are from Christian Franke.
8285 * include/grub/dl.h: Remove .previous, gas supports this only
8288 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
8289 Remove .type, gas supports this only for ELF format.
8291 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
8292 nullbytes in symbol table. This fixes an infinite loop if table is
8295 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
8296 TARGET_IMG_LDFLAGS and EXEEXT.
8298 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
8299 TARGET_IMG_LDFLAGS_AC.
8300 (grub_CHECK_STACK_ARG_PROBE): New function.
8302 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
8304 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
8306 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
8307 to set TARGET_IMG_LD* accordingly.
8308 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
8309 Add call to grub_CHECK_STACK_ARG_PROBE.
8310 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
8312 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
8314 * genmk.rb: Add EXEEXT to CLEANFILES.
8316 2008-07-23 Robert Millan <rmh@aybabtu.com>
8318 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
8319 define the codes for arrows and lines used for the menu).
8320 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
8323 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
8324 fonts, because the latter are too slow.
8326 2008-07-21 Bean <bean123ch@gmail.com>
8328 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
8329 a20. Run keyboard test last, as it will cause macbook to halt.
8331 2008-07-18 Pavel Roskin <proski@gnu.org>
8333 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
8334 load foreign architecture modules correctly anyway. Keep
8335 support for loading host architecture modules, whether we
8336 compile them or not.
8338 2008-07-17 Pavel Roskin <proski@gnu.org>
8340 * configure.ac: Use -m32 or -m64 regardless of whether we had to
8341 change target_cpu. The compiler default can mismatch target_cpu
8344 * disk/efi/efidisk.c: Fix format warnings on x86_64.
8345 * kern/efi/efi.c: Likewise.
8347 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
8348 target compiler is functional.
8349 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
8352 * configure.ac: Default to efi platform for x86_64-apple. Allow
8353 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
8354 adjustments from the rest, only do them if target is not
8355 explicitly given. Merge other adjustments with the final sanity
8356 check. Remove an extraneous check for supported CPU. Be
8357 specific which CPU and which platform is not supported.
8359 * configure.ac: Default to pc platform for x86_64.
8361 2008-07-17 Robert Millan <rmh@aybabtu.com>
8363 Partial LinuxBIOS -> Coreboot rename.
8365 * conf/i386-linuxbios.rmk: Renamed to ...
8366 * conf/i386-coreboot.rmk: ... this.
8367 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
8368 * configure.ac: Accept "coreboot" as input platform (but maintain
8369 compatibility with "linuxbios").
8370 * include/grub/i386/linuxbios: Renamed to ...
8371 * include/grub/i386/coreboot: ... this.
8373 2008-07-17 Bean <bean123ch@gmail.com>
8375 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
8376 (appleldr_mod_SOURCE): New variable.
8377 (appleldr_mod_CFLAGS): Likewise.
8378 (appleldr_mod_LDFLAGS): Likewise.
8379 (pci_mod_SOURCES): Likewise.
8380 (pci_mod_CFLAGS): Likewise.
8381 (pci_mod_LDFLAGS): Likewise.
8382 (lspci_mod_SOURCES): Likewise.
8383 (lspci_mod_CFLAGS): Likewise.
8384 (lspci_mod_LDFLAGS): Likewise.
8386 * conf/x86_64-efi.rmk: New file.
8388 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
8390 (grub_efidisk_write): Likewise.
8392 * include/efi/api.h (efi_call_0): New macro.
8393 (efi_call_1): Likewise.
8394 (efi_call_2): Likewise.
8395 (efi_call_3): Likewise.
8396 (efi_call_4): Likewise.
8397 (efi_call_5): Likewise.
8398 (efi_call_6): Likewise.
8400 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
8401 grub_rescue_cmd_chainloader.
8403 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
8404 (grub_pe32_optional_header): Change some fields based on i386 or
8406 (GRUB_PE32_PE32_MAGIC): Likewise.
8408 * include/grub/efi/uga_draw.h: New file.
8410 * include/grub/elf.h (STN_ABS): New constant.
8411 (R_X86_64_NONE): Relocation constant for x86_64.
8412 (R_X86_64_64): Likewise.
8413 (R_X86_64_PC32): Likewise.
8414 (R_X86_64_GOT32): Likewise.
8415 (R_X86_64_PLT32): Likewise.
8416 (R_X86_64_COPY): Likewise.
8417 (R_X86_64_GLOB_DAT): Likewise.
8418 (R_X86_64_JUMP_SLOT): Likewise.
8419 (R_X86_64_RELATIVE): Likewise.
8420 (R_X86_64_GOTPCREL): Likewise.
8421 (R_X86_64_32): Likewise.
8422 (R_X86_64_32S): Likewise.
8423 (R_X86_64_16): Likewise.
8424 (R_X86_64_PC16): Likewise.
8425 (R_X86_64_8): Likewise.
8426 (R_X86_64_PC8): Likewise.
8428 * include/grub/i386/efi/pci.h: New file.
8430 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
8431 Change it value based on platform.
8432 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
8433 (GRUB_E820_RAM): Likewise.
8434 (GRUB_E820_RESERVED): Likewise.
8435 (GRUB_E820_ACPI): Likewise.
8436 (GRUB_E820_NVS): Likewise.
8437 (GRUB_E820_EXEC_CODE): Likewise.
8438 (GRUB_E820_MAX_ENTRY): Likewise.
8439 (grub_e820_mmap): New structure.
8440 (linux_kernel_header): Change the efi field according to different
8441 kernel version, also field from linux_kernel_header.
8443 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
8445 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
8446 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
8447 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
8448 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
8449 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
8450 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
8451 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
8452 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
8453 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
8454 (GRUB_PCI_ADDR_IO_MASK): Likewise.
8456 * include/grub/x86_64/efi/kernel.h: New file.
8458 * include/grub/x86_64/efi/loader.h: Likewise.
8460 * include/grub/x86_64/efi/machine.h: Likewise.
8462 * include/grub/x86_64/efi/pci.h: Likewise.
8464 * include/grub/x86_64/efi/time.h: Likewise.
8466 * include/grub/x86_64/linux.h: Likewise.
8468 * include/grub/x86_64/setjmp.h: Likewise.
8470 * include/grub/x86_64/time.h: Likewise.
8472 * include/grub/x86_64/types.h: Likewise.
8474 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
8475 GRUB_TARGET_SIZEOF_VOID_P.
8477 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
8478 (grub_efi_locate_handle): Likewise.
8479 (grub_efi_open_protocol): Likewise.
8480 (grub_efi_set_text_mode): Likewise.
8481 (grub_efi_stall): Likewise.
8482 (grub_exit): Likewise.
8483 (grub_reboot): Likewise.
8484 (grub_halt): Likewise.
8485 (grub_efi_exit_boot_services): Likewise.
8486 (grub_get_rtc): Likewise.
8488 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
8489 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
8490 (grub_efi_allocate_pages): Wrap efi calls.
8491 (grub_efi_free_pages): Wrap efi calls.
8492 (grub_efi_get_memory_map): Wrap efi calls.
8494 * kern/x86_64/dl.c: New file.
8496 * kern/x86_64/efi/callwrap.S: Likewise.
8498 * kern/x86_64/efi/startup.S: Likewise.
8500 * loader/efi/appleloader.c: Likewise.
8502 * loader/efi/chainloader.c (cmdline): New variable.
8503 (grub_chainloader_unload): Wrap efi calls.
8504 (grub_chainloader_boot): Likewise.
8505 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
8508 * loader/efi/chainloader_normal.c (chainloader_command):
8509 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
8512 * loader/i386/efi/linux.c (allocate_pages): Change allocation
8514 (grub_e820_add_region): New function.
8515 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
8517 (grub_find_video_card): New function.
8518 (grub_linux_setup_video): New function.
8519 (grub_rescue_cmd_linux): Probe for video information.
8521 * normal/x86_64/setjmp.S: New file.
8523 * term/efi/console.c (map_char): New function.
8524 (grub_console_putchar): Map unicode char.
8525 (grub_console_checkkey): Wrap efi calls.
8526 (grub_console_getkey): Likewise.
8527 (grub_console_getwh): Likewise.
8528 (grub_console_gotoxy): Likewise.
8529 (grub_console_cls): Likewise.
8530 (grub_console_setcolorstate): Likewise.
8531 (grub_console_setcursor): Likewise.
8533 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
8535 2008-07-16 Pavel Roskin <proski@gnu.org>
8537 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
8540 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
8541 pointer, not an integer. This fixes a warning and prevents
8542 precision loss on 64-bit systems.
8543 (relocate_addresses): Remove unneeded cast.
8545 2008-07-15 Pavel Roskin <proski@gnu.org>
8547 * kern/i386/ieee1275/init.c: Include grub/cache.h.
8549 * term/ieee1275/ofconsole.c: Disable code unused on i386.
8551 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
8552 Fix comparison between signed and unsigned.
8554 * include/grub/i386/ieee1275/console.h: Declare
8555 grub_console_init() and grub_console_fini().
8557 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
8558 It's empty and unused.
8560 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
8561 beginning to avoid warnings with some compilers.
8563 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
8564 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
8566 2008-07-14 Pavel Roskin <proski@gnu.org>
8568 * kern/env.c (grub_register_variable_hook): Don't copy empty
8569 string, it leaks memory. Pass "" to grub_env_set(), it should
8570 handle constant strings.
8572 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
8573 * commands/cmp.c (grub_cmd_cmp): Likewise.
8574 * kern/dl.c (grub_dl_flush_cache): Likewise.
8575 (grub_dl_load_core): Likewise.
8576 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
8577 (grub_elf64_load_phdrs): Likewise.
8579 2008-07-13 Pavel Roskin <proski@gnu.org>
8581 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
8582 between signed and unsigned.
8583 (LzmaEnc_Finish): Fix warning about an unused parameter.
8585 2008-07-13 Bean <bean123ch@gmail.com>
8587 * Makefile.in (enable_lzo): New rule.
8589 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
8591 * configure.ac (ENABLE_LZO): New option --enable-lzo.
8593 * boot/i386/pc/lnxboot.S: #include <config.h>.
8595 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
8596 its value according to the compression algorithm used, lzo or lzma.
8598 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
8599 compression algorithm according to configure macro.
8601 * kern/i386/pc/startup.S (codestart): Likewise.
8603 * kern/i386/pc/lzma_decode.S: New file.
8605 * include/grub/lib/LzFind.h: Likewise.
8607 * include/grub/lib/LzHash.h: Likewise.
8609 * include/grub/lib/LzmaDec.h: Likewise.
8611 * include/grub/lib/LzmaEnc.h: Likewise.
8613 * include/grub/lib/LzmaTypes.h: Likewise.
8615 * lib/LzFind.c: Likewise.
8617 * lib/LzmaDec.c: Likewise.
8619 * lib/LzmaEnc.c: Likewise.
8621 2008-07-13 Bean <bean123ch@gmail.com>
8623 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
8624 (grub_ext4_extent_header): New structure.
8625 (grub_ext4_extent): Likewise.
8626 (grub_ext4_extent_idx): Likewise.
8627 (grub_ext4_find_leaf): New function.
8628 (grub_ext2_read_block): Handle extents.
8630 2008-07-12 Robert Millan <rmh@aybabtu.com>
8632 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
8634 2008-07-11 Robert Millan <rmh@aybabtu.com>
8636 * util/grub.d/40_custom.in: New file. Example on how to add custom
8637 entries to /etc/grub.d.
8638 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
8639 40_custom (implicitly, by merging all the grub.d rules).
8641 2008-07-11 Pavel Roskin <proski@gnu.org>
8643 * commands/read.c (grub_getline): Fix invalid memory access.
8644 Don't add newline to the variable value.
8646 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
8647 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
8648 (serial_hw_get_port): Check validity of the port number.
8649 (grub_cmd_serial): Check return value of serial_hw_get_port().
8651 2008-07-07 Pavel Roskin <proski@gnu.org>
8653 * boot/i386/pc/diskboot.S (notification_string): Replace
8654 "Loading kernel" with just "loading". This is shorter, less
8655 confusing and saves a few bytes for possible future changes.
8657 2008-07-05 Pavel Roskin <proski@gnu.org>
8659 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
8660 size for ATAPI devices, they are undefined. Output sector
8661 number in decimal form.
8663 * disk/ata.c: Use named constants for status bits.
8665 2008-07-04 Pavel Roskin <proski@gnu.org>
8667 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
8668 grub_addr_t before casting it to the void pointer to fix a
8669 warning. Non-addressable regions are discarded earlier.
8670 (grub_arch_modules_addr): Cast _end to grub_addr_t.
8671 * kern/i386/linuxbios/table.c: Include grub/misc.h.
8672 (check_signature): Don't shadow table_header.
8673 (grub_linuxbios_table_iterate): Cast numeric constants to
8674 grub_linuxbios_table_header_t.
8675 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
8678 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
8681 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
8682 pointer, which can cause warnings. Support 64-bit addresses.
8684 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
8685 of sizeof(long). This fixes PowerPC image generation on x86_64.
8687 2008-07-04 Robert Millan <rmh@aybabtu.com>
8689 This fixes a performance issue when pc & gpt partmap iterators
8690 didn't abort iteration even after our hook found what it was
8691 looking for (often causing expensive probes of non-existent drives).
8693 Some callers relied on previous buggy behaviour, since they would
8694 raise an error when their own hooks caused early abortion of its
8697 * kern/device.c (grub_device_open): Improve error message.
8698 * disk/lvm.c (grub_lvm_open): Likewise.
8699 * disk/raid.c (grub_raid_open): Likewise.
8701 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
8702 when hook requests it, independently of grub_errno.
8703 (pc_partition_map_probe): Do not fail when find_func() caused
8704 early abortion of pc_partition_map_iterate().
8706 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
8707 when hook requests it, independently of grub_errno.
8708 (gpt_partition_map_probe): Do not fail when find_func() caused
8709 early abortion of gpt_partition_map_iterate().
8711 * kern/partition.c (grub_partition_iterate): Abort parent iteration
8712 when hook requests it, independently of grub_errno. Do not fail when
8713 part_map_iterate_hook() caused early abortion of p->iterate().
8715 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
8716 when grub_partition_iterate() returned with non-zero.
8718 2008-07-03 Pavel Roskin <proski@gnu.org>
8720 * disk/ata.c (grub_ata_pio_write): Check status before writing,
8721 like we do in grub_ata_pio_read().
8722 (grub_ata_readwrite): Always write individual sectors. Fix the
8723 sector count for the remainder.
8724 (grub_ata_write): Enable writing to ATA devices. Correctly
8725 report error for ATAPI devices.
8727 2008-07-02 Pavel Roskin <proski@gnu.org>
8729 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
8732 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
8733 for every read sector, we already increment it for the whole
8734 batch. This fixes reading more than 256 sectors at once.
8736 * util/grub-editenv.c (cmd_info): Cast argument to long
8737 explicitly. ptrdiff_t reduces to int on i386.
8739 * util/grub-editenv.c (main): Be specific which parameter is
8742 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
8743 (memdisk): Make memdisk_orig_addr a pointer.
8745 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
8746 for file offsets, use grub_off_t instead. Fix printf format
8749 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
8750 there. Real unexpected warnings should not drown in the noise
8751 about known problems.
8753 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
8754 grub_disk_addr_t for memory addresses.
8756 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
8757 explicitly to fix a warning.
8759 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
8761 * Makefile.in (MODULE_LDFLAGS): New variable.
8762 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
8763 the linker accepts --build-id=none.
8764 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
8766 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
8768 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
8769 those in Linux XFS code. Provide a way to access 64-bit parent
8771 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
8772 the end of struct grub_xfs_dir_header.
8774 2008-07-02 Bean <bean123ch@gmail.com>
8776 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
8777 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
8778 and GRUB_IEEE1275_FLAG_NO_ANSI.
8780 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
8781 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
8782 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
8784 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
8785 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
8787 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
8788 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
8790 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
8791 esc sequence on non ANSI terminal.
8792 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
8794 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
8797 2008-07-02 Bean <bean123ch@gmail.com>
8799 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
8800 (grub_editenv_SOURCES): New variable.
8801 (pkglib_MODULES): Add loadenv.mod.
8802 (loadenv_mod_SOURCES): New variable.
8803 (loadenv_mod_CFLAGS): Likewise.
8804 (loadenv_mod_LDFLAGS): Likewise.
8806 * include/grub/envblk.h: New file.
8808 * util/envblk.c: New file.
8810 * util/grub-editenv.c: New file.
8812 * commands/loadenv.c: New file.
8814 2008-07-01 Pavel Roskin <proski@gnu.org>
8816 * include/multiboot2.h (struct multiboot_tag_module): Use char,
8817 not unsigned char. This fixes warnings and is consistent with
8820 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
8822 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
8824 * term/tparm.c (analyze): Always set *popcount.
8826 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
8827 cast to fix a warning.
8829 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
8830 cast to suppress a warning.
8832 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
8833 grub_fshelp_read_file() expects.
8835 * fs/fat.c: Fix UUID calculation on big-endian systems. We
8836 write uuid as a 32-bit value in CPU byte order, so declare and
8839 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
8840 long if the format specifier expects it.
8841 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
8842 * partmap/pc.c (pc_partition_map_iterate): Likewise.
8843 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
8844 long to fix a warning.
8845 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
8846 grub_dprintf() arguments to fix warnings.
8848 2008-06-30 Pavel Roskin <proski@gnu.org>
8850 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
8851 install_bsd_part immediately before core.img is embedded or
8852 modified on disk. This fixes core.img verification if core.img
8855 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
8856 core_path to calculate the blocklist.
8857 Patch from Javier MartÃn <lordhabbit@gmail.com>
8859 2008-06-29 Robert Millan <rmh@aybabtu.com>
8861 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
8862 block to disk block.
8863 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
8864 Patch from Niels Böhm <bitbucket@arcor.de>
8866 2008-06-29 Robert Millan <rmh@aybabtu.com>
8868 * util/update-grub_lib.in (font_path): Search for fonts in
8869 /boot/grub first, which is more likely to be readable (we aren't
8870 deciding where fonts live, just looking for them).
8872 2008-06-26 Pavel Roskin <proski@gnu.org>
8874 * util/biosdisk.c (read_device_map): Don't leave dead map
8875 entries for devices failing stat() check.
8877 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
8878 core_path_dev for the core.img path on the target device.
8880 2008-06-26 Robert Millan <rmh@aybabtu.com>
8882 * disk/fs_uuid.c: New file.
8883 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
8884 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
8885 (fs_uuid_mod_LDFLAGS): New variables.
8886 * include/grub/disk.h (grub_disk_dev_id): Add
8887 `GRUB_DISK_DEVICE_UUID_ID'.
8888 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
8889 implement iterate().
8891 2008-06-26 Robert Millan <rmh@aybabtu.com>
8893 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
8894 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
8895 Linux image includes no initrd.
8897 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
8899 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
8900 call to resolve the core image location that effectively appended the
8903 2008-06-21 Robert Millan <rmh@aybabtu.com>
8905 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
8908 * util/grub.d/10_hurd.in: ... to here ...
8909 * util/grub.d/10_linux.in: ... and here.
8911 2008-06-19 Robert Millan <rmh@aybabtu.com>
8913 * kern/main.c (grub_main): Export `prefix' variable immediately
8914 after it has been set by grub_machine_set_prefix().
8916 2008-06-19 Robert Millan <rmh@aybabtu.com>
8918 * commands/search.c (search_label, search_fs_uuid, search_file): Print
8919 search result when not saving to variable, not the other way around.
8920 When saving to variable, abort iteration as soon as a match is found.
8922 2008-06-19 Robert Millan <rmh@aybabtu.com>
8924 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
8925 check for partition that provides /boot/grub. Its logic is flawed,
8926 as it prevents prepare_grub_to_access_device() from being called
8929 2008-06-19 Robert Millan <rmh@aybabtu.com>
8931 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
8932 "insmod" command directly when abstraction modules are needed,
8933 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
8934 since it had already been processed).
8936 2008-06-19 Pavel Roskin <proski@gnu.org>
8938 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
8939 changed. This is needed in case GRUB_LIBDIR changes.
8940 * conf/i386-ieee1275.rmk: Likewise.
8941 * conf/i386-linuxbios.rmk: Likewise.
8942 * conf/i386-pc.rmk: Likewise.
8943 * conf/powerpc-ieee1275.rmk: Likewise.
8945 2008-06-18 Pavel Roskin <proski@gnu.org>
8947 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
8948 kernel_elf_symlist.c to symlist.c for consistency with other
8949 architectures. Update all users.
8950 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8952 2008-06-18 Robert Millan <rmh@aybabtu.com>
8954 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
8957 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
8958 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
8959 a RAID device, run setup() for all members independently on whether
8960 LVM abstraction is being used.
8961 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
8962 If grub-mkimage has set `*install_dos_part == -2', don't override this
8964 Perform *install_dos_part adjustments independently on whether
8965 we're embedding or not.
8966 Clarify error message when image is too big for embedding.
8967 Remove duplicate *install_dos_part stanza.
8969 2008-06-17 Robert Millan <rmh@aybabtu.com>
8971 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
8972 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
8974 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
8975 values in grub_ofconsole_normal_color and
8976 grub_ofconsole_highlight_color (they're not directly related to
8977 background and foreground).
8978 (grub_ofconsole_setcolorstate): Extract background and foreground
8979 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
8981 2008-06-17 Robert Millan <rmh@aybabtu.com>
8983 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
8984 /boot/grub for the check in last commit, not /boot (they could be
8985 different partitions).
8987 2008-06-16 Robert Millan <rmh@aybabtu.com>
8989 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
8990 asked to setup access for the same partition that provides /boot,
8991 don't bother using UUIDs since our root already has the value we
8994 2008-06-16 Robert Millan <rmh@aybabtu.com>
8996 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
8998 Patch from Sven Mueller <sven@debian.org>.
9000 2008-06-16 Robert Millan <rmh@aybabtu.com>
9002 * util/update-grub.in: Check for $EUID instead of $UID.
9003 Reported by Vincent Zweije.
9005 2008-06-16 Bean <bean123ch@gmail.com>
9007 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
9008 (grub_ext2_read_block): Likewise.
9009 (grub_ext2_read_inode): Likewise.
9010 (grub_ext2_mount): Likewise.
9011 (grub_ext2_close): Likewise.
9012 (grub_ext3_get_journal): Removed.
9014 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
9015 (grub_reiserfs_read_symlink): Likewise.
9016 (grub_reiserfs_mount): Likewise.
9017 (grub_reiserfs_open): Likewise.
9018 (grub_reiserfs_read): Likewise.
9019 (grub_reiserfs_close): Likewise.
9020 (grub_reiserfs_get_journal): Removed.
9022 * fs/fshelp.c (grub_fshelp_read): Removed.
9023 (grub_fshelp_map_block): Likewise.
9025 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
9026 (grub_fshelp_journal): Likewise.
9027 (grub_fshelp_read): Likewise.
9028 (grub_fshelp_map_block): Likewise.
9030 2008-06-16 Pavel Roskin <proski@gnu.org>
9032 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
9033 floating point anymore.
9034 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
9036 2008-06-15 Pavel Roskin <proski@gnu.org>
9038 * commands/ls.c (grub_ls_list_files): Use integer calculations
9039 for human readable format, avoid floating point use.
9040 * kern/misc.c (grub_ftoa): Remove.
9041 (grub_vsprintf): Remove floating point support.
9043 2008-06-15 Robert Millan <rmh@aybabtu.com>
9045 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
9047 Reported by Max Vozeler.
9049 2008-06-15 Robert Millan <rmh@aybabtu.com>
9051 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
9052 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
9054 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
9055 the beginning of the prefix.
9057 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
9058 It is assumed that if we have a memdisk, grub-mkimage has set
9059 grub_prefix to include the "(memdisk)" drive in it.
9061 2008-06-15 Robert Millan <rmh@aybabtu.com>
9063 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
9064 Initialize keyboard controller after registering the terminal, so that
9065 grub_printf() can be called from grub_keyboard_controller_init().
9067 2008-06-15 Robert Millan <rmh@aybabtu.com>
9069 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
9070 extent-btree which is written as big endian on disk.
9071 Reported by Alain Greppin <al@chilibi.org>.
9073 2008-06-14 Robert Millan <rmh@aybabtu.com>
9075 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
9076 * util/i386/pc/grub-install.in (modules): Likewise.
9078 2008-06-13 Pavel Roskin <proski@gnu.org>
9080 * commands/ls.c (grub_ls_list_files): Fix format warnings.
9082 2008-06-13 Bean <bean123ch@gmail.com>
9084 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
9086 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
9088 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
9089 to indicate sparse block.
9091 2008-06-12 Pavel Roskin <proski@gnu.org>
9093 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
9094 number, grub_fshelp_read() does it for us.
9096 * fs/fshelp.c (grub_fshelp_read): New function. Implement
9097 linear disk read with journal translation.
9098 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
9099 * include/grub/fshelp.h: Declare grub_fshelp_read().
9101 2008-06-09 Pavel Roskin <proski@gnu.org>
9103 * fs/minix.c (grub_minix_mount): Handle error reading
9106 2008-06-08 Robert Millan <rmh@aybabtu.com>
9108 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
9109 don't append the RAID prefix afterwards.
9110 Reported by Clint Adams.
9112 2008-06-08 Robert Millan <rmh@aybabtu.com>
9114 Based on description from Pavel:
9115 * kern/disk.c (grub_disk_check_range): Rename to ...
9116 (grub_disk_adjust_range): ... this. Add a comment explaining the
9117 tasks performed by this function.
9119 2008-06-08 Robert Millan <rmh@aybabtu.com>
9121 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
9122 `num_serial' (for consistency with other variables).
9123 (struct grub_ntfs_data): Add `uuid' member.
9124 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
9125 (grub_ntfs_uuid): New function.
9126 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
9128 2008-06-07 Pavel Roskin <proski@gnu.org>
9130 * util/biosdisk.c (open_device): Revert last change to the
9131 function, it broke installation. The sector needs to be
9132 different dependent on which device is opened.
9134 2008-06-06 Robert Millan <rmh@aybabtu.com>
9136 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9137 rest of GRUB, and breakage doesn't happen if its value were modified.
9139 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9140 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9141 a constant (same value).
9142 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9143 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9145 2008-06-06 Robert Millan <rmh@aybabtu.com>
9147 * util/biosdisk.c (open_device): Do not modify sector offset when
9148 accessing a partition. kern/disk.c already handles this for us.
9150 2008-06-06 Robert Millan <rmh@aybabtu.com>
9152 * util/grub-emu.c (grub_machine_init): Move code in this function from
9154 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9155 segfault in case grub_printf() is called).
9157 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9158 grub_probe. Update all users not to explicitly add it again.
9159 (grub_device): New variable; contains corresponding device for grubdir.
9160 (fs_module, partmap_module, devabstraction_module): Pass
9161 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9164 2008-06-05 Robert Millan <rmh@aybabtu.com>
9166 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9167 is found, print it (same layout as with labels).
9169 2008-06-04 Robert Millan <rmh@aybabtu.com>
9171 * util/biosdisk.c (get_drive): Rename to ...
9172 (find_grub_drive): ... this. Update all users.
9174 (get_os_disk): Rename to ...
9175 (convert_system_partition_to_system_disk): ... this. Update all users.
9177 (find_drive): Rename to ...
9178 (find_system_device): ... this. Update all users.
9180 2008-06-04 Robert Millan <rmh@aybabtu.com>
9182 * util/biosdisk.c (get_os_disk): Handle IDA devices.
9183 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9184 (make_device_map): Likewise.
9186 2008-06-01 Robert Millan <rmh@aybabtu.com>
9188 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
9189 before dereferencing it.
9191 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
9192 union with fat12/fat16-specific ones. Add some new fields, including
9193 `num_serial' for both versions.
9194 (struct grub_fat_data): Add `uuid' member.
9195 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
9196 names. Initialize `data->uuid' using `num_serial'.
9197 (grub_fat_uuid): New function.
9198 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
9200 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
9201 (grub_reiserfs_uuid): New function.
9202 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
9205 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
9206 (grub_xfs_uuid): New function.
9207 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
9209 2008-06-01 Robert Millan <rmh@aybabtu.com>
9211 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
9212 code that is backward compatible with pre-uuid search command.
9214 2008-05-31 Robert Millan <rmh@aybabtu.com>
9216 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
9217 floppies after everything else, to ensure floppy drive isn't accessed
9218 unnecessarily (patch from Bean).
9220 2008-05-31 Robert Millan <rmh@aybabtu.com>
9222 * commands/search.c (search_label, search_fs_uuid, search_file): Do
9223 not print device names when we were asked to set a variable.
9225 2008-05-31 Robert Millan <rmh@aybabtu.com>
9227 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
9228 using "cursor-on" and "cursor-off" commands (understood at least by
9229 the Open Firmware flavour on OLPC).
9231 2008-05-31 Michael Gorven <michael@gorven.za.net>
9233 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
9234 on and off sequences.
9236 2008-05-31 Robert Millan <rmh@aybabtu.com>
9238 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
9239 * util/update-grub.in: Likewise.
9241 2008-05-30 Pavel Roskin <proski@gnu.org>
9243 * util/biosdisk.c (linux_find_partition): Simplify logic and
9244 make the code more universal. Keep special processing for
9245 devfs, but use a simple rule for all other devices. If the
9246 device ends with a number, append 'p' and the partition number.
9247 Otherwise, append only the partition number.
9249 2008-05-30 Robert Millan <rmh@aybabtu.com>
9251 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
9252 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
9253 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
9254 the `root' parameter to Linux.
9256 2008-05-30 Robert Millan <rmh@aybabtu.com>
9258 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
9259 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
9260 --fs_uuid with --fs-uuid.
9261 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
9262 all filesystems support them).
9264 2008-05-30 Robert Millan <rmh@aybabtu.com>
9266 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
9267 grub_printf() flags, since we're printing in units of 2 bytes.
9269 2008-05-30 Robert Millan <rmh@aybabtu.com>
9271 * util/grub.d/00_header.in: Remove obsolete comment referencing
9272 convert_system_path_to_grub_path().
9273 * util/update-grub.in: Likewise.
9274 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
9275 (convert_system_path_to_grub_path): Add a warning message explaining
9276 that this function is deprecated. Rely on is_path_readable_by_grub()
9277 for the readability checks.
9278 (font_path): Use is_path_readable_by_grub() for the readability
9279 check rather than convert_system_path_to_grub_path().
9281 2008-05-30 Robert Millan <rmh@aybabtu.com>
9283 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
9284 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
9285 converting it first.
9286 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
9287 grub.cfg for access to font file, and afterwards call it again to set
9290 2008-05-30 Robert Millan <rmh@aybabtu.com>
9292 * commands/search.c (options): Add --fs_uuid option.
9293 (search_fs_uuid): New function.
9294 (grub_cmd_search): Fix --set argument passing.
9295 Use search_fs_uuid() when requested via --fs_uuid.
9296 (grub_search_init): Update help message.
9297 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
9298 and redeclare it as an array of 16-bit words.
9299 (grub_ext2_uuid): New function.
9300 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
9301 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
9302 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
9303 (GRUB_DEVICE_BOOT_UUID): New variables.
9304 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
9305 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
9307 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
9308 just assume `root' variable has the right value.
9309 * util/grub.d/10_linux.in: Likewise.
9310 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
9312 (main): Recognise `-t fs_uuid' argument.
9314 2008-05-30 Robert Millan <rmh@aybabtu.com>
9316 * util/biosdisk.c (map): Redefine structure to hold information
9317 about GRUB drive name.
9318 (get_drive): Reimplement without assuming (and verifying) BIOS-like
9320 (call_hook): Remove.
9321 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
9322 member. Assume drive has partitions.
9323 (grub_util_biosdisk_open): Access device names via `.device' struct
9325 (open_device): Likewise.
9326 (find_drive): Likewise.
9327 (read_device_map): Adjust map[] usage to match the new struct
9328 definition. Don't check for duplicates (still possible, but not cheap
9330 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
9331 (make_device_name): Remove assumption of BIOS-like drive names.
9333 2008-05-30 Pavel Roskin <proski@gnu.org>
9335 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
9336 compiling execute.c doesn't need grub_script.tab.h anymore.
9337 (normal/command.c_DEPENDENCIES): Likewise.
9338 (normal/function.c_DEPENDENCIES): Likewise.
9339 * conf/i386-ieee1275.rmk: Likewise.
9340 * conf/i386-linuxbios.rmk: Likewise.
9341 * conf/i386-pc.rmk: Likewise.
9342 * conf/powerpc-ieee1275.rmk: Likewise.
9343 * conf/sparc64-ieee1275.rmk: Likewise.
9345 2008-05-29 Pavel Roskin <proski@gnu.org>
9347 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
9348 when scanning metadata for volume group name.
9350 * include/grub/script.h: Don't include grub_script.tab.h. It's
9351 a generated file, which may only be included from the files with
9352 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
9353 use union YYSTYPE, as the later allows forward declaration.
9354 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
9356 2008-05-29 Robert Millan <rmh@aybabtu.com>
9358 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
9359 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
9360 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
9361 (grub_console_checkkey): Add grub_dprintf() call to report unknown
9364 2008-05-29 Robert Millan <rmh@aybabtu.com>
9366 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
9367 control key combinations.
9369 2008-05-29 Robert Millan <rmh@aybabtu.com>
9371 * util/powerpc/ieee1275/grub-install.in: Move from here ...
9372 * util/ieee1275/grub-install.in: ... to here.
9373 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
9374 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
9375 (grub_install_SOURCES): Likewise.
9377 2008-05-29 Robert Millan <rmh@aybabtu.com>
9379 * fs/affs.c: Update copyright year.
9380 * fs/ext2.c: Likewise.
9381 * fs/fshelp.c: Likewise.
9382 * fs/hfsplus.c: Likewise.
9383 * fs/ntfs.c: Likewise.
9384 * fs/xfs.c: Likewise.
9385 * include/grub/fshelp.h: Likewise.
9386 * util/grub-mkdevicemap.c: Likewise.
9388 2008-05-28 Robert Millan <rmh@aybabtu.com>
9390 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
9391 might need to be fatfs to support some firmware implementations
9394 2008-05-28 Robert Millan <rmh@aybabtu.com>
9396 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
9398 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9399 (make_device_map): Likewise.
9401 2008-05-20 Bean <bean123ch@gmail.com>
9403 * fs/fshelp.c (grub_fshelp_map_block): New function.
9404 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
9405 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
9407 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
9408 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
9409 (grub_fshelp_journal): New structure.
9410 (grub_fshelp_map_block): New function prototype.
9411 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
9412 (grub_fshelp_map_block): Likewise.
9414 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
9415 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
9416 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
9417 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
9418 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
9419 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
9420 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
9421 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
9422 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
9423 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
9424 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
9425 (grub_ext2_sblock): New members for journal support.
9426 (grub_ext3_journal_header): New structure.
9427 (grub_ext3_journal_revoke_header): Likewise.
9428 (grub_ext3_journal_block_tag): Likewise.
9429 (grub_ext3_journal_sblock): Likewise.
9430 (grub_fshelp_node): New members logfile and journal.
9431 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
9432 grub_fshelp_map_block to get real block number.
9433 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
9435 (grub_ext2_read_inode): Likewise.
9436 (grub_ext3_get_journal): New function.
9437 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
9438 (grub_ext2_close): Release memory used by journal.
9440 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
9441 (REISERFS_MAGIC_DESC_BLOCK): New macro.
9442 (grub_reiserfs_transaction_header): Renamed to
9443 grub_reiserfs_description_block, replace field data with real_blocks.
9444 (grub_reiserfs_commit_block): New structure.
9445 (grub_reiserfs_data): New member journal.
9446 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
9448 (grub_reiserfs_read_symlink): Likewise.
9449 (grub_reiserfs_iterate_dir): Likewise.
9450 (grub_reiserfs_open): Likewise.
9451 (grub_reiserfs_read): Likewise.
9452 (grub_reiserfs_get_journal): New function.
9453 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
9454 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
9455 using grub_reiserfs_get_journal.
9456 (grub_reiserfs_close): Release memory used by journal.
9458 * fs/affs.c (grub_affs_read_block): Change block type to
9459 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
9461 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
9463 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
9465 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
9467 * fs/udf.c (grub_udf_read_block): Change block type to
9468 grub_disk_addr_t. Use type cast to avoid warning.
9470 * fs/xfs.c (grub_xfs_read_block): Likewise.
9472 2008-05-16 Christian Franke <franke@computer.org>
9474 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
9475 to ensure that break with ESC will always work.
9476 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
9477 Remove ESC from keyboard queue.
9479 2008-05-16 Christian Franke <franke@computer.org>
9481 * util/biosdisk.c: [__CYGWIN__] Add includes.
9482 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
9483 (get_os_disk): Move variable declarations to OS specific
9484 parts to avoid warning.
9485 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
9486 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
9487 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
9489 * util/getroot.c: [__CYGWIN__] Add includes.
9490 (strip_extra_slashes): Fix "/" case.
9491 [__CYGWIN__] (get_win32_path): New function.
9492 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
9493 [__CYGWIN__] (find_root_device): Disable.
9494 [__CYGWIN__] (get_bootsec_serial): New function.
9495 [__CYGWIN__] (find_cygwin_root_device): Likewise.
9496 [__linux__] (grub_guess_root_device): Add early returns to simplify
9498 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
9499 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
9500 check for Linux only.
9502 2008-05-15 Bean <bean123ch@gmail.com>
9504 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
9505 keyboard hang problem in apple's intel mac.
9507 2008-05-09 Robert Millan <rmh@aybabtu.com>
9509 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
9511 * util/grub-mkdevicemap.c (get_virtio_disk_name)
9512 (make_device_map): Likewise.
9513 Reported by Aurelien Jarno <aurel32@debian.org>
9515 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
9517 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
9518 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
9519 (make_device_map): Output entries for xvd type disks.
9521 2008-05-07 Robert Millan <rmh@aybabtu.com>
9523 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
9525 * util/grub-mkdevicemap.c (get_cciss_disk_name)
9526 (make_device_map): Likewise.
9527 Reported by Roland Dreier <rdreier@cisco.com>
9529 2008-05-07 Robert Millan <rmh@aybabtu.com>
9531 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
9532 grub_strstr() call. Correct a few mistakes in failure path handling.
9534 2008-05-06 Robert Millan <rmh@aybabtu.com>
9536 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
9537 Do not print a trailing slash (therefore, the root directory is an
9539 (convert_system_path_to_grub_path): Do not remove trailing slash
9540 from make_system_path_relative_to_its_root() output.
9542 * util/i386/pc/grub-install.in: Add trailing slash to output from
9543 make_system_path_relative_to_its_root().
9545 2008-05-06 Robert Millan <rmh@aybabtu.com>
9547 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
9548 ensures that output lines aren't intermangled with those sent to
9549 stderr (via grub_util_info()).
9550 * util/grub-probe.c (grub_refresh): Likewise.
9551 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
9553 2008-05-05 Christian Franke <franke@computer.org>
9555 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
9556 Add Cygwin device names.
9557 (get_ide_disk_name) [__CYGWIN__]: Likewise.
9558 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
9559 (check_device): Return error instead of success on empty name.
9560 (make_device_map): Move label inside linux specific code to
9561 prevent compiler warning.
9563 2008-04-30 Robert Millan <rmh@aybabtu.com>
9565 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
9566 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
9568 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
9570 2008-04-29 Robert Millan <rmh@aybabtu.com>
9572 * docs/grub.cfg: New file (example GRUB configuration).
9574 2008-04-26 Robert Millan <rmh@aybabtu.com>
9576 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
9577 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
9578 and `disk/ieee1275/nand.c'.
9580 2008-04-25 Bean <bean123ch@gmail.com>
9582 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
9585 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
9586 change the buffer size to 4096 for cdrom device.
9588 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
9590 (_linux_mod_SOURCES): New variable.
9591 (_linux_mod_CFLAGS): Likewise.
9592 (_linux_mod_LDFLAGS): Likewise.
9593 (linux_mod_SOURCES): Likewise.
9594 (linux_mod_CFLAGS): Likewise.
9595 (linux_mod_LDFLAGS): Likewise.
9596 (nand_mod_SOURCES): Likewise.
9597 (nand_mod_CFLAGS): Likewise.
9598 (nand_mod_LDFLAGS): Likewise.
9600 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
9601 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
9602 type property. (nand device in olpc don't have this property)
9604 * include/grub/disk.h (grub_disk_dev_id): New macro
9605 GRUB_DISK_DEVICE_NAND_ID.
9607 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
9609 (grub_rescue_cmd_initrd): Likewise.
9611 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
9612 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
9613 ofw_cif_handler and ofw_idt, adjust padding number.
9615 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
9616 GRUB_MACHINE_IEEE1275 is defined.
9618 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
9619 Use NESTED_FUNC_ATTR attribute on the hook parameter.
9621 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
9622 on nested function heap_init.
9623 (grub_upper_mem): New variable for i386-ieee1275.
9624 (grub_get_extended_memory): New function for i386-ieee1275.
9625 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
9627 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
9628 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
9631 * loader/i386/ieee1275/linux.c: New file.
9633 * loader/i386/ieee1275/linux_normal.c: New file.
9635 * disk/ieee1275/nand.c: New file.
9637 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
9639 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
9641 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
9643 2008-04-18 Robert Millan <rmh@aybabtu.com>
9645 Restructures early code path on ieee1275 to unify grub_main() as
9646 the first C function that is executed in every platform.
9648 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
9649 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
9651 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
9652 * kern/ieee1275/cmain.c (cmain): Rename to ...
9653 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
9654 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
9657 2008-04-18 Robert Millan <rmh@aybabtu.com>
9659 * util/update-grub.in: Fix syntax error when setting
9660 `GRUB_PRELOAD_MODULES'.
9661 Reported by Stephane Chazelas <stephane@artesyncp.com>
9663 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
9665 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
9666 section into account, newer toolchains generate unique build ids
9667 * configure.ac: remove the test for --build-id=none acceptance,
9668 we want build ids to be preserved
9669 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
9670 far from other sections don't cause the raw binary images grow
9673 2008-04-15 Robert Millan <rmh@aybabtu.com>
9675 * disk/lvm.c: Update copyright year.
9676 * kern/misc.c: Likewise.
9678 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
9680 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
9681 there is no memory left for physical volume name.
9683 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
9685 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
9686 volume name mapping to support bigger than 9 character names properly.
9688 2008-04-13 Robert Millan <rmh@aybabtu.com>
9690 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
9691 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
9693 2008-04-13 Christian Franke <franke@computer.org>
9695 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
9696 to create a floppy emulation boot CD when non emulation mode
9698 Enable Joliet CD filesystem extension.
9700 2008-04-13 Robert Millan <rmh@aybabtu.com>
9702 * kern/misc.c (grub_strncat): Fix off-by-one error.
9703 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
9705 * kern/env.c (grub_env_context_close): Clear current context, not
9707 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
9709 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
9711 2008-04-13 Robert Millan <rmh@aybabtu.com>
9713 Improve robustness when handling LVM.
9715 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
9716 (and leave `*p' unmodified).
9717 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
9719 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
9720 iterating through it.
9721 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
9723 (grub_lvm_scan_device): Check the return value (and fail gracefully
9724 when due) on each grub_lvm_getvalue() or grub_strstr() call.
9725 Don't assume `vg->pvs != NULL' when iterating through it.
9727 2008-04-13 Robert Millan <rmh@aybabtu.com>
9729 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
9730 * genmk.rb (partmap): New variable.
9731 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
9732 (#{partmap}): New target rule.
9733 * genpartmaplist.sh: New file.
9734 * Makefile.in (pkglib_DATA): Add partmap.lst.
9735 (partmap.lst): New target rule.
9736 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
9737 modules (including all partition maps), instead of preloading them.
9739 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
9741 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
9742 `linux-boot-prober' (if installed) to detect other operating
9743 systems which are installed on the computer and add them to
9745 * conf/common.rmk: Build and install 30_os-prober.
9747 2008-04-12 Robert Millan <rmh@aybabtu.com>
9749 * kern/powerpc/ieee1275/init.c: Move from here ...
9750 * kern/ieee1275/init.c: ... to here. Update all users.
9752 * kern/powerpc/ieee1275/cmain.c: Move from here ...
9753 * kern/ieee1275/cmain.c: ... to here. Update all users.
9755 * kern/powerpc/ieee1275/openfw.c: Move from here ...
9756 * kern/ieee1275/openfw.c: ... to here. Update all users.
9758 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
9759 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
9761 2008-04-10 Pavel Roskin <proski@gnu.org>
9763 * configure.ac: Always use "_cv_" in cache variables for
9764 compatibility with Autoconf 2.62.
9766 2008-04-07 Robert Millan <rmh@aybabtu.com>
9768 Revert grub/machine/init.h addition by Pavel (since it breaks on
9769 i386-ieee1275 and others):
9770 * util/i386/pc/misc.c: Remove grub/machine/init.h.
9771 * util/powerpc/ieee1275/misc.c: Likewise.
9773 2008-04-07 Robert Millan <rmh@aybabtu.com>
9775 * util/grub-probe.c (probe): Improve error message.
9777 2008-04-07 Robert Millan <rmh@aybabtu.com>
9779 * util/biosdisk.c (read_device_map): Skip devices that don't exist
9780 (this prevents the presence of a bogus entry from ruining the whole
9783 2008-04-06 Pavel Roskin <proski@gnu.org>
9785 * util/biosdisk.c: Include grub/util/biosdisk.h.
9786 * util/grub-fstest.c (execute_command): Make static.
9787 * util/grub-mkdevicemap.c (check_device): Likewise.
9788 * util/i386/pc/misc.c: Include grub/machine/init.h.
9789 * util/powerpc/ieee1275/misc.c: Likewise.
9790 * util/lvm.c: Include grub/util/lvm.h.
9791 * util/misc.c: Include grub/kernel.h, grub/misc.h and
9793 * util/raid.c: Include grub/util/raid.h.
9794 (grub_util_getdiskname): Make static.
9796 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
9797 grub_hostfs_fini(), as they are called from grub_init_all() and
9798 grub_fini_all() respectively. This fixes an infinite loop in
9799 grub-fstest due to double registration of hostfs.
9800 Reported by Christian Franke <Christian.Franke@t-online.de>
9802 2008-04-05 Pavel Roskin <proski@gnu.org>
9804 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
9805 all 8 functions. Otherwise, probe function 0 only.
9807 2008-04-04 Pavel Roskin <proski@gnu.org>
9809 * commands/lspci.c (grub_lspci_iter): Print the bus number
9812 * commands/lspci.c (grub_pci_classes): Fix typos.
9813 (grub_lspci_iter): Don't print func twice. Print vendor ID
9814 before device ID, as it's normally done.
9816 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
9817 Fix signedness warnings.
9818 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
9820 * util/ieee1275/get_disk_name.c: Include config.h so that
9821 _GNU_SOURCE is defined and getline() is declared. Mark an
9822 unused argument as such. Fix a signedness warning.
9824 2008-04-02 Pavel Roskin <proski@gnu.org>
9826 * genkernsyms.sh.in: Use more robust assignments for CC and
9827 srcdir. Quote srcdir.
9828 * gensymlist.sh.in: Likewise. Assert at the compile time that
9829 the symbol table is not empty.
9831 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
9832 * fs/cpio.c (grub_cpio_read): Likewise.
9834 2008-04-01 Pavel Roskin <proski@gnu.org>
9836 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
9837 * disk/host.c (grub_host_open): Likewise.
9838 * disk/loopback.c (grub_loopback_open): Likewise.
9839 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
9840 disk->id as in disk/host.c, not a multi-character constant.
9842 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
9843 later is obsolete, potentially dangerous and sets a bad example.
9844 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
9845 * util/misc.c (grub_util_get_image_size): Likewise.
9847 * disk/loopback.c (options): Improve help for "--partitions".
9849 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
9850 options to align them with the short options, e.g. "echo -e".
9852 2008-03-31 Bean <bean123ch@gmail.com>
9854 * video/reader/png.c (grub_png_data): New member is_16bit and
9856 (grub_png_decode_image_header): Detect 16 bit png image.
9857 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
9858 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
9859 (grub_video_reader_png): Release memory occupied by image_data.
9861 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
9863 (grub_nfs_mount): Skip the test for sector per cluster.
9865 * include/grub/ntfs.h (MAX_SPC): Removed.
9867 2008-03-31 Bean <bean123ch@gmail.com>
9869 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
9870 (grub_probe_SOURCES): Add fs/afs.c.
9871 (grub_fstest_SOURCES): Likewise.
9872 (afs_mod_SOURCES): New variable.
9873 (afs_mod_CFLAGS): Likewise.
9874 (afs_mod_LDFLAGS): Likewise.
9876 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
9877 (grub_emu_SOURCES): Likewise.
9879 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9881 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9883 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9885 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9887 * fs/afs.c: New file.
9889 2008-03-30 Pavel Roskin <proski@gnu.org>
9891 * disk/host.c: Include grub/misc.h to fix a warning.
9892 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
9893 warnings about implicit declarations.
9895 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
9897 * include/grub/i386/loader.h: Change declaration of
9898 grub_linux_boot() to match what grub_loader_set() expects.
9899 * util/getroot.c (grub_guess_root_device): Return const char* to
9901 * util/grub-probe.c (probe): Fix a warning about uninitialized
9902 abstraction_name variable.
9903 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
9904 second argument as unused to fix a warning.
9906 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
9907 missing grub_error() call.
9909 * util/update-grub_lib.in: Define datarootdir, since Autoconf
9910 2.60 and newer uses it to define datadir.
9912 * commands/sleep.c: Fix warning about implicit declaration.
9913 * disk/memdisk.c: Likewise.
9914 * loader/aout.c: Likewise.
9915 * loader/i386/bsd_normal.c: Likewise.
9916 * util/grub-probe.c: Likewise.
9918 * commands/i386/cpuid.c (has_longmode): Make static.
9919 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
9920 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
9922 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
9923 GDT. This is more robust, as %ds can change.
9924 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
9925 calling real_to_prot().
9926 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
9928 2008-03-28 Pavel Roskin <proski@gnu.org>
9930 * kern/i386/pc/startup.S: Assert that uncompressed functions
9931 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
9932 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
9933 code, as they push parts of the code (error handlers) beyond
9934 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
9935 code as correctness and size.
9937 2008-03-28 Pavel Roskin <proski@gnu.org>
9939 * kern/i386/pc/startup.S
9940 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
9941 data block address to the real mode, keep offset minimal. This
9942 works around a bug in AWARD BIOS on old Athlon systems, which
9943 makes CD detection hang.
9945 2008-03-26 Pavel Roskin <proski@gnu.org>
9947 * normal/color.c (grub_parse_color_name_pair): Make `name' a
9949 * include/grub/normal.h: Add grub_parse_color_name_pair()
9952 2008-03-24 Bean <bean123ch@gmail.com>
9954 * disk/i386/pc/biosdisk.c (cd_start): Removed.
9955 (cd_count): Removed.
9956 (cd_drive): New variable.
9957 (grub_biosdisk_get_drive): Don't check for (cdN) device.
9958 (grub_biosdisk_call_hook): Likewise.
9959 (grub_biosdisk_iterate): Change cdrom detection method.
9960 (grub_biosdisk_open): Replace cd_start with cd_drive.
9961 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
9962 detect cdrom device.
9964 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
9966 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
9967 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
9968 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
9969 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
9970 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
9971 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
9972 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
9973 (grub_biosdisk_cdrp): New structure.
9974 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
9976 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
9978 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
9981 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
9984 2008-03-20 Robert Millan <rmh@aybabtu.com>
9986 Remove 2 TiB limit in ata.mod.
9987 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
9988 (grub_ata_dumpinfo): Print sector count with 0x%llx.
9989 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
9990 grub_uint64_t instead of grub_uint32_t.
9992 2008-03-05 Bean <bean123ch@gmail.com>
9994 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
9995 (grub_multiboot): Set boot device.
9997 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
9999 2008-03-02 Bean <bean123ch@gmail.com>
10001 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
10004 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
10006 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
10009 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
10012 * docs/fdl.texi: New file.
10014 * docs/mdate-sh: New file. Copied from gnulib.
10015 * docs/texinfo.tex: Likewise.
10017 * config.guess: Updated from gnulib.
10018 * install-sh: Likewise.
10020 2008-02-28 Robert Millan <rmh@aybabtu.com>
10022 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
10023 (aout_mod_SOURCES): New variable.
10024 (aout_mod_CFLAGS): Likewise.
10025 (aout_mod_LDFLAGS): Likewise.
10027 * conf/i386-ieee1275.rmk: Likewise.
10029 2008-02-28 Robert Millan <rmh@aybabtu.com>
10031 * util/update-grub.in: Reorganise terminal validity check. Accept
10032 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
10033 Based on suggestion by Franklin PIAT.
10035 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
10037 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
10039 * util/getroot.c (grub_util_check_block_device): New function that
10040 returns the given argument if it is a block device and returns NULL else.
10041 * util/grub-probe.c (argument_is_device): New variable.
10042 (probe): Promote device_name from a variable to an argument. Receive
10043 device_name from grub_util_check_block_device() if path is NULL and from
10044 grub_guess_root_device() else. Do not free() device_name anymore.
10045 (options): Introduce new parameter '-d, --device'.
10046 (main): Add description of the new parameter to the help screen.
10047 Rename path variable to argument. Set argument_is_device if the '-d'
10048 option is given. Pass argument to probe() depending on
10049 argument_is_device.
10051 2008-02-24 Bean <bean123ch@gmail.com>
10053 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
10054 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
10055 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
10056 (GRUB_ISO9660_VOLDESC_PART): Likewise.
10057 (GRUB_ISO9660_VOLDESC_END): Likewise.
10058 (grub_iso9660_primary_voldesc): New member escape.
10059 (grub_iso9660_data): New member joliet.
10060 (grub_iso9660_convert_string): New function.
10061 (grub_iso9660_mount): Detect joliet extension.
10062 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
10063 (grub_iso9660_iso9660_label): Likewise.
10065 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
10066 (grub_setup_SOURCES): Add fs/udf.c.
10067 (grub_fstest_SOURCES): Likewise.
10068 (udf_mod_SOURCES): New variable.
10069 (udf_mod_CFLAGS): Likewise.
10070 (udf_mod_LDFLAGS): Likewise.
10072 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
10073 (grub_emu_SOURCES): Likewise.
10075 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10077 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10079 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10081 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10083 * fs/udf.c: New file.
10085 2008-02-24 Robert Millan <rmh@aybabtu.com>
10087 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
10088 (normal/lexer.c_DEPENDENCIES): New variables.
10089 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10090 (normal/lexer.c_DEPENDENCIES): Likewise.
10091 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
10092 (normal/lexer.c_DEPENDENCIES): Likewise.
10093 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
10094 (normal/lexer.c_DEPENDENCIES): Likewise.
10095 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10096 (normal/lexer.c_DEPENDENCIES): Likewise.
10097 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10098 (normal/lexer.c_DEPENDENCIES): Likewise.
10100 2008-02-23 Robert Millan <rmh@aybabtu.com>
10102 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
10103 since they were intended to be in hex. This didn't break previously
10104 because of a bug in gpt_partition_map_iterate() (see below).
10106 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
10107 when checking the validity of GPT header.
10108 Remove `partno', since it always provides the same information as `i'.
10110 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
10112 * include/grub/efi/time.h: Fix a wrong comment.
10114 2008-02-19 Pavel Roskin <proski@gnu.org>
10116 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
10119 2008-02-19 Bean <bean123ch@gmail.com>
10121 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
10122 (aout_mod_SOURCES): New variable.
10123 (aout_mod_CFLAGS): Likewise.
10124 (aout_mod_LDFLAGS): Likewise.
10125 (_bsd_mod_SOURCES): New variable.
10126 (_bsd_mod_CFLAGS): Likewise.
10127 (_bsd_mod_LDFLAGS): Likewise.
10128 (bsd_mod_SOURCES): New variable.
10129 (bsd_mod_CFLAGS): Likewise.
10130 (bsd_mod_LDFLAGS): Likewise.
10132 * include/grub/aout.h: New file.
10134 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10136 * include/grub/i386/bsd.h: New file.
10138 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10141 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10142 function is called, so that it's possible to change it inside the hook.
10143 (grub_elf64_load): Likewise.
10144 (grub_elf_file): Don't close the file if elf header is not found.
10145 (grub_elf_close): Close the file if grub_elf_file fails (The new
10146 grub_elf_file won't close it).
10147 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10148 (grub_elf64_size): Likewise.
10150 * kern/i386/loader.S (grub_unix_real_boot): New function.
10152 * loader/aout.c: New file.
10154 * loader/i386/bsd.c: New file.
10156 * loader/i386/bsd_normal.c: New file.
10158 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10160 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10161 can test other formats.
10163 2008-02-19 Robert Millan <rmh@aybabtu.com>
10165 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10166 (grub_gpt_partition_type_empty): Redefine with macro from
10167 `<grub/gpt_partition.h>'.
10168 (gpt_partition_map_iterate): Adjust partition type comparison.
10170 Export `entry' as partmap-specific `part.data' struct.
10171 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10173 * include/grub/gpt_partition.h (grub_gpt_header)
10174 (grub_gpt_partentry): ... to here (new file).
10176 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10178 (grub_gpt_partition_type_bios_boot): New const variable, defined
10179 with macro from `<grub/gpt_partition.h>'.
10181 (setup): Replace `first_start' with `embed_region', which keeps
10182 track of the embed region (and is partmap-agnostic).
10184 Replace find_first_partition_start() with find_usable_region(),
10185 which finds a usable region for embedding using partmap-specific
10186 knowledge (supports PC/MSDOS and GPT).
10188 Fix all assumptions that the embed region start at sector 1, using
10189 `embed_region.start' from now on. Similarly, use `embed_region.end'
10190 rather than `first_start' to calculate available size.
10192 In grub_util_info() message, replace "into after the MBR" with an
10193 indication of the specific sector our embed region starts at.
10195 2008-02-19 Robert Millan <rmh@aybabtu.com>
10197 * DISTLIST: Replace `commands/ieee1275/halt.c' and
10198 `commands/ieee1275/reboot.c' with `commands/halt.c' and
10199 `commands/reboot.c'.
10200 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10201 (halt_mod_SOURCES): Likewise.
10202 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10203 (halt_mod_SOURCES): Likewise.
10205 2008-02-17 Christian Franke <franke@computer.org>
10207 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
10209 2008-02-17 Robert Millan <rmh@aybabtu.com>
10211 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10212 set `first_start' to 0 for non-PC/MSDOS partition maps.
10214 2008-02-16 Robert Millan <rmh@aybabtu.com>
10216 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10217 do not assume partition map is PC/MSDOS before performing checks that
10218 are specific to that layout.
10220 2008-02-13 Robert Millan <rmh@aybabtu.com>
10222 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
10223 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
10224 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
10226 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
10228 * configure.ac: Only a cosmetic change on the handling of
10229 -fno-stack-protector.
10231 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
10233 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
10234 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
10236 (grub_install_SOURCES): Add halt.mod and reboot.mod.
10237 (halt_mod_SOURCES): New variable.
10238 (halt_mod_CFLAGS): Likewise.
10239 (halt_mod_LDFLAGS): Likewise.
10240 (reboot_mod_SOURCES): Likewise.
10241 (reboot_mod_CFLAGS): Likewise.
10242 (reboot_mod_LDFLAGS): Likewise.
10244 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
10245 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
10247 (halt_mod_SOURCES): Likewise.
10248 (reboot_mod_SOURCES): Likewise.
10250 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
10251 commands/i386/pc/reboot.c by commands/reboot.c.
10252 (reboot_mod_SOURCES): Likewise.
10254 * commands/i386/pc/reboot.c: merge this file ...
10256 * commands/ieee1275/reboot.c: ... and this file ...
10258 * commands/reboot.c: ... to this file.
10259 Add some precompiler directive to include the correct header for
10262 * commands/ieee1275/halt.c: move this file ...
10264 * commands/halt.c: ... to here.
10265 Add some precompiler directive to include the correct header for
10268 * include/grub/efi/efi.h (grub_reboot): New function declaration.
10269 (grub_halt): Likewise.
10271 * kern/efi/efi.c (grub_reboot): New function.
10272 (grub_halt): Likewise.
10274 2008-02-12 Robert Millan <rmh@aybabtu.com>
10276 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
10277 /dev (like it is done for /dev/mapper). This doesn't provide support
10278 for EVMS, but at least it is now easy to identify the problem when it
10281 2008-02-11 Robert Millan <rmh@aybabtu.com>
10283 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
10284 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
10285 comparing it with -1, not 0.
10287 2008-02-10 Robert Millan <rmh@aybabtu.com>
10289 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
10291 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10292 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10294 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
10295 `disk/lvm.c' to the end of the list.
10296 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10297 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10299 2008-02-10 Robert Millan <rmh@aybabtu.com>
10301 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
10302 grub_print_error() instead. This will let user know why we're entering
10304 Based on suggestions from Sam Morris.
10306 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
10308 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
10309 on remaining N args, instead of "--" arg N times.
10311 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
10313 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
10314 (fill_with_default_glyph): Changed to use unknown_glyph for fill
10315 pattern for unknown glyphs.
10317 2008-02-09 Robert Millan <rmh@aybabtu.com>
10319 * configure.ac: Probe for `help2man'.
10320 * Makefile.in (builddir): New variable.
10321 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
10322 or otherwise add a few flags/options to it.
10323 (install-local): For every executable utility or script that is
10324 installed, invoke $(HELP2MAN) to install a manpage based on --help
10327 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
10328 that it doesn't prevent --help from working in build tree.
10330 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
10331 with `bug-grub@gnu.org'.
10332 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
10333 * util/update-grub.in (usage): New function.
10334 Implement proper argument check, with support for --help and --version
10335 (as well as existing -y).
10337 2008-02-09 Christian Franke <franke@computer.org>
10339 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
10340 avoid overwriting previous output.
10341 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
10343 2008-02-09 Robert Millan <rmh@aybabtu.com>
10345 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
10348 2008-02-09 Robert Millan <rmh@aybabtu.com>
10350 * commands/sleep.c: New file.
10351 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
10352 (sleep_mod_SOURCES): New variable.
10353 (sleep_mod_CFLAGS): Likewise.
10354 (sleep_mod_LDFLAGS): Likewise.
10356 2008-02-09 Robert Millan <rmh@aybabtu.com>
10358 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
10359 situations in which we can deduce the RAID size and the superblock
10362 2008-02-09 Robert Millan <rmh@aybabtu.com>
10364 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
10365 and return a grub_diskmemberlist_t composed of LVM physical volumes.
10366 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
10368 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
10369 and return a grub_diskmemberlist_t composed of physical array members.
10370 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
10372 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
10374 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
10375 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
10376 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
10378 * util/grub-probe.c (probe): Move partmap probing code from here ...
10379 (probe_partmap): ... to here.
10380 (probe): Use probe_partmap() once for the disk we're probing, and
10381 additionally, when such disk contains a memberlist() struct member,
10382 once for each disk that is contained in the structure returned by
10385 2008-02-09 Robert Millan <rmh@aybabtu.com>
10387 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
10388 environment variable to 'all' in order to obtain debug output from
10390 * util/i386/pc/grub-setup.c (main): Likewise.
10392 2008-02-08 Robert Millan <rmh@aybabtu.com>
10394 * disk/raid.c (grub_raid_scan_device): Check for
10395 `array->device[sb.this_disk.number]' rather than for
10396 `array->device[sb.this_disk.number]->name', since the latter is not
10397 guaranteed to be accessible.
10399 2008-02-08 Robert Millan <rmh@aybabtu.com>
10401 * disk/raid.c: Update copyright.
10402 * fs/cpio.c: Likewise.
10403 * include/grub/raid.h: Likewise.
10404 * loader/i386/pc/multiboot.c: Likewise.
10405 * util/hostfs.c: Likewise.
10407 2008-02-08 Robert Millan <rmh@aybabtu.com>
10409 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
10410 to a grub_disk_t array.
10411 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
10413 (grub_raid_scan_device): Replace `device[x].name' accesses with
10414 `device[x]->name'. Simplify initialization of `array->device[x]'.
10416 2008-02-08 Robert Millan <rmh@aybabtu.com>
10418 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
10419 grub_dprintf() calls.
10420 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
10423 2008-02-07 Christian Franke <franke@computer.org>
10425 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
10426 instead of fseek and ftell to support large files.
10427 (grub_hostfs_read): Likewise.
10429 2008-02-07 Robert Millan <rmh@aybabtu.com>
10431 Patch from Jeroen Dekkers.
10432 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
10433 failure, since successfully reading all array members might not be
10436 2008-02-06 Robert Millan <rmh@aybabtu.com>
10438 * util/grub-probe.c (probe): Simplify partmap probing (with the
10439 assumption that the first word up to the underscore equals to
10442 2008-02-06 Christian Franke <franke@computer.org>
10444 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
10445 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
10446 last block of a cpio or tar stream.
10447 Check for "TRAILER!!!" instead of any empty data
10448 block to detect last block of a cpio stream.
10449 (grub_cpio_dir): Fix constness of variable np.
10450 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
10451 cpio or tar trailer is detected. This fixes a crash
10452 on open of a non existing file.
10454 2008-02-05 Bean <bean123ch@gmail.com>
10456 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
10458 (grub_multiboot_load_elf64): Likewise.
10459 (grub_multiboot): Initialize mbi structure.
10461 * util/grub-fstest.c: Don't include unused header file script.h.
10463 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
10465 (grub_fstest_SOURCES): Likewise.
10467 2008-02-05 Robert Millan <rmh@aybabtu.com>
10469 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
10470 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
10471 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
10472 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
10474 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
10475 (translation_table): Replace hardcoded values with macros
10476 provided by `<grub/term.h>'.
10478 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
10479 (keyboard_map): Correct/add a few values, with macros provided
10480 by `<grub/term.h>'.
10481 (keyboard_map_shift): Zero values that don't differ from their
10482 `keyboard_map' equivalents.
10483 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
10484 Discard the second scan code that is always sent by Caps lock.
10485 Only use `keyboard_map_shift' when it provides a non-zero value,
10486 otherwise fallback to `keyboard_map'.
10488 2008-02-04 Bean <bean123ch@gmail.com>
10490 * Makefile.in (enable_grub_fstest): New variable.
10492 * conf/common.rmk (grub_fstest_init.lst): New rule.
10493 (grub_fstest_init.h): Likewise.
10494 (grub_fstest_init.c): Likewise.
10495 (util/grub-fstest.c_DEPENDENCIES): New variable.
10496 (grub_fstest_SOURCES): Likewise.
10498 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
10500 * util/grub-fstest.c: New file.
10502 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10504 Make grub-setup handle a separate root device.
10506 * util/i386/pc/grub-setup.c (setup): Always open the root device,
10507 so that the root device can be compared with the destination
10509 When embedding the core image, if the root and destination devices
10510 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
10512 When not embedding, set ROOT_DRIVE to 0xFF.
10514 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10516 Add support for having a grub directory in a different drive. This
10517 is still only the data handling part.
10519 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
10520 (codestart): Save %dh in GRUB_ROOT_DRIVE.
10521 (grub_root_drive): New variable.
10523 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
10524 instead of GRUB_BOOT_DRIVE to construct a device name. Set
10525 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
10528 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
10530 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
10532 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
10534 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
10535 is bogus, because PXE booting does not specify any drive
10538 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
10539 am not sure if this is really correct.
10541 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
10542 is always identical to the boot drive when booting from a CD.
10544 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
10546 (root_drive): New variable.
10547 (real_start): Unconditionally set %dh to ROOT_DRIVE.
10548 (setup_sectors): Push %dx right after popping it, because %dh will
10550 (copy_buffer): Restore %dx.
10552 2008-02-03 Robert Millan <rmh@aybabtu.com>
10554 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
10555 use `cdboot.img' for cdrom images.
10557 2008-02-03 Robert Millan <rmh@aybabtu.com>
10559 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
10560 only setup gfxterm when `font' command has succeeded.
10562 2008-02-03 Robert Millan <rmh@aybabtu.com>
10564 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
10565 (grub_rescue_cmd_multiboot_loader)
10566 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
10568 2008-02-03 Pavel Roskin <proski@gnu.org>
10570 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
10571 %edx and %esi from stack only after grub_gate_a20() is called.
10572 grub_gate_a20() clobbers %edx.
10574 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10576 * configure.ac (AC_INIT): Bumped to 1.96.
10578 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
10579 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
10580 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
10581 video/readers/png.c.
10583 2008-02-03 Bean <bean123ch@gmail.com>
10585 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
10586 (cdboot_img_SOURCES): New variable.
10587 (cdboot_img_ASFLAGS): New variable.
10588 (cdboot_img_LDFLAGS): New variable.
10590 * boot/i386/pc/cdboot.S: New file.
10592 * disk/i386/pc/biosdisk.c (cd_start): New variable.
10593 (cd_count): Likewise.
10594 (grub_biosdisk_get_drive): Add support for cd device.
10595 (grub_biosdisk_call_hook): Likewise.
10596 (grub_biosdisk_iterate): Likewise.
10597 (grub_biosdisk_open): Likewise.
10598 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
10599 (grub_biosdisk_rw): Support reading from cd device.
10600 (GRUB_MOD_INIT): Iterate cd devices.
10602 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
10603 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
10604 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
10606 * kern/i386/pc/init.c (make_install_device): Check for cd device.
10608 2008-02-02 Robert Millan <rmh@aybabtu.com>
10610 * commands/read.c: New file.
10611 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
10612 (read_mod_SOURCES): New variable.
10613 (read_mod_CFLAGS): Likewise.
10614 (read_mod_LDFLAGS): Likewise.
10616 2008-02-02 Robert Millan <rmh@aybabtu.com>
10618 * normal/main.c (grub_normal_execute): Check for `menu->size' when
10619 determining whether menu has to be displayed.
10621 2008-02-02 Marco Gerards <marco@gnu.org>
10623 * bus/pci.c: New file.
10625 * include/grub/pci.h: Likewise.
10627 * include/grub/i386/pc/pci.h: Likewise.
10629 * commands/lspci.c: Likewise.
10631 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
10633 (pci_mod_SOURCES): New variable.
10634 (pci_mod_CFLAGS): Likewise.
10635 (pci_mod_LDFLAGS): Likewise.
10636 (lspci_mod_SOURCES): Likewise.
10637 (lspci_mod_CFLAGS): Likewise.
10638 (lspci_mod_LDFLAGS): Likewise.
10640 2008-02-02 Bean <bean123ch@gmail.com>
10642 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
10643 (grub_ufs_get_file_block): Fix indirect block calculation problem.
10645 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
10646 (grub_xfs_btree_node): New structure.
10647 (grub_xfs_btree_root): New structure.
10648 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
10649 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
10650 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10651 (GRUB_XFS_EXTENT_SIZE): Likewise.
10652 (grub_xfs_read_block): Support btree format type.
10653 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
10654 Use directory block as basic unit.
10656 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
10658 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
10659 __attribute__ ((__regparm__ (1))).
10661 2008-02-01 Robert Millan <rmh@aybabtu.com>
10663 Correct a mistake in previous commit.
10665 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
10667 (normal/command.c_DEPENDENCIES): New variable.
10669 2008-02-01 Robert Millan <rmh@aybabtu.com>
10671 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
10673 (normal/command.c_DEPENDENCIES): New variable.
10674 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
10675 * conf/i386-ieee1275.rmk: Likewise.
10676 * conf/i386-linuxbios.rmk: Likewise.
10677 * conf/i386-pc.rmk: Likewise.
10678 * conf/sparc64-ieee1275.rmk: Likewise.
10679 * conf/powerpc-ieee1275.rmk: Likewise.
10680 (grub_emu_SOURCES): Add `fs/fshelp.c'.
10682 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
10684 2008-02-01 Robert Millan <rmh@aybabtu.com>
10686 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
10687 call at beginning of function.
10689 2008-01-31 Pavel Roskin <proski@gnu.org>
10691 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
10692 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
10693 (grub_mkrescue_SOURCES): Likewise.
10694 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
10696 2008-01-30 Robert Millan <rmh@aybabtu.com>
10698 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
10699 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
10700 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
10701 (grub_probe_SOURCES): ... to here.
10703 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
10704 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
10705 * conf/i386-ieee1275.rmk: Likewise.
10706 * conf/i386-linuxbios.rmk: Likewise.
10707 * conf/powerpc-ieee1275.rmk: Likewise.
10709 2008-01-30 Tristan Gingold <gingold@free.fr>
10711 * kern/rescue.c: Silently accept empty lines.
10713 2008-01-29 Bean <bean123ch@gmail.com>
10715 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
10716 (real_code_2): Code cleanup and change comment style.
10717 (move_memory): Avoid using 32-bit address mode.
10719 2008-01-29 Bean <bean123ch@gmail.com>
10721 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
10722 (png_mod_SOURCES): New variable.
10723 (png_mod_CFLAGS): Likewise.
10724 (png_mod_LDFLAGS): Likewise.
10726 * video/readers/png.c: New file.
10728 2008-01-28 Robert Millan <rmh@aybabtu.com>
10730 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
10731 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
10732 `ifndef GRUB_MOD_GAP' hack.
10733 * util/elf/grub-mkimage.c (add_segments): Likewise.
10735 2008-01-27 Robert Millan <rmh@aybabtu.com>
10737 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
10738 `GRUB_MOD_GAP' for platforms in which it's not defined.
10739 * util/elf/grub-mkimage.c (add_segments): Likewise.
10741 2008-01-27 Robert Millan <rmh@aybabtu.com>
10743 Get grub-emu to build again (including parallel builds).
10745 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
10747 (util/grub-emu.c_DEPENDENCIES): ... this, ...
10748 (normal/execute.c_DEPENDENCIES): ... this, ...
10749 (grub-emu_DEPENDENCIES): ... and this.
10751 * conf/i386-efi.rmk: Likewise.
10752 * conf/i386-linuxbios.rmk: Likewise.
10753 * conf/i386-ieee1275.rmk: Likewise.
10754 * conf/powerpc-ieee1275.rmk: Likewise.
10755 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
10757 2008-01-27 Robert Millan <rmh@aybabtu.com>
10759 * NEWS: Add a few items.
10761 2008-01-27 Robert Millan <rmh@aybabtu.com>
10763 Fix parallel builds with grub-emu. Based on earlier commit for
10764 grub-probe and grub-setup.
10766 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10767 (util/grub-emu.c_DEPENDENCIES): ... this.
10768 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10769 (util/grub-emu.c_DEPENDENCIES): ... this.
10770 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10771 (util/grub-emu.c_DEPENDENCIES): ... this.
10772 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10773 (util/grub-emu.c_DEPENDENCIES): ... this.
10774 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10775 (util/grub-emu.c_DEPENDENCIES): ... this.
10777 2008-01-27 Pavel Roskin <proski@gnu.org>
10779 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
10780 to create a gap between _end and the modules added to the image
10781 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
10782 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
10783 * util/elf/grub-mkimage.c (add_segments): Likewise.
10785 2008-01-26 Pavel Roskin <proski@gnu.org>
10787 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
10788 just return an error.
10790 2008-01-26 Bean <bean123ch@gmail.com>
10792 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
10793 (grub_reiserfs_get_item): Save offset of the next item.
10794 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
10796 2008-01-25 Robert Millan <rmh@aybabtu.com>
10798 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
10799 make all filesystem sources appear together (possibly fixing omissions
10801 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10802 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10803 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10804 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10806 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
10808 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
10809 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
10810 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
10811 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
10813 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
10814 (probe): Add a sanity check to make sure of our ability to read
10815 requested files when probing for filesystem type.
10817 * genmk.rb: Update copyright year (2007).
10819 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
10820 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
10821 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
10822 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
10823 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
10824 : Remove function prototypes.
10826 2008-01-25 Robert Millan <rmh@aybabtu.com>
10828 Revert my previous commits (based on wrong assumption of how grub_errno
10831 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
10832 * kern/file.c (grub_file_open): Likewise.
10834 2008-01-24 Pavel Roskin <proski@gnu.org>
10836 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
10837 that hang if GRUB tries to setup colors.
10838 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
10839 colors for firmwares that don't support it.
10840 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
10841 Recognize Open Hack'Ware, set flags to work around its
10844 2008-01-24 Robert Millan <rmh@aybabtu.com>
10846 * kern/file.c (grub_file_open): Do not account previous failures of
10847 unrelated functions when grub_errno is checked for.
10848 Reported by Oleg Strikov.
10850 2008-01-24 Bean <bean123ch@gmail.com>
10852 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
10853 (grub_ufs_sblock): New member volume name.
10854 (grub_ufs_find_file): Fix string copy bug.
10855 (grub_ufs_label): Implement this function properly.
10857 * fs/hfs.c (grub_hfs_cnid_type): New enum.
10858 (grub_hfs_iterate_records): Use the correct file number for extents
10859 and catalog file. Fix problem in next index calculation.
10860 (grub_hfs_find_node): Replace recursive function call with loop.
10861 (grub_hfs_iterate_dir): Replace recursive function call with loop.
10863 2008-01-23 Robert Millan <rmh@aybabtu.com>
10865 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
10866 `<grub/symbol.h>' and `<grub/multiboot.h>'.
10867 (grub_multiboot2_real_boot): New function prototype.
10869 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
10870 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
10872 * kern/i386/ieee1275/init.c (grub_os_area_addr)
10873 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
10875 2008-01-23 Robert Millan <rmh@aybabtu.com>
10877 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
10878 #ifdef'ed out grub_printf().
10880 2008-01-23 Robert Millan <rmh@aybabtu.com>
10882 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
10883 grub_dprintf calls, since they make "debug=all" mode unusable.
10884 (grub_console_checkkey): Likewise.
10886 2008-01-23 Robert Millan <rmh@aybabtu.com>
10888 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
10889 `term/i386/pc/at_keyboard.c'.
10890 (pkglib_MODULES): Add `serial.mod'.
10891 (serial_mod_SOURCES): New variable.
10892 (serial_mod_CFLAGS): Likewise.
10893 (serial_mod_LDFLAGS): Likewise.
10895 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
10896 `<grub/powerpc/ieee1275/console.h>'.
10897 (grub_keyboard_controller_init): New function prototype.
10898 (grub_console_checkkey): Likewise.
10899 (grub_console_getkey): Likewise.
10901 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
10904 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
10905 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
10907 2008-01-23 Robert Millan <rmh@aybabtu.com>
10909 * kern/i386/pc/init.c (make_install_device): When memdisk image is
10910 present, "(memdisk)/boot/grub" becomes the default prefix.
10912 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
10913 a memdisk tarball with all the modules. Add --overlay=DIR option that
10914 allows users to overlay additional files into the image.
10916 2008-01-23 Robert Millan <rmh@aybabtu.com>
10918 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
10919 and `machine/memory.h'.
10920 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
10921 (_multiboot_mod_SOURCES): New variable.
10922 (_multiboot_mod_CFLAGS): Likewise.
10923 (_multiboot_mod_LDFLAGS): Likewise.
10924 (multiboot_mod_SOURCES): Likewise.
10925 (multiboot_mod_CFLAGS): Likewise.
10926 (multiboot_mod_LDFLAGS): Likewise.
10928 * include/grub/i386/ieee1275/loader.h: New file.
10930 * include/grub/i386/ieee1275/machine.h: Likewise.
10932 * include/grub/i386/ieee1275/memory.h: Likewise.
10934 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
10935 variable declaration.
10936 (grub_os_area_size): Likewise.
10938 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
10939 (grub_lower_mem, grub_upper_mem): New variables.
10940 (grub_stop_floppy): New function (just to make
10941 grub_multiboot2_real_boot() happy).
10943 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
10944 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
10945 (grub_stop): New function.
10946 Include `"../realmode.S"' and `"../loader.S"'.
10948 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
10949 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
10951 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
10952 rely on grub_multiboot2_real_boot() for final boot.
10954 2008-01-22 Robert Millan <rmh@aybabtu.com>
10956 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
10957 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
10958 device that doesn't look like an SD card.
10959 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
10960 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
10961 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
10962 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
10965 2008-01-22 Robert Millan <rmh@aybabtu.com>
10967 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
10968 avoid claiming over our own code.
10970 2008-01-22 Bean <bean123ch@gmail.com>
10972 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
10973 (jpeg_mod_SOURCES): New variable.
10974 (jpeg_mod_CFLAGS): Likewise.
10975 (jpeg_mod_LDFLAGS): Likewise.
10977 * video/readers/jpeg.c : New file.
10979 2008-01-22 Bean <bean123ch@gmail.com>
10981 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
10982 there are no more items.
10984 2008-01-21 Robert Millan <rmh@aybabtu.com>
10986 * kern/mm.c (grub_mm_init_region): Improve debug message.
10988 2008-01-21 Robert Millan <rmh@aybabtu.com>
10990 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
10991 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
10993 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
10995 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
10996 Indicates start of upper memory.
10997 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
10998 (generate_image): Abort when image size is big enough to corrupt
11001 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
11002 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
11003 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11004 instead of hardcoding 0xA0000.
11005 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
11006 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11007 instead of hardcoding 0xA0000.
11009 2008-01-21 Robert Millan <rmh@aybabtu.com>
11011 * disk/memdisk.c (memdisk_size): New variable.
11012 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
11014 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
11015 image to dynamic memory.
11016 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
11017 `memdisk_size'. Free memdisk block.
11019 2008-01-21 Robert Millan <rmh@aybabtu.com>
11021 Fix detection of very small filesystems (like tar).
11023 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
11024 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
11025 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
11026 a problem with this disk).
11028 2008-01-21 Robert Millan <rmh@aybabtu.com>
11030 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
11031 on grub_biosdisk_rw_standard() error.
11033 2008-01-21 Robert Millan <rmh@aybabtu.com>
11035 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
11037 * kern/elf.c: Likewise.
11038 * kern/ieee1275/ieee1275.c: Likewise.
11039 * kern/powerpc/ieee1275/openfw.c: Likewise.
11040 * term/ieee1275/ofconsole.c: Likewise.
11042 2008-01-21 Robert Millan <rmh@aybabtu.com>
11044 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
11046 * include/grub/kernel.h (grub_arch_memdisk_addr)
11047 (grub_arch_memdisk_size): Moved from here ...
11049 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
11050 (grub_arch_memdisk_size): ... to here.
11052 2008-01-21 Robert Millan <rmh@aybabtu.com>
11054 Mostly based on bugfix from Bean.
11056 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
11057 attribute with hook() parameter.
11058 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
11060 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
11061 attribute with hook() parameter.
11062 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
11065 2008-01-21 Robert Millan <rmh@aybabtu.com>
11067 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
11068 (pkglib_MODULES): Add `memdisk.mod'.
11069 (memdisk_mod_SOURCES): New variable.
11070 (memdisk_mod_CFLAGS): Likewise.
11071 (memdisk_mod_LDFLAGS): Likewise.
11073 * disk/memdisk.c: New file.
11075 * include/grub/disk.h (grub_disk_dev_id): Add
11076 `GRUB_DISK_DEVICE_MEMDISK_ID'.
11078 * include/grub/i386/pc/kernel.h
11079 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
11080 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
11081 (grub_kernel_image_size): New variable declaration.
11082 (grub_total_module_size): Likewise.
11083 (grub_memdisk_image_size): Likewise.
11085 * include/grub/i386/pc/memory.h
11086 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
11088 * include/grub/kernel.h: Include `<grub/symbol.h>'.
11089 (grub_arch_memdisk_addr): New variable declaration.
11090 (grub_arch_memdisk_size): Likewise.
11092 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
11093 (grub_arch_memdisk_size): Likewise.
11095 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
11096 (codestart): Replace hardcoded `0x100000' with
11097 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
11099 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
11100 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
11101 not NULL, append the contents of the file it refers to, at the end of
11102 the compressed kernel image. Initialize `grub_memdisk_image_size'
11103 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
11104 (options): Add "memdisk"|'m' option.
11105 (main): Parse --memdisk|-m option, and pass user-provided path as
11106 parameter to generate_image().
11108 2008-01-20 Robert Millan <rmh@aybabtu.com>
11110 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
11111 grub_dprintf() calls from here ...
11112 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
11114 2008-01-20 Robert Millan <rmh@aybabtu.com>
11116 Fix detection of "real mode" when /options/real-mode? doesn't exist.
11118 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
11120 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
11121 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
11122 `GRUB_IEEE1275_FLAG_REAL_MODE'.
11123 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
11125 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
11126 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
11128 2008-01-19 Robert Millan <rmh@aybabtu.com>
11130 Get rid of confusing function (superseded by
11131 `grub_ieee1275_get_integer_property')
11132 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11134 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11136 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11137 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11138 in native endianness from grub_ieee1275_get_integer_property().
11140 2008-01-19 Robert Millan <rmh@aybabtu.com>
11142 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11143 command after "shut-down", since implementations differ on which
11144 the command for halt is.
11146 2008-01-19 Robert Millan <rmh@aybabtu.com>
11148 * include/grub/i386/linuxbios/console.h: Add header protection.
11149 (grub_keyboard_controller_init): New function prototype.
11150 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11151 (KEYBOARD_COMMAND_READ): Likewise.
11152 (KEYBOARD_COMMAND_WRITE): Likewise.
11153 (KEYBOARD_SCANCODE_SET1): Likewise.
11154 (grub_keyboard_controller_write): New function.
11155 (grub_keyboard_controller_read): Likewise.
11156 (grub_keyboard_controller_init): Likewise.
11158 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11159 (grub_console_init): On coreboot/LinuxBIOS, call
11160 grub_keyboard_controller_init().
11162 2008-01-19 Robert Millan <rmh@aybabtu.com>
11164 PowerPC changes provided by Pavel Roskin.
11166 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11167 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11168 don't rely on cmain() doing it.
11169 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11170 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11172 2008-01-16 Robert Millan <rmh@aybabtu.com>
11174 * include/grub/i386/linuxbios/memory.h
11175 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11176 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11177 receive `table_header' as argument. Instead, probe for it in the
11178 known memory ranges where it can be present.
11179 (grub_available_iterate): Do not pass a fixed `table_header' address
11180 to grub_linuxbios_table_iterate().
11182 2008-01-15 Robert Millan <rmh@aybabtu.com>
11184 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
11185 * conf/i386-ieee1275.rmk: New file.
11186 * include/grub/i386/ieee1275/console.h: Likewise.
11187 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
11188 * include/grub/i386/ieee1275/kernel.h: Likewise.
11189 * include/grub/i386/ieee1275/time.h: Likewise.
11190 * kern/i386/ieee1275/init.c: Likewise.
11191 * kern/i386/ieee1275/startup.S: Likewise.
11193 2008-01-15 Robert Millan <rmh@aybabtu.com>
11195 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
11196 when pointers are 32-bit (but still do set it to one when they are
11199 2008-01-15 Robert Millan <rmh@aybabtu.com>
11201 * include/grub/ieee1275/ieee1275.h
11202 (grub_ieee1275_get_integer_property): New function prototype.
11204 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
11205 (grub_ieee1275_get_integer_property): New function. Wraps around
11206 grub_ieee1275_get_property() to handle endianness.
11208 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
11209 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
11211 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
11212 (grub_map): Likewise.
11213 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
11215 2008-01-15 Bean <bean123ch@gmail.com>
11217 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
11218 (grub_script_execute_cmdline): Reset grub_errno.
11220 * normal/main.c (read_config_file): Reset grub_errno.
11222 * normal/parse.y (script_init): New.
11223 (script): Move function and menuentry here.
11225 (command): Add delimiter at the end of command.
11226 (commands): Adjust to match the new command.
11227 (commandblock): Remove grub_script_lexer_record_start.
11228 (menuentry): Add grub_script_lexer_record_start, use the new commands.
11229 (if): Use the new commands.
11231 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
11233 2008-01-15 Robert Millan <rmh@aybabtu.com>
11235 * normal/menu.c (run_menu): Move timeout message from here ...
11236 (print_timeout): ... to here.
11237 (run_menu): Use print_timeout() once during initial draw to print
11238 the whole message, and again in every clock tick to update only
11239 the number of seconds.
11241 2008-01-15 Robert Millan <rmh@aybabtu.com>
11243 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
11244 actual size of `available' from grub_ieee1275_get_property(), and
11245 restrict parsing to that bound.
11247 2008-01-15 Christian Franke <franke@computer.org>
11249 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
11250 (argp_program_version): Remove variable.
11251 (argp_program_bug_address): Likewise.
11252 (options): Convert from struct argp_option to struct option.
11253 (struct arguments): Remove.
11254 (parse_opt): Remove.
11255 (usage): New function.
11256 (main): Replace struct args members by simple variables.
11257 Replace argp_parse() by getopt_long().
11258 Add switch to evaluate options.
11259 Add missing "(...)" around root_dev in prefix string.
11261 2008-01-14 Robert Millan <rmh@aybabtu.com>
11263 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
11264 for grub_ieee1275_exit(), in order to improve portability.
11266 2008-01-14 Robert Millan <rmh@aybabtu.com>
11268 * util/grub.d/10_linux.in (prefix): Define.
11269 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
11271 2008-01-13 Pavel Roskin <proski@gnu.org>
11273 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
11274 grub_errno if no errors have been detected.
11276 2008-01-12 Robert Millan <rmh@aybabtu.com>
11278 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
11279 (grub_util_get_dev_abstraction): New function prototype.
11281 * util/getroot.c: Include `<grub/util/getroot.h>'
11282 (grub_util_get_grub_dev): Move detection of abstraction type to ...
11283 (grub_util_get_dev_abstraction): ... here (new function).
11285 * util/grub-probe.c: Convert PRINT_* to an enum. Add
11286 `PRINT_ABSTRACTION'.
11287 (probe): Probe for abstraction type when requested.
11288 (main): Understand `--target=abstraction'.
11290 * util/i386/efi/grub-install.in: Add abstraction module to core
11291 image when it is found to be necessary.
11292 * util/i386/pc/grub-install.in: Likewise.
11293 * util/powerpc/ieee1275/grub-install.in: Likewise.
11295 * util/update-grub_lib.in (font_path): Return system path without
11296 converting to GRUB path.
11297 * util/update-grub.in: Convert system path returned by font_path()
11298 to a GRUB path. Use `grub-probe -t abstraction' to determine what
11299 abstraction module is needed for loading fonts (if any). Export
11300 that as `GRUB_PRELOAD_MODULES'.
11301 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
11304 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
11306 Remove some unused code from reiserfs.
11308 * fs/reiserfs.c (struct grub_reiserfs_key)
11309 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
11310 (struct grub_reiserfs_node_body): Removed.
11311 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11313 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11315 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11317 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11319 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11321 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
11323 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11324 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11325 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11327 2008-01-10 Robert Millan <rmh@aybabtu.com>
11329 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
11330 Determines if a file is garbage left by packaging systems, etc.
11331 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
11332 for processing /etc/grub.d scripts.
11333 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
11334 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
11335 as a condition for processing Linux images.
11337 2008-01-10 Pavel Roskin <proski@gnu.org>
11339 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
11340 to compile reiserfs.c on PowerPC.
11342 2008-01-10 Robert Millan <rmh@aybabtu.com>
11344 * kern/device.c (grub_device_iterate): Do not abort device iteration
11345 when one of the devices cannot be opened.
11346 * kern/disk.c (grub_disk_open): Do not account previous failures of
11347 unrelated functions when grub_errno is checked for.
11349 2008-01-08 Robert Millan <rmh@aybabtu.com>
11351 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
11352 `! grub_linux_is_bzimage', change order of address comparison to make
11353 it more intuitive, and improve "too big zImage" error message.
11355 2008-01-08 Robert Millan <rmh@aybabtu.com>
11357 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
11358 `$(update-grub_DATA)'.
11359 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
11362 2008-01-07 Robert Millan <rmh@aybabtu.com>
11364 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
11365 which instruction is modified by grub-setup during installation
11366 (since it wasn't obvious by only looking at this file).
11368 2008-01-07 Robert Millan <rmh@aybabtu.com>
11370 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
11371 listing actual TODO items.
11373 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11375 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
11377 (grub_reiserfs_get_key_offset): Likewise.
11378 (grub_reiserfs_set_key_offset): Likewise.
11379 (grub_reiserfs_set_key_type): Likewise.
11380 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
11382 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
11383 better to remove the bitfield version completely.
11385 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11387 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
11388 allocated from the heap, due to the fshelp implementation.
11389 (grub_reiserfs_dir): Free NODE, due to the same reason.
11391 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11393 Mostly from Vincent Pelletier:
11395 * fs/reiserfs.c: New file.
11397 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
11398 (reiserfs_mod_SOURCES): New variable.
11399 (reiserfs_mod_CFLAGS): Likewise.
11400 (reiserfs_mod_LDFLAGS): Likewise.
11402 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
11403 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
11404 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
11407 2008-01-06 Robert Millan <rmh@aybabtu.com>
11409 * normal/color.c: Remove `<grub/env.h>'.
11411 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
11413 * include/grub/normal.h: Include <grub/env.h>.
11415 2008-01-05 Robert Millan <rmh@aybabtu.com>
11417 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
11418 usage example with `(hd0,1)'.
11419 Reported by Samuel Thibault.
11421 2008-01-05 Robert Millan <rmh@aybabtu.com>
11423 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
11424 (grub_linux_boot_zimage): Rename to ...
11425 (grub_linux_boot): ... this.
11426 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
11427 (grub_linux_boot_zimage): Conditionalize zImage copy.
11429 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
11430 (grub_linux_boot_bzimage): Remove prototype.
11431 (grub_linux_boot_zimage): Rename to ...
11432 (grub_linux_boot): ... this.
11434 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
11435 (grub_linux_boot): Remove function.
11437 2008-01-05 Robert Millan <rmh@aybabtu.com>
11439 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
11440 (grub_env_write_color_highlight): Likewise.
11441 (grub_wait_after_message): Likewise.
11443 * normal/color.c: New file.
11445 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11446 (normal_mod_DEPENDENCIES): Likewise.
11448 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11449 (normal_mod_DEPENDENCIES): Likewise.
11451 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11452 (normal_mod_DEPENDENCIES): Likewise.
11454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11455 (normal_mod_DEPENDENCIES): Likewise.
11457 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
11458 for waiting after a message is printed.
11459 * normal/main.c (read_config_file): Likewise.
11460 (grub_normal_init): Register grub_env_write_color_normal() and
11461 grub_env_write_color_highlight() hooks. Mark `color_normal' and
11462 `color_highlight' variables as global.
11464 * normal/menu.c (grub_wait_after_message): New function.
11465 (grub_color_menu_normal): New variable. Replaces ...
11466 (GRUB_COLOR_MENU_NORMAL): ... this macro.
11467 (grub_color_menu_highlight): New variable. Replaces ...
11468 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
11469 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
11470 `GRUB_TERM_COLOR_STANDARD'.
11471 (print_message): Use `grub_setcolorstate' to reload colors. Rename
11472 `normal_code' and `highlight_code' to `old_color_normal' and
11473 `old_color_highlight', respectively.
11474 (grub_menu_init_page): Update colors when drawing the menu, based on
11475 `menu_color_normal' and `menu_color_highlight' variables.
11476 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
11477 a message is printed.
11479 2008-01-05 Robert Millan <rmh@aybabtu.com>
11481 * kern/env.c (grub_env_context_open): Propagate hooks for global
11482 variables to new context.
11484 * kern/main.c (grub_set_root_dev): Export `root' variable.
11486 2008-01-05 Robert Millan <rmh@aybabtu.com>
11488 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
11489 discs unconditionally, since udev and others have options to provide
11492 2008-01-05 Robert Millan <rmh@aybabtu.com>
11494 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
11496 2008-01-04 Christian Franke <franke@computer.org>
11498 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
11501 2008-01-03 Pavel Roskin <proski@gnu.org>
11503 * kern/i386/linuxbios/init.c: Put "void" to all function
11504 declarations with no arguments.
11505 * kern/powerpc/ieee1275/init.c: Likewise.
11506 * term/i386/pc/at_keyboard.c: Likewise.
11507 * term/i386/pc/vga_text.c: Likewise.
11508 * util/grub-mkdevicemap.c: Likewise.
11510 2008-01-02 Robert Millan <rmh@aybabtu.com>
11512 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
11513 message when loaded image is out of bounds.
11514 (grub_multiboot_load_elf64): Likewise.
11516 2008-01-02 Pavel Roskin <proski@gnu.org>
11518 * util/grub.d/10_linux.in: Try version without ".old" when
11519 looking for initrd. It's better to use initrd from the newer
11520 kernel of the same version than no initrd at all.
11522 2008-01-01 Robert Millan <rmh@aybabtu.com>
11524 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
11526 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
11528 * include/grub/video.h: Added grub_video_unmap_color and
11529 grub_video_get_active_render_target.
11530 (grub_video_adapter): Added unmap_color and get_active_render_target.
11532 * video/video.c: Added grub_video_unmap_color and
11533 grub_video_get_active_render_target.
11534 (grub_video_get_info): Changed method to accept NULL pointer as an
11535 argument to allow detection of active video adapter.
11537 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
11538 grub_video_vbe_unmap_color_int.
11539 Added grub_video_vbe_unmap_color and
11540 grub_video_vbe_get_active_render_target.
11541 (grub_video_vbe_adapter): Added unmap_color and
11542 get_active_render_target.
11544 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
11545 with grub_video_vbe_unmap_color_int.
11547 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
11548 (DEFAULT_NORMAL_COLOR): Likewise.
11549 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
11550 (DEFAULT_FG_COLOR): Removed.
11551 (DEFAULT_BG_COLOR): Likewise.
11552 (DEFAULT_CURSOR_COLOR): Changed value.
11553 (grub_virtual_screen): Added standard_color_setting,
11554 normal_color_setting, highlight_color_setting and term_color.
11555 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
11556 (bitmap_width): Added.
11557 (bitmap_height): Likewise.
11558 (bitmap): Likewise.
11559 (set_term_color): Likewise.
11560 (grub_virtual_screen_setup): Changed to use new terminal coloring
11562 (grub_gfxterm_init): Added init for bitmap.
11563 (grub_gfxterm_fini): Added destroy for bitmap.
11564 (redraw_screen_rect): Updated to use background bitmap and new
11566 (scroll_up): Added optimization for case when there is no bitmap.
11567 (grub_gfxterm_cls): Fixed to use correct background color.
11568 (grub_virtual_screen_setcolorstate): Changed to use new terminal
11570 (grub_virtual_screen_setcolor): Likewise.
11571 (grub_virtual_screen_getcolor): Added.
11572 (grub_gfxterm_background_image_cmd): Likewise.
11573 (grub_video_term): Added setcolor and getcolor.
11574 (MOD_INIT): Added registration of background_image command.
11575 (MOD_TERM): Added unregistration for background_image command.
11577 2007-12-30 Pavel Roskin <proski@gnu.org>
11579 * loader/multiboot_loader.c: Fix multiboot command
11580 unregistration. Fix all typos in the word "multiboot".
11582 2007-12-29 Pavel Roskin <proski@gnu.org>
11584 * util/grub.d/10_linux.in: Refactor search for initrd. Add
11585 support for initrd names used in Fedora.
11587 2007-12-26 Bean <bean123ch@gmail.com>
11589 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
11590 (cpio_mod_SOURCES): New variable.
11591 (cpio_mod_CFLAGS): Likewise.
11592 (cpio_mod_LDFLAGS): Likewise.
11594 * fs/cpio.c: New file.
11596 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
11598 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11600 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11602 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11604 2007-12-25 Robert Millan <rmh@aybabtu.com>
11606 * include/grub/term.h (struct grub_term): Add `getcolor' function.
11607 (grub_getcolor): New function.
11609 * kern/term.c (grub_getcolor): New function.
11610 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
11611 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
11612 (print_entry): Set normal and highlight colors to
11613 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
11614 respectively, before printing and restore them to old
11616 (grub_menu_init_page): Likewise. Fill an additional colored space
11617 that would otherwise be left blank.
11619 * term/efi/console.c (grub_console_getcolor): New function.
11620 (struct grub_console_term.getcolor): New variable.
11621 * term/i386/pc/console.c (grub_console_getcolor): New function.
11622 (struct grub_console_term.getcolor): New variable.
11623 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
11624 (struct grub_console_term.getcolor): New variable.
11626 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
11627 (struct grub_console_term.setcolor): Remove variable.
11628 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
11629 (struct grub_console_term.setcolor): Remove variable.
11630 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
11631 (struct grub_console_term.setcolor): Remove variable.
11632 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
11633 (struct grub_console_term.setcolor): Remove variable.
11635 2007-12-25 Robert Millan <rmh@aybabtu.com>
11637 * configure.ac: Search for possible unifont.hex locations, and
11638 define UNIFONT_HEX if found.
11640 * Makefile.in (UNIFONT_HEX): Define variable.
11641 (DATA): Rename to ...
11642 (PKGLIB): ... this. Update all users.
11643 (PKGDATA): New variable.
11644 (pkgdata_IMAGES): Rename to ...
11645 (pkglib_IMAGES): ... this. Update all users.
11646 (pkgdata_MODULES): Rename to ...
11647 (pkglib_MODULES): ... this. Update all users.
11648 (pkgdata_PROGRAMS): Rename to ...
11649 (pkglib_PROGRAMS): ... this. Update all users.
11650 (pkgdata_DATA): Rename to ...
11651 (pkglib_DATA): ... this. Update all users.
11652 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
11653 (unicode.pff, ascii.pff): New rules.
11654 (all-local): Add `$(PKGDATA)' dependency.
11655 (install-local): Process `$(PKGDATA)'.
11657 * util/update-grub_lib.in (font_path): Search for *.pff files in
11658 a few more locations, including `${pkgdata}'.
11660 2007-12-23 Robert Millan <rmh@aybabtu.com>
11662 Patch from Bean <bean123ch@gmail.com>:
11663 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
11666 2007-12-21 Bean <bean123ch@gmail.com>
11668 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
11669 (ntfscomp_mod_SOURCES): New variable.
11670 (ntfscomp_mod_CFLAGS): Likewise.
11671 (ntfscomp_mod_LDFLAGS): Likewise.
11673 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
11674 (grub_probe_SOURCES): Likewise.
11675 (grub_emu_SOURCES): Likewise.
11677 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
11678 (grub_emu_SOURCES): Likewise.
11680 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
11681 (grub_emu_SOURCES): Likewise.
11683 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
11684 (grub_emu_SOURCES): Likewise.
11686 * fs/ntfs.c (grub_ntfscomp_func): New variable.
11687 (read_run_list): Renamed to grub_ntfs_read_run_list.
11688 (decomp_nextvcn): Moved to ntfscomp.c.
11689 (decomp_getch): Likewise.
11690 (decomp_get16): Likewise.
11691 (decomp_block): Likewise.
11692 (read_block): Likewise.
11693 (read_data): Partially moved to ntfscomp.c.
11694 (fixup): Change unsigned to grub_uint16_t.
11695 (read_mft): Change unsigned long to grub_uint32_t.
11696 (read_attr): Likewise.
11697 (read_data): Likewise.
11698 (read_run_data): Likewise.
11699 (read_run_list): Likewise.
11700 (read_mft): Likewise.
11702 * fs/ntfscomp.c: New file.
11704 * include/grub/ntfs.h: New file.
11706 2007-12-16 Robert Millan <rmh@aybabtu.com>
11708 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
11709 IDE disk check, since Linux is known to support 20 IDE disks.
11710 Reported by Colin Watson.
11712 2007-12-15 Bean <bean123ch@gmail.com>
11714 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
11715 (lnxboot_img_SOURCES): New variable.
11716 (lnxboot_img_ASFLAGS): Likewise.
11717 (lnxboot_img_LDFLAGS): Likewise.
11719 * boot/i386/pc/lnxboot.S: New file.
11721 2007-11-24 Pavel Roskin <proski@gnu.org>
11723 * configure.ac: Test if '--build-id=none' is supported by the
11724 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
11725 objcopy to generate incorrect binary files (binutils
11726 2.17.50.0.18-1 as shipped by Fedora 8).
11727 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
11728 linking, so that build ID doesn't break the test.
11730 2007-11-24 Pavel Roskin <proski@gnu.org>
11732 * include/grub/i386/time.h: use "void" in the argument list
11733 of grub_cpu_idle().
11734 * include/grub/powerpc/time.h: Likewise.
11735 * include/grub/sparc64/time.h: Likewise.
11737 2007-11-18 Christian Franke <franke@computer.org>
11739 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
11740 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
11741 This fixes the problem that function keys did not work in grub-emu.
11743 2007-11-18 Christian Franke <franke@computer.org>
11745 * disk/host.c (grub_host_open): Remove attribute unused from
11746 name parameter. Add check for "host". This fixes the problem
11747 that grub-emu does not find partitions.
11749 2007-11-18 Christian Franke <franke@computer.org>
11751 * util/hostfs.c (is_dir): New function.
11752 (grub_hostfs_dir): Handle missing dirent.d_type case.
11753 (grub_hostfs_read): Add missing fseek().
11754 (grub_hostfs_label): Clear label pointer. This fixes a crash
11755 of grub-emu on "ls (host)".
11757 2007-11-18 Christian Franke <franke@computer.org>
11759 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
11760 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
11761 to 64 bit boundary by default.
11763 2007-11-18 Bean <bean123ch@gmail.com>
11765 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
11766 (hexdump_mod_SOURCES): New variable.
11767 (hexdump_mod_CFLAGS): Likewise.
11768 (hexdump_mod_LDFLAGS): Likewise.
11770 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11772 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11774 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11776 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11778 * include/grub/hexdump.h: New file.
11780 * commands/hexdump.c: New file.
11782 2007-11-10 Robert Millan <rmh@aybabtu.com>
11784 * commands/i386/pc/play.c (beep_off): Switch order of arguments
11785 in grub_outb() calls.
11786 (beep_on): Likewise.
11788 2007-11-10 Christian Franke <franke@computer.org>
11790 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
11791 (grub_menu_run): Likewise.
11793 2007-11-10 Robert Millan <rmh@aybabtu.com>
11795 * include/grub/i386/efi/machine.h: New file.
11796 * include/grub/i386/linuxbios/machine.h: Likewise.
11797 * include/grub/i386/pc/machine.h: Likewise.
11798 * include/grub/powerpc/ieee1275/machine.h: Likewise.
11799 * include/grub/sparc64/ieee1275/machine.h: Likewise.
11801 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
11802 (serial_hw_io_addr): New variable.
11803 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
11804 instead of `(unsigned short *) 0x400'.
11806 2007-11-10 Bean <bean123ch@gmail.com>
11808 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
11810 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
11812 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
11813 (vga_mod_SOURCES): Added.
11814 (vga_mod_CFLAGS): Likewise.
11815 (vga_mod_LDFLAGS): Likewise.
11817 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
11819 (set_map_mask): Likewise.
11820 (set_read_map): Likewise.
11821 (set_read_address): Likewise.
11822 (vga_font): Removed variable.
11823 (get_vga_glyph): Removed function.
11824 (invalidate_char): Likewise.
11825 (write_char): Changed to use grub_font_get_glyph() for font
11827 (grub_vga_putchar): Likewise.
11828 (grub_vga_getcharwidth): Likewise.
11830 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
11832 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
11834 (pxeboot_img_LDFLAGS): Likewise.
11835 (diskboot_img_LDFLAGS): Likewise.
11836 (kernel_img_LDFLAGS): Likewise.
11838 2007-11-06 Robert Millan <rmh@aybabtu.com>
11840 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
11841 in grub_outb() calls.
11842 (serial_hw_init): Likewise.
11844 2007-11-05 Robert Millan <rmh@aybabtu.com>
11846 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
11847 spaces. Skip non-regular files.
11849 2007-11-05 Robert Millan <rmh@aybabtu.com>
11851 * kern/disk.c (grub_disk_firmware_fini)
11852 (grub_disk_firmware_is_tainted): New variables.
11854 * include/grub/disk.h (grub_disk_firmware_fini)
11855 (grub_disk_firmware_is_tainted): Likewise.
11857 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
11858 (grub_disk_biosdisk_fini): ... to here.
11859 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
11860 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
11861 is set. Register grub_disk_biosdisk_fini() in
11862 `grub_disk_firmware_fini'.
11864 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
11865 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
11866 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
11867 to finish existing firmware disk interface.
11869 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
11870 (ata_mod_SOURCES): New variable.
11871 (ata_mod_CFLAGS): Likewise.
11872 (ata_mod_LDFLAGS): Likewise.
11874 2007-11-05 Robert Millan <rmh@aybabtu.com>
11876 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
11877 (grub_ata_wait): Reimplement using grub_millisleep().
11879 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
11880 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
11882 2007-11-03 Marco Gerards <marco@gnu.org>
11884 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
11885 (CRTC_ADDR_PORT): New macro.
11886 (CRTC_DATA_PORT): Likewise.
11887 (CRTC_CURSOR): Likewise.
11888 (CRTC_CURSOR_ADDR_HIGH): Likewise.
11889 (CRTC_CURSOR_ADDR_LOW): Likewise.
11890 (update_cursor): New function.
11891 (grub_console_real_putchar): Call `update_cursor'.
11892 (grub_console_gotoxy): Likewise.
11893 (grub_console_cls): Set the default color when clearing the
11895 (grub_console_setcursor): Implemented.
11897 2007-11-03 Marco Gerards <marco@gnu.org>
11899 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
11901 (grub_ata_pio_write): Likewise.
11903 (grub_atapi_identify): Wait after issuing an ATA command.
11904 (grub_atapi_packet): Likewise.
11905 (grub_ata_identify): Likewise.
11906 (grub_ata_readwrite): Likewise.
11908 2007-11-03 Marco Gerards <marco@gnu.org>
11910 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
11911 (grub_ata_pio_write): Likewise.
11912 (grub_ata_readwrite): Use `grub_error', instead of
11913 returning `grub_errno'.
11915 2007-11-03 Marco Gerards <marco@gnu.org>
11917 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
11918 grub_ata_pio_write once for every single sector, instead of for
11921 2007-10-31 Robert Millan <rmh@aybabtu.com>
11923 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
11925 * conf/i386-linuxbios.rmk: New file.
11927 * kern/i386/pc/hardware.c: Likewise.
11928 * term/i386/pc/at_keyboard.c: Likewise.
11929 * term/i386/pc/vga_text.c: Likewise.
11931 * include/grub/i386/linuxbios/boot.h: Likewise.
11932 * include/grub/i386/linuxbios/console.h: Likewise.
11933 * include/grub/i386/linuxbios/init.h: Likewise.
11934 * include/grub/i386/linuxbios/kernel.h: Likewise.
11935 * include/grub/i386/linuxbios/loader.h: Likewise.
11936 * include/grub/i386/linuxbios/memory.h: Likewise.
11937 * include/grub/i386/linuxbios/serial.h: Likewise.
11938 * include/grub/i386/linuxbios/time.h: Likewise.
11940 * kern/i386/linuxbios/init.c: Likewise.
11941 * kern/i386/linuxbios/startup.S: Likewise.
11942 * kern/i386/linuxbios/table.c: Likewise.
11944 2007-10-31 Marco Gerards <marco@gnu.org>
11946 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
11947 (ata_mod_SOURCES): New variable.
11948 (ata_mod_CFLAGS): Likewise.
11949 (ata_mod_LDFLAGS): Likewise.
11951 * disk/ata.c: New file.
11953 * include/grub/disk.h (grub_disk_dev_id): Add
11954 `GRUB_DISK_DEV_ATA_ID'.
11956 2007-10-31 Robert Millan <rmh@aybabtu.com>
11958 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
11959 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
11961 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
11962 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
11964 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
11967 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
11969 2007-10-27 Robert Millan <rmh@aybabtu.com>
11971 * include/grub/types.h (ULONG_MAX): Define macro.
11973 2007-10-22 Robert Millan <rmh@aybabtu.com>
11975 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
11977 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
11979 2007-10-22 Robert Millan <rmh@aybabtu.com>
11981 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
11982 (pkgdata_MODULES): Add `biosdisk.mod'.
11983 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
11986 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
11987 (grub_biosdisk_init): Replace with ...
11988 (GRUB_MOD_INIT(biosdisk)): ... this.
11989 (grub_biosdisk_fini): Replace with ...
11990 (GRUB_MOD_FINI(biosdisk)): ... this.
11992 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
11993 (grub_machine_init): Remove call to grub_biosdisk_init().
11994 (grub_machine_fini): Remove call to grub_machine_fini().
11996 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
11998 2007-10-22 Robert Millan <rmh@aybabtu.com>
12000 * include/grub/time.h: New file.
12001 * include/grub/i386/time.h: Likewise.
12002 * include/grub/powerpc/time.h: Likewise.
12003 * include/grub/sparc64/time.h: Likewise.
12005 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
12007 (KERNEL_MACHINE_TIME_HEADER): ... this.
12008 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12010 (KERNEL_MACHINE_TIME_HEADER): ... this.
12011 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12013 (KERNEL_MACHINE_TIME_HEADER): ... this.
12015 * kern/i386/efi/init.c: Include `<grub/time.h>'.
12016 (grub_millisleep): New function.
12017 * kern/i386/pc/init.c: Include `<grub/time.h>'.
12018 (grub_millisleep): New function.
12019 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
12020 Remove `grub/machine/time.h' include.
12021 (grub_millisleep): New function.
12022 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
12023 Remove `grub/machine/time.h' include.
12024 (grub_millisleep): New function.
12026 * include/grub/misc.h (grub_div_roundup): New function.
12028 * kern/misc.c: Include `<grub/time.h>'.
12029 (grub_millisleep_generic): New function.
12031 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
12033 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
12035 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
12036 `machine/time.h'. Add `time.h'.
12037 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12039 2007-10-21 Robert Millan <rmh@aybabtu.com>
12041 * include/grub/misc.h (grub_max): New function.
12043 2007-10-21 Robert Millan <rmh@aybabtu.com>
12045 * util/misc.c (grub_util_info): Call fflush() before returning.
12047 2007-10-20 Robert Millan <rmh@aybabtu.com>
12049 * genmk.rb (Image): Copy `extra_flags' from here ...
12050 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
12052 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
12053 to `argc' and `args' arguments.
12055 2007-10-17 Robert Millan <rmh@aybabtu.com>
12057 * kern/i386/loader.S: New file.
12059 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
12060 * kern/i386/loader.S (grub_linux_prot_size)... to here.
12061 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
12062 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
12063 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
12064 * kern/i386/loader.S (grub_linux_real_addr)... to here.
12065 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
12066 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
12067 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
12068 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
12069 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
12070 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
12071 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
12072 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
12074 * kern/i386/realmode.S: New file.
12076 * kern/i386/pc/startup.S (protstack): Moved from here ...
12077 * kern/i386/realmode.S (protstack)... to here.
12078 * kern/i386/pc/startup.S (gdt): Moved from here ...
12079 * kern/i386/realmode.S (gdt)... to here.
12080 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
12081 * kern/i386/realmode.S (prot_to_real)... to here.
12083 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
12084 `kern/i386/realmode.S'.
12086 2007-10-17 Robert Millan <rmh@aybabtu.com>
12088 * include/grub/i386/loader.h: New file.
12090 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
12091 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12092 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12093 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12094 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
12095 * include/grub/i386/loader.h (grub_linux_prot_size)
12096 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12097 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12098 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12099 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
12101 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
12103 2007-10-15 Robert Millan <rmh@aybabtu.com>
12105 * normal/misc.c (grub_normal_print_device_info): Do not probe for
12106 filesystem when dev->disk is unset.
12107 Do probe for filesystem even when dev->disk->has_partitions is set.
12108 In case a filesystem is found, always report it.
12109 In case it isn't, if dev->disk->has_partitions is set, report that
12110 a partition table was found instead of reporting that no filesystem
12111 could be identified.
12113 2007-10-12 Robert Millan <rmh@aybabtu.com>
12115 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
12116 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
12118 * include/grub/types.h (grub_host_to_target16): New macro.
12119 (grub_host_to_target32): Likewise.
12120 (grub_host_to_target64): Likewise.
12121 (grub_target_to_host16): Likewise.
12122 (grub_target_to_host32): Likewise.
12123 (grub_target_to_host64): Likewise.
12125 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12126 Renamed from to ...
12127 (GRUB_MOD_ALIGN): ...this. Update all users.
12129 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12130 grub_host_to_target32.
12131 Replace grub_be_to_cpu32 with grub_target_to_host32.
12132 (load_modules): Likewise.
12133 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12134 Replace grub_be_to_cpu32 with grub_target_to_host32.
12135 Replace grub_cpu_to_be16 with grub_host_to_target16.
12136 Replace grub_cpu_to_be32 grub_host_to_target32.
12138 2007-10-12 Robert Millan <rmh@aybabtu.com>
12140 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12141 * util/elf/grub-mkimage.c: ... here.
12143 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12144 `util/powerpc/ieee1275/grub-mkimage.c'.
12146 2007-10-07 Robert Millan <rmh@aybabtu.com>
12148 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12149 and make it easier to figure out.
12150 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12151 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12152 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12153 leave us with less than HEAP_MIN_SIZE total heap.
12154 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12156 2007-10-03 Robert Millan <rmh@aybabtu.com>
12158 * include/grub/i386/io.h: New file.
12159 * commands/i386/pc/play.c (inb): Removed.
12161 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12163 * term/i386/pc/serial.c (inb): Removed.
12165 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12167 * term/i386/pc/vga.c (inb): Removed.
12169 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12172 2007-10-02 Robert Millan <rmh@aybabtu.com>
12174 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12175 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12176 Reported by Marcin Kurek.
12178 2007-09-07 Robert Millan <rmh@aybabtu.com>
12180 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
12181 SmartFirmware version updates (as released by Sven Luther), and avoid
12182 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
12183 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
12186 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12188 From Hitoshi Ozeki:
12189 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
12190 when merging two regions.
12192 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12194 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
12195 * normal/completion.c (grub_normal_do_completion): Likewise.
12196 Reported by Hitoshi Ozeki.
12198 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12200 Do not use devices at boot in chainloading.
12202 * loader/i386/pc/chainloader.c (boot_drive): New variable.
12203 (boot_part_addr): Likewise.
12204 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
12205 with BOOT_DRIVE and BOOT_PART_ADDR.
12206 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
12207 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
12209 2007-08-29 Robert Millan <rmh@aybabtu.com>
12211 Patch from Simon Peter <dn.tlp@gmx.net>:
12212 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
12213 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
12214 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
12215 util/i386/pc/grub-setup.c_DEPENDENCIES.
12216 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
12217 util/grub-probe.c_DEPENDENCIES.
12218 * conf/powerpc-ieee1275.rmk: Likewise.
12220 2007-08-28 Robert Millan <rmh@aybabtu.com>
12222 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
12223 to tell grub-mkdevicemap how to name devices.
12224 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
12227 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
12228 util/i386/get_disk_name.c.
12229 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
12230 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
12231 util/ieee1275/get_disk_name.c.
12233 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
12235 * DISTLIST: Add util/i386/get_disk_name.c and
12236 util/ieee1275/get_disk_name.c.
12238 * util/grub-mkdevicemap.c: Replace device naming logic with
12239 grub_util_get_disk_name() calls.
12241 2007-08-20 Robert Millan <rmh@aybabtu.com>
12243 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
12244 (so that it works for both plural and singular quantities).
12246 2007-08-05 Robert Millan <rmh@aybabtu.com>
12248 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
12249 so that [xz] isn't taken into account when determining order.
12251 2007-08-02 Marco Gerards <marco@gnu.org>
12253 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
12254 `include/multiboot2.h', `include/grub/elfload.h',
12255 `include/multiboot.h', `include/grub/multiboot.h',
12256 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
12257 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
12258 `kern/elf.c', `loader/multiboot_loader.c',
12259 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
12260 `loader/i386/pc/multiboot2.c',
12261 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
12262 `util/i386/pc/grub-mkrescue.in'. Remove
12263 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
12264 `include/grub/i386/pc/util/biosdisk.h' and
12265 `include/grub/powerpc/ieee1275/multiboot.h'.
12267 2007-08-02 Bean <bean123ch@gmail.com>
12269 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
12270 (ntfs_mod_SOURCES): New variable.
12271 (ntfs_mod_CFLAGS): Likewise.
12272 (ntfs_mod_LDFLAGS): Likewise.
12274 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
12275 (grub_probe_SOURCES): Likewise.
12276 (grub_emu_SOURCES): Likewise.
12278 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12279 (grub_emu_SOURCES): Likewise.
12281 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12282 (grub_emu_SOURCES): Likewise.
12284 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
12286 * fs/ntfs.c: New file.
12288 2007-08-02 Bean <bean123ch@gmail.com>
12290 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
12292 * file.h (grub_file): Likewise.
12294 * fshelp.h (grub_fshelp_read_file): Likewise.
12296 * util/i386/pc/grub-setup.c (setup): Likewise.
12297 (save_first_sector): Likewise.
12298 (save_blocklists): Likewise.
12300 * fs/affs.c (grub_affs_read_file): Likewise.
12302 * fs/ext2.c (grub_ext2_read_file): Likewise.
12304 * fs/fat.c (grub_fat_read_data): Likewise.
12306 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
12308 * fs/hfs.c (grub_hfs_read_file): Likewise.
12310 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12312 * fs/jfs.c (grub_jfs_read_file): Likewise.
12314 * fs/minix.c (grub_minix_read_file): Likewise.
12316 * fs/sfs.c (grub_sfs_read_file): Likewise.
12318 * fs/ufs.c (grub_ufs_read_file): Likewise.
12320 * fs/xfs.c (grub_xfs_read_file): Likewise.
12322 * command/blocklist.c (read_blocklist): Likewise.
12323 (print_blocklist): Likewise.
12325 2007-08-02 Marco Gerards <marco@gnu.org>
12327 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
12330 * disk/host.c: New file.
12332 * util/hostfs.c: Likewise.
12334 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
12335 return `GRUB_ERR_BAD_FS'.
12336 * fs/sfs.c (grub_sfs_mount): Likewise.
12337 * fs/xfs.c (grub_xfs_mount): Likewise.
12339 * include/grub/disk.h (enum grub_disk_dev_id): Add
12340 `GRUB_DISK_DEVICE_HOST_ID'.
12342 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
12344 2007-07-24 Jerone Young <jerone@gmail.com>
12346 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
12347 modules for compilation.
12348 * conf/powerpc-ieee1275.rmk: Likewise.
12350 * include/multiboot.h: Move multiboot definitions to one file. Rename
12351 many definitions to not get grub specific.
12352 * include/multiboot2.h: Create header with multiboot 2 definitions.
12353 * include/grub/multiboot.h: Header for grub specific function
12354 prototypes and definitions.
12355 * include/grub/multiboot2.h: Likewise.
12356 * include/grub/multiboot_loader.h: Likewise.
12357 * include/grub/i386/pc/multiboot.h: Removed.
12358 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
12360 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
12361 and 2 to allow for one multiboot and module commands.
12362 * loader/multiboot2.c: Add multiboot2 functionality.
12363 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
12364 and definition names.
12365 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
12367 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
12368 ieee1275 specific multiboot2 code.
12370 * kern/i386/pc/startup.S: Change headers and definition names for
12371 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
12373 2007-07-22 Robert Millan <rmh@aybabtu.com>
12375 * geninitheader.sh: Process file specified in first parameter rather
12376 than hardcoding grub_modules_init.lst.
12377 * geninit.sh: Likewise. Also, construct header name dynamically rather
12378 than hardcoding grub_modules_init.h.
12380 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
12381 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
12382 grub_probe_init.[ch] and grub_setup_init.[ch].
12384 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
12385 grub_modules_init.h with grub_emu_init.h.
12386 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
12387 grub_probe_init.[ch] files.
12388 * conf/i386-efi.rmk: Likewise.
12389 * conf/i386-pc.rmk: Likewise.
12390 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
12391 grub_setup_init.[ch] files.
12393 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
12394 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
12395 to initialize modules rather than a list of hardcoded functions.
12396 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
12397 grub_init_all() to initialize modules rather than a list of hardcoded
12400 2007-07-22 Robert Millan <rmh@aybabtu.com>
12402 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12403 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
12405 2007-07-22 Robert Millan <rmh@aybabtu.com>
12407 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12408 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
12409 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
12410 flag when running on SmartFirmware.
12411 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
12412 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
12415 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12416 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
12417 rather than decreasing it.
12419 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
12420 there's not enough space to do it, fail in the same way as when it
12421 can't be done because there are no partitions.
12423 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
12424 when nvsetenv failed.
12426 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12428 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
12429 because this rule is automatically generated.
12430 (grub-mkrescue): Removed for the same reason as above.
12432 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12434 Migrate to GNU General Public License Version 3.
12436 * COPYING: Replaced with the plain text version of GPLv3.
12438 * config.guess: Updated from gnulib.
12439 * config.sub: Likewise.
12441 * geninit.sh: Output a GPLv3 copyright notice.
12442 * geninitheader.sh: Likewise.
12443 * genmodsrc.sh: Likewise.
12444 * gensymlist.sh.in: Likewise.
12446 * boot/i386/pc/boot.S: Upgraded to GPLv3.
12447 * boot/i386/pc/diskboot.S: Likewise.
12448 * boot/i386/pc/pxeboot.S: Likewise.
12449 * commands/blocklist.c: Likewise.
12450 * commands/boot.c: Likewise.
12451 * commands/cat.c: Likewise.
12452 * commands/cmp.c: Likewise.
12453 * commands/configfile.c: Likewise.
12454 * commands/echo.c: Likewise.
12455 * commands/help.c: Likewise.
12456 * commands/ls.c: Likewise.
12457 * commands/search.c: Likewise.
12458 * commands/terminal.c: Likewise.
12459 * commands/test.c: Likewise.
12460 * commands/videotest.c: Likewise.
12461 * commands/i386/cpuid.c: Likewise.
12462 * commands/i386/pc/halt.c: Likewise.
12463 * commands/i386/pc/play.c: Likewise.
12464 * commands/i386/pc/reboot.c: Likewise.
12465 * commands/i386/pc/vbeinfo.c: Likewise.
12466 * commands/i386/pc/vbetest.c: Likewise.
12467 * commands/ieee1275/halt.c: Likewise.
12468 * commands/ieee1275/reboot.c: Likewise.
12469 * commands/ieee1275/suspend.c: Likewise.
12470 * disk/loopback.c: Likewise.
12471 * disk/lvm.c: Likewise.
12472 * disk/raid.c: Likewise.
12473 * disk/efi/efidisk.c: Likewise.
12474 * disk/i386/pc/biosdisk.c: Likewise.
12475 * disk/ieee1275/ofdisk.c: Likewise.
12476 * font/manager.c: Likewise.
12477 * fs/affs.c: Likewise.
12478 * fs/ext2.c: Likewise.
12479 * fs/fat.c: Likewise.
12480 * fs/fshelp.c: Likewise.
12481 * fs/hfs.c: Likewise.
12482 * fs/hfsplus.c: Likewise.
12483 * fs/iso9660.c: Likewise.
12484 * fs/jfs.c: Likewise.
12485 * fs/minix.c: Likewise.
12486 * fs/sfs.c: Likewise.
12487 * fs/ufs.c: Likewise.
12488 * fs/xfs.c: Likewise.
12489 * hello/hello.c: Likewise.
12490 * include/grub/acorn_filecore.h: Likewise.
12491 * include/grub/arg.h: Likewise.
12492 * include/grub/bitmap.h: Likewise.
12493 * include/grub/boot.h: Likewise.
12494 * include/grub/cache.h: Likewise.
12495 * include/grub/device.h: Likewise.
12496 * include/grub/disk.h: Likewise.
12497 * include/grub/dl.h: Likewise.
12498 * include/grub/elfload.h: Likewise.
12499 * include/grub/env.h: Likewise.
12500 * include/grub/err.h: Likewise.
12501 * include/grub/file.h: Likewise.
12502 * include/grub/font.h: Likewise.
12503 * include/grub/fs.h: Likewise.
12504 * include/grub/fshelp.h: Likewise.
12505 * include/grub/gzio.h: Likewise.
12506 * include/grub/hfs.h: Likewise.
12507 * include/grub/kernel.h: Likewise.
12508 * include/grub/loader.h: Likewise.
12509 * include/grub/lvm.h: Likewise.
12510 * include/grub/misc.h: Likewise.
12511 * include/grub/mm.h: Likewise.
12512 * include/grub/net.h: Likewise.
12513 * include/grub/normal.h: Likewise.
12514 * include/grub/parser.h: Likewise.
12515 * include/grub/partition.h: Likewise.
12516 * include/grub/pc_partition.h: Likewise.
12517 * include/grub/raid.h: Likewise.
12518 * include/grub/rescue.h: Likewise.
12519 * include/grub/script.h: Likewise.
12520 * include/grub/setjmp.h: Likewise.
12521 * include/grub/symbol.h: Likewise.
12522 * include/grub/term.h: Likewise.
12523 * include/grub/terminfo.h: Likewise.
12524 * include/grub/tparm.h: Likewise.
12525 * include/grub/types.h: Likewise.
12526 * include/grub/video.h: Likewise.
12527 * include/grub/efi/api.h: Likewise.
12528 * include/grub/efi/chainloader.h: Likewise.
12529 * include/grub/efi/console.h: Likewise.
12530 * include/grub/efi/console_control.h: Likewise.
12531 * include/grub/efi/disk.h: Likewise.
12532 * include/grub/efi/efi.h: Likewise.
12533 * include/grub/efi/pe32.h: Likewise.
12534 * include/grub/efi/time.h: Likewise.
12535 * include/grub/i386/linux.h: Likewise.
12536 * include/grub/i386/setjmp.h: Likewise.
12537 * include/grub/i386/types.h: Likewise.
12538 * include/grub/i386/efi/kernel.h: Likewise.
12539 * include/grub/i386/efi/loader.h: Likewise.
12540 * include/grub/i386/efi/time.h: Likewise.
12541 * include/grub/i386/pc/biosdisk.h: Likewise.
12542 * include/grub/i386/pc/boot.h: Likewise.
12543 * include/grub/i386/pc/chainloader.h: Likewise.
12544 * include/grub/i386/pc/console.h: Likewise.
12545 * include/grub/i386/pc/init.h: Likewise.
12546 * include/grub/i386/pc/kernel.h: Likewise.
12547 * include/grub/i386/pc/loader.h: Likewise.
12548 * include/grub/i386/pc/memory.h: Likewise.
12549 * include/grub/i386/pc/multiboot.h: Likewise.
12550 * include/grub/i386/pc/serial.h: Likewise.
12551 * include/grub/i386/pc/time.h: Likewise.
12552 * include/grub/i386/pc/vbe.h: Likewise.
12553 * include/grub/i386/pc/vbeblit.h: Likewise.
12554 * include/grub/i386/pc/vbefill.h: Likewise.
12555 * include/grub/i386/pc/vbeutil.h: Likewise.
12556 * include/grub/i386/pc/vga.h: Likewise.
12557 * include/grub/ieee1275/ieee1275.h: Likewise.
12558 * include/grub/ieee1275/ofdisk.h: Likewise.
12559 * include/grub/powerpc/libgcc.h: Likewise.
12560 * include/grub/powerpc/setjmp.h: Likewise.
12561 * include/grub/powerpc/types.h: Likewise.
12562 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
12563 * include/grub/powerpc/ieee1275/console.h: Likewise.
12564 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
12565 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
12566 * include/grub/powerpc/ieee1275/loader.h: Likewise.
12567 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
12568 * include/grub/powerpc/ieee1275/time.h: Likewise.
12569 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
12570 * include/grub/sparc64/libgcc.h: Likewise.
12571 * include/grub/sparc64/setjmp.h: Likewise.
12572 * include/grub/sparc64/types.h: Likewise.
12573 * include/grub/sparc64/ieee1275/console.h: Likewise.
12574 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
12575 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
12576 * include/grub/sparc64/ieee1275/time.h: Likewise.
12577 * include/grub/util/biosdisk.h: Likewise.
12578 * include/grub/util/getroot.h: Likewise.
12579 * include/grub/util/lvm.h: Likewise.
12580 * include/grub/util/misc.h: Likewise.
12581 * include/grub/util/raid.h: Likewise.
12582 * include/grub/util/resolve.h: Likewise.
12583 * io/gzio.c: Likewise.
12584 * kern/device.c: Likewise.
12585 * kern/disk.c: Likewise.
12586 * kern/dl.c: Likewise.
12587 * kern/elf.c: Likewise.
12588 * kern/env.c: Likewise.
12589 * kern/err.c: Likewise.
12590 * kern/file.c: Likewise.
12591 * kern/fs.c: Likewise.
12592 * kern/loader.c: Likewise.
12593 * kern/main.c: Likewise.
12594 * kern/misc.c: Likewise.
12595 * kern/mm.c: Likewise.
12596 * kern/parser.c: Likewise.
12597 * kern/partition.c: Likewise.
12598 * kern/rescue.c: Likewise.
12599 * kern/term.c: Likewise.
12600 * kern/efi/efi.c: Likewise.
12601 * kern/efi/init.c: Likewise.
12602 * kern/efi/mm.c: Likewise.
12603 * kern/i386/dl.c: Likewise.
12604 * kern/i386/efi/init.c: Likewise.
12605 * kern/i386/efi/startup.S: Likewise.
12606 * kern/i386/pc/init.c: Likewise.
12607 * kern/i386/pc/lzo1x.S: Likewise.
12608 * kern/i386/pc/startup.S: Likewise.
12609 * kern/ieee1275/ieee1275.c: Likewise.
12610 * kern/powerpc/cache.S: Likewise.
12611 * kern/powerpc/dl.c: Likewise.
12612 * kern/powerpc/ieee1275/cmain.c: Likewise.
12613 * kern/powerpc/ieee1275/crt0.S: Likewise.
12614 * kern/powerpc/ieee1275/init.c: Likewise.
12615 * kern/powerpc/ieee1275/openfw.c: Likewise.
12616 * kern/sparc64/cache.S: Likewise.
12617 * kern/sparc64/dl.c: Likewise.
12618 * kern/sparc64/ieee1275/init.c: Likewise.
12619 * kern/sparc64/ieee1275/openfw.c: Likewise.
12620 * loader/efi/chainloader.c: Likewise.
12621 * loader/efi/chainloader_normal.c: Likewise.
12622 * loader/i386/efi/linux.c: Likewise.
12623 * loader/i386/efi/linux_normal.c: Likewise.
12624 * loader/i386/pc/chainloader.c: Likewise.
12625 * loader/i386/pc/chainloader_normal.c: Likewise.
12626 * loader/i386/pc/linux.c: Likewise.
12627 * loader/i386/pc/linux_normal.c: Likewise.
12628 * loader/i386/pc/multiboot.c: Likewise.
12629 * loader/i386/pc/multiboot_normal.c: Likewise.
12630 * loader/powerpc/ieee1275/linux.c: Likewise.
12631 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12632 * normal/arg.c: Likewise.
12633 * normal/cmdline.c: Likewise.
12634 * normal/command.c: Likewise.
12635 * normal/completion.c: Likewise.
12636 * normal/execute.c: Likewise.
12637 * normal/function.c: Likewise.
12638 * normal/lexer.c: Likewise.
12639 * normal/main.c: Likewise.
12640 * normal/menu.c: Likewise.
12641 * normal/menu_entry.c: Likewise.
12642 * normal/misc.c: Likewise.
12643 * normal/parser.y: Likewise.
12644 * normal/script.c: Likewise.
12645 * normal/i386/setjmp.S: Likewise.
12646 * normal/powerpc/setjmp.S: Likewise.
12647 * normal/sparc64/setjmp.S: Likewise.
12648 * partmap/acorn.c: Likewise.
12649 * partmap/amiga.c: Likewise.
12650 * partmap/apple.c: Likewise.
12651 * partmap/gpt.c: Likewise.
12652 * partmap/pc.c: Likewise.
12653 * partmap/sun.c: Likewise.
12654 * term/gfxterm.c: Likewise.
12655 * term/terminfo.c: Likewise.
12656 * term/efi/console.c: Likewise.
12657 * term/i386/pc/console.c: Likewise.
12658 * term/i386/pc/serial.c: Likewise.
12659 * term/i386/pc/vesafb.c: Likewise.
12660 * term/i386/pc/vga.c: Likewise.
12661 * term/ieee1275/ofconsole.c: Likewise.
12662 * util/biosdisk.c: Likewise.
12663 * util/console.c: Likewise.
12664 * util/genmoddep.c: Likewise.
12665 * util/getroot.c: Likewise.
12666 * util/grub-emu.c: Likewise.
12667 * util/grub-mkdevicemap.c: Likewise.
12668 * util/grub-probe.c: Likewise.
12669 * util/lvm.c: Likewise.
12670 * util/misc.c: Likewise.
12671 * util/raid.c: Likewise.
12672 * util/resolve.c: Likewise.
12673 * util/update-grub.in: Likewise.
12674 * util/update-grub_lib.in: Likewise.
12675 * util/grub.d/00_header.in: Likewise.
12676 * util/grub.d/10_hurd.in: Likewise.
12677 * util/grub.d/10_linux.in: Likewise.
12678 * util/i386/efi/grub-install.in: Likewise.
12679 * util/i386/efi/grub-mkimage.c: Likewise.
12680 * util/i386/pc/grub-install.in: Likewise.
12681 * util/i386/pc/grub-mkimage.c: Likewise.
12682 * util/i386/pc/grub-mkrescue.in: Likewise.
12683 * util/i386/pc/grub-setup.c: Likewise.
12684 * util/i386/pc/misc.c: Likewise.
12685 * util/powerpc/ieee1275/grub-install.in: Likewise.
12686 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
12687 * util/powerpc/ieee1275/misc.c: Likewise.
12688 * video/bitmap.c: Likewise.
12689 * video/video.c: Likewise.
12690 * video/i386/pc/vbe.c: Likewise.
12691 * video/i386/pc/vbeblit.c: Likewise.
12692 * video/i386/pc/vbefill.c: Likewise.
12693 * video/i386/pc/vbeutil.c: Likewise.
12694 * video/readers/tga.c: Likewise.
12696 2007-07-02 Robert Millan <rmh@aybabtu.com>
12698 * conf/i386-efi.rmk: Replace obsolete reference to
12699 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
12700 with util/getroot.c.
12701 * conf/powerpc-ieee1275.rmk: Likewise.
12702 * conf/sparc64-ieee1275.rmk: Likewise.
12704 * util/grub-emu.c (main): Fix unchecked pointer handling.
12706 2007-07-02 Robert Millan <rmh@aybabtu.com>
12708 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
12709 invocation to fail, in order to support partition-less media.
12711 * util/i386/pc/grub-install.in: Likewise.
12713 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
12714 which fs or partmap modules are needed (akin to its sister scripts).
12716 Also use grub-probe to get rid of unportable /proc/mounts check.
12718 Print the same informational message that the other scripts do, before
12721 2007-06-23 Robert Millan <rmh@aybabtu.com>
12723 * util/update-grub_lib.in (font_path): New function. Determine whether
12724 a font file can be found and, if so, echo the GRUB path to it.
12726 * util/update-grub.in: Handle multiple terminals depending on user
12727 input, platform availability and font file presence. Propagate
12728 variables of our findings to /etc/grub.d/ children.
12730 * util/grub.d/00_header.in: Handle multiple terminals, based on
12731 environment setup by update-grub.
12733 2007-06-23 Robert Millan <rmh@aybabtu.com>
12735 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
12737 2007-06-21 Robert Millan <rmh@aybabtu.com>
12739 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
12740 indicate end of data section in kernel image.
12741 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
12742 GRUB_KERNEL_MACHINE_DATA_END.
12744 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
12746 * kern/i386/efi/startup.S: Likewise.
12748 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
12749 during image generation. Implement --prefix option to override this
12751 * util/i386/efi/grub-mkimage.c: Likewise.
12753 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
12754 code to make path relative to its root into a separate function.
12756 * util/i386/pc/grub-install.in: Use newly provided
12757 make_system_path_relative_to_its_root() to convert ${grubdir}, then
12758 pass the result to grub-install --prefix.
12760 2007-06-13 Robert Millan <rmh@aybabtu.com>
12762 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
12763 DEFAULT_DEVICE_MAP.
12764 * util/grub-emu.c: Use above definitions from misc.h instead of
12766 * util/grub-mkdevicemap.c: Likewise.
12767 * util/i386/pc/grub-setup.c: Likewise.
12768 * util/grub-probe.c: Likewise.
12769 (probe): Abort with grub_util_error() when either
12770 grub_guess_root_device or grub_util_get_grub_dev fails.
12772 2007-06-12 Robert Millan <rmh@aybabtu.com>
12774 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
12775 "pager" assignment.
12776 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
12778 * util/grub-probe.c (probe): Likewise for "drive_name".
12780 2007-06-11 Robert Millan <rmh@aybabtu.com>
12782 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
12783 not just the cdrom one.
12785 2007-06-11 Robert Millan <rmh@aybabtu.com>
12787 * util/i386/pc/grub-mkrescue.in: Add "set -e".
12788 Add --pkglibdir=DIR option to override pkglibdir.
12789 Mention --image-type=TYPE in help output.
12790 Fix --grub-mkimage (it was a no-op).
12791 Abort gracefully when no parameter is given.
12793 2007-06-11 Robert Millan <rmh@aybabtu.com>
12795 * util/i386/pc/grub-mkrescue.in: New file.
12796 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
12797 * Makefile.in: Handle bin_SCRIPTS.
12799 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
12801 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
12802 list of video modes.
12804 2007-06-06 Robert Millan <rmh@aybabtu.com>
12806 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
12807 file doesn't exist, or if it is in a filesystem grub can't read.
12809 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
12810 not abort if GRUB_DRIVE could not be defined. Rearrange generated
12811 header comment to fit in 80 columns when the variables are resolved.
12813 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
12814 could be identified by update-grub. Remove redundant check for
12815 unifont.pff existence (since convert_system_path_to_grub_path now
12818 2007-06-04 Robert Millan <rmh@aybabtu.com>
12820 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
12822 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
12824 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
12826 2007-06-04 Robert Millan <rmh@aybabtu.com>
12828 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
12830 * include/grub/partition.h: Declare grub_apple_partition_map_init and
12831 grub_apple_partition_map_fini.
12834 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
12835 to access >2 TiB disks).
12837 Print disk->total_sectors with %llu instead of %lu, since this
12838 variable is always 64-bit (prevents wrong disk size from being displayed
12839 on either >2 TiB disk or big-endian CPU).
12841 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
12842 into a generic case that supports all (sane) partition maps.
12844 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
12847 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
12848 and grub_apple_partition_map_fini() after that.
12850 2007-06-01 Robert Millan <rmh@aybabtu.com>
12852 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
12854 * util/grub.d/00_header.in: Only enable gfxterm when
12855 convert_system_path_to_grub_path() succeeds.
12857 2007-05-20 Robert Millan <rmh@aybabtu.com>
12859 * util/update-grub_lib.in: New file.
12860 * DISTLIST: Add update-grub_lib.in.
12861 * conf/common.rmk: Generate update-grub_lib and install it in
12863 * Makefile.in: Add install routine for $(lib_DATA).
12865 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
12866 function provided by update-grub_lib to support arbitrary paths of
12868 * util/update-grub.in: Use convert_system_path_to_grub_path() to
12869 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
12871 2007-05-19 Robert Millan <rmh@aybabtu.com>
12873 * commands/i386/cpuid.c: New module.
12874 * DISTLIST: Add it.
12875 * conf/i386-efi.rmk: Enable cpuid.mod.
12876 * conf/i386-pc.rmk: Likewise.
12878 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
12880 * kern/disk.c (grub_disk_read): Check return value of
12883 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
12885 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
12887 * disk/raid.c (grub_raid_open): Likewise.
12889 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
12891 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
12892 stack instead of on the heap.
12894 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
12895 before doing a read on it.
12897 * configure.ac: Only use -fno-stack-protector for the target
12900 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
12902 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
12903 __attribute_ ((unused)) to mode_type argument.
12905 * util/getroot.c (grub_guess_root_device): Fix #endif.
12907 * kern/misc.c (memcmp): Fix prototype.
12909 * include/grub/partition.h [GRUB_UTIL]
12910 (grub_gpt_partition_map_init): Add prototype.
12911 (grub_gpt_partition_map_fini): Likewise.
12913 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
12914 at the right place.
12916 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
12917 (grub_fat_read_data): Likewise.
12918 (grub_fat_find_dir): Likewise.
12920 * font/manager.c (find_glyph): Make table a const.
12921 (grub_font_get_glyph): Remove bitmap from if statement.
12923 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
12925 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
12926 code, first search for device in /dev/mapper, then in /dev.
12927 (grub_util_get_grub_dev): New function.
12928 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
12930 * util/grub-probe.c (probe): Remove check for RAID, call
12931 grub_util_get_grub_dev() instead of
12932 grub_util_biosdisk_get_grub_dev().
12933 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
12934 grub_util_biosdisk_get_grub_dev().
12935 * util/i386/pc/grub-setup.c (main): Likewise.
12937 2007-05-16 Robert Millan <rmh@aybabtu.com>
12939 * DISTLIST: Update for the latest changes.
12940 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
12941 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
12942 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
12943 grub/util/biosdisk.h.
12944 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
12945 grub/util/biosdisk.h.
12947 2007-05-16 Robert Millan <rmh@aybabtu.com>
12949 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
12951 2007-05-16 Robert Millan <rmh@aybabtu.com>
12953 * util/i386/efi/grub-install.in: New.
12954 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
12955 newly added grub-install.
12956 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
12958 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
12959 grub/util/biosdisk.h.
12960 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
12961 grub/util/biosdisk.h.
12963 2007-05-16 Robert Millan <rmh@aybabtu.com>
12965 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
12966 * include/grub/util/biosdisk.h: ... here.
12967 * util/i386/pc/biosdisk.c: Moved to ...
12968 * util/biosdisk.c: ... here.
12969 * util/i386/pc/getroot.c: Moved to ...
12970 * util/getroot.c: ... here.
12971 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
12972 * util/grub-mkdevicemap.c: ... here.
12973 * util/i386/pc/grub-probe.c: Moved to ...
12974 * util/grub-probe.c: ... here.
12976 2007-05-15 Robert Millan <rmh@aybabtu.com>
12978 * util/update-grub.in: Remove duplicated line in grub.cfg header
12981 2007-05-13 Robert Millan <rmh@aybabtu.com>
12983 * util/update-grub.in: Fix a few assumptions about the devices holding
12984 /, /boot and /boot/grub being the same.
12985 * util/grub.d/00_header.in: Likewise.
12986 * util/grub.d/10_hurd.in: Likewise.
12987 * util/grub.d/10_linux.in: Likewise.
12989 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
12990 patterns. Use that to define the `.old' suffix as older than `'.
12992 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
12994 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
12995 the grub.cfg header message.
12997 2007-05-11 Robert Millan <rmh@aybabtu.com>
12999 * util/update-grub.in: Create device.map if it doesn't already exist,
13000 before attempting to run grub-probe.
13001 Check for grub-probe and grub-mkdevicemap with the same code
13002 grub-install is using.
13005 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
13007 * Makefile.in: Add the datarootdir autoconf variable.
13009 2007-05-09 Robert Millan <rmh@aybabtu.com>
13011 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
13012 fail gracefully if dev->disk->partition == NULL.
13014 2007-05-07 Robert Millan <rmh@aybabtu.com>
13016 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
13017 determine partition map module.
13018 * util/i386/pc/grub-install.in: Use this feature to decide which
13019 partition module to load, instead of hardcoding pc and gpt.
13021 2007-05-07 Robert Millan <rmh@aybabtu.com>
13023 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
13024 source directory differs from build directory.
13026 2007-05-05 Robert Millan <rmh@aybabtu.com>
13028 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
13031 2007-05-05 Robert Millan <rmh@aybabtu.com>
13033 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
13035 2007-05-05 Robert Millan <rmh@aybabtu.com>
13037 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
13038 command-line arguments via ${GRUB_CMDLINE_LINUX}.
13040 2007-05-05 Robert Millan <rmh@aybabtu.com>
13042 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
13043 (grub_probe_SOURCES): Likewise.
13044 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
13045 GPT and initialize dos_part and bsd_part accordingly.
13046 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
13048 (main): Activate gpt module for use during partition identification,
13049 and deactivate it afterwards.
13050 * util/i386/pc/grub-install.in: Add gpt module to core.img.
13051 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
13052 partition identification, and deactivate it afterwards.
13054 2007-05-05 Robert Millan <rmh@aybabtu.com>
13056 * term/i386/pc/console.c (grub_console_fini): Call
13057 grub_term_set_current() before grub_term_unregister().
13059 2007-05-04 Robert Millan <rmh@aybabtu.com>
13061 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
13062 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
13063 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
13064 and update-grub_DATA.
13065 * conf/common.rmk: Build and install update-grub components.
13066 * conf/common.mk: Regenerate.
13067 * util/update-grub.in: New. Core of update-grub.
13068 * util/grub.d/00_header.in: New. Generates grub.cfg header.
13069 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
13070 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
13071 * util/grub.d/README: New. Document grub.d directory layout.
13073 2007-05-01 Robert Millan <rmh@aybabtu.com>
13075 * util/grub-emu.c: Move initialization functions
13076 grub_util_biosdisk_init() and grub_init_all() before
13077 grub_util_biosdisk_get_grub_dev(), which relies on them.
13079 2007-04-19 Robert Millan <rmh@aybabtu.com>
13081 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
13084 2007-04-18 Jerone Young <jerone@gmail.com>
13086 * kernel/elf.c: Add missing parenthesis for conditional statement
13089 2007-04-10 Jerone Young <jerone@gmail.com>
13091 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
13092 continue on and look for device node with real device name.
13094 2007-04-10 Jerone Young <jerone@gmail.com>
13096 * configure.ac: Add argument for autoconf to use transformation
13098 * Makefile.in: Add autoconf package transformation code.
13099 * util/i386/pc/grub-install.in: Likewise.
13100 * util/powerpc/ieee1275/grub-install.in: Likewise.
13102 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
13104 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
13105 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
13106 (EXT2_REVISION): Likewise.
13107 (EXT2_INODE_SIZE): Likewise.
13108 (struct grub_ext2_block_group): Added a missing member
13110 (grub_ext2_read_inode): Divide by the inode size in a superblock
13111 instead of 128 to obtain INODES_PER_BLOCK.
13112 Use the macro EXT2_INODE_SIZE instead of directly using
13113 SBLOCK->INODE_SIZE.
13115 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
13117 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
13118 superblock instead of the structure size to compute an
13119 offset. This fixes the problem that GRUB could not read a
13120 filesystem when inode size is different from 128-byte.
13122 2007-03-05 Marco Gerards <marco@gnu.org>
13124 * normal/main.c (read_config_file): When "menu" is not set, create
13125 an initial context.
13127 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13129 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13130 (HEAP_LIMIT): New macro.
13131 (grub_claim_heap): Claim memory up to `heaplimit'.
13133 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13135 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13136 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13137 (_start): Likewise.
13138 (grub_arch_modules_addr): Return address after `_end'.
13139 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13140 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13141 (add_segments): Calculate `_end' from phdr size and location.
13142 (ALIGN_UP): Moved to ...
13143 * include/grub/misc.h: here.
13144 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13146 (GRUB_IEEE1275_MODULE_BASE): Removed.
13148 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13150 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13153 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13155 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13157 (grub_elf64_load_hook_t): Likewise.
13158 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13161 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13163 * kern/mm.c: Update copyright.
13164 (grub_mm_debug): Correct syntax error.
13165 (grub_mm_dump_free): New function.
13166 (grub_debug_free): Call `grub_free'.
13167 * include/grub/mm.h: Update copyright.
13168 (grub_mm_dump_free): Add declaration.
13170 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13172 * include/grub/ieee1275/ieee1275.h: Update copyright.
13173 * kern/powerpc/ieee1275/init.c: Likewise.
13174 * kern/powerpc/ieee1275/openfw.c: Likewise.
13176 * loader/powerpc/ieee1275/linux.c: Likewise.
13177 * include/grub/elfload.h: Likewise.
13178 * kern/elf.c: Likewise.
13179 (grub_elf32_load): Pass `base' and `size' parameters. Update all
13181 (grub_elf64_load): Likewise.
13182 (grub_elf32_load_segment): Move to a nested function.
13183 (grub_elf64_load_segment): Likewise.
13185 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13187 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
13189 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
13190 (grub_heap_len): Likewise.
13191 (HEAP_SIZE): New macro.
13192 (grub_claim_heap): New function.
13193 (grub_machine_init): Don't claim heap directly. Call
13195 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
13196 (grub_available_iterate): New function.
13198 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
13200 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
13201 * configure.ac: Use it for testing the HOST and TARGET compilers.
13203 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
13205 * Makefile.in (enable_grub_emu): New variable.
13206 * configure.ac (--enable-grub-emu): New option.
13207 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
13208 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
13209 * conf/i386-pc.rmk: Likewise.
13210 * conf/powerpc-ieee1275.rmk: Likewise.
13211 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
13213 2006-12-12 Marco Gerards <marco@gnu.org>
13215 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
13217 * kern/env.c (grub_env_unset): Don't free the member `value' when
13218 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
13221 * normal/main.c (current_menu): Removed.
13222 (free_menu): Unset the `menu' environment variable.
13223 (grub_normal_menu_addentry): Make use of the environment variable
13224 `menu', instead of using the global `current_menu'. Allocate
13225 memory for the sourcecode of this entry.
13226 (read_config_file): New argument `nested', changed all callers.
13227 Only in the case of a new context, initialize a new menu. Set the
13228 `menu' environment variable.
13229 (grub_normal_execute): Don't set and unset the environment
13230 variable `menu' here anymore. Only free the menu when leaving the
13233 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
13236 2006-12-11 Marco Gerards <marco@gnu.org>
13238 * normal/menu_entry.c (run): Fix off by one bug so the last line
13239 is executed. Move the loader check to outside the loop.
13241 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
13243 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
13245 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
13247 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
13248 the number of sectors. Reported by Andrey Shuvikov
13249 <mr_hyro@yahoo.com>.
13251 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
13253 * kern/disk.c (grub_disk_read): When there is a read error, always
13254 try to read only the necessary data.
13256 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
13258 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
13260 [GRUB_UTIL] (grub_raid_fini): Likewise.
13261 [GRUB_UTIL] (grub_lvm_init): Likewise.
13262 [GRUB_UTIL] (grub_lvm_fini): Likewise.
13263 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
13264 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
13265 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
13266 and grub_raid_fini().
13268 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
13270 * include/grub/types.h (__unused): Rename to UNUSED.
13271 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
13272 (grub_elf64_size): Likewise.
13274 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13276 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
13277 grub_error_push and grub_error_pop in the error-handling path.
13278 (grub_elf32_load_segment): Only call grub_file_read with non-zero
13281 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13283 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
13284 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13285 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13286 (kernel_elf_SOURCES): Likewise.
13287 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
13288 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
13289 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13290 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13291 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
13292 (elf_mod_SOURCES): New variable.
13293 (elf_mod_CFLAGS): Likewise.
13294 (elf_mod_LDFLAGS): Likewise.
13295 * include/grub/types.h (__unused): New macro.
13296 * include/grub/elfload.h: New file.
13297 * kern/elf.c: Likewise.
13298 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
13299 (ELF32_LOADMASK): New macro.
13300 (ELF64_LOADMASK): Likewise.
13301 (vmlinux): Removed.
13302 (grub_linux_load32): New function.
13303 (grub_linux_load64): Likewise.
13304 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
13305 Use grub_elf_t instead of grub_file_t.
13307 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
13309 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
13310 `catch_result' to struct set_color_args.
13312 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
13314 * normal/menu.c: Include grub/script.h.
13315 * normal/menu_entry.c: Likewise.
13316 * include/grub/normal.h: Do not include grub/script.h.
13318 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13320 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
13322 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13324 * kern/disk.c (grub_disk_open): Print debug messages when opening a
13326 (grub_disk_close): Print debug messages when closing a disk.
13327 (grub_disk_read): Print debug messages when disk read fails.
13328 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
13330 * kern/partition.c: Include misc.h.
13331 (grub_partition_iterate): Print debug messages when detecting
13334 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13336 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
13338 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
13340 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
13342 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13343 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
13345 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
13347 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
13348 instead of sizeof(lv). Patch by Michael Guntsche.
13350 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
13352 * disk/lvm.c: Rename VGS to VG_LIST.
13353 (grub_lvm_iterate): Change VGS->LV to VG-LV.
13354 (grub_lvm_open): Likewise.
13355 Thanks to Michael Guntsche for finding this bug.
13357 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
13359 * configure.ac (AC_INIT): Bumped to 1.95.
13361 2006-10-14 Robert Millan <rmh@aybabtu.com>
13363 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
13364 with "/dev/.static/dev/md".
13366 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13368 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
13369 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
13370 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
13371 DRIVE_NAME are always freed.
13373 * util/i386/pc/biosdisk.c (make_device_name): Add one into
13374 DOS_PART, as a DOS partition is counted from one instead of zero
13375 now. Reported by Robert Millan.
13377 2006-10-14 Robert Millan <rmh@aybabtu.com>
13379 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
13380 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
13381 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
13382 string returned by grub_guess_root_device.
13383 * util/i386/pc/grub-setup.c: Likewise.
13384 * util/i386/pc/grub-probefs.c: Likewise.
13386 * util/i386/pc/grub-probefs.c: Rename to ...
13387 * util/i386/pc/grub-probe.c: ... this.
13388 * DISTLIST: Remove grub-probefs, add grub-probe.
13389 * conf/i386-efi.rmk: Likewise.
13390 * conf/i386-pc.rmk: Likewise.
13391 * util/i386/pc/grub-install.in: Likewise.
13393 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
13394 choose which information we want to print.
13396 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13398 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
13399 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
13400 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
13401 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
13402 video/readers/tga.c and video/i386/pc/vbeutil.c.
13404 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
13406 Added support for RAID and LVM.
13408 * disk/lvm.c: New file.
13409 * disk/raid.c: Likewise.
13410 * include/grub/lvm.h: Likewise.
13411 * include/grub/raid.h: Likewise.
13412 * include/grub/util/lvm.h: Likewise.
13413 * include/grub/util/raid.h: Likewise.
13414 * util/lvm.c: Likewise.
13415 * util/raid.c: Likewise.
13417 * include/grub/disk.h (grub_disk_dev_id): Add
13418 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
13419 (grub_disk_get_size): New prototype.
13420 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
13421 returns a partition.
13422 (grub_disk_get_size): New function.
13424 * kern/i386/pc/init.c (make_install_device): Copy the prefix
13425 verbatim if grub_install_dos_part is -2.
13427 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
13430 * util/i386/pc/grub-setup.c (setup): New argument
13431 MUST_EMBED. Force embedding of GRUB when the argument is
13432 true. Close FILE before returning.
13433 (main): Add support for RAID and LVM.
13435 * conf/common.rmk: Add RAID and LVM modules.
13436 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
13438 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
13440 * kern/misc.c (grub_strstr): New function.
13441 * include/grub/misc.h (grub_strstr): New prototype.
13443 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
13445 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
13447 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
13449 * kern/misc.c (grub_strtoull): Guess the base only if not
13452 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13454 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
13457 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13459 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
13461 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
13462 Remove `flags' argument. All callers changed.
13463 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
13464 (IEEE1275_IHANDLE_INVALID): New variable.
13465 (IEEE1275_CELL_INVALID): New variable.
13466 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13467 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
13468 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
13469 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
13470 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
13471 codes from Open Firmware. All callers updated.
13472 (grub_ieee1275_next_property): Directly return Open Firmware return
13474 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
13475 Standardize error checking from `grub_ieee1275_get_property'.
13476 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
13477 `devalias' to `aliases'. Correct comments. Consolidate error paths.
13479 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13481 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
13482 `instance_to_package_args' to `instance_to_path_args'.
13484 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
13485 `grub_ieee1275_chosen'.
13487 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
13488 `grub_ieee1275_interpret'.
13490 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13492 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
13494 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13496 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
13497 (__cmpdi): Likewise.
13499 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
13500 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
13503 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
13505 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
13506 to type `grub_ssize_t'.
13507 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
13509 2006-09-22 Marco Gerards <marco@gnu.org>
13511 * normal/script.c (grub_script_create_cmdmenu): Skip leading
13514 2006-09-22 Marco Gerards <marco@gnu.org>
13516 * commands/echo.c: New file.
13518 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
13520 * conf/common.rmk (echo_mod_SOURCES): New variable.
13521 (echo_mod_CFLAGS): Likewise.
13522 (echo_mod_LDFLAGS): Likewise.
13524 2006-09-22 Marco Gerards <marco@gnu.org>
13526 * normal/main.c (get_line): Malloc memory instead of using
13527 preallocated memory. Removed the arguments `cmdline' and
13528 `max_len'. Updated all callers.
13530 2006-09-22 Marco Gerards <marco@gnu.org>
13532 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
13533 (normal_mod_DEPENDENCIES): Likewise.
13535 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
13536 (normal_mod_DEPENDENCIES): Likewise.
13538 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
13540 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
13542 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
13544 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
13545 (normal_mod_DEPENDENCIES): Likewise.
13546 * conf/i386-pc.mk: Regenerate.
13547 * conf/i386-efi.mk: Likewise
13548 * conf/common.mk: Likewise.
13549 * conf/powerpc-ieee1275.mk: Likewise.
13550 * conf/sparc64-ieee1275.mk: Likewise.
13552 2006-09-22 Robert Millan <rmh@aybabtu.com>
13554 Sync with i386 version.
13555 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
13556 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
13558 2006-09-21 Robert Millan <rmh@aybabtu.com>
13560 Import from GRUB Legacy (lib/device.c):
13561 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
13562 (init_device_map) [__linux__]: Add support for I2O devices.
13564 2006-09-14 Marco Gerards <marco@gnu.org>
13566 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
13569 2006-09-14 Robert Millan <rmh@aybabtu.com>
13571 * util/i386/pc/grub-install.in: Skip menu.lst when removing
13574 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
13576 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
13577 before adding it to device.map.
13579 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
13581 * genmk.rb: Let GCC generate dependencies the first time it
13582 compiles a file; using the -MD option.
13583 * conf/common.mk: Regenerate.
13584 * conf/i386-pc.mk: Likewise.
13585 * conf/i386-efi.mk: Likewise.
13586 * conf/powerpc-ieee1275.mk: Likewise.
13587 * conf/sparc64-ieee1275.mk: Likewise.
13589 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
13591 Move the prototypes of grub_setjmp and grub_longjmp to
13592 cpu/setjmp.h, so that each architecture may specify different
13595 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
13596 (grub_longjmp): Likewise.
13597 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
13598 (grub_longjmp): Likewise.
13599 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
13600 (grub_longjmp): Likewise.
13602 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
13603 [!GRUB_UTIL] (grub_longjmp): Removed.
13605 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
13607 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
13608 "color!" method does not return any value.
13610 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
13612 * include/grub/bitmap.h: New file.
13614 * include/grub/i386/pc/vbeutil.h: Likewise.
13616 * video/bitmap.c: Likewise.
13618 * video/readers/tga.c: Likewise.
13620 * video/i386/pc/vbeutil.c: Likewise.
13622 * commands/videotest.c: Code cleanup and updated to reflect to new
13625 * term/gfxterm.c: Likewise.
13627 * video/video.c: Likewise.
13629 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
13630 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
13631 (bitmap_mod_SOURCES): New entry.
13632 (bitmap_mod_CFLAGS): Likewise.
13633 (bitmap_mod_LDFLAGS): Likewise.
13634 (tga_mod_SOURCES): Likewise.
13635 (tga_mod_CFLAGS): Likewise.
13636 (tga_mod_LDFLAGS): Likewise.
13638 * include/grub/video.h (grub_video_blit_operators): New enum type.
13639 (grub_video_render_target): Changed as forward declaration and moved
13640 actual definition to be video driver specific.
13641 (grub_video_adapter.blit_bitmap): Added blitting operator.
13642 (grub_video_adapter.blit_render_target): Likewise.
13643 (grub_video_blit_bitmap): Likewise.
13644 (grub_video_blit_render_target): Likewise.
13646 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
13647 driver specific render target definition.
13648 (grub_video_vbe_map_rgba): Added driver internal helper.
13649 (grub_video_vbe_unmap_color): Updated to use
13650 grub_video_i386_vbeblit_info.
13651 (grub_video_vbe_get_video_ptr): Likewise.
13653 * include/grub/i386/pc/vbeblit.h
13654 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
13655 grub_video_i386_vbeblit_info.
13656 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
13657 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
13658 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
13659 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
13660 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
13661 (grub_video_i386_vbeblit_index_index): Likewise.
13662 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
13663 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
13664 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
13665 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
13667 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
13670 * video/i386/pc/vbeblit.c: Updated to reflect changes on
13671 include/grub/i386/pc/vbeblit.h.
13673 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
13674 Updated to use grub_video_i386_vbeblit_info.
13675 (grub_video_i386_vbefill_R8G8B8): Likewise.
13676 (grub_video_i386_vbefill_index): Likewise.
13677 (grub_video_i386_vbefill): Added generic filler.
13679 * video/i386/pc/vbefill.c: Updated to reflect changes on
13680 include/grub/i386/pc/vbefill.h.
13682 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
13683 grub_video_i386_vbeblit_info.
13684 (grub_video_vbe_unmap_color): Likewise.
13685 (grub_video_vbe_blit_glyph): Likewise.
13686 (grub_video_vbe_scroll): Likewise.
13687 (grub_video_vbe_draw_pixel): Removed function.
13688 (grub_video_vbe_get_pixel): Likewise.
13689 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
13690 updated code to use it.
13691 (common_blitter): Added common blitter for render target and bitmap.
13692 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
13693 (grub_video_vbe_blit_render_target): Likewise.
13695 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
13697 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
13698 is in text mode if there is no console control protocol instance
13701 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
13703 * include/grub/video.h: Code cleanup.
13705 * include/grub/i386/pc/vbe.h: Likewise.
13707 * video/i386/pc/vbe.c: Likewise.
13709 * video/i386/pc/vbeblit.c: Likewise.
13711 * video/i386/pc/vbefill.c: Likewise.
13713 * video/video.c: Likewise. Also added more comments.
13715 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
13717 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
13718 (struct grub_biosdisk_dap): Likewise.
13720 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
13721 linkage settings for all functions.
13723 2006-07-12 Marco Gerards <marco@gnu.org>
13725 * configure.ac (--enable-mm-debug): Fix typo.
13727 * genkernsyms.sh.in: Use proper quoting for `CC'.
13729 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
13731 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
13732 (normal_mod_ASFLAGS): Remove "-m32".
13734 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
13736 * util/misc.c: Include config.h.
13737 [!HAVE_MEMALIGN]: Do not include malloc.h.
13738 (grub_memalign): Use posix_memalign, if present. Then, use
13739 memalign, if present. Otherwise, emit an error.
13741 * util/grub-emu.c: Do not include malloc.h.
13743 * include/grub/util/misc.h: Include unistd.h. This is required for
13744 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
13745 D. Eades III <hde@foobar-qux.org>.
13747 * configure.ac (AC_GNU_SOURCE): Added.
13748 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
13751 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
13753 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
13754 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
13756 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
13758 * include/grub/types.h (grub_host_addr_t): Rename to
13759 grub_target_addr_t.
13760 (grub_host_off_t): Rename to grub_target_off_t.
13761 (grub_host_size_t): Rename to grub_target_size_t.
13762 (grub_host_ssize_t): Rename to grub_target_ssize_t.
13763 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
13765 * include/grub/kernel.h (struct grub_module_header): Change type
13766 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
13767 (grub_module_info): Likewise.
13769 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
13771 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
13772 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
13773 Velazquez <jesus.velazquez@gmail.com>.
13775 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
13777 Count partitions from 1 instead of 0 in the string representation
13778 of partitions. Still use 0-based internally.
13780 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
13781 (sun_partition_map_iterate): Use grub_partition_t instead of
13782 struct grub_partition *. Cast DESC->START_CYLINDER to
13783 grub_uint64_t after converting the endian.
13784 (sun_partition_map_probe): Subtract 1 for PARTNUM.
13785 (sun_partition_map_get_name): Add 1 to P->INDEX.
13787 * partmap/pc.c (grub_partition_parse): Subtract 1 for
13789 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
13791 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
13792 zero instead of one.
13793 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
13794 (gpt_partition_map_get_name): Add 1 into P->INDEX.
13796 * partmap/apple.c (apple_partition_map_iterate): Change the type
13797 of POS to unsigned.
13798 (apple_partition_map_probe): Subtract 1 for PARTNUM.
13799 (apple_partition_map_get_name): Add 1 into P->INDEX.
13801 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
13802 of POS to unsigned.
13803 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
13804 calculate the offset of a partition.
13805 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
13806 (amiga_partition_map_get_name): Add 1 into P->INDEX.
13808 * partmap/acorn.c (acorn_partition_map_find): Change the type of
13809 SECTOR to grub_disk_addr_t.
13810 (acorn_partition_map_iterate): Likewise.
13811 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
13812 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
13814 (acorn_partition_map_get_name): Add 1 into P->INDEX.
13816 * kern/i386/pc/init.c (make_install_device): Add 1 into
13817 GRUB_INSTALL_DOS_PART.
13819 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
13822 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
13824 Clean up the code to support 64-bit addressing in disks and
13825 files. This change is not enough for filesystems yet.
13827 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
13828 type of "start" to grub_uint64_t.
13829 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
13830 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
13831 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
13834 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
13835 to grub_disk_addr_t.
13837 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
13840 * partmap/pc.c (pc_partition_map_iterate): Likewise.
13842 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
13845 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
13847 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
13849 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
13851 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
13852 to grub_off_t, to detect an error from grub_file_seek.
13853 (grub_multiboot_load_elf32): Likewise.
13855 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
13856 maximum unsigned long value when an overflow is detected.
13857 (grub_strtoull): New function.
13858 (grub_divmod64): Likewise.
13859 (grub_lltoa): use grub_divmod64.
13861 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
13863 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
13864 the pointer to next character. Use grub_strtoull instead of
13866 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
13867 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
13870 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
13871 return value is signed.
13872 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
13873 test if OFFSET is less than zero, as OFFSET is unsigned now.
13875 * kern/disk.c (struct grub_disk_cache): Change the type of
13876 "sector" to grub_disk_addr_t.
13877 (grub_disk_cache_get_index): Change the type of SECTOR to
13878 grub_disk_addr_t. Calculate the hash with SECTOR casted to
13879 unsigned after shifting.
13880 (grub_disk_cache_invalidate): Change the type of SECTOR to
13882 (grub_disk_cache_unlock): Likewise.
13883 (grub_disk_cache_store): Likewise.
13884 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
13885 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
13886 grub_disk_addr_t and grub_uint64_t, respectively.
13887 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
13888 body, as the value of OFFSET is tweaked by
13889 grub_disk_check_range. Change the types of START_SECTOR, LEN and
13890 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
13892 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
13893 body, as the value of OFFSET is tweaked by
13894 grub_disk_check_range. Change the types of LEN and N to
13897 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
13898 and "saved_offset" to grub_off_t.
13899 (test_header): Cast BUF to char *.
13900 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
13902 (grub_gzio_read): Change the types of OFFSET and SIZE to
13903 grub_off_t and grub_size_t, respectively.
13905 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
13907 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
13908 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
13909 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
13910 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
13911 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
13913 * include/grub/types.h (grub_off_t): Unconditionally set to
13915 (grub_disk_addr_t): Changed to grub_uint64_t.
13917 * include/grub/partition.h (struct grub_partition): Change the
13918 types of "start", "len" and "offset" to grub_disk_addr_t,
13919 grub_uint64_t and grub_disk_addr_t, respectively.
13920 (grub_partition_get_start): Return grub_disk_addr_t.
13921 (grub_partition_get_len): Return grub_uint64_t.
13923 * include/grub/misc.h (grub_strtoull): New prototype.
13924 (grub_divmod64): Likewise.
13926 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
13927 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
13928 grub_off_t, respectively.
13929 All callers and references changed.
13931 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
13932 grub_size_t in "read".
13933 All callers and references changed.
13935 * include/grub/file.h (struct grub_file): Change the types of
13936 "offset" and "size" to grub_off_t and grub_off_t,
13937 respectively. Change the type of SECTOR to grub_disk_addr_t in
13939 (grub_file_read): Change the type of LEN to grub_size_t.
13940 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
13942 (grub_file_size): Return grub_off_t.
13943 (grub_file_tell): Likewise.
13944 All callers and references changed.
13946 * include/grub/disk.h (struct grub_disk_dev): Change the types of
13947 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
13949 (struct grub_disk): Change the type of "total_sectors" to
13950 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
13952 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
13953 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
13954 (grub_disk_write): Likewise.
13955 All callers and references changed.
13957 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
13958 char * for grub_strncmp to silence gcc.
13959 (grub_iso9660_mount): Likewise.
13960 (grub_iso9660_mount): Likewise.
13961 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
13963 (grub_iso9660_iterate_dir): Likewise.
13964 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
13966 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
13967 LEN to grub_disk_addr_t and grub_size_t, respectively.
13969 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
13971 * fs/jfs.c (grub_jfs_read_file): Likewise.
13973 * fs/minix.c (grub_jfs_read_file): Likewise.
13975 * fs/sfs.c (grub_jfs_read_file): Likewise.
13977 * fs/ufs.c (grub_jfs_read_file): Likewise.
13979 * fs/xfs.c (grub_jfs_read_file): Likewise.
13981 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
13982 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
13985 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
13986 BLKNR to -1 instead of returning GRUB_ERRNO.
13987 (grub_ext2_read_file): Change the types of SECTOR and
13988 LEN to grub_disk_addr_t and grub_size_t, respectively.
13990 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
13991 LEN to grub_disk_addr_t and grub_size_t, respectively.
13993 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
13996 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
13997 string. Do not cast SECTOR explicitly.
13999 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
14000 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
14001 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
14002 grub_disk_addr_t and grub_size_t, respectively. If the sector is
14003 over 2TB and LBA mode is not supported, raise an error.
14004 (get_safe_sectors): New function.
14005 (grub_biosdisk_read): Use get_safe_sectors.
14006 (grub_biosdisk_write): Likewise.
14008 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
14009 (grub_efidisk_write): Likewise.
14011 * disk/loopback.c (delete_loopback): Cosmetic changes.
14012 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
14014 (grub_loopback_open): Likewise.
14015 (grub_loopback_read): Likewise. Also, change the type of POS to
14016 grub_off_t, and fix the usage of grub_memset.
14018 * commands/i386/pc/play.c: Include grub/machine/time.h.
14020 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
14023 * commands/configfile.c: Include grub/env.h.
14025 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
14026 GRUB_ERRNO directly instead. Change the type of POS to
14027 grub_off_t. Follow the coding standard.
14029 * commands/blocklist.c: Include grub/partition.h.
14030 (grub_cmd_blocklist): Return an error if the underlying device is
14031 not a disk. Take the starting sector of a partition into account,
14032 if a partition is used.
14034 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
14036 (lba_mode): Support 64-bit addresses.
14037 (chs_mode): Likewise.
14038 (copy_buffer): Adapted to the new offsets of a length field and a
14040 (blocklist_default_start): Allocate 64-bit space.
14042 * boot/i386/pc/boot.S (force_lba): Removed.
14043 (boot_drive): Moved to under KERNEL_SECTOR.
14044 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
14046 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
14048 (lba_mode): Refactored to support a 64-bit address. More size
14050 (setup_sectors): Likewise.
14052 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14054 * DISTLIST: Added include/grub/i386/linux.h. Removed
14055 include/grub/i386/pc/linux.h
14057 * configure.ac (AC_INIT): Bumped to 1.94.
14059 * config.guess: Updated from gnulib.
14060 * config.sub: Likewise.
14061 * install-sh: Likewise.
14062 * mkinstalldirs: Likewise.
14064 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14066 * conf/common.rmk (grub_modules_init.lst): Depended on
14067 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
14070 * genmk.rb (PModule::rule): Reverted the previous change.
14072 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14074 * conf/common.rmk (grub_modules_init.lst): Depends on
14075 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
14076 that the target does not exist before producing.
14077 (grub_modules_init.h): Remove the target before generating.
14078 (grub_emu_init.c): Likewise.
14080 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
14082 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
14084 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
14085 for the target-specific tests. Make sure that we also have the
14086 up-to-date target variables for those tests.
14088 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14090 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
14091 (PModule::rule): Likewise.
14093 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14095 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
14096 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
14097 target-specific flags should be prefixed.
14098 (PModule::rule): Likewise.
14100 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
14102 * configure.ac (CMP): Check if cmp is available explicitly.
14104 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
14106 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
14107 (target_cpu): New variable.
14108 (pkglibdir): Use target_cpu instead of host_cpu.
14110 * util/i386/pc/grub-install.in (host_cpu): Removed.
14111 (target_cpu): New variable.
14112 (pkglibdir): Use target_cpu instead of host_cpu.
14114 * util/genmoddep.c: Removed.
14116 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
14117 instead of GRUB_HOST_SIZEOF_VOID_P.
14118 * kern/dl.c: Likewise.
14120 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
14122 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14123 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14124 (GRUB_TARGET_SIZEOF_LONG): ... this.
14125 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14126 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14127 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14129 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14130 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14131 (GRUB_TARGET_SIZEOF_LONG): ... this.
14132 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14133 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14134 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14136 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14137 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14138 (GRUB_TARGET_SIZEOF_LONG): ... this.
14139 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14140 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14142 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14143 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14144 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14145 instead of GRUB_HOST_SIZEOF_LONG.
14146 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14147 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14148 GRUB_CPU_WORDS_BIGENDIAN.
14149 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14150 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14153 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14154 (genmoddep_SOURCES): Likewise.
14155 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14156 (genmoddep_SOURCES): Likewise.
14157 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14158 (genmoddep_SOURCES): Likewise.
14159 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14161 (genmoddep_SOURCES): Likewise.
14163 * genmoddep.awk: New file.
14165 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14166 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14167 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14168 (PModule::rule): Likewise.
14169 (Program::rule): Likewise.
14170 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14171 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14174 * configure.ac: Rewritten intensively to use host and target
14175 instead of build and host, respectively.
14177 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14178 (host_cpu): Removed.
14179 (target_cpu): New variable.
14180 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
14181 (BUILD_CC): Removed.
14182 (BUILD_CFLAGS): Likewise.
14183 (BUILD_CPPFLAGS): Likewise.
14184 (TARGET_CC): New variable.
14185 (TARGET_CFLAGS): Likewise.
14186 (TARGET_CPPFLAGS): Likewise.
14187 (TARGET_LDFLAGS): Likewise.
14189 (include): Use target_cpu instead of host_cpu.
14190 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
14192 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
14194 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
14196 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
14197 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
14198 field 'false' to 'exec_on_false'.
14199 (grub_script_create_cmdif): Renamed argument names to reflect above
14202 * normal/execute.c (grub_script_execute_cmdif): Likewise.
14204 * normal/script.c (grub_script_create_cmdif): Likewise.
14206 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
14208 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
14210 (grub_hfsplus_btree_recptr): Likewise.
14211 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
14212 FILEBLOCK both to pass a block number and store next block
14214 (grub_hfsplus_read_block): Rewritten heavily to support an extent
14215 overflow file correctly. Specify errors appropriately, because
14216 fshelp expects that GRUB_ERRNO is set when fails. Reuse
14217 grub_hfsplus_btree_recptr to get the pointer to a found key.
14218 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
14221 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
14223 (_linux_mod_SOURCES): New variable.
14224 (_linux_mod_CFLAGS): Likewise.
14225 (_linux_mod_LDFLAGS): Likewise.
14226 (linux_mod_SOURCES): Likewise.
14227 (linux_mod_CFLAGS): Likewise.
14228 (linux_mod_LDFLAGS): Likewise.
14230 * DISTLIST: Added loader/i386/efi/linux.c,
14231 loader/i386/efi/linux_normal.c and
14232 include/grub/i386/efi/loader.h.
14234 * loader/i386/efi/linux.c: New file.
14235 * loader/i386/efi/linux_normal.c: Likewise.
14236 * include/grub/i386/efi/loader.h: Likewise.
14238 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
14240 * commands/blocklist.c: New file.
14242 * DISTLIST: Added commands/blocklist.c.
14244 * term/efi/console.c (grub_console_highlight_color): Use a lighter
14245 color for the background, and a darker color for the foreground.
14246 (grub_console_checkkey): Return READ_KEY.
14247 (grub_console_cls): Set the background to
14248 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
14250 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
14252 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
14253 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
14255 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
14258 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
14259 BG. The spec is wrong again.
14261 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
14263 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
14265 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14266 commands/blocklist.c.
14267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14269 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
14270 (blocklist_mod_SOURCES): New variable.
14271 (blocklist_mod_CFLAGS): Likewise.
14272 (blocklist_mod_LDFLAGS): Likewise.
14274 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
14276 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
14278 (lba_mode): Use %eax more intensively to reduce the code size.
14280 2006-05-20 Marco Gerards <marco@gnu.org>
14282 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
14284 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
14286 (script): Accept leading newlines.
14287 (newlines): New rule to describe 0 or more newlines.
14288 (commands): Accept `command' with trailing newline. Fixed the
14289 order in which arguments were passed to `grub_script_add_cmd'.
14290 Accept commands separated by newlines.
14291 (function): Changed to accept newlines.
14292 (menuentry) Rewritten.
14294 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
14295 front of the list, instead of to the end.
14297 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
14299 * util/i386/pc/grub-install.in (bindir): New variable.
14300 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
14301 Shaver <lbgwjl@gmail.com>.
14303 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
14305 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
14306 grub/machine/linux.h
14307 * loader/i386/pc/linux.c: Likewise.
14309 * include/grub/i386/pc/linux.h: Moved to ...
14310 * include/grub/i386/linux.h: ... here.
14312 * include/grub/i386/linux.h (struct linux_kernel_params): New
14315 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
14317 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
14319 (grub_video_vbe_blit_glyph): Likewise.
14320 (grub_video_vbe_blit_bitmap): Likewise.
14321 (grub_video_vbe_blit_render_target): Likewise.
14323 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
14325 * configure.ac (--with-platform): Properly quote the square
14328 2006-05-08 Marco Gerards <marco@gnu.org>
14330 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
14332 (kernel_elf_HEADERS): ...to this. Updated all users.
14333 (grubof_symlist.c): Renamed from this...
14334 (kernel_elf_symlist.c): ...to this. Updated all users.
14335 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14336 (grubof_SOURCES): Renamed from this...
14337 (kernel_elf_SOURCES): ...to this.
14338 (grubof_HEADERS): Renamed from this...
14339 (kernel_elf_HEADERS): ...to this.
14340 (grubof_CFLAGS): Renamed from this...
14341 (kernel_elf_CFLAGS): ...to this.
14342 (grubof_ASFLAGS): Renamed from this...
14343 (kernel_elf_ASFLAGS): ...to this.
14344 (grubof_LDFLAGS): Renamed from this...
14345 (kernel_elf_LDFLAGS): ...to this.
14347 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
14349 (kernel_elf_HEADERS): ...to this. Updated all users.
14350 (grubof_symlist.c): Renamed from this...
14351 (kernel_elf_symlist.c): ...to this. Updated all users.
14352 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14353 (grubof_SOURCES): Renamed from this...
14354 (kernel_elf_SOURCES): ...to this.
14355 (grubof_HEADERS): Renamed from this...
14356 (kernel_elf_HEADERS): ...to this.
14357 (grubof_CFLAGS): Renamed from this...
14358 (kernel_elf_CFLAGS): ...to this.
14359 (grubof_ASFLAGS): Renamed from this...
14360 (kernel_elf_ASFLAGS): ...to this.
14361 (grubof_LDFLAGS): Renamed from this...
14362 (kernel_elf_LDFLAGS): ...to this.
14364 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
14365 `kernel.elf' instead of `grubof'.
14367 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
14369 Add --with-platform to configure. Use pkglibdir instead of
14370 pkgdatadir. This is reported by Roger Leigh.
14372 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
14373 (host_vendor): Likewise.
14374 (host_os): Likewise.
14375 (pkgdatadir): Likewise.
14376 (platform): New variable.
14377 (pkglibdir): Likewise.
14378 Use PKGLIBDIR instead of PKGDATADIR.
14380 * util/i386/pc/grub-install.in (datadir): Removed.
14381 (host_vendor): Likewise.
14382 (host_os): Likewise.
14383 (pkgdatadir): Likewise.
14384 (platform): New variable.
14385 (pkglibdir): Likewise.
14386 Use PKGLIBDIR instead of PKGDATADIR.
14388 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
14389 instead of GRUB_DATADIR.
14391 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14393 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14396 * configure.ac (--with-platform): New option.
14397 Use PLATFORM instead of HOST_VENDOR to specify a platform.
14399 * Makefile.in: Include a makefile based on PLATFORM instead of
14401 (pkgdatadir): Not appended by the machine type.
14402 (pkglibdir): Appended by the machine type.
14403 (host_vendor): Removed.
14404 (platform): New variable.
14405 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
14406 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
14407 (uninstall): Likewise.
14409 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
14411 Use the environment context in the menu. Remove the commands
14412 "default" and "timeout", and use variables instead.
14414 * normal/menu.c: Include grub/env.h.
14415 (print_entry): Cast TITLE to silence gcc.
14416 (get_timeout): New function.
14417 (set_timeout): Likewise.
14418 (get_entry_number): Likewise.
14419 (run_menu): Use a default entry, a fallback entry and a timeout
14420 in the environment variables "default", "fallback" and
14421 "timeout". Also, tweak the default entry if it is not within the
14422 current menu entries.
14423 (grub_menu_run): Use a fallback entry in the environment variable
14426 * normal/main.c (read_config_file): Do not initialize
14427 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
14429 (grub_normal_execute): Use a data slot to store the menu.
14431 * include/grub/normal.h (struct grub_menu): Removed default_entry,
14432 fallback_entry and timeout.
14433 (struct grub_menu_list): Removed.
14434 (grub_menu_list_t): Likewise.
14435 (struct grub_context): Likewise.
14436 (grub_context_t): Likewise.
14437 (grub_context_get): Likewise.
14438 (grub_context_get_current_menu): Likewise.
14439 (grub_context_push_menu): Likewise.
14440 (grub_context_pop_menu): Likewise.
14441 (grub_default_init): Likewise.
14442 (grub_default_fini): Likewise.
14443 (grub_timeout_init): Likewise.
14444 (grub_timeout_fini): Likewise.
14446 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
14448 (normal_mod_SOURCES): Removed normal/context.c.
14450 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
14451 commands/default.c, commands/timeout.c and normal/context.c.
14452 (normal_mod_SOURCES): Removed normal/context.c.
14454 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
14455 commands/timeout.c and normal/context.c.
14456 (normal_mod_SOURCES): Removed normal/context.c.
14458 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
14459 commands/default.c, commands/timeout.c and normal/context.c.
14460 (normal_mod_SOURCES): Removed normal/context.c.
14462 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
14464 (default_mod_SOURCES): Removed.
14465 (default_mod_CFLAGS): Likewise.
14466 (default_mod_LDFLAGS): Likewise.
14467 (timeout_mod_SOURCES): Removed.
14468 (timeout_mod_CFLAGS): Likewise.
14469 (timeout_mod_LDFLAGS): Likewise.
14471 * DISTLIST: Removed commands/default.c, commands/timeout.c and
14474 * commands/default.c: Removed.
14475 * commands/timeout.c: Likewise.
14476 * normal/context.c: Likewise.
14478 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
14480 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
14482 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
14484 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
14485 "next" to "prev" for readability.
14486 (struct grub_env_sorted_var): New struct.
14487 (grub_env_context): Renamed to ...
14488 (initial_context): ... this.
14489 (grub_env_var_context): Renamed to ...
14490 (current_context): ... this.
14491 (grub_env_find): Look only at CURRENT_CONTEXT.
14492 (grub_env_context_open): Rewritten to copy exported variables from
14494 (grub_env_context_close): Rewritten according to the new
14495 scheme. Also, add an assertion to prevent the initial context from
14497 (grub_env_insert): Removed the code for the sorted list.
14498 (grub_env_remove): Likewise.
14499 (grub_env_export): Simply mark the variable with
14500 GRUB_ENV_VAR_GLOBAL.
14501 (grub_env_set): A cosmetic change for naming consistency.
14502 (grub_env_get): Likewise.
14503 (grub_env_unset): Likewise.
14504 (grub_env_iterate): Rewritten to sort variables within this
14506 (grub_register_variable_hook): Fixed for naming consistency. Call
14507 grub_env_find again, only if NAME is not found at the first time.
14508 (mangle_data_slot_name): New function.
14509 (grub_env_set_data_slot): Likewise.
14510 (grub_env_get_data_slot): Likewise.
14511 (grub_env_unset_data_slot): Likewise.
14513 * include/grub/env.h (grub_env_var_type): New enum.
14514 (GRUB_ENV_VAR_LOCAL): New constant.
14515 (GRUB_ENV_VAR_GLOBAL): Likewise.
14516 (GRUB_ENV_VAR_DATA): Likewise.
14517 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
14519 (grub_env_set): Replace VAR with NAME for consistency.
14520 (grub_register_variable_hook): Likewise.
14521 (grub_env_export): Specify the name of the argument.
14522 (grub_env_set_data_slot): New prototype.
14523 (grub_env_get_data_slot): Likewise.
14524 (grub_env_unset_data_slot): Likewise.
14526 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
14528 Extend the loader so that GRUB can accept a loader which comes
14529 back to GRUB when a loaded image exits. Also, this change adds
14530 support for a chainloader on EFI.
14532 * term/efi/console.c: Include grub/misc.h.
14533 (grub_console_checkkey): Display a scan code on the top for
14534 debugging. This will be removed once the EFI port gets stable.
14535 Correct the scan code mapping.
14537 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
14538 allocate memory from larger regions, in order to reduce the number
14539 of allocated regions. Otherwise, the MacOSX loader panics.
14540 (filter_memory_map): Avoid less than 1MB for compatibility with
14542 (add_memory_regions): Allocate from the tail of a region, if
14543 possible, to avoid allocating a region near to 1MB, for the MacOSX
14546 * kern/efi/init.c (grub_efi_set_prefix): Specify
14547 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
14549 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
14550 argument IMAGE_HANDLE and specify it to get a loaded image.
14551 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
14552 grub_efi_get_loaded_image.
14553 (grub_efi_get_filename): Divide the length by the size of
14555 (grub_efi_get_device_path): New function.
14556 (grub_efi_print_device_path): Print End Device Path nodes. Divide
14557 the length by the size of grub_efi_char16_t for a file path device
14560 * kern/loader.c (grub_loader_noreturn): New variable.
14561 (grub_loader_set): Accept a new argument NORETURN. Set
14562 GRUB_LOADER_NORETURN to NORETURN.
14563 All callers changed.
14564 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
14567 * include/grub/efi/efi.h (grub_efi_get_device_path): New
14569 (grub_efi_get_loaded_image): Take an argument to specify an image
14572 * include/grub/loader.h (grub_loader_set): Added one more argument
14575 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
14576 instead of grub_efi_open_protocol.
14577 (grub_efidisk_get_device_name): Likewise.
14578 (grub_efidisk_close): Print a newline.
14579 (grub_efidisk_get_device_handle): Fixed to use
14580 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
14581 GRUB_EFI_DEVICE_PATH_TYPE.
14583 * disk/efi/efidisk.c (device_path_guid): Moved to ...
14584 * kern/efi/efi.c (device_path_guid): ... here.
14586 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
14588 (kernel_mod_HEADERS): Added efi/disk.h.
14589 (_chain_mod_SOURCES): New variable.
14590 (_chain_mod_CFLAGS): Likewise.
14591 (_chain_mod_LDFLAGS): Likewise.
14592 (chain_mod_SOURCES): Likewise.
14593 (chain_mod_CFLAGS): Likewise.
14594 (chain_mod_LDFLAGS): Likewise.
14596 * DISTLIST: Added include/grub/efi/chainloader.h,
14597 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
14599 * include/grub/efi/chainloader.h: New file.
14600 * loader/efi/chainloader.c: Likewise.
14601 * loader/efi/chainloader_normal.c: Likewise.
14603 2006-04-30 Marco Gerards <marco@gnu.org>
14605 * commands/configfile.c (grub_cmd_source): New function.
14606 (GRUB_MOD_INIT): Register the commands `source' and `.'.
14607 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
14609 2006-04-30 Marco Gerards <marco@gnu.org>
14611 * normal/execute.c (grub_script_execute_cmd): Change the return
14612 type to `grub_err_t'. Correctly return the error.
14613 (grub_script_execute_cmdline): In case a command line is not a
14614 command or a function, try to interpret it as an assignment.
14616 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
14618 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
14619 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
14620 skip a node whose name is obviously invalid as UTF-16,
14621 i.e. contains a NUL character. Stop the iteration when the last
14622 directory entry is found. Instead of using the return value of
14623 grub_hfsplus_btree_iterate_node, store the value in RET and use
14624 it, because the iterator can be stopped by the last directory
14627 2006-04-30 Marco Gerards <marco@gnu.org>
14629 * include/grub/env.h (grub_env_export): New prototype. Reported
14630 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
14632 2006-04-30 Marco Gerards <marco@gnu.org>
14634 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
14635 size of the extents in a catalog file record.
14637 2006-04-29 Marco Gerards <marco@gnu.org>
14639 * commands/configfile.c (grub_cmd_configfile): Execute the
14640 configfile within its own context.
14642 * include/grub/env.h (grub_env_context_open): New prototype.
14643 (grub_env_context_close): Likewise.
14645 * kern/env.c (grub_env): Removed.
14646 (grub_env_sorted): Likewise.
14647 (grub_env_context): New variable.
14648 (grub_env_var_context): Likewise.
14649 (grub_env_find): Search both the active context and the global
14651 (grub_env_context_open): New function.
14652 (grub_env_context_close): Likewise.
14653 (grub_env_insert): Likewise.
14654 (grub_env_remove): Likewise.
14655 (grub_env_export): Likewise.
14656 (grub_env_set): Changed to use helper functions to avoid code
14658 (grub_env_iterate): Rewritten so both the current context and the
14659 global context are being used.
14661 * normal/command.c (export_command): New function.
14662 (grub_command_init): Register the `export' function.
14664 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
14666 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
14667 explicitly to suppress gcc's warnings.
14668 * fs/fat.c (grub_fat_find_dir): Likewise.
14669 (grub_fat_label): Likewise.
14670 * fs/xfs.c (grub_xfs_read_inode): Likewise.
14671 (grub_xfs_mount): Likewise.
14672 (grub_xfs_label): Likewise.
14673 * fs/affs.c (grub_affs_mount): Likewise.
14674 (grub_affs_label): Likewise.
14675 (grub_affs_iterate_dir): Likewise.
14676 * fs/sfs.c (grub_sfs_mount): Likewise.
14677 (grub_sfs_iterate_dir): Likewise.
14678 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
14679 * fs/hfs.c (grub_hfs_mount): Likewise.
14680 (grub_hfs_cmp_catkeys): Likewise.
14681 (grub_hfs_find_dir): Likewise.
14682 (grub_hfs_dir): Likewise.
14683 (grub_hfs_label): Likewise.
14684 * fs/jfs.c (grub_jfs_mount): Likewise.
14685 (grub_jfs_opendir): Likewise.
14686 (grub_jfs_getent): Likewise.
14687 (grub_jfs_lookup_symlink): Likewise.
14688 (grub_jfs_label): Likewise.
14689 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14690 (grub_hfsplus_iterate_dir): Likewise.
14691 (grub_hfsplus_btree_iterate_node): Made static.
14693 * util/grub-emu.c (prefix): New variable.
14694 (grub_machine_set_prefix): New function.
14695 (main): Do not set the environment variable "prefix" here. Only
14696 set PREFIX, which is used later by grub_machine_set_prefix.
14698 * include/grub/video.h: Do not include grub/symbol.h.
14699 (grub_video_register): Not exported. This symbol is not defined in
14701 (grub_video_unregister): Likewise.
14702 (grub_video_iterate): Likewise.
14703 (grub_video_setup): Likewise.
14704 (grub_video_restore): Likewise.
14705 (grub_video_get_info): Likewise.
14706 (grub_video_get_blit_format): Likewise.
14707 (grub_video_set_palette): Likewise.
14708 (grub_video_get_palette): Likewise.
14709 (grub_video_set_viewport): Likewise.
14710 (grub_video_get_viewport): Likewise.
14711 (grub_video_map_color): Likewise.
14712 (grub_video_map_rgb): Likewise.
14713 (grub_video_map_rgba): Likewise.
14714 (grub_video_fill_rect): Likewise.
14715 (grub_video_blit_glyph): Likewise.
14716 (grub_video_blit_bitmap): Likewise.
14717 (grub_video_blit_render_target): Likewise.
14718 (grub_video_scroll): Likewise.
14719 (grub_video_swap_buffers): Likewise.
14720 (grub_video_create_render_target): Likewise.
14721 (grub_video_delete_render_target): Likewise.
14722 (grub_video_set_active_render_target): Likewise.
14724 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
14726 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
14728 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
14729 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14730 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14731 instead of $(srcdir)/genkernsyms.sh.
14733 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
14734 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14735 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14736 instead of $(srcdir)/genkernsyms.sh.
14738 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
14739 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14740 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14741 instead of $(srcdir)/genkernsyms.sh.
14743 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
14744 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14745 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14746 instead of $(srcdir)/genkernsyms.sh.
14748 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
14751 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
14753 (gensymlist.sh): New target.
14754 (genkernsyms.sh): Likewise.
14756 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
14757 genkernsyms.sh.in and gensymlist.sh.in.
14759 * genkernsyms.sh: Removed.
14760 * gensymlist.sh: Likewise.
14762 * genkernsyms.sh.in: New file.
14763 * gensymlist.sh.in: Likewise.
14765 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
14767 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
14768 clobber "prefix", since we may have already set it manually.
14770 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
14772 * kern/misc.c (abort): New alias for grub_abort.
14774 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
14776 A new machine-specific function "grub_machine_set_prefix" is
14777 defined. This is called after loading modules, so that a prefix
14778 initialization can use modules. Also, this change adds an
14779 intensive debugging feature for the memory manager via the
14780 configure option "--enable-mm-debug".
14782 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
14785 * kern/sparc64/ieee1275/init.c (abort): Removed.
14786 (grub_stop): Likewise.
14787 (grub_exit): New function.
14788 (grub_set_prefix): Renamed to ...
14789 (grub_machine_set_prefix): ... this.
14790 (grub_machine_init): Do not call grub_set_prefix.
14792 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
14793 (grub_machine_set_prefix): ... this.
14794 (grub_machine_init): Do not call grub_set_prefix.
14796 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
14797 (grub_machine_init): Do not set the prefix here.
14799 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
14801 * kern/efi/init.c: Include grub/mm.h.
14802 (grub_efi_set_prefix): New function.
14804 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
14805 (grub_efi_get_filename): New function.
14806 (grub_print_device_path): Renamed to ...
14807 (grub_efi_print_device_path): ... this.
14809 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
14810 [MM_DEBUG] (grub_realloc): Likewise.
14811 [MM_DEBUG] (grub_free): Likewise.
14812 [MM_DEBUG] (grub_memalign): Likewise.
14813 [MM_DEBUG] (grub_mm_debug): New variable.
14814 [MM_DEBUG] (grub_debug_malloc): New function.
14815 [MM_DEBUG] (grub_debug_free): New function.
14816 [MM_DEBUG] (grub_debug_realloc): New function.
14817 [MM_DEBUG] (grub_debug_memalign): New function.
14819 * kern/misc.c (grub_abort): Print a newline to distinguish
14822 * kern/main.c (grub_main): Call grub_machine_set_prefix and
14823 grub_set_root_dev after loading modules. This is necessary when
14824 setting a prefix depends on modules.
14826 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
14827 (grub_efi_print_device_path): ... this.
14828 (grub_efi_get_filename): New prototype.
14829 (grub_efi_set_prefix): Likewise.
14831 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
14833 (grub_efidisk_get_device_handle): New prototype.
14834 (grub_efidisk_get_device_name): Likewise.
14836 * include/grub/mm.h: Include config.h.
14837 (MM_DEBUG): Removed.
14838 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
14839 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
14840 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
14841 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
14842 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
14843 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
14844 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
14845 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
14846 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
14848 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
14850 * disk/efi/efidisk.c: Include grub/partition.h.
14851 (iterate_child_devices): New function.
14852 (add_device): First, compare only last device path nodes, so that
14853 devices are sorted by the types.
14854 (grub_efidisk_get_device_handle): New function.
14855 (grub_efidisk_get_device_name): Likewise.
14857 * configure.ac (--enable-mm-debug): New option to enable the
14858 memory manager debugging feature. This makes the binary much
14859 bigger, so is disabled by default.
14861 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
14863 Use grub_abort instead of grub_stop, and grub_exit must be
14864 define in each architecture now. Also, this change adds support
14867 * util/i386/pc/grub-probefs.c: Include grub/term.h.
14868 (grub_getkey): New function.
14869 (grub_term_get_current): Likewise.
14871 * util/i386/pc/grub-setup.c: Include grub/term.h.
14872 (grub_getkey): New function.
14873 (grub_term_get_current): Likewise.
14875 * util/misc.c (grub_stop): Renamed to ...
14876 (grub_exit): ... this.
14878 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
14879 (grub_exit): ... this.
14880 (grub_machine_init): Use grub_abort instead of abort.
14881 (grub_stop): Removed.
14883 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
14886 * kern/i386/pc/startup.S (grub_exit): New function.
14887 (cold_reboot): New label.
14889 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
14890 (grub_efi_init): Call grub_efidisk_init.
14891 (grub_efi_fini): Call grub_efidisk_fini.
14893 * kern/efi/efi.c: Include grub/mm.h.
14894 (grub_efi_console_control_guid): Renamed to ...
14895 (console_control_guid): ... this.
14896 (grub_efi_loaded_image_guid): Renamed to ...
14897 (loaded_image_guid): ... this.
14898 (grub_efi_locate_handle): New function.
14899 (grub_efi_open_protocol): Likewise.
14900 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
14901 GRUB_EFI_CONSOLE_CONTROL_GUID.
14902 (grub_efi_exit): Removed.
14903 (grub_stop): Likewise.
14904 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
14905 (grub_exit): New function.
14906 (grub_print_device_path): Likewise.
14908 * kern/rescue.c (grub_rescue_cmd_exit): New function.
14909 (grub_enter_rescue_mode): Register "exit".
14911 * kern/misc.c (grub_real_dprintf): A cosmetic change.
14912 (grub_abort): New function.
14914 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
14916 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
14918 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
14920 * include/grub/efi/efi.h (grub_efi_exit): Removed.
14921 (grub_print_device_path): New prototype.
14922 (grub_efi_locate_handle): Likewise.
14923 (grub_efi_open_protocol): Likewise.
14925 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
14926 * disk/efi/efidisk.c: Likewise.
14928 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
14930 * include/grub/efi/console_control.h
14931 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
14933 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
14934 last 8 bytes as an array.
14935 (GRUB_EFI_DISK_IO_GUID): New macro.
14936 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
14937 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
14938 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
14940 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
14941 (struct grub_efi_device_path): Rename the member "sub_type" to
14943 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
14944 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
14945 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
14946 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
14947 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
14948 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
14949 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
14950 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
14951 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
14952 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
14953 (struct grub_efi_pci_device_path): New structure.
14954 (grub_efi_pci_device_path_t): New type.
14955 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
14956 (struct grub_efi_pccard_device_path): New structure.
14957 (grub_efi_pccard_device_path_t): New type.
14958 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
14959 (struct grub_efi_memory_mapped_device_path): New structure.
14960 (grub_efi_memory_mapped_device_path_t): New type.
14961 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
14962 (struct grub_efi_vendor_device_path): New structure.
14963 (grub_efi_vendor_device_path_t): New type.
14964 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
14965 (struct grub_efi_controller_device_path): New structure.
14966 (grub_efi_controller_device_path_t): New type.
14967 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
14968 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
14969 (struct grub_efi_acpi_device_path): New structure.
14970 (grub_efi_acpi_device_path_t): New type.
14971 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
14972 (struct grub_efi_expanded_acpi_device_path): New structure.
14973 (grub_efi_expanded_acpi_device_path_t): New type.
14974 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
14975 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
14976 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
14977 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
14978 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
14979 (struct grub_efi_atapi_device_path): New structure.
14980 (grub_efi_atapi_device_path_t): New type.
14981 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
14982 (struct grub_efi_fibre_channel_device_path): New structure.
14983 (grub_efi_fibre_channel_device_path_t): New type.
14984 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
14985 (struct grub_efi_1394_device_path): New structure.
14986 (grub_efi_1394_device_path_t): New type.
14987 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
14988 (struct grub_efi_usb_device_path): New structure.
14989 (grub_efi_usb_device_path_t): New type.
14990 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
14991 (struct grub_efi_usb_class_device_path): New structure.
14992 (grub_efi_usb_class_device_path_t): New type.
14993 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
14994 (struct grub_efi_i2o_device_path): New structure.
14995 (grub_efi_i2o_device_path_t): New type.
14996 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
14997 (struct grub_efi_mac_address_device_path): New structure.
14998 (grub_efi_mac_address_device_path_t): New type.
14999 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
15000 (struct grub_efi_ipv4_device_path): New structure.
15001 (grub_efi_ipv4_device_path_t): New type.
15002 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
15003 (struct grub_efi_ipv6_device_path): New structure.
15004 (grub_efi_ipv6_device_path_t): New type.
15005 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
15006 (struct grub_efi_infiniband_device_path): New structure.
15007 (grub_efi_infiniband_device_path_t): New type.
15008 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
15009 (struct grub_efi_uart_device_path): New structure.
15010 (grub_efi_uart_device_path_t): New type.
15011 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
15012 (struct grub_efi_vendor_messaging_device_path): New structure.
15013 (grub_efi_vendor_messaging_device_path_t): New type.
15014 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
15015 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
15016 (struct grub_efi_hard_drive_device_path): New structure.
15017 (grub_efi_hard_drive_device_path_t): New type.
15018 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
15019 (struct grub_efi_cdrom_device_path): New structure.
15020 (grub_efi_cdrom_device_path_t): New type.
15021 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
15022 (struct grub_efi_vendor_media_device_path): New structure.
15023 (grub_efi_vendor_media_device_path_t): New type.
15024 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
15025 (struct grub_efi_file_path_device_path): New structure.
15026 (grub_efi_file_path_device_path_t): New type.
15027 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
15028 (struct grub_efi_protocol_device_path): New structure.
15029 (grub_efi_protocol_device_path_t): New type.
15030 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
15031 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
15032 (struct grub_efi_bios_device_path): New structure.
15033 (grub_efi_bios_device_path_t): New type.
15034 (struct grub_efi_disk_io): New structure.
15035 (grub_efi_disk_io_t): New type.
15036 (struct grub_efi_block_io_media): New structure.
15037 (grub_efi_block_io_media_t): New type.
15038 (struct grub_efi_block_io): New structure.
15039 (grub_efi_block_io_t): New type.
15041 * include/grub/misc.h (grub_stop): Removed.
15042 (grub_exit): New prototype.
15043 (grub_abort): Likewise.
15045 * include/grub/disk.h (enum grub_disk_dev_id): Added
15046 GRUB_DISK_DEVICE_EFIDISK_ID.
15048 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
15049 disk/efi/efidisk.c.
15050 (kernel_syms.lst): Remove the target if an error occurs.
15052 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
15054 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
15055 as it was simply too buggy.
15057 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
15059 * kern/misc.c (grub_lltoa): New function.
15060 (grub_vsprintf): Added support for the long long suffix,
15063 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
15065 * Makefile.in (LDFLAGS): Add variable.
15066 (LD): Remove variable.
15067 * configure.ac: Add -m32 to LDFLAGS.
15068 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
15069 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
15070 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
15071 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
15072 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
15074 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
15075 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
15076 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
15078 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
15080 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
15081 length for unknown glyph.
15083 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15085 Add support for pre-loaded modules into the EFI port.
15087 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
15088 completely. Accept one more argument DIR. The caller has changed.
15090 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
15092 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
15093 (grub_efi_loaded_image_guid): New variable.
15094 (grub_efi_get_loaded_image): New function.
15095 (grub_arch_modules_addr): Likewise.
15097 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
15100 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
15101 (struct grub_efi_loaded_image): New structure.
15102 (grub_efi_loaded_image_t): New type.
15104 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15106 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
15107 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
15108 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
15110 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
15112 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
15114 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
15116 * DISTLIST: Added include/grub/efi/console.h,
15117 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
15118 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15120 * include/grub/efi/console.h: New file.
15121 * include/grub/efi/time.h: Likewise.
15122 * include/grub/i386/efi/kernel.h: Likewise.
15123 * kern/efi/init.c: Likewise.
15124 * kern/efi/mm.c: Likewise.
15125 * term/efi/console.c: Likewise.
15127 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
15128 (grub_stop): Removed.
15129 (grub_get_rtc): Likewise.
15130 (grub_machine_init): Simply call grub_efi_init.
15131 (grub_machine_fini): Call grub_efi_fini.
15133 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15134 (grub_efi_output_string): Removed.
15135 (grub_efi_stall): New function.
15136 (grub_stop): Likewise.
15137 (grub_get_rtc): Likewise.
15139 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15140 (grub_efi_stall): New prototype.
15141 (grub_efi_allocate_pages): Likewise.
15142 (grub_efi_free_pages): Likewise.
15143 (grub_efi_get_memory_map): Likewise.
15144 (grub_efi_mm_init): Likewise.
15145 (grub_efi_mm_fini): Likewise.
15146 (grub_efi_init): Likewise.
15147 (grub_efi_fini): Likewise.
15149 * include/grub/i386/efi/time.h: Do not include
15150 grub/symbol.h. Include grub/efi/time.h.
15151 (GRUB_TICKS_PER_SECOND): Removed.
15152 (grub_get_rtc): Likewise.
15154 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15155 Added padding. The EFI spec is buggy.
15156 (GRUB_EFI_BLACK): New macro.
15157 (GRUB_EFI_BLUE): Likewise.
15158 (GRUB_EFI_GREEN): Likewise.
15159 (GRUB_EFI_CYAN): Likewise.
15160 (GRUB_EFI_RED): Likewise.
15161 (GRUB_EFI_MAGENTA): Likewise.
15162 (GRUB_EFI_BROWN): Likewise.
15163 (GRUB_EFI_LIGHTGRAY): Likewise.
15164 (GRUB_EFI_BRIGHT): Likewise.
15165 (GRUB_EFI_DARKGRAY): Likewise.
15166 (GRUB_EFI_LIGHTBLUE): Likewise.
15167 (GRUB_EFI_LIGHTGREEN): Likewise.
15168 (GRUB_EFI_LIGHTCYAN): Likewise.
15169 (GRUB_EFI_LIGHTRED): Likewise.
15170 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15171 (GRUB_EFI_YELLOW): Likewise.
15172 (GRUB_EFI_WHITE): Likewise.
15173 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15174 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15175 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15176 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15177 (GRUB_EFI_BACKGROUND_RED): Likewise.
15178 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
15179 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
15180 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
15181 (GRUB_EFI_TEXT_ATTR): Likewise.
15183 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
15184 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15185 (kernel_mod_HEADERS): Added efi/time.h.
15187 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
15189 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
15190 include/grub/efi/api.h, include/grub/efi/console_control.h,
15191 include/grub/efi/efi.h, include/grub/efi/pe32.h,
15192 include/grub/i386/efi/time.h, kern/efi/efi.c,
15193 kern/i386/efi/init.c, kern/i386/efi/startup.S,
15194 and util/i386/efi/grub-mkimage.c.
15196 * Makefile.in (RMKFILES): Added i386-efi.rmk.
15198 * genmk.rb (PModule#rule): Do not export symbols if
15199 #{prefix}_EXPORTS is set to "no".
15201 * conf/i386-efi.mk: New file.
15202 * conf/i386-efi.rmk: Likewise.
15203 * include/grub/efi/api.h: Likewise.
15204 * include/grub/efi/console_control.h: Likewise.
15205 * include/grub/efi/efi.h: Likewise.
15206 * include/grub/efi/pe32.h: Likewise.
15207 * include/grub/i386/efi/time.h: Likewise.
15208 * kern/efi/efi.c: Likewise.
15209 * kern/i386/efi/init.c: Likewise.
15210 * kern/i386/efi/startup.S: Likewise.
15211 * util/i386/efi/grub-mkimage.c: Likewise.
15213 2006-04-17 Marco Gerards <marco@gnu.org>
15215 * include/grub/script.h: Include <grub/parser.h> and
15216 "grub_script.tab.h".
15217 (struct grub_lexer_param): New struct.
15218 (struct grub_parser_param): Likewise.
15219 (grub_script_create_arglist): Pass the state in an argument.
15220 (grub_script_add_arglist): Likewise.
15221 (grub_script_create_cmdline): Likewise.
15222 (grub_script_create_cmdblock): Likewise.
15223 (grub_script_create_cmdif): Likewise.
15224 (grub_script_create_cmdmenu): Likewise.
15225 (grub_script_add_cmd): Likewise.
15226 (grub_script_arg_add): Likewise.
15227 (grub_script_lexer_ref): Likewise.
15228 (grub_script_lexer_deref): Likewise.
15229 (grub_script_lexer_record_start): Likewise.
15230 (grub_script_lexer_record_stop): Likewise.
15231 (grub_script_mem_record): Likewise.
15232 (grub_script_mem_record_stop): Likewise.
15233 (grub_script_malloc): Likewise.
15234 (grub_script_yylex): Likewise.
15235 (grub_script_yyparse): Likewise.
15236 (grub_script_yyerror): Likewise.
15237 (grub_script_yylex): Likewise.
15238 (grub_script_lexer_init): Return the state.
15240 * normal/lexer.c (grub_script_lexer_state): Removed variable.
15241 (grub_script_lexer_done): Likewise.
15242 (grub_script_lexer_getline): Likewise.
15243 (grub_script_lexer_refs): Likewise.
15244 (script): Likewise.
15245 (newscript): Likewise.
15246 (record): Likewise.
15247 (recording): Likewise.
15248 (recordpos): Likewise.
15249 (recordlen): Likewise.
15250 (grub_script_lexer_init): Return the state instead of setting
15252 (grub_script_lexer_ref): Use the newly added argument for state
15253 instead of globals.
15254 (grub_script_lexer_deref): Likewise.
15255 (grub_script_lexer_record_start): Likewise.
15256 (grub_script_lexer_record_stop): Likewise.
15257 (recordchar): Likewise.
15258 (nextchar): Likewise.
15259 (grub_script_yylex2): Likewise.
15260 (grub_script_yylex): Likewise.
15261 (grub_script_yyerror): Likewise.
15263 * normal/parser.y (func_mem): Removed variable.
15264 (menu_entry): Likewise.
15266 (%lex-param): New parser option.
15267 (%parse-param): Likewise.
15268 (script): Always return the AST.
15269 (argument): Pass the state around.
15270 (arguments): Likewise.
15271 (grubcmd): Likewise.
15272 (commands): Likewise.
15273 (function): Likewise.
15274 (menuentry): Likewise.
15275 (if_statement): Likewise.
15278 * normal/script.c (grub_script_memused): Removed variable.
15279 (grub_script_parsed): Likewise.
15280 (grub_script_malloc): Added a state argument. Use that instead of
15282 (grub_script_mem_record): Likewise.
15283 (grub_script_mem_record_stop): Likewise.
15284 (grub_script_arg_add): Likewise.
15285 (grub_script_add_arglist): Likewise.
15286 (grub_script_create_cmdline): Likewise.
15287 (grub_script_create_cmdif): Likewise.
15288 (grub_script_create_cmdmenu): Likewise.
15289 (grub_script_add_cmd): Likewise.
15290 (grub_script_parse): Setup the state before calling the parser.
15292 2006-04-16 Marco Gerards <marco@gnu.org>
15294 * normal/command.c (grub_command_init): Remove the title command.
15296 * normal/lexer.c (grub_script_yylex): Renamed from this...
15297 (grub_script_yylex2): ... to this.
15298 (grub_script_yylex): New function. Temporary
15299 introduced to filter some tokens.
15300 (grub_script_yyerror): Print a newline.
15302 * normal/main.c (read_config_file): Output information about the
15303 lines that contain errors. Wait for a key after all lines have
15304 been processed. Don't return an empty menu.
15306 * normal/parser.y (func_mem): Don't initialize.
15307 (menu_entry): Likewise.
15308 (err): New variable.
15309 (script): Don't return anything when an error was encountered.
15310 (ws, returns): Removed rules.
15311 (argument): Disabled concatenated variable support.
15312 (arguments): Remove explicit separators.
15313 (grubcmd): Likewise.
15314 (function): Likewise.
15315 (menuentry): Likewise.
15317 (commands): Likewise. Add error handling.
15319 * normal/script.c (grub_script_create_cmdline): If
15320 `grub_script_parsed' is 0, assume the parser encountered an error.
15322 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
15324 * configure.ac: Add support for EFI. Fix the typo
15325 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
15327 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15329 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
15330 foreign multibyte characters should be shown correctly.
15332 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15334 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
15336 (read_config_file): Made it to close file before returning.
15338 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
15340 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
15341 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
15342 video/i386/pc/vbefill.c.
15344 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
15345 video/i386/pc/vbefill.c.
15347 * include/grub/video.h (grub_video_blit_format): New enum.
15348 (grub_video_mode_info): Added new member blit_format.
15349 (grub_video_get_blit_format): New function prototype.
15351 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
15352 function prototype.
15353 (grub_video_vbe_map_rgb): Likewise.
15354 (grub_video_vbe_unmap_color): Likewise.
15356 * include/grub/i386/pc/vbeblit.h: New file.
15358 * include/grub/i386/pc/vbefill.h: New file.
15360 * video/video.c (grub_video_get_blit_format): New function.
15361 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
15362 (grub_video_vbe_map_rgb): Likewise.
15363 (grub_video_vbe_unmap_color): Likewise.
15365 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
15367 (grub_video_vbe_blit_render_target): Changed to use more optimized
15369 (grub_video_vbe_setup): Added detection for optimized settings.
15370 (grub_video_vbe_create_render_target): Likewise.
15372 * video/i386/pc/vbeblit.c: New file.
15374 * video/i386/pc/vbefill.c: New file.
15376 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
15378 * font/manager.c (grub_font_get_glyph): Removed font fixup from
15381 * util/unifont2pff.rb: ... and moved it to here. Improved argument
15382 parsing to support both hex and dec ranges. If filename was missing
15383 show usage information.
15385 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
15387 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
15388 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
15390 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
15391 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
15392 (video_mod_SOURCES): Added.
15393 (video_mod_CFLAGS): Likewise.
15394 (video_mod_LDFLAGS): Likewise.
15395 (gfxterm_mod_SOURCES): Likewise.
15396 (gfxterm_mod_CFLAGS): Likewise.
15397 (gfxterm_mod_LDFLAGS): Likewise.
15398 (videotest_mod_SOURCES): Likewise.
15399 (videotest_mod_CFLAGS): Likewise.
15400 (videotest_mod_LDFLAGS): Likewise.
15401 (vesafb_mod_SOURCES): Removed.
15402 (vesafb_mod_CFLAGS): Likewise.
15403 (vesafb_mod_LDFLAGS): Likewise.
15404 (vga_mod_SOURCES): Likewise.
15405 (vga_mod_CFLAGS): Likewise.
15406 (vga_mod_LDFLAGS): Likewise.
15408 * commands/videotest.c: New file.
15410 * font/manager.c (fill_with_default_glyph): Modified to use
15412 (grub_font_get_glyph): Likewise.
15413 (fontmanager): Renamed from this...
15414 (font_manager): ... to this.
15416 * include/grub/font.h (grub_font_glyph): Added new structure.
15417 (grub_font_get_glyph): Modified to use grub_font_glyph.
15419 * include/grub/misc.h (grub_abs): Added as inline function.
15421 * include/grub/video.h: New file.
15423 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
15424 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
15425 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
15426 (grub_vbe_get_controller_info): Renamed from this...
15427 (grub_vbe_bios_get_controller_info): ... to this.
15428 (grub_vbe_get_mode_info): Renamed from this...
15429 (grub_vbe_bios_get_mode_info): ... to this.
15430 (grub_vbe_set_mode): Renamed from this...
15431 (grub_vbe_bios_set_mode): ... to this.
15432 (grub_vbe_get_mode): Renamed from this...
15433 (grub_vbe_bios_get_mode): ... to this.
15434 (grub_vbe_set_memory_window): Renamed from this...
15435 (grub_vbe_bios_set_memory_window): ... to this.
15436 (grub_vbe_get_memory_window): Renamed from this...
15437 (grub_vbe_bios_get_memory_window): ... to this.
15438 (grub_vbe_set_scanline_length): Renamed from this...
15439 (grub_vbe_set_scanline_length): ... to this.
15440 (grub_vbe_get_scanline_length): Renamed from this...
15441 (grub_vbe_bios_get_scanline_length): ... to this.
15442 (grub_vbe_set_display_start): Renamed from this...
15443 (grub_vbe_bios_set_display_start): ... to this.
15444 (grub_vbe_get_display_start): Renamed from this...
15445 (grub_vbe_bios_get_display_start): ... to this.
15446 (grub_vbe_set_palette_data): Renamed from this...
15447 (grub_vbe_bios_set_palette_data): ... to this.
15448 (grub_vbe_set_pixel_rgb): Removed.
15449 (grub_vbe_set_pixel_index): Likewise.
15451 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
15453 (grub_vbe_bios_get_controller_info): ... to this.
15454 (grub_vbe_get_mode_info): Renamed from this...
15455 (grub_vbe_bios_get_mode_info): ... to this.
15456 (grub_vbe_set_mode): Renamed from this...
15457 (grub_vbe_bios_set_mode): ... to this.
15458 (grub_vbe_get_mode): Renamed from this...
15459 (grub_vbe_bios_get_mode): ... to this.
15460 (grub_vbe_set_memory_window): Renamed from this...
15461 (grub_vbe_bios_set_memory_window): ... to this.
15462 (grub_vbe_get_memory_window): Renamed from this...
15463 (grub_vbe_bios_get_memory_window): ... to this.
15464 (grub_vbe_set_scanline_length): Renamed from this...
15465 (grub_vbe_set_scanline_length): ... to this.
15466 (grub_vbe_get_scanline_length): Renamed from this...
15467 (grub_vbe_bios_get_scanline_length): ... to this.
15468 (grub_vbe_set_display_start): Renamed from this...
15469 (grub_vbe_bios_set_display_start): ... to this.
15470 (grub_vbe_get_display_start): Renamed from this...
15471 (grub_vbe_bios_get_display_start): ... to this.
15472 (grub_vbe_set_palette_data): Renamed from this...
15473 (grub_vbe_bios_set_palette_data): ... to this.
15474 (grub_vbe_bios_get_controller_info): Fixed problem with registers
15475 getting corrupted after calling it. Added more pushes and pops.
15476 (grub_vbe_bios_set_mode): Likewise.
15477 (grub_vbe_bios_get_mode): Likewise.
15478 (grub_vbe_bios_get_memory_window): Likewise.
15479 (grub_vbe_bios_set_scanline_length): Likewise.
15480 (grub_vbe_bios_get_scanline_length): Likewise.
15481 (grub_vbe_bios_get_display_start): Likewise.
15482 (grub_vbe_bios_set_palette_data): Likewise.
15484 * normal/cmdline.c (cl_set_pos): Refresh the screen.
15485 (cl_insert): Likewise.
15486 (cl_delete): Likewise.
15488 * term/gfxterm.c: New file.
15490 * term/i386/pc/vesafb.c: Removed file.
15492 * video/video.c: New file.
15494 * video/i386/pc/vbe.c (real2pm): Added new function.
15495 (grub_video_vbe_draw_pixel): Likewise.
15496 (grub_video_vbe_get_video_ptr): Likewise.
15497 (grub_video_vbe_get_pixel): Likewise
15498 (grub_video_vbe_init): Likewise.
15499 (grub_video_vbe_fini): Likewise.
15500 (grub_video_vbe_setup): Likewise.
15501 (grub_video_vbe_get_info): Likewise.
15502 (grub_video_vbe_set_palette): Likewise.
15503 (grub_video_vbe_get_palette): Likewise.
15504 (grub_video_vbe_set_viewport): Likewise.
15505 (grub_video_vbe_get_viewport): Likewise.
15506 (grub_video_vbe_map_color): Likewise.
15507 (grub_video_vbe_map_rgb): Likewise.
15508 (grub_video_vbe_map_rgba): Likewise.
15509 (grub_video_vbe_unmap_color): Likewise.
15510 (grub_video_vbe_fill_rect): Likewise.
15511 (grub_video_vbe_blit_glyph): Likewise.
15512 (grub_video_vbe_blit_bitmap): Likewise.
15513 (grub_video_vbe_blit_render_target): Likewise.
15514 (grub_video_vbe_scroll): Likewise.
15515 (grub_video_vbe_swap_buffers): Likewise.
15516 (grub_video_vbe_create_render_target): Likewise.
15517 (grub_video_vbe_delete_render_target): Likewise.
15518 (grub_video_vbe_set_active_render_target): Likewise.
15519 (grub_vbe_set_pixel_rgb): Remove function.
15520 (grub_vbe_set_pixel_index): Likewise.
15521 (index_color_mode): Remove static variable.
15522 (active_mode): Likewise.
15523 (framebuffer): Likewise.
15524 (bytes_per_scan_line): Likewise.
15525 (grub_video_vbe_adapter): Added new static variable.
15526 (framebuffer): Likewise.
15527 (render_target): Likewise.
15528 (initial_mode): Likewise.
15529 (mode_in_use): Likewise.
15530 (mode_list): Likewise.
15532 2006-03-10 Marco Gerards <marco@gnu.org>
15534 * configure.ac (AC_INIT): Bumped to 1.93.
15536 * DISTLIST: Added `include/grub/hfs.h'.
15538 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
15540 * boot/i386/pc/boot.S (general_error): Before looping, try INT
15541 18H, which might help the BIOS falling back to next boot media.
15543 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
15545 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
15546 Poe Chen <poe.poechen@gmail.com>.
15548 2006-01-17 Marco Gerards <marco@gnu.org>
15550 * include/grub/normal.h: Include <grub/script.h>.
15551 (grub_command_list): Removed struct.
15552 (grub_command_list_t): Removed type.
15553 (grub_menu_entry): Remove members `num' and `command_list'. Add
15554 members `commands' and `sourcecode'.
15555 * include/grub/script.h: Add inclusion guards.
15556 (grub_script_cmd_menuentry): New struct.
15557 (grub_script_execute_menuentry): New prototype.
15558 (grub_script_lexer_record_start): Likewise.
15559 (grub_script_lexer_record_stop): Likewise.
15560 * normal/execute.c (grub_script_execute_menuentry): New function.
15561 * normal/lexer.c (record, recording, recordpos, recordlen): New
15563 (grub_script_lexer_record_start): New function.
15564 (grub_script_lexer_record_stop): Likewise.
15565 (recordchar): Likewise.
15566 (nextchar): Likewise.
15567 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
15568 2048 as the buffer size. Add the tokens `menuentry' and `@'.
15569 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
15570 (current_menu): New variable.
15571 (free_menu): Mainly rewritten.
15572 (grub_normal_menu_addentry): New function.
15573 (read_config_file): Rewritten.
15574 * normal/menu.c (run_menu_entry): Mainly rewritten.
15575 * normal/menu_entry.c (make_screen): Rewritten the code to insert
15577 (run): Mainly rewritten.
15578 * normal/parser.y (menu_entry): New variable.
15579 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
15580 (menuentry): New rule.
15581 (command): Add `menuentry'.
15582 (if_statement): Allow additional returns before `fi'.
15583 * normal/script.c (grub_script_create_cmdmenu): New function.
15585 2006-01-03 Marco Gerards <marco@gnu.org>
15587 * INSTALL: GNU Bison is required.
15588 * configure.ac: Rewritten the test to detect Bison.
15589 * Makefile.in (YACC): New variable. Reported by Xun Sun
15590 <xun.sun.cn@gmail.com>.
15592 2006-01-03 Marco Gerards <marco@gnu.org>
15594 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
15595 the HFS+ filesystem to filesystem blocks.
15596 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
15597 GCC warning is silenced.
15599 2006-01-03 Marco Gerards <marco@gnu.org>
15601 * partmap/apple.c (apple_partition_map_iterate): Convert the data
15602 read from disk from big endian to host byte order.
15604 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
15606 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
15608 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
15609 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
15610 embedded HFS+ filesystem.
15611 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
15612 (grub_hfs_sblock): Move from here...
15613 * include/grub/hfs.h: To here... New file.
15614 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
15616 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
15618 (grub_hfsplus_volheader): Change type of member `magic' to
15620 (grub_hfsplus_data): Add new member `embedded_offset'.
15621 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
15623 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
15624 Calculate the offset.
15626 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15628 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
15630 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
15632 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15634 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
15635 ENV->NAME is NULL after allocating ENV->VALUE.
15637 2005-12-25 Marco Gerards <marco@gnu.org>
15639 * kern/env.c (grub_env_set): Rewritten the error handling code.
15641 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15643 * geninit.sh: Made more robust, and more portable.
15645 2005-12-25 Marco Gerards <marco@gnu.org>
15647 Add support for Apple HFS+ filesystems.
15649 * fs/hfsplus.c: New file.
15651 * DISTLIST: Added `fs/hfsplus.c'.
15653 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
15654 (hfsplus_mod_SOURCES): New variable.
15655 (hfsplus_mod_CFLAGS): Likewise.
15656 (hfsplus_mod_LDFLAGS): Likewise.
15657 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
15658 (grub_setup_SOURCES): Likewise.
15659 (grub_mkdevicemap_SOURCES): Likewise.
15660 (grub_emu_SOURCES): Likewise.
15661 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15663 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
15665 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
15667 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15669 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
15670 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
15671 include/grub/parser.h, include/grub/script.h, kern/parser.c,
15672 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
15673 normal/lexer.c, normal/parser.y, normal/script.c, and
15675 Removed kern/sparc64/cache.c.
15677 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
15678 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
15681 * configure.ac (AC_INIT): Bumped to 1.92.
15683 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
15685 * kern/err.c (grub_error_push): Added new function to support error
15687 (grub_error_pop): Likewise.
15688 (grub_error_stack_items): New local variable to support error stacks.
15689 (grub_error_stack_pos): Likewise.
15690 (grub_error_stack_assert): Likewise.
15691 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
15693 (grub_print_error): Added support to print errors from error stack.
15695 * include/grub/err.h (grub_error_push): Added function prototype.
15696 (grub_error_pop): Likewise.
15698 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
15700 * configure.ac: Accept `powerpc64' as host_cpu.
15701 (amd64): Rename to `biarch32'.
15703 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
15704 non-cacheline-aligned addresses.
15706 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
15707 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
15708 if `size' is non-zero.
15710 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
15712 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
15713 and `cd' to make sure the filename is not prefixed with a
15715 (pkgdata_MODULES): Add `gpt.mod'.
15716 (gpt_mod_SOURCES): New variable.
15717 (gpt_mod_CFLAGS): Likewise.
15718 (gpt_mod_LDFLAGS): Likewise.
15720 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
15722 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
15725 * partmap/gpt.c: New file.
15727 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
15728 GPT partition map is detected.
15730 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
15732 * commands/i386/pc/play.c: New file.
15733 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
15734 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
15737 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
15739 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
15740 ((unused))' to silence gcc warning.
15742 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
15744 * configure.ac: Correct `AC_PROG_YACC' test.
15746 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15748 * util/powerpc/ieee1275/grub-install.in: Run the mount point
15749 check before installing files.
15751 2005-11-22 Mike Small <smallm@panix.com>
15753 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
15754 number regex so multidigit numbers are recognized correctly.
15756 2005-11-22 Mike Small <smallm@panix.com>
15758 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
15759 debugging message before attempting to claim memory.
15760 (grub_rescue_cmd_initrd): Add a claim debugging message and try
15761 multiple addresses in case of failure.
15763 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15765 * term/tparm.c (get_space): Remove empty `if' statement.
15767 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
15769 * kern/parser.c (check_varstate): Rename `state' to 's'.
15771 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15773 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
15774 variable definitions to the beginning of each function. Sort stack
15776 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
15777 `buf' argument to `char *'.
15779 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15781 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
15782 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
15783 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
15784 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
15785 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
15786 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
15787 configfile.mod, search.mod, gzio.mod and test.mod.
15788 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
15789 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
15790 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
15791 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
15792 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
15793 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
15794 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
15795 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
15796 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
15797 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
15798 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
15799 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
15800 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
15801 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
15802 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
15803 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
15804 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
15805 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
15806 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
15807 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
15808 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
15809 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
15810 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
15812 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
15814 (pkgdata_MODULES): Add test.mod.
15816 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
15818 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
15819 appending to variables with "+=".
15820 (PModule): Use full pathname to generate *.lst filenames.
15822 * Makefile.in: Fixed list rules moved from genmk.rb.
15823 (.DELETE_ON_ERROR): New special target.
15824 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
15826 * conf/i386-pc.rmk: Include conf/common.mk.
15827 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
15828 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
15829 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
15830 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
15831 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
15832 configfile.mod, search.mod, gzio.mod and test.mod.
15833 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
15834 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
15835 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
15836 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
15837 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
15838 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
15839 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
15840 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
15841 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
15842 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
15843 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
15844 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
15845 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
15846 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
15847 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
15848 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
15849 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
15850 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
15851 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
15852 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
15853 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
15854 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
15855 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
15857 * conf/common.rmk: ... to here. New file.
15859 * conf/common.mk: New file.
15861 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
15863 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
15864 (grub_script.tab.c): ... here.
15866 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
15867 (grub_script.tab.c): ... here.
15869 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
15870 (grub_script.tab.c): ... here.
15872 * normal/command.c (grub_command_find): Fixed a memory leak of
15873 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
15875 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
15877 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
15878 "@" which marks the start of a comment on ARM.
15879 (VARIABLE): Likewise.
15881 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
15883 Add support for Linux/ADFS partition tables.
15885 * partmap/acorn.c: New file.
15887 * include/grub/acorn_filecore.h: Likewise.
15889 * DISTLIST: Added `partmap/acorn.c' and
15890 `include/grub/acorn_filecore.h'.
15892 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
15894 (pkgdata_MODULES): Add `acorn.mod'.
15895 (acorn_mod_SOURCES): New variable.
15896 (acorn_mod_CFLAGS): Likewise.
15898 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
15900 (pkgdata_MODULES): Add `acorn.mod'.
15901 (acorn_mod_SOURCES): New variable.
15902 (acorn_mod_CFLAGS): Likewise.
15904 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
15905 (pkgdata_MODULES): Add `acorn.mod'.
15906 (acorn_mod_SOURCES): New variable.
15907 (acorn_mod_CFLAGS): Likewise.
15908 (acorn_mod_LDFLAGS): Likewise.
15910 * include/types.h (grub_disk_addr_t): New typedef.
15912 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
15914 * geninit.sh: New file.
15916 * geninitheader.sh: Likewise.
15918 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
15919 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
15920 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
15921 * commands/configfile.c (grub_configfile_init)
15922 (grub_configfile_fini): Likewise.
15923 * commands/default.c (grub_default_init, grub_default_fini):
15925 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
15926 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
15927 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
15928 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
15930 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
15931 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
15933 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
15934 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
15936 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
15938 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
15940 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
15941 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
15942 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
15943 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
15944 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
15945 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
15946 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
15947 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
15948 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
15949 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
15950 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
15951 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
15952 * partmap/amiga.c (grub_amiga_partition_map_init)
15953 (grub_amiga_partition_map_fini): Likewise.
15954 * partmap/apple.c (grub_apple_partition_map_init)
15955 (grub_apple_partition_map_fini): Likewise.
15956 * partmap/pc.c (grub_pc_partition_map_init)
15957 (grub_pc_partition_map_fini): Likewise.
15958 * partmap/sun.c (grub_sun_partition_map_init,
15959 grub_sun_partition_map_fini): Likewise.
15960 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
15963 * util/grub-emu.c: Include <grub_modules_init.h>.
15964 (main): Don't initialize and de-initialize any modules directly,
15965 use `grub_init_all' and `grub_fini_all' instead.
15967 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
15968 `grub_vesafb_mod_init'.
15969 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
15971 * term/i386/pc/vga.c (grub_vga_init): Renamed to
15972 `grub_vga_mod_init'. Updated all users.
15973 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
15975 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
15976 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
15979 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
15980 Generate a function to initialize the module in utilities.
15981 Updated all callers.
15982 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
15983 initialize the module in utilities. Updated all callers.
15985 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
15987 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
15988 escape sequence and a literal ^L to clear the screen.
15990 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
15991 when returning from Open Firmware.
15993 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
15995 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
15996 (grub_ofconsole_height): Likewise.
15997 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
15998 manually insert a '\n'.
15999 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
16000 `grub_ofconsole_height'. Return early if these are already set.
16002 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
16004 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16005 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
16006 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
16007 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
16008 and `normal/script.c'.
16009 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16010 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16011 (test_mod_SOURCES): New variable.
16012 (test_mod_CFLAGS): Likewise.
16013 (test_mod_LDFLAGS): Likewise.
16014 (pkgdata_MODULES): Add `test.mod'.
16015 (grub_script.tab.c): New rule.
16016 (grub_script.tab.h): Likewise.
16018 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
16020 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16021 `commands/test.c', `normal/execute.c', `normal/lexer.c',
16022 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16023 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16024 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16025 (test_mod_SOURCES): New variable.
16026 (test_mod_CFLAGS): Likewise.
16027 (pkgdata_MODULES): Add `test.mod'.
16028 (grub_script.tab.c): New rule.
16029 (grub_script.tab.h): Likewise.
16031 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
16033 Add initial scripting support.
16035 * commands/test.c: New file.
16036 * include/grub/script.h: Likewise.
16037 * normal/execute.c: Likewise.
16038 * normal/function.c: Likewise.
16039 * normal/lexer.c: Likewise.
16040 * normal/parser.y: Likewise.
16041 * normal/script.c: Likewise.
16043 * configure.ac: Add `AC_PROG_YACC' test.
16045 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
16046 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
16047 `normal/function.c' and `normal/script.c'.
16048 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16049 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16050 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
16052 (pkgdata_MODULES): Add `test.mod'.
16053 (grub_script.tab.c): New rule.
16054 (grub_script.tab.h): Likewise.
16056 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
16058 * include/grub/normal.h (grub_test_init): New prototype.
16059 (grub_test_fini): Likewise.
16061 * normal/command.c: Include <grub/script.h>.
16062 (grub_command_execute): Rewritten.
16064 * util/grub-emu.c (main): Call `grub_test_init' and
16067 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16069 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
16071 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
16072 there are no pending characters.
16074 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16076 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
16077 `grub_strndup' to drop device arguments. Replace unnecessary
16078 `grub_strndup' with `grub_strdup'.
16080 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16082 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
16083 `debug' environment variable has been set.
16085 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
16087 * Makefile.in (install-local): Use $(DATA).
16088 (uninstall): Likewise.
16089 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
16090 (sbin_UTILITIES): ... to here.
16091 (sbin_SCRIPTS): New variable.
16092 (grub_install_SOURCES): New variable.
16093 * util/powerpc/ieee1275/grub-install.in: New file.
16094 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
16096 (add_segments): Call `grub_util_get_path'.
16098 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
16100 From Timothy Baldwin:
16101 * commands/ls.c (grub_ls_list_files): Close FILE with
16103 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
16105 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
16107 * include/grub/parser.h: New file.
16109 * kern/parser.c: Likewise.
16111 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
16112 (grub_setup_SOURCES): Likewise.
16113 (grub_probefs_SOURCES): Likewise.
16114 (grub_emu_SOURCES): Likewise.
16115 (kernel_img_HEADERS): Add `parser.h'.
16117 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16118 (grub_emu_SOURCES): Add `kern/parser.c'.
16119 (grubof_SOURCES): Likewise.
16121 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16122 (grubof_SOURCES): Add `kern/parser.c'.
16124 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
16126 * kern/misc.c (grub_split_cmdline): Removed function.
16128 * kern/rescue.c: Include <grub/parser.h>.
16129 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16130 of `grub_split_cmdline'.
16132 * normal/command.c: Include <grub/parser.h>.
16133 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16134 of `grub_split_cmdline'.
16136 * normal/completion.c: Include <grub/parser.h>.
16137 (cmdline_state): New variable.
16138 (iterate_dir): End the filename with a quote depending on the
16139 command line state.
16140 (get_state): new function.
16141 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16142 split the arguments and determine the current argument. When the
16143 argument string is not quoted, escape all spaces.
16145 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16147 * normal/sparc64/setjmp.S: New file.
16149 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16151 * include/grub/sparc64/libgcc.h: New file.
16152 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16153 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16154 normal/sparc64/setjmp.c.
16156 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16158 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16159 * kern/sparc64/cache.S: New file.
16160 * kern/sparc64/cache.c: Removed.
16161 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16162 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16164 (COMMON_LDFLAGS): Add -melf64_sparc.
16165 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16166 (grubof_SOURCES): Use cache.S instead of cache.c.
16167 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16168 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16169 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16171 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16172 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16173 (linux_mod_CFLAGS): Commented out.
16174 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16175 out because module isn't built.
16176 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16177 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16178 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
16179 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
16180 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
16181 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16182 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16183 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
16184 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
16185 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
16186 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16187 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16188 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
16189 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
16191 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
16193 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
16194 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
16195 longer, because HFS should not be used on PC.
16197 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16199 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
16200 consistently within the loop.
16202 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
16204 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
16205 directory can not be read.
16207 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16209 * configure.ac (AC_INIT): Increase the version number to 1.91.
16211 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
16212 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
16213 term/i386/pc/serial.c.
16215 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16217 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
16218 file size must be permitted.
16220 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
16221 between %ah and %al.
16223 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16225 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
16227 Call the hook with a NUL-terminated filename.
16228 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
16231 * kern/term.c (cursor_state): New variable.
16232 (grub_term_set_current): Reset the cursor state on a new
16234 (grub_setcursor): Rewritten to use CURSOR_STATE.
16235 (grub_getcursor): New function.
16237 * include/grub/term.h (grub_getcursor): New prototype.
16239 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
16240 integers on ARM. Reported by Timothy Baldwin
16241 <T.E.Baldwin99@members.leeds.ac.uk>.
16243 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
16245 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
16247 (grub_sfs_dir): Likewise.
16249 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
16251 Add support for the SFS filesystem.
16253 * fs/sfs.c: New file.
16255 * DISTLIST: Added `fs/sfs.c'.
16257 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
16258 (grub_probefs_SOURCES): Likewise.
16259 (grub_emu_SOURCES): Likewise.
16260 (pkgdata_MODULES): Add `sfs.mod'.
16261 (sfs_mod_SOURCES): New variable.
16262 (sfs_mod_CFLAGS): Likewise.
16263 (sfs_mod_LDFLAGS): Likewise.
16265 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
16266 (pkgdata_MODULES): Add `sfs.mod'.
16267 (sfs_mod_SOURCES): New variable.
16268 (sfs_mod_CFLAGS): Likewise.
16270 * util/grub-emu.c (main): Call `grub_sfs_init' and
16273 * include/grub/fs.h (grub_sfs_init): New prototype.
16274 (grub_sfs_fini): Likewise.
16276 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
16278 Add support for the AFFS filesystem.
16280 * fs/affs.c: New file.
16282 * DISTLIST: Added `fs/affs.c'.
16284 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
16285 (grub_probefs_SOURCES): Likewise.
16286 (grub_emu_SOURCES): Likewise.
16287 (pkgdata_MODULES): Add `affs.mod'.
16288 (affs_mod_SOURCES): New variable.
16289 (affs_mod_CFLAGS): Likewise.
16290 (affs_mod_LDFLAGS): Likewise.
16292 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
16293 (pkgdata_MODULES): Add `affs.mod'.
16294 (affs_mod_SOURCES): New variable.
16295 (affs_mod_CFLAGS): Likewise.
16297 * util/grub-emu.c (main): Call `grub_affs_init' and
16300 * include/grub/fs.h (grub_affs_init): New prototype.
16301 (grub_affs_fini): Likewise.
16303 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16305 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
16307 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16309 * configure.ac: Accept `x86_64' as host_cpu. In that case add
16312 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
16315 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
16316 (COMMON_LDFLAGS): New variable.
16317 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
16318 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
16319 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
16320 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
16321 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
16322 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
16323 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
16324 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
16325 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
16326 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
16327 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16328 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16329 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
16330 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
16331 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
16333 (normal_mod_ASFLAGS): Add `-m32'.
16335 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
16336 (grub_host_size_t, grub_host_ssize_t): New types.
16337 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
16338 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
16339 `GRUB_HOST_SIZEOF_VOID_P'.
16341 * include/grub/kernel.h (struct grub_module_header): Type of
16342 member offset changed to `grub_host_off_t'. Type of member size
16343 changed to `grub_host_size_t'.
16344 (struct grub_module_info): Type of member offset changed to
16345 `grub_host_off_t'. Type of member size changed to
16346 `grub_host_size_t'.
16348 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
16350 Make GRUB's kernel compliant to Multiboot Specification.
16352 * kern/i386/pc/startup.S (multiboot_header): New label.
16353 (multiboot_entry): Likewise.
16354 (multiboot_trampoline): Likewise.
16356 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16357 Increased to 0x4A0.
16359 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
16360 put parentheses after a question mark.
16361 [!GRUB_UTIL] (my_mod): New variable.
16363 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
16365 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
16367 Adds support for the XFS filesystem. Btrees are not supported
16370 * fs/xfs.c: New file.
16372 * DISTLIST: Added `fs/xfs.c'.
16374 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
16375 (grub_probefs_SOURCES): Likewise.
16376 (grub_emu_SOURCES): Likewise.
16377 (pkgdata_MODULES): Add `xfs.mod'.
16378 (xfs_mod_SOURCES): New variable.
16379 (xfs_mod_CFLAGS): Likewise.
16381 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
16382 (pkgdata_MODULES): Add `xfs.mod'.
16383 (xfs_mod_SOURCES): New variable.
16384 (xfs_mod_CFLAGS): Likewise.
16386 * util/grub-emu.c (main): Call `grub_xfs_init' and
16389 * include/grub/fs.h (grub_xfs_init): New prototype.
16390 (grub_xfs_fini): Likewise.
16393 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
16395 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
16396 color modes, allow greater than 16 colors to be configured as
16399 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
16401 * normal/completion.c (complete_arguments): Add the qualifier
16402 const into OPTIONS.
16404 From Omniflux <omniflux+lists@omniflux.com>:
16405 * include/grub/terminfo.h: New file.
16406 * include/grub/tparm.h: Likewise.
16407 * include/grub/i386/pc/serial.h: Likewise.
16408 * term/terminfo.c: Likewise.
16409 * term/tparm.c: Likewise.
16410 * term/i386/pc/serial.c: Likewise.
16411 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
16413 (terminfo_mod_SOURCES): New variable.
16414 (terminfo_mod_CFLAGS): Likewise.
16415 (serial_mod_SOURCES): Likewise.
16416 (serial_mod_CFLAGS): Likewise.
16418 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
16420 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
16421 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
16422 and kern/powerpc/ieee1275/cmain.c, respectively.
16424 * boot/powerpc/ieee1275/crt0.S: Moved to ...
16425 * kern/powerpc/ieee1275/crt0.S: ... here.
16427 * boot/powerpc/ieee1275/cmain.c: Moved to ...
16428 * kern/powerpc/ieee1275/cmain.c: ... here.
16430 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
16431 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
16432 instead of boot/powerpc/ieee1275/crt0.S and
16433 boot/powerpc/ieee1275/cmain.c, respectively.
16435 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
16436 sectors. It was not used anyway.
16438 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16440 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
16441 `unused parameter' warning.
16443 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16445 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
16447 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
16450 2005-08-28 Marco Gerards <metgerards@student.han.nl>
16452 * include/grub/normal.h (enum grub_completion_type): Added
16453 `GRUB_COMPLETION_TYPE_ARGUMENT'.
16455 * normal/cmdline.c (print_completion): Handle
16456 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
16457 * normal/menu_entry.c (store_completion): Likewise.
16459 * normal/completion.c (complete_arguments): New function.
16460 (grub_normal_do_completion): Call `complete_arguments' when the
16461 current words start with a dash.
16463 2005-08-27 Marco Gerards <metgerards@student.han.nl>
16465 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
16466 `gzio.mod' instead of `io.mod').
16468 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
16470 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
16471 (DISTDIRS): Added io and video.
16472 Rewrite the search routine to make an output consistently.
16474 * DISTLIST: Added conf/sparc64-ieee1275.mk,
16475 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
16476 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
16477 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
16478 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
16479 util/powerpc/ieee1275/misc.c.
16481 * include/grub/gzio.h: New file.
16482 * io/gzio.c: Likewise.
16484 * kern/file.c (grub_file_close): Call grub_device_close only if
16485 FILE->DEVICE is not NULL.
16487 * include/grub/mm.h [!NULL] (NULL): New macro.
16489 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
16491 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
16492 (pkgdata_MODULES): Added gzio.mod.
16493 (gzio_mod_SOURCES): New variable.
16494 (gzio_mod_CFLAGS): Likewise.
16496 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
16497 (pkgdata_MODULES): Added gzio.mod.
16498 (gzio_mod_SOURCES): New variable.
16499 (gzio_mod_CFLAGS): Likewise.
16501 * commands/cat.c: Include grub/gzio.h.
16502 (grub_cmd_cat): Use grub_gzfile_open instead of
16505 * commands/cmp.c: Include grub/gzio.h.
16506 (grub_cmd_cmp): Use grub_gzfile_open instead of
16509 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
16510 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
16512 (grub_rescue_cmd_module): Likewise.
16514 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16516 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
16517 kern/sparc64/ieee1275/init.c because it contains _start.
16518 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
16520 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16522 * configure.ac: Add support for sparc64 host with ieee1275
16524 * configure: Generated from configure.ac.
16525 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
16527 (grub_ofdisk_read): Likewise.
16528 (grub_ofdisk_open): Use %p to print pointer values, and cast the
16529 pointers as (void *) to remove a warning.
16530 (grub_ofdisk_close): Likewise.
16531 (grub_ofdisk_read): Likewise.
16532 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
16533 returns, so make it return void to remove a warning.
16534 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
16535 Corresponding prototype change.
16536 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
16537 values, and cast the pointers as (void *) to remove a warning.
16538 (grub_mm_dump): Likewise.
16539 * conf/sparc64-ieee1275.mk: New file.
16540 * conf/sparc64-ieee1275.rmk: Likewise.
16541 * include/grub/sparc64/setjmp.h: Likewise.
16542 * include/grub/sparc64/types.h: Likewise.
16543 * include/grub/sparc64/ieee1275/console.h: Likewise.
16544 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
16545 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16546 * include/grub/sparc64/ieee1275/time.h: Likewise.
16547 * kern/sparc64/cache.c: Likewise.
16548 * kern/sparc64/dl.c: Likewise.
16549 * kern/sparc64/ieee1275/init.c: Likewise.
16550 * kern/sparc64/ieee1275/openfw.c: Likewise.
16552 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
16554 * util/console.c (grub_ncurses_putchar): If C is greater than
16555 0x7f, set C to a question mark.
16556 (grub_ncurses_getcharwidth): New function.
16557 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
16560 * normal/menu.c (print_entry): Made aware of Unicode. First,
16561 convert TITLE to UCS-4, and predict the cursor position by
16564 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
16566 * kern/misc.c (grub_utf16_to_utf8): Likewise.
16568 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16570 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
16571 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
16574 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
16575 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
16576 grub_strcpy and grub_strlen. Take it into account that a space
16577 character is inserted as a delimiter.
16579 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16581 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
16582 invalid magic in the error.
16584 * commands/search.c: New file.
16586 * util/grub-emu.c (main): Call grub_search_init and
16589 * kern/rescue.c (grub_rescue_print_disks): Removed.
16590 (grub_rescue_print_devices): New function.
16591 (grub_rescue_cmd_ls): Use grub_device_iterate with
16592 grub_rescue_print_devices instead of grub_disk_dev_iterate with
16593 grub_rescue_print_disks.
16595 * kern/partition.c (grub_partition_iterate): Return the result of
16596 PARTMAP->ITERATE instead of GRUB_ERRNO.
16598 * kern/device.c: Include grub/partition.h.
16599 (grub_device_iterate): New function.
16601 * include/grub/partition.h (grub_partition_iterate): Return int
16602 instead of grub_err_t.
16604 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
16606 [GRUB_UTIL] (grub_search_fini): Likewise.
16608 * include/grub/device.h (grub_device_iterate): New prototype.
16610 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
16612 (pkgdata_MODULES): Added search.mod.
16613 (search_mod_SOURCES): New variable.
16614 (search_mod_CFLAGS): Likewise.
16616 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
16617 (pkgdata_MODULES): Added search.mod.
16618 (search_mod_SOURCES): New variable.
16619 (search_mod_CFLAGS): Likewise.
16621 * commands/ls.c (grub_ls_list_disks): Renamed to ...
16622 (grub_ls_list_devices): ... this, and use grub_device_iterate.
16623 All callers changed.
16625 * DISTLIST: Added commands/search.c.
16627 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16629 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
16631 (grub_getcharwidth): New function.
16633 * kern/misc.c (grub_utf8_to_ucs4): New function.
16635 * include/grub/term.h (struct grub_term): Added a new member
16637 (grub_getcharwidth): New prototype.
16639 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
16641 * term/i386/pc/console.c (map_char): New function. Segregated from
16642 grub_console_putchar.
16643 (grub_console_putchar): Use map_char.
16644 (grub_console_getcharwidth): New function.
16645 (grub_console_term): Specified grub_console_getcharwidth as
16648 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
16649 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
16651 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
16653 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
16654 on grub_strtoul completely.
16655 (write_char): Declare local variables in the beginning of the
16657 (grub_vesafb_getcharwidth): New function.
16658 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
16661 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
16663 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
16664 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
16665 commands/i386/pc/vbetest.c.
16667 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
16668 call grub_vbe_get_controller_info again, because the returned
16669 information is volatile.
16670 (grub_vbe_set_video_mode): Mostly rewritten.
16671 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
16672 grub_vbe_status_t correctly.
16673 (grub_vbe_get_video_mode_info): Likewise.
16674 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
16675 several if statements.
16677 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
16678 * commands/i386/pc/vbeinfo.c: ... this.
16680 * commands/i386/pc/vbe_test.c: Renamed to ...
16681 * commands/i386/pc/vbetest.c: ... this.
16683 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
16685 (grub_cmd_vbeinfo): ... this. Save video modes before
16686 iterating. Skip a video mode, if it is not available, not enough
16687 information is given or it is monochrome. Show the memory
16688 model. Leave the interpretation of MODEVAR to grub_strtoul
16690 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
16691 (GRUB_MOD_FINI): Likewise.
16693 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
16694 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
16695 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
16696 duplicated grub_env_get. Leave the interpretation of MODEVAR to
16697 grub_strtoul completely.
16698 (real2pm): Removed.
16699 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
16700 (GRUB_MOD_FINI): Likewise.
16702 * normal/misc.c: Include grub/mm.h.
16704 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
16705 vbe_list_modes with vbetest.mod and vbeinfo.mod.
16706 (vbe_list_modes_mod_SOURCES): Removed.
16707 (vbe_list_modes_mod_CFLAGS): Likewise.
16708 (vbe_test_mod_SOURCES): Likewise.
16709 (vbe_test_mod_CFLAGS): Likewise.
16710 (vbeinfo_mod_SOURCES): New variable.
16711 (vbeinfo_mod_CFLAGS): Likewise.
16712 (vbetest_mod_SOURCES): Likewise.
16713 (vbetest_mod_CFLAGS): Likewise.
16715 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
16717 * normal/misc.c: New file.
16719 * DISTLIST: Added normal/misc.c.
16721 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
16722 DISK to HOOK. Call HOOK with DISK.
16723 * partmap/apple.c (apple_partition_map_iterate): Likewise.
16724 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16725 * partmap/sun.c (sun_partition_map_iterate): Likewise.
16727 * normal/menu_entry.c (struct screen): Added a new member
16728 "completion_shown".
16729 (completion_buffer): New global variable.
16730 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
16731 (store_completion): New function.
16732 (complete): Likewise.
16733 (clear_completions): Likewise.
16734 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
16735 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
16736 a tab, call complete.
16738 * normal/completion.c (disk_dev): Removed.
16739 (print_simple_completion): Likewise.
16740 (print_partition_completion): Likewise.
16741 (print_func): New global variable.
16742 (add_completion): Do not take the arguments WHAT or PRINT any
16743 longer. Added a new argument TYPE. Instead of printing directly,
16744 call PRINT_FUNC if not NULL.
16745 All callers changed.
16746 (complete_device): Use a local variable DEV instead of
16747 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
16748 (grub_normal_do_completion): Take a new argument HOOK. Do not
16749 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
16750 empty string, return NULL instead.
16751 All callers changed.
16753 * normal/cmdline.c (print_completion): New function.
16755 * kern/partition.c (grub_partition_iterate): Add an argument DISK
16757 All callers changed.
16759 * kern/disk.c (grub_print_partinfo): Removed.
16761 * include/grub/partition.h (struct grub_partition_map): Add a new
16762 argument DISK into HOOK of ITERATE.
16763 (grub_partition_iterate): Add a new argument DISK to HOOK.
16765 * include/grub/normal.h (enum grub_completion_type): New enum.
16766 (grub_completion_type_t): New type.
16767 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
16768 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
16769 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
16770 (GRUB_COMPLETION_TYPE_FILE): Likewise.
16771 (grub_normal_do_completion): Added a new argument HOOK.
16772 (grub_normal_print_device_info): New prototype.
16774 * include/grub/disk.h (grub_print_partinfo): Removed.
16776 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
16777 (normal_mod_SOURCES): Likewise.
16778 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16779 (normal_mod_SOURCES): Likewise.
16781 * commands/ls.c (grub_ls_list_disks): Use
16782 grub_normal_print_device_info instead of grub_print_partinfo. Free
16784 (grub_ls_list_files): Use grub_normal_print_device_info instead of
16785 duplicating the code.
16787 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
16789 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
16790 follow GCS more precisely.
16791 * commands/i386/pc/vbe_test.c: Likewise.
16792 * include/grub/i386/pc/vbe.h: Likewise.
16793 * term/i386/pc/vesafb.c: Likewise.
16794 * video/i386/pc/vbe.c: Likewise.
16796 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
16798 * DISTLIST: Added term/i386/pc/vesafb.c
16799 DISTLIST: Added video/i386/pc/vbe.c
16800 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
16801 DISTLIST: Added commands/i386/pc/vbe_test.c.
16802 * commands/i386/pc/vbe_list_modes.c: New file.
16803 * commands/i386/pc/vbe_test.c: Likewise.
16804 * term/i386/pc/vesafb.c: Likewise.
16805 * video/i386/pc/vbe.c: Likewise.
16806 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
16807 (grub_vbe_probe) Added prototype.
16808 (grub_vbe_set_video_mode) Likewise.
16809 (grub_vbe_get_video_mode) Likewise.
16810 (grub_vbe_get_video_mode_info) Likewise.
16811 (grub_vbe_set_pixel_rgb) Likewise.
16812 (grub_vbe_set_pixel_index) Likewise.
16813 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
16814 (pkgdata_MODULES): Added vesafb.mod.
16815 (pkgdata_MODULES): Added vbe_list_modes.mod.
16816 (pkgdata_MODULES): Added vbe_test.mod.
16817 (vbe_mod_SOURCES): Added.
16818 (vbe_mod_CFLAGS): Likewise.
16819 (vesafb_mod_SOURCES): Likewise.
16820 (vesafb_mod_CFLAGS): Likewise.
16821 (vbe_list_modes_mod_SOURCES): Likewise.
16822 (vbe_list_modes_mod_CFLAGS): Likewise.
16823 (vbe_test_mod_SOURCES): Likewise.
16824 (vbe_test_mod_CFLAGS): Likewise.
16826 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
16828 * normal/command.c (grub_command_execute): If INTERACTIVE is
16829 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
16830 CMDLINE. Disable the pager if INTERACTIVE is true.
16831 All callers are changed.
16833 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
16834 before reading a config file.
16835 * normal/main.c (read_config_file): Even if a command is not
16836 found, register it if it is within an entry.
16838 * util/grub-emu.c: Include sys/types.h and unistd.h.
16839 (options): Added --hold.
16840 (struct arguments): Added a new member "hold".
16841 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
16843 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
16844 cleared by a debugger, if it is not zero.
16846 * include/grub/normal.h (grub_command_execute): Add an argument
16849 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
16851 * DISTLIST: Added include/grub/i386/pc/vbe.h.
16853 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
16855 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
16856 program with another one, because the old one didn't detect a bug
16857 in gcc-3.4. Always use regparm 2, because the new test is still
16858 not enough for gcc-4.0. Someone must investigate a simple test
16859 case which detects a bug in gcc-4.0.
16861 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
16863 * DISTLIST: Added normal/completion.c.
16865 * normal/completion.c: New file.
16867 * term/i386/pc/console.c (grub_console_getwh): New function.
16868 (grub_console_term): Assign grub_console_getwh to getwh.
16870 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
16871 function is defined in normal/completion.c as
16872 grub_normal_do_completion.
16873 (grub_cmdline_get): Use grub_normal_do_completion instead of
16876 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
16877 returns non-zero, otherwise return 0.
16878 (grub_partition_iterate): First, probe the partition map. Then,
16879 call ITERATE only for this partition map.
16881 * kern/misc.c (grub_strncmp): Rewritten.
16883 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
16884 returns non-zero. Otherwise return 0.
16886 * include/grub/partition.h (grub_partition_map_iterate): Return
16887 int instead of void.
16889 * include/grub/normal.h (grub_normal_do_completion): New prototype.
16891 * include/grub/misc.h (grub_strncmp): Change the type of N to
16894 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
16897 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
16898 unsigned explicitly before comparing it with I.
16900 * kern/main.c (grub_env_write_root): Add the attribute unused into
16903 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
16904 normal/completion.c.
16905 (normal_mod_SOURCES): Likewise.
16906 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16907 (normal_mod_SOURCES): Likewise.
16909 * normal/command.c (grub_iterate_commands): If ITERATE returns
16910 non-zero, return one immediately.
16912 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
16914 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
16915 * kern/i386/pc/startup.S: Updated Global Descriptor table's
16917 (grub_vbe_get_controller_info): New function.
16918 (grub_vbe_get_mode_info): Likewise.
16919 (grub_vbe_set_mode): Likewise.
16920 (grub_vbe_get_mode): Likewise.
16921 (grub_vbe_set_memory_window): Likewise.
16922 (grub_vbe_get_memory_window): Likewise.
16923 (grub_vbe_set_scanline_length): Likewise.
16924 (grub_vbe_get_scanline_length): Likewise.
16925 (grub_vbe_set_display_start): Likewise.
16926 (grub_vbe_get_display_start): Likewise.
16927 (grub_vbe_set_palette_data): Likewise.
16928 * include/grub/i386/pc/vbe.h: New file.
16930 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
16932 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
16933 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
16934 * DISTLIST: Likewise.
16935 * kern/ieee1275/of.c: Moved to ...
16936 * kern/ieee1275/ieee1275.c: ... here.
16938 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
16940 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
16941 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
16942 Pass 0 as `end' parameter to grub_strtoul().
16944 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
16946 * include/grub/powerpc/ieee1275/console.h: Do not include
16947 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
16949 (grub_console_cur_color): Remove i386-specific prototype.
16950 (grub_console_real_putchar): Likewise.
16951 (grub_console_checkkey): Likewise.
16952 (grub_console_getkey): Likewise.
16953 (grub_console_getxy): Likewise.
16954 (grub_console_gotoxy): Likewise.
16955 (grub_console_cls): Likewise.
16956 (grub_console_setcursor): Likewise.
16957 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
16958 Include <grub/machine/console.h>.
16959 * term/ieee1275/ofconsole.c: Likewise.
16961 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
16963 * Makefile.in (LIBLZO): New variable.
16965 * configure.ac: Check for LZO version 2.
16967 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
16968 lzo/lzo1x.h instead of lzo1x.h.
16970 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
16973 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
16974 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
16976 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
16977 copying the data from PARTITION to P.
16979 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16981 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
16982 negative, unload the module.
16984 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
16985 map is "pc_partition_map" but not "pc".
16986 (usage): Fix the description. The options are --boot-image and
16987 --core-image but not --boot-file or --core-file.
16988 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
16989 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
16992 * util/i386/pc/grub-install.in: Do not specify --boot-file or
16993 --core-file. Specify INSTALL_DEVICE as an argument.
16995 * util/console.c: Include config.h.
16996 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
16997 [HAVE_NCURSES_H]: Include ncurses.h.
16998 [HAVE_CURSES_H]: Include curses.h.
16999 [!A_NORMAL] (A_NORMAL): Defined as zero.
17000 [!A_STANDOUT] (A_STANDOUT): Likewise.
17002 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
17004 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
17006 * configure.ac: Check for curses libraries and headers.
17008 * Makefile.in (LIBCURSES): New variable.
17010 * genmk.rb (Script::rule): Set the executable bits.
17012 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
17013 name of the PC partition map is "pc_partition_map" but not "pc".
17015 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17017 * util/i386/pc/grub-install.in (grub_probefs): New variable.
17018 (modules): Likewise.
17019 (usage): Added descriptions for --modules and --grub-probefs.
17020 Handle --modules and --grub-probefs. Save the arguments in MODULES
17021 and GRUB_PROBEFS, respectively.
17022 Auto-detect a filesystem module against GRUBDIR. If the result is
17023 empty and modules are not specified explicitly, abort the
17024 installation. Add the result to MODULES.
17026 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
17027 disk/powerpc/ieee1275/ofdisk.c,
17028 include/grub/powerpc/ieee1275/init.h and
17029 term/powerpc/ieee1275/ofconsole.c.
17030 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
17031 term/ieee1275/ofconsole.c.
17033 * include/grub/powerpc/ieee1275/console.h: Resurrected.
17035 * COPYING: Upgraded to the latest version. Only the address of the
17036 FSF office has changed.
17038 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17040 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17041 kern/ieee1275.c with kern/ieee1275/of.c.
17043 * kern/ieee1275.c: Moved to ...
17044 * kern/ieee1275/of.c: ... here.
17046 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
17048 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
17051 * config.guess: Updated to the latest version from gnulib.
17052 * config.sub: Likewise.
17053 * install.sh: Likewise.
17054 * mkinstalldirs: Likewise.
17056 * include/grub/console.h: Removed. This file is arch-specific. Do
17057 not put this in include/grub.
17059 * include/grub/i386/pc/console.h: Resurrected.
17061 * util/console.c: Include grub/machine/console.h instead of
17063 * util/grub-emu.c: Likewise.
17065 2005-08-04 Marco Gerards <metgerards@student.han.nl>
17067 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
17070 From Vincent Pelletier <subdino2004@yahoo.fr>
17071 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
17072 Redefined to use grub_getwh.
17073 (grub_term): New member named getwh.
17074 (grub_getwh): New prototype.
17075 * kern/term.c (grub_getwh): New function.
17076 * term/i386/pc/console.c (grub_console_getwh): New function.
17077 (grub_console_term): New member `getwh'.
17078 * term/i386/pc/vga.c (grub_vga_getwh): New function.
17079 (grub_vga_term): New member `getwh'.
17080 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
17082 (grub_ofconsole_getw): New function.
17083 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
17084 (grub_ofconsole_term): New field named getwh and new initial
17087 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
17089 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
17090 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
17091 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
17092 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
17093 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
17094 of <grub/machine/ieee1275.h>.
17095 * commands/ieee1275/reboot.c: Likewise.
17096 * boot/powerpc/ieee1275/ieee1275.c: Move ...
17097 * kern/ieee1275.c: ... to here. All users updated. Change all
17098 parameter structs to use new type `grub_ieee1275_cell_t'.
17099 * term/powerpc/ieee1275/ofconsole.c: Move ...
17100 * term/ieee1275/ofconsole.c: ... to here. All users updated.
17101 * disk/powerpc/ieee1275/ofdisk.c: Move ...
17102 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
17103 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
17105 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
17106 Remove unused prototypes. All users updated.
17107 * include/grub/powerpc/ieee1275/console.h: Removed.
17108 * include/grub/powerpc/ieee1275/ieee1275.h: Define
17109 `grub_ieee1275_cell_t'.
17110 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
17111 Cast comparisons with -1 to the correct type.
17112 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
17113 type to match `grub_ieee1275_entry_fn'.
17115 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
17117 * DISTLIST: Added util/i386/pc/grub-probefs.c.
17119 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
17120 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
17122 (grub_probefs_SOURCES): New variable.
17124 * util/i386/pc/grub-probefs.c: New file.
17126 * util/i386/pc/grub-setup.c (main): Call
17127 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
17128 grub_hfs_init and grub_jfs_init to initialize the system. Call
17129 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17130 grub_pc_partition_map_fini to finish the system.
17132 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17134 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17136 (grub_multiboot_load_elf32): Likewise.
17137 (grub_multiboot_is_elf64): Likewise.
17138 (grub_multiboot_load_elf64): Likewise.
17139 (grub_multiboot_load_elf): Likewise.
17140 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17141 an ELF32 or ELF64 file.
17142 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17144 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17145 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17146 NULL before calling FS->LABEL.
17147 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17148 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17149 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17150 before calling FS->LABEL.
17152 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17154 * util/i386/pc/grub-install.in (datadir): New variable.
17156 (pkgdatadir): New variable.
17157 (pkglibdir): Removed.
17159 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17161 * DISTLIST: Added util/i386/pc/grub-install.in.
17163 * util/i386/pc/grub-install.in: New file.
17165 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17166 (grub_install_SOURCES): Likewise.
17168 * genmk.rb: Added support for scripts.
17169 (Script): New class.
17170 (scripts): New variable.
17172 * Makefile.in (install-local): Install sbin_SCRIPTS by
17174 (uninstall): Remove sbin_SCRIPTS.
17176 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17177 device, try to get a GRUB device by
17178 grub_util_biosdisk_get_grub_dev.
17181 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
17182 description for --device-map.
17184 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17186 Change the semantics of variable hooks. They now return strings
17187 instead of error values.
17189 * util/i386/pc/grub-setup.c: Include grub/env.h.
17190 (setup): Use grub_device_set_root instead of grub_env_set.
17192 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
17193 grub_env_get instead of grub_device_set_root and
17194 grub_device_get_root, respectively.
17196 * kern/main.c (grub_env_write_root): New function.
17197 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
17198 grub_env_set instead of grub_device_set_root.
17200 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
17202 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
17203 rather than calling ENV->WRITE_HOOK afterwards.
17204 (grub_env_get): Return the result of ENV->READ_HOOK rather than
17205 passing a pointer of a pointer.
17206 (grub_register_variable_hook): Change the types of "read_hook" and
17207 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
17209 Allocate the default empty string on the heap, because this string
17210 may be freed later.
17212 * kern/device.c: Include grub/env.h.
17213 (grub_device_set_root): Removed.
17214 (grub_device_get_root): Likewise.
17215 (grub_device_open): Use grub_env_get instead of
17216 grub_device_get_root.
17218 * include/grub/env.h (grub_env_read_hook_t): New type.
17219 (grub_env_write_hook_t): Likewise.
17220 (grub_env_var): Change the types of "read_hook" and "write_hook"
17221 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
17222 (grub_register_variable_hook): Likewise.
17224 * include/grub/device.h (grub_device_set_root): Removed.
17225 (grub_device_set_root): Likewise.
17227 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
17228 make sure that DIRNAME terminates with '/', so that
17229 grub_fat_find_dir will fail if PATH is not a directory.
17231 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
17233 Use the qualifier auto for print_files and print_files_long.
17234 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
17236 Put a newline only if there is no error.
17237 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
17240 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17242 * kern/partition.c (grub_partition_probe): Initialize PART to
17243 NULL. Otherwise, when no partition map is registered, this returns
17246 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
17248 * partmap/apple.c (apple_partition_map_iterate): Check if POS
17249 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
17252 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
17254 * commands/ls.c (grub_ls_list_disks): Print the filesystem
17255 information on each device, if it does not have partitions. Print
17256 "Device" instead of "Disk", because this function is not specific
17259 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
17260 static to ensure that it is put on the memory rather than a
17263 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17265 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
17266 (grub_cat_init): Likewise.
17267 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
17268 (options): Likewise.
17269 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17270 (grub_configfile_init): Likewise.
17271 * font/manager.c (GRUB_MOD_INIT): Likewise.
17272 * commands/help.c (GRUB_MOD_INIT): Likewise.
17273 (grub_help_init): Likewise.
17274 * normal/command.c (grub_command_init): Likewise.
17275 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
17276 * disk/loopback.c (grub_loop_init): Likewise.
17277 (GRUB_MOD_INIT): Likewise.
17278 * commands/ls.c (grub_ls_init): Likewise.
17279 (GRUB_MOD_INIT): Likewise.
17280 (options): Likewise.
17281 * commands/boot.c (grub_boot_init): Likewise.
17282 (GRUB_MOD_INIT): Likewise.
17283 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
17284 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
17285 (GRUB_MOD_INIT): Likewise.
17286 * commands/cmp.c (grub_cmp_init): Likewise.
17287 (GRUB_MOD_INIT): Likewise.
17289 * normal/arg.c: Use <> instead of "" to include header files.
17290 (SHORT_ARG_HELP): New macro.
17291 (SHORT_ARG_USAGE): Likewise.
17292 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
17293 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
17295 (find_short): Check if C is 'h' or 'u' explicitly.
17296 (grub_arg_show_help): Use space characters instead of tabs. Treat
17297 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
17298 are shown with --help and --usage only if they are not used for
17299 the command itself.
17300 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
17303 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
17304 const into "longarg". Change the type of "shortarg" to int.
17306 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17308 * boot/i386/pc/boot.S (boot_drive_check): New label.
17310 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
17313 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
17314 which do not pass a boot drive correctly. Copied from GRUB Legacy.
17316 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17318 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
17319 When turning off Gate A20, skip the check and return immediately,
17320 because this is not fatal usually.
17322 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17324 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
17325 be 0x7C00 instead of 0x8000.
17327 * boot/i386/pc/pxeboot.S: Rewritten.
17329 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
17331 (gate_a20_check_state): Read a byte from 0x108000. Invert the
17334 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
17336 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
17337 robustness. This routine now supports a BIOS call and System
17338 Control Port A to modify the gate A20.
17340 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17341 Increased to 0x440.
17343 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
17345 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
17346 device path and resulting ihandle.
17347 (grub_ofdisk_close): dprintf the ihandle being closed.
17348 (grub_ofdisk_read): dprintf function parameters.
17349 * kern/mm.c (grub_mm_init_region): Likewise.
17350 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
17351 (grub_linux_boot): dprintf the Linux entry point, initrd address and
17352 size, and boot arguments.
17353 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
17354 before loading into memory.
17355 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
17356 before loading into memory.
17358 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
17360 * kern/mm.c: Added much documentation.
17361 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
17362 8, set to 5 instead of 8.
17364 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17366 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
17368 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
17369 (grub_mkdevicemap_SOURCES): New variable.
17371 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
17372 lib/device.c of GRUB Legacy.
17374 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17376 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
17377 instead of PATH is NULL.
17379 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
17381 * commands/cmp.c (BUFFER_SIZE): New macro.
17382 (grub_cmd_cmp): Close the right file at the right time. Compare
17383 only data just read. Don't report files of different size as
17384 identical. Dynamically allocate buffers. Move variable
17385 declarations at the beginning of function.
17387 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
17389 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
17392 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
17394 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
17395 when backspace is pressed at beginning of line.
17397 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
17399 * DISTLIST: Added genfslist.sh.
17401 * normal/main.c (fs_module_list): New variable.
17402 (autoload_fs_module): New function.
17403 (read_fs_list): Likewise.
17404 (grub_normal_execute): Call read_fs_list.
17406 * kern/fs.c (grub_fs_autoload_hook): New variable.
17407 (grub_fs_probe): Added support for auto-loading.
17409 * include/grub/normal.h (struct grub_fs_module_list): New struct.
17410 (grub_fs_module_list_t): New type.
17412 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
17413 (grub_fs_autoload_hook): New prototype.
17415 * genfslist.sh: New file.
17417 * genmk.rb: Added a rule to generate a filesystem list.
17419 2005-06-30 Marco Gerards <metgerards@student.han.nl>
17421 * configure.ac: Fix the test for cross-compiling.
17423 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
17424 define GRUB_UTIL anymore.
17426 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
17427 so this function works on other systems than just big endian.
17428 (load_modules): Likewise.
17429 (add_segments): Likewise.
17431 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
17433 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
17434 contains `l' modifier, get a long from va_arg().
17436 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
17438 * kern/mm.c (grub_free): If the next free block which is being
17439 merged is the first free block, set the first block to the block
17441 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
17443 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17445 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
17446 `grub_ieee1275_chosen'.
17448 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17450 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
17451 (grub_ieee1275_chosen): New variable.
17452 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
17454 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
17455 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17456 Rename first argument to `phandle' for consistency.
17457 (grub_ieee1275_get_property_length): Likewise.
17458 (grub_ieee1275_next_property): Likewise. Change type of first argument
17459 to grub_ieee1275_phandle_t.
17460 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
17461 Move export next to declaration.
17462 (grub_ieee1275_chosen): New variable.
17463 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
17464 Correct cosmetic typo.
17465 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
17466 `grub_ieee1275_chosen'.
17467 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
17468 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
17469 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
17470 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
17471 `grub_ieee1275_chosen'.
17473 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
17475 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
17477 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
17478 /chosen/bootargs as "variable=value" pairs.
17480 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
17482 * include/grub/misc.h (grub_dprintf): New macro.
17483 (grub_real_dprintf): New prototype.
17484 (grub_strword): Likewise.
17485 (grub_iswordseparator): Likewise.
17486 * kern/misc.c (grub_real_dprintf): New function.
17487 (grub_strword): Likewise.
17488 (grub_iswordseparator): Likewise.
17490 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
17492 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
17493 (roundup): Remove macro.
17494 (grub_ieee1275_flags): Make static.
17495 (grub_ieee1275_realmode): Remove.
17496 (grub_ieee1275_test_flag): New function.
17497 (grub_ieee1275_set_flag): Likewise.
17498 (find_options): Rename to `grub_ieee1275_find_options'; update
17499 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
17500 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
17501 (cmain): New prototype.
17502 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
17503 `grub_ieee1275_flags' directly.
17504 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
17505 machine/biosdisk.h.
17506 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
17507 Don't include grub/machine/init.h.
17508 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
17509 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
17511 (grub_ieee1275_realmode): Likewise.
17512 (grub_ieee1275_flag): New enum.
17513 (grub_ieee1275_test_flag): New prototype.
17514 (grub_ieee1275_set_flag): New prototype.
17515 * include/grub/powerpc/ieee1275/init.h: Remove file.
17516 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
17517 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
17518 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
17519 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
17521 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
17522 `grub_ieee1275_test_flag'.
17523 (grub_ieee1275_encode_devname): Likewise.
17525 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
17527 * include/grub/powerpc/ieee1275/ieee1275.h
17528 (grub_ieee1275_encode_devname): New prototype.
17529 (grub_ieee1275_get_filename): Likewise.
17530 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
17532 (grub_set_prefix): Likewise.
17533 (grub_machine_init): Call grub_set_prefix.
17534 * kern/powerpc/ieee1275/openfw.c: Fix typos.
17535 (grub_parse_type): New enum.
17536 (grub_ieee1275_get_devargs): New function.
17537 (grub_ieee1275_get_devname): Likewise.
17538 (grub_ieee1275_parse_args): Likewise.
17539 (grub_ieee1275_get_filename): Likewise.
17540 (grub_ieee1275_encode_devname): Likewise.
17542 2005-03-30 Marco Gerards <metgerards@student.han.nl>
17544 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
17545 `grub_loader_unset'.
17547 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
17549 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
17550 instead of grub_ieee1275_interpret.
17551 (grub_halt_init): New function.
17552 (grub_halt_fini): Likewise.
17553 (GRUB_MOD_INIT): Correct message grammar.
17554 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
17555 instead of grub_ieee1275_interpret.
17556 (grub_reboot_init): New function.
17557 (grub_reboot_fini): Likewise.
17558 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
17559 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
17560 util/i386/pc/misc.c with commands/ieee1275/halt.c,
17561 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
17562 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
17564 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
17566 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
17568 (grub_halt): Likewise.
17569 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
17570 (cmain): Remove __attribute__((unused)).
17571 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
17572 (grub_heap_len): Likewise.
17573 (grub_machine_fini): New function.
17574 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
17575 (grub_halt): Likewise.
17576 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
17578 * util/powerpc/ieee1275/misc.c: New file.
17580 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
17582 * DISTLIST: New file.
17583 * gendistlist.sh: Likewise.
17585 * Makefile.in (COMMON_DISTFILES): Removed.
17586 (BOOT_DISTFILES): Likewise.
17587 (CONF_DISTFILES): Likewise.
17588 (DISK_DISTFILES): Likewise.
17589 (FS_DISTFILES): Likewise.
17590 (INCLUDE_DISTFILES): Likewise.
17591 (KERN_DISTFILES): Likewise.
17592 (LOADER_DISTFILES): Likewise.
17593 (TERM_DISTFILES): Likewise.
17594 (UTIL_DISTFILES): Likewise.
17595 (DISTFILES): Likewise.
17596 (uninstall): Uninstall files in $(pkgdata_DATA).
17597 (DISTLIST): New target.
17598 (distdir): Use the contents of the file DISTLIST to get a list of
17601 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
17603 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
17604 descriptor. This is ported from GRUB Legacy.
17606 * gencmdlist.sh: Added an extra semicolon to make it work with
17607 old sed versions. Reported by Robert Bihlmeyer
17608 <robbe@orcus.priv.at>.
17610 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
17612 Automatic loading of commands is supported.
17614 * normal/main.c (read_command_list): New function.
17615 (grub_normal_execute): Call read_command_list.
17617 * normal/command.c (grub_register_command): Return zero or CMD.
17618 Allocate CMD->NAME from the heap.
17619 Initialize CMD->MODULE_NAME to zero.
17620 Find the same name as well. If the same command is found and it is
17621 a dummy command, overwrite members. If it is not a dummy command,
17623 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
17624 (grub_command_find): If a dummy command is found, load a module
17625 and retry to find a command only once.
17627 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
17628 make sure that each command is loaded.
17630 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
17632 (struct grub_command): Remove const from the member `name'.
17633 Add a new member `module_name'.
17634 (grub_register_command): Return grub_command_t.
17636 * commands/help.c (grub_cmd_help): Call grub_command_find to make
17637 sure that each command is loaded.
17639 * genmk.rb (PModule::rule): Specify a module name without the
17640 suffix ".mod" to gencmdlist.sh.
17642 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
17644 * gencmdlist.sh: New file.
17646 * genmk.rb (PModule::rule): Generate a rule for a command list.
17648 Generate command.lst from $(COMMANDFILES).
17650 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
17651 (DATA): Added $(pkgdata_DATA).
17652 (install-local): Install files in $(pkgdata_DATA).
17654 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
17656 * term/i386/pc/vga.c (debug_command): Removed.
17657 (GRUB_MOD_INIT): Do not register the command "debug".
17659 From Hollis Blanchard:
17660 * commands/configfile.c: New file.
17661 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
17662 commands/configfile.c.
17663 (pkgdata_MODULES): Added configfile.mod.
17664 (configfile_mod_SOURCES): New variable.
17665 (configfile_mod_CFLAGS): Likewise.
17666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17667 commands/configfile.c.
17668 (pkgdata_MODULES): Added configfile.mod.
17669 (configfile_mod_SOURCES): New variable.
17670 (configfile_mod_CFLAGS): Likewise.
17671 * util/grub-emu.c (main): Call grub_configfile_init and
17672 grub_configfile_fini.
17673 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
17675 [GRUB_UTIL] (grub_configfile_fini): Likewise.
17677 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
17679 * normal/arg.c (grub_arg_show_help): Do not show the bug report
17682 * commands/help.c (grub_cmd_help): Do not print newlines after
17683 the last command in print_command_help.
17685 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
17687 * commands/default.h: New file.
17688 * commands/timeout.h: Likewise.
17689 * normal/context.c: Likewise.
17691 * util/misc.c: Do not include sys/times.h.
17692 Include sys/time.h and grub/machine/time.h.
17693 (grub_get_rtc): Rewritten with gettimeofday.
17695 * util/grub-emu.c (main): Call grub_default_init and
17696 grub_timeout_init before grub_normal_init, and call
17697 grub_timeout_fini and grub_default_fini after grub_main.
17699 * util/console.c (grub_ncurses_checkkey): Return the read
17702 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
17705 * normal/main.c (read_config_file): Push MENU. If this fails,
17706 print an error and wait for a user input.
17707 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
17708 If a menu is empty or an error occurs, pop MENU.
17709 (grub_normal_execute): Pop and free MENU after grub_menu_run
17712 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
17714 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
17716 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
17718 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
17720 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
17723 * include/grub/normal.h (struct grub_menu_list): New struct.
17724 (grub_menu_list_t): New type.
17725 (struct grub_context): New struct.
17726 (grub_context_t): New type.
17727 (grub_register_command): Got rid of EXPORT_FUNC.
17728 (grub_unregister_command): Likewise.
17729 (grub_context_get): New prototype.
17730 (grub_context_get_current_menu): Likewise.
17731 (grub_context_push_menu): Likewise.
17732 (grub_context_pop_menu): Likewise.
17733 [GRUB_UTIL] (grub_default_init): Likewise.
17734 [GRUB_UTIL] (grub_default_fini): Likewise.
17735 [GRUB_UTIL] (grub_timeout_init): Likewise.
17736 [GRUB_UTIL] (grub_timeout_fini): Likewise.
17738 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
17739 commands/timeout.c and normal/context.c.
17740 (pkgdata_MODULES): Added default.mod and timeout.mod.
17741 (normal_mod_SOURCES): Added normal/context.c.
17742 (default_mod_SOURCES): New variable.
17743 (default_mod_CFLAGS): Likewise.
17744 (timeout_mod_SOURCES): Likewise.
17745 (timeout_mod_CFLAGS): Likewise.
17746 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
17748 (pkgdata_MODULES): Added default.mod and timeout.mod.
17749 (normal_mod_SOURCES): Added normal/context.c.
17750 (default_mod_SOURCES): New variable.
17751 (default_mod_CFLAGS): Likewise.
17752 (timeout_mod_SOURCES): Likewise.
17753 (timeout_mod_CFLAGS): Likewise.
17755 * Makefile.in (all-local): Added $(MKFILES).
17757 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
17759 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
17760 (grub_emu_SOURCES): Likewise.
17761 (pkgdata_MODULES): Add `sun.mod'.
17762 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
17763 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17765 (pkgdata_MODULES): Add `sun.mod'.
17766 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
17767 * include/grub/partition.h (grub_sun_partition_map_init): New
17769 (grub_sun_partition_map_fini): Likewise.
17770 * partmap/sun.c: New file.
17771 * util/grub-emu.c (main): Initialize and de-initialize the sun
17772 partitionmap support.
17774 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
17776 This implements an Emacs-like menu entry editor.
17778 * normal/menu_entry.c: New file.
17780 * util/console.c (grub_ncurses_putchar): Translate some Unicode
17781 characters to ASCII.
17782 (saved_char): New variable.
17783 (grub_ncurses_checkkey): Rewritten completely.
17784 (grub_ncurses_getkey): Likewise.
17785 (grub_ncurses_init): Call raw instead of cbreak.
17787 * normal/menu.c (print_entry): Do not put a space.
17788 (init_page): Renamed to ...
17789 (grub_menu_init_page): ... this. All callers changed.
17790 (edit_menu_entry): Removed.
17791 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
17793 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
17795 * kern/misc.c (grub_vprintf): Call grub_refresh.
17797 * normal/menu.c (DISP_LEFT): Renamed to ...
17798 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
17799 * normal/menu.c (DISP_UP): Renamed to ...
17800 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
17801 * normal/menu.c (DISP_RIGHT): Renamed to ...
17802 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
17803 * normal/menu.c (DISP_DOWN): Renamed to ...
17804 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
17805 * normal/menu.c (DISP_HLINE): Renamed to ...
17806 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
17807 * normal/menu.c (DISP_VLINE): Renamed to ...
17808 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
17809 * normal/menu.c (DISP_UL): Renamed to ...
17810 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
17811 * normal/menu.c (DISP_UR): Renamed to ...
17812 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
17813 * normal/menu.c (DISP_LL): Renamed to ...
17814 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
17815 * normal/menu.c (DISP_LR): Renamed to ...
17816 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
17817 * normal/menu.c (TERM_WIDTH): Renamed to ...
17818 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
17819 * normal/menu.c (TERM_HEIGHT): Renamed to ...
17820 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
17821 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
17822 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
17823 * normal/menu.c (TERM_MARGIN): Renamed to ...
17824 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
17825 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
17826 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
17827 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
17828 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
17829 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
17830 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
17831 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
17832 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
17833 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
17834 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
17835 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
17836 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
17837 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
17838 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
17839 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
17840 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
17841 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
17842 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
17843 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
17844 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
17845 All callers changed.
17847 * include/grub/normal.h: New prototype.
17849 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
17850 normal/menu_entry.c.
17851 (normal_mod_SOURCES): Likewise.
17852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17853 (normal_mod_SOURCES): Likewise.
17855 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
17857 * include/grub/normal.h (grub_halt_init): New prototype.
17858 (grub_halt_fini): Likewise.
17859 (grub_reboot_init): Likewise.
17860 (grub_reboot_fini): Likewise.
17862 * util/grub-emu.c: Include signal.h.
17863 (main_env): New global variable.
17864 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
17866 (grub_machine_fini): New function.
17867 (main): Call grub_halt_init and grub_reboot_init before
17868 grub_main, and grub_reboot_fini and grub_halt_fini after it.
17869 Call setjmp with MAIN_ENV to go back afterwards.
17870 Call grub_machine_fini right before return.
17872 * include/grub/util/misc.h: Include setjmp.h.
17873 (main_env): New prototype.
17875 * include/grub/kernel.h (grub_machine_fini): New prototype.
17876 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
17877 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
17879 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
17880 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
17881 * term/i386/pc/console.c (grub_console_fini): Likewise.
17883 * util/i386/pc/misc.c: New file.
17885 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
17886 util/i386/pc/misc.c, commands/i386/pc/halt.c and
17887 commands/i386/pc/reboot.c.
17889 2005-02-14 Guillem Jover <guillem@hadrons.org>
17891 * include/grub/dl.h (grub_dl_check_header): New prototype.
17892 (grub_arch_dl_check_header): Change return type to grub_err_t,
17893 remove size parameter and export function. Update all callers.
17894 * kern/dl.c (grub_dl_check_header): New function.
17895 (grub_dl_load_core): Use `grub_dl_check_header' instead of
17896 `grub_arch_dl_check_header'. Check ELF type. Check if sections
17897 are inside the core.
17898 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
17899 independent ELF header checks.
17900 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
17901 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
17902 `grub_dl_check_header' instead of explicit checks. Check for the
17904 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
17905 `grub_dl_check_header' instead of explicit checks. Remove arch
17906 specific ELF header checks.
17908 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
17911 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
17913 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
17914 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
17916 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
17918 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
17919 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
17920 (part_map_iterate): Clear `grub_errno' and return 0 if
17921 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
17922 * partmap/amiga.c (amiga_partition_map_iterate): Return
17923 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
17924 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17926 2005-02-01 Guillem Jover <guillem@hadrons.org>
17928 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
17931 2005-01-31 Marco Gerards <metgerards@student.han.nl>
17933 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
17935 (grub_rescue_cmd_linux): New prototype.
17936 (grub_rescue_cmd_initrd): Likewise.
17937 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
17939 (grub_linux_release_mem): Release the memory for the initrd.
17940 (grub_load_linux): Renamed from this...
17941 (grub_rescue_cmd_linux): ...To this. Changed all callers.
17942 Changed `entry' not to be static. Loop over memory regions to
17943 find another one when the default fails.
17944 (grub_rescue_cmd_initrd): New function.
17945 (grub_linux_init): Remove function.
17946 (grub_linux_fini): Likewise.
17947 (GRUB_MOD_INIT): Register `initrd'.
17948 (GRUB_MOD_FINI): Unregister `initrd'.
17949 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
17951 (grub_linux_normal_fini): Likewise.
17952 (GRUB_MOD_INIT): Register `initrd'.
17953 (GRUB_MOD_FINI): Unregister `initrd'.
17955 2005-01-31 Marco Gerards <metgerards@student.han.nl>
17957 * commands/help.c: New file.
17958 * normal/arg.c (show_help): Renamed to...
17959 (grub_arg_show_help): ... this.
17960 * commands/i386/pc/halt.c: New file.
17961 * commands/i386/pc/reboot.c: Likewise.
17962 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
17963 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
17964 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
17965 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
17967 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17969 (pkgdata_MODULES): Add `help.mod'.
17970 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
17971 * grub/i386/pc/init.h (grub_reboot): New prototype.
17972 (grub_halt): Likewise.
17973 * include/grub/normal.h (grub_arg_show_help): New prototype.
17974 (grub_help_init): Likewise.
17975 (grub_help_fini): Likewise.
17976 * util/grub-emu.c (main): Initialize and deinitialize the help
17979 * normal/cmdline.c (grub_cmdline_get): Doc fix.
17981 * normal/command.c (grub_command_init): Fixed the description of
17982 the `set' and `unset' commands.
17984 2005-01-31 Marco Gerards <metgerards@student.han.nl>
17986 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
17988 * commands/ieee1275/halt.c: New file.
17989 * commands/ieee1275/reboot.c: Likewise.
17990 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
17991 `__attribute__ ((unused))'. Some GCS related fixed.
17992 (grub_suspend_init) [GRUB_UTIL]: Function removed.
17993 (grub_suspend_fini): Likewise.
17994 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
17996 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
17997 (halt_mod_CFLAGS): New variables.
17998 * include/grub/powerpc/ieee1275/ieee1275.h
17999 (grub_ieee1275_interpret): New prototype.
18001 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
18003 * include/grub/misc.h (memmove): New prototype.
18004 (memcpy): Likewise.
18006 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
18008 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
18009 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
18011 2005-01-22 Marco Gerards <metgerards@student.han.nl>
18013 * kern/misc.c (grub_strndup): Function rewritten.
18015 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
18017 * normal/menu.c (TERM_WIDTH): Macro redefined.
18018 (TERM_TOP_BORDER_Y): Likewise.
18019 (draw_border): Replaced while-loop by a for-loop. Make the number
18020 of lines consistent with the number of lines displayed in
18021 print_entries. Added a margin below the rectangle.
18022 (print_entry): Make the entry fit in the rectangle.
18023 (print_entries): Display the scroll arrows next to the right
18026 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18028 * fs/minix.c (grub_minix_find_file): Reserve more space for
18029 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
18030 `grub_strncpy' to copy `path' into it.
18032 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18034 Add the loopback device, a device via which files can be accessed
18037 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
18038 (pkgdata_MODULES): Add loopback.mod.
18039 (loopback_mod_SOURCES): New variable.
18040 (loopback_mod_CFLAGS): Likewise.
18041 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18043 (pkgdata_MODULES): Add loopback.mod.
18044 (loopback_mod_SOURCES): New variable.
18045 (loopback_mod_CFLAGS): Likewise.
18046 * disk/loopback.c: new file.
18047 * include/grub/normal.h (grub_loop_init): New prototype.
18048 (grub_loop_fini): New prototype.
18049 * util/grub-emu.c (main): Initialize and de-initialize loopback
18051 * include/grub/disk.h (grub_disk_dev_id): Add
18052 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
18054 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
18056 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
18058 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
18059 (suspend_mod_SOURCES): New variable.
18060 (suspend_mod_CFLAGS): Likewise.
18061 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
18063 * commands/ieee1275/suspend.c: New file.
18065 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
18067 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
18068 ((unused))' to `__attribute__ ((used))'.
18069 (GRUB_MOD_FINI): Likewise.
18070 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
18071 * genmk.rb (PModule): Assign space to common symbols when linking
18074 2005-01-20 Marco Gerards <metgerards@student.han.nl>
18076 * include/grub/mm.h (grub_mm_init_region): Change the type of the
18077 `unsigned' arguments to `grub_size_t'.
18078 (grub_malloc): Likewise.
18079 (grub_realloc): Likewise.
18080 (grub_memalign): Likewise.
18081 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
18082 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18083 * util/misc.c (grub_malloc): Likewise.
18084 (grub_realloc): Likewise.
18085 * kern/mm.c (get_header_from_pointer): Change the casts to
18086 `unsigned' into a cast to `grub_size_t'.
18088 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
18089 point to `currnode' when `currnode' is changed.
18091 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
18092 Schottelius <nico-linux@schottelius.org>.
18094 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
18096 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
18097 (note_path): Remove variable.
18098 (GRUB_IEEE1275_NOTE_NAME): New macro.
18099 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
18100 (grub_ieee1275_note_hdr): New structure.
18101 (grub_ieee1275_note_desc): Likewise.
18102 (grub_ieee1275_note): Likewise.
18103 (load_note): Remove `dir' argument. All callers updated. Remove
18104 `note_img' and `path'. Do not load a file from `note_path'.
18105 Initialize a struct grub_ieee1275_note and write that to `out'.
18106 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
18108 2005-01-05 Marco Gerards <metgerards@student.han.nl>
18110 * util/misc.c (grub_util_read_image): Revert last change. It
18111 called `grub_util_read_at', which seeks from the beginning of the
18114 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
18116 * TODO: Add note about endianness in grub-mkimage.
18117 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
18119 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
18120 (grub_mkimage_SOURCES): New target.
18121 * include/grub/kernel.h (grub_start_addr): Remove variable.
18122 (grub_end_addr): Likewise.
18123 (grub_total_module_size): Likewise.
18124 (grub_kernel_image_size): Likewise.
18125 (GRUB_MODULE_MAGIC): New constant.
18126 (grub_module_info): New structure.
18127 (grub_arch_modules_addr): New prototype.
18128 (grub_get_end_addr): Remove prototype.
18129 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18130 * include/grub/powerpc/ieee1275/kernel.h: New file.
18131 * include/grub/util/misc.h (grub_util_get_fp_size): New
18133 (grub_util_read_at): Likewise.
18134 (grub_util_write_image_at): Likewise.
18135 * kern/main.c (grub_get_end_addr): Remove function.
18136 (grub_load_modules): Call grub_arch_modules_addr instead of using
18137 grub_end_addr. Look for a grub_module_info struct in memory. Use
18138 the grub_module_info fields instead of calling grub_get_end_addr
18139 as loop conditions. Move grub_add_unused_region code here.
18140 (grub_add_unused_region): Remove function.
18141 * kern/i386/pc/init.c: Include grub/cache.h.
18142 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18143 one call to add_mem_region.
18144 (grub_arch_modules_addr): New function.
18145 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18146 (grub_total_module_size): Likewise.
18147 Include grub/machine/kernel.h.
18148 (grub_arch_modules_addr): New function.
18149 * util/grub-emu.c (grub_end_addr): Remove variable.
18150 (grub_total_module_size): Likewise.
18151 (grub_arch_modules_addr): New function.
18152 * util/misc.c: Include unistd.h.
18153 (grub_util_get_fp_size): New function.
18154 (grub_util_read_at): Likewise.
18155 (grub_util_write_image_at): Likewise.
18156 (grub_util_read_image): Call grub_util_read_at.
18157 (grub_util_write_image): Call grub_util_write_image_at.
18158 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18159 additional memory in kernel_img for a struct grub_module_info.
18160 Fill in that grub_module_info.
18161 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18163 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18165 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18167 * include/grub/powerpc/ieee1275/ieee1275.h
18168 (grub_ieee1275_milliseconds): New prototype.
18169 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18171 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18172 grub_ieee1275_milliseconds.
18174 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18176 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18178 (find_options): New function.
18179 (cmain): Call find_options.
18180 * include/grub/powerpc/ieee1275/ieee1275.h
18181 (grub_ieee1275_realmode): New extern variable.
18182 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
18183 grub_map if grub_ieee1275_realmode is false.
18185 2004-12-29 Marco Gerards <metgerards@student.han.nl>
18187 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
18188 lines are inserted and make it work like readline. Reported by
18189 Vincent Pelletier <subdino2004@yahoo.fr>.
18191 2004-12-28 Marco Gerards <metgerards@student.han.nl>
18193 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
18195 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
18196 `kern/powerpc/cache.S'.
18198 2004-12-27 Marco Gerards <metgerards@student.han.nl>
18200 * genmk.rb: Handle the `Program' class in the main loop. Written
18201 by Johan Rydberg <jrydberg@gnu.org>.
18202 (Program): New class.
18203 (programs): New variable.
18204 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
18205 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
18206 instead of "grub/kernel.h". Include <grub/machine/init.h>.
18207 (help_arch): Function removed.
18208 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
18209 `powerpc/libgcc.h' and `loader.h'.
18210 (pkgdata_PROGRAMS): New variable.
18211 (sbin_UTILITIES): Variable removed.
18212 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
18213 (grubof_SOURCES): Variable re-defined so it only includes the
18214 core functionality.
18215 (grubof_CFLAGS): Remove `-DGRUBOF'.
18216 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
18217 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
18218 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
18219 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
18220 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
18221 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
18222 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
18223 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
18224 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
18225 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
18226 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
18227 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
18228 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
18229 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
18230 (pc_mod_CFLAGS): New variables.
18231 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
18232 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
18233 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
18234 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
18236 * include/grub/i386/pc/init.h (grub_os_area_addr)
18237 (rub_os_area_size): ... to here.
18238 * include/grub/powerpc/ieee1275/ieee1275.h
18239 (grub_ieee1275_entry_fn): Export symbol.
18240 * include/grub/powerpc/ieee1275/init.h: New file.
18241 * include/grub/powerpc/libgcc.h: Likewise.
18242 * include/grub/cache.h: Likewise.
18243 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
18244 <hollis@penguinppc.org>.
18245 * kern/dl.c: Include <grub/cache.h>.
18246 (grub_dl_flush_cache): New function.
18247 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
18249 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
18250 (grub_console_init): Removed prototypes.
18251 (grub_machine_init): Don't initialize the modules anymore.
18252 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
18254 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
18255 Macro undef removed.
18256 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
18257 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
18258 relocation `R_PPC_REL32'. Return an error when the relocation is
18260 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
18261 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
18262 * util/misc.c (grub_arch_sync_caches): Likewise.
18264 2004-12-19 Marco Gerards <metgerards@student.han.nl>
18266 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
18267 `symlist.c', add `grubof_symlist.c'.
18268 (symlist.c): Variable removed.
18269 (grubof_HEADERS): Variable added.
18270 (grubof_symlist.c): New target.
18271 (kernel_syms.lst): Use `grubof_HEADERS' instead of
18272 `kernel_img_HEADERS'.
18273 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
18274 * kern/powerpc/dl.c: New file.
18275 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
18277 (grub_arch_dl_relocate_symbols): Likewise.
18278 (grub_register_exported_symbols): Likewise.
18280 2004-12-13 Marco Gerards <metgerards@student.han.nl>
18282 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
18283 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
18284 to fail instead. Reported by Vincent Pelletier
18285 <subdino2004@yahoo.fr>.
18287 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
18288 it is not allocated. Reported by Vincent Pelletier
18289 <subdino2004@yahoo.fr>.
18291 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
18292 output so the output looks better.
18294 2004-12-04 Marco Gerards <metgerards@student.han.nl>
18296 Modulize the partition map support and add support for the amiga
18299 * commands/ls.c: Include <grub/partition.h> instead of
18300 <grub/machine/partition.h>.
18301 * kern/disk.c: Likewise.
18302 * kern/rescue.c: Likewise.
18303 * loader/i386/pc/chainloader.c: Likewise.
18304 * normal/cmdline.c: Likewise.
18305 * kern/powerpc/ieee1275/init.c: Likewise.
18306 (grub_machine_init): Call `grub_pc_partition_map_init',
18307 `grub_amiga_partition_map_init' and
18308 `grub_apple_partition_map_init'.
18309 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
18310 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
18311 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
18312 `partition.h' and `pc_partition.h'.
18313 (grub_setup_SOURCES): Remove
18314 `disk/i386/pc/partition.c'. Add `kern/partition.c',
18315 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18316 (grub_emu_SOURCES): Likewise.
18317 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
18318 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
18319 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
18320 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18321 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
18322 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18323 (grubof_SOURCES): Likewise.
18324 * disk/i386/pc/partition.c: File removed.
18325 * disk/powerpc/ieee1275/partition.c: Likewise.
18326 * include/grub/powerpc/ieee1275/partition.h: Likewise.
18327 * include/grub/i386/pc/partition.h: Likewise.
18328 * kern/partition.c: New file.
18329 * partmap/amiga.c: Likewise.
18330 * partmap/apple.c: Likewise.
18331 * partmap/pc.c: Likewise.
18332 * include/grub/partition.h: Likewise..
18333 * include/grub/pc_partition.h: Likewise.
18334 * util/grub-emu.c: Include <grub/partition.h> instead of
18335 <grub/machine/partition.h>.
18336 (main): Call `grub_pc_partition_map_init',
18337 `grub_amiga_partition_map_init' and
18338 `grub_apple_partition_map_init' and deinitialize afterwards.
18339 * util/i386/pc/biosdisk.c: Include `#include
18340 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18341 `<grub/machine/partition.h>'.
18342 * util/i386/pc/grub-setup.c: Likewise.
18343 * util/i386/pc/biosdisk.c: Likewise.
18344 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
18345 partition information in case of a PC partition.
18346 * util/i386/pc/grub-setup.c: Include `#include
18347 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18348 `<grub/machine/partition.h>'.
18349 (setup): Only access the PC specific partition information in case
18352 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
18354 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
18355 (grub_longjmp): Likewise.
18356 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
18358 * normal/powerpc/setjmp.S: New file.
18359 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18360 `normal/powerpc/setjmp.S'.
18361 (grubof_CFLAGS): Add `-DGRUBOF'.
18362 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
18363 [GRUB_UTIL && !GRUBOF].
18365 2004-11-16 Marco Gerards <metgerards@student.han.nl>
18367 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
18368 property named `name'. Correctly handle the error returned by
18369 `grub_ieee1275_finddevice' if a device can not be opened.
18371 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
18373 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
18374 `actual' for negativity.
18375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18378 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18380 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
18381 (PAGE_OFFSET): New macro.
18382 (CRTC_ADDR_PORT): Likewise.
18383 (CRTC_DATA_PORT): Likewise.
18384 (START_ADDR_HIGH_REGISTER): Likewise.
18385 (START_ADDR_LOW_REGISTER): Likewise.
18386 (GRAPHICS_ADDR_PORT): Likewise.
18387 (GRAPHICS_DATA_PORT): Likewise.
18388 (READ_MAP_REGISTER): Likewise.
18389 (INPUT_STATUS1_REGISTER): Likewise.
18390 (INPUT_STATUS1_VERTR_BIT): Likewise.
18391 (page): New variable.
18392 (wait_vretrace): New function.
18393 (set_read_map): Likewise.
18394 (set_start_address): Likewise.
18395 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
18397 (check_vga_mem): Take the page into account.
18398 (write_char): Likewise.
18399 (write_cursor): Likewise.
18400 (scroll_up): Likewise. Copy the page to the page that is not
18401 shown and switch between both pages.
18402 (grub_vga_putchar): Fix off by one error.
18403 (grub_vga_cls): Wait for the vertical retrace. Take the page into
18406 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18408 Add support for iso9660 (including rockridge).
18410 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18411 (iso9660_mod_SOURCES): New variable.
18412 (iso9660_mod_CFLAGS): Likewise.
18413 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18414 * include/grub/fs.h (grub_iso9660_init): New prototype.
18415 * util/grub-emu.c (main): Call `grub_iso9660_init'.
18416 * fs/iso9660.c: New file.
18418 * include/grub/misc.h (grub_strncat): New prototype.
18419 * kern/misc.c (grub_strncat): New function.
18421 * fs/hfs.c (grub_hfs_mount): Translate the error
18422 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
18423 * fs/jfs.c (grub_jfs_mount): Likewise.
18424 * fs/ufs.c (grub_ufs_mount): Likewise.
18426 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
18428 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
18429 which initialized BAT registers.
18430 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
18431 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18433 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
18434 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18436 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
18437 (grub_mapclaim): Likewise.
18438 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
18439 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
18442 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
18444 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
18445 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
18446 -ffreestanding and -msoft-float.
18448 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
18450 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
18451 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
18452 set in grub_ieee1275_flags.
18454 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
18456 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
18458 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
18459 grub_console_init first.
18460 Change the memory range used for grub_ieee1275_claim and
18461 grub_mm_init_region.
18462 Print an error message if the claim fails.
18463 Include <grub/misc.h>.
18465 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
18467 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
18468 Call grub_children_iterate for device nodes of type `scsi',
18470 (grub_ofdisk_open): Remove manual device alias resolution.
18471 Fix memory leak when device cannot be opened.
18472 * include/grub/powerpc/ieee1275/ieee1275.h
18473 (grub_children_iterate): New prototype.
18474 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
18476 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18477 Return -1 if args.size was -1.
18479 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18481 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
18482 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
18483 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
18484 Open Firmware's memory for it; claim memory from _start to _end.
18485 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
18486 (_end): New extern.
18487 (_start): Zero BSS from __bss_start to _end.
18488 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18490 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
18492 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18494 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
18495 -1 if args.base was -1.
18497 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
18499 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
18500 escape sequence instead of a literal ^L. Also call
18501 grub_ofconsole_gotoxy.
18503 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
18505 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
18506 void * arguments to grub_addr_t. All callers updated. Also make
18507 the `result' argument optional.
18508 (grub_ieee1275_release): change void * arguments to grub_addr_t.
18509 All callers updated.
18511 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
18513 * commands/ls.c (grub_ls_list_files): Use the string following the
18514 initial ')', if present, as the filesystem path.
18515 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
18517 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
18519 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
18521 Make the source code of the menu interface more readable.
18523 * normal/menu.c: Include grub/mm.h.
18524 (TERM_WIDTH): New macro.
18525 (TERM_HEIGHT): Likewise.
18526 (TERM_INFO_HEIGHT): Likewise.
18527 (TERM_MARGIN): Likewise.
18528 (TERM_SCROLL_WIDTH): Likewise.
18529 (TERM_TOP_BORDER_Y): Likewise.
18530 (TERM_LEFT_BORDER_X): Likewise.
18531 (TERM_BORDER_WIDTH): Likewise.
18532 (TERM_MESSAGE_HEIGHT): Likewise.
18533 (TERM_BORDER_HEIGHT): Likewise.
18534 (TERM_NUM_ENTRIES): Likewise.
18535 (TERM_FIRST_ENTRY_Y): Likewise.
18536 (TERM_ENTRY_WIDTH): Likewise.
18537 (TERM_CURSOR_X): Likewise.
18538 (draw_border): Use macros instead of magic numbers.
18539 (print_entry): Likewise.
18540 (print_entries): Likewise.
18541 (run_menu): Likewise. Also, handle the key 'e'.
18542 (run_menu_entry): Ignore empty command lines.
18543 (print_message): Added a new argument EDIT. If EDIT is true,
18544 print a different message.
18545 (init_page): Likewise.
18546 (edit_menu_entry): New function. Not implemented yet.
18548 2004-09-17 Marco Gerards <metgerards@student.han.nl>
18550 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
18551 can be loaded from normal mode.
18553 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
18555 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
18556 (multiboot_mod_CFLAGS): New variables.
18557 * loader/i386/pc/linux_normal.c: New file.
18558 * loader/i386/pc/multiboot_normal.c: Likewise.
18560 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
18561 attribute `unused'.
18563 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
18564 `fdiro' to read the mode information from instead of `diro'.
18566 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
18567 looking up a symlink.
18569 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
18571 * normal/command.c (grub_command_execute): Don't parse the
18572 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
18573 flags of the command.
18575 * normal/menu.c (grub_menu_run): Fix typo.
18577 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
18579 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
18581 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
18582 `y + 1' instead of `y - 1'.
18584 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
18586 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
18588 From Hollis Blanchard <hollis@penguinppc.org>:
18589 * kern/misc.c (memmove): New alias for grub_memmove.
18590 (memcmp): New alias for grub_memcmp.
18591 (memset): New alias for grub_memset.
18592 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18593 Change "int handle" to "grub_ieee1275_phandle_t handle".
18594 * include/grub/powerpc/ieee1275/ieee1275.h
18595 (grub_ieee1275_get_property): Likewise.
18597 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
18599 Added normal mode command `chainloader' as module chain.mod, which
18600 depends on normal.mod and _chain.mod.
18602 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
18603 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
18604 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
18606 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
18607 but arguments parsing moved to ...
18608 (grub_chainloader_cmd): ... here. New function.
18609 * include/grub/i386/pc/chainloader.h: New file.
18610 * loader/i386/pc/chainloader_normal.c: Likewise.
18612 2004-09-11 Marco Gerards <metgerards@student.han.nl>
18614 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
18615 (grub_mkimage_LDFLAGS): Likewise.
18616 (grub_emu_SOURCES): Likewise.
18617 (kernel_img_HEADERS): Added fshelp.h.
18618 * fs/ext2.c: Include <grub/fshelp.h>.
18619 (FILETYPE_REG): New macro.
18620 (FILETYPE_INO_REG): Likewise.
18621 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
18623 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
18625 (grub_fshelp_node): New struct.
18626 (grub_ext2_data): Added member `diropen'. Changed member `inode'
18628 (grub_ext2_get_file_block): Removed function.
18629 (grub_ext2_read_block): New function.
18630 (grub_ext2_read_file): Replaced parameter `data' by `node'.
18631 This function was written.
18632 (grub_ext2_mount): Read the root inode. Create a diropen struct.
18633 (grub_ext2_find_file): Removed function.
18634 (grub_ext2_read_symlink): New function.
18635 (grub_ext2_iterate_dir): Likewise.
18636 (grub_ext2_open): Rewritten.
18637 (grub_ext2_dir): Rewritten.
18638 * include/grub/fshelp.h: New file.
18639 * fs/fshelp.c: Likewise.
18641 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
18643 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
18644 (print_message): Add a missing newline.
18645 (run_menu): Added timeout support.
18646 (run_menu_entry): New local function.
18647 (grub_menu_run): Added support for booting.
18649 * kern/loader.c (grub_loader_is_loaded): New function.
18651 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
18652 (grub_get_rtc): Exported.
18654 * include/grub/i386/pc/time.h: Include grub/symbol.h.
18655 (grub_get_rtc): Exported.
18657 * include/grub/normal.h (struct grub_command_list): Remove
18658 constant from the member `command'.
18660 * include/grub/loader.h (grub_loader_is_loaded): Declared.
18662 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
18664 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
18666 2004-08-28 Marco Gerards <metgerards@student.han.nl>
18668 Add support for the JFS filesystem.
18670 * fs/jfs.c: New file.
18671 * include/grub/fs.h (grub_jfs_init): New prototype.
18672 (grub_jfs_fini): New prototype.
18673 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
18674 (grub_emu_SOURCES): Likewise.
18675 (pkgdata_MODULES): Add jfs.mod.
18676 (jfs_mod_SOURCES): New variable.
18677 (jfs_mod_CFLAGS): Likewise.
18678 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
18679 (grubof_SOURCES): Likewise.
18680 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
18682 * fs/fat.c (grub_fat_find_dir): Convert the filename little
18683 endian to the host endian.
18684 (grub_fat_utf16_to_utf8): Move function from there...
18685 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
18686 the endianness of the source string anymore.
18687 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
18689 2004-08-24 Marco Gerards <metgerards@student.han.nl>
18691 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
18692 (grub_boot_fini) [GRUB_UTIL]: Likewise.
18693 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
18694 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
18696 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
18697 (grub_hfs_iterate_dir): Make the function static. Add prototypes
18698 for `node_found' and `it_dir'.
18699 (grub_hfs_dir): Add prototype for `dir_hook'.
18701 * fs/minix.c (grub_minix_get_file_block): Add prototype for
18702 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
18703 and `indir32' to silence a gcc warning.
18705 * include/grub/fs.h (grub_hfs_init): New prototype.
18706 (grub_hfs_fini): Likewise.
18709 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
18711 Each disk device has its own id now. This is useful to make use
18712 of multiple disk devices.
18714 * include/grub/disk.h (grub_disk_dev_id): New enum.
18715 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
18716 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
18718 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
18719 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
18721 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
18722 GRUB_DISK_DEVICE_OFDISK_ID as an id.
18724 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
18725 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
18727 * include/grub/disk.h (struct grub_disk_dev): Added a new member
18728 "id" which is used by the cache manager.
18730 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
18733 2004-08-18 Marco Gerards <metgerards@student.han.nl>
18735 * fs/hfs.c: New file.
18736 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
18737 (grub_emu_SOURCES): Likewise.
18738 (pkgdata_MODULES): Add hfs.mod.
18739 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
18740 (grubof_SOURCES): Likewise.
18741 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
18743 * include/grub/misc.h (grub_strncasecmp): Add prototype.
18744 * kern/misc.c (grub_strncasecmp): Add function.
18746 2004-08-14 Marco Gerards <metgerards@student.han.nl>
18748 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
18751 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
18752 (grub_ext2_dir): In case the directory entry type is unknown, read
18755 2004-08-02 Peter Bruin <pjbruin@dds.nl>
18757 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
18758 grub_load_linux instead of grub_rescue_cmd_linux as second
18759 argument of grub_rescue_register_command.
18761 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
18763 2004-07-27 Marco Gerards <metgerards@student.han.nl>
18765 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
18767 * commands/boot.c: Remove the check for `GRUB_UTIL'.
18768 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18769 `loader/powerpc/ieee1275/linux.c',
18770 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
18771 * include/grub/powerpc/ieee1275/ieee1275.h
18772 (grub_ieee1275_release): New prototype.
18773 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
18774 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
18775 normal, boot, linux and linux_normal.
18776 * loader/powerpc/ieee1275/linux.c: New file.
18777 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
18779 2004-07-12 Marco Gerards <metgerards@student.han.nl>
18781 * normal/arg.c (grub_arg_parse): Correct error handling after
18782 reallocating the argumentlist (check if `argl' is not null instead
18783 of checking if `args' is not null).
18784 * kern/mm.c (grub_realloc): Return the same pointer when using the
18785 same region, instead of returning the header address.
18787 2004-07-11 Marco Gerards <metgerards@student.han.nl>
18789 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
18790 one block instead of two when looking for the initial partition.
18791 (grub_partition_probe): Initialize the local variable `p' with 0.
18792 Use base 10 for the grub_strtoul call.
18793 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
18794 need for one local variable.
18795 (grub_strtoul): Don't add the new value to `num', instead of that
18798 2004-07-11 Marco Gerards <metgerards@student.han.nl>
18800 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
18801 (pxeboot_img_SOURCES): New variable.
18802 (pxeboot_img_ASFLAGS): Likewise.
18803 (pxeboot_img_LDFLAGS): Likewise.
18804 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
18805 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
18806 <lode_leroy@hotmail.com>.
18808 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
18810 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
18811 there was no input.
18813 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
18815 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
18816 the history buffer logic.
18818 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
18820 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
18821 (FILETYPE_INO_SYMLINK): New macros.
18822 (grub_ext2_find_file): Check if the node is a directory using the
18823 inode stat information instead of using the filetype in the
18824 dirent. Exclude the first character of an absolute symlink.
18825 (grub_ext2_dir): Mask out the filetype part of the mode member of
18828 2004-05-24 Marco Gerards <metgerards@student.han.nl>
18830 Add support for UFS version 1 and 2. Add support for the minix
18831 filesystem version 1 and 2, both the variants with 14 and 30 long
18834 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
18836 (grub_emu_SOURCES): Likewise.
18837 (pkgdata_MODULES): Add ufs.mod and minix.mod.
18838 (ufs_mod_SOURCES): New variable.
18839 (ufs_mod_CFLAGS): Likewise.
18840 (minix_mod_SOURCES): Likewise.
18841 (minix_mod_CFLAGS): Likewise.
18842 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
18844 (grubof_SOURCES): Likewise.
18845 * fs/ufs.c: New file.
18846 * fs/minix.c: New file.
18847 * include/grub/fs.h (grub_ufs_init): New prototype.
18848 (grub_ufs_fini): Likewise.
18849 (grub_minix_init): Likewise.
18850 (grub_minix_fini): Likewise.
18851 * util/grub-emu.c (main): Initialize and deinitialize UFS and
18854 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
18856 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
18857 commands/ls.c, commands/terminal.c, commands/boot.c,
18858 commands/cmp.c and commands/cat.c.
18859 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
18861 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
18864 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
18866 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
18867 and grub_, respectively. Because the conversion is trivial and
18868 mechanical, I omit the details here. Please refer to the CVS
18869 if you need more information.
18871 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
18873 * include/pupa: Renamed to ...
18874 * include/grub: ... this.
18875 * util/i386/pc/pupa-mkimage.c: Renamed to ...
18876 * util/i386/pc/grub-mkimage.c: ... this.
18877 * util/i386/pc/pupa-setup.c: Renamed to ...
18878 * util/i386/pc/grub-setup.c: ... this.
18879 * util/pupa-emu.c: Renamed to ...
18880 * util/grub-emu.c: ... this.
18882 2004-03-29 Marco Gerards <metgerards@student.han.nl>
18884 Add support for the newworld apple macintosh (PPC). This has been
18885 tested on the powerbook 2000 only. It only adds support for
18886 generic ieee1275 functions, console and disk support. This should
18887 be easy to port to other architectures with support for Open
18890 * configure.ac: Accept the powerpc as host_cpu. In the case of
18891 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
18892 specific tests are only executed while building for the i386.
18893 Inverse test for crosscompile.
18894 * genmk.rb (Utility): Allow assembler files.
18895 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
18896 * conf/powerpc-ieee1275.rmk: New file.
18897 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
18898 * disk/powerpc/ieee1275/partition.c: Likewise.
18899 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
18900 * include/pupa/powerpc/ieee1275/console.h: Likewise.
18901 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
18902 * include/pupa/powerpc/ieee1275/time.h: Likewise.
18903 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
18904 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
18905 * include/pupa/powerpc/ieee1275/loader.h
18906 * include/pupa/powerpc/setjmp.h: Likewise.
18907 * include/pupa/powerpc/types.h: Likewise.
18908 * kern/powerpc/ieee1275/init.c: Likewise.
18909 * kern/powerpc/ieee1275/openfw.c: Likewise.
18910 * term/powerpc/ieee1275/ofconsole.c: Likewise.
18912 These files were written by Johan Rydberg
18913 (jrydberg@night.trouble.net) and I only modified them slightly.
18915 * boot/powerpc/ieee1275/cmain.c: New file.
18916 * boot/powerpc/ieee1275/crt0.S: Likewise.
18917 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
18918 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
18920 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
18922 * Makefile.in: Update copyright.
18923 * genmodsrc.sh: Likewise.
18924 * gensymlist.sh: Likewise.
18925 * term/i386/pc/vga.c: Indent correctly.
18927 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
18928 bugreporting address.
18929 * util/i386/pc/pupa-setup.c (usage): Likewise,
18930 (main): Call pupa_ext2_init and pupa_ext2_fini.
18932 * fs/fat.c (log2): Renamed to ...
18933 (fat_log2): ... this.
18934 All callers changed.
18935 * kern/misc.c (memcpy): Alias to pupa_memmove.
18936 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
18938 * util/console.c (pupa_ncurses_fini): Return 0.
18940 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
18941 Move fail label here.
18942 [__GNU__]: Don't warn when using stat.
18943 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
18944 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
18945 long int. Use strtol instead of strtoul.
18947 2004-03-14 Marco Gerards <metgerards@student.han.nl>
18949 * commands/boot.c: New file.
18950 * commands/cat.c: Likewise.
18951 * commands/cmp.c: Likewise.
18952 * commands/ls.c: Likewise.
18953 * commands/terminal.c: Likewise.
18954 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
18955 (pupa_register_command): Changed interface to match the new
18957 (pupa_command_execute): Changed (almost rewritten) so it uses
18958 pupa_split_command. Added support for setting variables using the
18960 (rescue_command): Changed to work with the new argument parser.
18961 (terminal_command): Moved from here to commands/terminal.c.
18962 (set_command): New function.
18963 (unset_command): New function.
18964 (insmod_command): New function.
18965 (rmmod_command): New function.
18966 (lsmod_command): New function.
18967 (pupa_command_init): Don't initialize the command terminal
18968 anymore. Initialize the commands set, unset, insmod, rmmod and
18970 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
18971 (kernel_img_HEADERS): Add arg.h and env.h.
18972 (pupa_mkimage_LDFLAGS): Add kern/env.c.
18973 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
18974 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
18976 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
18978 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
18979 (boot_mod_SOURCES): New variable.
18980 (terminal_mod_SOURCES): Likewise.
18981 (ls_mod_SOURCES): Likewise.
18982 (cmp_mod_SOURCES): Likewise.
18983 (cat_mod_SOURCES): Likewise.
18985 * normal/arg.c: New file.
18986 * kern/env.c: Likewise.
18987 * include/pupa/arg.h: Likewise.
18988 * include/pupa/env.h: Likewise.
18989 * font/manager.c (font_command): Changed to match argument parsing
18991 (PUPA_MOD_INIT): Likewise.
18992 * hello/hello.c (pupa_cmd_hello): Likewise.
18993 (PUPA_MOD_INIT): Likewise.
18994 * include/pupa/disk.h: Include <pupa/device.h>.
18995 (pupa_print_partinfo): New prototype.
18996 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
18997 (pupa_dl_get_prefix): Likewise.
18998 * include/pupa/misc.h: Include <pupa/err.h>.
18999 (pupa_isgraph): New prototype.
19000 (pupa_isdigit): Likewise.
19001 (pupa_split_cmdline): Likewise.
19002 * include/pupa/normal.h: Include <pupa/arg.h>.
19003 (pupa_command): Changed the prototype of the member `func' to
19004 match the argument parsing interface. Added member `options'.
19005 (pupa_register_command): Updated to match function.
19006 (pupa_arg_parse): New prototype.
19007 (pupa_hello_init) [PUPA_UTIL]: New prototype.
19008 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
19009 (pupa_ls_init) [PUPA_UTIL]: Likewise.
19010 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
19011 (pupa_cat_init) [PUPA_UTIL]: Likewise.
19012 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
19013 (pupa_boot_init) [PUPA_UTIL]: Likewise.
19014 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
19015 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
19016 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
19017 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
19018 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
19019 * kern/disk.c: Include <pupa/file.h>.
19020 (pupa_print_partinfo): New function.
19021 * kern/dl.c: Include <pupa/env.h>.
19022 (pupa_dl_dir): Variable removed.
19023 (pupa_dl_load): Use the environment variable `prefix' instead of
19024 the variable pupa_dl_dir.
19025 (pupa_dl_set_prefix): Function removed.
19026 (pupa_dl_get_prefix): Likewise.
19027 * kern/i386/pc/init.c: Include <pupa/env.h>.
19028 (pupa_machine_init): Use the environment variable `prefix' instead of
19029 using pupa_dl_set_prefix to set the prefix.
19030 * kern/main.c: Include <pupa/env.h>.
19031 (pupa_set_root_dev): Use the environment variable `prefix' instead of
19032 using pupa_dl_get_prefix to get the prefix.
19033 * kern/misc.c: Include <pupa/env.h>.
19034 (pupa_isdigit): New function.
19035 (pupa_isgraph): Likewise.
19036 (pupa_ftoa): Likewise.
19037 (pupa_vsprintf): Added support for printing values of the type
19038 `double'. Make it possible to format variable output when using
19039 formatting like `%1.2%f'.
19040 (pupa_split_cmdline): New function.
19041 * kern/rescue.c: Include <pupa/env.h>.
19042 (next_word): Removed function.
19043 (pupa_rescue_cmd_prefix): Likewise.
19044 (pupa_rescue_cmd_set): New function.
19045 (pupa_rescue_cmd_unset): New function.
19046 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
19047 split the command line instead of splitting it here. Added
19048 support for setting variables using the syntax `foo=bar'. Don't
19049 initialize the prefix command anymore. Initialized the set and
19051 * normal/cmdline.c: Include <pupa/env.h>.
19052 (pupa_tab_complete): Added prototypes for print_simple_completion,
19053 print_partition_completion, add_completion, iterate_commands,
19054 iterate_dev, iterate_part and iterate_dir. Moved code to print
19055 partition information from here to kern/disk.c.
19056 (pupa_cmdline_run): Don't check if the function exists anymore.
19057 * normal/main.c: Include <pupa/env.h>.
19058 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
19059 instead of using pupa_dl_get_prefix to get the prefix.
19060 * term/i386/pc/vga.c: Include <pupa/arg.h>.
19061 (check_vga_mem): Cast pointers to `void *' to silence a gcc
19063 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
19064 (pupa_vga_setcolor): Declare unused variables with `__attribute__
19065 ((unused))' to silence a gcc warning.
19066 (pupa_vga_setcolor): Likewise.
19067 (debug_command): Changed to match argument parsing
19069 * util/pupa-emu.c: Include <pupa/env.h>.
19070 (options): Added 0's for unused fields to silence a gcc warning.
19072 (main): Use the environment variable `prefix' instead of using
19073 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
19074 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
19077 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
19078 * util/misc.c: Include <malloc.h>.
19079 (pupa_malloc): Rewritten so errors are correctly reported.
19080 (pupa_realloc): Likewise.
19081 (pupa_memalign): Likewise.
19082 (pupa_mm_init_region): Declare unused variables with
19083 `__attribute__ ((unused))' to silence a gcc warning.
19084 * normal/i386/setjmp.S: Remove tab at the end of the file to
19085 silence a gcc warning.
19086 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
19087 variables with `__attribute__ ((unused))' to silence a gcc
19089 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
19090 local variable i unsigned to silence a gcc warning.
19092 * kern/term.c: Include <pupa/misc.h>.
19093 (pupa_more_lines): New variable.
19094 (pupa_more): Likewise.
19095 (pupa_putcode): When the pager is active pause at the end of every
19097 (pupa_set_more): New function.
19098 * include/pupa/term.h (pupa_set_more): New prototype.
19101 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
19103 Now this project is GRUB 2 rather than PUPA. The location of
19104 the CVS repository was moved to GRUB's.
19106 * configure.ac: Use bug-grub as the reporting address.
19107 Use GRUB instead of PUPA.
19108 Change the version number to 1.90.
19110 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
19112 * genkernsyms.sh: Updated copyright information.
19113 * genmk.rb: Likewise.
19114 * genmodsrc.sh: Likewise.
19115 * gensymlist.sh: Likewise.
19116 * boot/i386/pc/boot.S: Likewise.
19117 * boot/i386/pc/diskboot.S: Likewise.
19118 * disk/i386/pc/biosdisk.c: Likewise.
19119 * disk/i386/pc/partition.c: Likewise.
19120 * font/manager.c: Likewise.
19121 * fs/ext2.c: Likewise.
19122 * fs/fat.c: Likewise.
19123 * include/pupa/boot.h: Likewise.
19124 * include/pupa/device.h: Likewise.
19125 * include/pupa/disk.h: Likewise.
19126 * include/pupa/dl.h: Likewise.
19127 * include/pupa/elf.h: Likewise.
19128 * include/pupa/err.h: Likewise.
19129 * include/pupa/file.h: Likewise.
19130 * include/pupa/font.h: Likewise.
19131 * include/pupa/fs.h: Likewise.
19132 * include/pupa/kernel.h: Likewise.
19133 * include/pupa/loader.h: Likewise.
19134 * include/pupa/misc.h: Likewise.
19135 * include/pupa/mm.h: Likewise.
19136 * include/pupa/net.h: Likewise.
19137 * include/pupa/normal.h: Likewise.
19138 * include/pupa/rescue.h: Likewise.
19139 * include/pupa/setjmp.h: Likewise.
19140 * include/pupa/symbol.h: Likewise.
19141 * include/pupa/term.h: Likewise.
19142 * include/pupa/types.h: Likewise.
19143 * include/pupa/i386/setjmp.h: Likewise.
19144 * include/pupa/i386/types.h: Likewise.
19145 * include/pupa/i386/pc/biosdisk.h: Likewise.
19146 * include/pupa/i386/pc/boot.h: Likewise.
19147 * include/pupa/i386/pc/console.h: Likewise.
19148 * include/pupa/i386/pc/init.h: Likewise.
19149 * include/pupa/i386/pc/kernel.h: Likewise.
19150 * include/pupa/i386/pc/linux.h: Likewise.
19151 * include/pupa/i386/pc/loader.h: Likewise.
19152 * include/pupa/i386/pc/memory.h: Likewise.
19153 * include/pupa/i386/pc/multiboot.h: Likewise.
19154 * include/pupa/i386/pc/partition.h: Likewise.
19155 * include/pupa/i386/pc/time.h: Likewise.
19156 * include/pupa/i386/pc/vga.h: Likewise.
19157 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19158 * include/pupa/util/getroot.h: Likewise.
19159 * include/pupa/util/misc.h: Likewise.
19160 * include/pupa/util/resolve.h: Likewise.
19161 * kern/device.c: Likewise.
19162 * kern/disk.c: Likewise.
19163 * kern/dl.c: Likewise.
19164 * kern/err.c: Likewise.
19165 * kern/file.c: Likewise.
19166 * kern/fs.c: Likewise.
19167 * kern/loader.c: Likewise.
19168 * kern/main.c: Likewise.
19169 * kern/misc.c: Likewise.
19170 * kern/mm.c: Likewise.
19171 * kern/rescue.c: Likewise.
19172 * kern/term.c: Likewise.
19173 * kern/i386/dl.c: Likewise.
19174 * kern/i386/pc/init.c: Likewise.
19175 * kern/i386/pc/lzo1x.S: Likewise.
19176 * kern/i386/pc/startup.S: Likewise.
19177 * loader/i386/pc/chainloader.c: Likewise.
19178 * loader/i386/pc/linux.c: Likewise.
19179 * loader/i386/pc/multiboot.c: Likewise.
19180 * normal/cmdline.c: Likewise.
19181 * normal/command.c: Likewise.
19182 * normal/main.c: Likewise.
19183 * normal/menu.c: Likewise.
19184 * normal/i386/setjmp.S: Likewise.
19185 * term/i386/pc/console.c: Likewise.
19186 * term/i386/pc/vga.c: Likewise.
19187 * util/console.c: Likewise.
19188 * util/genmoddep.c: Likewise.
19189 * util/misc.c: Likewise.
19190 * util/pupa-emu.c: Likewise.
19191 * util/resolve.c: Likewise.
19192 * util/unifont2pff.rb: Likewise.
19193 * util/i386/pc/biosdisk.c: Likewise.
19194 * util/i386/pc/getroot.c: Likewise.
19195 * util/i386/pc/pupa-mkimage.c: Likewise.
19196 * util/i386/pc/pupa-setup.c: Likewise.
19198 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
19200 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
19201 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
19202 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
19203 reading and reset it after reading.
19204 (pupa_ext2_close): Return PUPA_ERR_NONE.
19206 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
19208 (struct linux_kernel_header): Add kernel_version and
19210 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
19211 pupa_file_read succeeds.
19212 (pupa_rescue_cmd_initrd): Implement.
19214 2003-12-03 Marco Gerards <metgerards@student.han.nl>
19216 * fs/ext2.c (pupa_ext2_label): New function.
19217 (pupa_ext2_fs): Added label.
19218 * fs/fat.c (pupa_fat_label): New function.
19219 (pupa_fat_fs): Added label.
19220 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
19222 * kern/misc.c (pupa_strndup): New function.
19223 * include/pupa/misc.h (pupa_strndup): New prototype.
19225 * include/pupa/normal.h: Include <pupa/err.h>.
19226 (pupa_set_history): New prototype.
19227 (pupa_iterate_commands): New prototype.
19228 * normal/cmdline.c: Include <pupa/machine/partition.h>,
19229 <pupa/disk.h>, <pupa/file.h>.
19230 (hist_size): New variable.
19231 (hist_lines): Likewise.
19232 (hist_end): Likewise.
19233 (hist_used): Likewise.
19234 (pupa_set_history): New function.
19235 (pupa_history_get): Likewise.
19236 (pupa_history_add): Likewise.
19237 (pupa_history_replace): Likewise.
19238 (pupa_tab_complete): Likewise.
19239 (pupa_cmdline_run): Added tab completion and history buffer. Tab
19240 completion shows partitionnames while completing partitions, this
19241 feature was suggested by Jeff Bailey.
19242 * normal/command.c (pupa_iterate_commands): New function.
19243 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
19244 (pupa_normal_init): Initialize history buffer.
19245 (PUPA_MOD_INIT): Likewise.
19246 (pupa_normal_fini): Free the history buffer.
19247 (PUPA_MOD_FINI): Likewise.
19249 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
19252 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
19253 * configure.ac [i386]: Check for regparam bug.
19254 (NESTED_FUNC_ATTR) [! i386]: Defined.
19256 2003-11-17 Marco Gerards <metgerards@student.han.nl>
19258 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
19259 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
19260 (pupa_emu_SOURCES): New variable.
19261 (pupa_emu_LDFLAGS): Likewise.
19262 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
19263 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
19264 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
19265 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19266 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
19267 (pupa_jmp_buf): New typedef.
19268 (pupa_setjmp) [PUPA_UTIL]: New macro.
19269 (pupa_longjmp) [PUPA_UTIL]: Likewise.
19270 * include/pupa/term.h (struct pupa_term): New member `refresh'.
19271 (pupa_refresh): New prototype.
19272 * include/pupa/util/getroot.h: New file.
19273 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
19275 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
19276 (pupa_rescue_cmd_cat): Likewise.
19277 (pupa_rescue_cmd_ls): Likewise.
19278 (pupa_rescue_cmd_testload): Likewise.
19279 (pupa_rescue_cmd_lsmod): Likewise.
19280 * normal/cmdline.c (pupa_cmdline_get): Likewise.
19281 * normal/menu.c (run_menu): Likewise.
19282 * kern/term.c (pupa_cls): Likewise.
19283 (pupa_refresh): New function.
19284 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
19285 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19286 * util/console.c: New file.
19288 * util/i386/pc/getroot.c: New file.
19289 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
19290 (pupa_putchar): New function.
19291 (pupa_refresh): Likewise.
19292 (xgetcwd): Function moved to ...
19293 (strip_extra_slashes): Likewise.
19294 (get_prefix): Likewise.
19295 * util/i386/pc/getroot.c: ... here.
19296 (find_root_device): Function moved and renamed to...
19297 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
19298 Changed all callers.
19299 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
19301 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
19302 Changed all callers.
19303 * util/misc.c (pupa_memalign): New function.
19304 (pupa_mm_init_region): Likewise.
19305 (pupa_register_exported_symbols): Likewise.
19306 (pupa_putchar): Function removed.
19307 * util/pupa-emu.c: New file.
19309 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
19311 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
19312 (_multiboot_mod_SOURCES): New variable.
19313 (_multiboot_mod_CFLAGS): Likewise.
19314 * loader/i386/pc/multiboot.c: New file.
19315 * include/pupa/i386/pc/multiboot.h: Likewise.
19316 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
19317 (pupa_multiboot_real_boot): New function.
19318 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
19319 (pupa_multiboot_real_boot): New prototype.
19320 (pupa_rescue_cmd_multiboot): Likewise
19321 (pupa_rescue_cmd_module): Likewise.
19323 * kern/loader.c (pupa_loader_set): Continue when
19324 pupa_loader_unload_func() fails.
19325 (pupa_loader_unset): New function.
19326 * include/pupa/loader.h (pupa_loader_unset): New prototype.
19328 * kern/misc.c (pupa_stpcpy): New function.
19329 * include/pupa/misc.h (pupa_stpcpy): New prototype.
19331 2003-11-12 Marco Gerards <metgerards@student.han.nl>
19333 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
19334 for available extensions.
19336 * include/pupa/i386/pc/time.h: New file.
19337 * kern/disk.c: Include <pupa/machine/time.h>.
19338 (PUPA_CACHE_TIMEOUT): New macro.
19339 (pupa_last_time): New variable.
19340 (pupa_disk_open): Flush the cache when there was a timeout.
19341 (pupa_disk_close): Reset the timer.
19342 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
19344 * util/misc.c: Include <sys/times.h>
19345 (pupa_get_rtc): New function.
19347 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
19349 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
19351 (pupa_ext2_get_file_block): Use blocks member.
19353 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
19354 first block. Return -1 instead of pupa_errno on error.
19356 2003-10-27 Marco Gerards <metgerards@student.han.nl>
19358 * README: In the pupa-mkimage example use _chain instead of chain
19359 and ext2 instead of fat.
19360 * TODO: Replace ext2fs with jfs as an example. Add an item for
19361 adding journal playback for ext2fs.
19362 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
19363 (pkgdata_MODULES): Added ext2.mod.
19364 (ext2_mod_SOURCES): New variable.
19365 (ext2_mod_CFLAGS): Likewise.
19366 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
19367 * include/pupa/misc.h (pupa_strncpy): New prototype.
19368 (pupa_strcat): Likewise.
19369 (pupa_strncmp): Likewise.
19370 * kern/misc.c (pupa_strcat): Enable function.
19371 (pupa_strncpy): New function.
19372 (pupa_strncmp): Likewise.
19373 * fs/ext2.c: New file.
19375 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
19376 when the read failed before retrying.
19377 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
19378 (_FILE_OFFSET_BITS): Likewise.
19379 * configure.ac: Added AC_SYS_LARGEFILE.
19381 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19383 * genmk.rb (PModule#rule): Make sure to get only symbol names
19384 from the output of nm.
19385 Reported by Robert Millan <zeratul2@wanadoo.es>.
19387 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19389 I forgot to check in these changes for a long time. This adds
19390 incomplete support for VGA console, and this is still very
19391 buggy. Also, a lot of consideration is required for I18N,
19392 UNICODE, and VGA font issues. Therefore, assume that this is
19393 such that "better than nothing".
19395 * font/manager.c: New file.
19396 * include/pupa/font.h: Likewise.
19397 * include/pupa/i386/pc/vga.h: Likewise.
19398 * term/i386/pc/vga.c: Likewise.
19399 * util/unifont2pff.rb: Likewise.
19401 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
19402 (pkgdata_MODULES): Added vga.mod and font.mod.
19403 (vga_mod_SOURCES): New variables.
19404 (vga_mod_CFLAGS): Likewise.
19405 (font_mod_SOURCES): Likewise.
19406 (font_mod_CFLAGS): Likewise.
19408 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
19410 * include/pupa/term.h: Include pupa/err.h.
19411 (struct pupa_term): Added init and fini.
19412 Changed the argument of putchar to pupa_uint32_t.
19414 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
19415 (pupa_console_real_putchar): New prototype.
19416 (pupa_console_putchar): Removed.
19417 (pupa_console_checkkey): Exported.
19418 (pupa_console_getkey): Likewise.
19420 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
19423 * kern/term.c (pupa_term_set_current): Rewritten.
19424 (pupa_putchar): Likewise.
19425 (pupa_putcode): New function.
19427 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
19428 (pupa_console_real_putchar): ... this.
19429 (pupa_vga_set_mode): New function.
19430 (pupa_vga_get_font): Likewise.
19432 * normal/command.c: Include pupa/term.h.
19433 (terminal_command): New function.
19434 (pupa_command_init): Register the command "terminal".
19436 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
19437 (DISP_UP): Likewise.
19438 (DISP_RIGHT): Likewise.
19439 (DISP_DOWN): Likewise.
19440 (DISP_HLINE): Likewise.
19441 (DISP_VLINE): Likewise.
19442 (DISP_UL): Likewise.
19443 (DISP_UR): Likewise.
19444 (DISP_LL): Likewise.
19445 (DISP_LR): Likewise.
19447 * term/i386/pc/console.c (pupa_console_putchar): New function.
19449 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
19451 * util/resolve.c (pupa_util_resolve_dependencies): BUG
19452 FIX. Reverse the path_list.
19454 * include/pupa/normal.h: Export pupa_register_command and
19455 pupa_unregister_command.
19457 * hello/hello.c (pupa_cmd_hello): New module.
19458 * conf/i386-pc.rmk: Added hello.mod.
19460 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
19462 * kern/i386/pc/lzo1x.S: New file.
19464 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
19465 (compress_kernel): New variable.
19466 (generate_image): Heavily modified to support compressing a
19467 large part of the core image.
19469 * util/misc.c (pupa_util_read_image): Fix a file descriptor
19471 (pupa_util_load_image): New function.
19473 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
19474 (pupa_compressed_size): New variable.
19475 (codestart): Enable Gate A20 here.
19476 Decompress the compressed part of the core image.
19477 Rearrange the code to put functions and variables which are
19478 required for initialization in the non-compressed part.
19481 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
19484 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
19486 * include/pupa/i386/pc/kernel.h
19487 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
19488 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
19489 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19490 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19491 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
19493 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
19495 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
19496 (Utility#rule): Likewise.
19498 * configure.ac: Check if LZO is available.
19500 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
19502 * include/pupa/normal.h: New file.
19503 * include/pupa/setjmp.h: Likewise.
19504 * include/pupa/i386/setjmp.h: Likewise.
19505 * normal/cmdline.c: Likewise.
19506 * normal/command.c: Likewise.
19507 * normal/main.c: Likewise.
19508 * normal/menu.c: Likewise.
19509 * normal/i386/setjmp.S: Likewise.
19511 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
19512 (pupa_rescue_cmd_initrd): Likewise.
19514 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
19517 * kern/i386/pc/startup.S (translation_table): New variable.
19518 (translate_keycode): New function.
19519 (pupa_console_getkey): Call translate_keycode.
19521 * kern/rescue.c (attempt_normal_mode): New function.
19522 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
19523 it failed, print a message.
19525 * kern/mm.c (pupa_real_malloc): Print more information when a
19526 free magic is broken.
19527 (pupa_free): If the first free header is not free actually, set
19530 * kern/main.c (pupa_load_normal_mode): Just load the module
19532 (pupa_main): Don't print the message
19533 "Entering into rescue mode..." here.
19535 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
19537 (pupa_rescue_cmd_initrd): Likewise.
19538 (pupa_rescue_cmd_initrd): Likewise.
19540 * include/pupa/symbol.h (FUNCTION): Specify the type.
19541 (VARIABLE): Likewise.
19543 * include/pupa/err.h (pupa_err_t): Added
19544 PUPA_ERR_UNKNOWN_COMMAND.
19546 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
19547 (pupa_dl_get_prefix): Likewise.
19549 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
19550 Added _chain.mod and _linux.mod instead of chain.mod and
19552 (chain_mod_SOURCES): Renamed to ...
19553 (_chain_mod_SOURCES): ... this.
19554 (chain_mod_CFLAGS): Renamed to ...
19555 (_chain_mod_CFLAGS): ... this.
19556 (linux_mod_SOURCES): Renamed to ...
19557 (_linux_mod_SOURCES): ... this.
19558 (linux_mod_CFLAGS): Renamed to ...
19559 (_linux_mod_CFLAGS): ... this.
19560 (normal_mod_SOURCES): New variable.
19561 (normal_mod_CFLAGS): Likewise.
19562 (normal_mod_ASFLAGS): Likewise.
19564 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
19566 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
19569 * kern/dl.c (pupa_dl_ref): Refer depending modules
19571 (pupa_dl_unref): Unrefer depending modules recursively.
19572 Don't call pupa_dl_unload implicitly, because PUPA can crash if
19573 a module is unloaded before one depending on that module is
19575 (pupa_dl_unload): Unload depending modules explicitly,
19578 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
19580 * include/pupa/i386/pc/linux.h: New file.
19581 * loader/i386/pc/linux.c: Likewise.
19583 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
19585 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
19586 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
19587 of PUPA_CHAINLOADER_BOOT_SECTOR.
19589 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
19590 (pupa_linux_prot_size): New variable.
19591 (pupa_linux_tmp_addr): Likewise.
19592 (pupa_linux_real_addr): Likewise.
19593 (pupa_linux_boot_zimage): New function.
19594 (pupa_linux_boot_bzimage): Likewise.
19596 * kern/i386/pc/init.c (struct mem_region): New structure.
19597 (MAX_REGIONS): New macro.
19598 (mem_regions): New variable.
19599 (num_regions): Likewise.
19600 (pupa_os_area_addr): Likewise.
19601 (pupa_os_area_size): Likewise.
19602 (pupa_lower_mem): Likewise.
19603 (pupa_upper_mem): Likewise.
19604 (add_mem_region): New function.
19605 (compact_mem_regions): Likewise.
19606 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
19607 the size of the conventional memory and that of so-called upper
19608 memory (before the first memory hole).
19609 Instead of adding each found region to free memory, use
19610 add_mem_region and add them after removing overlaps.
19611 Also, add only 1/4 of the upper memory to free memory. The rest
19612 is used for loading OS images. Maybe this is ad hoc, but this
19613 makes it much easier to relocate OS images when booting.
19615 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
19616 (pupa_enter_rescue_mode): Don't register initrd and module.
19618 * kern/mm.c: Include pupa/dl.h.
19620 * kern/main.c: Include pupa/file.h and pupa/device.h.
19622 * kern/loader.c (pupa_loader_load_module_func): Removed.
19623 (pupa_loader_load_module): Likewise.
19625 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
19628 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
19629 (pupa_linux_tmp_addr): Likewise.
19630 (pupa_linux_real_addr): Likewise.
19631 (pupa_linux_boot_zimage): Likewise.
19632 (pupa_linux_boot_bzimage): Likewise.
19634 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
19635 (pupa_upper_mem): Likewise.
19636 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
19637 module is too dangerous.
19639 * include/pupa/loader.h (pupa_os_area_addr): Declared.
19640 (pupa_os_area_size): Likewise.
19641 (pupa_loader_set): Remove the first argument. Loader doesn't
19642 manage modules or initrd any longer.
19643 (pupa_loader_load_module): Removed.
19645 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
19646 (linux_mod_SOURCES): New variable.
19647 (linux_mod_CFLAGS): Likewise.
19649 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
19651 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
19652 the length of a blocklist correctly.
19654 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
19655 Use ioctl only if the OS file is a block device.
19656 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
19657 not very useful for normal files.
19659 * kern/main.c (pupa_set_root_dev): New function.
19660 (pupa_load_normal_mode): Likewise.
19661 (pupa_main): Call those above.
19663 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
19666 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
19668 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19670 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
19671 (setup): Configure the installed partition information and the
19674 * loader/i386/pc/chainloader.c (my_mod): New variable.
19675 (pupa_chainloader_unload): New function.
19676 (pupa_rescue_cmd_chainloader): Refer itself.
19677 (PUPA_MOD_INIT): Save its own module in MY_MOD.
19679 * kern/i386/pc/startup.S (install_partition): Removed.
19680 (version_string): Likewise.
19681 (config_file): Likewise.
19682 (pupa_install_dos_part): New variable.
19683 (pupa_install_bsd_part): Likewise.
19684 (pupa_prefix): Likewise.
19685 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
19687 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
19689 (make_install_device): New function.
19690 (pupa_machine_init): Set the dl prefix.
19692 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
19693 (buf): Renamed to ...
19694 (linebuf): ... this.
19695 (pupa_rescue_cmd_prefix): New function.
19696 (pupa_rescue_cmd_insmod): Likewise.
19697 (pupa_rescue_cmd_rmmod): Likewise.
19698 (pupa_rescue_cmd_lsmod): Likewise.
19699 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
19702 * kern/mm.c (pupa_memalign): If failed even after invalidating
19703 disk caches, unload unneeded modules and retry.
19705 * kern/misc.c (pupa_memmove): New function.
19706 (pupa_memcpy): Removed.
19707 (pupa_strcpy): New function.
19708 (pupa_itoa): Made static.
19710 * kern/dl.c (pupa_dl_iterate): New function.
19711 (pupa_dl_ref): Likewise.
19712 (pupa_dl_unref): Likewise.
19713 (pupa_dl_unload): Return if succeeded or not.
19714 (pupa_dl_unload_unneeded): New function.
19715 (pupa_dl_unload_all): Likewise.
19716 (pupa_dl_init): Renamed to ...
19717 (pupa_dl_set_prefix): ... this.
19718 (pupa_dl_get_prefix): New function.
19720 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
19721 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
19722 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19723 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19724 (pupa_install_dos_part): Declared.
19725 (pupa_install_bsd_part): Likewise.
19726 (pupa_prefix): Likewise.
19727 (pupa_boot_drive): Likewise.
19729 * include/pupa/types.h: Fix a typo.
19731 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
19733 (pupa_memmove): Declared.
19734 (pupa_strcpy): Likewise.
19736 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
19737 pupa_mod_init takes one argument, its own module.
19738 (pupa_dl_unload_unneeded): Declared.
19739 (pupa_dl_unload_all): Likewise.
19740 (pupa_dl_ref): Likewise.
19741 (pupa_dl_unref): Likewise.
19742 (pupa_dl_iterate): Likewise.
19743 (pupa_dl_init): Renamed to ...
19744 (pupa_dl_set_prefix): ... this.
19745 (pupa_dl_get_prefix): Declared.
19747 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
19748 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
19750 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
19751 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
19753 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
19754 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
19756 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
19758 * util/i386/pc/pupa-setup.c (setup): Define the internal
19759 function find_first_partition_start at the top level, because GCC
19760 3.0.x cannot compile internal functions in deeper scopes
19762 (find_root_device): Use lstat instead of stat.
19763 Don't follow symbolic links.
19764 Fix the path-constructing code.
19766 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
19767 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
19768 by a BLKGETSIZE ioctl first, because block devices don't fill
19769 the member st_mode of the structure stat on Linux.
19770 [__linux__] (linux_find_partition): Use a temporary buffer
19771 REAL_DEV for the working space. Copy it to DEV before returning.
19772 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
19773 buffer cache consistent.
19774 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
19775 strncmp. The previous value was merely wrong.
19776 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
19778 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
19779 FAT size is 12. The previous value was merely wrong.
19781 * kern/main.c (pupa_main): Don't split the starting message from
19784 * kern/term.c (pupa_putchar): Put CR after LF instead of before
19785 LF, because BIOS goes crazy about character attributes in this
19788 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
19790 * include/i386/pc/util/biosdisk.h: New file.
19791 * util/i386/pc/biosdisk.c: Likewise.
19792 * util/i386/pc/pupa-setup.c: Likewise.
19794 * Makefile.in (INCLUDE_DISTFILES): Added
19795 include/pupa/i386/pc/util/biosdisk.h.
19796 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
19797 directory util/i386/pc.
19798 (install-local): Added a rule for sbin_UTILITIES.
19799 (uninstall): Likewise.
19801 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
19803 * util/misc.c (xrealloc): New function.
19804 (pupa_malloc): Likewise.
19805 (pupa_free): Likewise.
19806 (pupa_realloc): Likewise.
19807 (pupa_stop): Likewise.
19808 (pupa_putchar): Likewise.
19810 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
19812 * include/pupa/util/misc.h (xrealloc): Declared.
19814 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
19816 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
19817 (PUPA_BOOT_MACHINE_BPB_END): ... this.
19819 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
19820 [PUPA_UTIL] (pupa_fat_fini): Likewise.
19822 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
19823 way should be implemented.
19824 [PUPA_UTIL] (pupa_fat_fini): Likewise.
19826 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
19827 the size of NAME for safety.
19828 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
19831 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
19832 (pupa_setup_SOURCES): Likewise.
19834 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
19836 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
19838 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
19839 bunch of pushl's from pusha, because this destroys the return
19842 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
19844 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
19845 This means that any missing prototypes could be fatal. Also, you
19846 must take care when writing assembly code. See the comments at
19847 the beginning of startup.S, for more details.
19849 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
19850 compilation mechanism.
19851 (pupa_chainloader_real_boot): Likewise.
19852 (pupa_biosdisk_rw_int13_extensions): Likewise.
19853 (pupa_biosdisk_rw_standard): Likewise.
19854 (pupa_biosdisk_check_int13_extensions): Likewise.
19855 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
19856 (pupa_biosdisk_get_diskinfo_standard): Likewise.
19857 (pupa_get_memsize): Likewise.
19858 (pupa_get_mmap_entry): Likewise.
19859 (pupa_console_putchar): Likewise.
19860 (pupa_console_setcursor): Likewise.
19861 (pupa_getrtsecs): Use pushl instead of push.
19863 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
19864 memory instead of the stack for a mmap entry, because some
19865 BIOSes may ignore the maximum size and overflow.
19867 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
19869 * genmk.rb (PModule#rule): Compile automatically generated
19870 sources with module-specific CFLAGS as well as other sources.
19872 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
19874 * configure.ac: Check ld.
19875 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
19876 respectively, before checking endianness and sizes.
19878 * Makefile.in (LD): New variable.
19880 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
19882 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
19884 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
19886 * Changelog: New file.