1 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
3 * docs/grub.cfg: Add an example menu entry for memtest86+.
5 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
7 * config.guess: Update to latest version from config git.
8 * config.sub: Likewise.
10 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
12 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
13 unknown-command case. Fixes bug #27320.
15 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
17 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
18 `help' if the command exists.
20 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
22 * INSTALL: Require GCC 4.1.3 or later.
24 2009-09-06 Yves Blusseau <blusseau@zetam.org>
26 * Makefile.in (RMKFILES): add i386-qemu.rmk
27 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
30 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
32 * util/grub-probe.c (probe): Comment out buggy codepath, which
33 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
34 should be re-enabled after 1.97.
36 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
38 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
41 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
43 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
44 unnecessary calls to grub_error.
46 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
48 * NEWS: Mention `keystatus' and Unicode fonts.
50 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
52 * configure.ac: Bump version to 1.97~beta2.
53 * docs/version.texi: Likewise.
55 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
57 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
58 containing unwind information in some cases where it previously did
59 not. Use -fno-dwarf2-cfi-asm if available to restore the old
60 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
63 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
65 Embedding loadenv module into grub-emu
67 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
69 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
70 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
71 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
72 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
73 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
74 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
76 2009-09-03 Magnus Granberg <zorry@ume.nu>
78 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
79 include -fPIE in the default specs.
80 * configure.ac: Check if pie_possible is yes and add -fno-PIE
83 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
85 * INSTALL: Note that GNU Bison 2.3 or later is required.
87 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
89 * kern/i386/pc/startup.S: Fix typo.
91 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
93 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
96 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
98 * docs/grub.texi (Naming convention): Describe one-based partition
100 (Device syntax): Likewise.
101 (File name syntax): Likewise.
102 (Block list syntax): Likewise.
103 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
105 (File name syntax): Likewise.
106 (Command-line and menu entry commands): Document acpi, blocklist,
107 crc, export, insmod, keystatus, ls, set, and unset commands.
109 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
111 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
112 to avoid implying that only one of --shift, --ctrl, or --alt may be
115 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
117 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
118 rather than comparing against S_IFREG, which will almost never work.
120 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
122 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
123 (write_blocklists): Likewise.
125 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
127 * script/lua/grub_lua.h (fputs): Supply a format string as the first
128 argument to grub_printf.
130 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
132 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
135 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
137 * kern/file.c (grub_file_read): Spelling fix
139 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
141 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
142 loading of headers in some cases.
144 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
146 * configure.ac: Bump version to 1.97~beta1.
147 * docs/version.texi: Likewise.
149 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
151 * include/grub/i386/xnu.h: Add license header.
152 include grub/err.h explicitly.
154 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
156 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
157 to `ufs' in the vfs.root.mountfrom kernel parameter.
159 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
161 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
163 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
164 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
166 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
169 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
171 * kern/file.c (grub_file_read): Check offset.
172 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
173 * fs/jfs.c (grub_jfs_read_file): Likewise.
174 * fs/ntfs.c (grub_ntfs_read): Likewise.
175 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
176 * fs/minix.c (grub_minix_read_file): Correct offset check.
177 * fs/ufs.c (grub_ufs_read_file): Likewise.
179 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
181 * term/i386/pc/console.c (bios_data_area): Cast
182 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
184 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
186 1-bit optimised blitters.
188 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
190 (grub_video_fbblit_replace_24bit_1bit): Likewise.
191 (grub_video_fbblit_replace_16bit_1bit): Likewise.
192 (grub_video_fbblit_replace_8bit_1bit): Likewise.
193 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
194 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
195 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
196 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
198 (grub_video_fbblit_replace_24bit_1bit): Likewise.
199 (grub_video_fbblit_replace_16bit_1bit): Likewise.
200 (grub_video_fbblit_replace_8bit_1bit): Likewise.
201 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
202 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
203 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
204 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
206 * video/video.c (grub_video_get_blit_format): Return
207 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
209 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
211 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
212 the first argument to grub_printf.
214 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
215 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
217 Add `getkeystatus' terminal method. Add a new `keystatus' command
220 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
221 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
222 modifier key bitmasks.
223 (struct grub_term_input): Add `getkeystatus' member.
224 (grub_getkeystatus): Add prototype.
225 * kern/term.c (grub_getkeystatus): New function.
227 * include/grub/i386/pc/memory.h
228 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
229 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
231 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
232 (grub_console_term_input): Set `getkeystatus' member.
233 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
235 (grub_usb_keyboard_getreport): Likewise.
236 (grub_usb_keyboard_checkkey): Likewise.
237 (grub_usb_keyboard_getkeystatus): New function.
238 (grub_usb_keyboard_term): Set `getkeystatus' member.
240 * commands/keystatus.c: New file.
241 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
242 (keystatus_mod_SOURCES): New variable.
243 (keystatus_mod_CFLAGS): Likewise.
244 (keystatus_mod_LDFLAGS): Likewise.
245 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
246 commands/keystatus.c.
247 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
248 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
249 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
250 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
251 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
252 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
254 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
256 Split befs.mod and afs.mod into *_be.mod and *.mod
258 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
259 (grub_fstest_SOURCES): Likewise.
260 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
261 (afs_be_mod_SOURCES): New variable.
262 (afs_be_mod_CFLAGS): Likewise.
263 (afs_be_mod_LDFLAGS): Likewise.
264 (befs_be_mod_SOURCES): Likewise.
265 (befs_be_mod_CFLAGS): Likewise.
266 (befs_be_mod_LDFLAGS): Likewise.
267 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
268 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
269 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
270 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
271 (grub_emu_SOURCES): Likewise.
272 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
273 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
274 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
275 * fs/afs_be.c: New file.
276 * fs/befs_be.c: New file.
277 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
278 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
279 (U16): Replaced with ...
280 (grub_afs_to_cpu16): ...this. All users updated.
281 (U32): Replaced with ...
282 (grub_afs_to_cpu32): ...this. All users updated.
283 (U64): Replaced with ...
284 (grub_afs_to_cpu64): ...this. All users updated.
285 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
286 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
287 (grub_afs_validate_sblock): Check only one endianness.
288 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
289 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
290 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
291 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
292 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
293 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
294 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
295 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
297 2009-08-26 Bean <bean123ch@gmail.com>
299 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
301 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
302 (grub_xfs_inode_block): Change return type to grub_uint64_t.
303 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
305 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
307 NetBSD memory map support.
309 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
310 (grub_netbsd_btinfo_mmap_header): New structure.
311 (grub_netbsd_btinfo_mmap_entry): Likewise.
312 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
314 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
316 Enable bsd.mod on coreboot.
318 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
319 (bsd_mod_SOURCES): New variable.
320 (bsd_mod_CFLAGS): Likewise.
321 (bsd_mod_LDFLAGS): Likewise.
322 (bsd_mod_ASFLAGS): Likewise.
323 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
324 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
326 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
328 Cleanup NetBSD root support.
330 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
334 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
336 * util/grub.d/00_header.in: Move check for the video backend of
337 gfxterm from here ...
338 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
339 a suitable video backend.
341 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
343 Fix breakage in grub-setup.
345 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
346 "msdos_partition_map".
348 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
350 Fix breakage in normal/auth.c.
352 * normal/auth.c (grub_iswordseparator): New function.
354 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
356 Authentication support.
358 * commands/password.c: New file.
359 * conf/common.rmk (pkglib_MODULES): Add password.mod.
360 (password_mod_SOURCES): New variable.
361 (password_mod_CFLAGS): Likewise.
362 (password_mod_LDFLAGS): Likewise.
363 (normal_mod_SOURCES): Add normal/auth.c.
364 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
366 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
367 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
368 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
370 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
371 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
372 * include/grub/auth.h: New file.
373 * include/grub/err.h (grub_err_t): New enum value
374 GRUB_ERR_ACCESS_DENIED.
375 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
377 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
378 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
380 * normal/auth.c: New file.
381 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
382 (grub_cmdline_run): Don't allow to go to command line without
384 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
385 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
386 menuentry without superuser rights.
387 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
388 user isn't a superuser.
390 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
392 Save space by inlining misc.c functions.
394 * kern/misc.c (grub_iswordseparator): Made static.
395 * kern/misc.c (grub_strcat): Moved from here ...
396 * include/grub/misc.h (grub_strcat): ... here. Inlined.
397 * kern/misc.c (grub_strncat): Moved from here ...
398 * include/grub/misc.h (grub_strncat): ... here. Inlined.
399 * kern/misc.c (grub_strcasecmp): Moved from here ...
400 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
401 * kern/misc.c (grub_strncasecmp): Moved from here ...
402 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
403 * kern/misc.c (grub_isalpha): Moved from here ...
404 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
405 * kern/misc.c (grub_isdigit): Moved from here ...
406 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
407 * kern/misc.c (grub_isgraph): Moved from here ...
408 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
409 * kern/misc.c (grub_tolower): Moved from here ...
410 * include/grub/misc.h (grub_tolower): ... here. Inlined.
412 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
414 * script/sh/function.c (grub_script_function_find): Cut error message
415 not to flood terminal.
416 * script/sh/lexer.c (grub_script_yylex): Remove command line length
418 * script/sh/script.c (grub_script_arg_add): Duplicate string.
420 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
422 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
423 `report' grub_uint8_t *.
424 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
425 Use a 50-millisecond timeout rather than just repeating
426 grub_usb_keyboard_getreport 50 times.
427 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
429 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
431 Rename *_partition_map to part_*
433 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
434 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
435 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
436 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
438 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
440 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
441 * util/grub-probe.c (probe_partmap): Don't transform partition name
444 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
446 Fix OpenBSD and NetBSD support.
448 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
449 memory address conflict.
450 (OPENBSD_MMAP_ACPI): New definition.
451 (OPENBSD_MMAP_NVS): Likewise.
452 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
453 and OPENBSD_MMAP_NVS.
454 Add memory map terminator
455 Explicit cast when calling grub_unix_real_boot.
456 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
458 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
460 Let user specify NetBSD root device.
462 * loader/i386/bsd.c (netbsd_root): New variable.
463 (netbsd_opts): New option 'root'.
464 (NETBSD_ROOT_ARG): New macro.
465 (grub_netbsd_boot): Use 'netbsd_root'.
466 (grub_bsd_unload): Free 'netbsd_root'.
467 (grub_cmd_netbsd): Fill 'netbsd_root'.
469 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
471 Support for 64-bit NetBSD.
473 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
474 point when booting non-FreeBSD.
476 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
478 Support --no-smp and --no-acpi for NetBSD.
480 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
481 (NETBSD_AB_NOACPI): Likewise.
482 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
483 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
485 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
487 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
489 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
490 errors. Call grub_error when needed.
492 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
494 * commands/search.c (search_fs): Try searching without autoload first.
495 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
496 filesystem module explicitly for faster booting.
498 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
500 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
502 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
504 * util/grub.d/30_os-prober.in: Disable os-prober if
505 `GRUB_DISABLE_OS_PROBER' was set to true.
507 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
509 * partmap/pc.c: Rename to ...
510 * partmap/msdos.c: ... this. Update all users.
511 (grub_pc_partition_map): Rename to ...
512 (grub_msdos_partition_map): ... this. Update all users.
514 * parttool/pcpart.c: Rename to ...
515 * parttool/msdospart.c: ... this. Update all users.
517 * include/grub/pc_partition.h: Rename to ...
518 * include/grub/msdos_partition.h: ... this. Update all users.
519 (grub_pc_partition_bsd_entry): Rename to ...
520 (grub_msdos_partition_bsd_entry): ... this. Update all users.
521 (grub_pc_partition_disk_label): Rename to ...
522 (grub_msdos_partition_disk_label): ... this. Update all users.
523 (grub_pc_partition_entry): Rename to ...
524 (grub_msdos_partition_entry): ... this. Update all users.
525 (grub_pc_partition_mbr): Rename to ...
526 (grub_msdos_partition_mbr): ... this. Update all users.
527 (grub_pc_partition): Rename to ...
528 (grub_msdos_partition): ... this. Update all users.
529 (grub_pc_partition_is_empty): Rename to ...
530 (grub_msdos_partition_is_empty): ... this. Update all users.
531 (grub_pc_partition_is_extended): Rename to ...
532 (grub_msdos_partition_is_extended): ... this. Update all users.
533 (grub_pc_partition_is_bsd): Rename to ...
534 (grub_msdos_partition_is_bsd): ... this. Update all users.
536 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
537 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
538 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
539 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
540 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
541 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
542 (gpt_mod_LDFLAGS): Rename to ...
543 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
544 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
545 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
546 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
547 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
548 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
549 (part_gpt_mod_LDFLAGS): ... this.
550 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
551 `pcpart.mod' to `msdospart.mod'.
552 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
554 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
555 (msdospart_mod_LDFLAGS): ... this.
557 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
559 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
560 (openbsd_opts): Likewise.
561 (netbsd_opts): Likewise.
562 (freebsd_flags): Added 0 terminator.
563 (openbsd_flags): Likewise.
564 (netbsd_flags): Likewise.
565 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
566 (grub_cmd_freebsd): Transformed into extended command.
567 (grub_cmd_openbsd): Likewise.
568 (grub_cmd_netbsd): Likewise.
569 (cmd_freebsd): Changed type to grub_extcmd_t.
570 (cmd_openbsd): Likewise.
571 (cmd_netbsd): Likewise.
572 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
573 grub_cmd_openbsd as extended commands.
574 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
575 cmd_netbsd and cmd_openbsd
577 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
579 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
581 2009-08-21 Pavel Roskin <proski@gnu.org>
583 * Makefile.in (install-local): When checking if a file is in the
584 build directory, use "test -e" to detect symlinks.
586 * Makefile.in (install-local): Remove all files in
587 $(DESTDIR)$(pkglibdir) before installing new files there.
589 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
591 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
594 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
596 * util/grub-mkconfig.in: Don't use gfxterm by default if not
597 explicitly specified by the user.
599 2009-08-18 Pavel Roskin <proski@gnu.org>
601 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
602 grub_uint8_t pointer for data.
603 * include/grub/fbutil.h (struct grub_video_fbblit_info):
605 * video/fb/fbutil.c: Remove unnecessary casts.
607 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
611 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
612 (grub_vbe_set_video_mode): Save active mode info
613 only after setting the mode.
614 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
617 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
619 Rename variables for clarity.
621 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
622 (active_vbe_mode_info): ... this. All users updated.
623 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
625 (initial_mode): Rename to ...
626 (initial_vbe_mode): ... this. All users updated.
627 (mode_in_use): Rename to ..
628 (vbe_mode_in_use): ... this. All users updated.
629 (mode_list): Rename to ..
630 (vbe_mode_list): ... this. All users updated.
631 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
632 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
633 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
634 'mode_list_size' to 'vbe_mode_list_size'.
635 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
636 'best_mode_info' to 'best_vbe_mode_info' and
637 'best_mode' to 'best_vbe_mode'
639 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
641 Remove duplicate grub_video_fb_get_video_ptr.
643 * include/grub/fbutil.h (get_data_ptr): Rename to ...
644 (grub_video_fb_get_video_ptr): ... this.
645 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
646 * video/fb/fbutil.c: Add comment about addressing.
647 (get_data_ptr): Rename to ...
648 (grub_video_fb_get_video_ptr): ... this. All users updated.
649 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
651 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
653 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
654 grub_dprintf() that was just added.
656 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
658 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
659 (DEFAULT_VIDEO_MODE): Remove macros.
660 (grub_linux_boot): Remove assumption that Linux has FB support,
661 and use "text" as default video mode.
663 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
665 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
667 * fs/fat.c (grub_fat_read_data): Likewise.
669 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
671 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
673 (grub_module): Likewise.
675 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
677 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
678 mbi->cmdline but free playground.
680 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
682 Handle group offset on UFS1.
684 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
685 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
687 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
689 Split ufs.mod into ufs1.mod and ufs2.mod.
691 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
692 (grub_fstest_SOURCES): Likewise.
693 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
694 (ufs_mod_SOURCES): Remove.
695 (ufs_mod_CFLAGS): Likewise.
696 (ufs_mod_LDFLAGS): Likewise.
697 (ufs1_mod_SOURCES): New variable.
698 (ufs1_mod_CFLAGS): Likewise.
699 (ufs1_mod_LDFLAGS): Likewise.
700 (ufs2_mod_SOURCES): New variable.
701 (ufs2_mod_CFLAGS): Likewise.
702 (ufs2_mod_LDFLAGS): Likewise.
703 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
704 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
706 (grub_emu_SOURCES): Likewise.
707 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
708 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
709 (grub_setup_SOURCES): Likewise.
710 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
711 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
712 (grub_setup_SOURCES): Likewise.
713 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
715 * fs/ufs2.c: New file.
716 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
718 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
722 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
723 subsystem at the end.
724 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
725 (video_fb_mod_SOURCES): New variable.
726 (video_fb_mod_CFLAGS): Likewise.
727 (video_fb_mod_LDFLAGS): Likewise.
728 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
729 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
730 * video/i386/pc/vbeblit.c: Moved from here ...
731 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
732 * video/i386/pc/vbefill.c: Moved from here ...
733 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
734 * video/i386/pc/vbeutil.c: Moved from here ...
735 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
736 * include/grub/i386/pc/vbeblit.h: Moved from here ...
737 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
738 * include/grub/i386/pc/vbefill.h: Moved from here ...
739 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
740 * include/grub/i386/pc/vbeutil.h: Moved from here ...
741 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
742 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
743 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
744 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
745 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
746 (grub_video_adapter): Added 'get_info_and_fini'.
747 (grub_video_get_info_and_fini): New prototype.
748 (grub_video_set_mode): make modestring const char *.
749 * loader/i386/linux.c (grub_linux_setup_video): Use
750 grub_video_get_info_and_fini.
751 (grub_linux_boot): Move modesetting just before booting.
752 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
753 grub_video_get_info_and_fini.
754 * video/i386/pc/vbe.c: Moved framebuffer part ...
755 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
756 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
757 grub_video_fbstd_colors and grub_video_fb_set_palette.
758 (grub_video_vbe_init): Clear 'framebuffer' variable and use
760 (grub_video_vbe_fini): Use grub_video_fb_fini.
761 (grub_video_vbe_setup): Use framebuffer.render_target instead of
762 render_target and use grub_video_fb_set_active_render_target and
763 grub_video_fb_set_palette.
764 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
765 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
766 (grub_video_vbe_adapter): Use framebuffer.
767 * video/video.c (grub_video_get_info_and_fini): New function.
768 (grub_video_set_mode): Make modestring const char *.
769 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
770 values are already initialised.
772 2009-08-14 Pavel Roskin <proski@gnu.org>
774 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
776 * boot/i386/pc/diskboot.S: Likewise.
777 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
778 sectors allow compilation on MacOSX.
779 * conf/i386-pc.rmk: Enable unconditional compilation of
782 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
784 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
785 * util/grub.d/00_header.in: Enter interruptible sleep if
786 GRUB_HIDDEN_TIMEOUT is set.
788 2009-08-13 Yves Blusseau <blusseau@zetam.org>
790 * include/grub/symbol.h: Add the LOCAL macro.
791 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
794 2009-08-13 Pavel Roskin <proski@gnu.org>
796 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
797 any modern compilers we support.
799 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
800 Use local labels starting with "L_" so that Apple assembler
801 knows they are local.
803 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
805 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
806 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
807 (bsd_kernel_types): ... this enum.
809 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
810 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
811 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
813 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
814 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
815 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
818 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
820 * util/grub-dumpdevtree: Moved from here ...
821 * util/i386/efi/grub-dumpdevtree: ... to here.
822 (hexify): New function. Converts a string to its hex version.
823 Generate hex versions of "efi" and "device-properties" by calling
824 hexify() on the ASCII strings rather than by hardcoding numbers.
826 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
828 * fs/jfs.c: Update copyright year.
830 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
832 * util/grub.d/00_header.in: Fix a comment.
833 * util/grub.d/10_linux.in: Likewise.
834 * util/grub.d/10_windows.in: Likewise.
835 * util/grub.d/10_hurd.in: Likewise.
837 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
839 * util/grub-mkconfig.in: Allow the user to specify the used font
842 2009-08-08 Pavel Roskin <proski@gnu.org>
844 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
845 available, xfs.mod needs it now.
847 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
848 the "g" modifier in sed when the intention is to strip something
849 once. This fixes comparison of kernels with multiple dashes.
851 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
852 on it. Add missing space before closing bracket. Fix
853 misleading formatting.
855 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
857 * docs/grub.texi: Major overhaul. Remove all sections that are
858 specific to GRUB Legacy, or mostly composed of Legacy-specific
861 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
863 * docs/version.texi: New file. Provides version information for
866 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
868 * docs/grub.texi: Update CVS information to SVN.
869 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
871 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
873 * util/grub-mkconfig.in: Remove a wrong `fi'.
875 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
877 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
878 (grub_jfs_uuid): New function.
879 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
881 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
883 * util/grub-mkconfig_lib.in (font_path): Move the functionality
885 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
886 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
888 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
890 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
891 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
894 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
895 not just "vmlinu[zx]".
897 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
900 * util/grub.d/10_linux.in (find_latest): Moved from here ...
901 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
904 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
906 * util/grub.d/10_freebsd.in: Use an absolute device path for
907 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
909 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
911 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
912 handling of multiple abstraction modules.
914 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
916 Fix a bug resulting in black screen when loading Linux using a
919 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
922 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
923 (grub_vbe_bios_getset_dac_palette_width): New function.
924 (grub_vbe_bios_get_dac_palette_width)
925 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
926 grub_vbe_bios_getset_dac_palette_width()).
928 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
929 check for return status.
930 (grub_vbe_get_video_mode_info): When getting information for a packed
931 mode (<= 8 bpp), obtain DAC palette width using
932 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
933 {red,green,blue}_mark_size.
935 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
937 * commands/search.c (options): Fix help output to match actual code.
939 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
941 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
944 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
946 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
949 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
951 Support Apple partition map with sector size different from 512 bytes.
953 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
954 (apple_partition_map_iterate): Respect 'aheader.blocksize'
955 and 'apart.partmap_size'.
957 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
958 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
962 * commands/i386/cpuid.c (options): New variable.
963 (grub_cmd_cpuid): Return real error.
964 (GRUB_MOD_INIT(cpuid)): Declare options.
966 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
968 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
971 2009-07-31 Bean <bean123ch@gmail.com>
973 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
975 (grub_fshelp_node): Move inode field to the end.
976 (grub_xfs_data): Remove inode field.
977 (grub_xfs_inode_block): Calculate inode size using sblock.
978 (grub_xfs_inode_offset): Likewise.
979 (grub_xfs_read_inode): Calculate inode size using sblock.
980 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
981 (grub_xfs_iterate_dir): Calculate inode size using sblock.
982 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
984 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
985 not accessible when data is null.
986 (grub_xfs_open): Likewise.
988 2009-07-31 Bean <bean123ch@gmail.com>
990 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
991 Don't change pv->disk if it's already set.
993 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
994 (grub_raid_register): ... here.
995 (grub_raid_rescan): Removed.
997 * include/grub/raid.h (grub_raid_rescan): Removed.
999 * util/grub-fstest.c: Remove include file <grub/raid.h>.
1000 (fstest): Replace grub_raid_rescan with module fini function followed
1003 * util/grub-probe.c: Add include file <grub/raid.h>.
1004 (probe_raid_level): New function.
1005 (probe): Detect abstraction by walking the disk device, support two
1006 level of abstraction (LVM on RAID) when detecting partition map.
1008 2009-07-31 Pavel Roskin <proski@gnu.org>
1010 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1011 to grub_zalloc(), it was erroneous.
1012 Reported by Bean <bean123ch@gmail.com>
1014 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1016 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1017 embedding zone, not only the first one.
1019 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1021 * term/gfxterm.c (clear_char): New function.
1022 (grub_virtual_screen_setup): Use clear_char.
1023 (scroll_up): Likewise.
1024 (grub_virtual_screen_cls): Likewise.
1026 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1028 * util/deviceiter.c (get_acceleraid_disk_name): New static
1030 (grub_util_iterate_devices): Handle Accelraid devices.
1031 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1033 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1035 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1036 separator for the suggested gfxpayload string (';' collides with the
1037 parser and needs escaping).
1039 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1041 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1042 Clear direction flag before jumping to OS.
1043 (grub_multiboot2_real_boot): Likewise.
1045 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1047 * util/i386/pc/grub-install: Fix parsing of --disk-module
1050 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1052 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
1055 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
1057 * util/grub-mkconfig.in (package_version): New variable.
1058 Use it do display the version.
1060 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1062 * kern/file.c (grub_file_open): Revert to previous check with
1065 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1067 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
1068 from help line. It's out of sync with code.
1070 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1072 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
1073 entries on failed boot.
1075 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1077 * kern/file.c (grub_file_open): Fix an error check.
1079 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1081 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
1082 partition map couldn't be identified.
1084 2009-07-23 Pavel Roskin <proski@gnu.org>
1086 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
1087 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
1088 case of little endian words becomes just an optimization.
1089 Respect const modifier.
1090 (md5_final): Use code that doesn't depend on endianness.
1092 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
1093 to avoid loss of upper bits if align is unsigned and shorter
1096 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1098 UUID support for UFS
1100 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
1101 (grub_ufs_uuid): New function.
1102 (grub_ufs_fs): add .uuid
1104 2009-07-21 Pavel Roskin <proski@gnu.org>
1106 * kern/dl.c (grub_dl_check_header): Make static.
1108 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
1110 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
1111 add drivemap for Vista. It breaks Windows 7.
1113 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1115 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
1118 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1122 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
1123 (grub_fstest_SOURCES): Likewise.
1124 (pkglib_MODULES): Add befs.mod.
1125 (befs_mod_SOURCES): New variable.
1126 (befs_mod_CFLAGS): Likewise.
1127 (befs_mod_LDFLAGS): Likewise.
1128 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1129 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1130 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1131 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1132 (grub_setup_SOURCES): Likewise.
1133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1134 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1135 (grub_setup_SOURCES): Likewise.
1136 * fs/befs.c: New file.
1137 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
1138 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
1139 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
1140 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
1141 (B_KEY_INDEX_ALIGN): New declaration.
1142 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
1143 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
1144 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
1145 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
1146 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
1147 (grub_afs_mount) [MODE_BFS]: Likewise.
1148 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
1149 (grub_afs_fs): Use GRUB_AFS_FSNAME
1150 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
1151 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
1152 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
1153 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
1155 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
1157 * util/getroot.c (find_root_device): Add support for MacOSX.
1158 * util/hostdisk.c: Likewise.
1160 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1162 * font/font.c (find_glyph): Check whether a font is present to avoid
1165 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
1167 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
1169 2009-07-20 Pavel Roskin <proski@gnu.org>
1171 * configure.ac: Trim excessively wordy excuses.
1173 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1175 Add symlink, mtime and label support to AtheFS.
1177 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
1178 (grub_afs_iterate_dir): Handle symlinks.
1179 (grub_afs_open): Use grub_afs_read_symlink.
1180 (grub_afs_dir): Likewise.
1182 (grub_afs_label): New function.
1183 (grub_afs_fs): Add grub_afs_label.
1184 (grub_afs_read_symlink): New function.
1186 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1190 * fs/afs.c: Fix comments style.
1191 (grub_afs_blockrun): Declare as packed.
1192 (grub_afs_datastream): Likewise.
1193 (grub_afs_bnode): Likewise.
1194 (grub_afs_btree): Likewise.
1195 (grub_afs_sblock): Likewise.
1196 Declare `name' as char.
1197 (grub_afs_inode): Declare as packed.
1198 Change void *vnode to grub_uint32_t unused.
1199 (grub_afs_iterate_dir): Check that key_size is positive.
1200 (grub_afs_mount): Don't read superblock twice.
1201 (grub_afs_dir): Don't free node in case of error,
1202 grub_fshelp_find_file already handles this.
1203 (grub_afs_open): Likewise.
1205 2009-07-19 Pavel Roskin <proski@gnu.org>
1207 * Makefile.in: Remove LIBLZO and enable_lzo.
1208 * conf/i386-pc.rmk: Remove lzo support.
1209 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
1210 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
1212 * kern/i386/pc/lzo1x.S: Remove.
1213 * kern/i386/pc/startup.S: Remove lzo support.
1214 * util/i386/pc/grub-mkimage.c: Likewise.
1216 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
1218 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
1219 * fs/xfs.c (grub_xfs_dir): Likewise.
1220 * fs/afs.c (grub_afs_dir): Likewise.
1221 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1222 (grub_iso9660_open): Likewise.
1223 * fs/jfs.c (grub_jfs_open): Likewise.
1224 * fs/ext2.c (grub_ext2_dir): Likewise.
1225 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
1226 * script/sh/lexer.c (grub_script_yylex): Likewise.
1228 2009-07-16 Pavel Roskin <proski@gnu.org>
1230 * configure.ac: Never add "-c" to CFLAGS.
1232 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
1234 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
1235 grub_cv_cc_efiemu should be used.
1237 * configure.ac: Typo fixes.
1239 * kern/mm.c (grub_zalloc): New function.
1240 (grub_debug_zalloc): Likewise.
1241 * include/grub/mm.h: Declare grub_zalloc() and
1242 grub_debug_zalloc().
1243 * util/misc.c (grub_zalloc): New function.
1244 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
1245 instead of grub_malloc(), remove unneeded initializations.
1246 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
1247 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
1248 * commands/parttool.c (grub_cmd_parttool): Likewise.
1249 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1250 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
1251 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
1252 * disk/usbms.c (grub_usbms_finddevs): Likewise.
1253 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
1254 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
1255 (grub_cmd_efiemu_pnvram): Likewise.
1256 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
1257 * fs/iso9660.c (grub_iso9660_mount): Likewise.
1258 (grub_iso9660_iterate_dir): Likewise.
1259 * fs/jfs.c (grub_jfs_opendir): Likewise.
1260 * fs/ntfs.c (list_file): Likewise.
1261 (grub_ntfs_mount): Likewise.
1262 * kern/disk.c (grub_disk_open): Likewise.
1263 * kern/dl.c (grub_dl_load_core): Likewise.
1264 * kern/elf.c (grub_elf_file): Likewise.
1265 * kern/env.c (grub_env_context_open): Likewise.
1266 (grub_env_set): Likewise.
1267 (grub_env_set_data_slot): Likewise.
1268 * kern/file.c (grub_file_open): Likewise.
1269 * kern/fs.c (grub_fs_blocklist_open): Likewise.
1270 * loader/i386/multiboot.c (grub_module): Likewise.
1271 * loader/xnu.c (grub_xnu_create_key): Likewise.
1272 (grub_xnu_create_value): Likewise.
1273 * normal/main.c (grub_normal_add_menu_entry): Likewise.
1274 (read_config_file): Likewise.
1275 * normal/menu_entry.c (make_screen): Likewise.
1276 * partmap/sun.c (sun_partition_map_iterate): Likewise.
1277 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
1278 * script/sh/script.c (grub_script_parse): Likewise.
1279 * video/bitmap.c (grub_video_bitmap_create): Likewise.
1280 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
1281 * video/readers/png.c (grub_png_output_byte): Likewise.
1282 (grub_video_reader_png): Likewise.
1284 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1286 Enable all targets that can be built by default
1288 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
1289 grub-mkfont and grub-fstest if they can be built
1291 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1293 Fix hang and segmentation fault in grub-emu-usb
1295 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
1296 * util/usb.c (grub_libusb_devices): likewise
1297 (grub_libusb_init): rename to ...
1298 (GRUB_MOD_INIT (libusb)):...this
1299 (grub_libusb_fini): rename to ..
1300 (GRUB_MOD_FINI (libusb)):...this
1301 * disk/usbms.c (grub_usbms_transfer): fix retry logic
1302 * include/grub/disk.h (grub_raid_init): removed, it's useless
1303 (grub_raid_fini): likewise
1304 (grub_lvm_init): likewise
1305 (grub_lvm_fini): likewise
1306 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
1309 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1313 * Makefile.in (LIBUSB): new macro
1314 * genmk.rb (Utility/print_tail): new method
1315 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
1316 (top level): call util.print_tail at the end.
1318 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1320 Make FreeBSD accept zpool.cache
1322 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
1323 type is /boot/zfs/zpool.cache
1325 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1329 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
1330 correct wrong typedef
1331 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
1333 2009-07-15 Pavel Roskin <proski@gnu.org>
1335 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
1336 * kern/disk.c (struct grub_disk_cache): Likewise.
1338 * commands/probe.c (options): Typo fix.
1340 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
1341 Increase to 0x5a to accommodate FAT32. Adjust other offsets
1343 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
1345 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
1346 the end of "Error" to make the message more readable.
1348 * boot/i386/pc/boot.S (kernel_segment): Remove.
1349 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
1352 * boot/i386/pc/boot.S (boot_version): Remove.
1353 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
1356 * include/grub/i386/pc/boot.h: Sort all offsets.
1357 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
1358 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
1359 * boot/i386/pc/boot.S: Assert location of every offset listed in
1360 include/grub/i386/pc/boot.h.
1362 2009-07-13 Pavel Roskin <proski@gnu.org>
1364 * include/grub/i386/coreboot/machine.h: Rename
1365 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
1366 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
1367 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
1369 * kern/dl.c: Force native word size to suppress warnings when
1372 * kern/device.c (grub_device_iterate): Change struct part_ent to
1373 hold the name, not a pointer to it. Use one grub_malloc() per
1374 partition, not two. Free partition_name if grub_malloc() fails.
1375 Set ents to NULL only before grub_partition_iterate() is called.
1377 2009-07-11 Bean <bean123ch@gmail.com>
1379 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
1382 2009-07-10 Bean <bean123ch@gmail.com>
1383 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
1385 * kern/ieee1275/openfw.c (grub_children_iterate)
1386 (grub_devalias_iterate): Fix size evaluation for property or path
1387 strings, which was broken since r2132.
1389 2009-07-07 Pavel Roskin <proski@gnu.org>
1391 * commands/search.c (search_file): Merge into ...
1392 (search_fs): ... this. Accept search type as argument.
1393 (grub_cmd_search): Pass search type to search_fs().
1395 * include/grub/util/console.h: New file.
1396 * util/console.c: Use it instead of grub/machine/console.h.
1397 * util/grub-emu.c: Likewise.
1399 * lib/arg.c (find_long_option): Remove.
1400 (find_long): Add `len' argument, make `s' const char *.
1401 (grub_arg_parse): Parse long options in place, not in a
1404 2009-07-06 Pavel Roskin <proski@gnu.org>
1406 * commands/search.c (search_fs): Fix potential NULL pointer
1409 * commands/search.c (search_fs): Replace QUID macro with quid_fn
1412 2009-07-06 Daniel Mierswa <impulze@impulze.org>
1414 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
1417 2009-07-05 Pavel Roskin <proski@gnu.org>
1419 * include/grub/i386/linux.h (struct linux_kernel_params):
1420 Restore padding3, it's still needed.
1422 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
1424 * util/osdetect.lua: Likewise.
1426 2009-07-05 Bean <bean123ch@gmail.com>
1428 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
1430 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
1431 (grub_lua_getenv): Likewise.
1432 (grub_lua_setenv): Likewise.
1433 (save_errno): New function.
1434 (push_result): Likewise.
1435 (grub_lua_enum_device): Likewise.
1436 (grub_lua_enum_file): Likewise.
1437 (grub_lua_file_open): Likewise.
1438 (grub_lua_file_close): Likewise.
1439 (grub_lua_file_seek): Likewise.
1440 (grub_lua_file_read): Likewise.
1441 (grub_lua_file_getline): Likewise.
1442 (grub_lua_file_getsize): Likewise.
1443 (grub_lua_file_getpos): Likewise.
1444 (grub_lua_file_eof): Likewise.
1445 (grub_lua_file_exist): Likewise.
1446 (grub_lua_add_menu): Likewise.
1448 * script/lua/grub_lua.h (isupper): New inline function.
1449 (islower): Likewise.
1450 (ispunct): Likewise.
1451 (isxdigit): Likewise.
1452 (strcspn): Change to normal function.
1453 (strpbkr): New function declaration.
1456 * script/lua/grub_main.c (scan_str): New function.
1457 (strcspn): Likewise.
1458 (strpbrk): Likewise.
1461 * script/lua/linit.c (lualibs): Enable the string library.
1463 * util/osdetect.lua: New file.
1465 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
1467 * include/grub/i386/linux.h (struct linux_kernel_params): Add
1468 `capabilities' member.
1470 2009-07-02 Pavel Roskin <proski@gnu.org>
1472 * genparttoollist.sh: Add missing newline at the end.
1474 2009-07-01 Pavel Roskin <proski@gnu.org>
1476 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
1478 * util/hostdisk.c (open_device): Remove `const' from
1479 `sysctl_size', as sysctlbyname() can change it (in this case it
1480 doesn't actually happen).
1482 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
1483 using signed long int constants.
1485 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
1486 constant to avoid a warning on FreeBSD.
1488 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
1491 * Makefile.in: Install include/grub/machine symlink.
1493 * Makefile.in: When installing symlinks, use "cp -fR", which
1494 works on FreeBSD and MacOSX.
1495 From Yves Blusseau <cl7m42e02@sneakemail.com>
1497 * kern/dl.c (grub_dl_resolve_symbol): Make static.
1498 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
1500 * util/misc.c: Move grub_reboot() and grub_halt() ...
1501 * util/grub-emu.c: ... here. Make main_env static.
1502 * include/grub/util/misc.h: Remove main_env.
1504 * kern/mm.c: Use correct format to print size_t.
1506 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
1507 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
1508 * kern/powerpc/dl.c: Likewise.
1509 * kern/sparc64/dl.c: Likewise.
1510 * kern/x86_64/dl.c: Likewise.
1512 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1514 Fix grub-emu build on sparc64-ieee1275.
1516 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
1517 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
1519 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1521 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
1522 (grub_reboot, grub_halt): New functions.
1524 * util/i386/pc/misc.c: Delete. Update all users.
1525 * util/sparc64/ieee1275/misc.c: Likewise.
1526 * util/powerpc/ieee1275/misc.c: Likewise.
1528 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1530 * conf/i386.rmk (setjmp_mod_SOURCES)
1531 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
1532 * conf/common.rmk (setjmp_mod_SOURCES)
1533 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
1534 to use $(target_cpu).
1535 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
1536 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
1537 * conf/powerpc-ieee1275.rmk: Likewise.
1538 * conf/sparc64-ieee1275.rmk: Likewise.
1540 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
1541 $(target_cpu) for kern/$(target_cpu)/dl.c.
1542 * conf/i386-efi.rmk: Likewise.
1543 * conf/i386-ieee1275.rmk: Likewise.
1544 * conf/x86_64-efi.rmk: Likewise.
1545 * conf/i386-coreboot.rmk: Likewise.
1546 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
1547 $(target_cpu) for kern/$(target_cpu)/dl.c and for
1548 kern/$(target_cpu)/cache.S.
1549 * conf/sparc64-ieee1275.rmk: Likewise.
1551 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
1553 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
1554 type to `grub_uint8_t', and adjust `padding9' accordingly.
1556 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
1558 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
1560 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
1561 assembly in final jump, using register constraints.
1563 (grub_linux_boot): For text mode, initialize `have_vga' using
1564 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
1566 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
1567 right before the final jump.
1569 Set `video_mode' to 0x3.
1571 Document initialization of `video_page', `video_mode' and
1574 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
1576 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
1577 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
1578 and set GRUB_LINUX_FLAG_QUIET appropriately.
1580 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
1582 Fix build on Debian / sparc.
1584 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
1586 2009-06-28 Pavel Roskin <proski@gnu.org>
1588 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
1591 * util/grub.d/10_linux.in: Match SUSE style initrd names.
1593 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
1595 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
1598 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
1602 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
1603 file can't be opened. grub_file_open() is already supposed to set
1604 grub_errno / grub_errmsg appropriately.
1605 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
1607 2009-06-27 Pavel Roskin <proski@gnu.org>
1608 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
1610 * include/grub/dl.h: Include grub/elf.h.
1611 (struct grub_dl): Add symtab field.
1612 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
1613 GRUB_MODULES_MACHINE_READONLY.
1614 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
1615 of the header for read-only modules.
1616 (grub_dl_unload): Free mod->symtab for read-only modules.
1617 * kern/i386/dl.c: Use mod->symtab.
1618 * kern/powerpc/dl.c: Likewise.
1619 * kern/sparc64/dl.c: Likewise.
1620 * kern/x86_64/dl.c: Likewise.
1622 * conf/i386-qemu.rmk: New file.
1623 * kern/i386/qemu/startup.S: Likewise.
1624 * kern/i386/qemu/mmap.c: Likewise.
1625 * boot/i386/qemu/boot.S: Likewise.
1626 * include/grub/i386/qemu/time.h: Likewise.
1627 * include/grub/i386/qemu/serial.h: Likewise.
1628 * include/grub/i386/qemu/kernel.h: Likewise.
1629 * include/grub/i386/qemu/console.h: Likewise.
1630 * include/grub/i386/qemu/boot.h: Likewise.
1631 * include/grub/i386/qemu/init.h: Likewise.
1632 * include/grub/i386/qemu/machine.h: Likewise.
1633 * include/grub/i386/qemu/loader.h: Likewise.
1634 * include/grub/i386/qemu/memory.h: Likewise.
1636 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
1637 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
1638 [qemu] (pkglib_IMAGES): Add `boot.img'.
1639 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
1640 [qemu] (boot_img_FORMAT): New variables.
1641 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
1642 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
1643 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
1644 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
1645 [qemu] (kernel_img_FORMAT): New variables.
1647 * configure.ac: Recognise `i386-qemu'.
1649 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
1650 (for no compression).
1651 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
1652 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
1653 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
1654 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
1657 2009-06-27 Pavel Roskin <proski@gnu.org>
1659 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
1661 * efiemu/prepare32.c: Likewise.
1662 * efiemu/prepare64.c: Likewise.
1664 2009-06-26 Pavel Roskin <proski@gnu.org>
1666 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
1667 * include/grub/elf.h: Define symbols without "32" or "64" based
1668 on GRUB_TARGET_WORDSIZE.
1669 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
1670 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
1672 * efiemu/loadcore64.c: Likewise.
1673 * loader/i386/bsd32.c: Likewise.
1674 * loader/i386/bsd64.c: Likewise.
1675 * kern/dl.c: Remove own ELF definitions.
1676 * util/i386/efi/grub-mkimage.c: Likewise.
1678 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
1680 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
1681 segment 0x0 unconditionally, because the reference generated by
1682 GAS is an absolute address.
1684 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1686 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
1687 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
1689 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1691 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
1692 indexes. Check for -f explicitly.
1693 (search_file): Improve error message.
1694 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
1696 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1698 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
1699 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
1701 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1703 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
1704 * conf/i386-ieee1275.rmk: Likewise.
1705 * conf/i386-coreboot.rmk: Likewise.
1707 * kern/i386/pc/startup.S (grub_stop): Remove function.
1708 * kern/i386/ieee1275/startup.S: Likewise.
1709 * kern/i386/coreboot/startup.S: Likewise.
1710 * kern/i386/misc.S (grub_stop): New function.
1712 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1714 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
1715 * kern/i386/realmode.S (real_to_prot): ... to here.
1717 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
1719 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
1721 (kernel_elf_SOURCES): Rename to ...
1722 (kernel_img_SOURCES): ... this.
1723 (kernel_elf_HEADERS): Rename to ...
1724 (kernel_img_HEADERS): ... this. Update all users.
1725 (kernel_elf_ASFLAGS): Rename to ...
1726 (kernel_img_ASFLAGS): ... this.
1727 (kernel_elf_CFLAGS): Rename to ...
1728 (kernel_img_CFLAGS): ... this.
1729 (kernel_elf_LDFLAGS): Rename to ...
1730 (kernel_img_LDFLAGS): ... this.
1731 * conf/i386-coreboot.rmk: Likewise.
1732 * conf/powerpc-ieee1275.rmk: Likewise.
1734 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
1737 2009-06-21 Pavel Roskin <proski@gnu.org>
1739 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
1740 to match nested functions.
1741 * loader/sparc64/ieee1275/linux.c: Likewise.
1743 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
1745 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
1747 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
1750 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
1752 Fix asm file handling on ELF, and remove workarounds.
1754 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
1755 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
1756 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
1757 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
1759 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1761 Load BSD ELF modules
1763 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
1764 and loader/i386/bsd64.c
1765 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
1766 (FREEBSD_MODTYPE_ELF_MODULE): New definition
1767 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
1768 (grub_freebsd_load_elfmodule32): New declaration
1769 (grub_freebsd_load_elfmoduleobj64): Likewise
1770 (grub_freebsd_load_elf_meta32): Likewise
1771 (grub_freebsd_load_elf_meta64): Likewise
1772 (grub_freebsd_add_meta): Likewise
1773 (grub_freebsd_add_meta_module): Likewise
1774 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
1775 (grub_freebsd_add_meta_module): Likewise and move module-specific
1776 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
1777 (grub_cmd_freebsd): Add elf-kernel specific parts
1778 based on grub_freebsd_add_meta_module
1779 (grub_cmd_freebsd_module): Add type parsing moved from
1780 grub_freebsd_add_meta_module
1781 (grub_cmd_freebsd_module_elf): New function
1782 (cmd_freebsd_module_elf): New variable
1783 (GRUB_MOD_INIT): Register freebsd_module_elf
1784 * loader/i386/bsd32.c: New file
1785 * loader/i386/bsd64.c: Likewise
1786 * loader/i386/bsdXX.c: Likewise
1787 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
1788 (grub_elf64_load): Likewise
1789 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
1791 (grub_elf64_load_hook_t): Likewise
1793 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
1795 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
1797 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
1798 don't write a menu entry for recovery mode.
1800 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
1802 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
1803 after it's no longer needed.
1805 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
1807 * include/grub/i386/loader.h (grub_linux_prot_size)
1808 (grub_linux_tmp_addr, grub_linux_real_addr)
1809 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
1810 GRUB_MACHINE_PCBIOS.
1811 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
1812 common grub_util_info() call to ...
1813 (generate_image): ... here.
1814 Fix use of uninitialized memory, comparison of signed with
1815 unsigned integers and memory leak.
1816 Remove bogus module address message.
1818 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1820 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
1822 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
1824 2009-06-19 Pavel Roskin <proski@gnu.org>
1826 * configure.ac: Remove stray AC_MSG_CHECKING.
1828 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1830 * disk/scsi.c (grub_scsi_open): use continue instead of big if
1832 2009-06-18 Pavel Roskin <proski@gnu.org>
1834 * conf/common.rmk: Add fs_file.mod.
1835 * disk/fs_file.c: New file.
1836 * include/grub/disk.h (enum grub_disk_dev_id): Add
1837 GRUB_DISK_DEVICE_FILE_ID.
1839 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1841 Fix build with Apple's toolchain. Part 2
1843 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
1846 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1848 Fix build with Apple's toolchain. Part 1
1850 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
1852 * configure.ac: remove a leftover AC_MSG_RESULT
1853 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
1856 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1860 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
1861 (decomp_block): initialize ch
1862 use grub_memcpy instead of memcpy
1864 2009-06-17 Pavel Roskin <proski@gnu.org>
1866 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
1867 version, use declarations needed to use vga_text as the startup
1870 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
1871 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
1873 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
1874 and grub_at_keyboard_fini(), it's done on module load and
1877 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
1879 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
1880 file can't be found.
1881 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
1883 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1885 Fix newline handling
1887 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
1888 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
1889 (grub_script_yylex): don't segfault on unterminated script
1890 newline terminates command and variable
1892 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1894 avoid double grub_adjust_range call. Bug reported by David Simner
1896 * kern/disk.c (grub_disk_write): change to raw disk access before
1899 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
1901 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
1902 spaces, for the benefit of help2man.
1903 * util/i386/efi/grub-mkimage.c (usage): Likewise.
1905 2009-06-16 Pavel Roskin <proski@gnu.org>
1907 * kern/i386/halt.c: Include grub/machine/init.h.
1908 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
1910 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
1912 * util/grub.d/30_os-prober.in: Use ${root} in the generated
1915 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
1917 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
1920 2009-06-16 Pavel Roskin <proski@gnu.org>
1922 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
1923 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
1924 save %dx, we only need %dl and we never change it.
1925 * boot/i386/pc/cdboot.S: Don't set the root drive.
1926 * boot/i386/pc/pxeboot.S: Likewise.
1927 * include/grub/i386/pc/boot.h: Remove
1928 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
1929 GRUB_BOOT_MACHINE_DRIVE_CHECK.
1930 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
1931 * kern/i386/pc/init.c (make_install_device): Remove references
1933 * kern/i386/pc/startup.S: Likewise.
1934 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
1936 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1940 * commands/xnu_uuid.c: new file
1941 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
1942 (xnu_uuid_mod_SOURCES): new variable
1943 (xnu_uuid_mod_CFLAGS): likewise
1944 (xnu_uuid_mod_LDFLAGS): likewise
1945 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
1946 * conf/i386-ieee1275.rmk: likewise
1947 * conf/i386-pc.rmk: likewise
1948 * conf/powerpc-ieee1275.rmk: likewise
1949 * conf/sparc64-ieee1275.rmk: likewise
1950 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
1952 2009-06-16 Pavel Roskin <proski@gnu.org>
1954 * configure.ac: Avoid '==' in test command, it's not portable.
1956 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1960 * commands/probe.c: new file
1961 * conf/common.rmk (pkglib_MODULES): add probe.mod
1962 (probe_mod_SOURCES): new variable
1963 (probe_mod_CFLAGS): likewise
1964 (probe_mod_LDFLAGS): likewise
1965 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
1966 * conf/i386-ieee1275.rmk: likewise
1967 * conf/i386-pc.rmk: likewise
1968 * conf/powerpc-ieee1275.rmk: likewise
1969 * conf/sparc64-ieee1275.rmk: likewise
1971 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1973 Fix handling of string like \"hello\" and "a
1976 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
1977 (grub_script_yylex): fix parsing of quoting, escaping and newline
1979 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1981 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
1984 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
1986 * util/grub-mkconfig.in: Fix parsing of --output option.
1988 2009-06-12 Pavel Roskin <proski@gnu.org>
1990 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
1991 genmk.rb don't need to be generated or installed.
1993 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1995 * commands/i386/pc/drivemap_int13h.S: add more comments
1997 2009-06-11 Pavel Roskin <proski@gnu.org>
1999 * Makefile.in (uninstall): Uninstall manuals.
2001 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
2002 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
2003 and update-grub_lib in two places.
2004 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2006 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2009 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2010 `entry_lo' to fix variable shadowing.
2012 2009-06-11 Christian Franke <franke@computer.org>
2014 * kern/misc.c (__enable_execute_stack): Add missing return type
2015 to prevent gcc warning.
2017 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2019 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2021 2009-06-11 Pavel Roskin <proski@gnu.org>
2023 * Makefile.in: Don't rely on any scripts being executable.
2024 Always use $(SHELL) to run shell scripts.
2026 * configure.ac: Always define ___main if using -nostdlib. This
2027 fixes tests on Cygwin.
2029 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2033 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2034 is in bytes and not in blocks
2036 2009-06-11 Pavel Roskin <proski@gnu.org>
2038 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2041 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2043 * util/grub.d/30_os-prober.in: Fix a comment. Source
2044 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2045 to set the root device. Place drivemap command in the generated
2048 2009-06-11 Pavel Roskin <proski@gnu.org>
2050 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2051 have long been resolved.
2053 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
2055 * util/grub.d/10_linux.in: Capitalise "Linux".
2057 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
2059 2009-06-11 Pavel Roskin <proski@gnu.org>
2061 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
2062 fix a gcc warning and ensure that the function won't ever exit.
2064 * kern/i386/ieee1275/init.c: Add missing prototype for
2067 * loader/ieee1275/multiboot2.c [__i386__]: Include
2068 grub/cpu/multiboot.h.
2070 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
2071 casts to short - they are not portable and cause warnings. Fix
2072 use of uninitialized values in input_buf. Use ARRAY_SIZE.
2074 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2078 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
2080 (grub_get_root_biosnumber_saved): new variable
2081 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
2082 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
2083 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
2084 %dx after the call if necessary
2085 * conf/common.rmk (pkglib_MODULES): remove boot.mod
2086 (boot_mod_SOURCES): remove
2087 (boot_mod_CFLAGS): remove
2088 (boot_mod_LDFLAGS): remove
2089 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
2090 (boot_mod_SOURCES): new variable
2091 (boot_mod_CFLAGS): likewise
2092 (boot_mod_LDFLAGS): likewise
2093 * conf/i386-efi.rmk: likewise
2094 * conf/i386-ieee1275.rmk: likewise
2095 * conf/i386-pc.rmk: likewise
2096 * conf/powerpc-ieee1275.rmk: likewise
2097 * conf/sparc64-ieee1275.rmk: likewise
2098 * conf/x86_64-efi.rmk: likewise
2099 * include/grub/i386/pc/biosnum.h: new file
2100 * lib/i386/pc/biosnum.c: likewise
2101 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
2102 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
2103 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
2105 2009-06-10 Pavel Roskin <proski@gnu.org>
2107 * io/gzio.c (test_header): Don't reuse one buffer for all data.
2108 Use separate variables. Read only the file size at the end, but
2109 not the checksum that we don't use.
2111 * kern/file.c (grub_file_read): Use void pointer for the buffer.
2114 * kern/ieee1275/openfw.c: Remove libc includes.
2115 * kern/ieee1275/cmain.c: Likewise.
2116 * include/grub/ieee1275/ieee1275.h: Likewise.
2118 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
2121 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2123 * Makefile.in: Remove all trailing whitespace.
2124 * conf/i386-pc.rmk: Likewise.
2125 * conf/powerpc-ieee1275.rmk: Likewise.
2126 * conf/sparc64-ieee1275.rmk: Likewise.
2127 * docs/grub.texi: Likewise.
2128 * docs/texinfo.tex: Likewise.
2129 * disk/fs_uuid.c: Likewise.
2130 * disk/lvm.c: Likewise.
2131 * disk/scsi.c: Likewise.
2132 * disk/ata.c: Likewise.
2133 * disk/ieee1275/ofdisk.c: Likewise.
2134 * disk/i386/pc/biosdisk.c: Likewise.
2135 * disk/host.c: Likewise.
2136 * disk/raid.c: Likewise.
2137 * disk/efi/efidisk.c: Likewise.
2138 * disk/usbms.c: Likewise.
2139 * disk/memdisk.c: Likewise.
2140 * disk/loopback.c: Likewise.
2141 * kern/powerpc/dl.c: Likewise.
2142 * kern/device.c: Likewise.
2143 * kern/dl.c: Likewise.
2144 * kern/sparc64/dl.c: Likewise.
2145 * kern/ieee1275/ieee1275.c: Likewise.
2146 * kern/term.c: Likewise.
2147 * kern/fs.c: Likewise.
2148 * kern/i386/dl.c: Likewise.
2149 * kern/i386/pc/startup.S: Likewise.
2150 * kern/i386/pc/init.c: Likewise.
2151 * kern/i386/pc/mmap.c: Likewise.
2152 * kern/i386/pc/lzo1x.S: Likewise.
2153 * kern/i386/ieee1275/init.c: Likewise.
2154 * kern/i386/realmode.S: Likewise.
2155 * kern/i386/tsc.c: Likewise.
2156 * kern/partition.c: Likewise.
2157 * kern/corecmd.c: Likewise.
2158 * kern/file.c: Likewise.
2159 * kern/efi/efi.c: Likewise.
2160 * kern/efi/init.c: Likewise.
2161 * kern/efi/mm.c: Likewise.
2162 * kern/main.c: Likewise.
2163 * kern/err.c: Likewise.
2164 * kern/env.c: Likewise.
2165 * kern/disk.c: Likewise.
2166 * kern/generic/millisleep.c: Likewise.
2167 * kern/generic/rtc_get_time_ms.c: Likewise.
2168 * kern/misc.c: Likewise.
2169 * kern/parser.c: Likewise.
2170 * genmk.rb: Likewise.
2171 * configure.ac: Likewise.
2172 * boot/i386/pc/diskboot.S: Likewise.
2173 * boot/i386/pc/pxeboot.S: Likewise.
2174 * boot/i386/pc/boot.S: Likewise.
2175 * boot/i386/pc/lnxboot.S: Likewise.
2176 * boot/i386/pc/cdboot.S: Likewise.
2177 * parttool/pcpart.c: Likewise.
2178 * video/readers/tga.c: Likewise.
2179 * video/video.c: Likewise.
2180 * video/bitmap.c: Likewise.
2181 * lib/envblk.c: Likewise.
2182 * lib/i386/setjmp.S: Likewise.
2183 * fs/xfs.c: Likewise.
2184 * fs/afs.c: Likewise.
2185 * fs/fat.c: Likewise.
2186 * fs/ntfs.c: Likewise.
2187 * fs/udf.c: Likewise.
2188 * fs/affs.c: Likewise.
2189 * fs/iso9660.c: Likewise.
2190 * fs/hfs.c: Likewise.
2191 * fs/fshelp.c: Likewise.
2192 * fs/ext2.c: Likewise.
2193 * fs/jfs.c: Likewise.
2194 * fs/reiserfs.c: Likewise.
2195 * fs/hfsplus.c: Likewise.
2196 * fs/minix.c: Likewise.
2197 * fs/cpio.c: Likewise.
2198 * fs/sfs.c: Likewise.
2199 * fs/ufs.c: Likewise.
2200 * efiemu/prepare.c: Likewise.
2201 * efiemu/loadcore_common.c: Likewise.
2202 * efiemu/runtime/efiemu.sh: Likewise.
2203 * efiemu/runtime/efiemu.S: Likewise.
2204 * efiemu/runtime/efiemu.c: Likewise.
2205 * efiemu/pnvram.c: Likewise.
2206 * efiemu/main.c: Likewise.
2207 * efiemu/i386/pc/cfgtables.c: Likewise.
2208 * efiemu/i386/loadcore64.c: Likewise.
2209 * efiemu/i386/loadcore32.c: Likewise.
2210 * efiemu/loadcore.c: Likewise.
2211 * efiemu/symbols.c: Likewise.
2212 * efiemu/mm.c: Likewise.
2213 * include/grub/autoefi.h: Likewise.
2214 * include/grub/datetime.h: Likewise.
2215 * include/grub/term.h: Likewise.
2216 * include/grub/hfs.h: Likewise.
2217 * include/grub/lvm.h: Likewise.
2218 * include/grub/i386/tsc.h: Likewise.
2219 * include/grub/i386/linux.h: Likewise.
2220 * include/grub/i386/xnu.h: Likewise.
2221 * include/grub/i386/efiemu.h: Likewise.
2222 * include/grub/i386/pc/biosdisk.h: Likewise.
2223 * include/grub/i386/pc/memory.h: Likewise.
2224 * include/grub/i386/pc/vbe.h: Likewise.
2225 * include/grub/parttool.h: Likewise.
2226 * include/grub/video.h: Likewise.
2227 * include/grub/memory.h: Likewise.
2228 * include/grub/fs.h: Likewise.
2229 * include/grub/partition.h: Likewise.
2230 * include/grub/xnu.h: Likewise.
2231 * include/grub/efi/api.h: Likewise.
2232 * include/grub/efi/pe32.h: Likewise.
2233 * include/grub/efi/memory.h: Likewise.
2234 * include/grub/multiboot.h: Likewise.
2235 * include/grub/usbdesc.h: Likewise.
2236 * include/grub/multiboot2.h: Likewise.
2237 * include/grub/acpi.h: Likewise.
2238 * include/grub/efiemu/efiemu.h: Likewise.
2239 * include/grub/disk.h: Likewise.
2240 * include/grub/ieee1275/ieee1275.h: Likewise.
2241 * include/grub/net.h: Likewise.
2242 * include/grub/machoload.h: Likewise.
2243 * include/grub/macho.h: Likewise.
2244 * include/multiboot.h: Likewise.
2245 * genmoddep.awk: Likewise.
2246 * normal/main.c: Likewise.
2247 * normal/menu_entry.c: Likewise.
2248 * normal/menu_viewer.c: Likewise.
2249 * normal/completion.c: Likewise.
2250 * normal/cmdline.c: Likewise.
2251 * normal/misc.c: Likewise.
2252 * normal/datetime.c: Likewise.
2253 * bus/usb/usbtrans.c: Likewise.
2254 * bus/usb/ohci.c: Likewise.
2255 * bus/usb/uhci.c: Likewise.
2256 * bus/usb/usb.c: Likewise.
2257 * mmap/efi/mmap.c: Likewise.
2258 * mmap/i386/pc/mmap_helper.S: Likewise.
2259 * mmap/i386/pc/mmap.c: Likewise.
2260 * mmap/i386/mmap.c: Likewise.
2261 * mmap/i386/uppermem.c: Likewise.
2262 * mmap/mmap.c: Likewise.
2263 * commands/acpi.c: Likewise.
2264 * commands/echo.c: Likewise.
2265 * commands/blocklist.c: Likewise.
2266 * commands/loadenv.c: Likewise.
2267 * commands/usbtest.c: Likewise.
2268 * commands/boot.c: Likewise.
2269 * commands/parttool.c: Likewise.
2270 * commands/search.c: Likewise.
2271 * commands/cat.c: Likewise.
2272 * commands/i386/pc/play.c: Likewise.
2273 * commands/i386/pc/drivemap.c: Likewise.
2274 * commands/i386/pc/vbeinfo.c: Likewise.
2275 * commands/i386/pc/acpi.c: Likewise.
2276 * commands/i386/pc/vbetest.c: Likewise.
2277 * commands/ls.c: Likewise.
2278 * commands/cmp.c: Likewise.
2279 * commands/test.c: Likewise.
2280 * commands/efi/acpi.c: Likewise.
2281 * commands/gptsync.c: Likewise.
2282 * commands/help.c: Likewise.
2283 * partmap/amiga.c: Likewise.
2284 * partmap/apple.c: Likewise.
2285 * partmap/acorn.c: Likewise.
2286 * partmap/pc.c: Likewise.
2287 * partmap/sun.c: Likewise.
2288 * partmap/gpt.c: Likewise.
2289 * script/sh/lexer.c: Likewise.
2290 * script/sh/function.c: Likewise.
2291 * font/font.c: Likewise.
2292 * font/font_cmd.c: Likewise.
2293 * loader/powerpc/ieee1275/linux.c: Likewise.
2294 * loader/efi/chainloader.c: Likewise.
2295 * loader/multiboot_loader.c: Likewise.
2296 * loader/macho.c: Likewise.
2297 * loader/i386/multiboot.c: Likewise.
2298 * loader/i386/linux.c: Likewise.
2299 * loader/i386/pc/linux.c: Likewise.
2300 * loader/i386/pc/multiboot2.c: Likewise.
2301 * loader/i386/pc/chainloader.c: Likewise.
2302 * loader/i386/pc/xnu.c: Likewise.
2303 * loader/i386/bsd_trampoline.S: Likewise.
2304 * loader/i386/efi/linux.c: Likewise.
2305 * loader/i386/multiboot_elfxx.c: Likewise.
2306 * loader/i386/bsd_helper.S: Likewise.
2307 * loader/i386/bsd.c: Likewise.
2308 * loader/i386/linux_trampoline.S: Likewise.
2309 * loader/i386/xnu_helper.S: Likewise.
2310 * loader/i386/xnu.c: Likewise.
2311 * loader/i386/bsd_pagetable.c: Likewise.
2312 * loader/i386/multiboot_helper.S: Likewise.
2313 * loader/xnu.c: Likewise.
2314 * loader/xnu_resume.c: Likewise.
2315 * io/gzio.c: Likewise.
2316 * term/efi/console.c: Likewise.
2317 * term/terminfo.c: Likewise.
2318 * term/ieee1275/ofconsole.c: Likewise.
2319 * term/i386/pc/serial.c: Likewise.
2320 * term/i386/pc/vesafb.c: Likewise.
2321 * term/i386/pc/vga.c: Likewise.
2322 * term/usb_keyboard.c: Likewise.
2323 * term/gfxterm.c: Likewise.
2324 * aclocal.m4: Likewise.
2325 * util/lvm.c: Likewise.
2326 * util/grub.d/30_os-prober.in: Likewise.
2327 * util/grub.d/10_hurd.in: Likewise.
2328 * util/console.c: Likewise.
2329 * util/grub-macho2img.c: Likewise.
2330 * util/grub-probe.c: Likewise.
2331 * util/hostfs.c: Likewise.
2332 * util/i386/pc/grub-mkimage.c: Likewise.
2333 * util/i386/pc/grub-setup.c: Likewise.
2334 * util/i386/efi/grub-mkimage.c: Likewise.
2335 * util/grub-mkconfig.in: Likewise.
2336 * util/raid.c: Likewise.
2337 * util/resolve.c: Likewise.
2338 * util/grub-mkdevicemap.c: Likewise.
2339 * util/grub-emu.c: Likewise.
2340 * util/getroot.c: Likewise.
2341 * util/hostdisk.c: Likewise.
2342 * util/usb.c: Likewise.
2343 * util/grub-editenv.c: Likewise.
2344 * util/misc.c: Likewise.
2346 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2348 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
2349 `genparttoollist.sh'.
2350 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
2351 Add `*.sh' to the list find searches for and change `mdate.sh'
2354 2009-06-10 Pavel Roskin <proski@gnu.org>
2356 * include/grub/multiboot2.h: Provide compatibility defines for
2358 * include/multiboot2.h: Include stdint.h only if needed, using
2360 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
2362 * loader/ieee1275/multiboot2.c: Likewise.
2363 * loader/multiboot2.c: Likewise.
2364 * loader/multiboot_loader.c: Likewise.
2366 * configure.ac: Use -nostdlib when probing for the target. It
2367 should not be required to have libc for the target.
2369 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
2370 they fail without libc headers for the target.
2371 * include/grub/powerpc/libgcc.h: Use weak attribute for all
2373 * include/grub/sparc64/libgcc.h: Likewise. Don't use
2374 preprocessor conditionals.
2376 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
2377 build system doesn't need to be aware of the tar.c internals.
2379 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
2381 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
2383 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
2385 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
2386 disk limit to 26 for IDE, Virtio, Xen and SCSI.
2388 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
2390 * util/i386/pc/grub-install.in: Change the error message if UUIDs
2391 aren't available if ata.mod gets used.
2393 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
2395 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
2396 initialising controller.
2397 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2399 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2401 * util/i386/pc/grub-install.in: Add a parameter --disk-module
2402 to choose between ata and biosdisk module on i386-pc.
2404 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
2406 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
2407 Subclass and Programming Interface fields in terms of the 3 byte
2408 Class Code register.
2409 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
2411 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
2412 interface is OHCI. Add grub_dprintf for symmetry with
2414 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
2415 interface is UHCI. Add interf variable for programming
2416 interface. Print interface with class/subclass.
2418 * bus/usb/ohci.c: Set interf with correct field.
2420 * bus/usb/uhci.c: Remove unneeded doubled lines.
2421 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
2422 Remove whitespace inside comment.
2424 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
2426 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
2427 as fallback an equivalent option without depth.
2429 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2431 Not fail if unable to retrieve C/H/S on LBA disks
2433 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
2434 if unable to retrieve C/H/S on LBA disks
2436 2009-06-08 Pavel Roskin <proski@gnu.org>
2438 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
2441 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2443 * Makefile.in (uninstall): Remove all $lib_DATA files.
2445 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2447 Bugfix: install on partitionless device
2449 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
2452 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2454 * Makefile.in (uninstall): Remove all $include_DATA files.
2456 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
2458 * commands/true.c: New file. Implement the true and false commands.
2459 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
2460 (true_mod_SOURCES): New variable.
2461 (true_mod_CFLAGS): Likewise.
2462 (true_mod_LDFLAGS): Likewise.
2464 2009-06-05 Colin D Bennett <colin@gibibit.com>
2466 Optimized font character lookup using binary search instead of linear
2467 search. Fonts now are required to have the character index ordered by
2470 * font/font.c (load_font_index): Verify that fonts have ordered
2472 (find_glyph): Use binary search instead of linear search to find a
2473 character in a font.
2475 2009-06-05 Michael Scherer <misc@mandriva.org>
2477 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
2478 uses case sensitive btree.
2479 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
2480 only for case insensitive filesystems.
2482 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2484 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
2485 * conf/common.rmk (search_mod_CFLAGS): likewise
2487 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2489 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
2490 compensate a compiler bug
2492 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2494 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
2497 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2499 Definitions for creating asm symbols with Apple's CC
2501 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
2502 [APPLE_CC] (VARIABLE): likewise
2504 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2506 Disable lnxboot.img when compiled
2509 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
2510 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
2511 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
2512 [! APPLE_CC] (CODE_LENG): skip
2513 [! APPLE_CC] (setup_sects): likewise
2514 [! APPLE_CC]: skip filling
2516 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2518 Address in trampolines based on 32-bit registers when compiled
2521 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
2523 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
2525 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2527 Avoid aliases when compiling with Apple's CC for PCBIOS machine
2529 * kern/misc.c [APPLE_CC] (memcpy): new function
2530 [APPLE_CC] (memmove): likewise
2531 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
2532 (memcpy): define alias conditionally on !APPLE_CC
2535 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
2536 APPLE_CC are defined
2537 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
2538 (grub_assert_fail): make prototype conditional
2540 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2542 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
2544 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
2546 (CLEANFILES): add grub-macho2img
2547 (grub_macho2img_SOURCES): new variable
2548 * kern/i386/pc/startup.S (bss_start): new variable
2550 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
2551 * util/grub-macho2img.c: new file
2553 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2555 Use objconv when compiling with Apple's CC
2557 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
2558 (efiemu64.o): likewise
2559 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
2560 when compiling with Apple's CC
2561 (efiemu64_s.o): likewise
2562 * configure.ac: check for objconv when compiling with Apple's CC
2563 * genmk.rb: use objconv for modules when compiled with Apple's CC
2565 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2567 Define segment as well as section when compiling with
2570 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
2571 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
2572 (efiemu_convert_pointer): likewise
2573 (efiemu_set_virtual_address_map): likewise
2574 (efiemu_convert_pointer): likewise
2575 (efiemu_getcrc32): likewise
2576 (init_crc32_table): likewise
2578 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
2579 (GRUB_MOD_DEP): likewise
2581 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2583 Allow a compilation without -mcmodel=large
2585 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
2586 when compiled without -mcmodel=large
2587 (filter_memory_map): remove memory post 4 GiB when compiled
2588 without -mcmodel=large
2589 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
2590 TARGET_CFLAGS when -mcmodel=large isn't supported
2592 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2594 Remove nested functions in efiemu core
2596 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
2598 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2600 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
2602 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
2604 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
2606 (grub_cpu_is_tsc_supported): likewise
2607 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
2609 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2611 Absolute addressing through constant with Apple's cc
2613 * kern/i386/pc/startup.S: Define necessary constants
2614 and address through it when using ABS with Apple's CC
2615 * boot/i386/pc/diskboot.S: likewise
2616 * boot/i386/pc/boot.S: likewise
2617 * boot/i386/pc/lnxboot.S: likewise
2618 * boot/i386/pc/cdboot.S: likewise
2619 * mmap/i386/pc/mmap_helper.S: likewise
2620 * commands/i386/pc/drivemap_int13h.S: likewise
2622 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2624 Check if compiler is apple cc
2626 * Makefile.in (ASFLAGS): new variable
2627 (TARGET_ASFLAGS): likewise
2628 (TARGET_MODULE_FORMAT): likewise
2629 (TARGET_APPLE_CC): likewise
2631 (TARGET_IMG_CFLAGS): likewise
2632 (TARGET_CPPFLAGS): add includedir
2633 * configure.ac: call grub_apple_cc and grub_apple_target_cc
2634 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
2635 Check for linker script only if compiler isn't Apple's CC
2636 (TARGET_MODULE_FORMAT): set
2637 (TARGET_APPLE_CC): likewise
2638 (TARGET_ASFLAGS): likewise
2640 Check for objcopy only if compiler isn't Apple's CC
2641 Check for BSS symbol only if compiler isn't Apple's CC
2642 * genmk.rb: adapt nm options if we use Apple's utils
2643 * aclocal.m4 (grub_apple_cc): new test
2644 (grub_apple_target_cc): likewise
2646 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2648 Simplify sed expressions and improve awk
2650 * Makefile.in (install-local): simplify sed expression
2651 * gencmdlist.sh: likewise
2652 * genmoddep.awk: avoid adding module as a dependency of itself
2654 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2656 Add missing start symbols
2658 * boot/i386/pc/boot.S: add start
2659 * boot/i386/pc/pxeboot.S: likewise
2661 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2663 Fix wrong assumptions with grub-mkimage on EFI
2665 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
2666 (relocate_addresses): consider both r_addend and value at offset
2667 (make_mods_section): zerofill modinfo and header
2668 (convert_elf): write prefix here
2670 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2672 Use .asciz instead of .string
2674 * i386/pc/diskboot.S: use .asciz instead of .string
2675 * i386/pc/boot.S: likewise
2676 * include/grub/dl.h (GRUB_MOD_DEP): likewise
2677 (GRUB_MOD_NAME): likewise
2679 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2683 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
2684 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
2685 (grub_video_setup): remove
2686 (grub_video_set_mode): new prototype
2687 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
2689 (linux_vesafb_res): compile only on PCBIOS
2690 (grub_linux_boot): support gfxpayload
2691 * loader/i386/pc/xnu.c (video_hook): new function
2692 (grub_xnu_set_video): support gfxpayload
2693 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
2694 (DEFAULT_VIDEO_HEIGHT): likewise
2695 (DEFAULT_VIDEO_FLAGS): likewise
2696 (DEFAULT_VIDEO_MODE): new definition
2697 (video_hook): new function
2698 (grub_gfxterm_init): use grub_video_set_mode
2699 * util/grub.d/30_os-prober.in: remove explicit modesetting before
2701 * video/video.c (grub_video_setup): removed
2702 (grub_video_set_mode): new function based on grub_gfxterm_init and
2705 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2707 Avoid calling biosdisk in drivemap
2709 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
2710 (revparse_biosdisk): likewise
2711 (list_mappings): derive name from id directly
2712 (grub_cmd_drivemap): use tryparse_diskstring
2714 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2718 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
2719 (grub_lexer_param): add tokenonhold
2720 (grub_script_create_cmdline): remove cmdline. All callers updated
2721 (grub_script_function_create): make functionname
2722 grub_script_arg. All callers updated
2723 (grub_script_execute_argument_to_string): new prototype
2724 * kern/parser.c (state_transitions): reorder
2725 (grub_parser_cmdline_state): fix a bug and make more compact
2726 * script/sh/execute.c (grub_script_execute_argument_to_string):
2728 (grub_script_execute_cmdline): use new format
2729 * script/sh/function.c (grub_script_function_create): make functionname
2730 grub_script_arg. All callers updated
2731 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
2732 (grub_script_yylex): remove
2733 (grub_script_yylex2): renamed to ...
2734 (grub_script_yylex): ...renamed
2735 parse the expressions like a${b}c
2736 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
2737 (GRUB_PARSER_TOKEN_VAR): remove
2738 (GRUB_PARSER_TOKEN_NAME): likewise
2739 ("if"): declare as typeless
2741 ("function"): likewise
2746 (argument): likewise
2747 (script): accept empty scripts and make exit on error
2748 (arguments): use GRUB_PARSER_TOKEN_ARG
2749 (function): likewise
2750 (command): move error handling to script
2751 (menuentry): move grub_script_lexer_ref before
2752 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
2753 argument. All callers updated
2755 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
2757 Prevent GRUB from probing floppies during boot.
2759 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
2760 * commands/search.c (options): Add --no-floppy.
2761 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
2762 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
2763 --no-floppy when searching for UUIDs.
2765 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
2767 Simplify the code duplication in commands/search.c.
2769 * commands/search.c (search_label, search_fs_uuid): Merge into ...
2770 (search_fs): ... this. Update all users.
2772 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
2774 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
2776 2009-05-28 Pavel Roskin <proski@gnu.org>
2778 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
2779 Remove the original symlink explicitly.
2781 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
2782 just one slash. That's how grub_fshelp_find_file() does it.
2784 2009-05-26 Pavel Roskin <proski@gnu.org>
2786 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
2789 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
2792 2009-05-25 Christian Franke <franke@computer.org>
2794 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
2796 (grub_atapi_identify): Add wait after drive select.
2797 (grub_ata_identify): Do more strict status register check before
2798 calling grub_atapi_identify (). Suppress error message if status
2799 register is 0x00 after command failure. Add status register
2800 check after PIO read to avoid bogus identify due to stuck DRQ.
2801 Thanks to Pavel Roskin for testing.
2802 (grub_device_initialize): Remove unsafe status register check.
2803 Thanks to 'phcoder' for problem report and patch.
2804 Prevent sign extension in debug message.
2806 2009-05-23 Colin D Bennett <colin@gibibit.com>
2808 Cleaned up `include/grub/normal.h'. Grouped prototypes by
2809 definition file, and functions defined in `normal/menu.c' have had
2810 their prototypes moved to `include/grub/menu.h' for consistency.
2812 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
2814 (grub_menu_get_entry): Likewise.
2815 (grub_menu_get_timeout): Likewise.
2816 (grub_menu_set_timeout): Likewise.
2817 (grub_menu_execute_entry): Likewise.
2818 (grub_menu_execute_with_fallback): Likewise.
2819 (grub_menu_entry_run): Likewise.
2821 * include/grub/normal.h: Re-ordered and grouped function
2822 prototypes by file that the function is defined in.
2823 (grub_menu_execute_callback): Removed; moved to menu.h.
2824 (grub_menu_get_entry): Likewise.
2825 (grub_menu_get_timeout): Likewise.
2826 (grub_menu_set_timeout): Likewise.
2827 (grub_menu_execute_entry): Likewise.
2828 (grub_menu_execute_with_fallback): Likewise.
2829 (grub_menu_entry_run): Likewise.
2830 (grub_menu_addentry): Renamed from this ...
2831 (grub_normal_add_menu_entry): ... to this.
2833 * normal/main.c (grub_menu_addentry): Renamed from this ...
2834 (grub_normal_add_menu_entry): ... to this.
2836 * script/sh/execute.c (grub_script_execute_menuentry): Update
2837 reference to renamed grub_menu_addentry function.
2839 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
2841 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
2843 2009-05-22 Pavel Roskin <proski@gnu.org>
2845 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
2846 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
2847 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
2848 compiling for the i386 targets, but not for the utilities.
2850 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
2852 (grub_root_drive): Likewise.
2853 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
2855 (grub_root_drive): Change size to byte.
2856 (grub_start_addr): Remove.
2857 (grub_end_addr): Likewise.
2858 (grub_apm_bios_info): Likewise.
2860 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
2862 * normal/i386: Remove.
2863 * normal/powerpc: Likewise.
2864 * normal/sparc64: Likewise.
2865 * normal/x86_64: Likewise.
2867 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
2869 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
2870 * loader/i386/linux_trampoline.S: Fix indentation
2871 * loader/i386/xnu_helper.S: Likewise
2873 2009-05-18 Colin D Bennett <colin@gibibit.com>
2875 Display error messages when parsing a Lua statement fails.
2876 Previously, executing a syntactically invalid statement like
2877 ")foo" or "bar;" would silently fail.
2879 * script/lua/grub_main.c (handle_lua_error): New function.
2880 (grub_lua_parse_line): Improved reporting of Lua parser and
2883 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2885 Remove -Werror which causes build to fail on some systems
2887 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
2888 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
2889 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
2891 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2893 trampoline for linux on 64-bit platform
2895 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
2896 loader/i386/efi/linux_trampoline.S
2897 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
2899 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
2901 * loader/i386/linux_trampoline.S: moved here
2902 * loader/i386/efi/linux.c (allocate_pages): reserve space for
2904 (jumpvector): removed
2905 (grub_linux_trampoline_start): new declaration
2906 (grub_linux_trampoline_end): likewise
2907 (grub_linux_boot): use trampoline when on 64-bit platform
2908 * loader/i386/linux.c: likewise
2910 2009-05-16 Pavel Roskin <proski@gnu.org>
2912 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
2913 const to avoid a warning.
2914 (grub_lua_setenv): Likewise.
2915 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
2916 lmsg to fix a warning.
2918 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
2920 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
2921 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2922 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
2923 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2924 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
2925 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2926 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
2927 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2929 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
2931 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
2933 2009-05-16 Bean <bean123ch@gmail.com>
2935 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
2936 (lua_mod_SOURCES): New variable.
2937 (lua_mod_CFLAGS): Likewise.
2938 (lua_mod_LDFLAGS): Likewise.
2940 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
2941 (setjmp_mod_SOURCES): New variable.
2942 (setjmp_mod_CFLAGS): Likewise.
2943 (setjmp_LDFLAGS): Likewise.
2945 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
2946 (setjmp_mod_SOURCES): New variable.
2947 (setjmp_mod_CFLAGS): Likewise.
2948 (setjmp_LDFLAGS): Likewise.
2950 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
2951 (setjmp_mod_SOURCES): New variable.
2952 (setjmp_mod_CFLAGS): Likewise.
2953 (setjmp_LDFLAGS): Likewise.
2955 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
2956 (setjmp_mod_SOURCES): New variable.
2957 (setjmp_mod_CFLAGS): Likewise.
2958 (setjmp_LDFLAGS): Likewise.
2960 * normal/i386/setjmp.S: Moved from here ...
2961 * lib/i386/setjmp.S: ... Moved here
2962 * normal/x86_64/setjmp.S: Moved from here ...
2963 * lib/x86_64/setjmp.S: ... Moved here
2964 * normal/powerpc/setjmp.S: Moved from here ...
2965 * lib/powerpc/setjmp.S: ... Moved here
2966 * normal/sparc64/setjmp.S: Moved from here ...
2967 * lib/sparc64/setjmp.S: ... Moved here
2969 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
2970 returns_twice in mingw.
2972 * script/lua/grub_lib.c: New file.
2973 * script/lua/grub_lib.h: Likewise.
2974 * script/lua/grub_lua.h: Likewise.
2975 * script/lua/grub_main.c: Likewise.
2976 * script/lua/lapi.c: Likewise.
2977 * script/lua/lapi.h: Likewise.
2978 * script/lua/lauxlib.c: Likewise.
2979 * script/lua/lauxlib.h: Likewise.
2980 * script/lua/lbaselib.c: Likewise.
2981 * script/lua/lcode.c: Likewise.
2982 * script/lua/lcode.h: Likewise.
2983 * script/lua/ldblib.c: Likewise.
2984 * script/lua/ldebug.c: Likewise.
2985 * script/lua/ldebug.h: Likewise.
2986 * script/lua/ldo.c: Likewise.
2987 * script/lua/ldo.h: Likewise.
2988 * script/lua/ldump.c: Likewise.
2989 * script/lua/lfunc.c: Likewise.
2990 * script/lua/lfunc.h: Likewise.
2991 * script/lua/lgc.c: Likewise.
2992 * script/lua/lgc.h: Likewise.
2993 * script/lua/linit.c: Likewise.
2994 * script/lua/liolib.c: Likewise.
2995 * script/lua/llex.c: Likewise.
2996 * script/lua/llex.h: Likewise.
2997 * script/lua/llimits.h: Likewise.
2998 * script/lua/lmathlib.c: Likewise.
2999 * script/lua/lmem.c: Likewise.
3000 * script/lua/lmem.h: Likewise.
3001 * script/lua/loadlib.c: Likewise.
3002 * script/lua/lobject.c: Likewise.
3003 * script/lua/lobject.h: Likewise.
3004 * script/lua/lopcodes.c: Likewise.
3005 * script/lua/lopcodes.h: Likewise.
3006 * script/lua/loslib.c: Likewise.
3007 * script/lua/lparser.c: Likewise.
3008 * script/lua/lparser.h: Likewise.
3009 * script/lua/lstate.c: Likewise.
3010 * script/lua/lstate.h: Likewise.
3011 * script/lua/lstring.c: Likewise.
3012 * script/lua/lstring.h: Likewise.
3013 * script/lua/lstrlib.c: Likewise.
3014 * script/lua/ltable.c: Likewise.
3015 * script/lua/ltable.h: Likewise.
3016 * script/lua/ltablib.c: Likewise.
3017 * script/lua/ltm.c: Likewise.
3018 * script/lua/ltm.h: Likewise.
3019 * script/lua/lua.h: Likewise.
3020 * script/lua/luaconf.h: Likewise.
3021 * script/lua/lualib.h: Likewise.
3022 * script/lua/lundump.c: Likewise.
3023 * script/lua/lundump.h: Likewise.
3024 * script/lua/lvm.c: Likewise.
3025 * script/lua/lvm.h: Likewise.
3026 * script/lua/lzio.c: Likewise.
3027 * script/lua/lzio.h: Likewise.
3029 2009-05-16 Bean <bean123ch@gmail.com>
3031 * include/grub/kernel.h (grub_module_header_types): Add type
3034 * kern/main.c (grub_load_config): New function.
3035 (grub_main): Call grub_load_config to read boot config.
3037 * grub-mkimage (generate_image): New parameter config_path.
3038 (options): New option --config.
3039 (main): Parse --config option, and pass it to generate_image.
3041 2009-05-14 Christian Franke <franke@computer.org>
3043 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3044 This fixes build on Cygwin.
3046 2009-05-14 Pavel Roskin <proski@gnu.org>
3048 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3049 jump. This saves two bytes, so the typical case of 2 swapped
3050 drives would fit 32 bytes.
3052 2009-05-13 Pavel Roskin <proski@gnu.org>
3054 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
3055 grub_uint32_t to avoid a warning.
3057 * loader/i386/linux.c (allocate_pages): When assigning
3058 real_mode_mem, cast through grub_size_t to fix a warning. The
3059 code already makes sure that the value would fit a pointer.
3060 (grub_linux_setup_video): Cast render_target->data to
3061 grub_size_t to fix a warning.
3063 2009-05-13 Javier MartÃn <lordhabbit@gmail.com>
3065 * commands/i386/pc/drivemap.c: New file - implement drivemap
3067 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
3068 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
3070 2009-05-13 Pavel Roskin <proski@gnu.org>
3072 * util/i386/pc/grub-setup.c (setup): Remove unused variable
3073 embedding_area_exists.
3075 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
3077 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
3078 it easier to understand / work with.
3079 Improve warning messages for cases where there's no embedding area,
3080 or when it is too small (or core.img too large).
3082 2009-05-13 Pavel Roskin <proski@gnu.org>
3084 * loader/i386/pc/multiboot2.c: Add necessary includes for
3085 grub_multiboot2_real_boot().
3087 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
3088 PX record is always little-endian. We only need the lower 2
3091 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
3092 facilitate code reuse.
3093 (grub_cpio_mount): Use "struct head", not a char buffer. This
3094 fixes a warning reported by gcc 4.4.
3096 * kernel/disk.c (grub_disk_read): Use void pointer for the
3098 (grub_disk_write): Use const void pointer for the buffer.
3099 Adjust all callers. Remove unnecessary casts.
3101 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
3103 * util/i386/pc/grub-install.in: Update copyright year.
3105 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3109 * commands/gptsync.c: new file
3110 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
3111 (gptsync_mod_SOURCES): new variable
3112 (gptsync_mod_CFLAGS): likewise
3113 (gptsync_mod_LDFLAGS): likewise
3114 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
3116 (GRUB_PC_PARTITION_TYPE_HFS): likewise
3117 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
3118 * conf/i386-ieee1275.rmk: likewise
3119 * conf/i386-pc.rmk: likewise
3120 * conf/powerpc-ieee1275.rmk: likewise
3122 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3126 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
3127 (grub_dl_ref): likewise
3129 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
3131 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
3132 split in two functions (one for msdos and one for gpt).
3134 2009-05-08 Pavel Roskin <proski@gnu.org>
3136 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
3139 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
3140 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
3141 Initialize them with -1. Add sanity check for bad1. Eliminate
3144 2009-05-08 David S. Miller <davem@davemloft.net>
3146 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
3148 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
3150 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
3153 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
3155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
3156 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
3158 2009-05-05 David S. Miller <davem@davemloft.net>
3160 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
3162 2009-05-05 Pavel Roskin <proski@gnu.org>
3164 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
3165 of grub_dl_ref() and grub_dl_unref().
3166 * commands/parttool.c: Remove preprocessor conditionals around
3167 grub_dl_ref() and grub_dl_unref().
3168 * fs/affs.c: Likewise.
3169 * fs/afs.c: Likewise.
3170 * fs/cpio.c: Likewise.
3171 * fs/ext2.c: Likewise.
3172 * fs/fat.c: Likewise.
3173 * fs/hfs.c: Likewise.
3174 * fs/hfsplus.c: Likewise.
3175 * fs/iso9660.c: Likewise.
3176 * fs/jfs.c: Likewise.
3177 * fs/minix.c: Likewise.
3178 * fs/ntfs.c: Likewise.
3179 * fs/reiserfs.c: Likewise.
3180 * fs/sfs.c: Likewise.
3181 * fs/udf.c: Likewise.
3182 * fs/ufs.c: Likewise.
3183 * fs/xfs.c: Likewise.
3184 * include/grub/dl.h: Likewise.
3185 * loader/xnu.c: Likewise.
3187 2009-05-04 Pavel Roskin <proski@gnu.org>
3189 * commands/acpi.c: Remove unused variable my_mod.
3190 * partmap/amiga.c: Likewise.
3191 * partmap/apple.c: Likewise.
3192 * partmap/gpt.c: Likewise.
3193 * partmap/pc.c: Likewise.
3194 * partmap/sun.c: Likewise.
3195 * term/gfxterm.c: Likewise.
3196 * term/i386/pc/vesafb.c: Likewise.
3197 * term/i386/pc/vga.c: Likewise.
3199 2009-05-04 David S. Miller <davem@davemloft.net>
3201 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
3202 pointer args to grub_ieee1275_get_property().
3204 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
3206 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
3207 devices, and do not traverse down under controller nodes.
3209 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
3210 (grub_ofdisk_open): Use it to un-escape "," characters.
3211 * kern/disk.c (find_part_sep): New.
3212 (grub_disk_open): Use it to find the first non-escaped ','
3213 character in the disk name.
3214 * util/ieee1275/devicemap.c (escape_of_path): New.
3215 (grub_util_emit_devicemap_entry): Use it.
3216 * util/sparc64/ieee1275/grub-install.in: Update script to
3217 strip partition specifiers properly by not triggering on
3218 '\' escaped ',' characters.
3220 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3222 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
3224 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
3226 (linux_vesafb_modes): Add a lot of additional modes to the list (based
3227 on documentation from Wikipedia).
3229 2009-05-04 Pavel Roskin <proski@gnu.org>
3231 * disk/ata.c: Spelling fixes.
3232 * disk/raid.c: Likewise.
3233 * disk/usbms.c: Likewise.
3234 * disk/dmraid_nvidia.c: Likewise.
3235 * kern/ieee1275/openfw.c: Likewise.
3236 * kern/ieee1275/init.c: Likewise.
3237 * kern/ieee1275/cmain.c: Likewise.
3238 * boot/i386/pc/cdboot.S: Likewise.
3239 * video/readers/png.c: Likewise.
3240 * video/i386/pc/vbe.c: Likewise.
3241 * fs/udf.c: Likewise.
3242 * fs/hfs.c: Likewise.
3243 * fs/reiserfs.c: Likewise.
3244 * efiemu/runtime/efiemu.c: Likewise.
3245 * efiemu/main.c: Likewise.
3246 * efiemu/mm.c: Likewise.
3247 * include/grub/elf.h: Likewise.
3248 * include/grub/xnu.h: Likewise.
3249 * include/grub/usbdesc.h: Likewise.
3250 * include/grub/usb.h: Likewise.
3251 * include/grub/script_sh.h: Likewise.
3252 * include/grub/lib/LzmaEnc.h: Likewise.
3253 * include/grub/efiemu/efiemu.h: Likewise.
3254 * include/grub/command.h: Likewise.
3255 * normal/menu.c: Likewise.
3256 * normal/main.c: Likewise.
3257 * normal/datetime.c: Likewise.
3258 * bus/usb/uhci.c: Likewise.
3259 * mmap/i386/uppermem.c: Likewise.
3260 * mmap/mmap.c: Likewise.
3261 * commands/acpi.c: Likewise.
3262 * commands/test.c: Likewise.
3263 * partmap/apple.c: Likewise.
3264 * font/font.c: Likewise.
3265 * loader/sparc64/ieee1275/linux.c: Likewise.
3266 * loader/macho.c: Likewise.
3267 * loader/i386/bsd_trampoline.S: Likewise.
3268 * loader/i386/bsd.c: Likewise.
3269 * loader/xnu.c: Likewise.
3270 * term/i386/pc/vesafb.c: Likewise.
3271 * term/usb_keyboard.c: Likewise.
3272 * util/resolve.c: Likewise.
3273 * util/getroot.c: Likewise.
3275 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3277 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
3279 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3281 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
3284 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3286 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
3287 parameter only available on BIOS.
3289 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3291 Removed wrong semicolon in declaration
3293 * grub/misc.h (grub_dprintf): remove semicolon
3295 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3297 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
3298 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
3299 is done by grub_cmd_linux() now).
3300 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
3301 restore video to text mode.
3302 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
3303 indicates lack of "vga=" parameter. "vga=0" is mapped to
3304 `GRUB_LINUX_VID_MODE_NORMAL'.
3306 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
3308 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
3309 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
3310 and `normal/script.c'. Add `kern/rescue_reader.c',
3311 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
3312 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
3313 `grub_script.tab.c'.
3315 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3316 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
3317 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3318 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3319 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3321 * Makefile.in: Remove duplicated 2008 in Copyright line.
3323 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3325 * util/misc.c (grub_util_warn): New function. Emits a warning
3327 * include/grub/util/misc.h (grub_util_warn): New declaration.
3329 * util/i386/pc/grub-install.in: Understand --force and pass it down
3332 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
3334 (setup): Improve error messages and add warnings when requested to
3335 install in odd layouts. Refuse to install using blocklists unless
3338 2009-05-04 martin f. krafft <madduck@madduck.net>
3340 * disk/raid.c (grub_raid_scan_device): Improve debug message.
3342 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3344 Updated copyright year
3346 * fs/hfsplus.c: updated copyright year
3348 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3352 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
3353 in the space previously used by unused3
3354 (grub_hfsplus_uuid): new function
3355 (grub_hfsplus_fs): added uuid field
3357 2009-05-03 Pavel Roskin <proski@gnu.org>
3359 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
3360 suppress warnings. It's no longer needed.
3361 * disk/host.c: Likewise.
3362 * disk/ata_pthru.c: Likewise.
3363 * disk/loopback.c: Likewise.
3364 * hook/datehook.c: Likewise.
3365 * parttool/pcpart.c: Likewise.
3366 * fs/i386/pc/pxe.c: Likewise.
3367 * fs/ntfscomp.c: Likewise.
3368 * efiemu/main.c: Likewise.
3369 * mmap/mmap.c: Likewise.
3370 * commands/crc.c: Likewise.
3371 * commands/hexdump.c: Likewise.
3372 * commands/hdparm.c: Likewise.
3373 * commands/acpi.c: Likewise.
3374 * commands/echo.c: Likewise.
3375 * commands/minicmd.c: Likewise.
3376 * commands/blocklist.c: Likewise.
3377 * commands/memrw.c: Likewise.
3378 * commands/loadenv.c: Likewise.
3379 * commands/usbtest.c: Likewise.
3380 * commands/lsmmap.c: Likewise.
3381 * commands/boot.c: Likewise.
3382 * commands/parttool.c: Likewise.
3383 * commands/configfile.c: Likewise.
3384 * commands/search.c: Likewise.
3385 * commands/ieee1275/suspend.c: Likewise.
3386 * commands/cat.c: Likewise.
3387 * commands/i386/pc/pxecmd.c: Likewise.
3388 * commands/i386/pc/play.c: Likewise.
3389 * commands/i386/pc/halt.c: Likewise.
3390 * commands/i386/pc/vbeinfo.c: Likewise.
3391 * commands/i386/pc/vbetest.c: Likewise.
3392 * commands/lspci.c: Likewise.
3393 * commands/date.c: Likewise.
3394 * commands/handler.c: Likewise.
3395 * commands/ls.c: Likewise.
3396 * commands/test.c: Likewise.
3397 * commands/cmp.c: Likewise.
3398 * commands/efi/loadbios.c: Likewise.
3399 * commands/efi/fixvideo.c: Likewise.
3400 * commands/halt.c: Likewise.
3401 * commands/help.c: Likewise.
3402 * commands/reboot.c: Likewise.
3403 * hello/hello.c: Likewise.
3404 * script/sh/main.c: Likewise.
3405 * loader/xnu.c: Likewise.
3406 * term/terminfo.c: Likewise.
3407 * term/i386/pc/serial.c: Likewise.
3408 * term/usb_keyboard.c: Likewise.
3410 2009-05-03 David S. Miller <davem@davemloft.net>
3412 * normal/menu.c: Include grub/parser.h
3414 2009-05-03 Pavel Roskin <proski@gnu.org>
3416 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
3418 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
3419 Suggested by Javier MartÃn <lordhabbit@gmail.com>
3421 * util/i386/pc/grub-mkrescue.in: Allow for the case when
3422 efiemu??.o doesn't exist.
3423 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
3426 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
3428 FreeBSD 64-bit support
3430 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
3431 and loader/i386/bsd_trampoline.S
3432 (bsd_mod_ASFLAGS): new variable
3433 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
3434 (FREEBSD_MODTYPE_KERNEL64): likewise
3435 (grub_bsd64_trampoline_start): likewise
3436 (grub_bsd64_trampoline_end): likewise
3437 (grub_bsd64_trampoline_selfjump): likewise
3438 (grub_bsd64_trampoline_gdt): likewise
3439 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
3440 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
3441 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
3442 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
3443 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
3445 * loader/i386/bsd_pagetable.c: new file
3446 * loader/i386/bsd_trampoline.S: likewise
3447 * loader/i386/bsd.c (ALIGN_QWORD): new macro
3448 (ALIGN_VAR): likewise
3449 (entry_hi): new variable
3450 (kern_end_mdofs): likewise
3451 (is_64bit): likewise
3452 (grub_freebsd_add_meta): use ALIGN_VAR
3453 (grub_e820_mmap): new declaration
3454 (grub_freebsd_add_mmap): new function
3455 (grub_freebsd_add_meta_module): support 64 bit kernels
3456 (grub_freebsd_list_modules): use ALIGN_VAR
3457 (gdt_descriptor): new declaration
3458 (grub_freebsd_boot): support 64 bit kernels
3459 (grub_bsd_elf64_hook): new function
3460 (grub_bsd_load_elf): support elf64
3462 2009-05-03 Bean <bean123ch@gmail.com>
3464 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
3465 after we get the result of if statement.
3467 2009-05-03 Bean <bean123ch@gmail.com>
3469 * Makefile.in (enable_efiemu): New variable.
3471 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
3473 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
3475 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
3476 path, add -mno-red-zone option.
3477 (efiemu64_s.o): Likewise.
3478 (efiemu64.o): Use macro $^ for source file.
3480 * configure.ac (--enable-efiemu): New option.
3482 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3486 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
3487 (pkglib_MODULES): add xnu.mod
3488 (xnu_mod_SOURCES): new variable
3489 (xnu_mod_CFLAGS): likewise
3490 (xnu_mod_LDFLAGS): likewise
3491 (xnu_mod_ASFLAGS): likewise
3492 * conf/i386-pc.rmk: likewise
3493 * conf/x86_64-efi.rmk: likewise
3494 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
3496 * include/grub/i386/macho.h: new file
3497 * include/grub/i386/xnu.h: likewise
3498 * include/grub/macho.h: likewise
3499 * include/grub/machoload.h: likewise
3500 * include/grub/x86_64/macho.h: likewise
3501 * include/grub/x86_64/xnu.h: likewise
3502 * include/grub/xnu.h: likewise
3503 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
3504 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
3505 * loader/i386/efi/xnu.c: new file
3506 * loader/i386/pc/xnu.c: likewise
3507 * loader/i386/xnu.c: likewise
3508 * loader/i386/xnu_helper.S: likewise
3509 * loader/macho.c: likewise
3510 * loader/xnu.c: likewise
3511 * loader/xnu_resume.c: likewise
3512 * util/grub-dumpdevtree: likewise
3513 * include/grub/i386/pit.h: include grub/err.h
3514 (grub_pit_wait): export
3515 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
3517 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3521 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
3522 _linux_efi, linux_efi.
3523 new files in grub-emu
3524 new targets efiemu32.o and efiemu64.o
3525 * loader/linux_normal_efiemu.c: likewise
3526 * loader/i386/efi/linux.c: added preliminary efiemu support
3527 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
3529 * include/grub/autoefi.h: new file
3530 * include/grub/i386/efiemu.h: likewise
3531 * include/grub/i386/pc/efiemu.h: likewise
3532 * include/grub/efi/api.h: add LL suffix when necessary
3533 new definitions relating to tables
3534 * include/grub/efiemu/efiemu.h: new file
3535 * include/grub/efiemu/runtime.h: likewise
3536 * efiemu/prepare.c: likewise
3537 * efiemu/loadcore_common.c: likewise
3538 * efiemu/loadcore64.c: likewise
3539 * efiemu/runtime/efiemu.sh: likewise
3540 * efiemu/runtime/efiemu.S: likewise
3541 * efiemu/runtime/efiemu.c: likewise
3542 * efiemu/runtime/config.h: likewise
3543 * efiemu/prepare32.c: likewise
3544 * efiemu/main.c: likewise
3545 * efiemu/modules/pnvram.c: likewise
3546 * efiemu/modules/i386: likewise
3547 * efiemu/modules/i386/pc: likewise
3548 * efiemu/modules/acpi.c: likewise
3549 * efiemu/i386/pc/cfgtables.c: likewise
3550 * efiemu/i386/loadcore64.c: likewise
3551 * efiemu/i386/loadcore32.c: likewise
3552 * efiemu/prepare64.c: likewise
3553 * efiemu/loadcore.c: likewise
3554 * efiemu/symbols.c: likewise
3555 * efiemu/mm.c: likewise
3556 * efiemu/loadcore32.c: likewise
3558 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3562 * commands/acpi.c: new file
3563 * commands/i386/pc/acpi.c: likewise
3564 * commands/efi/acpi.c: likewise
3565 * include/grub/acpi.h: likewise
3566 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
3567 (acpi_mod_SOURCES): new variable
3568 (acpi_mod_CFLAGS): likewise
3569 (acpi_mod_LDFLAGS): likewise
3570 * conf/i386-efi.rmk: likewise
3571 * conf/x86_64-efi.rmk: likewise
3573 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3575 Missing part from mmap patch
3577 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
3578 (grub_mmap_unregister)
3579 (grub_mmap_free_and_unregister): use grub_mmap_register
3581 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3585 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
3586 * loader/i386/linux.c (find_mmap_size): likewise
3587 (allocate_pages): likewise
3588 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
3589 (grub_fill_multiboot_mmap): likewise
3590 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
3591 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
3592 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
3593 (OPENBSD_MMAP_RESERVED): likewise
3594 * include/grub/i386/pc/memory.h: include grub/memory.h
3595 (grub_lower_mem): removed
3596 (grub_upper_mem): likewise
3597 (GRUB_MACHINE_MEMORY_ACPI): new definition
3598 (GRUB_MACHINE_MEMORY_NVS): likewise
3599 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
3600 (GRUB_MACHINE_MEMORY_HOLE): likewise
3601 (grub_machine_mmap_register): likewise
3602 (grub_machine_mmap_unregister): likewise
3603 (grub_machine_get_upper): likewise
3604 (grub_machine_get_lower): likewise
3605 (grub_machine_get_post64): likewise
3606 * include/grub/i386/efi/memory.h: new file
3607 * include/grub/x86_64/efi/memory.h: likewise
3608 * include/grub/efi/memory.h: likewise
3609 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
3610 (mmap_mod_SOURCES): new variable
3611 (mmap_mod_LDFLAGS): likewise
3612 (mmap_mod_ASFLAGS): likewise
3613 * conf/i386-coreboot.rmk: likewise
3614 * conf/i386-ieee1275.rmk: likewise
3615 * conf/i386-efi.rmk: likewise
3616 * conf/x86_64-efi.rmk: likewise
3617 * include/grub/types.h (UINT_TO_PTR): new macro
3618 (PTR_TO_UINT32): likewise
3619 (PTR_TO_UINT64): likewise
3620 * include/grub/memory.h: new file
3621 * mmap/i386/pc/mmap.c: likewise
3622 * mmap/i386/pc/mmap_helper.S: likewise
3623 * mmap/i386/uppermem.c: likewise
3624 * mmap/mmap.c: likewise
3625 * mmap/efi/mmap.c: likewise
3626 * kern/i386/coreboot/init.c (grub_machine_init): don't use
3628 * kern/i386/pc/init.c (grub_lower_mem): removed variable
3629 (grub_upper_mem): likewise
3630 (grub_machine_init): don't use grub_upper_mem,
3631 make grub_lower_mem local
3632 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
3633 grub_mmap_iterate and grub_mmap_get_upper
3634 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
3636 2009-05-02 Bean <bean123ch@gmail.com>
3638 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
3640 (pkglib_MODULES): Add normal.mod and sh.mod.
3641 (normal_SOURCES): New variable.
3642 (normal_mod_CFLAGS): Likewise.
3643 (normal_mod_LDFLAGS): Likewise.
3644 (sh_mod_SOURCES): Likewise.
3645 (sh_mod_CFLAGS): Likewise.
3646 (sh_mod_LDFLAGS): Likewise.
3648 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
3649 script/sh/lexer.c_DEPENDENCIES.
3650 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
3651 kern/rescue_reader.c and kern/rescue_parser.c.
3652 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
3653 (grub_emu_SOURCES): Change source files.
3654 (pkglib_MODULES): Remove normal.mod.
3655 (normal_SOURCES): Removed.
3656 (normal_mod_CFLAGS): Likewise.
3657 (normal_mod_LDFLAGS): Likewise.
3658 * conf/i386-coreboot.rmk: Likewise.
3659 * conf/i386-efi.rmk: Likewise.
3660 * conf/i386-ieee1276.rmk: Likewise.
3661 * conf/powerpc-ieee1275.rmk: Likewise.
3662 * conf/sparc64-ieee1275.rmk: Likewise.
3663 * conf/x86_64-efi.rmk: Likewise.
3665 * include/grub/command.h (grub_command_execute): New inline function.
3667 * include/grub/menu.h (grub_menu_entry): Removed commands field.
3669 * include/grub/normal.h: Remove <grub/setjmp.h>.
3670 (grub_fs_module_list): Moved to normal/autofs.c.
3671 (grub_exit_env): Removed.
3672 (grub_command_execute): Likewise.
3673 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
3675 (read_command_list): New function declaration.
3676 (read_fs_list): Likewise.
3678 * include/parser.h: Include <grub/reader.h>.
3679 (grub_parser_split_cmdline): Change type of getline parameter.
3680 (grub_parser): New structure.
3681 (grub_parser_class): New variable.
3682 (grub_parser_execute): New function declaration.
3683 (grub_register_rescue_parser): Likewise.
3684 (grub_parser_register): New inline function.
3685 (grub_parser_unregister): Likewise.
3686 (grub_parser_get_current): Likewise.
3687 (grub_parser_set_current): Likewise.
3689 * include/grub/reader.h: New file.
3690 * kern/reader.c: Likewise.
3691 * kern/rescue_parser.c: Likewise.
3692 * kern/rescue_reader.c: Likewise.
3693 * normal/autofs.c: Likewise.
3694 * normal/dyncmd.c: Likewise.
3696 * include/grub/rescue.h: Removed.
3697 * normal/command.h: Likewise.
3699 * include/grub/script.h: Moved to ...
3700 * include/grub/script_sh.h: ... Moved here.
3701 * normal/execute.c: Moved to ...
3702 * script/sh/execute.c: ... Moved here.
3703 * normal/function.c: Moved to ...
3704 * script/sh/function.c: ... Moved here.
3705 * normal/lexer.c: Moved to ...
3706 * script/sh/lexer.c: ... Moved here.
3707 * normal/parser.y: Moved to ...
3708 * script/sh/parser.y: ... Moved here.
3709 * normal/script.c: Moved to ...
3710 * script/sh/script.c: ... Moved here.
3712 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
3714 (grub_exit_env): Removed.
3715 (fs_module_list): Moved to normal/autofs.c.
3716 (grub_file_getline): Don't handle comment here.
3717 (free_menu): Skip removed field entry->commands.
3718 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
3720 (read_config_file): Removed nested parameter, change getline function.
3721 (grub_enter_normal_mode): Removed.
3722 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
3723 (read_command_list): Likewise.
3724 (autoload_fs_module): Moved to normal/autofs.c.
3725 (read_fs_list): Likewise.
3726 (reader_nested): New variable.
3727 (grub_normal_execute): Run parser.sh to switch to sh parser.
3728 (grub_cmd_rescue): Removed.
3729 (cmd_normal): Removed.
3730 (grub_cmd_normal): Unregister itself at the beginning. Don't register
3732 (grub_cmdline_run): New function.
3733 (grub_normal_reader_init): Likewise.
3734 (grub_normal_read_line): Likewise.
3735 (grub_env_write_pager): Likewise.
3736 (cmdline): New variable.
3737 (grub_normal_reader): Likewise.
3738 (GRUB_MOD_INIT): Register normal reader and set as current, register
3739 pager hook, register normal command with grub_register_command_prio,
3740 so that it won't show up in command.lst.
3741 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
3742 grub_fs_autoload_hook.
3744 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
3745 (grub_menu_execute_entry): Replace grub_script_execute with
3746 grub_parser_execute, change parameter to grub_command_execute.
3748 * normal/menu_text.c: Remove <grub/script.h>.
3750 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
3751 and <grub/parser.h>.
3752 (run): Change editor_getline to use new parser interface. Change
3753 parameter to grub_command_execute.
3755 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
3756 <grub/reader.h> and <grub/parser.h>.
3757 (grub_load_normal_mode): Execute normal command.
3758 (grub_main): Call grub_register_core_commands,
3759 grub_register_rescue_parser and grub_register_rescue_reader, use
3760 grub_reader_loop to enter input loop.
3762 * kern/parser.c (grub_parser_split_cmdline): Change type of
3764 (grub_parser_class): New variable.
3765 (grub_parser_execute): New function.
3767 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
3768 * loader/multiboot2.c: Likewise.
3769 * loader/sparc64/ieee1275/linux.c: Likewise.
3771 * util/grub-emu.c (read_command_list): New dummy function.
3773 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
3775 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
3776 count to 16 for CCISS and IDA.
3778 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
3780 * normal/menu_text.c (grub_wait_after_message): Print a newline
3781 after waiting for user input.
3783 * loader/i386/linux.c: Include `<grub/normal.h>'.
3784 (grub_cmd_linux): Improve the error message about `ask' mode, by
3785 waiting for user input so it's not missed (we can do this, since
3786 user requested interaction).
3788 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3790 Added missing lst to grub-mkrescue
3792 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
3793 and ${input_dir}/parttool.lst
3795 2009-04-30 David S. Miller <davem@davemloft.net>
3797 * util/hostdisk.c (device_is_wholedisk): New function.
3798 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
3799 zero only if device_is_wholedisk() returns true.
3801 * util/hostdisk.c (convert_system_partition_to_system_disk):
3802 Handle virtual disk devices named /dev/vdiskX as found on sparc
3805 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
3806 lettered partition specifier is found, convert to numbered.
3808 2009-04-29 David S. Miller <davem@davemloft.net>
3810 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
3811 * include/grub/sparc64/ieee1275/memory.h: Likewise.
3813 * normal/command.c: Add missing newline at end of file.
3815 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
3817 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
3818 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
3819 grub_ofdisk_read): Likewise, and deal similarly with the fact that
3820 ihandles have a 32-bit type but need to be stored in a "void *".
3822 2009-04-28 Pavel Roskin <proski@gnu.org>
3824 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
3825 not disk. Adjust all dependencies.
3826 (grub_fs_uuid_close): Use grub_device_close(), not
3829 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
3830 parent's partition, don't copy it by reference, as it gets freed
3833 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3835 Preboot hooks support
3837 * commands/boot.c (struct grub_preboot_t): new declaration
3838 (preboots_head): new variable
3839 (preboots_tail): likewise
3840 (grub_loader_register_preboot_hook): new function
3841 (grub_loader_unregister_preboot_hook): likewise
3842 (grub_loader_set): launch preboot hooks
3843 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
3844 (grub_loader_register_preboot_hook): new declaration
3845 (grub_loader_unregister_preboot_hook): likewise
3847 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3851 * disk/scsi.c (grub_scsi_open): added missing cast when
3852 calling grub_dprintf
3854 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3856 Bug and warning fixes
3858 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
3860 * commands/test.c (test_parse): fixed bug with file tests and corrected
3861 declaration of find_file
3863 2009-04-26 Pavel Roskin <proski@gnu.org>
3865 * Makefile.in: Don't install empty manual pages if help2man is
3866 missing. Use help2man option for output, not shell redirection.
3868 2009-04-26 David S. Miller <davem@davemloft.net>
3870 * util/grub-mkdevicemap.c (make_device_map): Add missing
3871 NESTED_FUNC_ATTR to process_device().
3873 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3877 * commands/test.c: rewritten to use bash-like test
3879 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3881 Parttool autoloading and improvements
3883 * Makefile.in (pkglib_DATA): add parttool.lst
3884 (parttool.lst): new target
3885 * genmk.rb: generate parttool-*
3886 (CLEANFILES): add #{parttool}
3887 (PARTTOOLFILES): new variable
3888 * genparttoollist.sh: new file
3889 * parttool/pcpart.c (grub_pcpart_boot): more feedback
3890 (grub_pcpart_type): likewise
3891 * commands/parttool.c (helpmsg): new variable
3892 (grub_cmd_parttool): output help if not enough arguments are supplied
3894 (GRUB_MOD_INIT(parttool)): use helpmsg
3896 2009-04-24 David S. Miller <davem@davemloft.net>
3898 Avoiding opening same device multiple times in device iterator.
3900 * kern/device.c: (grub_device_iterate): Define struct part_ent,
3901 and use it to build a list of partitions in iterate_disk() and
3902 iterate_partition().
3904 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
3907 * disk/ieee1275/nand.c (grub_nand_iterate): Return
3908 grub_devalias_iterate() result instead of unconditional 0.
3909 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
3910 Also, capture hook return value, either directly or via
3911 grub_children_iterate(), and propagate to caller.
3912 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
3913 grub_children_iterate): Return value is now 'int' instead of
3915 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
3916 like a proper iterator, stopping when hooks return non-zero.
3917 (grub_devalias_iterate): Likewise.
3919 2009-04-23 David S. Miller <davem@davemloft.net>
3921 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
3923 2009-04-22 David S. Miller <davem@davemloft.net>
3925 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
3926 is larger than address_cells, use that value for address_cells too.
3928 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
3929 IEEE1275_MAX_PATH_LEN): Define.
3930 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
3931 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
3932 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
3933 'devtype'. Explicitly NULL terminate devalias expansion.
3935 * util/sparc64/ieee1275/misc.c: New file.
3936 * util/sparc64/ieee1275/grub-setup.c: New file.
3937 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
3938 * util/sparc64/ieee1275/grub-mkimage.c: New file.
3939 * util/sparc64/ieee1275/grub-install.in: New file.
3940 * util/ieee1275/ofpath.c: New file.
3941 * util/ieee1275/devicemap.c: New file.
3942 * util/devicemap.c: New file.
3943 * util/deviceiter.c: New file.
3944 * kern/sparc64/ieee1275/init.c: New file.
3945 * include/grub/util/ofpath.h: New file.
3946 * include/grub/util/deviceiter.h: New file.
3947 * util/grub-mkdevicemap.c: Include deviceiter.h.
3948 Implement using grub_util_emit_devicemap_entry and
3949 grub_util_iterate_devices.
3950 * conf/i386-corebook.rmk: Build util/deviceiter.c and
3951 util/devicemap.c into grub-mkdevicemap
3952 * conf/i386-efi.rmk: Likewise.
3953 * conf/i386-ieee1275.rmk: Likewise.
3954 * conf/i386-pc.rmk: Likewise.
3955 * conf/powerpc-ieee1275.rmk: Likewise.
3956 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
3957 images and installation utilities. Build kernel as image
3958 instead of as elf binary. Use common rules as much as possible.
3960 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3962 Correct GPT definition
3964 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
3967 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
3969 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
3971 2009-04-19 David S. Miller <davem@davemloft.net>
3973 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
3974 (grub_rescue_cmd_linux): Rename to...
3975 (grub_cmd_linux): and fix prototype.
3976 (grub_rescue_cmd_initrd): Rename to...
3977 (grub_cmd_initrd): and fix prototype.
3978 (cmd_linux, cmd_initrd): New.
3979 (GRUB_MOD_INIT(linux)): Use grub_register_command().
3980 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
3982 2009-04-17 Pavel Roskin <proski@gnu.org>
3984 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
3986 (grub_ohci_transfer): Likewise.
3988 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
3990 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
3991 return without a value. Fix inconsistent indentation.
3993 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
3994 match struct grub_fs.
3996 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
3997 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
3998 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3999 * commands/lspci.c (grub_lspci_iter): Likewise.
4001 2009-04-16 Bean <bean123ch@gmail.com>
4003 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4006 2009-04-15 Pavel Roskin <proski@gnu.org>
4008 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4009 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4010 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4013 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4015 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4016 that no multiple data or metadata areas are supported and `Unknown
4019 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4021 Move loader out of the kernel
4023 * kern/loader.c: moved to ...
4024 * commands/boot.c: ... moved here
4025 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4026 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4027 * include/grub/kernel.h (grub_machine_fini): export
4028 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4029 (grub_loader_set): likewise
4030 (grub_loader_unset): likewise
4031 (grub_loader_boot): likewise
4032 * conf/common.rmk: new module boot.mod
4033 (pkglib_MODULES): add boot.mod
4034 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4035 (grub_emu_SOURCES): likewise
4036 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4037 (grub_emu_SOURCES): likewise
4038 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4039 (grub_emu_SOURCES): likewise
4040 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4041 (grub_emu_SOURCES): likewise
4042 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4043 (grub_emu_SOURCES): likewise
4044 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4045 (grub_emu_SOURCES): likewise
4046 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4047 (grub_emu_SOURCES): likewise
4049 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4051 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4053 * kern/misc.c (grub_itoa): Removed function
4054 (grub_ltoa): likewise
4055 (grub_vsprintf): use grub_lltoa
4057 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4061 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
4062 * conf/i386-coreboot.rmk: likewise
4063 * conf/i386-ieee1275.rmk: likewise
4064 * conf/powerpc-ieee1275.rmk: likewise
4066 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4068 * INSTALL: Add that `./autogen.sh' needs to be run before
4071 2009-04-14 Bean <bean123ch@gmail.com>
4073 * Makefile.in (pkglib_DATA): Add handler.lst.
4074 (handler.lst): New rule.
4076 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
4077 * conf/i386-coreboot.rmk: Likewise.
4078 * conf/i386-ieee1275.rmk: Likewise.
4079 * conf/i386-efi.rmk: Likewise.
4080 * conf/x86_64-efi.rmk: Likewise.
4081 * conf/powerpc-ieee1275.rmk: Likewise.
4082 * conf/sparc64-ieee1275.rmk: Likewise.
4084 * genhandlerlist.sh: New file.
4086 * genmk.rb: Add rules to generate handler.lst.
4088 * include/grub/normal.h (grub_file_getline): New function definition.
4089 (read_handler_list): Likewise.
4090 (free_handler_list): Likewise.
4092 * include/grub/term.h (grub_term_register_input): Add name parameter
4093 for auto generation of handler.lst.
4094 (grub_term_register_output): Likewise.
4096 * normal/handler.c: New file.
4098 * normal/main.c (get_line): Renamed to grub_file_getline.
4099 (read_config_file): Use the newly renamed grub_file_getline.
4100 (read_command_list): Likewise.
4101 (read_fs_list): Likewise.
4102 (grub_normal_execute): Call read_handler_list to parse handler.lst.
4103 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
4105 * term/efi/console.c (grub_console_init): Add name parameter for auto
4106 generation of handler.lst.
4107 * term/gfxterm.c: Likewise.
4108 * term/i386/pc/at_keyboard.c: Likewise.
4109 * term/i386/pc/console.c: Likewise.
4110 * term/i386/pc/serial.c: Likewise.
4111 * term/i386/pc/vesafb.c: Likewise.
4112 * term/i386/pc/vga.c: Likewise.
4113 * term/i386/pc/vga_text.c: Likewise.
4114 * term/ieee1275/ofconsole.c: Likewise.
4115 * term/usb_keyboard.c: Likewise.
4117 2009-04-14 Bean <bean123ch@gmail.com>
4119 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
4120 properly with null character.
4122 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4124 * configure: Remove.
4125 * config.h.in: Likewise.
4126 * stamp-h.in: Likewise.
4127 * DISTLIST: Likewise.
4128 * conf/common.mk: Likewise.
4129 * conf/i386-coreboot.mk: Likewise.
4130 * conf/i386-efi.mk: Likewise.
4131 * conf/i386-ieee1275.mk: Likewise.
4132 * conf/i386.mk: Likewise.
4133 * conf/i386-pc.mk: Likewise.
4134 * conf/powerpc-ieee1275.mk: Likewise.
4135 * conf/sparc64-ieee1275.mk: Likewise.
4136 * conf/x86_64-efi.mk: Likewise.
4138 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
4141 2009-04-14 John Stanley <jpsinthemix@verizon.net>
4142 David S. Miller <davem@davemloft.net>
4144 * util/hostdisk.c (make_device_name): Fix buffer length
4147 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4149 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
4150 <sys/param.h> and <sys/sysctl.h>.
4151 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
4152 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
4153 opening the device and reset them afterwards.
4155 2009-04-13 Pavel Roskin <proski@gnu.org>
4157 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
4158 Reported by John Stanley <jpsinthemix@verizon.net>
4160 2009-04-13 Robert Millan <rmh@aybabtu.com>
4162 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
4163 that name for menuentries when appropriate.
4165 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4167 * util/grub.d/10_freebsd.in: Add a missing `fi'.
4169 2009-04-13 Robert Millan <rmh@aybabtu.com>
4171 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
4172 to Linux, simply abort telling the user it's no longer supported.
4174 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4176 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
4177 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
4178 `freebsd_loadenv' only when devices.hints exist.
4180 2009-04-13 Pavel Roskin <proski@gnu.org>
4182 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
4184 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4186 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
4188 (grub_drive): Likewise.
4190 2009-04-13 David S. Miller <davem@davemloft.net>
4192 * kern/sparc64/ieee1275/ieee1275.c: New file.
4193 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
4194 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
4195 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
4196 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
4197 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
4198 grub_ieee1275_alloc_physmem): Declare new exported functions.
4200 * include/grub/sparc64/ieee1275/loader.h: New file.
4201 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4202 * include/grub/sparc64/kernel.h: Likewise.
4203 * loader/sparc64/ieee1275/linux.c: Likewise.
4205 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
4206 (grub_fstest_SOURCES): Likewise.
4208 * util/hostdisk.c (make_device_name): Do not make any assumptions
4209 about the length of drive names.
4211 * kern/dl.c (grub_dl_load_file): Close file immediately when
4212 we are done using it.
4214 2009-04-12 David S. Miller <davem@davemloft.net>
4216 * kern/misc.c (grub_ltoa): Fix cast when handling negative
4217 values. Noticed by Pavel Roskin.
4219 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
4222 * genmk.rb: Add more flexible image type specification, also
4223 pass --strip-unneeded to objcopy.
4224 * conf/i386-pc.rmk: Use *_FORMAT.
4225 * conf/i386-pc.mk: Rebuilt.
4227 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
4228 (OFDISK_HASH_SZ): Define.
4229 (ofdisk_hash): New hash table.
4230 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
4231 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
4232 instead of device phandle which is not unique.
4234 * kern/sparc64/ieee1275/init.c: Delete, replace with...
4235 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
4236 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
4237 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
4238 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
4239 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
4240 GRUB_KERNEL_MACHINE_DATA_END): Define.
4241 (grub_kernel_image_size, grub_total_module_size): Declare.
4243 2009-04-12 Pavel Roskin <proski@gnu.org>
4245 * configure.ac: Change the logic when we check for target tools.
4246 Do it when the target is specified and it's different from the
4247 specified value of the host.
4249 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
4251 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
4252 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
4253 GNU/kFreeBSD. Check if a device is a character device. Use
4254 DIOCGMEDIASIZE to get the size.
4255 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
4256 support for GNU/kFreeBSD.
4257 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
4258 is a character device instead of a block device. Add support for
4259 FreeBSD device names.
4261 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
4262 is a character device instead of a block device.
4264 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
4265 is a character device instead of a block device.
4267 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
4269 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
4270 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
4271 FreeBSD. Check if a device is a character device. Use
4272 DIOCGMEDIASIZE to get the size.
4273 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
4274 support for FreeBSD.
4275 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
4276 is a character device instead of a block device. Add support for
4277 FreeBSD device names.
4279 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
4280 a character device instead of a block device.
4281 (grub_util_check_char_device): New function.
4283 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
4284 a character device instead of a block device.
4286 * include/grub/util/getroot.h (grub_util_check_char_device): New
4289 2009-04-11 David S. Miller <davem@davemloft.net>
4291 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
4293 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
4294 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
4295 function, if present.
4296 (__bswapdi2): Likewise.
4298 * include/grub/sparc64/ieee1275/boot.h: New file.
4299 * boot/sparc64/ieee1275/boot.S: Likewise.
4300 * boot/sparc64/ieee1275/diskboot.S: Likewise.
4302 * kern/misc.c (grub_ltoa): New function.
4303 (grub_vsprintf): Use it to format 'long' integers.
4305 2009-04-10 David S. Miller <davem@davemloft.net>
4307 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
4308 slots are of type grub_ieee1275_cell_t.
4309 (grub_nand_read): Likewise.
4310 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
4311 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
4312 macros are used to compare values in arg/ret block of the call.
4313 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
4314 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
4315 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
4316 grub_ieee1275_instance_to_path, grub_ieee1275_write,
4317 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
4318 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
4319 grub_ieee1275_close, grub_ieee1275_set_property,
4320 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
4321 grub_ieee1275_cell_t.
4322 * kern/ieee1275/openfw.c (grub_map): Likewise.
4323 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
4324 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
4326 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
4327 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
4328 (grub_devalias_iterate): Likewise.
4330 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
4334 * fs/ufs.c (INODE_NBLOCKS): new definition
4335 (struct grub_ufs_dirent): added fields for non-BSD dirents
4336 (grub_ufs_get_file_block): fixed double indirect handling
4337 (grub_ufs_lookup_symlink): use more robust way to determine whether
4339 (grub_ufs_find_file): support for non-BSD dirents
4340 (grub_ufs_dir): support for non-BSD dirents
4342 2009-04-10 Bean <bean123ch@gnail.com>
4344 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
4345 attribute, otherwise the size would be wrong for i386 platform.
4347 * include/grub/pci.h (grub_pci_read_word): New inline function.
4348 (grub_pci_read_byte): Likewise.
4349 (grub_pci_write): Likewise.
4350 (grub_pci_write_word): Likewise.
4351 (grub_pci_write_byte): Likewise.
4353 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
4355 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
4356 (find_framebuf): Scan pci to locate the frame buffer address.
4358 * commands/efi/fixvideo.c: New file.
4360 * commands/efi/loadbios.c: Likewise.
4362 * commands/memrw.c: Likewise.
4364 * util/grub-dumpbios.in: Likewise.
4366 * conf/common.rmk (grub-dumpbios): New utility.
4367 (pkglib_MODULES): New module memrw.mod.
4368 (memrw_mod_SOURCE): New macro.
4369 (memrw_mod_CFLAGS): Likewise.
4370 (memrw_mod_LDFLAGS): Likewise.
4372 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
4374 (loadbios_mod_SOURCE): New macro.
4375 (loadbios_mod_CFLAGS): Likewise.
4376 (loadbios_mod_LDFLAGS): Likewise.
4377 (fixvideo_mod_SOURCE): Likewise.
4378 (fixvideo_mod_CFLAGS): Likewise.
4379 (fixvideo_mod_LDFLAGS): Likewise.
4381 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
4383 (loadbios_mod_SOURCE): New macro.
4384 (loadbios_mod_CFLAGS): Likewise.
4385 (loadbios_mod_LDFLAGS): Likewise.
4386 (fixvideo_mod_SOURCE): Likewise.
4387 (fixvideo_mod_CFLAGS): Likewise.
4388 (fixvideo_mod_LDFLAGS): Likewise.
4390 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
4392 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
4394 2009-04-07 David S. Miller <davem@davemloft.net>
4396 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
4397 support for R_SPARC_OLO10 relocations. Fix compile warning for
4398 R_SPARC_WDISP30 case.
4399 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
4401 2009-04-06 Pavel Roskin <proski@gnu.org>
4403 * include/grub/misc.h (ARRAY_SIZE): New macro.
4404 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
4406 * loader/i386/linux.c (allocate_pages): Use free_pages().
4407 (grub_linux_unload): Don't use free_pages().
4408 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
4409 wrong index. Treat all other modes as text modes.
4410 (grub_cmd_linux): Initialize vid_mode unconditionally to
4411 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
4413 * commands/help.c (print_command_help): Use cmd->prio, not
4414 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
4416 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
4420 * parttool/pcpart.c: new file
4421 * commands/parttool.c: likewise
4422 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
4423 (parttool_mod_SOURCES): new variable
4424 (parttool_mod_CFLAGS): likewise
4425 (parttool_mod_LDFLAGS): likewise
4426 (pcpart_mod_SOURCES): likewise
4427 (pcpart_mod_CFLAGS): likewise
4428 (pcpart_mod_LDFLAGS): likewise
4429 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
4430 and parttool/pcpart.c
4431 * conf/i386-efi.rmk: likewise
4432 * conf/i386-ieee1275.rmk: likewise
4433 * conf/i386-pc.rmk: likewise
4434 * conf/powerpc-ieee1275.rmk: likewise
4435 * conf/sparc64-ieee1275.rmk: likewise
4436 * conf/x86_64-ieee1275.rmk: likewise
4438 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4440 Support for mtime and further expandability of dir command
4442 * include/grub/lib/datetime.h: moved to ...
4443 * include/grub/datetime.h: ... moved here and added
4444 declaration of grub_unixtime2datetime. All users updated
4445 * include/grub/fs.h: new syntax for dir and mtime functions in
4447 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
4448 and GRUB_FSHELP_FLAGS_MASK
4449 * commands/ls.c (grub_ls_list_files): Write mtime in long format
4450 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
4451 (grub_ext2_mtime): new function
4452 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
4453 (grub_hfsplus_mtime): new function
4454 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
4455 (GRUB_UFS_ATTR_FILE): likewise
4456 (GRUB_UFS_ATTR_LNK): likewise
4457 (struct grub_ufs_sblock): new fields mtime
4458 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
4460 (grub_ufs_dir): mtime support
4461 (grub_ufs_mtime): new function
4462 * fs/affs.c (grub_affs_dir): use new dir syntax
4463 * fs/afs.c (grub_afs_dir): likewise
4464 * fs/cpio.c (grub_cpio_dir): likewise
4465 * fs/fat.c (grub_fat_find_dir): likewise
4466 * fs/hfs.c (grub_hfs_dir): likewise
4467 * fs/iso9660.c (grub_iso9660_dir): likewise
4468 * fs/jfs.c (grub_jfs_dir): likewise
4469 * fs/minix.c (grub_minix_dir): likewise
4470 * fs/ntfs.c (grub_ntfs_dir): likewise
4471 * fs/reiserfs.c (grub_reiserfs_dir): likewise
4472 * fs/sfs.c (grub_sfs_dir): likewise
4473 * fs/xfs.c (grub_xfs_dir): likewise
4474 * util/hostfs.c (grub_hostfs_dir): likewise
4475 * lib/datetime.c: moved to ...
4476 * normal/datetime.c: ... moved here
4477 (grub_unixtime2datetime): new function
4478 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
4479 * normal/completion.c (iterate_dir): use new dir syntax
4480 * normal/misc.c (grub_normal_print_device_info): tell the
4481 last modification time of a volume
4482 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
4483 * conf/common.rmk: added lib/datetime.c to ls.mod
4484 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
4485 (normal_mod_SOURCES): likewise
4486 (datetime_mod_SOURCES): Removed lib/datetime.c
4487 * conf/i386-efi.rmk: likewise
4488 * conf/i386-ieee1275.rmk: likewise
4489 * conf/i386-pc.rmk: likewise
4490 * conf/powerpc-ieee1275.rmk: likewise
4491 * conf/sparc64-ieee1275.rmk: likewise
4492 * conf/x86_64-efi.rmk: likewise
4494 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4496 Trim trailing spaces in FAT label and support mtools-like labels
4498 * fs/fat.c (grub_fat_iterate_dir): New function based
4499 on grub_fat_find_dir
4500 (grub_fat_find_dir): use grub_fat_iterate_dir
4501 (grub_fat_label): likewise
4503 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4505 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
4507 remove extraneous kernel_elf_HEADERS
4509 2009-04-04 Bean <bean123ch@gnail.com>
4511 * include/grub/util/misc.h: Add dummy function fsync for mingw.
4513 * util/misc.c: Likewise.
4515 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
4517 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
4518 instead of grub_printf.
4520 2009-04-03 Robert Millan <rmh@aybabtu.com>
4522 * loader/i386/linux.c (grub_linux_setup_video): Fill
4523 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
4524 values from `mode info' structure instead of hardcoded
4527 2009-04-01 Pavel Roskin <proski@gnu.org>
4529 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
4531 * genmk.rb: Likewise.
4532 * configure.ac: Likewise.
4534 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
4536 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
4537 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
4539 2009-04-01 David S. Miller <davem@davemloft.net>
4541 * normal/sparc64/setjmp.S: Fix setjmp implementation.
4542 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
4543 (grub_setjmp): Mark with 'returns_twice' attribute.
4544 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
4545 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
4546 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
4548 2009-04-01 Robert Millan <rmh@aybabtu.com>
4550 Reapply fix from 2008-07-28 which was accidentally reverted; also
4551 perform the same fix to a similar check in same function.
4553 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
4554 with the same number are found, just use issue a warning with
4555 grub_dprintf(), as this error has been reported to be non-fatal.
4557 2009-03-31 Pavel Roskin <proski@gnu.org>
4559 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
4560 for cross-compilation.
4562 2009-03-30 Robert Millan <rmh@aybabtu.com>
4564 Fix i386-ieee1275 build.
4566 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
4569 2009-03-30 Pavel Roskin <proski@gnu.org>
4571 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
4572 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
4573 zero-terminated, rely only on the strlen value. Fix comparison
4574 of strings differing in length.
4576 2009-03-30 Robert Millan <rmh@aybabtu.com>
4578 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
4579 checking for abi version. Improve error messages on BIOS to notify
4580 user about `linux16' command.
4582 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
4586 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
4587 in case of collision
4588 * disk/scsi.c (grub_scsi_open): free scsi in case of error
4590 2009-03-29 Robert Millan <rmh@aybabtu.com>
4592 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
4593 set `vid_mode' accordingly.
4594 (grub_linux_boot): Process `vid_mode' and set video mode.
4596 2009-03-29 Robert Millan <rmh@aybabtu.com>
4598 * util/grub.d/10_linux.in (linux_entry): New function.
4599 Factorize generation of Linux boot entries.
4601 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
4603 Make the format of Environment Block plain text. The boot loader
4604 part is not tested well yet.
4606 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
4609 (usage): Remove "info" and "clear". Add "unset". Update the
4610 description of "set", as this does not delete variables any
4612 (create_envblk_file): Complete rewrite.
4613 (open_envblk_file): Likewise.
4614 (cmd_info): Removed.
4615 (cmd_list): Likewise.
4616 (cmd_set): Likewise.
4617 (cmd_clear): Likewise.
4618 (list_variables): New function.
4619 (write_envblk): Likewise.
4620 (set_variables): Likewise.
4621 (unset_variables): Likewise.
4622 (main): Complete rewrite.
4624 * commands/loadenv.c (buffer): Removed.
4626 (open_envblk_file): New function.
4627 (read_envblk_file): Complete rewrite.
4628 (grub_cmd_load_env): Likewise.
4629 (grub_cmd_list_env): Likewise.
4630 (struct blocklist): New struct.
4631 (free_blocklists): New function.
4632 (check_blocklists): Likewise.
4633 (write_blocklists): Likewise.
4634 (grub_cmd_save_env): Complete rewrite.
4636 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
4637 a plain text signature.
4638 (GRUB_ENVBLK_MAXLEN): Removed.
4639 (struct grub_envblk): Complete rewrite.
4640 (grub_envblk_find): Removed.
4641 (grub_envblk_insert): Likewise.
4642 (grub_envblk_open): New prototype.
4643 (grub_envblk_set): Likewise.
4644 (grub_envblk_delete): Put const to VALUE.
4645 (grub_envblk_iterate): Put const to NAME and VALUE.
4646 (grub_envblk_close): New prototype.
4647 (grub_envblk_buffer): New inline function.
4648 (grub_envblk_size): Likewise.
4650 * lib/envblk.c: Include grub/mm.h.
4651 (grub_env_find): Removed.
4652 (grub_envblk_open): New function.
4653 (grub_envblk_close): Likewise.
4654 (escaped_value_len): Likewise.
4655 (find_next_line): Likewise.
4656 (grub_envblk_insert): Removed.
4657 (grub_envblk_set): New function.
4658 (grub_envblk_delete): Complete rewrite.
4659 (grub_envblk_iterate): Likewise.
4661 2009-03-28 Robert Millan <rmh@aybabtu.com>
4663 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
4664 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
4665 variables. Use 16-bit loader.
4666 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
4668 * kern/i386/loader.S (grub_linux_boot): Rename to ...
4669 (grub_linux16_boot): ... this. Update all users.
4670 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
4671 (grub_linux_boot): ... this. Update all users.
4673 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
4674 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
4675 commands to `linux16' and `initrd16'.
4676 (GRUB_MOD_FINI(linux)): Rename to ...
4677 (GRUB_MOD_FINI(linux16)): ... this.
4679 2009-03-24 Pavel Roskin <proski@gnu.org>
4681 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
4682 not just for compilation.
4684 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4686 Move multiboot helper out of kernel
4688 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
4689 `loader/i386/multiboot_helper.S'.
4690 * conf/i386-coreboot.rmk: Likewise
4691 * conf/i386-ieee1275.rmk: Likewise
4693 * kern/i386/loader.S: Move multiboot helpers from here...
4694 * loader/i386/multiboot_helper.S: ...moved here
4695 * include/grub/i386/loader.h: Move declarations of multiboot
4696 helpers from here...
4697 * include/grub/i386/multiboot.h: ...moved here
4698 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
4700 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
4702 * kern/env.c (grub_env_context_open): Added an argument to specify
4703 whether a new context inherits exported variables from current
4704 one. This is useful when making a sandbox to interpret a config
4706 All callers updated.
4708 * include/grub/env.h (grub_env_context_open): Updated the prototype.
4710 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
4712 * kern/env.c (grub_env_context_close): Fix memory leaks.
4714 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
4716 * normal/main.c (grub_normal_execute): Added an argument
4717 BATCH to specify if an interactive interface should be provided
4718 after reading a config file.
4719 All callers updated.
4720 (read_command_list): Prevent being executed twice.
4721 (read_fs_list): Likewise.
4723 * include/grub/normal.h (grub_normal_execute): Updated the
4726 2009-03-22 Pavel Roskin <proski@gno.org>
4728 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
4730 * kern/i386/pc/startup.S: Likewise.
4731 * kern/i386/efi/startup.S: Likewise.
4732 * kern/i386/ieee1275/startup.S: Likewise.
4733 * kern/i386/coreboot/startup.S: Likewise.
4734 * kern/x86_64/efi/startup.S: Likewise.
4736 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
4737 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
4738 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
4740 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
4742 Bugfixes in multiboot for bugs uncovered by solaris kernel.
4744 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
4746 Use vaddr of correct segment for entry_point.
4748 2009-03-21 Bean <bean123ch@gmail.com>
4750 * commands/blocklist.c: Add include file <grub/command.h>, remove
4751 <grub/normal.h> and <grub/arg.h>.
4752 (grub_cmd_blocklist): Use the new command interface.
4753 (GRUB_MOD_INIT): Likewise.
4754 (GRUB_MOD_FINI): Likewise.
4755 * commands/boot.c: Likewise.
4756 * commands/cat.c: Likewise.
4757 * commands/cmp.c: Likewise.
4758 * commands/configfile.c: Likewise.
4759 * commands/crc.c: Likewise.
4760 * commands/echo.c: Likewise.
4761 * commands/halt.c: Likewise.
4762 * commands/handler.c: Likewise.
4763 * commands/hdparm.c: Likewise.
4764 * commands/help.c: Likewise.
4765 * commands/hexdump.c: Likewise.
4766 * commands/loadenv.c: Likewise.
4767 * commands/ls.c: Likewise.
4768 * commands/lsmmap.c: Likewise.
4769 * commands/lspci.c: Likewise.
4770 * commands/loadenv.c: Likewise.
4771 * commands/read.c: Likewise.
4772 * commands/reboot.c: Likewise.
4773 * commands/search.c: Likewise.
4774 * commands/sleep.c: Likewise.
4775 * commands/test.c: Likewise.
4776 * commands/usbtest.c: Likewise.
4777 * commands/videotest.c: Likewise.
4778 * commands/i386/cpuid.c: Likewise.
4779 * commands/i386/pc/halt.c: Likewise.
4780 * commands/i386/pc/play.c: Likewise.
4781 * commands/i386/pc/pxecmd.c: Likewise.
4782 * commands/i386/pc/vbeinfo.c: Likewise.
4783 * commands/i386/pc/vbetest.c: Likewise.
4784 * commands/ieee1275/suspend.c: Likewise.
4785 * disk/loopback.c: Likewise.
4786 * font/font_cmd.c: Likewise.
4787 * hello/hello.c: Likewise.
4788 * loader/efi/appleloader.c: Likewise.
4789 * loader/efi/chainloader.c: Likewise.
4790 * loader/i386/bsd.c: Likewise.
4791 * loader/i386/efi/linux.c: Likewise.
4792 * loader/i386/ieee1275/linux.c: Likewise.
4793 * loader/i386/linux.c: Likewise.
4794 * loader/i386/pc/chainloader.c: Likewise.
4795 * loader/i386/pc/linux.c: Likewise.
4796 * loader/powerpc/ieee1275/linux.c: Likewise.
4797 * loader/multiboot_loader.c: Likewise.
4798 * term/gfxterm.c: Likewise.
4799 * term/i386/pc/serial.c: Likewise.
4800 * term/terminfo.c: Likewise.
4802 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
4803 * term/i386/pc/vga.c: Likewise.
4804 * video/readers/jpeg.c: Likewise.
4805 * video/readers/png.c: Likewise.
4806 * video/readers/tga.c: Likewise.
4808 * util/grub-fstest (cmd_loopback): Removed.
4809 (cmd_blocklist): Likewise.
4811 (grub_register_command): Likewise.
4812 (grub_unregister_command): Likewise.
4813 (execute_command): Use grub_command_find to locate command and execute
4816 * include/grub/efi/chainloader.h: Removed.
4817 * loader/efi/chainloader_normal.c: Likewise.
4818 * loader/i386/bsd_normal.c: Likewise.
4819 * loader/i386/pc/chainloader_normal.c: Likewise.
4820 * loader/i386/pc/multiboot_normal.c: Likewise.
4821 * loader/linux_normal.c: Likewise.
4822 * loader/multiboot_loader_normal.c: Likewise.
4823 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
4825 * gencmdlist.sh: Scan new registration command grub_register_extcmd
4826 and grub_register_command_p1.
4828 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
4829 kern/command.c, lib/arg.c and commands/extcmd.c.
4830 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
4831 (minicmd_mod_SOURCES): New variable.
4832 (minicmd_mod_CFLAGS): Likewise.
4833 (minicmd_mod_LDFLAGS): Likewise.
4834 (extcmd_mod_SOURCES): Likewise.
4835 (extcmd_mod_CFLAGS): Likewise.
4836 (extcmd_mod_LDFLAGS): Likewise.
4837 (boot_mod_SOURCES): Removed.
4838 (boot_mod_CFLAGS): Likewise.
4839 (boot_mod_LDFLAGS): Likewise.
4841 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
4843 (kernel_img_HEADERS): Add command.h.
4844 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
4845 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
4847 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
4848 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
4849 remove the corresponding normal mode command.
4850 (normal_mod_SOURCES): Remove normal/arg.c.
4851 * conf/i386-coreboot.rmk: Likewise.
4852 * conf/i386-efi.rmk: Likewise.
4853 * conf/i386-ieee1275.rmk: Likewise.
4854 * conf/powerpc-ieee1275.rmk: Likewise.
4855 * conf/x86_64-efi.rmk: Likewise.
4857 * include/grub/arg.h: Move from here ...
4858 * include/grub/lib/arg.h: ... to here.
4860 * normal/arg.c: Move from here ...
4861 * lib/arg.c: ... to here.
4863 * commands/extcmd.c: New file.
4864 * commands/minicmd.c: Likewise.
4865 * include/grub/command.h: Likewise.
4866 * include/grub/extcmd.h: Likewise.
4867 * kern/command.c: Likewise.
4868 * kern/corecmd.c: Likewise.
4870 * kern/list.c (grub_list_iterate): Return int instead of void.
4871 (grub_list_insert): New function.
4872 (grub_prio_list_insert): Likewise.
4874 * kern/rescue.c (grub_rescue_command): Removed.
4875 (grub_rescue_command_list): Likewise.
4876 (grub_rescue_register_command): Likewise.
4877 (grub_rescue_unregister_command): Likewise.
4878 (grub_rescue_cmd_boot): Move to minicmd.c
4879 (grub_rescue_cmd_help): Likewise.
4880 (grub_rescue_cmd_info): Likewise.
4881 (grub_rescue_cmd_boot): Likewise.
4882 (grub_rescue_cmd_testload): Likewise.
4883 (grub_rescue_cmd_dump): Likewise.
4884 (grub_rescue_cmd_rmmod): Likewise.
4885 (grub_rescue_cmd_lsmod): Likewise.
4886 (grub_rescue_cmd_exit): Likewise.
4887 (grub_rescue_print_devices): Moved to corecmd.c.
4888 (grub_rescue_print_files): Likewise.
4889 (grub_rescue_cmd_ls): Likewise.
4890 (grub_rescue_cmd_insmod): Likewise.
4891 (grub_rescue_cmd_set): Likewise.
4892 (grub_rescue_cmd_unset): Likewise.
4893 (attempt_normal_mode): Use grub_command_find to get normal module.
4894 (grub_enter_rescue_mode): Use grub_register_core_commands to register
4895 commands, remove grub_rescue_register_command calls.
4897 * normal/command.c (grub_register_command): Removed.
4898 (grub_unregister_command): Likewise.
4899 (grub_command_find): Likewise.
4900 (grub_iterate_commands): Likewise.
4901 (rescue_command): Likewise.
4902 (export_command): Moved to corecmd.c.
4903 (set_command): Removed.
4904 (unset_command): Likewise.
4905 (insmod_command): Likewise.
4906 (rmmod_command): Likewise.
4907 (lsmod_command): Likewise.
4908 (grub_command_init): Likewise.
4910 * normal/completion.c (iterate_command): Use cmd->prio to check for
4912 (complete_arguments): Use grub_extcmd_t structure to find options.
4913 (grub_normal_do_completion): Change function grub_iterate_commands to
4914 grub_command_iterate.
4916 * normal/execute.c (grub_script_execute_cmd): No need to parse
4919 * normal/main.c (grub_dyncmd_dispatcher): New function.
4920 (read_command_list): Register unload commands as dyncmd.
4921 (grub_cmd_normal): Use new command interface, register rescue,
4922 unregister normal at entry, register normal, unregister rescue at exit.
4924 * include/grub/list.h (grub_list_test_t): New type.
4925 (grub_list_iterate): Return int instead of void.
4926 (grub_list_insert): New function.
4927 (GRUB_AS_NAMED_LIST_P): New macro.
4928 (GRUB_AS_PRIO_LIST): Likewise.
4929 (GRUB_AS_PRIO_LIST_P): Likewise.
4930 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
4931 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
4932 (grub_prio_list): New structure.
4933 (grub_prio_list_insert): New function.
4934 (grub_prio_list_remove): New inline function.
4936 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
4937 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
4938 (GRUB_COMMAND_FLAG_MENU): Likewise.
4939 (GRUB_COMMAND_FLAG_BOTH): Likewise.
4940 (GRUB_COMMAND_FLAG_TITLE): Likewise.
4941 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
4942 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
4943 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
4944 (grub_command): Likewise.
4945 (grub_register_command): Likewise.
4946 (grub_command_find): Likewise.
4947 (grub_iterate_commands): Likewise.
4948 (grub_command_init): Likewise.
4949 (grub_arg_parse): Likewise.
4950 (grub_arg_show_help): Likewise.
4952 * include/grub/rescue.h (grub_rescue_register_command): Removed.
4953 (grub_rescue_unregister_command): Likewise.
4955 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
4956 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
4957 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
4959 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
4960 grub_rescue_cmd_initrd.
4961 * include/grub/i386/loader.h: Likewise.
4962 * include/grub/x86_64/loader.h: Likewise.
4964 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
4966 2009-03-21 Bean <bean123ch@gmail.com>
4968 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
4969 instead of stat in mingw environment.
4971 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
4973 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
4975 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
4978 2009-03-21 Bean <bean123ch@gmail.com>
4980 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
4983 2009-03-18 Michel Dänzer <michel@daenzer.net>
4985 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
4986 checking inode flags for EXT4_EXTENTS_FLAG.
4988 2009-03-18 Robert Millan <rmh@aybabtu.com>
4990 * loader/i386/linux.c: Include `<grub/video.h>' and
4991 `<grub/i386/pc/vbe.h>'..
4992 (grub_linux_setup_video): New function. Loosely based on the EFI one.
4993 (grub_linux32_boot): Attempt to configure video settings with
4994 grub_linux_setup_video().
4995 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
4996 to avoid grub_console_fini() which would step out of graphical mode
4999 2009-03-14 Robert Millan <rmh@aybabtu.com>
5001 Fix build on powerpc.
5002 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5004 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5006 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5007 background image command.
5009 2009-03-12 Colin D Bennett <colin@gibibit.com>
5011 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5012 (grub_gfxterm_putchar): Extract pairs of identical calls to
5013 draw_cursor out of conditional blocks.
5015 2009-03-11 Pavel Roskin <proski@gnu.org>
5017 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5018 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5020 2009-03-11 Robert Millan <rmh@aybabtu.com>
5022 * loader/i386/multiboot_elfxx.c
5023 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5025 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5027 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5030 2009-03-11 Robert Millan <rmh@aybabtu.com>
5032 * loader/i386/multiboot.c (code_size): New variable.
5033 (grub_multiboot): Define offsets by adding to `code_size' rather
5034 than subtracting from `grub_multiboot_payload_size'. Provide
5035 4-byte alignment to MBI and others by increasing
5036 `boot_loader_name_length' appropriately.
5038 * loader/i386/multiboot_elfxx.c
5039 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5041 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5043 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5046 2009-03-08 Robert Millan <rmh@aybabtu.com>
5048 Make loader/i386/linux.c usable on i386-pc again.
5050 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5052 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
5055 2009-03-07 Bean <bean123ch@gmail.com>
5057 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
5060 2009-03-06 Robert Millan <rmh@aybabtu.com>
5062 Fix display issue on terminals with screen size other than 80x25
5063 (e.g. gfxterm with resolution higher than 640x480).
5065 * normal/main.c (grub_normal_init_page): Display title text in a
5066 position relative to the center of the terminal instead of relying
5067 on a hardcoded offset.
5069 2009-03-04 Robert Millan <rmh@aybabtu.com>
5071 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
5074 * Makefile.in (host_kernel): New variable.
5075 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
5076 scripts instead of just the windows one.
5077 * configure.ac: Initialize and AC_SUBST `host_kernel'.
5079 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5081 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
5083 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5084 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5085 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5086 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5087 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5088 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5090 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5092 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
5093 or if there's no space for the disk label and print the partition number on a
5096 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5098 * util/misc.c: Include <time.h>.
5099 (grub_millisleep): New function.
5101 2009-03-04 Bean <bean123ch@gmail.com>
5103 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
5104 another option -mno-red-zone.
5106 * commands/handler.c: Change module description.
5108 * kern/handler.c: Add missing space at the end of description line.
5110 * kern/list.c: Likewise.
5112 2009-03-03 Robert Millan <rmh@aybabtu.com>
5114 Move more components to the relocation area, and fix mbi pointer
5115 handling to use the destination rather than the origin (thanks to
5116 Vladimir Serbinenko for spotting).
5118 * loader/i386/multiboot.c (mbi_dest): New variable.
5119 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
5120 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
5123 2009-03-01 Bean <bean123ch@gmail.com>
5125 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
5126 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
5127 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
5128 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
5130 * loader/i386/efi/linux.c (acpi_guid): New variable.
5131 (acpi_guid): Likewise.
5132 (EBDA_SEG_ADDR): New constant.
5133 (LOW_MEM_ADDR): Likewise.
5134 (FAKE_EBDA_SEG): Likewise.
5135 (fake_bios_data): New function.
5136 (grub_linux_boot): Call fake_bios_data.
5138 2009-03-01 Bean <bean123ch@gmail.com>
5140 * commands/terminal.c: Removed.
5142 * commands/handler.c: New file.
5144 * include/grub/list.h: Likewise.
5146 * include/grub/handler.h: Likewise.
5148 * kern/list.c: Likewise.
5150 * kern/handler.c: Likewise.
5152 * kern/term.h: Include header file <grub/handler.h>.
5153 (grub_term_input): Move next field to the beginning.
5154 (grub_term_output): Likewise.
5155 (grub_term_input_class): New variable.
5156 (grub_term_output_class): Likewise.
5157 (grub_term_register_input): Changed to inline function.
5158 (grub_term_register_output): Likewise.
5159 (grub_term_unregister_input): Likewise.
5160 (grub_term_unregister_output): Likewise.
5161 (grub_term_set_current_input): Likewise.
5162 (grub_term_set_current_output): Likewise.
5163 (grub_term_get_current_input): Likewise.
5164 (grub_term_get_current_output): Likewise.
5165 (grub_term_iterate_input): Removed.
5166 (grub_term_iterate_output): Likewise.
5168 * kern/term.c (grub_term_list_input): Removed.
5169 (grub_term_list_output): Likewise.
5170 (grub_term_input_class): New variable.
5171 (grub_term_output_class): Likewise.
5172 (grub_cur_term_input): Change variable as macro.
5173 (grub_cur_term_output): Likewise.
5174 (grub_term_register_input): Removed.
5175 (grub_term_register_output): Likewise.
5176 (grub_term_unregister_input): Likewise.
5177 (grub_term_unregister_output): Likewise.
5178 (grub_term_set_current_input): Likewise.
5179 (grub_term_set_current_output): Likewise.
5180 (grub_term_iterate_input): Likewise.
5181 (grub_term_iterate_output): Likewise.
5182 (grub_term_get_current_input): Likewise.
5183 (grub_term_get_current_output): Likewise.
5185 * util/grub-editenv.c: Include header file <grub/handler.h>.
5186 (grub_term_get_current_input): Removed.
5187 (grub_term_get_current_output): Likewise.
5188 (grub_term_input_class): New variable.
5189 (grub_term_output_class): Likewise.
5191 * util/grub-fstest.c (grub_term_get_current_input): Removed.
5192 (grub_term_get_current_output): Likewise.
5193 (grub_term_input_class): New variable.
5194 (grub_term_output_class): Likewise.
5196 * util/grub-probe.c (grub_term_get_current_input): Removed.
5197 (grub_term_get_current_output): Likewise.
5198 (grub_term_input_class): New variable.
5199 (grub_term_output_class): Likewise.
5201 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
5202 (grub_term_get_current_output): Likewise.
5203 (grub_term_input_class): New variable.
5204 (grub_term_output_class): Likewise.
5206 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
5207 (terminal_mod_SOURCES): Likewise.
5208 (terminal_mod_CFLAGS): Likewise.
5209 (terminal_mod_LDFLAGS): Likewise.
5211 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
5213 (kernel_img_SOURCES): Add list.c and handler.c.
5214 (kernel_img_HEADERS): Add list.h and handler.h.
5216 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5218 (kernel_mod_SOURCES): Add list.c and handler.c.
5219 (kernel_mod_HEADERS): Add list.h and handler.h.
5221 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
5223 (kernel_elf_SOURCES): Add list.c and handler.c.
5224 (kernel_elf_HEADERS): Add list.h and handler.h.
5226 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5228 (kernel_elf_SOURCES): Add list.c and handler.c.
5229 (kernel_elf_HEADERS): Add list.h and handler.h.
5231 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5233 (kernel_mod_SOURCES): Add list.c and handler.c.
5234 (kernel_mod_HEADERS): Add list.h and handler.h.
5236 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5238 (kernel_elf_SOURCES): Add list.c and handler.c.
5239 (kernel_elf_HEADERS): Add list.h and handler.h.
5241 2009-02-27 Robert Millan <rmh@aybabtu.com>
5243 Factorize elf32 / elf64 code in Multiboot loader. This will
5244 prevent it from getting out of sync again.
5246 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
5247 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
5248 grub_multiboot_load_elf64): Move from here ...
5249 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
5250 grub_multiboot_load_elf): ... to here (new file).
5252 2009-02-27 Robert Millan <rmh@aybabtu.com>
5254 * util/grub.d/10_linux.in: Rename "single-user mode" to
5257 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5259 Don't leak in SCSI code.
5260 * disk/scsi.c (grub_scsi_close): free `scsi'.
5262 2009-02-27 Robert Millan <rmh@aybabtu.com>
5264 * loader/i386/pc/multiboot.c: Move from here ...
5265 * loader/i386/multiboot.c: ... to here. Update all users.
5267 2009-02-27 Robert Millan <rmh@aybabtu.com>
5269 Patch from Alexandre Bique <bique.alexandre@gmail.com>
5270 * util/i386/pc/grub-setup.c (setup): Fix directory path.
5272 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
5274 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
5277 2009-02-27 Robert Millan <rmh@aybabtu.com>
5279 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
5280 `0x' qualifier as 0 when base is specified as parameter).
5282 2009-02-24 Bean <bean123ch@gmail.com>
5284 * configure.ac: Check for -mcmodel=large in x86_64 target.
5286 * include/grub/efi/api.h (efi_call_10): New macro.
5287 (efi_wrap_10): New function.
5289 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
5290 (GRUB_PE32_REL_BASED_HIGH): Likewise.
5291 (GRUB_PE32_REL_BASED_LOW): Likewise.
5292 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
5293 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
5294 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
5295 (GRUB_PE32_REL_BASED_SECTION): Likewise.
5296 (GRUB_PE32_REL_BASED_REL): Likewise.
5297 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
5298 (GRUB_PE32_REL_BASED_DIR64): Likewise.
5299 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
5301 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
5304 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
5305 (efi_wrap_10): New function.
5307 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
5309 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
5310 MB/MBP model (NV chipset).
5311 (devdata_devs): Add devpath_5 to the list.
5313 * load/i386/efi/linux.c (video_base): Remove variable.
5314 (RGB_MASK): New macro.
5315 (RGB_MAGIC): Likewise.
5316 (LINE_MIN): Likewise.
5317 (LINE_MAX): Likewise.
5318 (FBTEST_STEP): Likewise.
5319 (FBTEST_COUNT): Likewise.
5320 (fb_list): New variable.
5321 (grub_find_video_card): Remove function.
5322 (find_framebuf): New function.
5323 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
5326 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
5329 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
5331 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
5333 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
5336 2009-02-22 Robert Millan <rmh@aybabtu.com>
5338 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
5339 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
5340 in our relocation, instead of using it directly from heap. Also
5341 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
5343 2009-02-21 Robert Millan <rmh@aybabtu.com>
5345 Implement USB keyboard support (based on patch by Marco Gerards)
5347 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
5348 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
5349 (usb_keyboard_mod_LDFLAGS): New variables.
5351 * term/usb_keyboard.c: New file.
5353 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
5355 Corrected wrong declaration
5357 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
5359 2009-02-14 Christian Franke <franke@computer.org>
5361 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
5362 (grub_lspci_iter): Print class code and programming interface byte.
5364 2009-02-14 Christian Franke <franke@computer.org>
5366 * gendistlist.sh: Ignore `.svn' directories.
5368 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
5370 * fs/fat.c: Add 2009 to Copyright line.
5372 2009-02-14 Christian Franke <franke@computer.org>
5374 * commands/hdparm.c: New file. Provides `hdparm' command
5375 which sends ATA commands via grub_disk_ata_pass_through ().
5377 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
5379 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
5380 and <grub/cpu/io.h> to include/grub/ata.h.
5381 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
5382 (GRUB_CDROM_SECTOR_SIZE): Remove.
5383 (GRUB_ATA_*): Move to include/grub/ata.h.
5384 (GRUB_ATAPI_*): Likewise.
5385 (enum grub_ata_commands): Likewise.
5386 (enum grub_ata_timeout_milliseconds): Likewise.
5387 (struct grub_ata_device): Likewise.
5388 (grub_ata_regset): Likewise.
5389 (grub_ata_regget): Likewise.
5390 (grub_ata_regset2): Likewise.
5391 (grub_ata_regget2): Likewise.
5392 (grub_ata_check_ready): Likewise.
5393 (grub_ata_wait_not_busy): Remove static, exported in
5395 (grub_ata_wait_drq): Likewise.
5396 (grub_ata_pio_read): Likewise.
5398 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
5399 function for hdparm.mod.
5401 * include/grub/ata.h: New file, contains declarations from
5403 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
5405 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
5406 (grub_disk_ata_pass_through): New exported variable.
5408 * kern/disk.c (grub_disk_ata_pass_through): New variable.
5410 2009-02-13 Colin D Bennett <colin@gibibit.com>
5412 Support multiple fallback entries, and provide an API to support
5413 executing default+fallback menu entries. Renamed the `terminal' menu
5416 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
5417 variable declaration.
5418 (grub_menu_execute_callback): New structure declaration.
5419 (grub_menu_execute_callback_t): New typedef.
5420 (grub_menu_execute_with_fallback): New function declaration.
5421 (grub_menu_get_entry): Likewise.
5422 (grub_menu_get_timeout): Likewise.
5423 (grub_menu_set_timeout): Likewise.
5425 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
5427 * normal/menu.c (grub_wait_after_message): Moved to
5428 `normal/menu_text.c'.
5429 (draw_border): Likewise.
5430 (print_message): Likewise.
5431 (print_entry): Likewise.
5432 (print_entries): Likewise.
5433 (grub_menu_init_page): Likewise.
5434 (get_entry_number): Likewise.
5435 (print_timeout): Likewise.
5436 (run_menu): Likewise.
5437 (grub_menu_execute_entry): Likewise.
5438 (show_text_menu): Likewise.
5439 (get_and_remove_first_entry_number): New function.
5440 (grub_menu_execute_with_fallback): Likewise.
5441 (get_entry): Renamed to ...
5442 (grub_menu_get_entry): .. this and made it global.
5443 (get_timeout): Renamed to ...
5444 (grub_menu_get_timeout): ... this and made it global.
5445 (set_timeout): Renamed to ...
5446 (grub_menu_set_timeout): ... this and made it global.
5447 (grub_normal_terminal_menu_viewer): Renamed to ...
5448 (grub_normal_text_menu_viewer): ... this.
5450 * normal/menu_text.c: New file. Extracted text-menu-specific code
5453 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
5454 (normal_mod_SOURCES): Likewise.
5456 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5457 (normal_mod_SOURCES): Likewise.
5459 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5460 (normal_mod_SOURCES): Likewise.
5462 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
5463 (normal_mod_SOURCES): Likewise.
5465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5466 (normal_mod_SOURCES): Likewise.
5468 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5469 (normal_mod_SOURCES): Likewise.
5471 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5472 (normal_mod_SOURCES): Likewise.
5474 2009-02-11 Robert Millan <rmh@aybabtu.com>
5476 * util/grub.d/00_header.in: Update old reference to `font' command.
5478 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
5480 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
5482 Based on patch from Javier MartÃn.
5484 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
5486 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
5487 to avoid false positives with FAT.
5488 (grub_fstest_SOURCES): Likewise.
5489 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
5490 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5491 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5492 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5493 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5494 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5496 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
5498 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
5499 bpb.version_specific.fat12_or_fat16.fstype and
5500 bpb.version_specific.fat32.fstype.
5502 2009-02-08 Robert Millan <rmh@aybabtu.com>
5504 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
5506 2009-02-08 Robert Millan <rmh@aybabtu.com>
5508 * Makefile.in (host_os, host_cpu): New variables.
5509 (target_os): Remove. Update all users.
5511 2009-02-08 Marco Gerards <marco@gnu.org>
5513 * Makefile.in (enable_grub_emu_usb): New variable.
5514 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
5515 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
5516 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
5517 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
5518 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
5519 `usbtest.mod' and `usbms.mod'.
5520 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
5521 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
5522 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
5523 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
5524 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
5527 * disk/usbms.c: New file.
5529 * include/grub/usb.h: Likewise.
5531 * include/grub/usbtrans.h: Likewise.
5533 * include/grub/usbdesc.h: Likewise.
5535 * bus/usb/usbtrans.c: Likewise.
5537 * bus/usb/ohci.c: Likewise.
5539 * bus/usb/uhci.c: Likewise.
5541 * bus/usb/usbhub.c: Likewise.
5543 * bus/usb/usb.c: Likewise.
5545 * commands/usbtest.c: Likewise.
5547 * util/usb.c: Likewise.
5549 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
5551 * configure.ac: Test for libusb presence.
5553 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
5555 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
5557 * kern/mm.c: Add more comments.
5559 2009-02-08 Robert Millan <rmh@aybabtu.com>
5561 Patch from Javier MartÃn.
5562 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
5563 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
5565 2009-02-08 Robert Millan <rmh@aybabtu.com>
5567 * fs/cpio.c: Split tar functionality to ...
5568 * fs/tar.c: ... here (new file). Update all users.
5570 2009-02-07 Robert Millan <rmh@aybabtu.com>
5572 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
5573 backward-incompatible features.
5575 Based on patch from Javier MartÃn, with some adjustments.
5577 2009-02-07 Michael Scherer <misc@mandriva.org>
5579 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
5581 2009-02-07 Robert Millan <rmh@aybabtu.com>
5583 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
5584 position of `disk/lvm.c' to ensure grub_init_all() always picks it
5585 after the RAID stuff.
5587 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
5589 Fixes problem when running vbetest command as reported by
5590 Vladimir Serbinenko <phcoder@gmail.com>.
5592 * (grub_vbe_set_video_mode): Fixed problem with text modes.
5594 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
5596 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
5597 /dev/md/NpN style mdraid devices.
5599 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
5601 * util/unifont2pff.rb: Remove.
5603 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
5605 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
5608 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
5610 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
5611 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5612 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5613 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5614 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5615 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5616 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5618 2009-02-02 Christian Franke <franke@computer.org>
5620 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
5622 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
5624 * INSTALL: Note that we now require at least autoconf 2.59 and
5625 that LZO is optional.
5627 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
5629 Base on patch on bug #24154 created by Tomas Tintera
5632 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
5634 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
5636 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
5637 <bero@arklinux.org>.
5639 * normal/parser.y (script_init): Add missing semicolon.
5641 2009-01-31 Colin D Bennett <colin@gibibit.com>
5643 * normal/main.c: Add include to grub/menu_viewer.h.
5644 (free_menu_entry_classes): Added.
5645 (grub_normal_menu_addentry): Added class property handling.
5646 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
5647 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
5649 * normal/menu_viewer.c: New file.
5651 * normal/menu.c (run_menu_entry): Renamed to ...
5652 (grub_menu_execute_entry): ... this and made it as global.
5653 (grub_menu_run): Renamed to ...
5654 (show_text_menu): ... this and made it local.
5655 (show_text_menu): Adapt to new function names.
5656 (grub_normal_terminal_menu_viewer): New global variable.
5658 * include/grub/menu.h: New file.
5660 * include/grub/menu_viewer.h: New file.
5662 * include/grub/normal.h: Added include to grub/menu.h.
5663 (grub_menu_entry): Moved to include/grub/menu.h.
5664 (grub_menu_entry_t): Likewise.
5665 (grub_menu): Likewise.
5666 (grub_menu_t): Likewise.
5667 (grub_normal_terminal_menu_viewer): Added.
5668 (grub_menu_execute_entry): Likewise.
5669 (grub_menu_run): Removed.
5671 * DISTLIST: Added include/grub/menu.h.
5672 Added include/grub/menu_viewer.h.
5673 Added normal/menu_viewer.c.
5675 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
5677 * normal/execute.c (grub_script_execute_menuentry): Changed to use
5678 arglist for menutitle arguments.
5680 * normal/main.c (grub_normal_menu_addentry): Likewise.
5682 * normal/parser.y (menuentry): Likewise.
5684 * normal/script.c (grub_script_create_cmdmenu): Likewise.
5686 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
5687 (grub_script_create_cmdmenu): Likewise.
5689 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
5691 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
5694 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
5696 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
5698 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
5700 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
5702 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
5704 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
5706 2009-01-30 Christian Franke <franke@computer.org>
5708 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
5709 in option help text.
5711 2009-01-27 Pavel Roskin <proski@gnu.org>
5713 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
5715 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
5717 * commands/lsmmap.c: Add include to grub/machine/memory.h.
5719 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
5721 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
5722 unregister function.
5724 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
5726 * disk/scsi.c (grub_scsi_read): Fix sign problem.
5728 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
5730 * util/grub-mkfont.c (usage): Fix typo.
5732 * util/elf/grub-mkimage.c (load_modules): Fix warning.
5734 2009-01-26 Daniel Mierswa <impulze@impulze.org>
5736 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
5738 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
5740 * kern/misc.c (grub_strcasecmp): New function.
5741 (grub_strcasecmp): Use grub_size_t instead of int for length.
5743 * include/grub/misc.h: Update function prototypes.
5745 2009-01-26 Robert Millan <rmh@aybabtu.com>
5747 * configure.ac: Fix cross-compilation check.
5749 2009-01-22 Christian Franke <franke@computer.org>
5751 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
5752 (precision) digit string. Allow `.format2' without `format1' (width).
5753 Limit input chars for `%s' output to `format2' if specified. This is
5754 compatible with standard printf ().
5756 2009-01-22 Christian Franke <franke@computer.org>
5758 * disk/ata.c (grub_ata_wait_status): Replace by ...
5759 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
5760 other status bits may be invalid while BSY is asserted.
5761 (grub_ata_check_ready): New function.
5762 (grub_ata_cmd): Removed.
5763 (grub_ata_wait_drq): New function.
5764 (grub_ata_strncpy): Remove inline.
5765 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
5766 and error check now done by grub_ata_wait_drq ().
5767 (grub_ata_pio_write): Likewise.
5768 (grub_atapi_identify): Set DEV before check for !BSY. Use
5769 grub_ata_wait_drq () to wait for data.
5770 (grub_ata_device_initialize): Add status register check to
5771 detect missing SATA slave devices. Add debug messages.
5772 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
5773 (grub_atapi_packet): Set DEV before check for !BSY. Replace
5774 transfer loop by grub_ata_pio_write ().
5775 (grub_ata_identify): Set DEV before check for !BSY. Use
5776 grub_ata_wait_drq () to wait for data.
5777 (grub_ata_setaddress): Set DEV before check for !BSY.
5778 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
5779 read/write in one loop. Fix invalid command on write. Fix incomplete
5780 command on (size % batch) == 0. Add missing error check after write of
5781 last block. Add debug messages.
5782 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
5784 2009-01-19 Christian Franke <franke@computer.org>
5786 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
5787 (GRUB_ATAPI_IREASON_*): Likewise.
5788 (grub_ata_pio_write): Fix timeout error return.
5789 (grub_atapi_identify): Add grub_ata_wait () after cmd.
5790 (grub_atapi_wait_drq): New function.
5791 (grub_atapi_packet): New parameter `size'.
5792 Use grub_atapi_wait_drq () and direct write instead of
5793 grub_ata_pio_write ().
5794 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
5795 reads the number of bytes requested by the device for each DRQ
5797 (grub_atapi_write): Remove old implementation, return not
5798 implemented instead.
5800 2009-01-19 Christian Franke <franke@computer.org>
5802 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
5803 of 512 to calculate data size.
5804 (grub_scsi_read12): Likewise.
5805 (grub_scsi_write10): Likewise.
5806 (grub_scsi_write12): Likewise.
5807 (grub_scsi_read): Adjust size according to blocksize.
5808 Add checks for invalid blocksize and unaligned transfer.
5810 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
5812 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
5814 * term/gfxterm.c (write_char): Fix background rendering for wide
5817 2009-01-19 Robert Millan <rmh@aybabtu.com>
5819 * config.guess: Update to latest version from config git.
5820 * config.sub: Likewise.
5822 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
5824 * Makefile.in: Change font compilation to use new grub-mkfont instead
5827 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
5828 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
5829 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
5830 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
5831 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
5832 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
5833 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
5834 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
5835 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
5837 2009-01-16 Christian Franke <franke@computer.org>
5839 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
5840 (enum grub_ata_timeout_milliseconds): New enum.
5841 (grub_ata_wait_status): Add parameter milliseconds.
5842 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
5843 recovery from timed-out commands.
5844 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
5845 return grub_errno instead of REG_ERROR.
5846 (grub_ata_pio_write): Add parameter milliseconds.
5847 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
5848 Pass milliseconds to grub_ata_wait_status () and
5849 grub_ata_pio_read ().
5850 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
5851 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
5852 grub_ata_wait_status (). Fix IDENTIFY timeout check.
5853 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
5854 It is not suitable for device detection, because DEV bit is ignored,
5855 the command may run too long, and not all devices set the signature
5857 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
5858 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
5859 Fix device selection, DEV bit must be set first to address the registers
5860 of the correct device.
5861 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
5862 grub_ata_pio_read/write ().
5863 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
5864 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
5866 2009-01-13 Carles Pina i Estany <carles@pina.cat>
5868 * util/grub-editenv.c (main): Use fseeko(), not fseek().
5870 2009-01-13 Bean <bean123ch@gmail.com>
5872 * util/grub-mkfont.c (write_font): forget to remove some debug code.
5874 2009-01-13 Bean <bean123ch@gmail.com>
5876 * Makefile.in: (enable_grub_mkfont): New variable.
5877 (freetype_cflags): Likewise.
5878 (freetype_libs): Likewise.
5880 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
5881 (grub_mkfont_SOURCES): New variable.
5882 (grub_mkfont_CFLAGS): Likewise.
5883 (grub_mkfont_LDFLAGS): Likewise.
5885 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
5886 library if `--enable-grub-mkfont' is requested.
5887 (enable_grub_mkfont): New variable.
5888 (freetype_cflags): Likewise.
5889 (freetype_libs): Likewise.
5891 * util/grub-mkfont.c: New file.
5893 2009-01-12 Christian Franke <franke@computer.org>
5895 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
5896 mode check. Fix setting of compat_use[].
5898 2009-01-10 Robert Millan <rmh@aybabtu.com>
5900 Update a few copyright years which we forgot to do in 2008 (only for
5901 files whose changes made in 2008 were copyright-significant)
5903 * Makefile.in: Add 2008 to Copyright line.
5904 * disk/ieee1275/ofdisk.c: Likewise.
5905 * disk/efi/efidisk.c: Likewise.
5906 * kern/dl.c: Likewise.
5907 * kern/sparc64/ieee1275/init.c: Likewise.
5908 * kern/mm.c: Likewise.
5909 * kern/efi/mm.c: Likewise.
5910 * boot/i386/pc/boot.S: Likewise.
5911 * genfslist.sh: Likewise.
5912 * fs/iso9660.c: Likewise.
5913 * fs/hfs.c: Likewise.
5914 * fs/jfs.c: Likewise.
5915 * fs/minix.c: Likewise.
5916 * fs/ufs.c: Likewise.
5917 * gensymlist.sh.in: Likewise.
5918 * genkernsyms.sh.in: Likewise.
5919 * include/grub/misc.h: Likewise.
5920 * include/grub/types.h: Likewise.
5921 * include/grub/symbol.h: Likewise.
5922 * include/grub/elf.h: Likewise.
5923 * include/grub/kernel.h: Likewise.
5924 * include/grub/disk.h: Likewise.
5925 * include/grub/dl.h: Likewise.
5926 * include/grub/i386/linux.h: Likewise.
5927 * include/grub/i386/pc/biosdisk.h: Likewise.
5928 * include/grub/efi/api.h: Likewise.
5929 * include/grub/efi/pe32.h: Likewise.
5930 * include/grub/util/misc.h: Likewise.
5931 * normal/execute.c: Likewise.
5932 * normal/arg.c: Likewise.
5933 * normal/completion.c: Likewise.
5934 * normal/lexer.c: Likewise.
5935 * normal/parser.y: Likewise.
5936 * normal/misc.c: Likewise.
5937 * commands/i386/pc/vbeinfo.c: Likewise.
5938 * commands/hexdump.c: Likewise.
5939 * commands/terminal.c: Likewise.
5940 * commands/ls.c: Likewise.
5941 * commands/help.c: Likewise.
5942 * partmap/pc.c: Likewise.
5943 * loader/efi/chainloader.c: Likewise.
5944 * loader/multiboot_loader.c: Likewise.
5945 * loader/i386/pc/multiboot2.c: Likewise.
5946 * term/efi/console.c: Likewise.
5947 * term/i386/pc/serial.c: Likewise.
5948 * util/lvm.c: Likewise.
5949 * util/console.c: Likewise.
5950 * util/i386/efi/grub-mkimage.c: Likewise.
5951 * util/raid.c: Likewise.
5953 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
5955 * commands/videotest.c: Removed include to grub/machine/memory.h.
5957 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
5958 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
5959 (video_mod_SOURCES): Removed.
5960 (video_mod_CFLAGS): Likewise.
5961 (video_mod_LDFLAGS): Likewise.
5962 (gfxterm_mod_SOURCES): Likewise.
5963 (gfxterm_mod_CFLAGS): Likewise.
5964 (gfxterm_mod_LDFLAGS): Likewise.
5965 (videotest_mod_SOURCES): Likewise.
5966 (videotest_mod_CFLAGS): Likewise.
5967 (videotest_mod_LDFLAGS): Likewise.
5968 (bitmap_mod_SOURCES): Likewise.
5969 (bitmap_mod_CFLAGS): Likewise.
5970 (bitmap_mod_LDFLAGS): Likewise.
5971 (tga_mod_SOURCES): Likewise.
5972 (tga_mod_CFLAGS): Likewise.
5973 (tga_mod_LDFLAGS): Likewise.
5974 (jpeg_mod_SOURCES): Likewise.
5975 (jpeg_mod_CFLAGS): Likewise.
5976 (jpeg_mod_LDFLAGS): Likewise.
5977 (png_mod_SOURCES): Likewise.
5978 (png_mod_CFLAGS): Likewise.
5979 (png_mod_LDFLAGS): Likewise.
5981 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
5982 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
5983 (video_mod_SOURCES): Added.
5984 (video_mod_CFLAGS): Likewise.
5985 (video_mod_LDFLAGS): Likewise.
5986 (videotest_mod_SOURCES): Likewise.
5987 (videotest_mod_CFLAGS): Likewise.
5988 (videotest_mod_LDFLAGS): Likewise.
5989 (bitmap_mod_SOURCES): Likewise.
5990 (bitmap_mod_CFLAGS): Likewise.
5991 (bitmap_mod_LDFLAGS): Likewise.
5992 (tga_mod_SOURCES): Likewise.
5993 (tga_mod_CFLAGS): Likewise.
5994 (tga_mod_LDFLAGS): Likewise.
5995 (jpeg_mod_SOURCES): Likewise.
5996 (jpeg_mod_CFLAGS): Likewise.
5997 (jpeg_mod_LDFLAGS): Likewise.
5998 (png_mod_SOURCES): Likewise.
5999 (png_mod_CFLAGS): Likewise.
6000 (png_mod_LDFLAGS): Likewise.
6001 (gfxterm_mod_SOURCES): Likewise.
6002 (gfxterm_mod_CFLAGS): Likewise.
6003 (gfxterm_mod_LDFLAGS): Likewise.
6005 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6006 grub/machine/console.h.
6008 2009-01-04 Jerone Young <jerone@gmail.com>
6010 Make on screen instructions clearer
6012 Based on patch created by Jidanni <jidanni@jidanni.org>
6014 * normal/menu.c: print clearer instructions on the screen
6016 2009-01-02 Colin D Bennett <colin@gibibit.com>
6020 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6021 build system and fixed gfxterm.c to work with different sized fonts.
6023 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6025 * configure: Re-generated.
6027 * DISTLIST: Removed font/manager.c.
6029 Added font/font_cmd.c.
6031 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6034 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6036 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6038 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6040 * normal/menu.c: Likewise.
6042 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6043 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6045 * include/grub/font.h: Replaced with new file.
6047 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6048 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6049 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6050 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6051 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6052 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
6053 fg_red, fg_green, fg_blue, fg_alpha.
6054 (grub_video_adapter): Removed blit_glyph.
6055 (grub_video_blit_glyph): Removed.
6057 * font/manager.c: Removed file.
6059 * font/font.c: New file.
6061 * font/font_cmd.c: Likewise.
6063 * video/video.c (grub_video_blit_glyph): Removed.
6065 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
6066 (grub_video_vbe_map_rgba): Likewise.
6067 (grub_video_vbe_unmap_color_int): Likewise.
6068 (grub_video_vbe_blit_glyph): Removed.
6069 (grub_video_vbe_adapter): Removed blit_glyph.
6071 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
6072 (get_pixel): Likewise.
6073 (set_pixel): Likewise.
6075 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
6077 * term/gfxterm.c: Adapted to new font engine.
6079 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
6081 * term/i386/pc/vga.c: Likewise.
6083 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
6085 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6087 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6089 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6091 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6093 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6095 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6097 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6099 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6101 * util/grub.d/00_header.in: Changed to use new loadfont command.
6103 * util/grub-mkconfig_lib.in: Changed font extension.
6105 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
6107 * util/getroot.c (grub_util_get_grub_dev): Add support for
6108 /dev/md/dNNpNN style partitionable mdraid devices.
6110 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
6112 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
6113 at a time limit of the PXE TFTP API correctly.
6114 (grub_pxefs_close): Likewise.
6116 2008-11-29 Robert Millan <rmh@aybabtu.com>
6118 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
6119 grub_ata_device_initialize() calls.
6121 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
6123 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
6125 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
6127 2008-11-28 Robert Millan <rmh@aybabtu.com>
6129 Fix build on powerpc-ieee1275. Based on patch created by
6130 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
6131 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6132 `kern/ieee1275/mmap.c'.
6133 * include/grub/powerpc/ieee1275/memory.h: New file.
6135 Provide grub-install on coreboot.
6136 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
6137 (grub_install_SOURCES): New variable.
6138 * util/i386/pc/grub-install.in: Add a few condition checks to make it
6141 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
6143 * util/grub-fstest.c (grub_term_get_current_input): Change return type
6144 to `grub_term_input_t'.
6145 (grub_term_get_current_output): Change return type to
6146 `grub_term_output_t'.
6148 2008-11-22 Robert Millan <rmh@aybabtu.com>
6150 Fix breakage on coreboot due to declaration mismatch.
6151 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
6152 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
6153 grub_vga_text_cls().
6155 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
6156 comments. Avoid copying one more byte than necessary (just in case).
6158 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
6159 to 0x200000 (avoids trouble with some OFW implementations, and matches
6160 with the one in Yaboot).
6161 Reported by Manoel Abranches
6163 2008-11-20 Robert Millan <rmh@aybabtu.com>
6165 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
6166 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
6168 * util/grub-mkconfig_lib.in (grub_warn): New function.
6169 (convert_system_path_to_grub_path): Use grub_warn() when issuing
6170 warnings, to obtain consistent formatting.
6171 * util/grub.d/00_header.in: Likewise.
6172 * util/update-grub_lib.in: Likewise.
6174 * loader/i386/linux.c (allocate_pages): Fix a warning.
6175 Move comment text to `#error' stanza.
6177 Harmonize ieee1275's grub_available_iterate() with the generic
6178 grub_machine_mmap_iterate() interface (fixes a recently-introduced
6179 build problem on i386-ieee1275):
6180 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
6181 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
6182 parameter `type'. Update all users of this function.
6183 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
6184 `kern/ieee1275/mmap.c'.
6185 * kern/ieee1275/init.c
6186 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
6188 (grub_machine_mmap_iterate): ... this.
6189 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
6190 return type to `grub_err_t'. Update all implementations of this
6192 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
6195 Add `lsmmap' command (lists firmware-provided memory map):
6196 * commands/lsmmap.c: New file.
6197 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
6198 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
6200 * conf/powerpc-ieee1275.rmk: Likewise.
6201 * conf/i386-coreboot.rmk: Likewise.
6202 * conf/i386-ieee1275.rmk: Likewise.
6204 2008-11-19 Robert Millan <rmh@aybabtu.com>
6206 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
6207 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
6208 constraints to initrd allocation (based on code from
6209 loader/i386/pc/linux.c). Without them, initrd was allocated too high
6210 for Linux to find it.
6212 2008-11-14 Robert Millan <rmh@aybabtu.com>
6214 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
6215 order to cope with duplicate slashes.
6217 2008-11-14 Robert Millan <rmh@aybabtu.com>
6219 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
6220 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
6221 don't want to mess with lower memory, because it is used in the Linux
6224 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
6225 an appropriate place in lower memory, between 0x10000 and 0x90000,
6226 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
6227 is in our heap (probably as a result of it being corrupted during
6228 decompression). Add #error instance with comment to explain why this
6229 loader isn't currently usable on PC/BIOS.
6231 2008-11-14 Robert Millan <rmh@aybabtu.com>
6233 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
6234 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
6236 2008-11-12 Robert Millan <rmh@aybabtu.com>
6238 Make loader/i386/linux.c buildable on i386-pc (although disabled).
6240 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
6241 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
6243 * include/grub/i386/pc/memory.h: ... to here.
6245 2008-11-12 Robert Millan <rmh@aybabtu.com>
6247 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
6250 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
6251 (grub_console_cur_color, grub_console_real_putchar)
6252 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6253 (grub_console_setcolorstate, grub_console_setcolor)
6254 (grub_console_getcolor): Move from here ...
6255 * include/grub/i386/vga_common.h: ... to here (new file).
6257 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
6258 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
6260 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
6261 `<grub/i386/vga_common.h>'.
6263 2008-11-12 Robert Millan <rmh@aybabtu.com>
6265 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
6266 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
6267 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
6269 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6270 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
6272 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
6273 grub_console_init() with call to grub_vga_text_init().
6274 (grub_machine_fini): Replace call to
6275 grub_console_fini() with call to grub_vga_text_fini() and
6276 grub_at_keyboard_fini().
6278 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
6279 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
6280 (grub_console_setcolorstate, grub_console_setcolor)
6281 (grub_console_getcolor): New function prototypes.
6283 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
6284 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
6285 (grub_vga_text_setcursor): Static-ize.
6286 (grub_vga_text_term): New structure.
6287 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
6289 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
6290 (grub_console_cur_color, grub_console_standard_color)
6291 (grub_console_normal_color, grub_console_highlight_color)
6292 (map_char, grub_console_putchar, grub_console_getcharwidth)
6293 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
6294 (grub_console_getcolor): Move from here ...
6295 * term/i386/vga_common.c: ... to here (same function names).
6297 2008-11-12 Robert Millan <rmh@aybabtu.com>
6299 Use newly-added Multiboot support in coreboot.
6301 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
6302 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
6304 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
6305 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
6306 (codestart): Store the MBI in `startup_multiboot_info' when we're
6307 being loaded using Multiboot.
6309 * kern/i386/coreboot/init.c (grub_machine_init): Move
6310 grub_at_keyboard_init() call to beginning of function (useful for
6311 debugging). Call grub_machine_mmap_init() before attempting to use
6312 grub_machine_mmap_iterate().
6313 (grub_lower_mem, grub_upper_mem): Move from here ...
6314 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
6317 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
6320 2008-11-12 Robert Millan <rmh@aybabtu.com>
6322 Fix a regression introduced by the at_keyboard.mod split. Because
6323 some terminals are default on some platforms and non-default on
6324 others, the first terminal being registered determines which is
6325 going to be default.
6327 * kern/term.c (grub_term_register_input): If this is the first
6328 terminal being registered, set it as the current one.
6329 (grub_term_register_output): Likewise.
6331 * term/efi/console.c (grub_console_init): Do not call
6332 grub_term_set_current_output() or grub_term_set_current_input().
6333 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
6334 * term/i386/pc/console.c (grub_console_init): Likewise.
6335 (grub_console_fini): Do not call grub_term_set_current_input()
6336 (but leave grub_term_set_current_output() to restore text mode).
6338 2008-11-10 Robert Millan <rmh@aybabtu.com>
6340 * util/grub.d/00_header.in: Add backward compatibility check for
6341 versions of terminal.mod that don't understand `terminal_input' or
6344 2008-11-09 Robert Millan <rmh@aybabtu.com>
6346 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
6347 `terminal_input' / `terminal_output', not `terminal'.
6349 2008-11-08 Robert Millan <rmh@aybabtu.com>
6351 * Makefile.in (include_DATA): Fix srcdir=. assumption.
6352 (DISTCLEANFILES): Add `build_env.mk'.
6354 2008-11-08 Robert Millan <rmh@aybabtu.com>
6356 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
6357 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6358 members. Update all users.
6359 * util/console.c (grub_ncurses_term): Split in ...
6360 (grub_ncurses_term_input): ... this, and ...
6361 (grub_ncurses_term_output): ... this. Update all users.
6362 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
6364 2008-11-08 Robert Millan <rmh@aybabtu.com>
6366 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
6367 (PKGDATA): Add $(pkgdata_SRCDIR).
6368 (pkglib_BUILDDIR): New variable.
6369 (pkgdata_SRCDIR): New variable.
6370 (build_env.mk): New target.
6371 (include_DATA): New variable.
6372 (install-local): Install $(include_DATA) files in $(includedir).
6374 2008-11-07 Pavel Roskin <proski@gnu.org>
6376 * gendistlist.sh: Use C locale for sorting to ensure consistent
6377 output on all systems.
6379 * util/grub.d/00_header.in: Remove incorrect space before
6382 2008-11-07 Robert Millan <rmh@aybabtu.com>
6384 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
6386 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
6387 * loader/multiboot_loader.c (find_multi_boot2_header): New function
6388 (based on find_multi_boot1_header).
6389 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
6390 using find_multi_boot2_header(), and abort if neither Multiboot or
6391 Multiboot headers were found.
6393 2008-11-07 Robert Millan <rmh@aybabtu.com>
6395 Modularize at_keyboard.mod:
6397 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
6398 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
6399 (at_keyboard_mod_LDFLAGS): New variables.
6401 Actual terminal split:
6403 * include/grub/term.h (struct grub_term): Split in ...
6404 (struct grub_term_input): ... this, and ...
6405 (struct grub_term_output): ... this. Update all users.
6406 (grub_term_set_current): Split in ...
6407 (grub_term_set_current_input): ... this, and ...
6408 (grub_term_set_current_output): ... this.
6409 (grub_term_get_current): Split in ...
6410 (grub_term_get_current_input): ... this, and ...
6411 (grub_term_get_current_output): ... this.
6412 (grub_term_register): Split in ...
6413 (grub_term_register_input): ... this, and ...
6414 (grub_term_register_output): ... this.
6415 (grub_term_unregister): Split in ...
6416 (grub_term_unregister_input): ... this, and ...
6417 (grub_term_unregister_output): ... this.
6418 (grub_term_iterate): Split in ...
6419 (grub_term_iterate_input): ... this, and ...
6420 (grub_term_iterate_output): ... this.
6422 * kern/term.c (grub_term_list): Split in ...
6423 (grub_term_list_input): ... this, and ...
6424 (grub_term_list_output): ... this. Update all users.
6425 (grub_cur_term): Split in ...
6426 (grub_cur_term_input): ... this, and ...
6427 (grub_cur_term_output): ... this. Update all users.
6428 (grub_term_set_current): Split in ...
6429 (grub_term_set_current_input): ... this, and ...
6430 (grub_term_set_current_output): ... this.
6431 (grub_term_get_current): Split in ...
6432 (grub_term_get_current_input): ... this, and ...
6433 (grub_term_get_current_output): ... this.
6434 (grub_term_register): Split in ...
6435 (grub_term_register_input): ... this, and ...
6436 (grub_term_register_output): ... this.
6437 (grub_term_unregister): Split in ...
6438 (grub_term_unregister_input): ... this, and ...
6439 (grub_term_unregister_output): ... this.
6440 (grub_term_iterate): Split in ...
6441 (grub_term_iterate_input): ... this, and ...
6442 (grub_term_iterate_output): ... this.
6444 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
6445 a check for input and one for output (and only attempt to get keys
6446 from user when input works).
6448 * util/grub-probe.c (grub_term_get_current): Split in ...
6449 (grub_term_get_current_input): ... this, and ...
6450 (grub_term_get_current_output): ... this.
6451 * util/grub-fstest.c: Likewise.
6452 * util/i386/pc/grub-setup.c: Likewise.
6453 * util/grub-editenv.c: Likewise.
6455 Portability adjustments:
6457 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
6458 `term/i386/pc/at_keyboard.c'.
6459 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
6460 grub_keyboard_controller_init() (now handled by terminal .init).
6461 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
6462 grub_at_keyboard_init().
6463 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
6464 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
6465 at_keyboard.mod via input terminal interface).
6466 * include/grub/i386/coreboot/console.h: Convert into a stub for
6467 `<grub/i386/pc/console.h>'.
6469 Migrate full terminals to new API:
6471 * term/efi/console.c (grub_console_term): Split into ...
6472 (grub_console_term_input): ... this, and ...
6473 (grub_console_term_output): ... this. Update all users.
6474 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
6475 (grub_ofconsole_init): Split into ...
6476 (grub_ofconsole_init_input): ... this, and ...
6477 (grub_ofconsole_init_output): ... this.
6478 (grub_ofconsole_term): Split into ...
6479 (grub_ofconsole_term_input): ... this, and ...
6480 (grub_ofconsole_term_output): ... this. Update all users.
6481 * term/i386/pc/serial.c (grub_serial_term): Split into ...
6482 (grub_serial_term_input): ... this, and ...
6483 (grub_serial_term_output): ... this. Update all users.
6484 * term/i386/pc/console.c (grub_console_term): Split into ...
6485 (grub_console_term_input): ... this, and ...
6486 (grub_console_term_output): ... this. Update all users.
6487 (grub_console_term_input): Only enable it on PC/BIOS platform.
6488 (grub_console_init): Remove grub_keyboard_controller_init() call.
6490 Migrate input terminals to new API:
6492 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
6493 `i386' and `i386/pc' to enable build on x86_64 (this driver is
6494 i386-specific anyway).
6495 (grub_console_checkkey): Rename to ...
6496 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
6498 (grub_keyboard_controller_orig): New variable.
6499 (grub_console_getkey): Rename to ...
6500 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
6502 (grub_keyboard_controller_init): Static-ize. Save original
6503 controller value so that it can be restored ...
6504 (grub_keyboard_controller_fini): ... here (new function).
6505 (grub_at_keyboard_term): New structure.
6506 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
6509 Migrate output terminals to new API:
6511 * term/i386/pc/vga.c (grub_vga_term): Change type to
6512 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6513 members. Update all users.
6514 * term/gfxterm.c (grub_video_term): Change type to
6515 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
6516 members. Update all users.
6517 * include/grub/i386/pc/console.h (grub_console_checkkey)
6518 (grub_console_getkey): Do not export (no longer needed by gfxterm,
6521 Migrate `terminal' command and userland tools to new API:
6523 * commands/terminal.c (grub_cmd_terminal): Split into ...
6524 (grub_cmd_terminal_input): ... this, and ...
6525 (grub_cmd_terminal_output): ... this.
6526 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
6527 `terminal_input' and `terminal_output'.
6528 * util/grub.d/00_header.in: Adjust `terminal' calls to new
6529 `terminal_input' / `terminal_output' API.
6530 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
6531 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
6532 provided ${GRUB_TERMINAL}, convert it).
6534 2008-11-04 Robert Millan <rmh@aybabtu.com>
6536 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
6538 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
6540 2008-11-03 Bean <bean123ch@gmail.com>
6542 * kern/elf.c (grub_elf32_load): Revert to previous code.
6543 (grub_elf64_load): Likewise.
6545 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
6547 2008-11-01 Robert Millan <rmh@aybabtu.com>
6549 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
6550 (TARGET_CPPFLAGS): Likewise.
6551 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
6553 2008-11-01 Carles Pina i Estany <carles@pina.cat>
6555 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
6557 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
6559 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
6560 addition of objects until the code is not going to be able to fail.
6562 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
6564 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
6565 (add a missing NULL check, and correct them by moving the pointer
6566 operations after the actual check).
6568 2008-10-29 Robert Millan <rmh@aybabtu.com>
6570 * util/i386/pc/grub-install.in: Handle empty string as output from
6571 make_system_path_relative_to_its_root().
6573 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
6575 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
6576 circular metadata worst case scenario. If the metadata is circular
6577 then copy the wrap in place.
6578 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
6579 project lib/format_text/layout.h
6580 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
6582 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
6584 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
6586 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
6588 * util/update-grub_lib.in: Mention filename in warning message.
6590 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
6592 * NEWS: Update for rename of update-grub to grub-mkconfig.
6594 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
6596 * util/update-grub_lib.in: Copy to ...
6597 * util/grub-mkconfig_lib.in: ... this. Update all users.
6598 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
6599 * util/update-grub.in: Rename to ...
6600 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
6601 option. Add `--output' option to allow users to specify the generated
6602 configuration file. Default to stdout.
6603 (update_grub_dir): Rename to ...
6604 (grub_mkconfig_dir): ... this.
6605 (grub_cfg): Default to an empty string.
6606 * conf/common.rmk (update-grub): Rename to ...
6607 (grub-mkconfig): ... this.
6608 (update-grub_lib): Copy to ...
6609 (grub-mkconfig_lib): ... this.
6610 (update-grub_SCRIPTS): Copy to ...
6611 (grub-mkconfig_SCRIPTS): ... this. Update all users.
6612 (update-grub_DATA): Rename to ...
6613 (grub-mkconfig_DATA): ... this.
6615 2008-09-28 Robert Millan <rmh@aybabtu.com>
6617 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
6618 to `modified'. Add the real `created' field.
6619 (grub_iso9660_uuid): Use `modified' rather than `created' for
6620 constructing the UUID.
6622 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
6624 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
6625 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
6627 2008-09-28 Bean <bean123ch@gmail.com>
6629 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
6630 Thanks to Christian Franke for finding this bug.
6632 2008-09-25 Robert Millan <rmh@aybabtu.com>
6634 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
6635 instances of grub_util_get_disk_name() (see previous commit).
6637 2008-09-25 Robert Millan <rmh@aybabtu.com>
6639 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
6640 `util/i386/get_disk_name.c'.
6641 * conf/i386-efi.rmk: Likewise.
6642 * conf/x86_64-efi.rmk: Likewise.
6643 * conf/i386-coreboot.rmk: Likewise.
6644 * conf/i386-ieee1275.rmk: Likewise.
6645 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
6646 `util/ieee1275/get_disk_name.c'.
6647 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
6648 * util/ieee1275/get_disk_name.c: Remove file.
6649 * util/i386/get_disk_name.c: Remove file.
6650 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
6651 "hd%d" for device.map entries, rather than using
6652 grub_util_get_disk_name().
6654 2008-09-24 Carles Pina i Estany <carles@pina.cat>
6656 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
6658 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
6660 2008-09-24 Carles Pina i Estany <carles@pina.cat>
6662 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
6664 (GRUB_TERM_PPAGE): Changed to 0x4900.
6666 2008-09-24 Robert Millan <rmh@aybabtu.com>
6668 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
6669 macros (they were i386-pc specific).
6670 * include/grub/sparc64/ieee1275/console.h: Likewise.
6671 * include/grub/efi/console.h: Likewise.
6673 2008-09-22 Bean <bean123ch@gmail.com>
6675 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
6676 resident and in attribute list.
6678 * include/grub/ntfs.h (BMP_LEN): Removed.
6680 2008-09-22 Bean <bean123ch@gmail.com>
6682 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
6683 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
6685 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
6686 error occurs, as grub_disk_open will call grub_disk_close, which will
6687 call p->close (scsi).
6689 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
6691 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
6692 (AC_PREREQ): Bumped to 2.59.
6693 (AC_TRY_COMPILE): Replace obsolete macro with ...
6694 (AC_COMPILE_IFELSE): ... this.
6695 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
6696 (AC_LINK_IFELSE): ... this.
6698 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
6700 * autogen.sh: Add a call to `gendistlist.sh'.
6702 2008-09-19 Christian Franke <franke@computer.org>
6704 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
6705 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
6706 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
6707 Export __enable_execute_stack() to modules.
6708 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
6711 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
6713 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
6716 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
6718 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
6719 #include <grub/util/hostdisk.h>.
6721 2008-09-08 Robert Millan <rmh@aybabtu.com>
6723 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
6724 segments when their filesz is zero (grub_file_read() interprets
6725 zero-size as "read until EOF", which results in memory corruption).
6726 Use `lowest_segment' rather than 0 for calculating the current
6727 segment load address.
6729 2008-09-08 Robert Millan <rmh@aybabtu.com>
6731 * util/hostdisk.c (open_device): Replace a grub_util_info() call
6732 with grub_dprintf("hostdisk", ...), as it was so verbose that it
6733 clobbered useful information.
6735 2008-09-08 Robert Millan <rmh@aybabtu.com>
6737 * include/grub/util/biosdisk.h: Move to ...
6738 * include/grub/util/hostdisk.h: ... here. Update all users.
6739 * util/biosdisk.c: Move to ...
6740 * util/hostdisk.c: ... here. Update all users.
6742 2008-09-07 Robert Millan <rmh@aybabtu.com>
6744 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
6746 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
6747 and length can be stored directly in the `mbi->mmap_addr' and
6748 `mbi->mmap_length' struct fields.
6750 2008-09-07 Robert Millan <rmh@aybabtu.com>
6752 * conf/i386.rmk: New file. Provides declaration for building
6754 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
6755 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
6757 Include `conf/i386.mk'.
6758 * conf/i386-efi.rmk: Likewise.
6759 * conf/x86_64-efi.rmk: Likewise.
6760 * conf/i386-coreboot.rmk: Likewise.
6761 * conf/i386-ieee1275.rmk: Likewise.
6763 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
6765 Based on patch created by Colin D Bennett <colin@gibibit.com>.
6766 Adds optimization support for BGR based modes.
6768 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
6769 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
6770 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
6771 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
6772 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
6773 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
6774 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
6775 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
6776 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
6777 (grub_video_i386_vbeblit_index_index): Likewise.
6778 (grub_video_i386_vbeblit_replace_directN): Added.
6779 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
6780 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
6781 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
6782 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
6783 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
6784 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
6785 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
6786 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
6787 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
6788 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
6789 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
6790 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
6791 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
6793 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
6794 (grub_video_i386_vbefill_R8G8B8): Likewise.
6795 (grub_video_i386_vbefill_index): Likewise.
6796 (grub_video_i386_vbefill_direct32): Added.
6797 (grub_video_i386_vbefill_direct24): Likewise.
6798 (grub_video_i386_vbefill_direct16): Likewise.
6799 (grub_video_i386_vbefill_direct8): Likewise.
6801 * include/grub/video.h (grub_video_blit_format): Removed
6802 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
6803 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
6804 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
6805 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
6806 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
6808 * video/video.c (grub_video_get_blit_format): Updated to use new
6809 blit formats. Added handling for 16 bit color modes.
6811 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
6813 (common_blitter): Updated to use new blitters.
6815 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
6817 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
6818 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
6819 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
6820 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
6821 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
6822 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
6823 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
6824 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
6825 (grub_video_i386_vbeblit_index_index): Likewise.
6826 (grub_video_i386_vbeblit_replace_directN): Added.
6827 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
6828 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
6829 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
6830 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
6831 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
6832 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
6833 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
6834 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
6835 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
6836 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
6837 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
6838 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
6839 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
6841 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
6842 (grub_video_i386_vbefill_R8G8B8): Likewise.
6843 (grub_video_i386_vbefill_index): Likewise.
6844 (grub_video_i386_vbefill_direct32): Added.
6845 (grub_video_i386_vbefill_direct24): Likewise.
6846 (grub_video_i386_vbefill_direct16): Likewise.
6847 (grub_video_i386_vbefill_direct8): Likewise.
6849 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
6852 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
6855 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
6858 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
6861 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
6863 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
6866 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
6868 * fs/iso9660.c (grub_iso9660_date): New structure.
6869 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
6870 (grub_iso9660_uuid): New function.
6872 2008-09-05 Bean <bean123ch@gmail.com>
6874 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
6876 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
6877 insensitive bit for names in Win32 and Win32 & DOS namespace.
6879 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
6881 * include/grub/types.h (LONG_MAX): Likewise.
6883 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
6885 * util/getroot.c: Include <config.h>.
6886 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
6887 add support for /dev/md/N devices and handle LVM double dash escaping.
6889 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
6891 * config.guess: Update to latest version from config git.
6892 * config.sub: Likewise.
6894 2008-09-03 Robert Millan <rmh@aybabtu.com>
6896 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
6897 `disk->total_sectors'.
6899 2008-09-01 Colin D Bennett <colin@gibibit.com>
6901 * include/grub/normal.h: Fixed incorrect comment for
6902 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
6904 2008-09-01 Colin D Bennett <colin@gibibit.com>
6906 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
6907 values with defines.
6909 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
6910 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
6911 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
6912 (GRUB_VBE_MODEATTR_COLOR): Likewise.
6913 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
6914 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
6915 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
6916 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
6917 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
6918 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
6919 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
6920 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
6921 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
6922 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
6923 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
6924 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
6925 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
6926 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
6927 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
6929 2008-08-31 Robert Millan <rmh@aybabtu.com>
6931 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
6933 (grub_multiboot): Fix a few warnings.
6935 2008-08-31 Robert Millan <rmh@aybabtu.com>
6937 * loader/i386/pc/multiboot.c: Update comment not to say that
6938 boot_device support is unimplemented.
6940 2008-08-31 Robert Millan <rmh@aybabtu.com>
6942 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
6943 or memory map support are unimplemented.
6945 2008-08-31 Colin D Bennett <colin@gibibit.com>
6947 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
6949 2008-08-31 Colin D Bennett <colin@gibibit.com>
6951 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
6952 total video memory in 'vbeinfo' output; show color format details for
6955 2008-08-30 Pavel Roskin <proski@gnu.org>
6957 * util/genmoddep.c: Remove for real this time.
6958 * DISTLIST: Remove util/genmoddep.c.
6960 2008-08-30 Robert Millan <rmh@aybabtu.com>
6962 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
6963 as required by Multiboot spec (it was already 4-byte aligned, but
6966 2008-08-29 Pavel Roskin <proski@gnu.org>
6968 * kern/powerpc/ieee1275/crt0.S: Rename to ...
6969 * kern/powerpc/ieee1275/startup.S: ... this.
6970 * conf/powerpc-ieee1275.rmk: Adjust for the above.
6971 * DISTLIST: Likewise.
6973 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
6974 grub/cpu/kernel.h. Add start label for consistency with other
6975 platforms. Add grub_prefix immediately after start. Add jump
6976 to the code after grub_prefix.
6977 * include/grub/powerpc/kernel.h: Provide valid values for
6978 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
6980 2008-08-29 Bean <bean123ch@gmail.com>
6982 * configure.ac: Change host_os to cygwin for mingw.
6983 (asprintf): New check for function.
6985 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
6986 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
6988 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
6989 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6990 sync, sleep and grub_util_get_disk_size for mingw.
6992 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
6993 to get size in mingw.
6994 (open_device): Use flag O_BINARY if it's defined.
6995 (find_root_device): Add dummy code for mingw.
6997 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
6998 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
6999 (get_scsi_disk_name): Return 0 for mingw.
7001 * util/hostfs.c: #include <grub/util/misc.h>.
7002 (grub_hostfs_open): Use "rb" flag to open file, use
7003 grub_util_get_disk_size to get disk size for mingw.
7005 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7006 (asprintf): New function if HAVE_ASPRINTF is not set.
7007 (sync): New function for mingw.
7009 (grub_util_get_disk_size): Likewise.
7011 2008-08-28 Pavel Roskin <proski@gnu.org>
7013 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7016 2008-08-28 Robert Millan <rmh@aybabtu.com>
7018 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7020 2008-08-28 Robert Millan <rmh@aybabtu.com>
7022 Change find_grub_drive() syntax so it doesn't prevent it from
7023 detecting NULL names as errors.
7025 * util/biosdisk.c (find_grub_drive): Move free slot search code
7027 (find_free_slot): ... to here.
7028 (read_device_map): Use find_free_slot() to search for free slots.
7030 2008-08-27 Marco Gerards <marco@gnu.org>
7032 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7033 (scsi_mod_SOURCES): New variable.
7034 (scsi_mod_CFLAGS): Likewise
7035 (scsi_mod_LDFLAGS): Likewise.
7037 * disk/scsi.c: New file.
7039 * include/grub/scsi.h: Likewise.
7041 * include/grub/scsicmd.h: Likewise.
7043 * disk/ata.c: Include <grub/scsi.h>.
7044 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7046 (grub_ata_iterate): Skip ATAPI devices.
7047 (grub_ata_open): Only handle ATAPI devices.
7048 (struct grub_atapi_read): Removed.
7049 (grub_atapi_readsector): Likewise.
7050 (grub_ata_read): No longer handle ATAPI devices.
7051 (grub_ata_write): Likewise.
7052 (grub_atapi_iterate): New function.
7053 (grub_atapi_read): Likewise.
7054 (grub_atapi_write): Likewise.
7055 (grub_atapi_open): Likewise.
7056 (grub_atapi_close): Likewise.
7057 (grub_atapi_dev): New variable.
7058 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
7059 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
7061 * include/grub/disk.h (enum grub_disk_dev_id): Add
7062 `GRUB_DISK_DEVICE_SCSI_ID'.
7064 2008-08-26 Robert Millan <rmh@aybabtu.com>
7066 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
7067 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
7070 2008-08-23 Bean <bean123ch@gmail.com>
7072 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
7073 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7074 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
7075 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
7077 (raid5rec_mod_SOURCES): New macro.
7078 (raid5rec_mod_CFLAGS): Likewise.
7079 (raid5rec_mod_LDFLAGS): Likewise.
7080 (raid6rec_mod_SOURCES): Likewise.
7081 (raid6rec_mod_CFLAGS): Likewise.
7082 (raid6rec_mod_LDFLAGS): Likewise.
7083 (mdraid_mod_SOURCES): Likewise.
7084 (mdraid_mod_CFLAGS): Likewise.
7085 (mdraid_mod_LDFLAGS): Likewise.
7086 (dm_nv_mod_SOURCES): Likewise.
7087 (dm_nv_mod_CFLAGS): Likewise.
7088 (dm_nv_mod_LDFLAGS): Likewise.
7090 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
7091 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7092 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7094 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
7095 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7097 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7099 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7101 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7105 * disk/raid5_recover.c: New file.
7107 * disk/raid6_recover.c: Likewise.
7109 * disk/mdraid_linux.c: Likewise.
7111 * disk/dmraid_nvidia.c: Likewise.
7113 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
7116 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
7117 calculate the size of raid device.
7118 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
7119 different layout of raid5.
7120 (grub_raid_scan_device): Remove code specific to mdraid.
7121 (grub_raid_list): New variable.
7122 (free_array): New function.
7123 (grub_raid_register): Likewise.
7124 (grub_raid_unregister): Likewise.
7125 (grub_raid_rescan): Likewise.
7126 (GRUB_MOD_INIT): Don't iterate device here.
7127 (GRUB_MOD_FINI): Use free_array to release resource.
7129 * include/grub/raid.h: Remove macro and structure specific to mdraid.
7130 (grub_raid5_recover_func_t): New function variable type.
7131 (grub_raid6_recover_func_t): Likewise.
7132 (grub_raid5_recover_func): New variable.
7133 (grub_raid6_recover_func): Likewise.
7134 (grub_raid_register): New function.
7135 (grub_raid_unregister): Likewise.
7136 (grub_raid_rescan): Likewise.
7137 (grub_raid_block_xor): Likewise.
7139 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
7140 (CMD_CRC): New macro.
7142 (read_file): Handle device as well as file.
7143 (cmd_crc): New function.
7144 (fstest): Handle multiple disks.
7145 (options): Remove part, raw and long, add root and diskcount.
7146 (usage): Add crc, remove -p, -r, -l, add -r and -c.
7147 (main): Find the first non option entry and ignore subsequent options,
7148 add handling for the new options, support multiple disks.
7150 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
7152 2008-08-23 Bean <bean123ch@gmail.com>
7154 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
7156 * genfslist.sh: Ignore kernel.mod.
7158 * genpartmaplist.sh: Likewise.
7160 2008-08-23 Robert Millan <rmh@aybabtu.com>
7162 * util/getroot.c (find_root_device): Skip anything that starts with
7163 a dot, not just directories. This avoids things like /dev/.tmp.md0.
7165 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
7167 * util/update-grub.in (GRUB_GFXMODE): Export variable.
7168 * util/grub.d/00_header.in: Allow the administrator to change default
7169 gfxmode via ${GRUB_GFXMODE}.
7171 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
7173 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
7175 2008-08-21 Robert Millan <rmh@aybabtu.com>
7177 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
7179 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
7180 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
7182 2008-08-20 Carles Pina i Estany <carles@pina.cat>
7184 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
7185 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
7187 2008-08-19 Robert Millan <rmh@aybabtu.com>
7189 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
7190 (struct grub_virtual_screen): Remove `cursor_color'.
7191 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
7193 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
7195 2008-08-18 Robert Millan <rmh@aybabtu.com>
7197 Unify (identical) linux_normal.c files.
7198 * loader/i386/efi/linux_normal.c: Move from here ...
7199 * loader/linux_normal.c: ... to here. Update all users.
7200 * loader/i386/pc/linux_normal.c: Delete. Update all users.
7201 * loader/i386/ieee1275/linux_normal.c: Likewise.
7203 2008-08-18 Robert Millan <rmh@aybabtu.com>
7205 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
7206 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
7207 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
7208 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
7209 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
7211 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
7212 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
7213 (GRUB_LINUX_CL_END_OFFSET): ... to here.
7214 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
7215 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
7216 (GRUB_EFI_CL_END_OFFSET): Rename to ...
7217 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
7218 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
7219 Initialize `params->video_cursor_x' and `params->video_cursor_y'
7220 portably using grub_getxy().
7221 Replace `-EFI' with `-bzImage' in boot message.
7223 2008-08-17 Robert Millan <rmh@aybabtu.com>
7225 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
7227 2008-08-17 Robert Millan <rmh@aybabtu.com>
7229 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
7231 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
7232 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
7233 (grub_machine_mmap_iterate): New function declaration.
7234 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
7236 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
7239 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
7240 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
7241 Move e820 parsing from here ...
7242 * kern/i386/pc/mmap.c: New file.
7243 (grub_machine_mmap_iterate): ... to here.
7245 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
7246 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
7247 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
7248 (grub_available_iterate): Redeclare to return `void', and redeclare
7249 its hook to use grub_uint64_t as addr and size parameters, and rename
7251 (grub_machine_mmap_iterate): ... this. Update all users.
7253 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
7254 to make it more readable. Rename to ...
7255 (grub_machine_mmap_iterate): ... this.
7257 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
7258 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
7259 (grub_multiboot): Allocate an extra region after the payload, and fill
7260 it with a Multiboot memory map. Adjust a.out loader to calculate size
7261 with the extra space.
7262 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
7263 with the extra space.
7265 2008-08-17 Carles Pina i Estany <carles@pina.cat>
7267 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
7269 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
7271 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
7272 mdate-sh to the list `find' searches for.
7273 * DISTLIST: Regenerated.
7275 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
7277 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
7278 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
7279 genmoddep.awk, gensymlist.sh.in.
7280 (DISTDIRS): Add bus, docs, hook, lib.
7281 * DISTLIST: Regenerated.
7282 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
7284 2008-08-16 Robert Millan <rmh@aybabtu.com>
7286 * disk/raid.c (grub_raid_init): Handle/report errors set by
7287 grub_device_iterate().
7288 * disk/lvm.c (grub_lvm_init): Likewise.
7290 2008-08-15 Bean <bean123ch@gmail.com>
7292 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7294 (datetime_mod_SOURCES): New macro.
7295 (datetime_mod_CFLAGS): Likewise.
7296 (datetime_mod_LDFLAGS): Likewise.
7297 (date_mod_SOURCES): Likewise.
7298 (date_mod_CFLAGS): Likewise.
7299 (date_mod_LDFLAGS): Likewise.
7300 (datehook_mod_SOURCES): Likewise.
7301 (datehook_mod_CFLAGS): Likewise.
7302 (datehook_mod_LDFLAGS): Likewise.
7304 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7306 (datetime_mod_SOURCES): New macro.
7307 (datetime_mod_CFLAGS): Likewise.
7308 (datetime_mod_LDFLAGS): Likewise.
7309 (date_mod_SOURCES): Likewise.
7310 (date_mod_CFLAGS): Likewise.
7311 (date_mod_LDFLAGS): Likewise.
7312 (datehook_mod_SOURCES): Likewise.
7313 (datehook_mod_CFLAGS): Likewise.
7314 (datehook_mod_LDFLAGS): Likewise.
7316 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7318 (datetime_mod_SOURCES): New macro.
7319 (datetime_mod_CFLAGS): Likewise.
7320 (datetime_mod_LDFLAGS): Likewise.
7321 (date_mod_SOURCES): Likewise.
7322 (date_mod_CFLAGS): Likewise.
7323 (date_mod_LDFLAGS): Likewise.
7324 (datehook_mod_SOURCES): Likewise.
7325 (datehook_mod_CFLAGS): Likewise.
7326 (datehook_mod_LDFLAGS): Likewise.
7328 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7330 (datetime_mod_SOURCES): New macro.
7331 (datetime_mod_CFLAGS): Likewise.
7332 (datetime_mod_LDFLAGS): Likewise.
7333 (date_mod_SOURCES): Likewise.
7334 (date_mod_CFLAGS): Likewise.
7335 (date_mod_LDFLAGS): Likewise.
7336 (datehook_mod_SOURCES): Likewise.
7337 (datehook_mod_CFLAGS): Likewise.
7338 (datehook_mod_LDFLAGS): Likewise.
7340 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
7342 (datetime_mod_SOURCES): New macro.
7343 (datetime_mod_CFLAGS): Likewise.
7344 (datetime_mod_LDFLAGS): Likewise.
7345 (date_mod_SOURCES): Likewise.
7346 (date_mod_CFLAGS): Likewise.
7347 (date_mod_LDFLAGS): Likewise.
7348 (datehook_mod_SOURCES): Likewise.
7349 (datehook_mod_CFLAGS): Likewise.
7350 (datehook_mod_LDFLAGS): Likewise.
7352 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
7354 * commands/date.c: New file.
7356 * hook/datehook.c: Likewise.
7358 * include/grub/lib/datetime.h: Likewise.
7360 * include/grub/i386/cmos.h: Likewise.
7362 * lib/datetime.c: Likewise.
7364 * lib/i386/datetime.c: Likewise.
7366 * lib/efi/datetime.c: Likewise.
7368 2008-08-14 Robert Millan <rmh@aybabtu.com>
7370 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
7371 (grub_mkelfimage_SOURCES): New variable.
7372 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
7374 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
7375 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
7376 * conf/powerpc-ieee1275.rmk: Likewise.
7377 * conf/i386-ieee1275.rmk: Likewise.
7379 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
7380 * kern/i386/coreboot/init.c: Likewise.
7382 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
7383 with `<grub/cpu/kernel.h>'.
7384 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
7386 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
7387 * kern/i386/coreboot/startup.S: Likewise.
7389 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
7390 (GRUB_MOD_GAP): Remove.
7391 * include/grub/powerpc/kernel.h: New file.
7392 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
7393 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7394 * include/grub/i386/kernel.h: New file.
7395 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
7396 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
7397 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
7399 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
7401 Use --directory when invoking grub_mkimage.
7403 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
7404 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
7405 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
7406 and GRUB_KERNEL_CPU_PREFIX.
7408 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
7410 * include/grub/err.h (grub_err_printf): New function prototype.
7411 * util/misc.c (grub_err_printf): New function.
7412 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
7414 * kern/err.c (grub_print_error): Use grub_err_printf.
7416 2008-08-13 Robert Millan <rmh@aybabtu.com>
7418 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
7420 2008-08-13 Robert Millan <rmh@aybabtu.com>
7422 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
7425 2008-08-12 Robert Millan <rmh@aybabtu.com>
7427 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
7428 of the relocation code from here ...
7429 (grub_multiboot): ... to here.
7430 (forward_relocator, backward_relocator): Move from here ...
7431 * kern/i386/loader.S (grub_multiboot_forward_relocator)
7432 (grub_multiboot_backward_relocator): ... to here.
7433 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
7434 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
7435 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
7436 (grub_multiboot_forward_relocator_end)
7437 (grub_multiboot_backward_relocator)
7438 (grub_multiboot_backward_relocator_end): New variables.
7440 2008-08-12 Bean <bean123ch@gmail.com>
7442 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
7444 2008-08-11 Robert Millan <rmh@aybabtu.com>
7446 * kern/i386/linuxbios/startup.S: Move from here ...
7447 * kern/i386/coreboot/startup.S: ... to here.
7449 * kern/i386/linuxbios/init.c: Move from here ...
7450 * kern/i386/coreboot/init.c: ... to here.
7452 * kern/i386/linuxbios/table.c: Move from here ...
7453 * kern/i386/coreboot/mmap.c: ... to here.
7455 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
7457 2008-08-11 Robert Millan <rmh@aybabtu.com>
7459 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
7460 errors. Leave it to the upper layer to handle them.
7462 2008-08-09 Christian Franke <franke@computer.org>
7464 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
7465 * conf/common.rmk: Install `grub-pe2elf' only if requested.
7466 Install `grub.d/10_windows' only on Cygwin.
7467 * configure.ac: Add subst of `target_os'.
7468 Check `target_os' also before setting TARGET_OBJ2ELF.
7469 Add `--enable-grub-pe2elf'.
7471 2008-08-08 Robert Millan <rmh@aybabtu.com>
7473 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
7474 (grub_last_time): Change type to grub_uint64_t.
7475 (grub_disk_open): Migrate code from to using grub_get_time_ms().
7476 (grub_disk_close): Likewise.
7478 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
7479 (run_menu): Migrate code from to using grub_get_time_ms().
7481 * util/misc.c (grub_get_time_ms): New function.
7483 2008-08-08 Marco Gerards <marco@gnu.org>
7485 * disk/ata.c (grub_ata_regget): Change return type to
7487 (grub_ata_regget2): Likewise.
7488 (grub_ata_wait_status): New function.
7489 (grub_ata_wait_busy): Removed function, updated all users to use
7490 `grub_ata_wait_status'.
7491 (grub_ata_wait_drq): Likewise.
7492 (grub_ata_cmd): New function.
7493 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
7495 (grub_ata_pio_write): Add error handling.
7496 (grub_atapi_identify): Likewise.
7497 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
7499 (grub_ata_identify): Use `grub_ata_cmd' and improve error
7500 handling. Actually use the detected registers. Reorder the
7501 detection logic such that it is easier to read.
7502 (grub_ata_pciinit): Do not assign the same ID to each controller.
7503 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
7505 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
7507 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
7509 2008-08-08 Marco Gerards <marco@gnu.org>
7513 2008-08-07 Bean <bean123ch@gmail.com>
7515 * include/grub/x86_64/pci.h: New file.
7517 2008-08-07 Christian Franke <franke@computer.org>
7519 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
7520 (TIMER2_GATE): Likewise.
7521 (grub_pit_wait): Add enable/disable of the timer2 gate
7522 bit of port 0x61. This fixes a possible infinite loop.
7524 2008-08-07 Bean <bean123ch@gmail.com>
7526 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
7527 kern/i386/tsc.c and kern/i386/pit.c.
7529 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
7532 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
7535 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
7537 2008-08-07 Bean <bean123ch@gmail.com>
7539 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
7541 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
7543 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
7544 multiple inclusion. Add #include <grub/types.h>.
7546 2008-08-06 Christian Franke <franke@computer.org>
7548 * conf/common.rmk: Build and install `10_windows'.
7549 * util/grub.d/10_windows.in: New script.
7551 2008-08-06 Pavel Roskin <proski@gnu.org>
7553 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
7555 2008-08-06 Robert Millan <rmh@aybabtu.com>
7557 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
7558 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
7560 2008-08-06 Bean <bean123ch@gmail.com>
7562 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
7563 (grub_pxefs_fs_int): Remove dummy definition.
7564 (grub_pxefs_open): Use data->block_size to store the current block
7566 (grub_pxefs_read): Use block size stored in data->block_size. As the
7567 value of grub_pxe_blksize can be changed after the file is opened.
7569 2008-08-06 Bean <bean123ch@gmail.com>
7571 * fs/i386/pc/pxe.c (curr_file): new variable.
7572 (grub_pxefs_open): Simply the handling of pxe file system. Don't
7573 require the dummy internal file system anymore.
7574 (grub_pxefs_read): Removed.
7575 (grub_pxefs_close): Likewise.
7576 (grub_pxefs_fs_int): Likewise.
7577 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
7578 connection when we switch file.
7579 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
7581 2008-08-06 Robert Millan <rmh@aybabtu.com>
7583 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
7585 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
7586 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
7588 * kern/i386/halt.c: New file.
7589 * kern/i386/reboot.c: Likewise.
7590 * include/grub/i386/reboot.h: Likewise.
7591 * include/grub/i386/halt.h: Likewise.
7593 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
7594 Include `<grub/cpu/halt.h>'.
7595 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
7596 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
7598 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
7599 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
7600 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
7601 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
7602 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
7603 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
7605 * include/grub/i386/at_keyboard.h: ... to here.
7607 2008-08-05 Robert Millan <rmh@aybabtu.com>
7609 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
7610 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
7611 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
7612 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
7613 `kern/generic/millisleep.c'.
7615 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
7616 instead of grub_get_rtc().
7617 (grub_tsc_init): Initialize `tsc_boot_time'.
7619 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
7620 (grub_machine_init): Use grub_tsc_init() rather than
7621 installing an RTC-based handler via grub_install_get_time_ms().
7623 * kern/i386/pit.c: New file.
7624 * include/grub/i386/pit.h: Likewise.
7626 2008-08-05 Bean <bean123ch@gmail.com>
7628 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
7630 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
7631 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
7632 (pxe_mod_SOURCES): New macro.
7633 (pxe_mod_CFLAGS): Likewise.
7634 (pxe_mod_LDFLAGS): Likewise.
7635 (pxecmd_mod_SOURCES): Likewise.
7636 (pxecmd_mod_CFLAGS): Likewise.
7637 (pxecmd_mod_LDFLAGS): Likewise.
7639 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
7640 (grub_pxe_call): Likewise.
7642 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
7644 * commands/i386/pc/pxecmd.c: New file.
7646 * fs/i386/pc/pxe.c: Likewise.
7648 * include/grub/i386/pc/pxe.h: Likewise.
7650 2008-08-05 Bean <bean123ch@gmail.com>
7652 * util/console.c (grub_console_cur_color): New variable.
7653 (grub_console_standard_color): Likewise.
7654 (grub_console_normal_color): Likewise.
7655 (grub_console_highlight_color): Likewise.
7656 (color_map): Likewise.
7657 (use_color): Likewise.
7658 (NUM_COLORS): New macro.
7659 (grub_ncurses_setcolorstate): Handle color properly.
7660 (grub_ncurses_setcolor): Don't change color here, just remember the
7661 settings, color will be set in grub_ncurses_setcolorstate.
7662 (grub_ncurses_getcolor): New function.
7663 (grub_ncurses_init): Initialize color pairs.
7664 (grub_ncurses_term): New member grub_ncurses_getcolor.
7666 2008-08-05 Colin D Bennett <colin@gibibit.com>
7668 High resolution timer support. Implemented for x86 CPUs using TSC.
7669 Extracted generic grub_millisleep() so it's linked in only as needed.
7670 This requires a Pentium compatible CPU; if the RDTSC instruction is
7671 not supported, then it falls back on the generic grub_get_time_ms()
7672 implementation that uses the machine's RTC.
7674 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
7675 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
7676 `kern/generic/millisleep.c'.
7678 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
7679 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
7681 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
7682 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
7684 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
7686 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7687 `kern/generic/millisleep.c'.
7689 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
7691 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
7693 * kern/generic/rtc_get_time_ms.c: New file.
7695 * kern/generic/millisleep.c: New file.
7697 * kern/misc.c: Don't include
7698 <kern/time.h> anymore.
7699 (grub_millisleep_generic): Removed.
7701 * commands/sleep.c (grub_interruptible_millisleep): Uses
7702 grub_get_time_ms() instead of grub_get_rtc().
7704 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
7706 (grub_cpu_is_cpuid_supported): New inline function.
7707 (grub_cpu_is_tsc_supported): New inline function.
7708 (grub_tsc_init): New function prototype.
7709 (grub_tsc_get_time_ms): New function prototype.
7711 * kern/i386/tsc.c (grub_get_time_ms): New file.
7713 * include/grub/time.h: Include <grub/types.h.
7714 (grub_millisleep_generic): Removed.
7715 (grub_get_time_ms): New prototype.
7716 (grub_install_get_time_ms): New prototype.
7717 (grub_rtc_get_time_ms): New prototype.
7719 * kern/time.c (grub_get_time_ms): New function.
7720 (grub_install_get_time_ms): New function.
7722 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
7723 <grub/time.h> anymore.
7724 (grub_millisleep): Removed.
7725 (grub_machine_init): Call grub_tsc_init.
7727 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
7728 get_time_ms() implementation.
7730 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
7731 (ieee1275_get_time_ms): New function.
7732 (grub_machine_init): Install get_time_ms() implementation.
7734 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
7735 (grub_machine_init): Call grub_tsc_init().
7736 (grub_millisleep): Removed.
7738 * kern/ieee1275/init.c (grub_millisleep): Removed.
7739 (grub_machine_init): Install ieee1275_get_time_ms()
7741 (ieee1275_get_time_ms): New function.
7742 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
7745 2008-08-05 Marco Gerards <marco@gnu.org>
7747 * disk/ata.c: Include <grub/pci.h>.
7748 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
7749 (grub_ata_initialize): Rewritten.
7750 (grub_ata_device_initialize): New function.
7752 2008-08-04 Pavel Roskin <proski@gnu.org>
7754 * kern/main.c: Include grub/mm.h.
7756 2008-08-04 Robert Millan <rmh@aybabtu.com>
7758 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
7759 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
7760 corruption problem).
7762 2008-08-04 Robert Millan <rmh@aybabtu.com>
7764 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
7765 warnings introduced in my last commit.
7767 2008-08-03 Robert Millan <rmh@aybabtu.com>
7769 Make PCI available on all i386 architectures.
7771 * include/grub/i386/pc/pci.h: Move from here ...
7772 * include/grub/i386/pci.h: ... to here.
7774 * include/grub/i386/pc/pci.h: Remove.
7775 * include/grub/i386/efi/pci.h: Remove.
7776 * include/grub/x86_64/efi/pci.h: Remove.
7778 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
7781 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
7782 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
7783 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
7785 * conf/i386-ieee1275.rmk: Likewise.
7787 2008-08-03 Robert Millan <rmh@aybabtu.com>
7789 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
7790 (grub_console_setcursor): Make it possible to set cursor off.
7792 2008-08-03 Robert Millan <rmh@aybabtu.com>
7794 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
7795 of modules instead of assuming which platform provides what.
7796 * util/update-grub.in: Likewise.
7798 2008-08-03 Robert Millan <rmh@aybabtu.com>
7800 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
7801 instead of `grub_install_dos_part' to determine whether a drive needs
7802 to be prepended to prefix (`grub_install_dos_part' is not reliable,
7803 because it can be overridden when loading GRUB via Multiboot).
7805 2008-08-02 Robert Millan <rmh@aybabtu.com>
7807 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
7809 2008-08-02 Robert Millan <rmh@aybabtu.com>
7811 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
7812 of informational grub_dprintf() calls.
7814 2008-08-02 Robert Millan <rmh@aybabtu.com>
7816 * disk/memdisk.c (memdisk_size): Don't initialize.
7817 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
7819 * include/grub/i386/pc/kernel.h
7820 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
7821 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
7822 (grub_memdisk_image_size, grub_arch_memdisk_addr)
7823 (grub_arch_memdisk_size): Remove.
7825 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
7826 field (was only used to transfer a constant). Add `type' field to
7827 support multiple module types.
7828 (grub_module_iterate): New function.
7830 * kern/device.c (grub_device_open): Do not hide error messages
7831 when grub_disk_open() fails. Use grub_print_error() instead.
7833 * kern/i386/pc/init.c (grub_arch_modules_addr)
7834 (grub_arch_memdisk_size): Remove functions.
7835 (grub_arch_modules_addr): Return the module address in high memory
7836 (now that it isn't copied anymore).
7838 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
7839 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
7840 decompression routine (grub_total_module_size already includes that
7841 now). Don't copy modules back to low memory.
7843 * kern/main.c: Include `<grub/mm.h>'.
7844 (grub_load_modules): Split out (and use) ...
7845 (grub_module_iterate): ... this function, which iterates through
7846 module objects and runs a hook.
7847 Comment out grub_mm_init_region() call, as it would cause non-ELF
7848 modules to be overwritten.
7850 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
7851 the memdisk image in its own region, make it part of the module list.
7852 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
7853 (main): Parse --memdisk|-m option, and pass user-provided path as
7854 parameter to generate_image().
7855 (add_segments): Pass `memdisk_path' down to load_modules().
7856 (load_modules): Embed memdisk image in module section when requested.
7857 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
7858 `header.type' instead of `header.offset'.
7860 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
7861 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
7862 (memdisk_mod_LDFLAGS): New variables.
7863 * conf/i386-coreboot.rmk: Likewise.
7864 * conf/i386-ieee1275.rmk: Likewise.
7866 2008-08-02 Robert Millan <rmh@aybabtu.com>
7868 * loader/i386/pc/multiboot.c (playground, forward_relocator)
7869 (backward_relocator): New variables. Used to allocate and relocate
7870 the payload, respectively.
7871 (grub_multiboot_load_elf32): Load into heap instead of requested
7872 address, install the appropriate relocator code in each bound of
7873 the payload, and set the entry point such that
7874 grub_multiboot_real_boot() will jump to one of them.
7876 * kern/i386/loader.S (grub_multiboot_payload_size)
7877 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
7878 (grub_multiboot_payload_entry_offset): New variables.
7879 (grub_multiboot_real_boot): Set cpu context to what the relocator
7880 expects, and jump to the relocator instead of the payload.
7882 * include/grub/i386/loader.h (grub_multiboot_payload_size)
7883 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
7884 (grub_multiboot_payload_entry_offset): Export.
7886 2008-08-01 Bean <bean123ch@gmail.com>
7888 * normal/menu_entry.c (editor_getline): Don't return the original
7889 string as result, as it will be released by lexer once it has done
7892 2008-08-01 Robert Millan <rmh@aybabtu.com>
7894 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
7895 within menuentries, not before them.
7896 util/grub.d/10_hurd.in: Likewise.
7898 2008-08-01 Bean <bean123ch@gmail.com>
7900 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
7901 (bufio_mod_SOURCES): New macro.
7902 (bufio_mod_CFLAGS): Likewise.
7903 (bufio_mod_LDFLAGS): Likewise.
7905 * include/grub/bufio.h: New file.
7907 * io/bufio.c: Likewise.
7909 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
7910 (grub_video_reader_png): Use grub_buffile_open to open file.
7912 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
7913 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
7915 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
7916 (grub_video_reader_tga): Use grub_buffile_open to open file.
7918 * font/manager.c: Include <grub/bufio.h>.
7919 (add_font): Use grub_buffile_open to open file.
7921 2008-07-31 Robert Millan <rmh@aybabtu.com>
7923 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
7924 ELF segments, use a macro for arbitrarily accessing any of them instead
7925 of preparing a pointer that allows access to one at a time.
7926 (grub_multiboot_load_elf64): Likewise.
7928 2008-07-31 Bean <bean123ch@gmail.com>
7930 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
7931 GRUB_KERNEL_MACHINE_DATA_END.
7933 2008-07-30 Robert Millan <rmh@aybabtu.com>
7935 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
7936 Increase from 0x50 to 0x60.
7937 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
7938 use UUIDs to identify the root drive for them. If that's not
7940 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
7941 check, for cross-disk installs.
7943 2008-07-30 Robert Millan <rmh@aybabtu.com>
7945 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
7946 is non-empty, use it to set the `prefix' environment variable instead
7947 of the usual approach.
7948 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
7949 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
7950 environment variable instead of dummy make_install_device().
7952 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
7953 (start): Insert a data section, with `grub_prefix' variable.
7954 * kern/i386/linuxbios/startup.S: Likewise.
7956 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
7957 New variable reference.
7958 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
7959 New macro. Defines offset of `grub_prefix' within startup.S (relative
7961 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
7962 section within startup.S (relative to `start').
7963 * include/grub/i386/coreboot/kernel.h: Likewise.
7965 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
7966 Overwrite grub_prefix with its contents, at the beginning of the
7968 (main): Understand -p|--prefix.
7970 2008-07-30 Robert Millan <rmh@aybabtu.com>
7972 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
7974 2008-07-30 Robert Millan <rmh@aybabtu.com>
7976 * term/i386/pc/vga_text.c (grub_console_cls): Use
7977 grub_console_gotoxy() to go back to beginning of the screen.
7978 Found by Patrick Georgi <patrick.georgi@coresystems.de>
7980 2008-07-29 Christian Franke <franke@computer.org>
7982 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
7983 Add conversion of emulated mount points on Cygwin.
7985 2008-07-29 Christian Franke <franke@computer.org>
7987 * util/update-grub.in: Add a check for admin
7989 Remove old `grub.cfg.new' before creation.
7990 Add `-f' to `mv' to handle the different filesystem
7991 semantics of Windows.
7993 2008-07-29 Bean <bean123ch@gmail.com>
7995 * normal/main.c (get_line): Fix buffer overflow bug.
7997 2008-07-28 Robert Millan <rmh@aybabtu.com>
7999 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
8000 (struct grub_apple_header): New struct. Describes the layout of
8002 (apple_partition_map_iterate): Check the header magic as well as the
8003 partition magic (which was already being checked).
8005 2008-07-28 Pavel Roskin <proski@gnu.org>
8007 * genmk.rb: Add a warning to the beginning of the output that
8008 it's a generated file and should not be edited.
8010 2008-07-28 Robert Millan <rmh@aybabtu.com>
8012 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8013 with the same number are found, just use issue a warning with
8014 grub_dprintf(), as this error has been reported to be non-fatal.
8016 2008-07-27 Robert Millan <rmh@aybabtu.com>
8018 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8021 2008-07-27 Bean <bean123ch@gmail.com>
8023 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8024 (grub_fat_find_dir): Ignore case when comparing filename.
8026 2008-07-27 Bean <bean123ch@gmail.com>
8028 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8029 smallino, as it's more descriptive, and i8count can be confused with
8030 the other field count.
8031 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8034 2008-07-27 Bean <bean123ch@gmail.com>
8036 * commands/crc.c: New file.
8038 * lib/crc.c: Likewise.
8040 * include/grub/lib/crc.h: Likewise.
8042 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8044 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8045 (hexdump): Move this function to ...
8047 * lib/hexdump.c: ... here.
8049 * include/grub/hexdump.h: Renamed to ...
8051 * include/grub/lib/hexdump.h: ... this.
8053 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
8055 * util/grub-editenv.c: Likewise.
8057 * include/envblk.h: Renamed to ...
8059 * include/lib/envblk.h: ... this.
8061 * util/envblk.c: Renamed to ...
8063 * lib/envblk.c: ... this.
8065 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
8067 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
8068 (pkglib_MODULES): Add crc.mod.
8069 (hexdump_mod_SOURCES): Add lib/hexdump.c.
8070 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
8071 (crc_mod_SOURCES): New macro.
8072 (crc_mod_CFLAGS): Likewise.
8073 (crc_mod_LDFLAGS): Likewise.
8075 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
8077 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8079 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8081 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8083 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8085 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
8087 * commands/help.c: Include <grub/term.h>.
8088 (TERM_WIDTH): Removed. Updated all users.
8090 2008-07-27 Pavel Roskin <proski@gnu.org>
8092 * util/getroot.c (find_root_device): Rephrase a comment to avoid
8093 spurious warnings about a comment within a comment.
8095 2008-07-25 Robert Millan <rmh@aybabtu.com>
8097 * util/getroot.c (find_root_device): Skip devices that match
8098 /dev/dm-[0-9]. This lets the real device be found for any type of
8099 abstraction (LVM, EVMS, RAID..).
8100 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
8101 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
8102 device is found first, find_root_device() will now skip it.
8104 2008-07-24 Pavel Roskin <proski@gnu.org>
8106 * include/grub/types.h: Use __builtin_bswap32() and
8107 __builtin_bswap64() with gcc 4.3 and newer.
8109 2008-07-24 Christian Franke <franke@computer.org>
8111 * util/i386/pc/grub-install.in: If `--debug' is specified,
8112 pass `--verbose' to grub-setup.
8113 Abort script if make_system_path_relative_to_its_root() fails.
8115 2008-07-24 Bean <bean123ch@gmail.com>
8117 * configure.ac: Fixed a bug caused by the previous cygwin patch,
8118 variable `target_platform' should be `platform'.
8120 2008-07-24 Bean <bean123ch@gmail.com>
8122 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
8123 (grub_png_init_fixed_block): New function.
8124 (grub_png_decode_image_data): Handle fixed huffman code compression.
8126 2008-07-24 Bean <bean123ch@gmail.com>
8128 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
8129 (grub_pe2elf_SOURCES): New macro.
8130 (CLEANFILES): Add grub-pe2elf.
8132 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
8133 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
8134 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
8135 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
8136 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
8137 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
8138 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
8139 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
8140 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
8141 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
8142 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
8143 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
8144 (GRUB_PE32_DT_FUNCTION): Likewise.
8145 (GRUB_PE32_REL_I386_DIR32): Likewise.
8146 (GRUB_PE32_REL_I386_REL32): Likewise.
8147 (grub_pe32_symbol): New structure.
8148 (grub_pe32_reloc): Likewise.
8150 * util/grub-pe2elf.c: New file.
8152 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
8153 start symbol in non pc platform.
8155 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
8157 The following patches are from Christian Franke.
8159 * include/grub/dl.h: Remove .previous, gas supports this only
8162 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
8163 Remove .type, gas supports this only for ELF format.
8165 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
8166 nullbytes in symbol table. This fixes an infinite loop if table is
8169 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
8170 TARGET_IMG_LDFLAGS and EXEEXT.
8172 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
8173 TARGET_IMG_LDFLAGS_AC.
8174 (grub_CHECK_STACK_ARG_PROBE): New function.
8176 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
8178 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
8180 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
8181 to set TARGET_IMG_LD* accordingly.
8182 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
8183 Add call to grub_CHECK_STACK_ARG_PROBE.
8184 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
8186 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
8188 * genmk.rb: Add EXEEXT to CLEANFILES.
8190 2008-07-23 Robert Millan <rmh@aybabtu.com>
8192 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
8193 define the codes for arrows and lines used for the menu).
8194 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
8197 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
8198 fonts, because the latter are too slow.
8200 2008-07-21 Bean <bean123ch@gmail.com>
8202 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
8203 a20. Run keyboard test last, as it will cause macbook to halt.
8205 2008-07-18 Pavel Roskin <proski@gnu.org>
8207 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
8208 load foreign architecture modules correctly anyway. Keep
8209 support for loading host architecture modules, whether we
8210 compile them or not.
8212 2008-07-17 Pavel Roskin <proski@gnu.org>
8214 * configure.ac: Use -m32 or -m64 regardless of whether we had to
8215 change target_cpu. The compiler default can mismatch target_cpu
8218 * disk/efi/efidisk.c: Fix format warnings on x86_64.
8219 * kern/efi/efi.c: Likewise.
8221 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
8222 target compiler is functional.
8223 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
8226 * configure.ac: Default to efi platform for x86_64-apple. Allow
8227 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
8228 adjustments from the rest, only do them if target is not
8229 explicitly given. Merge other adjustments with the final sanity
8230 check. Remove an extraneous check for supported CPU. Be
8231 specific which CPU and which platform is not supported.
8233 * configure.ac: Default to pc platform for x86_64.
8235 2008-07-17 Robert Millan <rmh@aybabtu.com>
8237 Partial LinuxBIOS -> Coreboot rename.
8239 * conf/i386-linuxbios.rmk: Renamed to ...
8240 * conf/i386-coreboot.rmk: ... this.
8241 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
8242 * configure.ac: Accept "coreboot" as input platform (but maintain
8243 compatibility with "linuxbios").
8244 * include/grub/i386/linuxbios: Renamed to ...
8245 * include/grub/i386/coreboot: ... this.
8247 2008-07-17 Bean <bean123ch@gmail.com>
8249 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
8250 (appleldr_mod_SOURCE): New variable.
8251 (appleldr_mod_CFLAGS): Likewise.
8252 (appleldr_mod_LDFLAGS): Likewise.
8253 (pci_mod_SOURCES): Likewise.
8254 (pci_mod_CFLAGS): Likewise.
8255 (pci_mod_LDFLAGS): Likewise.
8256 (lspci_mod_SOURCES): Likewise.
8257 (lspci_mod_CFLAGS): Likewise.
8258 (lspci_mod_LDFLAGS): Likewise.
8260 * conf/x86_64-efi.rmk: New file.
8262 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
8264 (grub_efidisk_write): Likewise.
8266 * include/efi/api.h (efi_call_0): New macro.
8267 (efi_call_1): Likewise.
8268 (efi_call_2): Likewise.
8269 (efi_call_3): Likewise.
8270 (efi_call_4): Likewise.
8271 (efi_call_5): Likewise.
8272 (efi_call_6): Likewise.
8274 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
8275 grub_rescue_cmd_chainloader.
8277 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
8278 (grub_pe32_optional_header): Change some fields based on i386 or
8280 (GRUB_PE32_PE32_MAGIC): Likewise.
8282 * include/grub/efi/uga_draw.h: New file.
8284 * include/grub/elf.h (STN_ABS): New constant.
8285 (R_X86_64_NONE): Relocation constant for x86_64.
8286 (R_X86_64_64): Likewise.
8287 (R_X86_64_PC32): Likewise.
8288 (R_X86_64_GOT32): Likewise.
8289 (R_X86_64_PLT32): Likewise.
8290 (R_X86_64_COPY): Likewise.
8291 (R_X86_64_GLOB_DAT): Likewise.
8292 (R_X86_64_JUMP_SLOT): Likewise.
8293 (R_X86_64_RELATIVE): Likewise.
8294 (R_X86_64_GOTPCREL): Likewise.
8295 (R_X86_64_32): Likewise.
8296 (R_X86_64_32S): Likewise.
8297 (R_X86_64_16): Likewise.
8298 (R_X86_64_PC16): Likewise.
8299 (R_X86_64_8): Likewise.
8300 (R_X86_64_PC8): Likewise.
8302 * include/grub/i386/efi/pci.h: New file.
8304 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
8305 Change it value based on platform.
8306 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
8307 (GRUB_E820_RAM): Likewise.
8308 (GRUB_E820_RESERVED): Likewise.
8309 (GRUB_E820_ACPI): Likewise.
8310 (GRUB_E820_NVS): Likewise.
8311 (GRUB_E820_EXEC_CODE): Likewise.
8312 (GRUB_E820_MAX_ENTRY): Likewise.
8313 (grub_e820_mmap): New structure.
8314 (linux_kernel_header): Change the efi field according to different
8315 kernel version, also field from linux_kernel_header.
8317 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
8319 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
8320 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
8321 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
8322 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
8323 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
8324 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
8325 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
8326 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
8327 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
8328 (GRUB_PCI_ADDR_IO_MASK): Likewise.
8330 * include/grub/x86_64/efi/kernel.h: New file.
8332 * include/grub/x86_64/efi/loader.h: Likewise.
8334 * include/grub/x86_64/efi/machine.h: Likewise.
8336 * include/grub/x86_64/efi/pci.h: Likewise.
8338 * include/grub/x86_64/efi/time.h: Likewise.
8340 * include/grub/x86_64/linux.h: Likewise.
8342 * include/grub/x86_64/setjmp.h: Likewise.
8344 * include/grub/x86_64/time.h: Likewise.
8346 * include/grub/x86_64/types.h: Likewise.
8348 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
8349 GRUB_TARGET_SIZEOF_VOID_P.
8351 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
8352 (grub_efi_locate_handle): Likewise.
8353 (grub_efi_open_protocol): Likewise.
8354 (grub_efi_set_text_mode): Likewise.
8355 (grub_efi_stall): Likewise.
8356 (grub_exit): Likewise.
8357 (grub_reboot): Likewise.
8358 (grub_halt): Likewise.
8359 (grub_efi_exit_boot_services): Likewise.
8360 (grub_get_rtc): Likewise.
8362 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
8363 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
8364 (grub_efi_allocate_pages): Wrap efi calls.
8365 (grub_efi_free_pages): Wrap efi calls.
8366 (grub_efi_get_memory_map): Wrap efi calls.
8368 * kern/x86_64/dl.c: New file.
8370 * kern/x86_64/efi/callwrap.S: Likewise.
8372 * kern/x86_64/efi/startup.S: Likewise.
8374 * loader/efi/appleloader.c: Likewise.
8376 * loader/efi/chainloader.c (cmdline): New variable.
8377 (grub_chainloader_unload): Wrap efi calls.
8378 (grub_chainloader_boot): Likewise.
8379 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
8382 * loader/efi/chainloader_normal.c (chainloader_command):
8383 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
8386 * loader/i386/efi/linux.c (allocate_pages): Change allocation
8388 (grub_e820_add_region): New function.
8389 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
8391 (grub_find_video_card): New function.
8392 (grub_linux_setup_video): New function.
8393 (grub_rescue_cmd_linux): Probe for video information.
8395 * normal/x86_64/setjmp.S: New file.
8397 * term/efi/console.c (map_char): New function.
8398 (grub_console_putchar): Map unicode char.
8399 (grub_console_checkkey): Wrap efi calls.
8400 (grub_console_getkey): Likewise.
8401 (grub_console_getwh): Likewise.
8402 (grub_console_gotoxy): Likewise.
8403 (grub_console_cls): Likewise.
8404 (grub_console_setcolorstate): Likewise.
8405 (grub_console_setcursor): Likewise.
8407 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
8409 2008-07-16 Pavel Roskin <proski@gnu.org>
8411 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
8414 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
8415 pointer, not an integer. This fixes a warning and prevents
8416 precision loss on 64-bit systems.
8417 (relocate_addresses): Remove unneeded cast.
8419 2008-07-15 Pavel Roskin <proski@gnu.org>
8421 * kern/i386/ieee1275/init.c: Include grub/cache.h.
8423 * term/ieee1275/ofconsole.c: Disable code unused on i386.
8425 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
8426 Fix comparison between signed and unsigned.
8428 * include/grub/i386/ieee1275/console.h: Declare
8429 grub_console_init() and grub_console_fini().
8431 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
8432 It's empty and unused.
8434 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
8435 beginning to avoid warnings with some compilers.
8437 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
8438 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
8440 2008-07-14 Pavel Roskin <proski@gnu.org>
8442 * kern/env.c (grub_register_variable_hook): Don't copy empty
8443 string, it leaks memory. Pass "" to grub_env_set(), it should
8444 handle constant strings.
8446 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
8447 * commands/cmp.c (grub_cmd_cmp): Likewise.
8448 * kern/dl.c (grub_dl_flush_cache): Likewise.
8449 (grub_dl_load_core): Likewise.
8450 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
8451 (grub_elf64_load_phdrs): Likewise.
8453 2008-07-13 Pavel Roskin <proski@gnu.org>
8455 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
8456 between signed and unsigned.
8457 (LzmaEnc_Finish): Fix warning about an unused parameter.
8459 2008-07-13 Bean <bean123ch@gmail.com>
8461 * Makefile.in (enable_lzo): New rule.
8463 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
8465 * configure.ac (ENABLE_LZO): New option --enable-lzo.
8467 * boot/i386/pc/lnxboot.S: #include <config.h>.
8469 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
8470 its value according to the compression algorithm used, lzo or lzma.
8472 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
8473 compression algorithm according to configure macro.
8475 * kern/i386/pc/startup.S (codestart): Likewise.
8477 * kern/i386/pc/lzma_decode.S: New file.
8479 * include/grub/lib/LzFind.h: Likewise.
8481 * include/grub/lib/LzHash.h: Likewise.
8483 * include/grub/lib/LzmaDec.h: Likewise.
8485 * include/grub/lib/LzmaEnc.h: Likewise.
8487 * include/grub/lib/LzmaTypes.h: Likewise.
8489 * lib/LzFind.c: Likewise.
8491 * lib/LzmaDec.c: Likewise.
8493 * lib/LzmaEnc.c: Likewise.
8495 2008-07-13 Bean <bean123ch@gmail.com>
8497 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
8498 (grub_ext4_extent_header): New structure.
8499 (grub_ext4_extent): Likewise.
8500 (grub_ext4_extent_idx): Likewise.
8501 (grub_ext4_find_leaf): New function.
8502 (grub_ext2_read_block): Handle extents.
8504 2008-07-12 Robert Millan <rmh@aybabtu.com>
8506 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
8508 2008-07-11 Robert Millan <rmh@aybabtu.com>
8510 * util/grub.d/40_custom.in: New file. Example on how to add custom
8511 entries to /etc/grub.d.
8512 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
8513 40_custom (implicitly, by merging all the grub.d rules).
8515 2008-07-11 Pavel Roskin <proski@gnu.org>
8517 * commands/read.c (grub_getline): Fix invalid memory access.
8518 Don't add newline to the variable value.
8520 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
8521 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
8522 (serial_hw_get_port): Check validity of the port number.
8523 (grub_cmd_serial): Check return value of serial_hw_get_port().
8525 2008-07-07 Pavel Roskin <proski@gnu.org>
8527 * boot/i386/pc/diskboot.S (notification_string): Replace
8528 "Loading kernel" with just "loading". This is shorter, less
8529 confusing and saves a few bytes for possible future changes.
8531 2008-07-05 Pavel Roskin <proski@gnu.org>
8533 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
8534 size for ATAPI devices, they are undefined. Output sector
8535 number in decimal form.
8537 * disk/ata.c: Use named constants for status bits.
8539 2008-07-04 Pavel Roskin <proski@gnu.org>
8541 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
8542 grub_addr_t before casting it to the void pointer to fix a
8543 warning. Non-addressable regions are discarded earlier.
8544 (grub_arch_modules_addr): Cast _end to grub_addr_t.
8545 * kern/i386/linuxbios/table.c: Include grub/misc.h.
8546 (check_signature): Don't shadow table_header.
8547 (grub_linuxbios_table_iterate): Cast numeric constants to
8548 grub_linuxbios_table_header_t.
8549 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
8552 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
8555 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
8556 pointer, which can cause warnings. Support 64-bit addresses.
8558 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
8559 of sizeof(long). This fixes PowerPC image generation on x86_64.
8561 2008-07-04 Robert Millan <rmh@aybabtu.com>
8563 This fixes a performance issue when pc & gpt partmap iterators
8564 didn't abort iteration even after our hook found what it was
8565 looking for (often causing expensive probes of non-existent drives).
8567 Some callers relied on previous buggy behaviour, since they would
8568 raise an error when their own hooks caused early abortion of its
8571 * kern/device.c (grub_device_open): Improve error message.
8572 * disk/lvm.c (grub_lvm_open): Likewise.
8573 * disk/raid.c (grub_raid_open): Likewise.
8575 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
8576 when hook requests it, independently of grub_errno.
8577 (pc_partition_map_probe): Do not fail when find_func() caused
8578 early abortion of pc_partition_map_iterate().
8580 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
8581 when hook requests it, independently of grub_errno.
8582 (gpt_partition_map_probe): Do not fail when find_func() caused
8583 early abortion of gpt_partition_map_iterate().
8585 * kern/partition.c (grub_partition_iterate): Abort parent iteration
8586 when hook requests it, independently of grub_errno. Do not fail when
8587 part_map_iterate_hook() caused early abortion of p->iterate().
8589 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
8590 when grub_partition_iterate() returned with non-zero.
8592 2008-07-03 Pavel Roskin <proski@gnu.org>
8594 * disk/ata.c (grub_ata_pio_write): Check status before writing,
8595 like we do in grub_ata_pio_read().
8596 (grub_ata_readwrite): Always write individual sectors. Fix the
8597 sector count for the remainder.
8598 (grub_ata_write): Enable writing to ATA devices. Correctly
8599 report error for ATAPI devices.
8601 2008-07-02 Pavel Roskin <proski@gnu.org>
8603 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
8606 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
8607 for every read sector, we already increment it for the whole
8608 batch. This fixes reading more than 256 sectors at once.
8610 * util/grub-editenv.c (cmd_info): Cast argument to long
8611 explicitly. ptrdiff_t reduces to int on i386.
8613 * util/grub-editenv.c (main): Be specific which parameter is
8616 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
8617 (memdisk): Make memdisk_orig_addr a pointer.
8619 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
8620 for file offsets, use grub_off_t instead. Fix printf format
8623 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
8624 there. Real unexpected warnings should not drown in the noise
8625 about known problems.
8627 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
8628 grub_disk_addr_t for memory addresses.
8630 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
8631 explicitly to fix a warning.
8633 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
8635 * Makefile.in (MODULE_LDFLAGS): New variable.
8636 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
8637 the linker accepts --build-id=none.
8638 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
8640 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
8642 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
8643 those in Linux XFS code. Provide a way to access 64-bit parent
8645 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
8646 the end of struct grub_xfs_dir_header.
8648 2008-07-02 Bean <bean123ch@gmail.com>
8650 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
8651 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
8652 and GRUB_IEEE1275_FLAG_NO_ANSI.
8654 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
8655 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
8656 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
8658 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
8659 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
8661 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
8662 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
8664 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
8665 esc sequence on non ANSI terminal.
8666 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
8668 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
8671 2008-07-02 Bean <bean123ch@gmail.com>
8673 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
8674 (grub_editenv_SOURCES): New variable.
8675 (pkglib_MODULES): Add loadenv.mod.
8676 (loadenv_mod_SOURCES): New variable.
8677 (loadenv_mod_CFLAGS): Likewise.
8678 (loadenv_mod_LDFLAGS): Likewise.
8680 * include/grub/envblk.h: New file.
8682 * util/envblk.c: New file.
8684 * util/grub-editenv.c: New file.
8686 * commands/loadenv.c: New file.
8688 2008-07-01 Pavel Roskin <proski@gnu.org>
8690 * include/multiboot2.h (struct multiboot_tag_module): Use char,
8691 not unsigned char. This fixes warnings and is consistent with
8694 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
8696 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
8698 * term/tparm.c (analyze): Always set *popcount.
8700 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
8701 cast to fix a warning.
8703 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
8704 cast to suppress a warning.
8706 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
8707 grub_fshelp_read_file() expects.
8709 * fs/fat.c: Fix UUID calculation on big-endian systems. We
8710 write uuid as a 32-bit value in CPU byte order, so declare and
8713 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
8714 long if the format specifier expects it.
8715 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
8716 * partmap/pc.c (pc_partition_map_iterate): Likewise.
8717 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
8718 long to fix a warning.
8719 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
8720 grub_dprintf() arguments to fix warnings.
8722 2008-06-30 Pavel Roskin <proski@gnu.org>
8724 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
8725 install_bsd_part immediately before core.img is embedded or
8726 modified on disk. This fixes core.img verification if core.img
8729 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
8730 core_path to calculate the blocklist.
8731 Patch from Javier MartÃn <lordhabbit@gmail.com>
8733 2008-06-29 Robert Millan <rmh@aybabtu.com>
8735 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
8736 block to disk block.
8737 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
8738 Patch from Niels Böhm <bitbucket@arcor.de>
8740 2008-06-29 Robert Millan <rmh@aybabtu.com>
8742 * util/update-grub_lib.in (font_path): Search for fonts in
8743 /boot/grub first, which is more likely to be readable (we aren't
8744 deciding where fonts live, just looking for them).
8746 2008-06-26 Pavel Roskin <proski@gnu.org>
8748 * util/biosdisk.c (read_device_map): Don't leave dead map
8749 entries for devices failing stat() check.
8751 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
8752 core_path_dev for the core.img path on the target device.
8754 2008-06-26 Robert Millan <rmh@aybabtu.com>
8756 * disk/fs_uuid.c: New file.
8757 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
8758 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
8759 (fs_uuid_mod_LDFLAGS): New variables.
8760 * include/grub/disk.h (grub_disk_dev_id): Add
8761 `GRUB_DISK_DEVICE_UUID_ID'.
8762 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
8763 implement iterate().
8765 2008-06-26 Robert Millan <rmh@aybabtu.com>
8767 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
8768 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
8769 Linux image includes no initrd.
8771 2008-06-21 Javier MartÃn <lordhabbit@gmail.com>
8773 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
8774 call to resolve the core image location that effectively appended the
8777 2008-06-21 Robert Millan <rmh@aybabtu.com>
8779 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
8782 * util/grub.d/10_hurd.in: ... to here ...
8783 * util/grub.d/10_linux.in: ... and here.
8785 2008-06-19 Robert Millan <rmh@aybabtu.com>
8787 * kern/main.c (grub_main): Export `prefix' variable immediately
8788 after it has been set by grub_machine_set_prefix().
8790 2008-06-19 Robert Millan <rmh@aybabtu.com>
8792 * commands/search.c (search_label, search_fs_uuid, search_file): Print
8793 search result when not saving to variable, not the other way around.
8794 When saving to variable, abort iteration as soon as a match is found.
8796 2008-06-19 Robert Millan <rmh@aybabtu.com>
8798 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
8799 check for partition that provides /boot/grub. Its logic is flawed,
8800 as it prevents prepare_grub_to_access_device() from being called
8803 2008-06-19 Robert Millan <rmh@aybabtu.com>
8805 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
8806 "insmod" command directly when abstraction modules are needed,
8807 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
8808 since it had already been processed).
8810 2008-06-19 Pavel Roskin <proski@gnu.org>
8812 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
8813 changed. This is needed in case GRUB_LIBDIR changes.
8814 * conf/i386-ieee1275.rmk: Likewise.
8815 * conf/i386-linuxbios.rmk: Likewise.
8816 * conf/i386-pc.rmk: Likewise.
8817 * conf/powerpc-ieee1275.rmk: Likewise.
8819 2008-06-18 Pavel Roskin <proski@gnu.org>
8821 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
8822 kernel_elf_symlist.c to symlist.c for consistency with other
8823 architectures. Update all users.
8824 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8826 2008-06-18 Robert Millan <rmh@aybabtu.com>
8828 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
8831 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
8832 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
8833 a RAID device, run setup() for all members independently on whether
8834 LVM abstraction is being used.
8835 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
8836 If grub-mkimage has set `*install_dos_part == -2', don't override this
8838 Perform *install_dos_part adjustments independently on whether
8839 we're embedding or not.
8840 Clarify error message when image is too big for embedding.
8841 Remove duplicate *install_dos_part stanza.
8843 2008-06-17 Robert Millan <rmh@aybabtu.com>
8845 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
8846 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
8848 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
8849 values in grub_ofconsole_normal_color and
8850 grub_ofconsole_highlight_color (they're not directly related to
8851 background and foreground).
8852 (grub_ofconsole_setcolorstate): Extract background and foreground
8853 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
8855 2008-06-17 Robert Millan <rmh@aybabtu.com>
8857 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
8858 /boot/grub for the check in last commit, not /boot (they could be
8859 different partitions).
8861 2008-06-16 Robert Millan <rmh@aybabtu.com>
8863 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
8864 asked to setup access for the same partition that provides /boot,
8865 don't bother using UUIDs since our root already has the value we
8868 2008-06-16 Robert Millan <rmh@aybabtu.com>
8870 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
8872 Patch from Sven Mueller <sven@debian.org>.
8874 2008-06-16 Robert Millan <rmh@aybabtu.com>
8876 * util/update-grub.in: Check for $EUID instead of $UID.
8877 Reported by Vincent Zweije.
8879 2008-06-16 Bean <bean123ch@gmail.com>
8881 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
8882 (grub_ext2_read_block): Likewise.
8883 (grub_ext2_read_inode): Likewise.
8884 (grub_ext2_mount): Likewise.
8885 (grub_ext2_close): Likewise.
8886 (grub_ext3_get_journal): Removed.
8888 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
8889 (grub_reiserfs_read_symlink): Likewise.
8890 (grub_reiserfs_mount): Likewise.
8891 (grub_reiserfs_open): Likewise.
8892 (grub_reiserfs_read): Likewise.
8893 (grub_reiserfs_close): Likewise.
8894 (grub_reiserfs_get_journal): Removed.
8896 * fs/fshelp.c (grub_fshelp_read): Removed.
8897 (grub_fshelp_map_block): Likewise.
8899 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
8900 (grub_fshelp_journal): Likewise.
8901 (grub_fshelp_read): Likewise.
8902 (grub_fshelp_map_block): Likewise.
8904 2008-06-16 Pavel Roskin <proski@gnu.org>
8906 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
8907 floating point anymore.
8908 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
8910 2008-06-15 Pavel Roskin <proski@gnu.org>
8912 * commands/ls.c (grub_ls_list_files): Use integer calculations
8913 for human readable format, avoid floating point use.
8914 * kern/misc.c (grub_ftoa): Remove.
8915 (grub_vsprintf): Remove floating point support.
8917 2008-06-15 Robert Millan <rmh@aybabtu.com>
8919 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
8921 Reported by Max Vozeler.
8923 2008-06-15 Robert Millan <rmh@aybabtu.com>
8925 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
8926 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
8928 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
8929 the beginning of the prefix.
8931 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
8932 It is assumed that if we have a memdisk, grub-mkimage has set
8933 grub_prefix to include the "(memdisk)" drive in it.
8935 2008-06-15 Robert Millan <rmh@aybabtu.com>
8937 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
8938 Initialize keyboard controller after registering the terminal, so that
8939 grub_printf() can be called from grub_keyboard_controller_init().
8941 2008-06-15 Robert Millan <rmh@aybabtu.com>
8943 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
8944 extent-btree which is written as big endian on disk.
8945 Reported by Alain Greppin <al@chilibi.org>.
8947 2008-06-14 Robert Millan <rmh@aybabtu.com>
8949 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
8950 * util/i386/pc/grub-install.in (modules): Likewise.
8952 2008-06-13 Pavel Roskin <proski@gnu.org>
8954 * commands/ls.c (grub_ls_list_files): Fix format warnings.
8956 2008-06-13 Bean <bean123ch@gmail.com>
8958 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
8960 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
8962 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
8963 to indicate sparse block.
8965 2008-06-12 Pavel Roskin <proski@gnu.org>
8967 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
8968 number, grub_fshelp_read() does it for us.
8970 * fs/fshelp.c (grub_fshelp_read): New function. Implement
8971 linear disk read with journal translation.
8972 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
8973 * include/grub/fshelp.h: Declare grub_fshelp_read().
8975 2008-06-09 Pavel Roskin <proski@gnu.org>
8977 * fs/minix.c (grub_minix_mount): Handle error reading
8980 2008-06-08 Robert Millan <rmh@aybabtu.com>
8982 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
8983 don't append the RAID prefix afterwards.
8984 Reported by Clint Adams.
8986 2008-06-08 Robert Millan <rmh@aybabtu.com>
8988 Based on description from Pavel:
8989 * kern/disk.c (grub_disk_check_range): Rename to ...
8990 (grub_disk_adjust_range): ... this. Add a comment explaining the
8991 tasks performed by this function.
8993 2008-06-08 Robert Millan <rmh@aybabtu.com>
8995 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
8996 `num_serial' (for consistency with other variables).
8997 (struct grub_ntfs_data): Add `uuid' member.
8998 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
8999 (grub_ntfs_uuid): New function.
9000 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
9002 2008-06-07 Pavel Roskin <proski@gnu.org>
9004 * util/biosdisk.c (open_device): Revert last change to the
9005 function, it broke installation. The sector needs to be
9006 different dependent on which device is opened.
9008 2008-06-06 Robert Millan <rmh@aybabtu.com>
9010 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9011 rest of GRUB, and breakage doesn't happen if its value were modified.
9013 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9014 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9015 a constant (same value).
9016 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9017 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9019 2008-06-06 Robert Millan <rmh@aybabtu.com>
9021 * util/biosdisk.c (open_device): Do not modify sector offset when
9022 accessing a partition. kern/disk.c already handles this for us.
9024 2008-06-06 Robert Millan <rmh@aybabtu.com>
9026 * util/grub-emu.c (grub_machine_init): Move code in this function from
9028 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9029 segfault in case grub_printf() is called).
9031 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9032 grub_probe. Update all users not to explicitly add it again.
9033 (grub_device): New variable; contains corresponding device for grubdir.
9034 (fs_module, partmap_module, devabstraction_module): Pass
9035 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9038 2008-06-05 Robert Millan <rmh@aybabtu.com>
9040 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9041 is found, print it (same layout as with labels).
9043 2008-06-04 Robert Millan <rmh@aybabtu.com>
9045 * util/biosdisk.c (get_drive): Rename to ...
9046 (find_grub_drive): ... this. Update all users.
9048 (get_os_disk): Rename to ...
9049 (convert_system_partition_to_system_disk): ... this. Update all users.
9051 (find_drive): Rename to ...
9052 (find_system_device): ... this. Update all users.
9054 2008-06-04 Robert Millan <rmh@aybabtu.com>
9056 * util/biosdisk.c (get_os_disk): Handle IDA devices.
9057 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9058 (make_device_map): Likewise.
9060 2008-06-01 Robert Millan <rmh@aybabtu.com>
9062 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
9063 before dereferencing it.
9065 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
9066 union with fat12/fat16-specific ones. Add some new fields, including
9067 `num_serial' for both versions.
9068 (struct grub_fat_data): Add `uuid' member.
9069 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
9070 names. Initialize `data->uuid' using `num_serial'.
9071 (grub_fat_uuid): New function.
9072 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
9074 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
9075 (grub_reiserfs_uuid): New function.
9076 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
9079 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
9080 (grub_xfs_uuid): New function.
9081 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
9083 2008-06-01 Robert Millan <rmh@aybabtu.com>
9085 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
9086 code that is backward compatible with pre-uuid search command.
9088 2008-05-31 Robert Millan <rmh@aybabtu.com>
9090 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
9091 floppies after everything else, to ensure floppy drive isn't accessed
9092 unnecessarily (patch from Bean).
9094 2008-05-31 Robert Millan <rmh@aybabtu.com>
9096 * commands/search.c (search_label, search_fs_uuid, search_file): Do
9097 not print device names when we were asked to set a variable.
9099 2008-05-31 Robert Millan <rmh@aybabtu.com>
9101 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
9102 using "cursor-on" and "cursor-off" commands (understood at least by
9103 the Open Firmware flavour on OLPC).
9105 2008-05-31 Michael Gorven <michael@gorven.za.net>
9107 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
9108 on and off sequences.
9110 2008-05-31 Robert Millan <rmh@aybabtu.com>
9112 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
9113 * util/update-grub.in: Likewise.
9115 2008-05-30 Pavel Roskin <proski@gnu.org>
9117 * util/biosdisk.c (linux_find_partition): Simplify logic and
9118 make the code more universal. Keep special processing for
9119 devfs, but use a simple rule for all other devices. If the
9120 device ends with a number, append 'p' and the partition number.
9121 Otherwise, append only the partition number.
9123 2008-05-30 Robert Millan <rmh@aybabtu.com>
9125 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
9126 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
9127 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
9128 the `root' parameter to Linux.
9130 2008-05-30 Robert Millan <rmh@aybabtu.com>
9132 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
9133 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
9134 --fs_uuid with --fs-uuid.
9135 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
9136 all filesystems support them).
9138 2008-05-30 Robert Millan <rmh@aybabtu.com>
9140 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
9141 grub_printf() flags, since we're printing in units of 2 bytes.
9143 2008-05-30 Robert Millan <rmh@aybabtu.com>
9145 * util/grub.d/00_header.in: Remove obsolete comment referencing
9146 convert_system_path_to_grub_path().
9147 * util/update-grub.in: Likewise.
9148 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
9149 (convert_system_path_to_grub_path): Add a warning message explaining
9150 that this function is deprecated. Rely on is_path_readable_by_grub()
9151 for the readability checks.
9152 (font_path): Use is_path_readable_by_grub() for the readability
9153 check rather than convert_system_path_to_grub_path().
9155 2008-05-30 Robert Millan <rmh@aybabtu.com>
9157 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
9158 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
9159 converting it first.
9160 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
9161 grub.cfg for access to font file, and afterwards call it again to set
9164 2008-05-30 Robert Millan <rmh@aybabtu.com>
9166 * commands/search.c (options): Add --fs_uuid option.
9167 (search_fs_uuid): New function.
9168 (grub_cmd_search): Fix --set argument passing.
9169 Use search_fs_uuid() when requested via --fs_uuid.
9170 (grub_search_init): Update help message.
9171 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
9172 and redeclare it as an array of 16-bit words.
9173 (grub_ext2_uuid): New function.
9174 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
9175 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
9176 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
9177 (GRUB_DEVICE_BOOT_UUID): New variables.
9178 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
9179 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
9181 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
9182 just assume `root' variable has the right value.
9183 * util/grub.d/10_linux.in: Likewise.
9184 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
9186 (main): Recognise `-t fs_uuid' argument.
9188 2008-05-30 Robert Millan <rmh@aybabtu.com>
9190 * util/biosdisk.c (map): Redefine structure to hold information
9191 about GRUB drive name.
9192 (get_drive): Reimplement without assuming (and verifying) BIOS-like
9194 (call_hook): Remove.
9195 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
9196 member. Assume drive has partitions.
9197 (grub_util_biosdisk_open): Access device names via `.device' struct
9199 (open_device): Likewise.
9200 (find_drive): Likewise.
9201 (read_device_map): Adjust map[] usage to match the new struct
9202 definition. Don't check for duplicates (still possible, but not cheap
9204 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
9205 (make_device_name): Remove assumption of BIOS-like drive names.
9207 2008-05-30 Pavel Roskin <proski@gnu.org>
9209 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
9210 compiling execute.c doesn't need grub_script.tab.h anymore.
9211 (normal/command.c_DEPENDENCIES): Likewise.
9212 (normal/function.c_DEPENDENCIES): Likewise.
9213 * conf/i386-ieee1275.rmk: Likewise.
9214 * conf/i386-linuxbios.rmk: Likewise.
9215 * conf/i386-pc.rmk: Likewise.
9216 * conf/powerpc-ieee1275.rmk: Likewise.
9217 * conf/sparc64-ieee1275.rmk: Likewise.
9219 2008-05-29 Pavel Roskin <proski@gnu.org>
9221 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
9222 when scanning metadata for volume group name.
9224 * include/grub/script.h: Don't include grub_script.tab.h. It's
9225 a generated file, which may only be included from the files with
9226 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
9227 use union YYSTYPE, as the later allows forward declaration.
9228 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
9230 2008-05-29 Robert Millan <rmh@aybabtu.com>
9232 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
9233 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
9234 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
9235 (grub_console_checkkey): Add grub_dprintf() call to report unknown
9238 2008-05-29 Robert Millan <rmh@aybabtu.com>
9240 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
9241 control key combinations.
9243 2008-05-29 Robert Millan <rmh@aybabtu.com>
9245 * util/powerpc/ieee1275/grub-install.in: Move from here ...
9246 * util/ieee1275/grub-install.in: ... to here.
9247 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
9248 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
9249 (grub_install_SOURCES): Likewise.
9251 2008-05-29 Robert Millan <rmh@aybabtu.com>
9253 * fs/affs.c: Update copyright year.
9254 * fs/ext2.c: Likewise.
9255 * fs/fshelp.c: Likewise.
9256 * fs/hfsplus.c: Likewise.
9257 * fs/ntfs.c: Likewise.
9258 * fs/xfs.c: Likewise.
9259 * include/grub/fshelp.h: Likewise.
9260 * util/grub-mkdevicemap.c: Likewise.
9262 2008-05-28 Robert Millan <rmh@aybabtu.com>
9264 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
9265 might need to be fatfs to support some firmware implementations
9268 2008-05-28 Robert Millan <rmh@aybabtu.com>
9270 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
9272 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9273 (make_device_map): Likewise.
9275 2008-05-20 Bean <bean123ch@gmail.com>
9277 * fs/fshelp.c (grub_fshelp_map_block): New function.
9278 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
9279 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
9281 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
9282 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
9283 (grub_fshelp_journal): New structure.
9284 (grub_fshelp_map_block): New function prototype.
9285 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
9286 (grub_fshelp_map_block): Likewise.
9288 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
9289 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
9290 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
9291 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
9292 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
9293 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
9294 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
9295 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
9296 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
9297 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
9298 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
9299 (grub_ext2_sblock): New members for journal support.
9300 (grub_ext3_journal_header): New structure.
9301 (grub_ext3_journal_revoke_header): Likewise.
9302 (grub_ext3_journal_block_tag): Likewise.
9303 (grub_ext3_journal_sblock): Likewise.
9304 (grub_fshelp_node): New members logfile and journal.
9305 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
9306 grub_fshelp_map_block to get real block number.
9307 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
9309 (grub_ext2_read_inode): Likewise.
9310 (grub_ext3_get_journal): New function.
9311 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
9312 (grub_ext2_close): Release memory used by journal.
9314 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
9315 (REISERFS_MAGIC_DESC_BLOCK): New macro.
9316 (grub_reiserfs_transaction_header): Renamed to
9317 grub_reiserfs_description_block, replace field data with real_blocks.
9318 (grub_reiserfs_commit_block): New structure.
9319 (grub_reiserfs_data): New member journal.
9320 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
9322 (grub_reiserfs_read_symlink): Likewise.
9323 (grub_reiserfs_iterate_dir): Likewise.
9324 (grub_reiserfs_open): Likewise.
9325 (grub_reiserfs_read): Likewise.
9326 (grub_reiserfs_get_journal): New function.
9327 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
9328 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
9329 using grub_reiserfs_get_journal.
9330 (grub_reiserfs_close): Release memory used by journal.
9332 * fs/affs.c (grub_affs_read_block): Change block type to
9333 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
9335 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
9337 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
9339 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
9341 * fs/udf.c (grub_udf_read_block): Change block type to
9342 grub_disk_addr_t. Use type cast to avoid warning.
9344 * fs/xfs.c (grub_xfs_read_block): Likewise.
9346 2008-05-16 Christian Franke <franke@computer.org>
9348 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
9349 to ensure that break with ESC will always work.
9350 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
9351 Remove ESC from keyboard queue.
9353 2008-05-16 Christian Franke <franke@computer.org>
9355 * util/biosdisk.c: [__CYGWIN__] Add includes.
9356 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
9357 (get_os_disk): Move variable declarations to OS specific
9358 parts to avoid warning.
9359 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
9360 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
9361 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
9363 * util/getroot.c: [__CYGWIN__] Add includes.
9364 (strip_extra_slashes): Fix "/" case.
9365 [__CYGWIN__] (get_win32_path): New function.
9366 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
9367 [__CYGWIN__] (find_root_device): Disable.
9368 [__CYGWIN__] (get_bootsec_serial): New function.
9369 [__CYGWIN__] (find_cygwin_root_device): Likewise.
9370 [__linux__] (grub_guess_root_device): Add early returns to simplify
9372 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
9373 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
9374 check for Linux only.
9376 2008-05-15 Bean <bean123ch@gmail.com>
9378 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
9379 keyboard hang problem in apple's intel mac.
9381 2008-05-09 Robert Millan <rmh@aybabtu.com>
9383 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
9385 * util/grub-mkdevicemap.c (get_virtio_disk_name)
9386 (make_device_map): Likewise.
9387 Reported by Aurelien Jarno <aurel32@debian.org>
9389 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
9391 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
9392 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
9393 (make_device_map): Output entries for xvd type disks.
9395 2008-05-07 Robert Millan <rmh@aybabtu.com>
9397 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
9399 * util/grub-mkdevicemap.c (get_cciss_disk_name)
9400 (make_device_map): Likewise.
9401 Reported by Roland Dreier <rdreier@cisco.com>
9403 2008-05-07 Robert Millan <rmh@aybabtu.com>
9405 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
9406 grub_strstr() call. Correct a few mistakes in failure path handling.
9408 2008-05-06 Robert Millan <rmh@aybabtu.com>
9410 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
9411 Do not print a trailing slash (therefore, the root directory is an
9413 (convert_system_path_to_grub_path): Do not remove trailing slash
9414 from make_system_path_relative_to_its_root() output.
9416 * util/i386/pc/grub-install.in: Add trailing slash to output from
9417 make_system_path_relative_to_its_root().
9419 2008-05-06 Robert Millan <rmh@aybabtu.com>
9421 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
9422 ensures that output lines aren't intermangled with those sent to
9423 stderr (via grub_util_info()).
9424 * util/grub-probe.c (grub_refresh): Likewise.
9425 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
9427 2008-05-05 Christian Franke <franke@computer.org>
9429 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
9430 Add Cygwin device names.
9431 (get_ide_disk_name) [__CYGWIN__]: Likewise.
9432 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
9433 (check_device): Return error instead of success on empty name.
9434 (make_device_map): Move label inside linux specific code to
9435 prevent compiler warning.
9437 2008-04-30 Robert Millan <rmh@aybabtu.com>
9439 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
9440 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
9442 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
9444 2008-04-29 Robert Millan <rmh@aybabtu.com>
9446 * docs/grub.cfg: New file (example GRUB configuration).
9448 2008-04-26 Robert Millan <rmh@aybabtu.com>
9450 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
9451 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
9452 and `disk/ieee1275/nand.c'.
9454 2008-04-25 Bean <bean123ch@gmail.com>
9456 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
9459 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
9460 change the buffer size to 4096 for cdrom device.
9462 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
9464 (_linux_mod_SOURCES): New variable.
9465 (_linux_mod_CFLAGS): Likewise.
9466 (_linux_mod_LDFLAGS): Likewise.
9467 (linux_mod_SOURCES): Likewise.
9468 (linux_mod_CFLAGS): Likewise.
9469 (linux_mod_LDFLAGS): Likewise.
9470 (nand_mod_SOURCES): Likewise.
9471 (nand_mod_CFLAGS): Likewise.
9472 (nand_mod_LDFLAGS): Likewise.
9474 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
9475 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
9476 type property. (nand device in olpc don't have this property)
9478 * include/grub/disk.h (grub_disk_dev_id): New macro
9479 GRUB_DISK_DEVICE_NAND_ID.
9481 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
9483 (grub_rescue_cmd_initrd): Likewise.
9485 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
9486 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
9487 ofw_cif_handler and ofw_idt, adjust padding number.
9489 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
9490 GRUB_MACHINE_IEEE1275 is defined.
9492 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
9493 Use NESTED_FUNC_ATTR attribute on the hook parameter.
9495 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
9496 on nested function heap_init.
9497 (grub_upper_mem): New variable for i386-ieee1275.
9498 (grub_get_extended_memory): New function for i386-ieee1275.
9499 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
9501 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
9502 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
9505 * loader/i386/ieee1275/linux.c: New file.
9507 * loader/i386/ieee1275/linux_normal.c: New file.
9509 * disk/ieee1275/nand.c: New file.
9511 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
9513 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
9515 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
9517 2008-04-18 Robert Millan <rmh@aybabtu.com>
9519 Restructures early code path on ieee1275 to unify grub_main() as
9520 the first C function that is executed in every platform.
9522 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
9523 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
9525 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
9526 * kern/ieee1275/cmain.c (cmain): Rename to ...
9527 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
9528 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
9531 2008-04-18 Robert Millan <rmh@aybabtu.com>
9533 * util/update-grub.in: Fix syntax error when setting
9534 `GRUB_PRELOAD_MODULES'.
9535 Reported by Stephane Chazelas <stephane@artesyncp.com>
9537 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
9539 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
9540 section into account, newer toolchains generate unique build ids
9541 * configure.ac: remove the test for --build-id=none acceptance,
9542 we want build ids to be preserved
9543 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
9544 far from other sections don't cause the raw binary images grow
9547 2008-04-15 Robert Millan <rmh@aybabtu.com>
9549 * disk/lvm.c: Update copyright year.
9550 * kern/misc.c: Likewise.
9552 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
9554 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
9555 there is no memory left for physical volume name.
9557 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
9559 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
9560 volume name mapping to support bigger than 9 character names properly.
9562 2008-04-13 Robert Millan <rmh@aybabtu.com>
9564 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
9565 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
9567 2008-04-13 Christian Franke <franke@computer.org>
9569 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
9570 to create a floppy emulation boot CD when non emulation mode
9572 Enable Joliet CD filesystem extension.
9574 2008-04-13 Robert Millan <rmh@aybabtu.com>
9576 * kern/misc.c (grub_strncat): Fix off-by-one error.
9577 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
9579 * kern/env.c (grub_env_context_close): Clear current context, not
9581 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
9583 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
9585 2008-04-13 Robert Millan <rmh@aybabtu.com>
9587 Improve robustness when handling LVM.
9589 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
9590 (and leave `*p' unmodified).
9591 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
9593 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
9594 iterating through it.
9595 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
9597 (grub_lvm_scan_device): Check the return value (and fail gracefully
9598 when due) on each grub_lvm_getvalue() or grub_strstr() call.
9599 Don't assume `vg->pvs != NULL' when iterating through it.
9601 2008-04-13 Robert Millan <rmh@aybabtu.com>
9603 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
9604 * genmk.rb (partmap): New variable.
9605 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
9606 (#{partmap}): New target rule.
9607 * genpartmaplist.sh: New file.
9608 * Makefile.in (pkglib_DATA): Add partmap.lst.
9609 (partmap.lst): New target rule.
9610 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
9611 modules (including all partition maps), instead of preloading them.
9613 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
9615 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
9616 `linux-boot-prober' (if installed) to detect other operating
9617 systems which are installed on the computer and add them to
9619 * conf/common.rmk: Build and install 30_os-prober.
9621 2008-04-12 Robert Millan <rmh@aybabtu.com>
9623 * kern/powerpc/ieee1275/init.c: Move from here ...
9624 * kern/ieee1275/init.c: ... to here. Update all users.
9626 * kern/powerpc/ieee1275/cmain.c: Move from here ...
9627 * kern/ieee1275/cmain.c: ... to here. Update all users.
9629 * kern/powerpc/ieee1275/openfw.c: Move from here ...
9630 * kern/ieee1275/openfw.c: ... to here. Update all users.
9632 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
9633 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
9635 2008-04-10 Pavel Roskin <proski@gnu.org>
9637 * configure.ac: Always use "_cv_" in cache variables for
9638 compatibility with Autoconf 2.62.
9640 2008-04-07 Robert Millan <rmh@aybabtu.com>
9642 Revert grub/machine/init.h addition by Pavel (since it breaks on
9643 i386-ieee1275 and others):
9644 * util/i386/pc/misc.c: Remove grub/machine/init.h.
9645 * util/powerpc/ieee1275/misc.c: Likewise.
9647 2008-04-07 Robert Millan <rmh@aybabtu.com>
9649 * util/grub-probe.c (probe): Improve error message.
9651 2008-04-07 Robert Millan <rmh@aybabtu.com>
9653 * util/biosdisk.c (read_device_map): Skip devices that don't exist
9654 (this prevents the presence of a bogus entry from ruining the whole
9657 2008-04-06 Pavel Roskin <proski@gnu.org>
9659 * util/biosdisk.c: Include grub/util/biosdisk.h.
9660 * util/grub-fstest.c (execute_command): Make static.
9661 * util/grub-mkdevicemap.c (check_device): Likewise.
9662 * util/i386/pc/misc.c: Include grub/machine/init.h.
9663 * util/powerpc/ieee1275/misc.c: Likewise.
9664 * util/lvm.c: Include grub/util/lvm.h.
9665 * util/misc.c: Include grub/kernel.h, grub/misc.h and
9667 * util/raid.c: Include grub/util/raid.h.
9668 (grub_util_getdiskname): Make static.
9670 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
9671 grub_hostfs_fini(), as they are called from grub_init_all() and
9672 grub_fini_all() respectively. This fixes an infinite loop in
9673 grub-fstest due to double registration of hostfs.
9674 Reported by Christian Franke <Christian.Franke@t-online.de>
9676 2008-04-05 Pavel Roskin <proski@gnu.org>
9678 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
9679 all 8 functions. Otherwise, probe function 0 only.
9681 2008-04-04 Pavel Roskin <proski@gnu.org>
9683 * commands/lspci.c (grub_lspci_iter): Print the bus number
9686 * commands/lspci.c (grub_pci_classes): Fix typos.
9687 (grub_lspci_iter): Don't print func twice. Print vendor ID
9688 before device ID, as it's normally done.
9690 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
9691 Fix signedness warnings.
9692 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
9694 * util/ieee1275/get_disk_name.c: Include config.h so that
9695 _GNU_SOURCE is defined and getline() is declared. Mark an
9696 unused argument as such. Fix a signedness warning.
9698 2008-04-02 Pavel Roskin <proski@gnu.org>
9700 * genkernsyms.sh.in: Use more robust assignments for CC and
9701 srcdir. Quote srcdir.
9702 * gensymlist.sh.in: Likewise. Assert at the compile time that
9703 the symbol table is not empty.
9705 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
9706 * fs/cpio.c (grub_cpio_read): Likewise.
9708 2008-04-01 Pavel Roskin <proski@gnu.org>
9710 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
9711 * disk/host.c (grub_host_open): Likewise.
9712 * disk/loopback.c (grub_loopback_open): Likewise.
9713 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
9714 disk->id as in disk/host.c, not a multi-character constant.
9716 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
9717 later is obsolete, potentially dangerous and sets a bad example.
9718 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
9719 * util/misc.c (grub_util_get_image_size): Likewise.
9721 * disk/loopback.c (options): Improve help for "--partitions".
9723 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
9724 options to align them with the short options, e.g. "echo -e".
9726 2008-03-31 Bean <bean123ch@gmail.com>
9728 * video/reader/png.c (grub_png_data): New member is_16bit and
9730 (grub_png_decode_image_header): Detect 16 bit png image.
9731 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
9732 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
9733 (grub_video_reader_png): Release memory occupied by image_data.
9735 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
9737 (grub_nfs_mount): Skip the test for sector per cluster.
9739 * include/grub/ntfs.h (MAX_SPC): Removed.
9741 2008-03-31 Bean <bean123ch@gmail.com>
9743 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
9744 (grub_probe_SOURCES): Add fs/afs.c.
9745 (grub_fstest_SOURCES): Likewise.
9746 (afs_mod_SOURCES): New variable.
9747 (afs_mod_CFLAGS): Likewise.
9748 (afs_mod_LDFLAGS): Likewise.
9750 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
9751 (grub_emu_SOURCES): Likewise.
9753 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9755 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9757 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9761 * fs/afs.c: New file.
9763 2008-03-30 Pavel Roskin <proski@gnu.org>
9765 * disk/host.c: Include grub/misc.h to fix a warning.
9766 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
9767 warnings about implicit declarations.
9769 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
9771 * include/grub/i386/loader.h: Change declaration of
9772 grub_linux_boot() to match what grub_loader_set() expects.
9773 * util/getroot.c (grub_guess_root_device): Return const char* to
9775 * util/grub-probe.c (probe): Fix a warning about uninitialized
9776 abstraction_name variable.
9777 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
9778 second argument as unused to fix a warning.
9780 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
9781 missing grub_error() call.
9783 * util/update-grub_lib.in: Define datarootdir, since Autoconf
9784 2.60 and newer uses it to define datadir.
9786 * commands/sleep.c: Fix warning about implicit declaration.
9787 * disk/memdisk.c: Likewise.
9788 * loader/aout.c: Likewise.
9789 * loader/i386/bsd_normal.c: Likewise.
9790 * util/grub-probe.c: Likewise.
9792 * commands/i386/cpuid.c (has_longmode): Make static.
9793 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
9794 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
9796 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
9797 GDT. This is more robust, as %ds can change.
9798 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
9799 calling real_to_prot().
9800 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
9802 2008-03-28 Pavel Roskin <proski@gnu.org>
9804 * kern/i386/pc/startup.S: Assert that uncompressed functions
9805 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
9806 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
9807 code, as they push parts of the code (error handlers) beyond
9808 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
9809 code as correctness and size.
9811 2008-03-28 Pavel Roskin <proski@gnu.org>
9813 * kern/i386/pc/startup.S
9814 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
9815 data block address to the real mode, keep offset minimal. This
9816 works around a bug in AWARD BIOS on old Athlon systems, which
9817 makes CD detection hang.
9819 2008-03-26 Pavel Roskin <proski@gnu.org>
9821 * normal/color.c (grub_parse_color_name_pair): Make `name' a
9823 * include/grub/normal.h: Add grub_parse_color_name_pair()
9826 2008-03-24 Bean <bean123ch@gmail.com>
9828 * disk/i386/pc/biosdisk.c (cd_start): Removed.
9829 (cd_count): Removed.
9830 (cd_drive): New variable.
9831 (grub_biosdisk_get_drive): Don't check for (cdN) device.
9832 (grub_biosdisk_call_hook): Likewise.
9833 (grub_biosdisk_iterate): Change cdrom detection method.
9834 (grub_biosdisk_open): Replace cd_start with cd_drive.
9835 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
9836 detect cdrom device.
9838 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
9840 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
9841 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
9842 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
9843 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
9844 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
9845 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
9846 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
9847 (grub_biosdisk_cdrp): New structure.
9848 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
9850 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
9852 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
9855 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
9858 2008-03-20 Robert Millan <rmh@aybabtu.com>
9860 Remove 2 TiB limit in ata.mod.
9861 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
9862 (grub_ata_dumpinfo): Print sector count with 0x%llx.
9863 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
9864 grub_uint64_t instead of grub_uint32_t.
9866 2008-03-05 Bean <bean123ch@gmail.com>
9868 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
9869 (grub_multiboot): Set boot device.
9871 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
9873 2008-03-02 Bean <bean123ch@gmail.com>
9875 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
9878 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
9880 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
9883 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
9886 * docs/fdl.texi: New file.
9888 * docs/mdate-sh: New file. Copied from gnulib.
9889 * docs/texinfo.tex: Likewise.
9891 * config.guess: Updated from gnulib.
9892 * install-sh: Likewise.
9894 2008-02-28 Robert Millan <rmh@aybabtu.com>
9896 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
9897 (aout_mod_SOURCES): New variable.
9898 (aout_mod_CFLAGS): Likewise.
9899 (aout_mod_LDFLAGS): Likewise.
9901 * conf/i386-ieee1275.rmk: Likewise.
9903 2008-02-28 Robert Millan <rmh@aybabtu.com>
9905 * util/update-grub.in: Reorganise terminal validity check. Accept
9906 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
9907 Based on suggestion by Franklin PIAT.
9909 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
9911 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
9913 * util/getroot.c (grub_util_check_block_device): New function that
9914 returns the given argument if it is a block device and returns NULL else.
9915 * util/grub-probe.c (argument_is_device): New variable.
9916 (probe): Promote device_name from a variable to an argument. Receive
9917 device_name from grub_util_check_block_device() if path is NULL and from
9918 grub_guess_root_device() else. Do not free() device_name anymore.
9919 (options): Introduce new parameter '-d, --device'.
9920 (main): Add description of the new parameter to the help screen.
9921 Rename path variable to argument. Set argument_is_device if the '-d'
9922 option is given. Pass argument to probe() depending on
9925 2008-02-24 Bean <bean123ch@gmail.com>
9927 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
9928 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
9929 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
9930 (GRUB_ISO9660_VOLDESC_PART): Likewise.
9931 (GRUB_ISO9660_VOLDESC_END): Likewise.
9932 (grub_iso9660_primary_voldesc): New member escape.
9933 (grub_iso9660_data): New member joliet.
9934 (grub_iso9660_convert_string): New function.
9935 (grub_iso9660_mount): Detect joliet extension.
9936 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
9937 (grub_iso9660_iso9660_label): Likewise.
9939 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
9940 (grub_setup_SOURCES): Add fs/udf.c.
9941 (grub_fstest_SOURCES): Likewise.
9942 (udf_mod_SOURCES): New variable.
9943 (udf_mod_CFLAGS): Likewise.
9944 (udf_mod_LDFLAGS): Likewise.
9946 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
9947 (grub_emu_SOURCES): Likewise.
9949 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9951 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9953 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
9955 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9957 * fs/udf.c: New file.
9959 2008-02-24 Robert Millan <rmh@aybabtu.com>
9961 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
9962 (normal/lexer.c_DEPENDENCIES): New variables.
9963 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9964 (normal/lexer.c_DEPENDENCIES): Likewise.
9965 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
9966 (normal/lexer.c_DEPENDENCIES): Likewise.
9967 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
9968 (normal/lexer.c_DEPENDENCIES): Likewise.
9969 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9970 (normal/lexer.c_DEPENDENCIES): Likewise.
9971 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
9972 (normal/lexer.c_DEPENDENCIES): Likewise.
9974 2008-02-23 Robert Millan <rmh@aybabtu.com>
9976 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
9977 since they were intended to be in hex. This didn't break previously
9978 because of a bug in gpt_partition_map_iterate() (see below).
9980 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
9981 when checking the validity of GPT header.
9982 Remove `partno', since it always provides the same information as `i'.
9984 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
9986 * include/grub/efi/time.h: Fix a wrong comment.
9988 2008-02-19 Pavel Roskin <proski@gnu.org>
9990 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
9993 2008-02-19 Bean <bean123ch@gmail.com>
9995 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
9996 (aout_mod_SOURCES): New variable.
9997 (aout_mod_CFLAGS): Likewise.
9998 (aout_mod_LDFLAGS): Likewise.
9999 (_bsd_mod_SOURCES): New variable.
10000 (_bsd_mod_CFLAGS): Likewise.
10001 (_bsd_mod_LDFLAGS): Likewise.
10002 (bsd_mod_SOURCES): New variable.
10003 (bsd_mod_CFLAGS): Likewise.
10004 (bsd_mod_LDFLAGS): Likewise.
10006 * include/grub/aout.h: New file.
10008 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10010 * include/grub/i386/bsd.h: New file.
10012 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10015 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10016 function is called, so that it's possible to change it inside the hook.
10017 (grub_elf64_load): Likewise.
10018 (grub_elf_file): Don't close the file if elf header is not found.
10019 (grub_elf_close): Close the file if grub_elf_file fails (The new
10020 grub_elf_file won't close it).
10021 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10022 (grub_elf64_size): Likewise.
10024 * kern/i386/loader.S (grub_unix_real_boot): New function.
10026 * loader/aout.c: New file.
10028 * loader/i386/bsd.c: New file.
10030 * loader/i386/bsd_normal.c: New file.
10032 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10034 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10035 can test other formats.
10037 2008-02-19 Robert Millan <rmh@aybabtu.com>
10039 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10040 (grub_gpt_partition_type_empty): Redefine with macro from
10041 `<grub/gpt_partition.h>'.
10042 (gpt_partition_map_iterate): Adjust partition type comparison.
10044 Export `entry' as partmap-specific `part.data' struct.
10045 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10047 * include/grub/gpt_partition.h (grub_gpt_header)
10048 (grub_gpt_partentry): ... to here (new file).
10050 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10052 (grub_gpt_partition_type_bios_boot): New const variable, defined
10053 with macro from `<grub/gpt_partition.h>'.
10055 (setup): Replace `first_start' with `embed_region', which keeps
10056 track of the embed region (and is partmap-agnostic).
10058 Replace find_first_partition_start() with find_usable_region(),
10059 which finds a usable region for embedding using partmap-specific
10060 knowledge (supports PC/MSDOS and GPT).
10062 Fix all assumptions that the embed region start at sector 1, using
10063 `embed_region.start' from now on. Similarly, use `embed_region.end'
10064 rather than `first_start' to calculate available size.
10066 In grub_util_info() message, replace "into after the MBR" with an
10067 indication of the specific sector our embed region starts at.
10069 2008-02-19 Robert Millan <rmh@aybabtu.com>
10071 * DISTLIST: Replace `commands/ieee1275/halt.c' and
10072 `commands/ieee1275/reboot.c' with `commands/halt.c' and
10073 `commands/reboot.c'.
10074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10075 (halt_mod_SOURCES): Likewise.
10076 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10077 (halt_mod_SOURCES): Likewise.
10079 2008-02-17 Christian Franke <franke@computer.org>
10081 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
10083 2008-02-17 Robert Millan <rmh@aybabtu.com>
10085 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10086 set `first_start' to 0 for non-PC/MSDOS partition maps.
10088 2008-02-16 Robert Millan <rmh@aybabtu.com>
10090 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10091 do not assume partition map is PC/MSDOS before performing checks that
10092 are specific to that layout.
10094 2008-02-13 Robert Millan <rmh@aybabtu.com>
10096 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
10097 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
10098 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
10100 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
10102 * configure.ac: Only a cosmetic change on the handling of
10103 -fno-stack-protector.
10105 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
10107 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
10108 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
10110 (grub_install_SOURCES): Add halt.mod and reboot.mod.
10111 (halt_mod_SOURCES): New variable.
10112 (halt_mod_CFLAGS): Likewise.
10113 (halt_mod_LDFLAGS): Likewise.
10114 (reboot_mod_SOURCES): Likewise.
10115 (reboot_mod_CFLAGS): Likewise.
10116 (reboot_mod_LDFLAGS): Likewise.
10118 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
10119 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
10121 (halt_mod_SOURCES): Likewise.
10122 (reboot_mod_SOURCES): Likewise.
10124 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
10125 commands/i386/pc/reboot.c by commands/reboot.c.
10126 (reboot_mod_SOURCES): Likewise.
10128 * commands/i386/pc/reboot.c: merge this file ...
10130 * commands/ieee1275/reboot.c: ... and this file ...
10132 * commands/reboot.c: ... to this file.
10133 Add some precompiler directive to include the correct header for
10136 * commands/ieee1275/halt.c: move this file ...
10138 * commands/halt.c: ... to here.
10139 Add some precompiler directive to include the correct header for
10142 * include/grub/efi/efi.h (grub_reboot): New function declaration.
10143 (grub_halt): Likewise.
10145 * kern/efi/efi.c (grub_reboot): New function.
10146 (grub_halt): Likewise.
10148 2008-02-12 Robert Millan <rmh@aybabtu.com>
10150 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
10151 /dev (like it is done for /dev/mapper). This doesn't provide support
10152 for EVMS, but at least it is now easy to identify the problem when it
10155 2008-02-11 Robert Millan <rmh@aybabtu.com>
10157 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
10158 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
10159 comparing it with -1, not 0.
10161 2008-02-10 Robert Millan <rmh@aybabtu.com>
10163 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
10165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10166 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10168 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
10169 `disk/lvm.c' to the end of the list.
10170 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10171 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10173 2008-02-10 Robert Millan <rmh@aybabtu.com>
10175 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
10176 grub_print_error() instead. This will let user know why we're entering
10178 Based on suggestions from Sam Morris.
10180 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
10182 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
10183 on remaining N args, instead of "--" arg N times.
10185 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
10187 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
10188 (fill_with_default_glyph): Changed to use unknown_glyph for fill
10189 pattern for unknown glyphs.
10191 2008-02-09 Robert Millan <rmh@aybabtu.com>
10193 * configure.ac: Probe for `help2man'.
10194 * Makefile.in (builddir): New variable.
10195 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
10196 or otherwise add a few flags/options to it.
10197 (install-local): For every executable utility or script that is
10198 installed, invoke $(HELP2MAN) to install a manpage based on --help
10201 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
10202 that it doesn't prevent --help from working in build tree.
10204 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
10205 with `bug-grub@gnu.org'.
10206 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
10207 * util/update-grub.in (usage): New function.
10208 Implement proper argument check, with support for --help and --version
10209 (as well as existing -y).
10211 2008-02-09 Christian Franke <franke@computer.org>
10213 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
10214 avoid overwriting previous output.
10215 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
10217 2008-02-09 Robert Millan <rmh@aybabtu.com>
10219 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
10222 2008-02-09 Robert Millan <rmh@aybabtu.com>
10224 * commands/sleep.c: New file.
10225 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
10226 (sleep_mod_SOURCES): New variable.
10227 (sleep_mod_CFLAGS): Likewise.
10228 (sleep_mod_LDFLAGS): Likewise.
10230 2008-02-09 Robert Millan <rmh@aybabtu.com>
10232 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
10233 situations in which we can deduce the RAID size and the superblock
10236 2008-02-09 Robert Millan <rmh@aybabtu.com>
10238 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
10239 and return a grub_diskmemberlist_t composed of LVM physical volumes.
10240 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
10242 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
10243 and return a grub_diskmemberlist_t composed of physical array members.
10244 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
10246 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
10248 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
10249 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
10250 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
10252 * util/grub-probe.c (probe): Move partmap probing code from here ...
10253 (probe_partmap): ... to here.
10254 (probe): Use probe_partmap() once for the disk we're probing, and
10255 additionally, when such disk contains a memberlist() struct member,
10256 once for each disk that is contained in the structure returned by
10259 2008-02-09 Robert Millan <rmh@aybabtu.com>
10261 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
10262 environment variable to 'all' in order to obtain debug output from
10264 * util/i386/pc/grub-setup.c (main): Likewise.
10266 2008-02-08 Robert Millan <rmh@aybabtu.com>
10268 * disk/raid.c (grub_raid_scan_device): Check for
10269 `array->device[sb.this_disk.number]' rather than for
10270 `array->device[sb.this_disk.number]->name', since the latter is not
10271 guaranteed to be accessible.
10273 2008-02-08 Robert Millan <rmh@aybabtu.com>
10275 * disk/raid.c: Update copyright.
10276 * fs/cpio.c: Likewise.
10277 * include/grub/raid.h: Likewise.
10278 * loader/i386/pc/multiboot.c: Likewise.
10279 * util/hostfs.c: Likewise.
10281 2008-02-08 Robert Millan <rmh@aybabtu.com>
10283 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
10284 to a grub_disk_t array.
10285 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
10287 (grub_raid_scan_device): Replace `device[x].name' accesses with
10288 `device[x]->name'. Simplify initialization of `array->device[x]'.
10290 2008-02-08 Robert Millan <rmh@aybabtu.com>
10292 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
10293 grub_dprintf() calls.
10294 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
10297 2008-02-07 Christian Franke <franke@computer.org>
10299 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
10300 instead of fseek and ftell to support large files.
10301 (grub_hostfs_read): Likewise.
10303 2008-02-07 Robert Millan <rmh@aybabtu.com>
10305 Patch from Jeroen Dekkers.
10306 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
10307 failure, since successfully reading all array members might not be
10310 2008-02-06 Robert Millan <rmh@aybabtu.com>
10312 * util/grub-probe.c (probe): Simplify partmap probing (with the
10313 assumption that the first word up to the underscore equals to
10316 2008-02-06 Christian Franke <franke@computer.org>
10318 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
10319 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
10320 last block of a cpio or tar stream.
10321 Check for "TRAILER!!!" instead of any empty data
10322 block to detect last block of a cpio stream.
10323 (grub_cpio_dir): Fix constness of variable np.
10324 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
10325 cpio or tar trailer is detected. This fixes a crash
10326 on open of a non existing file.
10328 2008-02-05 Bean <bean123ch@gmail.com>
10330 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
10332 (grub_multiboot_load_elf64): Likewise.
10333 (grub_multiboot): Initialize mbi structure.
10335 * util/grub-fstest.c: Don't include unused header file script.h.
10337 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
10339 (grub_fstest_SOURCES): Likewise.
10341 2008-02-05 Robert Millan <rmh@aybabtu.com>
10343 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
10344 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
10345 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
10346 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
10348 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
10349 (translation_table): Replace hardcoded values with macros
10350 provided by `<grub/term.h>'.
10352 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
10353 (keyboard_map): Correct/add a few values, with macros provided
10354 by `<grub/term.h>'.
10355 (keyboard_map_shift): Zero values that don't differ from their
10356 `keyboard_map' equivalents.
10357 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
10358 Discard the second scan code that is always sent by Caps lock.
10359 Only use `keyboard_map_shift' when it provides a non-zero value,
10360 otherwise fallback to `keyboard_map'.
10362 2008-02-04 Bean <bean123ch@gmail.com>
10364 * Makefile.in (enable_grub_fstest): New variable.
10366 * conf/common.rmk (grub_fstest_init.lst): New rule.
10367 (grub_fstest_init.h): Likewise.
10368 (grub_fstest_init.c): Likewise.
10369 (util/grub-fstest.c_DEPENDENCIES): New variable.
10370 (grub_fstest_SOURCES): Likewise.
10372 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
10374 * util/grub-fstest.c: New file.
10376 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10378 Make grub-setup handle a separate root device.
10380 * util/i386/pc/grub-setup.c (setup): Always open the root device,
10381 so that the root device can be compared with the destination
10383 When embedding the core image, if the root and destination devices
10384 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
10386 When not embedding, set ROOT_DRIVE to 0xFF.
10388 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10390 Add support for having a grub directory in a different drive. This
10391 is still only the data handling part.
10393 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
10394 (codestart): Save %dh in GRUB_ROOT_DRIVE.
10395 (grub_root_drive): New variable.
10397 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
10398 instead of GRUB_BOOT_DRIVE to construct a device name. Set
10399 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
10402 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
10404 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
10406 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
10408 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
10409 is bogus, because PXE booting does not specify any drive
10412 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
10413 am not sure if this is really correct.
10415 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
10416 is always identical to the boot drive when booting from a CD.
10418 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
10420 (root_drive): New variable.
10421 (real_start): Unconditionally set %dh to ROOT_DRIVE.
10422 (setup_sectors): Push %dx right after popping it, because %dh will
10424 (copy_buffer): Restore %dx.
10426 2008-02-03 Robert Millan <rmh@aybabtu.com>
10428 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
10429 use `cdboot.img' for cdrom images.
10431 2008-02-03 Robert Millan <rmh@aybabtu.com>
10433 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
10434 only setup gfxterm when `font' command has succeeded.
10436 2008-02-03 Robert Millan <rmh@aybabtu.com>
10438 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
10439 (grub_rescue_cmd_multiboot_loader)
10440 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
10442 2008-02-03 Pavel Roskin <proski@gnu.org>
10444 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
10445 %edx and %esi from stack only after grub_gate_a20() is called.
10446 grub_gate_a20() clobbers %edx.
10448 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
10450 * configure.ac (AC_INIT): Bumped to 1.96.
10452 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
10453 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
10454 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
10455 video/readers/png.c.
10457 2008-02-03 Bean <bean123ch@gmail.com>
10459 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
10460 (cdboot_img_SOURCES): New variable.
10461 (cdboot_img_ASFLAGS): New variable.
10462 (cdboot_img_LDFLAGS): New variable.
10464 * boot/i386/pc/cdboot.S: New file.
10466 * disk/i386/pc/biosdisk.c (cd_start): New variable.
10467 (cd_count): Likewise.
10468 (grub_biosdisk_get_drive): Add support for cd device.
10469 (grub_biosdisk_call_hook): Likewise.
10470 (grub_biosdisk_iterate): Likewise.
10471 (grub_biosdisk_open): Likewise.
10472 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
10473 (grub_biosdisk_rw): Support reading from cd device.
10474 (GRUB_MOD_INIT): Iterate cd devices.
10476 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
10477 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
10478 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
10480 * kern/i386/pc/init.c (make_install_device): Check for cd device.
10482 2008-02-02 Robert Millan <rmh@aybabtu.com>
10484 * commands/read.c: New file.
10485 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
10486 (read_mod_SOURCES): New variable.
10487 (read_mod_CFLAGS): Likewise.
10488 (read_mod_LDFLAGS): Likewise.
10490 2008-02-02 Robert Millan <rmh@aybabtu.com>
10492 * normal/main.c (grub_normal_execute): Check for `menu->size' when
10493 determining whether menu has to be displayed.
10495 2008-02-02 Marco Gerards <marco@gnu.org>
10497 * bus/pci.c: New file.
10499 * include/grub/pci.h: Likewise.
10501 * include/grub/i386/pc/pci.h: Likewise.
10503 * commands/lspci.c: Likewise.
10505 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
10507 (pci_mod_SOURCES): New variable.
10508 (pci_mod_CFLAGS): Likewise.
10509 (pci_mod_LDFLAGS): Likewise.
10510 (lspci_mod_SOURCES): Likewise.
10511 (lspci_mod_CFLAGS): Likewise.
10512 (lspci_mod_LDFLAGS): Likewise.
10514 2008-02-02 Bean <bean123ch@gmail.com>
10516 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
10517 (grub_ufs_get_file_block): Fix indirect block calculation problem.
10519 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
10520 (grub_xfs_btree_node): New structure.
10521 (grub_xfs_btree_root): New structure.
10522 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
10523 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
10524 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10525 (GRUB_XFS_EXTENT_SIZE): Likewise.
10526 (grub_xfs_read_block): Support btree format type.
10527 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
10528 Use directory block as basic unit.
10530 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
10532 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
10533 __attribute__ ((__regparm__ (1))).
10535 2008-02-01 Robert Millan <rmh@aybabtu.com>
10537 Correct a mistake in previous commit.
10539 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
10541 (normal/command.c_DEPENDENCIES): New variable.
10543 2008-02-01 Robert Millan <rmh@aybabtu.com>
10545 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
10547 (normal/command.c_DEPENDENCIES): New variable.
10548 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
10549 * conf/i386-ieee1275.rmk: Likewise.
10550 * conf/i386-linuxbios.rmk: Likewise.
10551 * conf/i386-pc.rmk: Likewise.
10552 * conf/sparc64-ieee1275.rmk: Likewise.
10553 * conf/powerpc-ieee1275.rmk: Likewise.
10554 (grub_emu_SOURCES): Add `fs/fshelp.c'.
10556 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
10558 2008-02-01 Robert Millan <rmh@aybabtu.com>
10560 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
10561 call at beginning of function.
10563 2008-01-31 Pavel Roskin <proski@gnu.org>
10565 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
10566 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
10567 (grub_mkrescue_SOURCES): Likewise.
10568 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
10570 2008-01-30 Robert Millan <rmh@aybabtu.com>
10572 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
10573 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
10574 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
10575 (grub_probe_SOURCES): ... to here.
10577 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
10578 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
10579 * conf/i386-ieee1275.rmk: Likewise.
10580 * conf/i386-linuxbios.rmk: Likewise.
10581 * conf/powerpc-ieee1275.rmk: Likewise.
10583 2008-01-30 Tristan Gingold <gingold@free.fr>
10585 * kern/rescue.c: Silently accept empty lines.
10587 2008-01-29 Bean <bean123ch@gmail.com>
10589 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
10590 (real_code_2): Code cleanup and change comment style.
10591 (move_memory): Avoid using 32-bit address mode.
10593 2008-01-29 Bean <bean123ch@gmail.com>
10595 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
10596 (png_mod_SOURCES): New variable.
10597 (png_mod_CFLAGS): Likewise.
10598 (png_mod_LDFLAGS): Likewise.
10600 * video/readers/png.c: New file.
10602 2008-01-28 Robert Millan <rmh@aybabtu.com>
10604 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
10605 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
10606 `ifndef GRUB_MOD_GAP' hack.
10607 * util/elf/grub-mkimage.c (add_segments): Likewise.
10609 2008-01-27 Robert Millan <rmh@aybabtu.com>
10611 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
10612 `GRUB_MOD_GAP' for platforms in which it's not defined.
10613 * util/elf/grub-mkimage.c (add_segments): Likewise.
10615 2008-01-27 Robert Millan <rmh@aybabtu.com>
10617 Get grub-emu to build again (including parallel builds).
10619 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
10621 (util/grub-emu.c_DEPENDENCIES): ... this, ...
10622 (normal/execute.c_DEPENDENCIES): ... this, ...
10623 (grub-emu_DEPENDENCIES): ... and this.
10625 * conf/i386-efi.rmk: Likewise.
10626 * conf/i386-linuxbios.rmk: Likewise.
10627 * conf/i386-ieee1275.rmk: Likewise.
10628 * conf/powerpc-ieee1275.rmk: Likewise.
10629 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
10631 2008-01-27 Robert Millan <rmh@aybabtu.com>
10633 * NEWS: Add a few items.
10635 2008-01-27 Robert Millan <rmh@aybabtu.com>
10637 Fix parallel builds with grub-emu. Based on earlier commit for
10638 grub-probe and grub-setup.
10640 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10641 (util/grub-emu.c_DEPENDENCIES): ... this.
10642 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10643 (util/grub-emu.c_DEPENDENCIES): ... this.
10644 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10645 (util/grub-emu.c_DEPENDENCIES): ... this.
10646 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10647 (util/grub-emu.c_DEPENDENCIES): ... this.
10648 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
10649 (util/grub-emu.c_DEPENDENCIES): ... this.
10651 2008-01-27 Pavel Roskin <proski@gnu.org>
10653 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
10654 to create a gap between _end and the modules added to the image
10655 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
10656 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
10657 * util/elf/grub-mkimage.c (add_segments): Likewise.
10659 2008-01-26 Pavel Roskin <proski@gnu.org>
10661 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
10662 just return an error.
10664 2008-01-26 Bean <bean123ch@gmail.com>
10666 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
10667 (grub_reiserfs_get_item): Save offset of the next item.
10668 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
10670 2008-01-25 Robert Millan <rmh@aybabtu.com>
10672 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
10673 make all filesystem sources appear together (possibly fixing omissions
10675 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10676 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10677 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10678 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10680 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
10682 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
10683 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
10684 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
10685 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
10687 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
10688 (probe): Add a sanity check to make sure of our ability to read
10689 requested files when probing for filesystem type.
10691 * genmk.rb: Update copyright year (2007).
10693 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
10694 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
10695 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
10696 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
10697 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
10698 : Remove function prototypes.
10700 2008-01-25 Robert Millan <rmh@aybabtu.com>
10702 Revert my previous commits (based on wrong assumption of how grub_errno
10705 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
10706 * kern/file.c (grub_file_open): Likewise.
10708 2008-01-24 Pavel Roskin <proski@gnu.org>
10710 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
10711 that hang if GRUB tries to setup colors.
10712 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
10713 colors for firmwares that don't support it.
10714 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
10715 Recognize Open Hack'Ware, set flags to work around its
10718 2008-01-24 Robert Millan <rmh@aybabtu.com>
10720 * kern/file.c (grub_file_open): Do not account previous failures of
10721 unrelated functions when grub_errno is checked for.
10722 Reported by Oleg Strikov.
10724 2008-01-24 Bean <bean123ch@gmail.com>
10726 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
10727 (grub_ufs_sblock): New member volume name.
10728 (grub_ufs_find_file): Fix string copy bug.
10729 (grub_ufs_label): Implement this function properly.
10731 * fs/hfs.c (grub_hfs_cnid_type): New enum.
10732 (grub_hfs_iterate_records): Use the correct file number for extents
10733 and catalog file. Fix problem in next index calculation.
10734 (grub_hfs_find_node): Replace recursive function call with loop.
10735 (grub_hfs_iterate_dir): Replace recursive function call with loop.
10737 2008-01-23 Robert Millan <rmh@aybabtu.com>
10739 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
10740 `<grub/symbol.h>' and `<grub/multiboot.h>'.
10741 (grub_multiboot2_real_boot): New function prototype.
10743 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
10744 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
10746 * kern/i386/ieee1275/init.c (grub_os_area_addr)
10747 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
10749 2008-01-23 Robert Millan <rmh@aybabtu.com>
10751 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
10752 #ifdef'ed out grub_printf().
10754 2008-01-23 Robert Millan <rmh@aybabtu.com>
10756 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
10757 grub_dprintf calls, since they make "debug=all" mode unusable.
10758 (grub_console_checkkey): Likewise.
10760 2008-01-23 Robert Millan <rmh@aybabtu.com>
10762 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
10763 `term/i386/pc/at_keyboard.c'.
10764 (pkglib_MODULES): Add `serial.mod'.
10765 (serial_mod_SOURCES): New variable.
10766 (serial_mod_CFLAGS): Likewise.
10767 (serial_mod_LDFLAGS): Likewise.
10769 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
10770 `<grub/powerpc/ieee1275/console.h>'.
10771 (grub_keyboard_controller_init): New function prototype.
10772 (grub_console_checkkey): Likewise.
10773 (grub_console_getkey): Likewise.
10775 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
10778 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
10779 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
10781 2008-01-23 Robert Millan <rmh@aybabtu.com>
10783 * kern/i386/pc/init.c (make_install_device): When memdisk image is
10784 present, "(memdisk)/boot/grub" becomes the default prefix.
10786 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
10787 a memdisk tarball with all the modules. Add --overlay=DIR option that
10788 allows users to overlay additional files into the image.
10790 2008-01-23 Robert Millan <rmh@aybabtu.com>
10792 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
10793 and `machine/memory.h'.
10794 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
10795 (_multiboot_mod_SOURCES): New variable.
10796 (_multiboot_mod_CFLAGS): Likewise.
10797 (_multiboot_mod_LDFLAGS): Likewise.
10798 (multiboot_mod_SOURCES): Likewise.
10799 (multiboot_mod_CFLAGS): Likewise.
10800 (multiboot_mod_LDFLAGS): Likewise.
10802 * include/grub/i386/ieee1275/loader.h: New file.
10804 * include/grub/i386/ieee1275/machine.h: Likewise.
10806 * include/grub/i386/ieee1275/memory.h: Likewise.
10808 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
10809 variable declaration.
10810 (grub_os_area_size): Likewise.
10812 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
10813 (grub_lower_mem, grub_upper_mem): New variables.
10814 (grub_stop_floppy): New function (just to make
10815 grub_multiboot2_real_boot() happy).
10817 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
10818 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
10819 (grub_stop): New function.
10820 Include `"../realmode.S"' and `"../loader.S"'.
10822 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
10823 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
10825 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
10826 rely on grub_multiboot2_real_boot() for final boot.
10828 2008-01-22 Robert Millan <rmh@aybabtu.com>
10830 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
10831 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
10832 device that doesn't look like an SD card.
10833 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
10834 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
10835 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
10836 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
10839 2008-01-22 Robert Millan <rmh@aybabtu.com>
10841 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
10842 avoid claiming over our own code.
10844 2008-01-22 Bean <bean123ch@gmail.com>
10846 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
10847 (jpeg_mod_SOURCES): New variable.
10848 (jpeg_mod_CFLAGS): Likewise.
10849 (jpeg_mod_LDFLAGS): Likewise.
10851 * video/readers/jpeg.c : New file.
10853 2008-01-22 Bean <bean123ch@gmail.com>
10855 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
10856 there are no more items.
10858 2008-01-21 Robert Millan <rmh@aybabtu.com>
10860 * kern/mm.c (grub_mm_init_region): Improve debug message.
10862 2008-01-21 Robert Millan <rmh@aybabtu.com>
10864 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
10865 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
10867 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
10869 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
10870 Indicates start of upper memory.
10871 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
10872 (generate_image): Abort when image size is big enough to corrupt
10875 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
10876 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
10877 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
10878 instead of hardcoding 0xA0000.
10879 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
10880 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
10881 instead of hardcoding 0xA0000.
10883 2008-01-21 Robert Millan <rmh@aybabtu.com>
10885 * disk/memdisk.c (memdisk_size): New variable.
10886 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
10888 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
10889 image to dynamic memory.
10890 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
10891 `memdisk_size'. Free memdisk block.
10893 2008-01-21 Robert Millan <rmh@aybabtu.com>
10895 Fix detection of very small filesystems (like tar).
10897 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
10898 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
10899 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
10900 a problem with this disk).
10902 2008-01-21 Robert Millan <rmh@aybabtu.com>
10904 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
10905 on grub_biosdisk_rw_standard() error.
10907 2008-01-21 Robert Millan <rmh@aybabtu.com>
10909 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
10911 * kern/elf.c: Likewise.
10912 * kern/ieee1275/ieee1275.c: Likewise.
10913 * kern/powerpc/ieee1275/openfw.c: Likewise.
10914 * term/ieee1275/ofconsole.c: Likewise.
10916 2008-01-21 Robert Millan <rmh@aybabtu.com>
10918 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
10920 * include/grub/kernel.h (grub_arch_memdisk_addr)
10921 (grub_arch_memdisk_size): Moved from here ...
10923 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
10924 (grub_arch_memdisk_size): ... to here.
10926 2008-01-21 Robert Millan <rmh@aybabtu.com>
10928 Mostly based on bugfix from Bean.
10930 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
10931 attribute with hook() parameter.
10932 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
10934 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
10935 attribute with hook() parameter.
10936 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
10939 2008-01-21 Robert Millan <rmh@aybabtu.com>
10941 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
10942 (pkglib_MODULES): Add `memdisk.mod'.
10943 (memdisk_mod_SOURCES): New variable.
10944 (memdisk_mod_CFLAGS): Likewise.
10945 (memdisk_mod_LDFLAGS): Likewise.
10947 * disk/memdisk.c: New file.
10949 * include/grub/disk.h (grub_disk_dev_id): Add
10950 `GRUB_DISK_DEVICE_MEMDISK_ID'.
10952 * include/grub/i386/pc/kernel.h
10953 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
10954 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
10955 (grub_kernel_image_size): New variable declaration.
10956 (grub_total_module_size): Likewise.
10957 (grub_memdisk_image_size): Likewise.
10959 * include/grub/i386/pc/memory.h
10960 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
10962 * include/grub/kernel.h: Include `<grub/symbol.h>'.
10963 (grub_arch_memdisk_addr): New variable declaration.
10964 (grub_arch_memdisk_size): Likewise.
10966 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
10967 (grub_arch_memdisk_size): Likewise.
10969 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
10970 (codestart): Replace hardcoded `0x100000' with
10971 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
10973 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
10974 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
10975 not NULL, append the contents of the file it refers to, at the end of
10976 the compressed kernel image. Initialize `grub_memdisk_image_size'
10977 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
10978 (options): Add "memdisk"|'m' option.
10979 (main): Parse --memdisk|-m option, and pass user-provided path as
10980 parameter to generate_image().
10982 2008-01-20 Robert Millan <rmh@aybabtu.com>
10984 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
10985 grub_dprintf() calls from here ...
10986 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
10988 2008-01-20 Robert Millan <rmh@aybabtu.com>
10990 Fix detection of "real mode" when /options/real-mode? doesn't exist.
10992 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
10994 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
10995 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
10996 `GRUB_IEEE1275_FLAG_REAL_MODE'.
10997 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
10999 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
11000 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
11002 2008-01-19 Robert Millan <rmh@aybabtu.com>
11004 Get rid of confusing function (superseded by
11005 `grub_ieee1275_get_integer_property')
11006 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11008 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11010 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11011 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11012 in native endianness from grub_ieee1275_get_integer_property().
11014 2008-01-19 Robert Millan <rmh@aybabtu.com>
11016 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11017 command after "shut-down", since implementations differ on which
11018 the command for halt is.
11020 2008-01-19 Robert Millan <rmh@aybabtu.com>
11022 * include/grub/i386/linuxbios/console.h: Add header protection.
11023 (grub_keyboard_controller_init): New function prototype.
11024 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11025 (KEYBOARD_COMMAND_READ): Likewise.
11026 (KEYBOARD_COMMAND_WRITE): Likewise.
11027 (KEYBOARD_SCANCODE_SET1): Likewise.
11028 (grub_keyboard_controller_write): New function.
11029 (grub_keyboard_controller_read): Likewise.
11030 (grub_keyboard_controller_init): Likewise.
11032 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11033 (grub_console_init): On coreboot/LinuxBIOS, call
11034 grub_keyboard_controller_init().
11036 2008-01-19 Robert Millan <rmh@aybabtu.com>
11038 PowerPC changes provided by Pavel Roskin.
11040 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11041 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11042 don't rely on cmain() doing it.
11043 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11044 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11046 2008-01-16 Robert Millan <rmh@aybabtu.com>
11048 * include/grub/i386/linuxbios/memory.h
11049 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11050 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11051 receive `table_header' as argument. Instead, probe for it in the
11052 known memory ranges where it can be present.
11053 (grub_available_iterate): Do not pass a fixed `table_header' address
11054 to grub_linuxbios_table_iterate().
11056 2008-01-15 Robert Millan <rmh@aybabtu.com>
11058 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
11059 * conf/i386-ieee1275.rmk: New file.
11060 * include/grub/i386/ieee1275/console.h: Likewise.
11061 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
11062 * include/grub/i386/ieee1275/kernel.h: Likewise.
11063 * include/grub/i386/ieee1275/time.h: Likewise.
11064 * kern/i386/ieee1275/init.c: Likewise.
11065 * kern/i386/ieee1275/startup.S: Likewise.
11067 2008-01-15 Robert Millan <rmh@aybabtu.com>
11069 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
11070 when pointers are 32-bit (but still do set it to one when they are
11073 2008-01-15 Robert Millan <rmh@aybabtu.com>
11075 * include/grub/ieee1275/ieee1275.h
11076 (grub_ieee1275_get_integer_property): New function prototype.
11078 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
11079 (grub_ieee1275_get_integer_property): New function. Wraps around
11080 grub_ieee1275_get_property() to handle endianness.
11082 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
11083 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
11085 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
11086 (grub_map): Likewise.
11087 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
11089 2008-01-15 Bean <bean123ch@gmail.com>
11091 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
11092 (grub_script_execute_cmdline): Reset grub_errno.
11094 * normal/main.c (read_config_file): Reset grub_errno.
11096 * normal/parse.y (script_init): New.
11097 (script): Move function and menuentry here.
11099 (command): Add delimiter at the end of command.
11100 (commands): Adjust to match the new command.
11101 (commandblock): Remove grub_script_lexer_record_start.
11102 (menuentry): Add grub_script_lexer_record_start, use the new commands.
11103 (if): Use the new commands.
11105 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
11107 2008-01-15 Robert Millan <rmh@aybabtu.com>
11109 * normal/menu.c (run_menu): Move timeout message from here ...
11110 (print_timeout): ... to here.
11111 (run_menu): Use print_timeout() once during initial draw to print
11112 the whole message, and again in every clock tick to update only
11113 the number of seconds.
11115 2008-01-15 Robert Millan <rmh@aybabtu.com>
11117 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
11118 actual size of `available' from grub_ieee1275_get_property(), and
11119 restrict parsing to that bound.
11121 2008-01-15 Christian Franke <franke@computer.org>
11123 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
11124 (argp_program_version): Remove variable.
11125 (argp_program_bug_address): Likewise.
11126 (options): Convert from struct argp_option to struct option.
11127 (struct arguments): Remove.
11128 (parse_opt): Remove.
11129 (usage): New function.
11130 (main): Replace struct args members by simple variables.
11131 Replace argp_parse() by getopt_long().
11132 Add switch to evaluate options.
11133 Add missing "(...)" around root_dev in prefix string.
11135 2008-01-14 Robert Millan <rmh@aybabtu.com>
11137 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
11138 for grub_ieee1275_exit(), in order to improve portability.
11140 2008-01-14 Robert Millan <rmh@aybabtu.com>
11142 * util/grub.d/10_linux.in (prefix): Define.
11143 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
11145 2008-01-13 Pavel Roskin <proski@gnu.org>
11147 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
11148 grub_errno if no errors have been detected.
11150 2008-01-12 Robert Millan <rmh@aybabtu.com>
11152 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
11153 (grub_util_get_dev_abstraction): New function prototype.
11155 * util/getroot.c: Include `<grub/util/getroot.h>'
11156 (grub_util_get_grub_dev): Move detection of abstraction type to ...
11157 (grub_util_get_dev_abstraction): ... here (new function).
11159 * util/grub-probe.c: Convert PRINT_* to an enum. Add
11160 `PRINT_ABSTRACTION'.
11161 (probe): Probe for abstraction type when requested.
11162 (main): Understand `--target=abstraction'.
11164 * util/i386/efi/grub-install.in: Add abstraction module to core
11165 image when it is found to be necessary.
11166 * util/i386/pc/grub-install.in: Likewise.
11167 * util/powerpc/ieee1275/grub-install.in: Likewise.
11169 * util/update-grub_lib.in (font_path): Return system path without
11170 converting to GRUB path.
11171 * util/update-grub.in: Convert system path returned by font_path()
11172 to a GRUB path. Use `grub-probe -t abstraction' to determine what
11173 abstraction module is needed for loading fonts (if any). Export
11174 that as `GRUB_PRELOAD_MODULES'.
11175 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
11178 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
11180 Remove some unused code from reiserfs.
11182 * fs/reiserfs.c (struct grub_reiserfs_key)
11183 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
11184 (struct grub_reiserfs_node_body): Removed.
11185 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11187 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11189 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11191 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11193 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11195 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
11197 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11198 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11199 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11201 2008-01-10 Robert Millan <rmh@aybabtu.com>
11203 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
11204 Determines if a file is garbage left by packaging systems, etc.
11205 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
11206 for processing /etc/grub.d scripts.
11207 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
11208 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
11209 as a condition for processing Linux images.
11211 2008-01-10 Pavel Roskin <proski@gnu.org>
11213 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
11214 to compile reiserfs.c on PowerPC.
11216 2008-01-10 Robert Millan <rmh@aybabtu.com>
11218 * kern/device.c (grub_device_iterate): Do not abort device iteration
11219 when one of the devices cannot be opened.
11220 * kern/disk.c (grub_disk_open): Do not account previous failures of
11221 unrelated functions when grub_errno is checked for.
11223 2008-01-08 Robert Millan <rmh@aybabtu.com>
11225 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
11226 `! grub_linux_is_bzimage', change order of address comparison to make
11227 it more intuitive, and improve "too big zImage" error message.
11229 2008-01-08 Robert Millan <rmh@aybabtu.com>
11231 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
11232 `$(update-grub_DATA)'.
11233 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
11236 2008-01-07 Robert Millan <rmh@aybabtu.com>
11238 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
11239 which instruction is modified by grub-setup during installation
11240 (since it wasn't obvious by only looking at this file).
11242 2008-01-07 Robert Millan <rmh@aybabtu.com>
11244 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
11245 listing actual TODO items.
11247 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11249 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
11251 (grub_reiserfs_get_key_offset): Likewise.
11252 (grub_reiserfs_set_key_offset): Likewise.
11253 (grub_reiserfs_set_key_type): Likewise.
11254 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
11256 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
11257 better to remove the bitfield version completely.
11259 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11261 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
11262 allocated from the heap, due to the fshelp implementation.
11263 (grub_reiserfs_dir): Free NODE, due to the same reason.
11265 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
11267 Mostly from Vincent Pelletier:
11269 * fs/reiserfs.c: New file.
11271 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
11272 (reiserfs_mod_SOURCES): New variable.
11273 (reiserfs_mod_CFLAGS): Likewise.
11274 (reiserfs_mod_LDFLAGS): Likewise.
11276 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
11277 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
11278 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
11281 2008-01-06 Robert Millan <rmh@aybabtu.com>
11283 * normal/color.c: Remove `<grub/env.h>'.
11285 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
11287 * include/grub/normal.h: Include <grub/env.h>.
11289 2008-01-05 Robert Millan <rmh@aybabtu.com>
11291 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
11292 usage example with `(hd0,1)'.
11293 Reported by Samuel Thibault.
11295 2008-01-05 Robert Millan <rmh@aybabtu.com>
11297 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
11298 (grub_linux_boot_zimage): Rename to ...
11299 (grub_linux_boot): ... this.
11300 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
11301 (grub_linux_boot_zimage): Conditionalize zImage copy.
11303 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
11304 (grub_linux_boot_bzimage): Remove prototype.
11305 (grub_linux_boot_zimage): Rename to ...
11306 (grub_linux_boot): ... this.
11308 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
11309 (grub_linux_boot): Remove function.
11311 2008-01-05 Robert Millan <rmh@aybabtu.com>
11313 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
11314 (grub_env_write_color_highlight): Likewise.
11315 (grub_wait_after_message): Likewise.
11317 * normal/color.c: New file.
11319 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11320 (normal_mod_DEPENDENCIES): Likewise.
11322 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11323 (normal_mod_DEPENDENCIES): Likewise.
11325 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11326 (normal_mod_DEPENDENCIES): Likewise.
11328 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
11329 (normal_mod_DEPENDENCIES): Likewise.
11331 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
11332 for waiting after a message is printed.
11333 * normal/main.c (read_config_file): Likewise.
11334 (grub_normal_init): Register grub_env_write_color_normal() and
11335 grub_env_write_color_highlight() hooks. Mark `color_normal' and
11336 `color_highlight' variables as global.
11338 * normal/menu.c (grub_wait_after_message): New function.
11339 (grub_color_menu_normal): New variable. Replaces ...
11340 (GRUB_COLOR_MENU_NORMAL): ... this macro.
11341 (grub_color_menu_highlight): New variable. Replaces ...
11342 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
11343 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
11344 `GRUB_TERM_COLOR_STANDARD'.
11345 (print_message): Use `grub_setcolorstate' to reload colors. Rename
11346 `normal_code' and `highlight_code' to `old_color_normal' and
11347 `old_color_highlight', respectively.
11348 (grub_menu_init_page): Update colors when drawing the menu, based on
11349 `menu_color_normal' and `menu_color_highlight' variables.
11350 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
11351 a message is printed.
11353 2008-01-05 Robert Millan <rmh@aybabtu.com>
11355 * kern/env.c (grub_env_context_open): Propagate hooks for global
11356 variables to new context.
11358 * kern/main.c (grub_set_root_dev): Export `root' variable.
11360 2008-01-05 Robert Millan <rmh@aybabtu.com>
11362 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
11363 discs unconditionally, since udev and others have options to provide
11366 2008-01-05 Robert Millan <rmh@aybabtu.com>
11368 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
11370 2008-01-04 Christian Franke <franke@computer.org>
11372 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
11375 2008-01-03 Pavel Roskin <proski@gnu.org>
11377 * kern/i386/linuxbios/init.c: Put "void" to all function
11378 declarations with no arguments.
11379 * kern/powerpc/ieee1275/init.c: Likewise.
11380 * term/i386/pc/at_keyboard.c: Likewise.
11381 * term/i386/pc/vga_text.c: Likewise.
11382 * util/grub-mkdevicemap.c: Likewise.
11384 2008-01-02 Robert Millan <rmh@aybabtu.com>
11386 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
11387 message when loaded image is out of bounds.
11388 (grub_multiboot_load_elf64): Likewise.
11390 2008-01-02 Pavel Roskin <proski@gnu.org>
11392 * util/grub.d/10_linux.in: Try version without ".old" when
11393 looking for initrd. It's better to use initrd from the newer
11394 kernel of the same version than no initrd at all.
11396 2008-01-01 Robert Millan <rmh@aybabtu.com>
11398 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
11400 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
11402 * include/grub/video.h: Added grub_video_unmap_color and
11403 grub_video_get_active_render_target.
11404 (grub_video_adapter): Added unmap_color and get_active_render_target.
11406 * video/video.c: Added grub_video_unmap_color and
11407 grub_video_get_active_render_target.
11408 (grub_video_get_info): Changed method to accept NULL pointer as an
11409 argument to allow detection of active video adapter.
11411 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
11412 grub_video_vbe_unmap_color_int.
11413 Added grub_video_vbe_unmap_color and
11414 grub_video_vbe_get_active_render_target.
11415 (grub_video_vbe_adapter): Added unmap_color and
11416 get_active_render_target.
11418 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
11419 with grub_video_vbe_unmap_color_int.
11421 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
11422 (DEFAULT_NORMAL_COLOR): Likewise.
11423 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
11424 (DEFAULT_FG_COLOR): Removed.
11425 (DEFAULT_BG_COLOR): Likewise.
11426 (DEFAULT_CURSOR_COLOR): Changed value.
11427 (grub_virtual_screen): Added standard_color_setting,
11428 normal_color_setting, highlight_color_setting and term_color.
11429 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
11430 (bitmap_width): Added.
11431 (bitmap_height): Likewise.
11432 (bitmap): Likewise.
11433 (set_term_color): Likewise.
11434 (grub_virtual_screen_setup): Changed to use new terminal coloring
11436 (grub_gfxterm_init): Added init for bitmap.
11437 (grub_gfxterm_fini): Added destroy for bitmap.
11438 (redraw_screen_rect): Updated to use background bitmap and new
11440 (scroll_up): Added optimization for case when there is no bitmap.
11441 (grub_gfxterm_cls): Fixed to use correct background color.
11442 (grub_virtual_screen_setcolorstate): Changed to use new terminal
11444 (grub_virtual_screen_setcolor): Likewise.
11445 (grub_virtual_screen_getcolor): Added.
11446 (grub_gfxterm_background_image_cmd): Likewise.
11447 (grub_video_term): Added setcolor and getcolor.
11448 (MOD_INIT): Added registration of background_image command.
11449 (MOD_TERM): Added unregistration for background_image command.
11451 2007-12-30 Pavel Roskin <proski@gnu.org>
11453 * loader/multiboot_loader.c: Fix multiboot command
11454 unregistration. Fix all typos in the word "multiboot".
11456 2007-12-29 Pavel Roskin <proski@gnu.org>
11458 * util/grub.d/10_linux.in: Refactor search for initrd. Add
11459 support for initrd names used in Fedora.
11461 2007-12-26 Bean <bean123ch@gmail.com>
11463 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
11464 (cpio_mod_SOURCES): New variable.
11465 (cpio_mod_CFLAGS): Likewise.
11466 (cpio_mod_LDFLAGS): Likewise.
11468 * fs/cpio.c: New file.
11470 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
11472 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11474 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11476 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11478 2007-12-25 Robert Millan <rmh@aybabtu.com>
11480 * include/grub/term.h (struct grub_term): Add `getcolor' function.
11481 (grub_getcolor): New function.
11483 * kern/term.c (grub_getcolor): New function.
11484 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
11485 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
11486 (print_entry): Set normal and highlight colors to
11487 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
11488 respectively, before printing and restore them to old
11490 (grub_menu_init_page): Likewise. Fill an additional colored space
11491 that would otherwise be left blank.
11493 * term/efi/console.c (grub_console_getcolor): New function.
11494 (struct grub_console_term.getcolor): New variable.
11495 * term/i386/pc/console.c (grub_console_getcolor): New function.
11496 (struct grub_console_term.getcolor): New variable.
11497 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
11498 (struct grub_console_term.getcolor): New variable.
11500 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
11501 (struct grub_console_term.setcolor): Remove variable.
11502 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
11503 (struct grub_console_term.setcolor): Remove variable.
11504 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
11505 (struct grub_console_term.setcolor): Remove variable.
11506 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
11507 (struct grub_console_term.setcolor): Remove variable.
11509 2007-12-25 Robert Millan <rmh@aybabtu.com>
11511 * configure.ac: Search for possible unifont.hex locations, and
11512 define UNIFONT_HEX if found.
11514 * Makefile.in (UNIFONT_HEX): Define variable.
11515 (DATA): Rename to ...
11516 (PKGLIB): ... this. Update all users.
11517 (PKGDATA): New variable.
11518 (pkgdata_IMAGES): Rename to ...
11519 (pkglib_IMAGES): ... this. Update all users.
11520 (pkgdata_MODULES): Rename to ...
11521 (pkglib_MODULES): ... this. Update all users.
11522 (pkgdata_PROGRAMS): Rename to ...
11523 (pkglib_PROGRAMS): ... this. Update all users.
11524 (pkgdata_DATA): Rename to ...
11525 (pkglib_DATA): ... this. Update all users.
11526 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
11527 (unicode.pff, ascii.pff): New rules.
11528 (all-local): Add `$(PKGDATA)' dependency.
11529 (install-local): Process `$(PKGDATA)'.
11531 * util/update-grub_lib.in (font_path): Search for *.pff files in
11532 a few more locations, including `${pkgdata}'.
11534 2007-12-23 Robert Millan <rmh@aybabtu.com>
11536 Patch from Bean <bean123ch@gmail.com>:
11537 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
11540 2007-12-21 Bean <bean123ch@gmail.com>
11542 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
11543 (ntfscomp_mod_SOURCES): New variable.
11544 (ntfscomp_mod_CFLAGS): Likewise.
11545 (ntfscomp_mod_LDFLAGS): Likewise.
11547 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
11548 (grub_probe_SOURCES): Likewise.
11549 (grub_emu_SOURCES): Likewise.
11551 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
11552 (grub_emu_SOURCES): Likewise.
11554 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
11555 (grub_emu_SOURCES): Likewise.
11557 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
11558 (grub_emu_SOURCES): Likewise.
11560 * fs/ntfs.c (grub_ntfscomp_func): New variable.
11561 (read_run_list): Renamed to grub_ntfs_read_run_list.
11562 (decomp_nextvcn): Moved to ntfscomp.c.
11563 (decomp_getch): Likewise.
11564 (decomp_get16): Likewise.
11565 (decomp_block): Likewise.
11566 (read_block): Likewise.
11567 (read_data): Partially moved to ntfscomp.c.
11568 (fixup): Change unsigned to grub_uint16_t.
11569 (read_mft): Change unsigned long to grub_uint32_t.
11570 (read_attr): Likewise.
11571 (read_data): Likewise.
11572 (read_run_data): Likewise.
11573 (read_run_list): Likewise.
11574 (read_mft): Likewise.
11576 * fs/ntfscomp.c: New file.
11578 * include/grub/ntfs.h: New file.
11580 2007-12-16 Robert Millan <rmh@aybabtu.com>
11582 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
11583 IDE disk check, since Linux is known to support 20 IDE disks.
11584 Reported by Colin Watson.
11586 2007-12-15 Bean <bean123ch@gmail.com>
11588 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
11589 (lnxboot_img_SOURCES): New variable.
11590 (lnxboot_img_ASFLAGS): Likewise.
11591 (lnxboot_img_LDFLAGS): Likewise.
11593 * boot/i386/pc/lnxboot.S: New file.
11595 2007-11-24 Pavel Roskin <proski@gnu.org>
11597 * configure.ac: Test if '--build-id=none' is supported by the
11598 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
11599 objcopy to generate incorrect binary files (binutils
11600 2.17.50.0.18-1 as shipped by Fedora 8).
11601 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
11602 linking, so that build ID doesn't break the test.
11604 2007-11-24 Pavel Roskin <proski@gnu.org>
11606 * include/grub/i386/time.h: use "void" in the argument list
11607 of grub_cpu_idle().
11608 * include/grub/powerpc/time.h: Likewise.
11609 * include/grub/sparc64/time.h: Likewise.
11611 2007-11-18 Christian Franke <franke@computer.org>
11613 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
11614 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
11615 This fixes the problem that function keys did not work in grub-emu.
11617 2007-11-18 Christian Franke <franke@computer.org>
11619 * disk/host.c (grub_host_open): Remove attribute unused from
11620 name parameter. Add check for "host". This fixes the problem
11621 that grub-emu does not find partitions.
11623 2007-11-18 Christian Franke <franke@computer.org>
11625 * util/hostfs.c (is_dir): New function.
11626 (grub_hostfs_dir): Handle missing dirent.d_type case.
11627 (grub_hostfs_read): Add missing fseek().
11628 (grub_hostfs_label): Clear label pointer. This fixes a crash
11629 of grub-emu on "ls (host)".
11631 2007-11-18 Christian Franke <franke@computer.org>
11633 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
11634 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
11635 to 64 bit boundary by default.
11637 2007-11-18 Bean <bean123ch@gmail.com>
11639 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
11640 (hexdump_mod_SOURCES): New variable.
11641 (hexdump_mod_CFLAGS): Likewise.
11642 (hexdump_mod_LDFLAGS): Likewise.
11644 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11646 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11648 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11650 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
11652 * include/grub/hexdump.h: New file.
11654 * commands/hexdump.c: New file.
11656 2007-11-10 Robert Millan <rmh@aybabtu.com>
11658 * commands/i386/pc/play.c (beep_off): Switch order of arguments
11659 in grub_outb() calls.
11660 (beep_on): Likewise.
11662 2007-11-10 Christian Franke <franke@computer.org>
11664 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
11665 (grub_menu_run): Likewise.
11667 2007-11-10 Robert Millan <rmh@aybabtu.com>
11669 * include/grub/i386/efi/machine.h: New file.
11670 * include/grub/i386/linuxbios/machine.h: Likewise.
11671 * include/grub/i386/pc/machine.h: Likewise.
11672 * include/grub/powerpc/ieee1275/machine.h: Likewise.
11673 * include/grub/sparc64/ieee1275/machine.h: Likewise.
11675 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
11676 (serial_hw_io_addr): New variable.
11677 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
11678 instead of `(unsigned short *) 0x400'.
11680 2007-11-10 Bean <bean123ch@gmail.com>
11682 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
11684 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
11686 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
11687 (vga_mod_SOURCES): Added.
11688 (vga_mod_CFLAGS): Likewise.
11689 (vga_mod_LDFLAGS): Likewise.
11691 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
11693 (set_map_mask): Likewise.
11694 (set_read_map): Likewise.
11695 (set_read_address): Likewise.
11696 (vga_font): Removed variable.
11697 (get_vga_glyph): Removed function.
11698 (invalidate_char): Likewise.
11699 (write_char): Changed to use grub_font_get_glyph() for font
11701 (grub_vga_putchar): Likewise.
11702 (grub_vga_getcharwidth): Likewise.
11704 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
11706 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
11708 (pxeboot_img_LDFLAGS): Likewise.
11709 (diskboot_img_LDFLAGS): Likewise.
11710 (kernel_img_LDFLAGS): Likewise.
11712 2007-11-06 Robert Millan <rmh@aybabtu.com>
11714 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
11715 in grub_outb() calls.
11716 (serial_hw_init): Likewise.
11718 2007-11-05 Robert Millan <rmh@aybabtu.com>
11720 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
11721 spaces. Skip non-regular files.
11723 2007-11-05 Robert Millan <rmh@aybabtu.com>
11725 * kern/disk.c (grub_disk_firmware_fini)
11726 (grub_disk_firmware_is_tainted): New variables.
11728 * include/grub/disk.h (grub_disk_firmware_fini)
11729 (grub_disk_firmware_is_tainted): Likewise.
11731 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
11732 (grub_disk_biosdisk_fini): ... to here.
11733 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
11734 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
11735 is set. Register grub_disk_biosdisk_fini() in
11736 `grub_disk_firmware_fini'.
11738 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
11739 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
11740 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
11741 to finish existing firmware disk interface.
11743 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
11744 (ata_mod_SOURCES): New variable.
11745 (ata_mod_CFLAGS): Likewise.
11746 (ata_mod_LDFLAGS): Likewise.
11748 2007-11-05 Robert Millan <rmh@aybabtu.com>
11750 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
11751 (grub_ata_wait): Reimplement using grub_millisleep().
11753 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
11754 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
11756 2007-11-03 Marco Gerards <marco@gnu.org>
11758 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
11759 (CRTC_ADDR_PORT): New macro.
11760 (CRTC_DATA_PORT): Likewise.
11761 (CRTC_CURSOR): Likewise.
11762 (CRTC_CURSOR_ADDR_HIGH): Likewise.
11763 (CRTC_CURSOR_ADDR_LOW): Likewise.
11764 (update_cursor): New function.
11765 (grub_console_real_putchar): Call `update_cursor'.
11766 (grub_console_gotoxy): Likewise.
11767 (grub_console_cls): Set the default color when clearing the
11769 (grub_console_setcursor): Implemented.
11771 2007-11-03 Marco Gerards <marco@gnu.org>
11773 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
11775 (grub_ata_pio_write): Likewise.
11777 (grub_atapi_identify): Wait after issuing an ATA command.
11778 (grub_atapi_packet): Likewise.
11779 (grub_ata_identify): Likewise.
11780 (grub_ata_readwrite): Likewise.
11782 2007-11-03 Marco Gerards <marco@gnu.org>
11784 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
11785 (grub_ata_pio_write): Likewise.
11786 (grub_ata_readwrite): Use `grub_error', instead of
11787 returning `grub_errno'.
11789 2007-11-03 Marco Gerards <marco@gnu.org>
11791 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
11792 grub_ata_pio_write once for every single sector, instead of for
11795 2007-10-31 Robert Millan <rmh@aybabtu.com>
11797 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
11799 * conf/i386-linuxbios.rmk: New file.
11801 * kern/i386/pc/hardware.c: Likewise.
11802 * term/i386/pc/at_keyboard.c: Likewise.
11803 * term/i386/pc/vga_text.c: Likewise.
11805 * include/grub/i386/linuxbios/boot.h: Likewise.
11806 * include/grub/i386/linuxbios/console.h: Likewise.
11807 * include/grub/i386/linuxbios/init.h: Likewise.
11808 * include/grub/i386/linuxbios/kernel.h: Likewise.
11809 * include/grub/i386/linuxbios/loader.h: Likewise.
11810 * include/grub/i386/linuxbios/memory.h: Likewise.
11811 * include/grub/i386/linuxbios/serial.h: Likewise.
11812 * include/grub/i386/linuxbios/time.h: Likewise.
11814 * kern/i386/linuxbios/init.c: Likewise.
11815 * kern/i386/linuxbios/startup.S: Likewise.
11816 * kern/i386/linuxbios/table.c: Likewise.
11818 2007-10-31 Marco Gerards <marco@gnu.org>
11820 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
11821 (ata_mod_SOURCES): New variable.
11822 (ata_mod_CFLAGS): Likewise.
11823 (ata_mod_LDFLAGS): Likewise.
11825 * disk/ata.c: New file.
11827 * include/grub/disk.h (grub_disk_dev_id): Add
11828 `GRUB_DISK_DEV_ATA_ID'.
11830 2007-10-31 Robert Millan <rmh@aybabtu.com>
11832 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
11833 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
11835 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
11836 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
11838 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
11841 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
11843 2007-10-27 Robert Millan <rmh@aybabtu.com>
11845 * include/grub/types.h (ULONG_MAX): Define macro.
11847 2007-10-22 Robert Millan <rmh@aybabtu.com>
11849 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
11851 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
11853 2007-10-22 Robert Millan <rmh@aybabtu.com>
11855 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
11856 (pkgdata_MODULES): Add `biosdisk.mod'.
11857 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
11860 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
11861 (grub_biosdisk_init): Replace with ...
11862 (GRUB_MOD_INIT(biosdisk)): ... this.
11863 (grub_biosdisk_fini): Replace with ...
11864 (GRUB_MOD_FINI(biosdisk)): ... this.
11866 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
11867 (grub_machine_init): Remove call to grub_biosdisk_init().
11868 (grub_machine_fini): Remove call to grub_machine_fini().
11870 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
11872 2007-10-22 Robert Millan <rmh@aybabtu.com>
11874 * include/grub/time.h: New file.
11875 * include/grub/i386/time.h: Likewise.
11876 * include/grub/powerpc/time.h: Likewise.
11877 * include/grub/sparc64/time.h: Likewise.
11879 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
11881 (KERNEL_MACHINE_TIME_HEADER): ... this.
11882 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
11884 (KERNEL_MACHINE_TIME_HEADER): ... this.
11885 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
11887 (KERNEL_MACHINE_TIME_HEADER): ... this.
11889 * kern/i386/efi/init.c: Include `<grub/time.h>'.
11890 (grub_millisleep): New function.
11891 * kern/i386/pc/init.c: Include `<grub/time.h>'.
11892 (grub_millisleep): New function.
11893 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
11894 Remove `grub/machine/time.h' include.
11895 (grub_millisleep): New function.
11896 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
11897 Remove `grub/machine/time.h' include.
11898 (grub_millisleep): New function.
11900 * include/grub/misc.h (grub_div_roundup): New function.
11902 * kern/misc.c: Include `<grub/time.h>'.
11903 (grub_millisleep_generic): New function.
11905 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
11907 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
11909 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
11910 `machine/time.h'. Add `time.h'.
11911 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
11913 2007-10-21 Robert Millan <rmh@aybabtu.com>
11915 * include/grub/misc.h (grub_max): New function.
11917 2007-10-21 Robert Millan <rmh@aybabtu.com>
11919 * util/misc.c (grub_util_info): Call fflush() before returning.
11921 2007-10-20 Robert Millan <rmh@aybabtu.com>
11923 * genmk.rb (Image): Copy `extra_flags' from here ...
11924 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
11926 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
11927 to `argc' and `args' arguments.
11929 2007-10-17 Robert Millan <rmh@aybabtu.com>
11931 * kern/i386/loader.S: New file.
11933 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
11934 * kern/i386/loader.S (grub_linux_prot_size)... to here.
11935 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
11936 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
11937 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
11938 * kern/i386/loader.S (grub_linux_real_addr)... to here.
11939 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
11940 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
11941 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
11942 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
11943 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
11944 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
11945 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
11946 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
11948 * kern/i386/realmode.S: New file.
11950 * kern/i386/pc/startup.S (protstack): Moved from here ...
11951 * kern/i386/realmode.S (protstack)... to here.
11952 * kern/i386/pc/startup.S (gdt): Moved from here ...
11953 * kern/i386/realmode.S (gdt)... to here.
11954 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
11955 * kern/i386/realmode.S (prot_to_real)... to here.
11957 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
11958 `kern/i386/realmode.S'.
11960 2007-10-17 Robert Millan <rmh@aybabtu.com>
11962 * include/grub/i386/loader.h: New file.
11964 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
11965 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
11966 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
11967 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
11968 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
11969 * include/grub/i386/loader.h (grub_linux_prot_size)
11970 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
11971 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
11972 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
11973 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
11975 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
11977 2007-10-15 Robert Millan <rmh@aybabtu.com>
11979 * normal/misc.c (grub_normal_print_device_info): Do not probe for
11980 filesystem when dev->disk is unset.
11981 Do probe for filesystem even when dev->disk->has_partitions is set.
11982 In case a filesystem is found, always report it.
11983 In case it isn't, if dev->disk->has_partitions is set, report that
11984 a partition table was found instead of reporting that no filesystem
11985 could be identified.
11987 2007-10-12 Robert Millan <rmh@aybabtu.com>
11989 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
11990 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
11992 * include/grub/types.h (grub_host_to_target16): New macro.
11993 (grub_host_to_target32): Likewise.
11994 (grub_host_to_target64): Likewise.
11995 (grub_target_to_host16): Likewise.
11996 (grub_target_to_host32): Likewise.
11997 (grub_target_to_host64): Likewise.
11999 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12000 Renamed from to ...
12001 (GRUB_MOD_ALIGN): ...this. Update all users.
12003 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12004 grub_host_to_target32.
12005 Replace grub_be_to_cpu32 with grub_target_to_host32.
12006 (load_modules): Likewise.
12007 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12008 Replace grub_be_to_cpu32 with grub_target_to_host32.
12009 Replace grub_cpu_to_be16 with grub_host_to_target16.
12010 Replace grub_cpu_to_be32 grub_host_to_target32.
12012 2007-10-12 Robert Millan <rmh@aybabtu.com>
12014 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12015 * util/elf/grub-mkimage.c: ... here.
12017 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12018 `util/powerpc/ieee1275/grub-mkimage.c'.
12020 2007-10-07 Robert Millan <rmh@aybabtu.com>
12022 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12023 and make it easier to figure out.
12024 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12025 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12026 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12027 leave us with less than HEAP_MIN_SIZE total heap.
12028 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12030 2007-10-03 Robert Millan <rmh@aybabtu.com>
12032 * include/grub/i386/io.h: New file.
12033 * commands/i386/pc/play.c (inb): Removed.
12035 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12037 * term/i386/pc/serial.c (inb): Removed.
12039 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12041 * term/i386/pc/vga.c (inb): Removed.
12043 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12046 2007-10-02 Robert Millan <rmh@aybabtu.com>
12048 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12050 Reported by Marcin Kurek.
12052 2007-09-07 Robert Millan <rmh@aybabtu.com>
12054 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
12055 SmartFirmware version updates (as released by Sven Luther), and avoid
12056 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
12057 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
12060 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12062 From Hitoshi Ozeki:
12063 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
12064 when merging two regions.
12066 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12068 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
12069 * normal/completion.c (grub_normal_do_completion): Likewise.
12070 Reported by Hitoshi Ozeki.
12072 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12074 Do not use devices at boot in chainloading.
12076 * loader/i386/pc/chainloader.c (boot_drive): New variable.
12077 (boot_part_addr): Likewise.
12078 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
12079 with BOOT_DRIVE and BOOT_PART_ADDR.
12080 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
12081 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
12083 2007-08-29 Robert Millan <rmh@aybabtu.com>
12085 Patch from Simon Peter <dn.tlp@gmx.net>:
12086 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
12087 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
12088 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
12089 util/i386/pc/grub-setup.c_DEPENDENCIES.
12090 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
12091 util/grub-probe.c_DEPENDENCIES.
12092 * conf/powerpc-ieee1275.rmk: Likewise.
12094 2007-08-28 Robert Millan <rmh@aybabtu.com>
12096 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
12097 to tell grub-mkdevicemap how to name devices.
12098 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
12101 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
12102 util/i386/get_disk_name.c.
12103 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
12104 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
12105 util/ieee1275/get_disk_name.c.
12107 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
12109 * DISTLIST: Add util/i386/get_disk_name.c and
12110 util/ieee1275/get_disk_name.c.
12112 * util/grub-mkdevicemap.c: Replace device naming logic with
12113 grub_util_get_disk_name() calls.
12115 2007-08-20 Robert Millan <rmh@aybabtu.com>
12117 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
12118 (so that it works for both plural and singular quantities).
12120 2007-08-05 Robert Millan <rmh@aybabtu.com>
12122 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
12123 so that [xz] isn't taken into account when determining order.
12125 2007-08-02 Marco Gerards <marco@gnu.org>
12127 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
12128 `include/multiboot2.h', `include/grub/elfload.h',
12129 `include/multiboot.h', `include/grub/multiboot.h',
12130 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
12131 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
12132 `kern/elf.c', `loader/multiboot_loader.c',
12133 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
12134 `loader/i386/pc/multiboot2.c',
12135 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
12136 `util/i386/pc/grub-mkrescue.in'. Remove
12137 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
12138 `include/grub/i386/pc/util/biosdisk.h' and
12139 `include/grub/powerpc/ieee1275/multiboot.h'.
12141 2007-08-02 Bean <bean123ch@gmail.com>
12143 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
12144 (ntfs_mod_SOURCES): New variable.
12145 (ntfs_mod_CFLAGS): Likewise.
12146 (ntfs_mod_LDFLAGS): Likewise.
12148 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
12149 (grub_probe_SOURCES): Likewise.
12150 (grub_emu_SOURCES): Likewise.
12152 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12153 (grub_emu_SOURCES): Likewise.
12155 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12156 (grub_emu_SOURCES): Likewise.
12158 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
12160 * fs/ntfs.c: New file.
12162 2007-08-02 Bean <bean123ch@gmail.com>
12164 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
12166 * file.h (grub_file): Likewise.
12168 * fshelp.h (grub_fshelp_read_file): Likewise.
12170 * util/i386/pc/grub-setup.c (setup): Likewise.
12171 (save_first_sector): Likewise.
12172 (save_blocklists): Likewise.
12174 * fs/affs.c (grub_affs_read_file): Likewise.
12176 * fs/ext2.c (grub_ext2_read_file): Likewise.
12178 * fs/fat.c (grub_fat_read_data): Likewise.
12180 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
12182 * fs/hfs.c (grub_hfs_read_file): Likewise.
12184 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12186 * fs/jfs.c (grub_jfs_read_file): Likewise.
12188 * fs/minix.c (grub_minix_read_file): Likewise.
12190 * fs/sfs.c (grub_sfs_read_file): Likewise.
12192 * fs/ufs.c (grub_ufs_read_file): Likewise.
12194 * fs/xfs.c (grub_xfs_read_file): Likewise.
12196 * command/blocklist.c (read_blocklist): Likewise.
12197 (print_blocklist): Likewise.
12199 2007-08-02 Marco Gerards <marco@gnu.org>
12201 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
12204 * disk/host.c: New file.
12206 * util/hostfs.c: Likewise.
12208 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
12209 return `GRUB_ERR_BAD_FS'.
12210 * fs/sfs.c (grub_sfs_mount): Likewise.
12211 * fs/xfs.c (grub_xfs_mount): Likewise.
12213 * include/grub/disk.h (enum grub_disk_dev_id): Add
12214 `GRUB_DISK_DEVICE_HOST_ID'.
12216 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
12218 2007-07-24 Jerone Young <jerone@gmail.com>
12220 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
12221 modules for compilation.
12222 * conf/powerpc-ieee1275.rmk: Likewise.
12224 * include/multiboot.h: Move multiboot definitions to one file. Rename
12225 many definitions to not get grub specific.
12226 * include/multiboot2.h: Create header with multiboot 2 definitions.
12227 * include/grub/multiboot.h: Header for grub specific function
12228 prototypes and definitions.
12229 * include/grub/multiboot2.h: Likewise.
12230 * include/grub/multiboot_loader.h: Likewise.
12231 * include/grub/i386/pc/multiboot.h: Removed.
12232 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
12234 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
12235 and 2 to allow for one multiboot and module commands.
12236 * loader/multiboot2.c: Add multiboot2 functionality.
12237 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
12238 and definition names.
12239 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
12241 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
12242 ieee1275 specific multiboot2 code.
12244 * kern/i386/pc/startup.S: Change headers and definition names for
12245 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
12247 2007-07-22 Robert Millan <rmh@aybabtu.com>
12249 * geninitheader.sh: Process file specified in first parameter rather
12250 than hardcoding grub_modules_init.lst.
12251 * geninit.sh: Likewise. Also, construct header name dynamically rather
12252 than hardcoding grub_modules_init.h.
12254 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
12255 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
12256 grub_probe_init.[ch] and grub_setup_init.[ch].
12258 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
12259 grub_modules_init.h with grub_emu_init.h.
12260 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
12261 grub_probe_init.[ch] files.
12262 * conf/i386-efi.rmk: Likewise.
12263 * conf/i386-pc.rmk: Likewise.
12264 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
12265 grub_setup_init.[ch] files.
12267 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
12268 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
12269 to initialize modules rather than a list of hardcoded functions.
12270 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
12271 grub_init_all() to initialize modules rather than a list of hardcoded
12274 2007-07-22 Robert Millan <rmh@aybabtu.com>
12276 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12277 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
12279 2007-07-22 Robert Millan <rmh@aybabtu.com>
12281 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12282 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
12283 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
12284 flag when running on SmartFirmware.
12285 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
12286 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
12289 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12290 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
12291 rather than decreasing it.
12293 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
12294 there's not enough space to do it, fail in the same way as when it
12295 can't be done because there are no partitions.
12297 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
12298 when nvsetenv failed.
12300 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12302 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
12303 because this rule is automatically generated.
12304 (grub-mkrescue): Removed for the same reason as above.
12306 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
12308 Migrate to GNU General Public License Version 3.
12310 * COPYING: Replaced with the plain text version of GPLv3.
12312 * config.guess: Updated from gnulib.
12313 * config.sub: Likewise.
12315 * geninit.sh: Output a GPLv3 copyright notice.
12316 * geninitheader.sh: Likewise.
12317 * genmodsrc.sh: Likewise.
12318 * gensymlist.sh.in: Likewise.
12320 * boot/i386/pc/boot.S: Upgraded to GPLv3.
12321 * boot/i386/pc/diskboot.S: Likewise.
12322 * boot/i386/pc/pxeboot.S: Likewise.
12323 * commands/blocklist.c: Likewise.
12324 * commands/boot.c: Likewise.
12325 * commands/cat.c: Likewise.
12326 * commands/cmp.c: Likewise.
12327 * commands/configfile.c: Likewise.
12328 * commands/echo.c: Likewise.
12329 * commands/help.c: Likewise.
12330 * commands/ls.c: Likewise.
12331 * commands/search.c: Likewise.
12332 * commands/terminal.c: Likewise.
12333 * commands/test.c: Likewise.
12334 * commands/videotest.c: Likewise.
12335 * commands/i386/cpuid.c: Likewise.
12336 * commands/i386/pc/halt.c: Likewise.
12337 * commands/i386/pc/play.c: Likewise.
12338 * commands/i386/pc/reboot.c: Likewise.
12339 * commands/i386/pc/vbeinfo.c: Likewise.
12340 * commands/i386/pc/vbetest.c: Likewise.
12341 * commands/ieee1275/halt.c: Likewise.
12342 * commands/ieee1275/reboot.c: Likewise.
12343 * commands/ieee1275/suspend.c: Likewise.
12344 * disk/loopback.c: Likewise.
12345 * disk/lvm.c: Likewise.
12346 * disk/raid.c: Likewise.
12347 * disk/efi/efidisk.c: Likewise.
12348 * disk/i386/pc/biosdisk.c: Likewise.
12349 * disk/ieee1275/ofdisk.c: Likewise.
12350 * font/manager.c: Likewise.
12351 * fs/affs.c: Likewise.
12352 * fs/ext2.c: Likewise.
12353 * fs/fat.c: Likewise.
12354 * fs/fshelp.c: Likewise.
12355 * fs/hfs.c: Likewise.
12356 * fs/hfsplus.c: Likewise.
12357 * fs/iso9660.c: Likewise.
12358 * fs/jfs.c: Likewise.
12359 * fs/minix.c: Likewise.
12360 * fs/sfs.c: Likewise.
12361 * fs/ufs.c: Likewise.
12362 * fs/xfs.c: Likewise.
12363 * hello/hello.c: Likewise.
12364 * include/grub/acorn_filecore.h: Likewise.
12365 * include/grub/arg.h: Likewise.
12366 * include/grub/bitmap.h: Likewise.
12367 * include/grub/boot.h: Likewise.
12368 * include/grub/cache.h: Likewise.
12369 * include/grub/device.h: Likewise.
12370 * include/grub/disk.h: Likewise.
12371 * include/grub/dl.h: Likewise.
12372 * include/grub/elfload.h: Likewise.
12373 * include/grub/env.h: Likewise.
12374 * include/grub/err.h: Likewise.
12375 * include/grub/file.h: Likewise.
12376 * include/grub/font.h: Likewise.
12377 * include/grub/fs.h: Likewise.
12378 * include/grub/fshelp.h: Likewise.
12379 * include/grub/gzio.h: Likewise.
12380 * include/grub/hfs.h: Likewise.
12381 * include/grub/kernel.h: Likewise.
12382 * include/grub/loader.h: Likewise.
12383 * include/grub/lvm.h: Likewise.
12384 * include/grub/misc.h: Likewise.
12385 * include/grub/mm.h: Likewise.
12386 * include/grub/net.h: Likewise.
12387 * include/grub/normal.h: Likewise.
12388 * include/grub/parser.h: Likewise.
12389 * include/grub/partition.h: Likewise.
12390 * include/grub/pc_partition.h: Likewise.
12391 * include/grub/raid.h: Likewise.
12392 * include/grub/rescue.h: Likewise.
12393 * include/grub/script.h: Likewise.
12394 * include/grub/setjmp.h: Likewise.
12395 * include/grub/symbol.h: Likewise.
12396 * include/grub/term.h: Likewise.
12397 * include/grub/terminfo.h: Likewise.
12398 * include/grub/tparm.h: Likewise.
12399 * include/grub/types.h: Likewise.
12400 * include/grub/video.h: Likewise.
12401 * include/grub/efi/api.h: Likewise.
12402 * include/grub/efi/chainloader.h: Likewise.
12403 * include/grub/efi/console.h: Likewise.
12404 * include/grub/efi/console_control.h: Likewise.
12405 * include/grub/efi/disk.h: Likewise.
12406 * include/grub/efi/efi.h: Likewise.
12407 * include/grub/efi/pe32.h: Likewise.
12408 * include/grub/efi/time.h: Likewise.
12409 * include/grub/i386/linux.h: Likewise.
12410 * include/grub/i386/setjmp.h: Likewise.
12411 * include/grub/i386/types.h: Likewise.
12412 * include/grub/i386/efi/kernel.h: Likewise.
12413 * include/grub/i386/efi/loader.h: Likewise.
12414 * include/grub/i386/efi/time.h: Likewise.
12415 * include/grub/i386/pc/biosdisk.h: Likewise.
12416 * include/grub/i386/pc/boot.h: Likewise.
12417 * include/grub/i386/pc/chainloader.h: Likewise.
12418 * include/grub/i386/pc/console.h: Likewise.
12419 * include/grub/i386/pc/init.h: Likewise.
12420 * include/grub/i386/pc/kernel.h: Likewise.
12421 * include/grub/i386/pc/loader.h: Likewise.
12422 * include/grub/i386/pc/memory.h: Likewise.
12423 * include/grub/i386/pc/multiboot.h: Likewise.
12424 * include/grub/i386/pc/serial.h: Likewise.
12425 * include/grub/i386/pc/time.h: Likewise.
12426 * include/grub/i386/pc/vbe.h: Likewise.
12427 * include/grub/i386/pc/vbeblit.h: Likewise.
12428 * include/grub/i386/pc/vbefill.h: Likewise.
12429 * include/grub/i386/pc/vbeutil.h: Likewise.
12430 * include/grub/i386/pc/vga.h: Likewise.
12431 * include/grub/ieee1275/ieee1275.h: Likewise.
12432 * include/grub/ieee1275/ofdisk.h: Likewise.
12433 * include/grub/powerpc/libgcc.h: Likewise.
12434 * include/grub/powerpc/setjmp.h: Likewise.
12435 * include/grub/powerpc/types.h: Likewise.
12436 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
12437 * include/grub/powerpc/ieee1275/console.h: Likewise.
12438 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
12439 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
12440 * include/grub/powerpc/ieee1275/loader.h: Likewise.
12441 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
12442 * include/grub/powerpc/ieee1275/time.h: Likewise.
12443 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
12444 * include/grub/sparc64/libgcc.h: Likewise.
12445 * include/grub/sparc64/setjmp.h: Likewise.
12446 * include/grub/sparc64/types.h: Likewise.
12447 * include/grub/sparc64/ieee1275/console.h: Likewise.
12448 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
12449 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
12450 * include/grub/sparc64/ieee1275/time.h: Likewise.
12451 * include/grub/util/biosdisk.h: Likewise.
12452 * include/grub/util/getroot.h: Likewise.
12453 * include/grub/util/lvm.h: Likewise.
12454 * include/grub/util/misc.h: Likewise.
12455 * include/grub/util/raid.h: Likewise.
12456 * include/grub/util/resolve.h: Likewise.
12457 * io/gzio.c: Likewise.
12458 * kern/device.c: Likewise.
12459 * kern/disk.c: Likewise.
12460 * kern/dl.c: Likewise.
12461 * kern/elf.c: Likewise.
12462 * kern/env.c: Likewise.
12463 * kern/err.c: Likewise.
12464 * kern/file.c: Likewise.
12465 * kern/fs.c: Likewise.
12466 * kern/loader.c: Likewise.
12467 * kern/main.c: Likewise.
12468 * kern/misc.c: Likewise.
12469 * kern/mm.c: Likewise.
12470 * kern/parser.c: Likewise.
12471 * kern/partition.c: Likewise.
12472 * kern/rescue.c: Likewise.
12473 * kern/term.c: Likewise.
12474 * kern/efi/efi.c: Likewise.
12475 * kern/efi/init.c: Likewise.
12476 * kern/efi/mm.c: Likewise.
12477 * kern/i386/dl.c: Likewise.
12478 * kern/i386/efi/init.c: Likewise.
12479 * kern/i386/efi/startup.S: Likewise.
12480 * kern/i386/pc/init.c: Likewise.
12481 * kern/i386/pc/lzo1x.S: Likewise.
12482 * kern/i386/pc/startup.S: Likewise.
12483 * kern/ieee1275/ieee1275.c: Likewise.
12484 * kern/powerpc/cache.S: Likewise.
12485 * kern/powerpc/dl.c: Likewise.
12486 * kern/powerpc/ieee1275/cmain.c: Likewise.
12487 * kern/powerpc/ieee1275/crt0.S: Likewise.
12488 * kern/powerpc/ieee1275/init.c: Likewise.
12489 * kern/powerpc/ieee1275/openfw.c: Likewise.
12490 * kern/sparc64/cache.S: Likewise.
12491 * kern/sparc64/dl.c: Likewise.
12492 * kern/sparc64/ieee1275/init.c: Likewise.
12493 * kern/sparc64/ieee1275/openfw.c: Likewise.
12494 * loader/efi/chainloader.c: Likewise.
12495 * loader/efi/chainloader_normal.c: Likewise.
12496 * loader/i386/efi/linux.c: Likewise.
12497 * loader/i386/efi/linux_normal.c: Likewise.
12498 * loader/i386/pc/chainloader.c: Likewise.
12499 * loader/i386/pc/chainloader_normal.c: Likewise.
12500 * loader/i386/pc/linux.c: Likewise.
12501 * loader/i386/pc/linux_normal.c: Likewise.
12502 * loader/i386/pc/multiboot.c: Likewise.
12503 * loader/i386/pc/multiboot_normal.c: Likewise.
12504 * loader/powerpc/ieee1275/linux.c: Likewise.
12505 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12506 * normal/arg.c: Likewise.
12507 * normal/cmdline.c: Likewise.
12508 * normal/command.c: Likewise.
12509 * normal/completion.c: Likewise.
12510 * normal/execute.c: Likewise.
12511 * normal/function.c: Likewise.
12512 * normal/lexer.c: Likewise.
12513 * normal/main.c: Likewise.
12514 * normal/menu.c: Likewise.
12515 * normal/menu_entry.c: Likewise.
12516 * normal/misc.c: Likewise.
12517 * normal/parser.y: Likewise.
12518 * normal/script.c: Likewise.
12519 * normal/i386/setjmp.S: Likewise.
12520 * normal/powerpc/setjmp.S: Likewise.
12521 * normal/sparc64/setjmp.S: Likewise.
12522 * partmap/acorn.c: Likewise.
12523 * partmap/amiga.c: Likewise.
12524 * partmap/apple.c: Likewise.
12525 * partmap/gpt.c: Likewise.
12526 * partmap/pc.c: Likewise.
12527 * partmap/sun.c: Likewise.
12528 * term/gfxterm.c: Likewise.
12529 * term/terminfo.c: Likewise.
12530 * term/efi/console.c: Likewise.
12531 * term/i386/pc/console.c: Likewise.
12532 * term/i386/pc/serial.c: Likewise.
12533 * term/i386/pc/vesafb.c: Likewise.
12534 * term/i386/pc/vga.c: Likewise.
12535 * term/ieee1275/ofconsole.c: Likewise.
12536 * util/biosdisk.c: Likewise.
12537 * util/console.c: Likewise.
12538 * util/genmoddep.c: Likewise.
12539 * util/getroot.c: Likewise.
12540 * util/grub-emu.c: Likewise.
12541 * util/grub-mkdevicemap.c: Likewise.
12542 * util/grub-probe.c: Likewise.
12543 * util/lvm.c: Likewise.
12544 * util/misc.c: Likewise.
12545 * util/raid.c: Likewise.
12546 * util/resolve.c: Likewise.
12547 * util/update-grub.in: Likewise.
12548 * util/update-grub_lib.in: Likewise.
12549 * util/grub.d/00_header.in: Likewise.
12550 * util/grub.d/10_hurd.in: Likewise.
12551 * util/grub.d/10_linux.in: Likewise.
12552 * util/i386/efi/grub-install.in: Likewise.
12553 * util/i386/efi/grub-mkimage.c: Likewise.
12554 * util/i386/pc/grub-install.in: Likewise.
12555 * util/i386/pc/grub-mkimage.c: Likewise.
12556 * util/i386/pc/grub-mkrescue.in: Likewise.
12557 * util/i386/pc/grub-setup.c: Likewise.
12558 * util/i386/pc/misc.c: Likewise.
12559 * util/powerpc/ieee1275/grub-install.in: Likewise.
12560 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
12561 * util/powerpc/ieee1275/misc.c: Likewise.
12562 * video/bitmap.c: Likewise.
12563 * video/video.c: Likewise.
12564 * video/i386/pc/vbe.c: Likewise.
12565 * video/i386/pc/vbeblit.c: Likewise.
12566 * video/i386/pc/vbefill.c: Likewise.
12567 * video/i386/pc/vbeutil.c: Likewise.
12568 * video/readers/tga.c: Likewise.
12570 2007-07-02 Robert Millan <rmh@aybabtu.com>
12572 * conf/i386-efi.rmk: Replace obsolete reference to
12573 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
12574 with util/getroot.c.
12575 * conf/powerpc-ieee1275.rmk: Likewise.
12576 * conf/sparc64-ieee1275.rmk: Likewise.
12578 * util/grub-emu.c (main): Fix unchecked pointer handling.
12580 2007-07-02 Robert Millan <rmh@aybabtu.com>
12582 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
12583 invocation to fail, in order to support partition-less media.
12585 * util/i386/pc/grub-install.in: Likewise.
12587 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
12588 which fs or partmap modules are needed (akin to its sister scripts).
12590 Also use grub-probe to get rid of unportable /proc/mounts check.
12592 Print the same informational message that the other scripts do, before
12595 2007-06-23 Robert Millan <rmh@aybabtu.com>
12597 * util/update-grub_lib.in (font_path): New function. Determine whether
12598 a font file can be found and, if so, echo the GRUB path to it.
12600 * util/update-grub.in: Handle multiple terminals depending on user
12601 input, platform availability and font file presence. Propagate
12602 variables of our findings to /etc/grub.d/ children.
12604 * util/grub.d/00_header.in: Handle multiple terminals, based on
12605 environment setup by update-grub.
12607 2007-06-23 Robert Millan <rmh@aybabtu.com>
12609 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
12611 2007-06-21 Robert Millan <rmh@aybabtu.com>
12613 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
12614 indicate end of data section in kernel image.
12615 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
12616 GRUB_KERNEL_MACHINE_DATA_END.
12618 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
12620 * kern/i386/efi/startup.S: Likewise.
12622 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
12623 during image generation. Implement --prefix option to override this
12625 * util/i386/efi/grub-mkimage.c: Likewise.
12627 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
12628 code to make path relative to its root into a separate function.
12630 * util/i386/pc/grub-install.in: Use newly provided
12631 make_system_path_relative_to_its_root() to convert ${grubdir}, then
12632 pass the result to grub-install --prefix.
12634 2007-06-13 Robert Millan <rmh@aybabtu.com>
12636 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
12637 DEFAULT_DEVICE_MAP.
12638 * util/grub-emu.c: Use above definitions from misc.h instead of
12640 * util/grub-mkdevicemap.c: Likewise.
12641 * util/i386/pc/grub-setup.c: Likewise.
12642 * util/grub-probe.c: Likewise.
12643 (probe): Abort with grub_util_error() when either
12644 grub_guess_root_device or grub_util_get_grub_dev fails.
12646 2007-06-12 Robert Millan <rmh@aybabtu.com>
12648 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
12649 "pager" assignment.
12650 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
12652 * util/grub-probe.c (probe): Likewise for "drive_name".
12654 2007-06-11 Robert Millan <rmh@aybabtu.com>
12656 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
12657 not just the cdrom one.
12659 2007-06-11 Robert Millan <rmh@aybabtu.com>
12661 * util/i386/pc/grub-mkrescue.in: Add "set -e".
12662 Add --pkglibdir=DIR option to override pkglibdir.
12663 Mention --image-type=TYPE in help output.
12664 Fix --grub-mkimage (it was a no-op).
12665 Abort gracefully when no parameter is given.
12667 2007-06-11 Robert Millan <rmh@aybabtu.com>
12669 * util/i386/pc/grub-mkrescue.in: New file.
12670 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
12671 * Makefile.in: Handle bin_SCRIPTS.
12673 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
12675 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
12676 list of video modes.
12678 2007-06-06 Robert Millan <rmh@aybabtu.com>
12680 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
12681 file doesn't exist, or if it is in a filesystem grub can't read.
12683 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
12684 not abort if GRUB_DRIVE could not be defined. Rearrange generated
12685 header comment to fit in 80 columns when the variables are resolved.
12687 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
12688 could be identified by update-grub. Remove redundant check for
12689 unifont.pff existence (since convert_system_path_to_grub_path now
12692 2007-06-04 Robert Millan <rmh@aybabtu.com>
12694 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
12696 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
12698 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
12700 2007-06-04 Robert Millan <rmh@aybabtu.com>
12702 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
12704 * include/grub/partition.h: Declare grub_apple_partition_map_init and
12705 grub_apple_partition_map_fini.
12708 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
12709 to access >2 TiB disks).
12711 Print disk->total_sectors with %llu instead of %lu, since this
12712 variable is always 64-bit (prevents wrong disk size from being displayed
12713 on either >2 TiB disk or big-endian CPU).
12715 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
12716 into a generic case that supports all (sane) partition maps.
12718 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
12721 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
12722 and grub_apple_partition_map_fini() after that.
12724 2007-06-01 Robert Millan <rmh@aybabtu.com>
12726 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
12728 * util/grub.d/00_header.in: Only enable gfxterm when
12729 convert_system_path_to_grub_path() succeeds.
12731 2007-05-20 Robert Millan <rmh@aybabtu.com>
12733 * util/update-grub_lib.in: New file.
12734 * DISTLIST: Add update-grub_lib.in.
12735 * conf/common.rmk: Generate update-grub_lib and install it in
12737 * Makefile.in: Add install routine for $(lib_DATA).
12739 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
12740 function provided by update-grub_lib to support arbitrary paths of
12742 * util/update-grub.in: Use convert_system_path_to_grub_path() to
12743 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
12745 2007-05-19 Robert Millan <rmh@aybabtu.com>
12747 * commands/i386/cpuid.c: New module.
12748 * DISTLIST: Add it.
12749 * conf/i386-efi.rmk: Enable cpuid.mod.
12750 * conf/i386-pc.rmk: Likewise.
12752 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
12754 * kern/disk.c (grub_disk_read): Check return value of
12757 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
12759 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
12761 * disk/raid.c (grub_raid_open): Likewise.
12763 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
12765 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
12766 stack instead of on the heap.
12768 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
12769 before doing a read on it.
12771 * configure.ac: Only use -fno-stack-protector for the target
12774 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
12776 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
12777 __attribute_ ((unused)) to mode_type argument.
12779 * util/getroot.c (grub_guess_root_device): Fix #endif.
12781 * kern/misc.c (memcmp): Fix prototype.
12783 * include/grub/partition.h [GRUB_UTIL]
12784 (grub_gpt_partition_map_init): Add prototype.
12785 (grub_gpt_partition_map_fini): Likewise.
12787 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
12788 at the right place.
12790 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
12791 (grub_fat_read_data): Likewise.
12792 (grub_fat_find_dir): Likewise.
12794 * font/manager.c (find_glyph): Make table a const.
12795 (grub_font_get_glyph): Remove bitmap from if statement.
12797 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
12799 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
12800 code, first search for device in /dev/mapper, then in /dev.
12801 (grub_util_get_grub_dev): New function.
12802 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
12804 * util/grub-probe.c (probe): Remove check for RAID, call
12805 grub_util_get_grub_dev() instead of
12806 grub_util_biosdisk_get_grub_dev().
12807 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
12808 grub_util_biosdisk_get_grub_dev().
12809 * util/i386/pc/grub-setup.c (main): Likewise.
12811 2007-05-16 Robert Millan <rmh@aybabtu.com>
12813 * DISTLIST: Update for the latest changes.
12814 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
12815 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
12816 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
12817 grub/util/biosdisk.h.
12818 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
12819 grub/util/biosdisk.h.
12821 2007-05-16 Robert Millan <rmh@aybabtu.com>
12823 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
12825 2007-05-16 Robert Millan <rmh@aybabtu.com>
12827 * util/i386/efi/grub-install.in: New.
12828 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
12829 newly added grub-install.
12830 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
12832 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
12833 grub/util/biosdisk.h.
12834 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
12835 grub/util/biosdisk.h.
12837 2007-05-16 Robert Millan <rmh@aybabtu.com>
12839 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
12840 * include/grub/util/biosdisk.h: ... here.
12841 * util/i386/pc/biosdisk.c: Moved to ...
12842 * util/biosdisk.c: ... here.
12843 * util/i386/pc/getroot.c: Moved to ...
12844 * util/getroot.c: ... here.
12845 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
12846 * util/grub-mkdevicemap.c: ... here.
12847 * util/i386/pc/grub-probe.c: Moved to ...
12848 * util/grub-probe.c: ... here.
12850 2007-05-15 Robert Millan <rmh@aybabtu.com>
12852 * util/update-grub.in: Remove duplicated line in grub.cfg header
12855 2007-05-13 Robert Millan <rmh@aybabtu.com>
12857 * util/update-grub.in: Fix a few assumptions about the devices holding
12858 /, /boot and /boot/grub being the same.
12859 * util/grub.d/00_header.in: Likewise.
12860 * util/grub.d/10_hurd.in: Likewise.
12861 * util/grub.d/10_linux.in: Likewise.
12863 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
12864 patterns. Use that to define the `.old' suffix as older than `'.
12866 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
12868 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
12869 the grub.cfg header message.
12871 2007-05-11 Robert Millan <rmh@aybabtu.com>
12873 * util/update-grub.in: Create device.map if it doesn't already exist,
12874 before attempting to run grub-probe.
12875 Check for grub-probe and grub-mkdevicemap with the same code
12876 grub-install is using.
12879 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
12881 * Makefile.in: Add the datarootdir autoconf variable.
12883 2007-05-09 Robert Millan <rmh@aybabtu.com>
12885 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
12886 fail gracefully if dev->disk->partition == NULL.
12888 2007-05-07 Robert Millan <rmh@aybabtu.com>
12890 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
12891 determine partition map module.
12892 * util/i386/pc/grub-install.in: Use this feature to decide which
12893 partition module to load, instead of hardcoding pc and gpt.
12895 2007-05-07 Robert Millan <rmh@aybabtu.com>
12897 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
12898 source directory differs from build directory.
12900 2007-05-05 Robert Millan <rmh@aybabtu.com>
12902 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
12905 2007-05-05 Robert Millan <rmh@aybabtu.com>
12907 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
12909 2007-05-05 Robert Millan <rmh@aybabtu.com>
12911 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
12912 command-line arguments via ${GRUB_CMDLINE_LINUX}.
12914 2007-05-05 Robert Millan <rmh@aybabtu.com>
12916 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
12917 (grub_probe_SOURCES): Likewise.
12918 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
12919 GPT and initialize dos_part and bsd_part accordingly.
12920 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
12922 (main): Activate gpt module for use during partition identification,
12923 and deactivate it afterwards.
12924 * util/i386/pc/grub-install.in: Add gpt module to core.img.
12925 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
12926 partition identification, and deactivate it afterwards.
12928 2007-05-05 Robert Millan <rmh@aybabtu.com>
12930 * term/i386/pc/console.c (grub_console_fini): Call
12931 grub_term_set_current() before grub_term_unregister().
12933 2007-05-04 Robert Millan <rmh@aybabtu.com>
12935 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
12936 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
12937 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
12938 and update-grub_DATA.
12939 * conf/common.rmk: Build and install update-grub components.
12940 * conf/common.mk: Regenerate.
12941 * util/update-grub.in: New. Core of update-grub.
12942 * util/grub.d/00_header.in: New. Generates grub.cfg header.
12943 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
12944 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
12945 * util/grub.d/README: New. Document grub.d directory layout.
12947 2007-05-01 Robert Millan <rmh@aybabtu.com>
12949 * util/grub-emu.c: Move initialization functions
12950 grub_util_biosdisk_init() and grub_init_all() before
12951 grub_util_biosdisk_get_grub_dev(), which relies on them.
12953 2007-04-19 Robert Millan <rmh@aybabtu.com>
12955 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
12958 2007-04-18 Jerone Young <jerone@gmail.com>
12960 * kernel/elf.c: Add missing parenthesis for conditional statement
12963 2007-04-10 Jerone Young <jerone@gmail.com>
12965 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
12966 continue on and look for device node with real device name.
12968 2007-04-10 Jerone Young <jerone@gmail.com>
12970 * configure.ac: Add argument for autoconf to use transformation
12972 * Makefile.in: Add autoconf package transformation code.
12973 * util/i386/pc/grub-install.in: Likewise.
12974 * util/powerpc/ieee1275/grub-install.in: Likewise.
12976 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
12978 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
12979 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
12980 (EXT2_REVISION): Likewise.
12981 (EXT2_INODE_SIZE): Likewise.
12982 (struct grub_ext2_block_group): Added a missing member
12984 (grub_ext2_read_inode): Divide by the inode size in a superblock
12985 instead of 128 to obtain INODES_PER_BLOCK.
12986 Use the macro EXT2_INODE_SIZE instead of directly using
12987 SBLOCK->INODE_SIZE.
12989 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
12991 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
12992 superblock instead of the structure size to compute an
12993 offset. This fixes the problem that GRUB could not read a
12994 filesystem when inode size is different from 128-byte.
12996 2007-03-05 Marco Gerards <marco@gnu.org>
12998 * normal/main.c (read_config_file): When "menu" is not set, create
12999 an initial context.
13001 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13003 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13004 (HEAP_LIMIT): New macro.
13005 (grub_claim_heap): Claim memory up to `heaplimit'.
13007 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13009 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13010 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13011 (_start): Likewise.
13012 (grub_arch_modules_addr): Return address after `_end'.
13013 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13014 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13015 (add_segments): Calculate `_end' from phdr size and location.
13016 (ALIGN_UP): Moved to ...
13017 * include/grub/misc.h: here.
13018 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13020 (GRUB_IEEE1275_MODULE_BASE): Removed.
13022 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13024 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13027 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13029 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13031 (grub_elf64_load_hook_t): Likewise.
13032 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13035 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13037 * kern/mm.c: Update copyright.
13038 (grub_mm_debug): Correct syntax error.
13039 (grub_mm_dump_free): New function.
13040 (grub_debug_free): Call `grub_free'.
13041 * include/grub/mm.h: Update copyright.
13042 (grub_mm_dump_free): Add declaration.
13044 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13046 * include/grub/ieee1275/ieee1275.h: Update copyright.
13047 * kern/powerpc/ieee1275/init.c: Likewise.
13048 * kern/powerpc/ieee1275/openfw.c: Likewise.
13050 * loader/powerpc/ieee1275/linux.c: Likewise.
13051 * include/grub/elfload.h: Likewise.
13052 * kern/elf.c: Likewise.
13053 (grub_elf32_load): Pass `base' and `size' parameters. Update all
13055 (grub_elf64_load): Likewise.
13056 (grub_elf32_load_segment): Move to a nested function.
13057 (grub_elf64_load_segment): Likewise.
13059 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13061 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
13063 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
13064 (grub_heap_len): Likewise.
13065 (HEAP_SIZE): New macro.
13066 (grub_claim_heap): New function.
13067 (grub_machine_init): Don't claim heap directly. Call
13069 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
13070 (grub_available_iterate): New function.
13072 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
13074 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
13075 * configure.ac: Use it for testing the HOST and TARGET compilers.
13077 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
13079 * Makefile.in (enable_grub_emu): New variable.
13080 * configure.ac (--enable-grub-emu): New option.
13081 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
13082 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
13083 * conf/i386-pc.rmk: Likewise.
13084 * conf/powerpc-ieee1275.rmk: Likewise.
13085 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
13087 2006-12-12 Marco Gerards <marco@gnu.org>
13089 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
13091 * kern/env.c (grub_env_unset): Don't free the member `value' when
13092 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
13095 * normal/main.c (current_menu): Removed.
13096 (free_menu): Unset the `menu' environment variable.
13097 (grub_normal_menu_addentry): Make use of the environment variable
13098 `menu', instead of using the global `current_menu'. Allocate
13099 memory for the sourcecode of this entry.
13100 (read_config_file): New argument `nested', changed all callers.
13101 Only in the case of a new context, initialize a new menu. Set the
13102 `menu' environment variable.
13103 (grub_normal_execute): Don't set and unset the environment
13104 variable `menu' here anymore. Only free the menu when leaving the
13107 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
13110 2006-12-11 Marco Gerards <marco@gnu.org>
13112 * normal/menu_entry.c (run): Fix off by one bug so the last line
13113 is executed. Move the loader check to outside the loop.
13115 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
13117 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
13119 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
13121 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
13122 the number of sectors. Reported by Andrey Shuvikov
13123 <mr_hyro@yahoo.com>.
13125 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
13127 * kern/disk.c (grub_disk_read): When there is a read error, always
13128 try to read only the necessary data.
13130 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
13132 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
13134 [GRUB_UTIL] (grub_raid_fini): Likewise.
13135 [GRUB_UTIL] (grub_lvm_init): Likewise.
13136 [GRUB_UTIL] (grub_lvm_fini): Likewise.
13137 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
13138 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
13139 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
13140 and grub_raid_fini().
13142 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
13144 * include/grub/types.h (__unused): Rename to UNUSED.
13145 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
13146 (grub_elf64_size): Likewise.
13148 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13150 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
13151 grub_error_push and grub_error_pop in the error-handling path.
13152 (grub_elf32_load_segment): Only call grub_file_read with non-zero
13155 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13157 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
13158 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13160 (kernel_elf_SOURCES): Likewise.
13161 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
13162 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
13163 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13164 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13165 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
13166 (elf_mod_SOURCES): New variable.
13167 (elf_mod_CFLAGS): Likewise.
13168 (elf_mod_LDFLAGS): Likewise.
13169 * include/grub/types.h (__unused): New macro.
13170 * include/grub/elfload.h: New file.
13171 * kern/elf.c: Likewise.
13172 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
13173 (ELF32_LOADMASK): New macro.
13174 (ELF64_LOADMASK): Likewise.
13175 (vmlinux): Removed.
13176 (grub_linux_load32): New function.
13177 (grub_linux_load64): Likewise.
13178 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
13179 Use grub_elf_t instead of grub_file_t.
13181 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
13183 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
13184 `catch_result' to struct set_color_args.
13186 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
13188 * normal/menu.c: Include grub/script.h.
13189 * normal/menu_entry.c: Likewise.
13190 * include/grub/normal.h: Do not include grub/script.h.
13192 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13194 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
13196 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13198 * kern/disk.c (grub_disk_open): Print debug messages when opening a
13200 (grub_disk_close): Print debug messages when closing a disk.
13201 (grub_disk_read): Print debug messages when disk read fails.
13202 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
13204 * kern/partition.c: Include misc.h.
13205 (grub_partition_iterate): Print debug messages when detecting
13208 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13210 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
13212 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
13214 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
13216 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13217 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
13219 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
13221 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
13222 instead of sizeof(lv). Patch by Michael Guntsche.
13224 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
13226 * disk/lvm.c: Rename VGS to VG_LIST.
13227 (grub_lvm_iterate): Change VGS->LV to VG-LV.
13228 (grub_lvm_open): Likewise.
13229 Thanks to Michael Guntsche for finding this bug.
13231 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
13233 * configure.ac (AC_INIT): Bumped to 1.95.
13235 2006-10-14 Robert Millan <rmh@aybabtu.com>
13237 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
13238 with "/dev/.static/dev/md".
13240 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13242 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
13243 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
13244 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
13245 DRIVE_NAME are always freed.
13247 * util/i386/pc/biosdisk.c (make_device_name): Add one into
13248 DOS_PART, as a DOS partition is counted from one instead of zero
13249 now. Reported by Robert Millan.
13251 2006-10-14 Robert Millan <rmh@aybabtu.com>
13253 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
13254 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
13255 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
13256 string returned by grub_guess_root_device.
13257 * util/i386/pc/grub-setup.c: Likewise.
13258 * util/i386/pc/grub-probefs.c: Likewise.
13260 * util/i386/pc/grub-probefs.c: Rename to ...
13261 * util/i386/pc/grub-probe.c: ... this.
13262 * DISTLIST: Remove grub-probefs, add grub-probe.
13263 * conf/i386-efi.rmk: Likewise.
13264 * conf/i386-pc.rmk: Likewise.
13265 * util/i386/pc/grub-install.in: Likewise.
13267 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
13268 choose which information we want to print.
13270 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13272 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
13273 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
13274 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
13275 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
13276 video/readers/tga.c and video/i386/pc/vbeutil.c.
13278 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
13280 Added support for RAID and LVM.
13282 * disk/lvm.c: New file.
13283 * disk/raid.c: Likewise.
13284 * include/grub/lvm.h: Likewise.
13285 * include/grub/raid.h: Likewise.
13286 * include/grub/util/lvm.h: Likewise.
13287 * include/grub/util/raid.h: Likewise.
13288 * util/lvm.c: Likewise.
13289 * util/raid.c: Likewise.
13291 * include/grub/disk.h (grub_disk_dev_id): Add
13292 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
13293 (grub_disk_get_size): New prototype.
13294 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
13295 returns a partition.
13296 (grub_disk_get_size): New function.
13298 * kern/i386/pc/init.c (make_install_device): Copy the prefix
13299 verbatim if grub_install_dos_part is -2.
13301 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
13304 * util/i386/pc/grub-setup.c (setup): New argument
13305 MUST_EMBED. Force embedding of GRUB when the argument is
13306 true. Close FILE before returning.
13307 (main): Add support for RAID and LVM.
13309 * conf/common.rmk: Add RAID and LVM modules.
13310 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
13312 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
13314 * kern/misc.c (grub_strstr): New function.
13315 * include/grub/misc.h (grub_strstr): New prototype.
13317 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
13319 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
13321 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
13323 * kern/misc.c (grub_strtoull): Guess the base only if not
13326 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13328 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
13331 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13333 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
13335 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
13336 Remove `flags' argument. All callers changed.
13337 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
13338 (IEEE1275_IHANDLE_INVALID): New variable.
13339 (IEEE1275_CELL_INVALID): New variable.
13340 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13341 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
13342 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
13343 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
13344 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
13345 codes from Open Firmware. All callers updated.
13346 (grub_ieee1275_next_property): Directly return Open Firmware return
13348 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
13349 Standardize error checking from `grub_ieee1275_get_property'.
13350 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
13351 `devalias' to `aliases'. Correct comments. Consolidate error paths.
13353 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
13355 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
13356 `instance_to_package_args' to `instance_to_path_args'.
13358 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
13359 `grub_ieee1275_chosen'.
13361 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
13362 `grub_ieee1275_interpret'.
13364 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13366 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
13368 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
13370 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
13371 (__cmpdi): Likewise.
13373 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
13374 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
13377 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
13379 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
13380 to type `grub_ssize_t'.
13381 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
13383 2006-09-22 Marco Gerards <marco@gnu.org>
13385 * normal/script.c (grub_script_create_cmdmenu): Skip leading
13388 2006-09-22 Marco Gerards <marco@gnu.org>
13390 * commands/echo.c: New file.
13392 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
13394 * conf/common.rmk (echo_mod_SOURCES): New variable.
13395 (echo_mod_CFLAGS): Likewise.
13396 (echo_mod_LDFLAGS): Likewise.
13398 2006-09-22 Marco Gerards <marco@gnu.org>
13400 * normal/main.c (get_line): Malloc memory instead of using
13401 preallocated memory. Removed the arguments `cmdline' and
13402 `max_len'. Updated all callers.
13404 2006-09-22 Marco Gerards <marco@gnu.org>
13406 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
13407 (normal_mod_DEPENDENCIES): Likewise.
13409 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
13410 (normal_mod_DEPENDENCIES): Likewise.
13412 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
13414 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
13416 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
13418 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
13419 (normal_mod_DEPENDENCIES): Likewise.
13420 * conf/i386-pc.mk: Regenerate.
13421 * conf/i386-efi.mk: Likewise
13422 * conf/common.mk: Likewise.
13423 * conf/powerpc-ieee1275.mk: Likewise.
13424 * conf/sparc64-ieee1275.mk: Likewise.
13426 2006-09-22 Robert Millan <rmh@aybabtu.com>
13428 Sync with i386 version.
13429 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
13430 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
13432 2006-09-21 Robert Millan <rmh@aybabtu.com>
13434 Import from GRUB Legacy (lib/device.c):
13435 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
13436 (init_device_map) [__linux__]: Add support for I2O devices.
13438 2006-09-14 Marco Gerards <marco@gnu.org>
13440 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
13443 2006-09-14 Robert Millan <rmh@aybabtu.com>
13445 * util/i386/pc/grub-install.in: Skip menu.lst when removing
13448 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
13450 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
13451 before adding it to device.map.
13453 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
13455 * genmk.rb: Let GCC generate dependencies the first time it
13456 compiles a file; using the -MD option.
13457 * conf/common.mk: Regenerate.
13458 * conf/i386-pc.mk: Likewise.
13459 * conf/i386-efi.mk: Likewise.
13460 * conf/powerpc-ieee1275.mk: Likewise.
13461 * conf/sparc64-ieee1275.mk: Likewise.
13463 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
13465 Move the prototypes of grub_setjmp and grub_longjmp to
13466 cpu/setjmp.h, so that each architecture may specify different
13469 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
13470 (grub_longjmp): Likewise.
13471 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
13472 (grub_longjmp): Likewise.
13473 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
13474 (grub_longjmp): Likewise.
13476 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
13477 [!GRUB_UTIL] (grub_longjmp): Removed.
13479 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
13481 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
13482 "color!" method does not return any value.
13484 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
13486 * include/grub/bitmap.h: New file.
13488 * include/grub/i386/pc/vbeutil.h: Likewise.
13490 * video/bitmap.c: Likewise.
13492 * video/readers/tga.c: Likewise.
13494 * video/i386/pc/vbeutil.c: Likewise.
13496 * commands/videotest.c: Code cleanup and updated to reflect to new
13499 * term/gfxterm.c: Likewise.
13501 * video/video.c: Likewise.
13503 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
13504 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
13505 (bitmap_mod_SOURCES): New entry.
13506 (bitmap_mod_CFLAGS): Likewise.
13507 (bitmap_mod_LDFLAGS): Likewise.
13508 (tga_mod_SOURCES): Likewise.
13509 (tga_mod_CFLAGS): Likewise.
13510 (tga_mod_LDFLAGS): Likewise.
13512 * include/grub/video.h (grub_video_blit_operators): New enum type.
13513 (grub_video_render_target): Changed as forward declaration and moved
13514 actual definition to be video driver specific.
13515 (grub_video_adapter.blit_bitmap): Added blitting operator.
13516 (grub_video_adapter.blit_render_target): Likewise.
13517 (grub_video_blit_bitmap): Likewise.
13518 (grub_video_blit_render_target): Likewise.
13520 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
13521 driver specific render target definition.
13522 (grub_video_vbe_map_rgba): Added driver internal helper.
13523 (grub_video_vbe_unmap_color): Updated to use
13524 grub_video_i386_vbeblit_info.
13525 (grub_video_vbe_get_video_ptr): Likewise.
13527 * include/grub/i386/pc/vbeblit.h
13528 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
13529 grub_video_i386_vbeblit_info.
13530 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
13531 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
13532 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
13533 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
13534 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
13535 (grub_video_i386_vbeblit_index_index): Likewise.
13536 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
13537 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
13538 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
13539 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
13541 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
13544 * video/i386/pc/vbeblit.c: Updated to reflect changes on
13545 include/grub/i386/pc/vbeblit.h.
13547 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
13548 Updated to use grub_video_i386_vbeblit_info.
13549 (grub_video_i386_vbefill_R8G8B8): Likewise.
13550 (grub_video_i386_vbefill_index): Likewise.
13551 (grub_video_i386_vbefill): Added generic filler.
13553 * video/i386/pc/vbefill.c: Updated to reflect changes on
13554 include/grub/i386/pc/vbefill.h.
13556 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
13557 grub_video_i386_vbeblit_info.
13558 (grub_video_vbe_unmap_color): Likewise.
13559 (grub_video_vbe_blit_glyph): Likewise.
13560 (grub_video_vbe_scroll): Likewise.
13561 (grub_video_vbe_draw_pixel): Removed function.
13562 (grub_video_vbe_get_pixel): Likewise.
13563 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
13564 updated code to use it.
13565 (common_blitter): Added common blitter for render target and bitmap.
13566 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
13567 (grub_video_vbe_blit_render_target): Likewise.
13569 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
13571 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
13572 is in text mode if there is no console control protocol instance
13575 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
13577 * include/grub/video.h: Code cleanup.
13579 * include/grub/i386/pc/vbe.h: Likewise.
13581 * video/i386/pc/vbe.c: Likewise.
13583 * video/i386/pc/vbeblit.c: Likewise.
13585 * video/i386/pc/vbefill.c: Likewise.
13587 * video/video.c: Likewise. Also added more comments.
13589 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
13591 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
13592 (struct grub_biosdisk_dap): Likewise.
13594 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
13595 linkage settings for all functions.
13597 2006-07-12 Marco Gerards <marco@gnu.org>
13599 * configure.ac (--enable-mm-debug): Fix typo.
13601 * genkernsyms.sh.in: Use proper quoting for `CC'.
13603 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
13605 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
13606 (normal_mod_ASFLAGS): Remove "-m32".
13608 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
13610 * util/misc.c: Include config.h.
13611 [!HAVE_MEMALIGN]: Do not include malloc.h.
13612 (grub_memalign): Use posix_memalign, if present. Then, use
13613 memalign, if present. Otherwise, emit an error.
13615 * util/grub-emu.c: Do not include malloc.h.
13617 * include/grub/util/misc.h: Include unistd.h. This is required for
13618 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
13619 D. Eades III <hde@foobar-qux.org>.
13621 * configure.ac (AC_GNU_SOURCE): Added.
13622 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
13625 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
13627 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
13628 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
13630 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
13632 * include/grub/types.h (grub_host_addr_t): Rename to
13633 grub_target_addr_t.
13634 (grub_host_off_t): Rename to grub_target_off_t.
13635 (grub_host_size_t): Rename to grub_target_size_t.
13636 (grub_host_ssize_t): Rename to grub_target_ssize_t.
13637 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
13639 * include/grub/kernel.h (struct grub_module_header): Change type
13640 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
13641 (grub_module_info): Likewise.
13643 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
13645 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
13646 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
13647 Velazquez <jesus.velazquez@gmail.com>.
13649 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
13651 Count partitions from 1 instead of 0 in the string representation
13652 of partitions. Still use 0-based internally.
13654 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
13655 (sun_partition_map_iterate): Use grub_partition_t instead of
13656 struct grub_partition *. Cast DESC->START_CYLINDER to
13657 grub_uint64_t after converting the endian.
13658 (sun_partition_map_probe): Subtract 1 for PARTNUM.
13659 (sun_partition_map_get_name): Add 1 to P->INDEX.
13661 * partmap/pc.c (grub_partition_parse): Subtract 1 for
13663 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
13665 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
13666 zero instead of one.
13667 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
13668 (gpt_partition_map_get_name): Add 1 into P->INDEX.
13670 * partmap/apple.c (apple_partition_map_iterate): Change the type
13671 of POS to unsigned.
13672 (apple_partition_map_probe): Subtract 1 for PARTNUM.
13673 (apple_partition_map_get_name): Add 1 into P->INDEX.
13675 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
13676 of POS to unsigned.
13677 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
13678 calculate the offset of a partition.
13679 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
13680 (amiga_partition_map_get_name): Add 1 into P->INDEX.
13682 * partmap/acorn.c (acorn_partition_map_find): Change the type of
13683 SECTOR to grub_disk_addr_t.
13684 (acorn_partition_map_iterate): Likewise.
13685 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
13686 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
13688 (acorn_partition_map_get_name): Add 1 into P->INDEX.
13690 * kern/i386/pc/init.c (make_install_device): Add 1 into
13691 GRUB_INSTALL_DOS_PART.
13693 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
13696 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
13698 Clean up the code to support 64-bit addressing in disks and
13699 files. This change is not enough for filesystems yet.
13701 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
13702 type of "start" to grub_uint64_t.
13703 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
13704 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
13705 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
13708 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
13709 to grub_disk_addr_t.
13711 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
13714 * partmap/pc.c (pc_partition_map_iterate): Likewise.
13716 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
13719 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
13721 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
13723 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
13725 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
13726 to grub_off_t, to detect an error from grub_file_seek.
13727 (grub_multiboot_load_elf32): Likewise.
13729 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
13730 maximum unsigned long value when an overflow is detected.
13731 (grub_strtoull): New function.
13732 (grub_divmod64): Likewise.
13733 (grub_lltoa): use grub_divmod64.
13735 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
13737 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
13738 the pointer to next character. Use grub_strtoull instead of
13740 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
13741 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
13744 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
13745 return value is signed.
13746 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
13747 test if OFFSET is less than zero, as OFFSET is unsigned now.
13749 * kern/disk.c (struct grub_disk_cache): Change the type of
13750 "sector" to grub_disk_addr_t.
13751 (grub_disk_cache_get_index): Change the type of SECTOR to
13752 grub_disk_addr_t. Calculate the hash with SECTOR casted to
13753 unsigned after shifting.
13754 (grub_disk_cache_invalidate): Change the type of SECTOR to
13756 (grub_disk_cache_unlock): Likewise.
13757 (grub_disk_cache_store): Likewise.
13758 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
13759 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
13760 grub_disk_addr_t and grub_uint64_t, respectively.
13761 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
13762 body, as the value of OFFSET is tweaked by
13763 grub_disk_check_range. Change the types of START_SECTOR, LEN and
13764 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
13766 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
13767 body, as the value of OFFSET is tweaked by
13768 grub_disk_check_range. Change the types of LEN and N to
13771 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
13772 and "saved_offset" to grub_off_t.
13773 (test_header): Cast BUF to char *.
13774 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
13776 (grub_gzio_read): Change the types of OFFSET and SIZE to
13777 grub_off_t and grub_size_t, respectively.
13779 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
13781 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
13782 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
13783 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
13784 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
13785 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
13787 * include/grub/types.h (grub_off_t): Unconditionally set to
13789 (grub_disk_addr_t): Changed to grub_uint64_t.
13791 * include/grub/partition.h (struct grub_partition): Change the
13792 types of "start", "len" and "offset" to grub_disk_addr_t,
13793 grub_uint64_t and grub_disk_addr_t, respectively.
13794 (grub_partition_get_start): Return grub_disk_addr_t.
13795 (grub_partition_get_len): Return grub_uint64_t.
13797 * include/grub/misc.h (grub_strtoull): New prototype.
13798 (grub_divmod64): Likewise.
13800 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
13801 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
13802 grub_off_t, respectively.
13803 All callers and references changed.
13805 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
13806 grub_size_t in "read".
13807 All callers and references changed.
13809 * include/grub/file.h (struct grub_file): Change the types of
13810 "offset" and "size" to grub_off_t and grub_off_t,
13811 respectively. Change the type of SECTOR to grub_disk_addr_t in
13813 (grub_file_read): Change the type of LEN to grub_size_t.
13814 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
13816 (grub_file_size): Return grub_off_t.
13817 (grub_file_tell): Likewise.
13818 All callers and references changed.
13820 * include/grub/disk.h (struct grub_disk_dev): Change the types of
13821 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
13823 (struct grub_disk): Change the type of "total_sectors" to
13824 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
13826 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
13827 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
13828 (grub_disk_write): Likewise.
13829 All callers and references changed.
13831 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
13832 char * for grub_strncmp to silence gcc.
13833 (grub_iso9660_mount): Likewise.
13834 (grub_iso9660_mount): Likewise.
13835 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
13837 (grub_iso9660_iterate_dir): Likewise.
13838 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
13840 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
13841 LEN to grub_disk_addr_t and grub_size_t, respectively.
13843 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
13845 * fs/jfs.c (grub_jfs_read_file): Likewise.
13847 * fs/minix.c (grub_jfs_read_file): Likewise.
13849 * fs/sfs.c (grub_jfs_read_file): Likewise.
13851 * fs/ufs.c (grub_jfs_read_file): Likewise.
13853 * fs/xfs.c (grub_jfs_read_file): Likewise.
13855 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
13856 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
13859 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
13860 BLKNR to -1 instead of returning GRUB_ERRNO.
13861 (grub_ext2_read_file): Change the types of SECTOR and
13862 LEN to grub_disk_addr_t and grub_size_t, respectively.
13864 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
13865 LEN to grub_disk_addr_t and grub_size_t, respectively.
13867 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
13870 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
13871 string. Do not cast SECTOR explicitly.
13873 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
13874 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
13875 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
13876 grub_disk_addr_t and grub_size_t, respectively. If the sector is
13877 over 2TB and LBA mode is not supported, raise an error.
13878 (get_safe_sectors): New function.
13879 (grub_biosdisk_read): Use get_safe_sectors.
13880 (grub_biosdisk_write): Likewise.
13882 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
13883 (grub_efidisk_write): Likewise.
13885 * disk/loopback.c (delete_loopback): Cosmetic changes.
13886 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
13888 (grub_loopback_open): Likewise.
13889 (grub_loopback_read): Likewise. Also, change the type of POS to
13890 grub_off_t, and fix the usage of grub_memset.
13892 * commands/i386/pc/play.c: Include grub/machine/time.h.
13894 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
13897 * commands/configfile.c: Include grub/env.h.
13899 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
13900 GRUB_ERRNO directly instead. Change the type of POS to
13901 grub_off_t. Follow the coding standard.
13903 * commands/blocklist.c: Include grub/partition.h.
13904 (grub_cmd_blocklist): Return an error if the underlying device is
13905 not a disk. Take the starting sector of a partition into account,
13906 if a partition is used.
13908 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
13910 (lba_mode): Support 64-bit addresses.
13911 (chs_mode): Likewise.
13912 (copy_buffer): Adapted to the new offsets of a length field and a
13914 (blocklist_default_start): Allocate 64-bit space.
13916 * boot/i386/pc/boot.S (force_lba): Removed.
13917 (boot_drive): Moved to under KERNEL_SECTOR.
13918 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
13920 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
13922 (lba_mode): Refactored to support a 64-bit address. More size
13924 (setup_sectors): Likewise.
13926 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
13928 * DISTLIST: Added include/grub/i386/linux.h. Removed
13929 include/grub/i386/pc/linux.h
13931 * configure.ac (AC_INIT): Bumped to 1.94.
13933 * config.guess: Updated from gnulib.
13934 * config.sub: Likewise.
13935 * install-sh: Likewise.
13936 * mkinstalldirs: Likewise.
13938 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
13940 * conf/common.rmk (grub_modules_init.lst): Depended on
13941 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
13944 * genmk.rb (PModule::rule): Reverted the previous change.
13946 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
13948 * conf/common.rmk (grub_modules_init.lst): Depends on
13949 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
13950 that the target does not exist before producing.
13951 (grub_modules_init.h): Remove the target before generating.
13952 (grub_emu_init.c): Likewise.
13954 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
13956 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
13958 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
13959 for the target-specific tests. Make sure that we also have the
13960 up-to-date target variables for those tests.
13962 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
13964 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
13965 (PModule::rule): Likewise.
13967 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
13969 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
13970 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
13971 target-specific flags should be prefixed.
13972 (PModule::rule): Likewise.
13974 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
13976 * configure.ac (CMP): Check if cmp is available explicitly.
13978 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
13980 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
13981 (target_cpu): New variable.
13982 (pkglibdir): Use target_cpu instead of host_cpu.
13984 * util/i386/pc/grub-install.in (host_cpu): Removed.
13985 (target_cpu): New variable.
13986 (pkglibdir): Use target_cpu instead of host_cpu.
13988 * util/genmoddep.c: Removed.
13990 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
13991 instead of GRUB_HOST_SIZEOF_VOID_P.
13992 * kern/dl.c: Likewise.
13994 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
13996 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
13997 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
13998 (GRUB_TARGET_SIZEOF_LONG): ... this.
13999 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14000 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14001 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14003 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14004 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14005 (GRUB_TARGET_SIZEOF_LONG): ... this.
14006 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14007 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14008 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14010 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14011 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14012 (GRUB_TARGET_SIZEOF_LONG): ... this.
14013 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14014 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14016 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14017 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14018 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14019 instead of GRUB_HOST_SIZEOF_LONG.
14020 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14021 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14022 GRUB_CPU_WORDS_BIGENDIAN.
14023 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14024 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14027 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14028 (genmoddep_SOURCES): Likewise.
14029 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14030 (genmoddep_SOURCES): Likewise.
14031 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14032 (genmoddep_SOURCES): Likewise.
14033 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14035 (genmoddep_SOURCES): Likewise.
14037 * genmoddep.awk: New file.
14039 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14040 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14041 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14042 (PModule::rule): Likewise.
14043 (Program::rule): Likewise.
14044 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14045 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14048 * configure.ac: Rewritten intensively to use host and target
14049 instead of build and host, respectively.
14051 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14052 (host_cpu): Removed.
14053 (target_cpu): New variable.
14054 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
14055 (BUILD_CC): Removed.
14056 (BUILD_CFLAGS): Likewise.
14057 (BUILD_CPPFLAGS): Likewise.
14058 (TARGET_CC): New variable.
14059 (TARGET_CFLAGS): Likewise.
14060 (TARGET_CPPFLAGS): Likewise.
14061 (TARGET_LDFLAGS): Likewise.
14063 (include): Use target_cpu instead of host_cpu.
14064 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
14066 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
14068 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
14070 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
14071 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
14072 field 'false' to 'exec_on_false'.
14073 (grub_script_create_cmdif): Renamed argument names to reflect above
14076 * normal/execute.c (grub_script_execute_cmdif): Likewise.
14078 * normal/script.c (grub_script_create_cmdif): Likewise.
14080 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
14082 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
14084 (grub_hfsplus_btree_recptr): Likewise.
14085 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
14086 FILEBLOCK both to pass a block number and store next block
14088 (grub_hfsplus_read_block): Rewritten heavily to support an extent
14089 overflow file correctly. Specify errors appropriately, because
14090 fshelp expects that GRUB_ERRNO is set when fails. Reuse
14091 grub_hfsplus_btree_recptr to get the pointer to a found key.
14092 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
14095 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
14097 (_linux_mod_SOURCES): New variable.
14098 (_linux_mod_CFLAGS): Likewise.
14099 (_linux_mod_LDFLAGS): Likewise.
14100 (linux_mod_SOURCES): Likewise.
14101 (linux_mod_CFLAGS): Likewise.
14102 (linux_mod_LDFLAGS): Likewise.
14104 * DISTLIST: Added loader/i386/efi/linux.c,
14105 loader/i386/efi/linux_normal.c and
14106 include/grub/i386/efi/loader.h.
14108 * loader/i386/efi/linux.c: New file.
14109 * loader/i386/efi/linux_normal.c: Likewise.
14110 * include/grub/i386/efi/loader.h: Likewise.
14112 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
14114 * commands/blocklist.c: New file.
14116 * DISTLIST: Added commands/blocklist.c.
14118 * term/efi/console.c (grub_console_highlight_color): Use a lighter
14119 color for the background, and a darker color for the foreground.
14120 (grub_console_checkkey): Return READ_KEY.
14121 (grub_console_cls): Set the background to
14122 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
14124 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
14126 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
14127 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
14129 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
14132 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
14133 BG. The spec is wrong again.
14135 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
14137 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
14139 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14140 commands/blocklist.c.
14141 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14143 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
14144 (blocklist_mod_SOURCES): New variable.
14145 (blocklist_mod_CFLAGS): Likewise.
14146 (blocklist_mod_LDFLAGS): Likewise.
14148 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
14150 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
14152 (lba_mode): Use %eax more intensively to reduce the code size.
14154 2006-05-20 Marco Gerards <marco@gnu.org>
14156 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
14158 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
14160 (script): Accept leading newlines.
14161 (newlines): New rule to describe 0 or more newlines.
14162 (commands): Accept `command' with trailing newline. Fixed the
14163 order in which arguments were passed to `grub_script_add_cmd'.
14164 Accept commands separated by newlines.
14165 (function): Changed to accept newlines.
14166 (menuentry) Rewritten.
14168 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
14169 front of the list, instead of to the end.
14171 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
14173 * util/i386/pc/grub-install.in (bindir): New variable.
14174 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
14175 Shaver <lbgwjl@gmail.com>.
14177 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
14179 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
14180 grub/machine/linux.h
14181 * loader/i386/pc/linux.c: Likewise.
14183 * include/grub/i386/pc/linux.h: Moved to ...
14184 * include/grub/i386/linux.h: ... here.
14186 * include/grub/i386/linux.h (struct linux_kernel_params): New
14189 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
14191 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
14193 (grub_video_vbe_blit_glyph): Likewise.
14194 (grub_video_vbe_blit_bitmap): Likewise.
14195 (grub_video_vbe_blit_render_target): Likewise.
14197 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
14199 * configure.ac (--with-platform): Properly quote the square
14202 2006-05-08 Marco Gerards <marco@gnu.org>
14204 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
14206 (kernel_elf_HEADERS): ...to this. Updated all users.
14207 (grubof_symlist.c): Renamed from this...
14208 (kernel_elf_symlist.c): ...to this. Updated all users.
14209 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14210 (grubof_SOURCES): Renamed from this...
14211 (kernel_elf_SOURCES): ...to this.
14212 (grubof_HEADERS): Renamed from this...
14213 (kernel_elf_HEADERS): ...to this.
14214 (grubof_CFLAGS): Renamed from this...
14215 (kernel_elf_CFLAGS): ...to this.
14216 (grubof_ASFLAGS): Renamed from this...
14217 (kernel_elf_ASFLAGS): ...to this.
14218 (grubof_LDFLAGS): Renamed from this...
14219 (kernel_elf_LDFLAGS): ...to this.
14221 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
14223 (kernel_elf_HEADERS): ...to this. Updated all users.
14224 (grubof_symlist.c): Renamed from this...
14225 (kernel_elf_symlist.c): ...to this. Updated all users.
14226 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14227 (grubof_SOURCES): Renamed from this...
14228 (kernel_elf_SOURCES): ...to this.
14229 (grubof_HEADERS): Renamed from this...
14230 (kernel_elf_HEADERS): ...to this.
14231 (grubof_CFLAGS): Renamed from this...
14232 (kernel_elf_CFLAGS): ...to this.
14233 (grubof_ASFLAGS): Renamed from this...
14234 (kernel_elf_ASFLAGS): ...to this.
14235 (grubof_LDFLAGS): Renamed from this...
14236 (kernel_elf_LDFLAGS): ...to this.
14238 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
14239 `kernel.elf' instead of `grubof'.
14241 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
14243 Add --with-platform to configure. Use pkglibdir instead of
14244 pkgdatadir. This is reported by Roger Leigh.
14246 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
14247 (host_vendor): Likewise.
14248 (host_os): Likewise.
14249 (pkgdatadir): Likewise.
14250 (platform): New variable.
14251 (pkglibdir): Likewise.
14252 Use PKGLIBDIR instead of PKGDATADIR.
14254 * util/i386/pc/grub-install.in (datadir): Removed.
14255 (host_vendor): Likewise.
14256 (host_os): Likewise.
14257 (pkgdatadir): Likewise.
14258 (platform): New variable.
14259 (pkglibdir): Likewise.
14260 Use PKGLIBDIR instead of PKGDATADIR.
14262 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
14263 instead of GRUB_DATADIR.
14265 * util/i386/pc/grub-mkimage.c (usage): Likewise.
14267 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14270 * configure.ac (--with-platform): New option.
14271 Use PLATFORM instead of HOST_VENDOR to specify a platform.
14273 * Makefile.in: Include a makefile based on PLATFORM instead of
14275 (pkgdatadir): Not appended by the machine type.
14276 (pkglibdir): Appended by the machine type.
14277 (host_vendor): Removed.
14278 (platform): New variable.
14279 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
14280 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
14281 (uninstall): Likewise.
14283 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
14285 Use the environment context in the menu. Remove the commands
14286 "default" and "timeout", and use variables instead.
14288 * normal/menu.c: Include grub/env.h.
14289 (print_entry): Cast TITLE to silence gcc.
14290 (get_timeout): New function.
14291 (set_timeout): Likewise.
14292 (get_entry_number): Likewise.
14293 (run_menu): Use a default entry, a fallback entry and a timeout
14294 in the environment variables "default", "fallback" and
14295 "timeout". Also, tweak the default entry if it is not within the
14296 current menu entries.
14297 (grub_menu_run): Use a fallback entry in the environment variable
14300 * normal/main.c (read_config_file): Do not initialize
14301 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
14303 (grub_normal_execute): Use a data slot to store the menu.
14305 * include/grub/normal.h (struct grub_menu): Removed default_entry,
14306 fallback_entry and timeout.
14307 (struct grub_menu_list): Removed.
14308 (grub_menu_list_t): Likewise.
14309 (struct grub_context): Likewise.
14310 (grub_context_t): Likewise.
14311 (grub_context_get): Likewise.
14312 (grub_context_get_current_menu): Likewise.
14313 (grub_context_push_menu): Likewise.
14314 (grub_context_pop_menu): Likewise.
14315 (grub_default_init): Likewise.
14316 (grub_default_fini): Likewise.
14317 (grub_timeout_init): Likewise.
14318 (grub_timeout_fini): Likewise.
14320 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
14322 (normal_mod_SOURCES): Removed normal/context.c.
14324 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
14325 commands/default.c, commands/timeout.c and normal/context.c.
14326 (normal_mod_SOURCES): Removed normal/context.c.
14328 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
14329 commands/timeout.c and normal/context.c.
14330 (normal_mod_SOURCES): Removed normal/context.c.
14332 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
14333 commands/default.c, commands/timeout.c and normal/context.c.
14334 (normal_mod_SOURCES): Removed normal/context.c.
14336 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
14338 (default_mod_SOURCES): Removed.
14339 (default_mod_CFLAGS): Likewise.
14340 (default_mod_LDFLAGS): Likewise.
14341 (timeout_mod_SOURCES): Removed.
14342 (timeout_mod_CFLAGS): Likewise.
14343 (timeout_mod_LDFLAGS): Likewise.
14345 * DISTLIST: Removed commands/default.c, commands/timeout.c and
14348 * commands/default.c: Removed.
14349 * commands/timeout.c: Likewise.
14350 * normal/context.c: Likewise.
14352 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
14354 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
14356 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
14358 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
14359 "next" to "prev" for readability.
14360 (struct grub_env_sorted_var): New struct.
14361 (grub_env_context): Renamed to ...
14362 (initial_context): ... this.
14363 (grub_env_var_context): Renamed to ...
14364 (current_context): ... this.
14365 (grub_env_find): Look only at CURRENT_CONTEXT.
14366 (grub_env_context_open): Rewritten to copy exported variables from
14368 (grub_env_context_close): Rewritten according to the new
14369 scheme. Also, add an assertion to prevent the initial context from
14371 (grub_env_insert): Removed the code for the sorted list.
14372 (grub_env_remove): Likewise.
14373 (grub_env_export): Simply mark the variable with
14374 GRUB_ENV_VAR_GLOBAL.
14375 (grub_env_set): A cosmetic change for naming consistency.
14376 (grub_env_get): Likewise.
14377 (grub_env_unset): Likewise.
14378 (grub_env_iterate): Rewritten to sort variables within this
14380 (grub_register_variable_hook): Fixed for naming consistency. Call
14381 grub_env_find again, only if NAME is not found at the first time.
14382 (mangle_data_slot_name): New function.
14383 (grub_env_set_data_slot): Likewise.
14384 (grub_env_get_data_slot): Likewise.
14385 (grub_env_unset_data_slot): Likewise.
14387 * include/grub/env.h (grub_env_var_type): New enum.
14388 (GRUB_ENV_VAR_LOCAL): New constant.
14389 (GRUB_ENV_VAR_GLOBAL): Likewise.
14390 (GRUB_ENV_VAR_DATA): Likewise.
14391 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
14393 (grub_env_set): Replace VAR with NAME for consistency.
14394 (grub_register_variable_hook): Likewise.
14395 (grub_env_export): Specify the name of the argument.
14396 (grub_env_set_data_slot): New prototype.
14397 (grub_env_get_data_slot): Likewise.
14398 (grub_env_unset_data_slot): Likewise.
14400 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
14402 Extend the loader so that GRUB can accept a loader which comes
14403 back to GRUB when a loaded image exits. Also, this change adds
14404 support for a chainloader on EFI.
14406 * term/efi/console.c: Include grub/misc.h.
14407 (grub_console_checkkey): Display a scan code on the top for
14408 debugging. This will be removed once the EFI port gets stable.
14409 Correct the scan code mapping.
14411 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
14412 allocate memory from larger regions, in order to reduce the number
14413 of allocated regions. Otherwise, the MacOSX loader panics.
14414 (filter_memory_map): Avoid less than 1MB for compatibility with
14416 (add_memory_regions): Allocate from the tail of a region, if
14417 possible, to avoid allocating a region near to 1MB, for the MacOSX
14420 * kern/efi/init.c (grub_efi_set_prefix): Specify
14421 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
14423 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
14424 argument IMAGE_HANDLE and specify it to get a loaded image.
14425 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
14426 grub_efi_get_loaded_image.
14427 (grub_efi_get_filename): Divide the length by the size of
14429 (grub_efi_get_device_path): New function.
14430 (grub_efi_print_device_path): Print End Device Path nodes. Divide
14431 the length by the size of grub_efi_char16_t for a file path device
14434 * kern/loader.c (grub_loader_noreturn): New variable.
14435 (grub_loader_set): Accept a new argument NORETURN. Set
14436 GRUB_LOADER_NORETURN to NORETURN.
14437 All callers changed.
14438 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
14441 * include/grub/efi/efi.h (grub_efi_get_device_path): New
14443 (grub_efi_get_loaded_image): Take an argument to specify an image
14446 * include/grub/loader.h (grub_loader_set): Added one more argument
14449 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
14450 instead of grub_efi_open_protocol.
14451 (grub_efidisk_get_device_name): Likewise.
14452 (grub_efidisk_close): Print a newline.
14453 (grub_efidisk_get_device_handle): Fixed to use
14454 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
14455 GRUB_EFI_DEVICE_PATH_TYPE.
14457 * disk/efi/efidisk.c (device_path_guid): Moved to ...
14458 * kern/efi/efi.c (device_path_guid): ... here.
14460 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
14462 (kernel_mod_HEADERS): Added efi/disk.h.
14463 (_chain_mod_SOURCES): New variable.
14464 (_chain_mod_CFLAGS): Likewise.
14465 (_chain_mod_LDFLAGS): Likewise.
14466 (chain_mod_SOURCES): Likewise.
14467 (chain_mod_CFLAGS): Likewise.
14468 (chain_mod_LDFLAGS): Likewise.
14470 * DISTLIST: Added include/grub/efi/chainloader.h,
14471 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
14473 * include/grub/efi/chainloader.h: New file.
14474 * loader/efi/chainloader.c: Likewise.
14475 * loader/efi/chainloader_normal.c: Likewise.
14477 2006-04-30 Marco Gerards <marco@gnu.org>
14479 * commands/configfile.c (grub_cmd_source): New function.
14480 (GRUB_MOD_INIT): Register the commands `source' and `.'.
14481 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
14483 2006-04-30 Marco Gerards <marco@gnu.org>
14485 * normal/execute.c (grub_script_execute_cmd): Change the return
14486 type to `grub_err_t'. Correctly return the error.
14487 (grub_script_execute_cmdline): In case a command line is not a
14488 command or a function, try to interpret it as an assignment.
14490 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
14492 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
14493 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
14494 skip a node whose name is obviously invalid as UTF-16,
14495 i.e. contains a NUL character. Stop the iteration when the last
14496 directory entry is found. Instead of using the return value of
14497 grub_hfsplus_btree_iterate_node, store the value in RET and use
14498 it, because the iterator can be stopped by the last directory
14501 2006-04-30 Marco Gerards <marco@gnu.org>
14503 * include/grub/env.h (grub_env_export): New prototype. Reported
14504 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
14506 2006-04-30 Marco Gerards <marco@gnu.org>
14508 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
14509 size of the extents in a catalog file record.
14511 2006-04-29 Marco Gerards <marco@gnu.org>
14513 * commands/configfile.c (grub_cmd_configfile): Execute the
14514 configfile within its own context.
14516 * include/grub/env.h (grub_env_context_open): New prototype.
14517 (grub_env_context_close): Likewise.
14519 * kern/env.c (grub_env): Removed.
14520 (grub_env_sorted): Likewise.
14521 (grub_env_context): New variable.
14522 (grub_env_var_context): Likewise.
14523 (grub_env_find): Search both the active context and the global
14525 (grub_env_context_open): New function.
14526 (grub_env_context_close): Likewise.
14527 (grub_env_insert): Likewise.
14528 (grub_env_remove): Likewise.
14529 (grub_env_export): Likewise.
14530 (grub_env_set): Changed to use helper functions to avoid code
14532 (grub_env_iterate): Rewritten so both the current context and the
14533 global context are being used.
14535 * normal/command.c (export_command): New function.
14536 (grub_command_init): Register the `export' function.
14538 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
14540 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
14541 explicitly to suppress gcc's warnings.
14542 * fs/fat.c (grub_fat_find_dir): Likewise.
14543 (grub_fat_label): Likewise.
14544 * fs/xfs.c (grub_xfs_read_inode): Likewise.
14545 (grub_xfs_mount): Likewise.
14546 (grub_xfs_label): Likewise.
14547 * fs/affs.c (grub_affs_mount): Likewise.
14548 (grub_affs_label): Likewise.
14549 (grub_affs_iterate_dir): Likewise.
14550 * fs/sfs.c (grub_sfs_mount): Likewise.
14551 (grub_sfs_iterate_dir): Likewise.
14552 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
14553 * fs/hfs.c (grub_hfs_mount): Likewise.
14554 (grub_hfs_cmp_catkeys): Likewise.
14555 (grub_hfs_find_dir): Likewise.
14556 (grub_hfs_dir): Likewise.
14557 (grub_hfs_label): Likewise.
14558 * fs/jfs.c (grub_jfs_mount): Likewise.
14559 (grub_jfs_opendir): Likewise.
14560 (grub_jfs_getent): Likewise.
14561 (grub_jfs_lookup_symlink): Likewise.
14562 (grub_jfs_label): Likewise.
14563 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14564 (grub_hfsplus_iterate_dir): Likewise.
14565 (grub_hfsplus_btree_iterate_node): Made static.
14567 * util/grub-emu.c (prefix): New variable.
14568 (grub_machine_set_prefix): New function.
14569 (main): Do not set the environment variable "prefix" here. Only
14570 set PREFIX, which is used later by grub_machine_set_prefix.
14572 * include/grub/video.h: Do not include grub/symbol.h.
14573 (grub_video_register): Not exported. This symbol is not defined in
14575 (grub_video_unregister): Likewise.
14576 (grub_video_iterate): Likewise.
14577 (grub_video_setup): Likewise.
14578 (grub_video_restore): Likewise.
14579 (grub_video_get_info): Likewise.
14580 (grub_video_get_blit_format): Likewise.
14581 (grub_video_set_palette): Likewise.
14582 (grub_video_get_palette): Likewise.
14583 (grub_video_set_viewport): Likewise.
14584 (grub_video_get_viewport): Likewise.
14585 (grub_video_map_color): Likewise.
14586 (grub_video_map_rgb): Likewise.
14587 (grub_video_map_rgba): Likewise.
14588 (grub_video_fill_rect): Likewise.
14589 (grub_video_blit_glyph): Likewise.
14590 (grub_video_blit_bitmap): Likewise.
14591 (grub_video_blit_render_target): Likewise.
14592 (grub_video_scroll): Likewise.
14593 (grub_video_swap_buffers): Likewise.
14594 (grub_video_create_render_target): Likewise.
14595 (grub_video_delete_render_target): Likewise.
14596 (grub_video_set_active_render_target): Likewise.
14598 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
14600 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
14602 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
14603 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14604 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14605 instead of $(srcdir)/genkernsyms.sh.
14607 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
14608 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14609 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14610 instead of $(srcdir)/genkernsyms.sh.
14612 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
14613 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14614 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14615 instead of $(srcdir)/genkernsyms.sh.
14617 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
14618 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
14619 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
14620 instead of $(srcdir)/genkernsyms.sh.
14622 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
14625 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
14627 (gensymlist.sh): New target.
14628 (genkernsyms.sh): Likewise.
14630 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
14631 genkernsyms.sh.in and gensymlist.sh.in.
14633 * genkernsyms.sh: Removed.
14634 * gensymlist.sh: Likewise.
14636 * genkernsyms.sh.in: New file.
14637 * gensymlist.sh.in: Likewise.
14639 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
14641 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
14642 clobber "prefix", since we may have already set it manually.
14644 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
14646 * kern/misc.c (abort): New alias for grub_abort.
14648 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
14650 A new machine-specific function "grub_machine_set_prefix" is
14651 defined. This is called after loading modules, so that a prefix
14652 initialization can use modules. Also, this change adds an
14653 intensive debugging feature for the memory manager via the
14654 configure option "--enable-mm-debug".
14656 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
14659 * kern/sparc64/ieee1275/init.c (abort): Removed.
14660 (grub_stop): Likewise.
14661 (grub_exit): New function.
14662 (grub_set_prefix): Renamed to ...
14663 (grub_machine_set_prefix): ... this.
14664 (grub_machine_init): Do not call grub_set_prefix.
14666 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
14667 (grub_machine_set_prefix): ... this.
14668 (grub_machine_init): Do not call grub_set_prefix.
14670 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
14671 (grub_machine_init): Do not set the prefix here.
14673 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
14675 * kern/efi/init.c: Include grub/mm.h.
14676 (grub_efi_set_prefix): New function.
14678 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
14679 (grub_efi_get_filename): New function.
14680 (grub_print_device_path): Renamed to ...
14681 (grub_efi_print_device_path): ... this.
14683 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
14684 [MM_DEBUG] (grub_realloc): Likewise.
14685 [MM_DEBUG] (grub_free): Likewise.
14686 [MM_DEBUG] (grub_memalign): Likewise.
14687 [MM_DEBUG] (grub_mm_debug): New variable.
14688 [MM_DEBUG] (grub_debug_malloc): New function.
14689 [MM_DEBUG] (grub_debug_free): New function.
14690 [MM_DEBUG] (grub_debug_realloc): New function.
14691 [MM_DEBUG] (grub_debug_memalign): New function.
14693 * kern/misc.c (grub_abort): Print a newline to distinguish
14696 * kern/main.c (grub_main): Call grub_machine_set_prefix and
14697 grub_set_root_dev after loading modules. This is necessary when
14698 setting a prefix depends on modules.
14700 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
14701 (grub_efi_print_device_path): ... this.
14702 (grub_efi_get_filename): New prototype.
14703 (grub_efi_set_prefix): Likewise.
14705 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
14707 (grub_efidisk_get_device_handle): New prototype.
14708 (grub_efidisk_get_device_name): Likewise.
14710 * include/grub/mm.h: Include config.h.
14711 (MM_DEBUG): Removed.
14712 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
14713 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
14714 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
14715 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
14716 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
14717 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
14718 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
14719 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
14720 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
14722 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
14724 * disk/efi/efidisk.c: Include grub/partition.h.
14725 (iterate_child_devices): New function.
14726 (add_device): First, compare only last device path nodes, so that
14727 devices are sorted by the types.
14728 (grub_efidisk_get_device_handle): New function.
14729 (grub_efidisk_get_device_name): Likewise.
14731 * configure.ac (--enable-mm-debug): New option to enable the
14732 memory manager debugging feature. This makes the binary much
14733 bigger, so is disabled by default.
14735 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
14737 Use grub_abort instead of grub_stop, and grub_exit must be
14738 define in each architecture now. Also, this change adds support
14741 * util/i386/pc/grub-probefs.c: Include grub/term.h.
14742 (grub_getkey): New function.
14743 (grub_term_get_current): Likewise.
14745 * util/i386/pc/grub-setup.c: Include grub/term.h.
14746 (grub_getkey): New function.
14747 (grub_term_get_current): Likewise.
14749 * util/misc.c (grub_stop): Renamed to ...
14750 (grub_exit): ... this.
14752 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
14753 (grub_exit): ... this.
14754 (grub_machine_init): Use grub_abort instead of abort.
14755 (grub_stop): Removed.
14757 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
14760 * kern/i386/pc/startup.S (grub_exit): New function.
14761 (cold_reboot): New label.
14763 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
14764 (grub_efi_init): Call grub_efidisk_init.
14765 (grub_efi_fini): Call grub_efidisk_fini.
14767 * kern/efi/efi.c: Include grub/mm.h.
14768 (grub_efi_console_control_guid): Renamed to ...
14769 (console_control_guid): ... this.
14770 (grub_efi_loaded_image_guid): Renamed to ...
14771 (loaded_image_guid): ... this.
14772 (grub_efi_locate_handle): New function.
14773 (grub_efi_open_protocol): Likewise.
14774 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
14775 GRUB_EFI_CONSOLE_CONTROL_GUID.
14776 (grub_efi_exit): Removed.
14777 (grub_stop): Likewise.
14778 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
14779 (grub_exit): New function.
14780 (grub_print_device_path): Likewise.
14782 * kern/rescue.c (grub_rescue_cmd_exit): New function.
14783 (grub_enter_rescue_mode): Register "exit".
14785 * kern/misc.c (grub_real_dprintf): A cosmetic change.
14786 (grub_abort): New function.
14788 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
14790 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
14792 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
14794 * include/grub/efi/efi.h (grub_efi_exit): Removed.
14795 (grub_print_device_path): New prototype.
14796 (grub_efi_locate_handle): Likewise.
14797 (grub_efi_open_protocol): Likewise.
14799 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
14800 * disk/efi/efidisk.c: Likewise.
14802 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
14804 * include/grub/efi/console_control.h
14805 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
14807 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
14808 last 8 bytes as an array.
14809 (GRUB_EFI_DISK_IO_GUID): New macro.
14810 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
14811 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
14812 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
14814 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
14815 (struct grub_efi_device_path): Rename the member "sub_type" to
14817 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
14818 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
14819 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
14820 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
14821 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
14822 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
14823 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
14824 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
14825 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
14826 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
14827 (struct grub_efi_pci_device_path): New structure.
14828 (grub_efi_pci_device_path_t): New type.
14829 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
14830 (struct grub_efi_pccard_device_path): New structure.
14831 (grub_efi_pccard_device_path_t): New type.
14832 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
14833 (struct grub_efi_memory_mapped_device_path): New structure.
14834 (grub_efi_memory_mapped_device_path_t): New type.
14835 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
14836 (struct grub_efi_vendor_device_path): New structure.
14837 (grub_efi_vendor_device_path_t): New type.
14838 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
14839 (struct grub_efi_controller_device_path): New structure.
14840 (grub_efi_controller_device_path_t): New type.
14841 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
14842 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
14843 (struct grub_efi_acpi_device_path): New structure.
14844 (grub_efi_acpi_device_path_t): New type.
14845 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
14846 (struct grub_efi_expanded_acpi_device_path): New structure.
14847 (grub_efi_expanded_acpi_device_path_t): New type.
14848 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
14849 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
14850 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
14851 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
14852 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
14853 (struct grub_efi_atapi_device_path): New structure.
14854 (grub_efi_atapi_device_path_t): New type.
14855 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
14856 (struct grub_efi_fibre_channel_device_path): New structure.
14857 (grub_efi_fibre_channel_device_path_t): New type.
14858 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
14859 (struct grub_efi_1394_device_path): New structure.
14860 (grub_efi_1394_device_path_t): New type.
14861 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
14862 (struct grub_efi_usb_device_path): New structure.
14863 (grub_efi_usb_device_path_t): New type.
14864 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
14865 (struct grub_efi_usb_class_device_path): New structure.
14866 (grub_efi_usb_class_device_path_t): New type.
14867 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
14868 (struct grub_efi_i2o_device_path): New structure.
14869 (grub_efi_i2o_device_path_t): New type.
14870 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
14871 (struct grub_efi_mac_address_device_path): New structure.
14872 (grub_efi_mac_address_device_path_t): New type.
14873 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
14874 (struct grub_efi_ipv4_device_path): New structure.
14875 (grub_efi_ipv4_device_path_t): New type.
14876 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
14877 (struct grub_efi_ipv6_device_path): New structure.
14878 (grub_efi_ipv6_device_path_t): New type.
14879 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
14880 (struct grub_efi_infiniband_device_path): New structure.
14881 (grub_efi_infiniband_device_path_t): New type.
14882 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
14883 (struct grub_efi_uart_device_path): New structure.
14884 (grub_efi_uart_device_path_t): New type.
14885 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
14886 (struct grub_efi_vendor_messaging_device_path): New structure.
14887 (grub_efi_vendor_messaging_device_path_t): New type.
14888 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
14889 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
14890 (struct grub_efi_hard_drive_device_path): New structure.
14891 (grub_efi_hard_drive_device_path_t): New type.
14892 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
14893 (struct grub_efi_cdrom_device_path): New structure.
14894 (grub_efi_cdrom_device_path_t): New type.
14895 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
14896 (struct grub_efi_vendor_media_device_path): New structure.
14897 (grub_efi_vendor_media_device_path_t): New type.
14898 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
14899 (struct grub_efi_file_path_device_path): New structure.
14900 (grub_efi_file_path_device_path_t): New type.
14901 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
14902 (struct grub_efi_protocol_device_path): New structure.
14903 (grub_efi_protocol_device_path_t): New type.
14904 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
14905 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
14906 (struct grub_efi_bios_device_path): New structure.
14907 (grub_efi_bios_device_path_t): New type.
14908 (struct grub_efi_disk_io): New structure.
14909 (grub_efi_disk_io_t): New type.
14910 (struct grub_efi_block_io_media): New structure.
14911 (grub_efi_block_io_media_t): New type.
14912 (struct grub_efi_block_io): New structure.
14913 (grub_efi_block_io_t): New type.
14915 * include/grub/misc.h (grub_stop): Removed.
14916 (grub_exit): New prototype.
14917 (grub_abort): Likewise.
14919 * include/grub/disk.h (enum grub_disk_dev_id): Added
14920 GRUB_DISK_DEVICE_EFIDISK_ID.
14922 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
14923 disk/efi/efidisk.c.
14924 (kernel_syms.lst): Remove the target if an error occurs.
14926 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
14928 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
14929 as it was simply too buggy.
14931 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
14933 * kern/misc.c (grub_lltoa): New function.
14934 (grub_vsprintf): Added support for the long long suffix,
14937 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
14939 * Makefile.in (LDFLAGS): Add variable.
14940 (LD): Remove variable.
14941 * configure.ac: Add -m32 to LDFLAGS.
14942 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
14943 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
14944 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
14945 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
14946 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
14948 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
14949 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
14950 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
14952 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
14954 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
14955 length for unknown glyph.
14957 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
14959 Add support for pre-loaded modules into the EFI port.
14961 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
14962 completely. Accept one more argument DIR. The caller has changed.
14964 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
14966 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
14967 (grub_efi_loaded_image_guid): New variable.
14968 (grub_efi_get_loaded_image): New function.
14969 (grub_arch_modules_addr): Likewise.
14971 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
14974 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
14975 (struct grub_efi_loaded_image): New structure.
14976 (grub_efi_loaded_image_t): New type.
14978 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
14980 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
14981 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
14982 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
14984 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
14986 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
14988 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
14990 * DISTLIST: Added include/grub/efi/console.h,
14991 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
14992 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
14994 * include/grub/efi/console.h: New file.
14995 * include/grub/efi/time.h: Likewise.
14996 * include/grub/i386/efi/kernel.h: Likewise.
14997 * kern/efi/init.c: Likewise.
14998 * kern/efi/mm.c: Likewise.
14999 * term/efi/console.c: Likewise.
15001 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
15002 (grub_stop): Removed.
15003 (grub_get_rtc): Likewise.
15004 (grub_machine_init): Simply call grub_efi_init.
15005 (grub_machine_fini): Call grub_efi_fini.
15007 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15008 (grub_efi_output_string): Removed.
15009 (grub_efi_stall): New function.
15010 (grub_stop): Likewise.
15011 (grub_get_rtc): Likewise.
15013 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15014 (grub_efi_stall): New prototype.
15015 (grub_efi_allocate_pages): Likewise.
15016 (grub_efi_free_pages): Likewise.
15017 (grub_efi_get_memory_map): Likewise.
15018 (grub_efi_mm_init): Likewise.
15019 (grub_efi_mm_fini): Likewise.
15020 (grub_efi_init): Likewise.
15021 (grub_efi_fini): Likewise.
15023 * include/grub/i386/efi/time.h: Do not include
15024 grub/symbol.h. Include grub/efi/time.h.
15025 (GRUB_TICKS_PER_SECOND): Removed.
15026 (grub_get_rtc): Likewise.
15028 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15029 Added padding. The EFI spec is buggy.
15030 (GRUB_EFI_BLACK): New macro.
15031 (GRUB_EFI_BLUE): Likewise.
15032 (GRUB_EFI_GREEN): Likewise.
15033 (GRUB_EFI_CYAN): Likewise.
15034 (GRUB_EFI_RED): Likewise.
15035 (GRUB_EFI_MAGENTA): Likewise.
15036 (GRUB_EFI_BROWN): Likewise.
15037 (GRUB_EFI_LIGHTGRAY): Likewise.
15038 (GRUB_EFI_BRIGHT): Likewise.
15039 (GRUB_EFI_DARKGRAY): Likewise.
15040 (GRUB_EFI_LIGHTBLUE): Likewise.
15041 (GRUB_EFI_LIGHTGREEN): Likewise.
15042 (GRUB_EFI_LIGHTCYAN): Likewise.
15043 (GRUB_EFI_LIGHTRED): Likewise.
15044 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15045 (GRUB_EFI_YELLOW): Likewise.
15046 (GRUB_EFI_WHITE): Likewise.
15047 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15048 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15049 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15050 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15051 (GRUB_EFI_BACKGROUND_RED): Likewise.
15052 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
15053 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
15054 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
15055 (GRUB_EFI_TEXT_ATTR): Likewise.
15057 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
15058 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15059 (kernel_mod_HEADERS): Added efi/time.h.
15061 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
15063 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
15064 include/grub/efi/api.h, include/grub/efi/console_control.h,
15065 include/grub/efi/efi.h, include/grub/efi/pe32.h,
15066 include/grub/i386/efi/time.h, kern/efi/efi.c,
15067 kern/i386/efi/init.c, kern/i386/efi/startup.S,
15068 and util/i386/efi/grub-mkimage.c.
15070 * Makefile.in (RMKFILES): Added i386-efi.rmk.
15072 * genmk.rb (PModule#rule): Do not export symbols if
15073 #{prefix}_EXPORTS is set to "no".
15075 * conf/i386-efi.mk: New file.
15076 * conf/i386-efi.rmk: Likewise.
15077 * include/grub/efi/api.h: Likewise.
15078 * include/grub/efi/console_control.h: Likewise.
15079 * include/grub/efi/efi.h: Likewise.
15080 * include/grub/efi/pe32.h: Likewise.
15081 * include/grub/i386/efi/time.h: Likewise.
15082 * kern/efi/efi.c: Likewise.
15083 * kern/i386/efi/init.c: Likewise.
15084 * kern/i386/efi/startup.S: Likewise.
15085 * util/i386/efi/grub-mkimage.c: Likewise.
15087 2006-04-17 Marco Gerards <marco@gnu.org>
15089 * include/grub/script.h: Include <grub/parser.h> and
15090 "grub_script.tab.h".
15091 (struct grub_lexer_param): New struct.
15092 (struct grub_parser_param): Likewise.
15093 (grub_script_create_arglist): Pass the state in an argument.
15094 (grub_script_add_arglist): Likewise.
15095 (grub_script_create_cmdline): Likewise.
15096 (grub_script_create_cmdblock): Likewise.
15097 (grub_script_create_cmdif): Likewise.
15098 (grub_script_create_cmdmenu): Likewise.
15099 (grub_script_add_cmd): Likewise.
15100 (grub_script_arg_add): Likewise.
15101 (grub_script_lexer_ref): Likewise.
15102 (grub_script_lexer_deref): Likewise.
15103 (grub_script_lexer_record_start): Likewise.
15104 (grub_script_lexer_record_stop): Likewise.
15105 (grub_script_mem_record): Likewise.
15106 (grub_script_mem_record_stop): Likewise.
15107 (grub_script_malloc): Likewise.
15108 (grub_script_yylex): Likewise.
15109 (grub_script_yyparse): Likewise.
15110 (grub_script_yyerror): Likewise.
15111 (grub_script_yylex): Likewise.
15112 (grub_script_lexer_init): Return the state.
15114 * normal/lexer.c (grub_script_lexer_state): Removed variable.
15115 (grub_script_lexer_done): Likewise.
15116 (grub_script_lexer_getline): Likewise.
15117 (grub_script_lexer_refs): Likewise.
15118 (script): Likewise.
15119 (newscript): Likewise.
15120 (record): Likewise.
15121 (recording): Likewise.
15122 (recordpos): Likewise.
15123 (recordlen): Likewise.
15124 (grub_script_lexer_init): Return the state instead of setting
15126 (grub_script_lexer_ref): Use the newly added argument for state
15127 instead of globals.
15128 (grub_script_lexer_deref): Likewise.
15129 (grub_script_lexer_record_start): Likewise.
15130 (grub_script_lexer_record_stop): Likewise.
15131 (recordchar): Likewise.
15132 (nextchar): Likewise.
15133 (grub_script_yylex2): Likewise.
15134 (grub_script_yylex): Likewise.
15135 (grub_script_yyerror): Likewise.
15137 * normal/parser.y (func_mem): Removed variable.
15138 (menu_entry): Likewise.
15140 (%lex-param): New parser option.
15141 (%parse-param): Likewise.
15142 (script): Always return the AST.
15143 (argument): Pass the state around.
15144 (arguments): Likewise.
15145 (grubcmd): Likewise.
15146 (commands): Likewise.
15147 (function): Likewise.
15148 (menuentry): Likewise.
15149 (if_statement): Likewise.
15152 * normal/script.c (grub_script_memused): Removed variable.
15153 (grub_script_parsed): Likewise.
15154 (grub_script_malloc): Added a state argument. Use that instead of
15156 (grub_script_mem_record): Likewise.
15157 (grub_script_mem_record_stop): Likewise.
15158 (grub_script_arg_add): Likewise.
15159 (grub_script_add_arglist): Likewise.
15160 (grub_script_create_cmdline): Likewise.
15161 (grub_script_create_cmdif): Likewise.
15162 (grub_script_create_cmdmenu): Likewise.
15163 (grub_script_add_cmd): Likewise.
15164 (grub_script_parse): Setup the state before calling the parser.
15166 2006-04-16 Marco Gerards <marco@gnu.org>
15168 * normal/command.c (grub_command_init): Remove the title command.
15170 * normal/lexer.c (grub_script_yylex): Renamed from this...
15171 (grub_script_yylex2): ... to this.
15172 (grub_script_yylex): New function. Temporary
15173 introduced to filter some tokens.
15174 (grub_script_yyerror): Print a newline.
15176 * normal/main.c (read_config_file): Output information about the
15177 lines that contain errors. Wait for a key after all lines have
15178 been processed. Don't return an empty menu.
15180 * normal/parser.y (func_mem): Don't initialize.
15181 (menu_entry): Likewise.
15182 (err): New variable.
15183 (script): Don't return anything when an error was encountered.
15184 (ws, returns): Removed rules.
15185 (argument): Disabled concatenated variable support.
15186 (arguments): Remove explicit separators.
15187 (grubcmd): Likewise.
15188 (function): Likewise.
15189 (menuentry): Likewise.
15191 (commands): Likewise. Add error handling.
15193 * normal/script.c (grub_script_create_cmdline): If
15194 `grub_script_parsed' is 0, assume the parser encountered an error.
15196 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
15198 * configure.ac: Add support for EFI. Fix the typo
15199 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
15201 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15203 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
15204 foreign multibyte characters should be shown correctly.
15206 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15208 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
15210 (read_config_file): Made it to close file before returning.
15212 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
15214 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
15215 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
15216 video/i386/pc/vbefill.c.
15218 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
15219 video/i386/pc/vbefill.c.
15221 * include/grub/video.h (grub_video_blit_format): New enum.
15222 (grub_video_mode_info): Added new member blit_format.
15223 (grub_video_get_blit_format): New function prototype.
15225 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
15226 function prototype.
15227 (grub_video_vbe_map_rgb): Likewise.
15228 (grub_video_vbe_unmap_color): Likewise.
15230 * include/grub/i386/pc/vbeblit.h: New file.
15232 * include/grub/i386/pc/vbefill.h: New file.
15234 * video/video.c (grub_video_get_blit_format): New function.
15235 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
15236 (grub_video_vbe_map_rgb): Likewise.
15237 (grub_video_vbe_unmap_color): Likewise.
15239 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
15241 (grub_video_vbe_blit_render_target): Changed to use more optimized
15243 (grub_video_vbe_setup): Added detection for optimized settings.
15244 (grub_video_vbe_create_render_target): Likewise.
15246 * video/i386/pc/vbeblit.c: New file.
15248 * video/i386/pc/vbefill.c: New file.
15250 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
15252 * font/manager.c (grub_font_get_glyph): Removed font fixup from
15255 * util/unifont2pff.rb: ... and moved it to here. Improved argument
15256 parsing to support both hex and dec ranges. If filename was missing
15257 show usage information.
15259 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
15261 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
15262 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
15264 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
15265 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
15266 (video_mod_SOURCES): Added.
15267 (video_mod_CFLAGS): Likewise.
15268 (video_mod_LDFLAGS): Likewise.
15269 (gfxterm_mod_SOURCES): Likewise.
15270 (gfxterm_mod_CFLAGS): Likewise.
15271 (gfxterm_mod_LDFLAGS): Likewise.
15272 (videotest_mod_SOURCES): Likewise.
15273 (videotest_mod_CFLAGS): Likewise.
15274 (videotest_mod_LDFLAGS): Likewise.
15275 (vesafb_mod_SOURCES): Removed.
15276 (vesafb_mod_CFLAGS): Likewise.
15277 (vesafb_mod_LDFLAGS): Likewise.
15278 (vga_mod_SOURCES): Likewise.
15279 (vga_mod_CFLAGS): Likewise.
15280 (vga_mod_LDFLAGS): Likewise.
15282 * commands/videotest.c: New file.
15284 * font/manager.c (fill_with_default_glyph): Modified to use
15286 (grub_font_get_glyph): Likewise.
15287 (fontmanager): Renamed from this...
15288 (font_manager): ... to this.
15290 * include/grub/font.h (grub_font_glyph): Added new structure.
15291 (grub_font_get_glyph): Modified to use grub_font_glyph.
15293 * include/grub/misc.h (grub_abs): Added as inline function.
15295 * include/grub/video.h: New file.
15297 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
15298 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
15299 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
15300 (grub_vbe_get_controller_info): Renamed from this...
15301 (grub_vbe_bios_get_controller_info): ... to this.
15302 (grub_vbe_get_mode_info): Renamed from this...
15303 (grub_vbe_bios_get_mode_info): ... to this.
15304 (grub_vbe_set_mode): Renamed from this...
15305 (grub_vbe_bios_set_mode): ... to this.
15306 (grub_vbe_get_mode): Renamed from this...
15307 (grub_vbe_bios_get_mode): ... to this.
15308 (grub_vbe_set_memory_window): Renamed from this...
15309 (grub_vbe_bios_set_memory_window): ... to this.
15310 (grub_vbe_get_memory_window): Renamed from this...
15311 (grub_vbe_bios_get_memory_window): ... to this.
15312 (grub_vbe_set_scanline_length): Renamed from this...
15313 (grub_vbe_set_scanline_length): ... to this.
15314 (grub_vbe_get_scanline_length): Renamed from this...
15315 (grub_vbe_bios_get_scanline_length): ... to this.
15316 (grub_vbe_set_display_start): Renamed from this...
15317 (grub_vbe_bios_set_display_start): ... to this.
15318 (grub_vbe_get_display_start): Renamed from this...
15319 (grub_vbe_bios_get_display_start): ... to this.
15320 (grub_vbe_set_palette_data): Renamed from this...
15321 (grub_vbe_bios_set_palette_data): ... to this.
15322 (grub_vbe_set_pixel_rgb): Removed.
15323 (grub_vbe_set_pixel_index): Likewise.
15325 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
15327 (grub_vbe_bios_get_controller_info): ... to this.
15328 (grub_vbe_get_mode_info): Renamed from this...
15329 (grub_vbe_bios_get_mode_info): ... to this.
15330 (grub_vbe_set_mode): Renamed from this...
15331 (grub_vbe_bios_set_mode): ... to this.
15332 (grub_vbe_get_mode): Renamed from this...
15333 (grub_vbe_bios_get_mode): ... to this.
15334 (grub_vbe_set_memory_window): Renamed from this...
15335 (grub_vbe_bios_set_memory_window): ... to this.
15336 (grub_vbe_get_memory_window): Renamed from this...
15337 (grub_vbe_bios_get_memory_window): ... to this.
15338 (grub_vbe_set_scanline_length): Renamed from this...
15339 (grub_vbe_set_scanline_length): ... to this.
15340 (grub_vbe_get_scanline_length): Renamed from this...
15341 (grub_vbe_bios_get_scanline_length): ... to this.
15342 (grub_vbe_set_display_start): Renamed from this...
15343 (grub_vbe_bios_set_display_start): ... to this.
15344 (grub_vbe_get_display_start): Renamed from this...
15345 (grub_vbe_bios_get_display_start): ... to this.
15346 (grub_vbe_set_palette_data): Renamed from this...
15347 (grub_vbe_bios_set_palette_data): ... to this.
15348 (grub_vbe_bios_get_controller_info): Fixed problem with registers
15349 getting corrupted after calling it. Added more pushes and pops.
15350 (grub_vbe_bios_set_mode): Likewise.
15351 (grub_vbe_bios_get_mode): Likewise.
15352 (grub_vbe_bios_get_memory_window): Likewise.
15353 (grub_vbe_bios_set_scanline_length): Likewise.
15354 (grub_vbe_bios_get_scanline_length): Likewise.
15355 (grub_vbe_bios_get_display_start): Likewise.
15356 (grub_vbe_bios_set_palette_data): Likewise.
15358 * normal/cmdline.c (cl_set_pos): Refresh the screen.
15359 (cl_insert): Likewise.
15360 (cl_delete): Likewise.
15362 * term/gfxterm.c: New file.
15364 * term/i386/pc/vesafb.c: Removed file.
15366 * video/video.c: New file.
15368 * video/i386/pc/vbe.c (real2pm): Added new function.
15369 (grub_video_vbe_draw_pixel): Likewise.
15370 (grub_video_vbe_get_video_ptr): Likewise.
15371 (grub_video_vbe_get_pixel): Likewise
15372 (grub_video_vbe_init): Likewise.
15373 (grub_video_vbe_fini): Likewise.
15374 (grub_video_vbe_setup): Likewise.
15375 (grub_video_vbe_get_info): Likewise.
15376 (grub_video_vbe_set_palette): Likewise.
15377 (grub_video_vbe_get_palette): Likewise.
15378 (grub_video_vbe_set_viewport): Likewise.
15379 (grub_video_vbe_get_viewport): Likewise.
15380 (grub_video_vbe_map_color): Likewise.
15381 (grub_video_vbe_map_rgb): Likewise.
15382 (grub_video_vbe_map_rgba): Likewise.
15383 (grub_video_vbe_unmap_color): Likewise.
15384 (grub_video_vbe_fill_rect): Likewise.
15385 (grub_video_vbe_blit_glyph): Likewise.
15386 (grub_video_vbe_blit_bitmap): Likewise.
15387 (grub_video_vbe_blit_render_target): Likewise.
15388 (grub_video_vbe_scroll): Likewise.
15389 (grub_video_vbe_swap_buffers): Likewise.
15390 (grub_video_vbe_create_render_target): Likewise.
15391 (grub_video_vbe_delete_render_target): Likewise.
15392 (grub_video_vbe_set_active_render_target): Likewise.
15393 (grub_vbe_set_pixel_rgb): Remove function.
15394 (grub_vbe_set_pixel_index): Likewise.
15395 (index_color_mode): Remove static variable.
15396 (active_mode): Likewise.
15397 (framebuffer): Likewise.
15398 (bytes_per_scan_line): Likewise.
15399 (grub_video_vbe_adapter): Added new static variable.
15400 (framebuffer): Likewise.
15401 (render_target): Likewise.
15402 (initial_mode): Likewise.
15403 (mode_in_use): Likewise.
15404 (mode_list): Likewise.
15406 2006-03-10 Marco Gerards <marco@gnu.org>
15408 * configure.ac (AC_INIT): Bumped to 1.93.
15410 * DISTLIST: Added `include/grub/hfs.h'.
15412 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
15414 * boot/i386/pc/boot.S (general_error): Before looping, try INT
15415 18H, which might help the BIOS falling back to next boot media.
15417 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
15419 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
15420 Poe Chen <poe.poechen@gmail.com>.
15422 2006-01-17 Marco Gerards <marco@gnu.org>
15424 * include/grub/normal.h: Include <grub/script.h>.
15425 (grub_command_list): Removed struct.
15426 (grub_command_list_t): Removed type.
15427 (grub_menu_entry): Remove members `num' and `command_list'. Add
15428 members `commands' and `sourcecode'.
15429 * include/grub/script.h: Add inclusion guards.
15430 (grub_script_cmd_menuentry): New struct.
15431 (grub_script_execute_menuentry): New prototype.
15432 (grub_script_lexer_record_start): Likewise.
15433 (grub_script_lexer_record_stop): Likewise.
15434 * normal/execute.c (grub_script_execute_menuentry): New function.
15435 * normal/lexer.c (record, recording, recordpos, recordlen): New
15437 (grub_script_lexer_record_start): New function.
15438 (grub_script_lexer_record_stop): Likewise.
15439 (recordchar): Likewise.
15440 (nextchar): Likewise.
15441 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
15442 2048 as the buffer size. Add the tokens `menuentry' and `@'.
15443 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
15444 (current_menu): New variable.
15445 (free_menu): Mainly rewritten.
15446 (grub_normal_menu_addentry): New function.
15447 (read_config_file): Rewritten.
15448 * normal/menu.c (run_menu_entry): Mainly rewritten.
15449 * normal/menu_entry.c (make_screen): Rewritten the code to insert
15451 (run): Mainly rewritten.
15452 * normal/parser.y (menu_entry): New variable.
15453 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
15454 (menuentry): New rule.
15455 (command): Add `menuentry'.
15456 (if_statement): Allow additional returns before `fi'.
15457 * normal/script.c (grub_script_create_cmdmenu): New function.
15459 2006-01-03 Marco Gerards <marco@gnu.org>
15461 * INSTALL: GNU Bison is required.
15462 * configure.ac: Rewritten the test to detect Bison.
15463 * Makefile.in (YACC): New variable. Reported by Xun Sun
15464 <xun.sun.cn@gmail.com>.
15466 2006-01-03 Marco Gerards <marco@gnu.org>
15468 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
15469 the HFS+ filesystem to filesystem blocks.
15470 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
15471 GCC warning is silenced.
15473 2006-01-03 Marco Gerards <marco@gnu.org>
15475 * partmap/apple.c (apple_partition_map_iterate): Convert the data
15476 read from disk from big endian to host byte order.
15478 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
15480 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
15482 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
15483 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
15484 embedded HFS+ filesystem.
15485 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
15486 (grub_hfs_sblock): Move from here...
15487 * include/grub/hfs.h: To here... New file.
15488 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
15490 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
15492 (grub_hfsplus_volheader): Change type of member `magic' to
15494 (grub_hfsplus_data): Add new member `embedded_offset'.
15495 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
15497 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
15498 Calculate the offset.
15500 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15502 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
15504 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
15506 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15508 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
15509 ENV->NAME is NULL after allocating ENV->VALUE.
15511 2005-12-25 Marco Gerards <marco@gnu.org>
15513 * kern/env.c (grub_env_set): Rewritten the error handling code.
15515 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15517 * geninit.sh: Made more robust, and more portable.
15519 2005-12-25 Marco Gerards <marco@gnu.org>
15521 Add support for Apple HFS+ filesystems.
15523 * fs/hfsplus.c: New file.
15525 * DISTLIST: Added `fs/hfsplus.c'.
15527 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
15528 (hfsplus_mod_SOURCES): New variable.
15529 (hfsplus_mod_CFLAGS): Likewise.
15530 (hfsplus_mod_LDFLAGS): Likewise.
15531 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
15532 (grub_setup_SOURCES): Likewise.
15533 (grub_mkdevicemap_SOURCES): Likewise.
15534 (grub_emu_SOURCES): Likewise.
15535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15537 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
15539 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
15541 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
15543 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
15544 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
15545 include/grub/parser.h, include/grub/script.h, kern/parser.c,
15546 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
15547 normal/lexer.c, normal/parser.y, normal/script.c, and
15549 Removed kern/sparc64/cache.c.
15551 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
15552 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
15555 * configure.ac (AC_INIT): Bumped to 1.92.
15557 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
15559 * kern/err.c (grub_error_push): Added new function to support error
15561 (grub_error_pop): Likewise.
15562 (grub_error_stack_items): New local variable to support error stacks.
15563 (grub_error_stack_pos): Likewise.
15564 (grub_error_stack_assert): Likewise.
15565 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
15567 (grub_print_error): Added support to print errors from error stack.
15569 * include/grub/err.h (grub_error_push): Added function prototype.
15570 (grub_error_pop): Likewise.
15572 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
15574 * configure.ac: Accept `powerpc64' as host_cpu.
15575 (amd64): Rename to `biarch32'.
15577 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
15578 non-cacheline-aligned addresses.
15580 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
15581 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
15582 if `size' is non-zero.
15584 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
15586 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
15587 and `cd' to make sure the filename is not prefixed with a
15589 (pkgdata_MODULES): Add `gpt.mod'.
15590 (gpt_mod_SOURCES): New variable.
15591 (gpt_mod_CFLAGS): Likewise.
15592 (gpt_mod_LDFLAGS): Likewise.
15594 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
15596 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
15599 * partmap/gpt.c: New file.
15601 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
15602 GPT partition map is detected.
15604 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
15606 * commands/i386/pc/play.c: New file.
15607 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
15608 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
15611 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
15613 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
15614 ((unused))' to silence gcc warning.
15616 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
15618 * configure.ac: Correct `AC_PROG_YACC' test.
15620 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15622 * util/powerpc/ieee1275/grub-install.in: Run the mount point
15623 check before installing files.
15625 2005-11-22 Mike Small <smallm@panix.com>
15627 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
15628 number regex so multidigit numbers are recognized correctly.
15630 2005-11-22 Mike Small <smallm@panix.com>
15632 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
15633 debugging message before attempting to claim memory.
15634 (grub_rescue_cmd_initrd): Add a claim debugging message and try
15635 multiple addresses in case of failure.
15637 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15639 * term/tparm.c (get_space): Remove empty `if' statement.
15641 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
15643 * kern/parser.c (check_varstate): Rename `state' to 's'.
15645 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15647 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
15648 variable definitions to the beginning of each function. Sort stack
15650 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
15651 `buf' argument to `char *'.
15653 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
15655 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
15656 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
15657 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
15658 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
15659 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
15660 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
15661 configfile.mod, search.mod, gzio.mod and test.mod.
15662 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
15663 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
15664 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
15665 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
15666 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
15667 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
15668 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
15669 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
15670 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
15671 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
15672 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
15673 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
15674 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
15675 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
15676 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
15677 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
15678 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
15679 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
15680 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
15681 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
15682 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
15683 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
15684 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
15686 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
15688 (pkgdata_MODULES): Add test.mod.
15690 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
15692 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
15693 appending to variables with "+=".
15694 (PModule): Use full pathname to generate *.lst filenames.
15696 * Makefile.in: Fixed list rules moved from genmk.rb.
15697 (.DELETE_ON_ERROR): New special target.
15698 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
15700 * conf/i386-pc.rmk: Include conf/common.mk.
15701 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
15702 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
15703 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
15704 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
15705 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
15706 configfile.mod, search.mod, gzio.mod and test.mod.
15707 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
15708 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
15709 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
15710 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
15711 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
15712 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
15713 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
15714 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
15715 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
15716 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
15717 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
15718 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
15719 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
15720 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
15721 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
15722 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
15723 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
15724 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
15725 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
15726 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
15727 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
15728 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
15729 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
15731 * conf/common.rmk: ... to here. New file.
15733 * conf/common.mk: New file.
15735 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
15737 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
15738 (grub_script.tab.c): ... here.
15740 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
15741 (grub_script.tab.c): ... here.
15743 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
15744 (grub_script.tab.c): ... here.
15746 * normal/command.c (grub_command_find): Fixed a memory leak of
15747 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
15749 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
15751 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
15752 "@" which marks the start of a comment on ARM.
15753 (VARIABLE): Likewise.
15755 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
15757 Add support for Linux/ADFS partition tables.
15759 * partmap/acorn.c: New file.
15761 * include/grub/acorn_filecore.h: Likewise.
15763 * DISTLIST: Added `partmap/acorn.c' and
15764 `include/grub/acorn_filecore.h'.
15766 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
15768 (pkgdata_MODULES): Add `acorn.mod'.
15769 (acorn_mod_SOURCES): New variable.
15770 (acorn_mod_CFLAGS): Likewise.
15772 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
15774 (pkgdata_MODULES): Add `acorn.mod'.
15775 (acorn_mod_SOURCES): New variable.
15776 (acorn_mod_CFLAGS): Likewise.
15778 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
15779 (pkgdata_MODULES): Add `acorn.mod'.
15780 (acorn_mod_SOURCES): New variable.
15781 (acorn_mod_CFLAGS): Likewise.
15782 (acorn_mod_LDFLAGS): Likewise.
15784 * include/types.h (grub_disk_addr_t): New typedef.
15786 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
15788 * geninit.sh: New file.
15790 * geninitheader.sh: Likewise.
15792 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
15793 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
15794 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
15795 * commands/configfile.c (grub_configfile_init)
15796 (grub_configfile_fini): Likewise.
15797 * commands/default.c (grub_default_init, grub_default_fini):
15799 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
15800 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
15801 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
15802 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
15804 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
15805 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
15807 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
15808 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
15810 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
15812 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
15814 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
15815 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
15816 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
15817 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
15818 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
15819 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
15820 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
15821 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
15822 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
15823 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
15824 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
15825 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
15826 * partmap/amiga.c (grub_amiga_partition_map_init)
15827 (grub_amiga_partition_map_fini): Likewise.
15828 * partmap/apple.c (grub_apple_partition_map_init)
15829 (grub_apple_partition_map_fini): Likewise.
15830 * partmap/pc.c (grub_pc_partition_map_init)
15831 (grub_pc_partition_map_fini): Likewise.
15832 * partmap/sun.c (grub_sun_partition_map_init,
15833 grub_sun_partition_map_fini): Likewise.
15834 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
15837 * util/grub-emu.c: Include <grub_modules_init.h>.
15838 (main): Don't initialize and de-initialize any modules directly,
15839 use `grub_init_all' and `grub_fini_all' instead.
15841 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
15842 `grub_vesafb_mod_init'.
15843 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
15845 * term/i386/pc/vga.c (grub_vga_init): Renamed to
15846 `grub_vga_mod_init'. Updated all users.
15847 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
15849 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
15850 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
15853 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
15854 Generate a function to initialize the module in utilities.
15855 Updated all callers.
15856 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
15857 initialize the module in utilities. Updated all callers.
15859 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
15861 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
15862 escape sequence and a literal ^L to clear the screen.
15864 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
15865 when returning from Open Firmware.
15867 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
15869 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
15870 (grub_ofconsole_height): Likewise.
15871 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
15872 manually insert a '\n'.
15873 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
15874 `grub_ofconsole_height'. Return early if these are already set.
15876 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
15878 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
15879 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
15880 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
15881 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
15882 and `normal/script.c'.
15883 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15884 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15885 (test_mod_SOURCES): New variable.
15886 (test_mod_CFLAGS): Likewise.
15887 (test_mod_LDFLAGS): Likewise.
15888 (pkgdata_MODULES): Add `test.mod'.
15889 (grub_script.tab.c): New rule.
15890 (grub_script.tab.h): Likewise.
15892 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
15894 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
15895 `commands/test.c', `normal/execute.c', `normal/lexer.c',
15896 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15897 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15898 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15899 (test_mod_SOURCES): New variable.
15900 (test_mod_CFLAGS): Likewise.
15901 (pkgdata_MODULES): Add `test.mod'.
15902 (grub_script.tab.c): New rule.
15903 (grub_script.tab.h): Likewise.
15905 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
15907 Add initial scripting support.
15909 * commands/test.c: New file.
15910 * include/grub/script.h: Likewise.
15911 * normal/execute.c: Likewise.
15912 * normal/function.c: Likewise.
15913 * normal/lexer.c: Likewise.
15914 * normal/parser.y: Likewise.
15915 * normal/script.c: Likewise.
15917 * configure.ac: Add `AC_PROG_YACC' test.
15919 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
15920 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
15921 `normal/function.c' and `normal/script.c'.
15922 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
15923 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
15924 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
15926 (pkgdata_MODULES): Add `test.mod'.
15927 (grub_script.tab.c): New rule.
15928 (grub_script.tab.h): Likewise.
15930 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
15932 * include/grub/normal.h (grub_test_init): New prototype.
15933 (grub_test_fini): Likewise.
15935 * normal/command.c: Include <grub/script.h>.
15936 (grub_command_execute): Rewritten.
15938 * util/grub-emu.c (main): Call `grub_test_init' and
15941 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15943 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
15945 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
15946 there are no pending characters.
15948 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15950 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
15951 `grub_strndup' to drop device arguments. Replace unnecessary
15952 `grub_strndup' with `grub_strdup'.
15954 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
15956 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
15957 `debug' environment variable has been set.
15959 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
15961 * Makefile.in (install-local): Use $(DATA).
15962 (uninstall): Likewise.
15963 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
15964 (sbin_UTILITIES): ... to here.
15965 (sbin_SCRIPTS): New variable.
15966 (grub_install_SOURCES): New variable.
15967 * util/powerpc/ieee1275/grub-install.in: New file.
15968 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
15970 (add_segments): Call `grub_util_get_path'.
15972 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
15974 From Timothy Baldwin:
15975 * commands/ls.c (grub_ls_list_files): Close FILE with
15977 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
15979 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
15981 * include/grub/parser.h: New file.
15983 * kern/parser.c: Likewise.
15985 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
15986 (grub_setup_SOURCES): Likewise.
15987 (grub_probefs_SOURCES): Likewise.
15988 (grub_emu_SOURCES): Likewise.
15989 (kernel_img_HEADERS): Add `parser.h'.
15991 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
15992 (grub_emu_SOURCES): Add `kern/parser.c'.
15993 (grubof_SOURCES): Likewise.
15995 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
15996 (grubof_SOURCES): Add `kern/parser.c'.
15998 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
16000 * kern/misc.c (grub_split_cmdline): Removed function.
16002 * kern/rescue.c: Include <grub/parser.h>.
16003 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16004 of `grub_split_cmdline'.
16006 * normal/command.c: Include <grub/parser.h>.
16007 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16008 of `grub_split_cmdline'.
16010 * normal/completion.c: Include <grub/parser.h>.
16011 (cmdline_state): New variable.
16012 (iterate_dir): End the filename with a quote depending on the
16013 command line state.
16014 (get_state): new function.
16015 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16016 split the arguments and determine the current argument. When the
16017 argument string is not quoted, escape all spaces.
16019 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16021 * normal/sparc64/setjmp.S: New file.
16023 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16025 * include/grub/sparc64/libgcc.h: New file.
16026 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16027 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16028 normal/sparc64/setjmp.c.
16030 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16032 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16033 * kern/sparc64/cache.S: New file.
16034 * kern/sparc64/cache.c: Removed.
16035 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16036 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16038 (COMMON_LDFLAGS): Add -melf64_sparc.
16039 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16040 (grubof_SOURCES): Use cache.S instead of cache.c.
16041 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16042 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16043 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16045 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16046 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16047 (linux_mod_CFLAGS): Commented out.
16048 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16049 out because module isn't built.
16050 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16051 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16052 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
16053 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
16054 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
16055 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16056 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16057 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
16058 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
16059 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
16060 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16061 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16062 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
16063 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
16065 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
16067 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
16068 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
16069 longer, because HFS should not be used on PC.
16071 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16073 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
16074 consistently within the loop.
16076 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
16078 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
16079 directory can not be read.
16081 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16083 * configure.ac (AC_INIT): Increase the version number to 1.91.
16085 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
16086 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
16087 term/i386/pc/serial.c.
16089 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16091 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
16092 file size must be permitted.
16094 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
16095 between %ah and %al.
16097 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16099 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
16101 Call the hook with a NUL-terminated filename.
16102 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
16105 * kern/term.c (cursor_state): New variable.
16106 (grub_term_set_current): Reset the cursor state on a new
16108 (grub_setcursor): Rewritten to use CURSOR_STATE.
16109 (grub_getcursor): New function.
16111 * include/grub/term.h (grub_getcursor): New prototype.
16113 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
16114 integers on ARM. Reported by Timothy Baldwin
16115 <T.E.Baldwin99@members.leeds.ac.uk>.
16117 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
16119 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
16121 (grub_sfs_dir): Likewise.
16123 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
16125 Add support for the SFS filesystem.
16127 * fs/sfs.c: New file.
16129 * DISTLIST: Added `fs/sfs.c'.
16131 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
16132 (grub_probefs_SOURCES): Likewise.
16133 (grub_emu_SOURCES): Likewise.
16134 (pkgdata_MODULES): Add `sfs.mod'.
16135 (sfs_mod_SOURCES): New variable.
16136 (sfs_mod_CFLAGS): Likewise.
16137 (sfs_mod_LDFLAGS): Likewise.
16139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
16140 (pkgdata_MODULES): Add `sfs.mod'.
16141 (sfs_mod_SOURCES): New variable.
16142 (sfs_mod_CFLAGS): Likewise.
16144 * util/grub-emu.c (main): Call `grub_sfs_init' and
16147 * include/grub/fs.h (grub_sfs_init): New prototype.
16148 (grub_sfs_fini): Likewise.
16150 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
16152 Add support for the AFFS filesystem.
16154 * fs/affs.c: New file.
16156 * DISTLIST: Added `fs/affs.c'.
16158 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
16159 (grub_probefs_SOURCES): Likewise.
16160 (grub_emu_SOURCES): Likewise.
16161 (pkgdata_MODULES): Add `affs.mod'.
16162 (affs_mod_SOURCES): New variable.
16163 (affs_mod_CFLAGS): Likewise.
16164 (affs_mod_LDFLAGS): Likewise.
16166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
16167 (pkgdata_MODULES): Add `affs.mod'.
16168 (affs_mod_SOURCES): New variable.
16169 (affs_mod_CFLAGS): Likewise.
16171 * util/grub-emu.c (main): Call `grub_affs_init' and
16174 * include/grub/fs.h (grub_affs_init): New prototype.
16175 (grub_affs_fini): Likewise.
16177 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16179 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
16181 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16183 * configure.ac: Accept `x86_64' as host_cpu. In that case add
16186 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
16189 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
16190 (COMMON_LDFLAGS): New variable.
16191 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
16192 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
16193 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
16194 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
16195 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
16196 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
16197 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
16198 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
16199 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
16200 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
16201 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16202 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16203 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
16204 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
16205 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
16207 (normal_mod_ASFLAGS): Add `-m32'.
16209 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
16210 (grub_host_size_t, grub_host_ssize_t): New types.
16211 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
16212 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
16213 `GRUB_HOST_SIZEOF_VOID_P'.
16215 * include/grub/kernel.h (struct grub_module_header): Type of
16216 member offset changed to `grub_host_off_t'. Type of member size
16217 changed to `grub_host_size_t'.
16218 (struct grub_module_info): Type of member offset changed to
16219 `grub_host_off_t'. Type of member size changed to
16220 `grub_host_size_t'.
16222 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
16224 Make GRUB's kernel compliant to Multiboot Specification.
16226 * kern/i386/pc/startup.S (multiboot_header): New label.
16227 (multiboot_entry): Likewise.
16228 (multiboot_trampoline): Likewise.
16230 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16231 Increased to 0x4A0.
16233 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
16234 put parentheses after a question mark.
16235 [!GRUB_UTIL] (my_mod): New variable.
16237 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
16239 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
16241 Adds support for the XFS filesystem. Btrees are not supported
16244 * fs/xfs.c: New file.
16246 * DISTLIST: Added `fs/xfs.c'.
16248 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
16249 (grub_probefs_SOURCES): Likewise.
16250 (grub_emu_SOURCES): Likewise.
16251 (pkgdata_MODULES): Add `xfs.mod'.
16252 (xfs_mod_SOURCES): New variable.
16253 (xfs_mod_CFLAGS): Likewise.
16255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
16256 (pkgdata_MODULES): Add `xfs.mod'.
16257 (xfs_mod_SOURCES): New variable.
16258 (xfs_mod_CFLAGS): Likewise.
16260 * util/grub-emu.c (main): Call `grub_xfs_init' and
16263 * include/grub/fs.h (grub_xfs_init): New prototype.
16264 (grub_xfs_fini): Likewise.
16267 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
16269 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
16270 color modes, allow greater than 16 colors to be configured as
16273 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
16275 * normal/completion.c (complete_arguments): Add the qualifier
16276 const into OPTIONS.
16278 From Omniflux <omniflux+lists@omniflux.com>:
16279 * include/grub/terminfo.h: New file.
16280 * include/grub/tparm.h: Likewise.
16281 * include/grub/i386/pc/serial.h: Likewise.
16282 * term/terminfo.c: Likewise.
16283 * term/tparm.c: Likewise.
16284 * term/i386/pc/serial.c: Likewise.
16285 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
16287 (terminfo_mod_SOURCES): New variable.
16288 (terminfo_mod_CFLAGS): Likewise.
16289 (serial_mod_SOURCES): Likewise.
16290 (serial_mod_CFLAGS): Likewise.
16292 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
16294 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
16295 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
16296 and kern/powerpc/ieee1275/cmain.c, respectively.
16298 * boot/powerpc/ieee1275/crt0.S: Moved to ...
16299 * kern/powerpc/ieee1275/crt0.S: ... here.
16301 * boot/powerpc/ieee1275/cmain.c: Moved to ...
16302 * kern/powerpc/ieee1275/cmain.c: ... here.
16304 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
16305 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
16306 instead of boot/powerpc/ieee1275/crt0.S and
16307 boot/powerpc/ieee1275/cmain.c, respectively.
16309 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
16310 sectors. It was not used anyway.
16312 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16314 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
16315 `unused parameter' warning.
16317 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
16319 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
16321 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
16324 2005-08-28 Marco Gerards <metgerards@student.han.nl>
16326 * include/grub/normal.h (enum grub_completion_type): Added
16327 `GRUB_COMPLETION_TYPE_ARGUMENT'.
16329 * normal/cmdline.c (print_completion): Handle
16330 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
16331 * normal/menu_entry.c (store_completion): Likewise.
16333 * normal/completion.c (complete_arguments): New function.
16334 (grub_normal_do_completion): Call `complete_arguments' when the
16335 current words start with a dash.
16337 2005-08-27 Marco Gerards <metgerards@student.han.nl>
16339 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
16340 `gzio.mod' instead of `io.mod').
16342 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
16344 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
16345 (DISTDIRS): Added io and video.
16346 Rewrite the search routine to make an output consistently.
16348 * DISTLIST: Added conf/sparc64-ieee1275.mk,
16349 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
16350 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
16351 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
16352 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
16353 util/powerpc/ieee1275/misc.c.
16355 * include/grub/gzio.h: New file.
16356 * io/gzio.c: Likewise.
16358 * kern/file.c (grub_file_close): Call grub_device_close only if
16359 FILE->DEVICE is not NULL.
16361 * include/grub/mm.h [!NULL] (NULL): New macro.
16363 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
16365 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
16366 (pkgdata_MODULES): Added gzio.mod.
16367 (gzio_mod_SOURCES): New variable.
16368 (gzio_mod_CFLAGS): Likewise.
16370 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
16371 (pkgdata_MODULES): Added gzio.mod.
16372 (gzio_mod_SOURCES): New variable.
16373 (gzio_mod_CFLAGS): Likewise.
16375 * commands/cat.c: Include grub/gzio.h.
16376 (grub_cmd_cat): Use grub_gzfile_open instead of
16379 * commands/cmp.c: Include grub/gzio.h.
16380 (grub_cmd_cmp): Use grub_gzfile_open instead of
16383 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
16384 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
16386 (grub_rescue_cmd_module): Likewise.
16388 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16390 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
16391 kern/sparc64/ieee1275/init.c because it contains _start.
16392 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
16394 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
16396 * configure.ac: Add support for sparc64 host with ieee1275
16398 * configure: Generated from configure.ac.
16399 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
16401 (grub_ofdisk_read): Likewise.
16402 (grub_ofdisk_open): Use %p to print pointer values, and cast the
16403 pointers as (void *) to remove a warning.
16404 (grub_ofdisk_close): Likewise.
16405 (grub_ofdisk_read): Likewise.
16406 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
16407 returns, so make it return void to remove a warning.
16408 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
16409 Corresponding prototype change.
16410 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
16411 values, and cast the pointers as (void *) to remove a warning.
16412 (grub_mm_dump): Likewise.
16413 * conf/sparc64-ieee1275.mk: New file.
16414 * conf/sparc64-ieee1275.rmk: Likewise.
16415 * include/grub/sparc64/setjmp.h: Likewise.
16416 * include/grub/sparc64/types.h: Likewise.
16417 * include/grub/sparc64/ieee1275/console.h: Likewise.
16418 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
16419 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
16420 * include/grub/sparc64/ieee1275/time.h: Likewise.
16421 * kern/sparc64/cache.c: Likewise.
16422 * kern/sparc64/dl.c: Likewise.
16423 * kern/sparc64/ieee1275/init.c: Likewise.
16424 * kern/sparc64/ieee1275/openfw.c: Likewise.
16426 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
16428 * util/console.c (grub_ncurses_putchar): If C is greater than
16429 0x7f, set C to a question mark.
16430 (grub_ncurses_getcharwidth): New function.
16431 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
16434 * normal/menu.c (print_entry): Made aware of Unicode. First,
16435 convert TITLE to UCS-4, and predict the cursor position by
16438 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
16440 * kern/misc.c (grub_utf16_to_utf8): Likewise.
16442 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16444 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
16445 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
16448 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
16449 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
16450 grub_strcpy and grub_strlen. Take it into account that a space
16451 character is inserted as a delimiter.
16453 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16455 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
16456 invalid magic in the error.
16458 * commands/search.c: New file.
16460 * util/grub-emu.c (main): Call grub_search_init and
16463 * kern/rescue.c (grub_rescue_print_disks): Removed.
16464 (grub_rescue_print_devices): New function.
16465 (grub_rescue_cmd_ls): Use grub_device_iterate with
16466 grub_rescue_print_devices instead of grub_disk_dev_iterate with
16467 grub_rescue_print_disks.
16469 * kern/partition.c (grub_partition_iterate): Return the result of
16470 PARTMAP->ITERATE instead of GRUB_ERRNO.
16472 * kern/device.c: Include grub/partition.h.
16473 (grub_device_iterate): New function.
16475 * include/grub/partition.h (grub_partition_iterate): Return int
16476 instead of grub_err_t.
16478 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
16480 [GRUB_UTIL] (grub_search_fini): Likewise.
16482 * include/grub/device.h (grub_device_iterate): New prototype.
16484 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
16486 (pkgdata_MODULES): Added search.mod.
16487 (search_mod_SOURCES): New variable.
16488 (search_mod_CFLAGS): Likewise.
16490 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
16491 (pkgdata_MODULES): Added search.mod.
16492 (search_mod_SOURCES): New variable.
16493 (search_mod_CFLAGS): Likewise.
16495 * commands/ls.c (grub_ls_list_disks): Renamed to ...
16496 (grub_ls_list_devices): ... this, and use grub_device_iterate.
16497 All callers changed.
16499 * DISTLIST: Added commands/search.c.
16501 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
16503 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
16505 (grub_getcharwidth): New function.
16507 * kern/misc.c (grub_utf8_to_ucs4): New function.
16509 * include/grub/term.h (struct grub_term): Added a new member
16511 (grub_getcharwidth): New prototype.
16513 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
16515 * term/i386/pc/console.c (map_char): New function. Segregated from
16516 grub_console_putchar.
16517 (grub_console_putchar): Use map_char.
16518 (grub_console_getcharwidth): New function.
16519 (grub_console_term): Specified grub_console_getcharwidth as
16522 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
16523 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
16525 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
16527 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
16528 on grub_strtoul completely.
16529 (write_char): Declare local variables in the beginning of the
16531 (grub_vesafb_getcharwidth): New function.
16532 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
16535 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
16537 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
16538 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
16539 commands/i386/pc/vbetest.c.
16541 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
16542 call grub_vbe_get_controller_info again, because the returned
16543 information is volatile.
16544 (grub_vbe_set_video_mode): Mostly rewritten.
16545 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
16546 grub_vbe_status_t correctly.
16547 (grub_vbe_get_video_mode_info): Likewise.
16548 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
16549 several if statements.
16551 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
16552 * commands/i386/pc/vbeinfo.c: ... this.
16554 * commands/i386/pc/vbe_test.c: Renamed to ...
16555 * commands/i386/pc/vbetest.c: ... this.
16557 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
16559 (grub_cmd_vbeinfo): ... this. Save video modes before
16560 iterating. Skip a video mode, if it is not available, not enough
16561 information is given or it is monochrome. Show the memory
16562 model. Leave the interpretation of MODEVAR to grub_strtoul
16564 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
16565 (GRUB_MOD_FINI): Likewise.
16567 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
16568 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
16569 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
16570 duplicated grub_env_get. Leave the interpretation of MODEVAR to
16571 grub_strtoul completely.
16572 (real2pm): Removed.
16573 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
16574 (GRUB_MOD_FINI): Likewise.
16576 * normal/misc.c: Include grub/mm.h.
16578 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
16579 vbe_list_modes with vbetest.mod and vbeinfo.mod.
16580 (vbe_list_modes_mod_SOURCES): Removed.
16581 (vbe_list_modes_mod_CFLAGS): Likewise.
16582 (vbe_test_mod_SOURCES): Likewise.
16583 (vbe_test_mod_CFLAGS): Likewise.
16584 (vbeinfo_mod_SOURCES): New variable.
16585 (vbeinfo_mod_CFLAGS): Likewise.
16586 (vbetest_mod_SOURCES): Likewise.
16587 (vbetest_mod_CFLAGS): Likewise.
16589 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
16591 * normal/misc.c: New file.
16593 * DISTLIST: Added normal/misc.c.
16595 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
16596 DISK to HOOK. Call HOOK with DISK.
16597 * partmap/apple.c (apple_partition_map_iterate): Likewise.
16598 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16599 * partmap/sun.c (sun_partition_map_iterate): Likewise.
16601 * normal/menu_entry.c (struct screen): Added a new member
16602 "completion_shown".
16603 (completion_buffer): New global variable.
16604 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
16605 (store_completion): New function.
16606 (complete): Likewise.
16607 (clear_completions): Likewise.
16608 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
16609 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
16610 a tab, call complete.
16612 * normal/completion.c (disk_dev): Removed.
16613 (print_simple_completion): Likewise.
16614 (print_partition_completion): Likewise.
16615 (print_func): New global variable.
16616 (add_completion): Do not take the arguments WHAT or PRINT any
16617 longer. Added a new argument TYPE. Instead of printing directly,
16618 call PRINT_FUNC if not NULL.
16619 All callers changed.
16620 (complete_device): Use a local variable DEV instead of
16621 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
16622 (grub_normal_do_completion): Take a new argument HOOK. Do not
16623 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
16624 empty string, return NULL instead.
16625 All callers changed.
16627 * normal/cmdline.c (print_completion): New function.
16629 * kern/partition.c (grub_partition_iterate): Add an argument DISK
16631 All callers changed.
16633 * kern/disk.c (grub_print_partinfo): Removed.
16635 * include/grub/partition.h (struct grub_partition_map): Add a new
16636 argument DISK into HOOK of ITERATE.
16637 (grub_partition_iterate): Add a new argument DISK to HOOK.
16639 * include/grub/normal.h (enum grub_completion_type): New enum.
16640 (grub_completion_type_t): New type.
16641 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
16642 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
16643 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
16644 (GRUB_COMPLETION_TYPE_FILE): Likewise.
16645 (grub_normal_do_completion): Added a new argument HOOK.
16646 (grub_normal_print_device_info): New prototype.
16648 * include/grub/disk.h (grub_print_partinfo): Removed.
16650 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
16651 (normal_mod_SOURCES): Likewise.
16652 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16653 (normal_mod_SOURCES): Likewise.
16655 * commands/ls.c (grub_ls_list_disks): Use
16656 grub_normal_print_device_info instead of grub_print_partinfo. Free
16658 (grub_ls_list_files): Use grub_normal_print_device_info instead of
16659 duplicating the code.
16661 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
16663 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
16664 follow GCS more precisely.
16665 * commands/i386/pc/vbe_test.c: Likewise.
16666 * include/grub/i386/pc/vbe.h: Likewise.
16667 * term/i386/pc/vesafb.c: Likewise.
16668 * video/i386/pc/vbe.c: Likewise.
16670 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
16672 * DISTLIST: Added term/i386/pc/vesafb.c
16673 DISTLIST: Added video/i386/pc/vbe.c
16674 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
16675 DISTLIST: Added commands/i386/pc/vbe_test.c.
16676 * commands/i386/pc/vbe_list_modes.c: New file.
16677 * commands/i386/pc/vbe_test.c: Likewise.
16678 * term/i386/pc/vesafb.c: Likewise.
16679 * video/i386/pc/vbe.c: Likewise.
16680 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
16681 (grub_vbe_probe) Added prototype.
16682 (grub_vbe_set_video_mode) Likewise.
16683 (grub_vbe_get_video_mode) Likewise.
16684 (grub_vbe_get_video_mode_info) Likewise.
16685 (grub_vbe_set_pixel_rgb) Likewise.
16686 (grub_vbe_set_pixel_index) Likewise.
16687 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
16688 (pkgdata_MODULES): Added vesafb.mod.
16689 (pkgdata_MODULES): Added vbe_list_modes.mod.
16690 (pkgdata_MODULES): Added vbe_test.mod.
16691 (vbe_mod_SOURCES): Added.
16692 (vbe_mod_CFLAGS): Likewise.
16693 (vesafb_mod_SOURCES): Likewise.
16694 (vesafb_mod_CFLAGS): Likewise.
16695 (vbe_list_modes_mod_SOURCES): Likewise.
16696 (vbe_list_modes_mod_CFLAGS): Likewise.
16697 (vbe_test_mod_SOURCES): Likewise.
16698 (vbe_test_mod_CFLAGS): Likewise.
16700 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
16702 * normal/command.c (grub_command_execute): If INTERACTIVE is
16703 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
16704 CMDLINE. Disable the pager if INTERACTIVE is true.
16705 All callers are changed.
16707 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
16708 before reading a config file.
16709 * normal/main.c (read_config_file): Even if a command is not
16710 found, register it if it is within an entry.
16712 * util/grub-emu.c: Include sys/types.h and unistd.h.
16713 (options): Added --hold.
16714 (struct arguments): Added a new member "hold".
16715 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
16717 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
16718 cleared by a debugger, if it is not zero.
16720 * include/grub/normal.h (grub_command_execute): Add an argument
16723 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
16725 * DISTLIST: Added include/grub/i386/pc/vbe.h.
16727 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
16729 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
16730 program with another one, because the old one didn't detect a bug
16731 in gcc-3.4. Always use regparm 2, because the new test is still
16732 not enough for gcc-4.0. Someone must investigate a simple test
16733 case which detects a bug in gcc-4.0.
16735 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
16737 * DISTLIST: Added normal/completion.c.
16739 * normal/completion.c: New file.
16741 * term/i386/pc/console.c (grub_console_getwh): New function.
16742 (grub_console_term): Assign grub_console_getwh to getwh.
16744 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
16745 function is defined in normal/completion.c as
16746 grub_normal_do_completion.
16747 (grub_cmdline_get): Use grub_normal_do_completion instead of
16750 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
16751 returns non-zero, otherwise return 0.
16752 (grub_partition_iterate): First, probe the partition map. Then,
16753 call ITERATE only for this partition map.
16755 * kern/misc.c (grub_strncmp): Rewritten.
16757 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
16758 returns non-zero. Otherwise return 0.
16760 * include/grub/partition.h (grub_partition_map_iterate): Return
16761 int instead of void.
16763 * include/grub/normal.h (grub_normal_do_completion): New prototype.
16765 * include/grub/misc.h (grub_strncmp): Change the type of N to
16768 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
16771 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
16772 unsigned explicitly before comparing it with I.
16774 * kern/main.c (grub_env_write_root): Add the attribute unused into
16777 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
16778 normal/completion.c.
16779 (normal_mod_SOURCES): Likewise.
16780 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16781 (normal_mod_SOURCES): Likewise.
16783 * normal/command.c (grub_iterate_commands): If ITERATE returns
16784 non-zero, return one immediately.
16786 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
16788 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
16789 * kern/i386/pc/startup.S: Updated Global Descriptor table's
16791 (grub_vbe_get_controller_info): New function.
16792 (grub_vbe_get_mode_info): Likewise.
16793 (grub_vbe_set_mode): Likewise.
16794 (grub_vbe_get_mode): Likewise.
16795 (grub_vbe_set_memory_window): Likewise.
16796 (grub_vbe_get_memory_window): Likewise.
16797 (grub_vbe_set_scanline_length): Likewise.
16798 (grub_vbe_get_scanline_length): Likewise.
16799 (grub_vbe_set_display_start): Likewise.
16800 (grub_vbe_get_display_start): Likewise.
16801 (grub_vbe_set_palette_data): Likewise.
16802 * include/grub/i386/pc/vbe.h: New file.
16804 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
16806 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
16807 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
16808 * DISTLIST: Likewise.
16809 * kern/ieee1275/of.c: Moved to ...
16810 * kern/ieee1275/ieee1275.c: ... here.
16812 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
16814 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
16815 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
16816 Pass 0 as `end' parameter to grub_strtoul().
16818 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
16820 * include/grub/powerpc/ieee1275/console.h: Do not include
16821 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
16823 (grub_console_cur_color): Remove i386-specific prototype.
16824 (grub_console_real_putchar): Likewise.
16825 (grub_console_checkkey): Likewise.
16826 (grub_console_getkey): Likewise.
16827 (grub_console_getxy): Likewise.
16828 (grub_console_gotoxy): Likewise.
16829 (grub_console_cls): Likewise.
16830 (grub_console_setcursor): Likewise.
16831 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
16832 Include <grub/machine/console.h>.
16833 * term/ieee1275/ofconsole.c: Likewise.
16835 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
16837 * Makefile.in (LIBLZO): New variable.
16839 * configure.ac: Check for LZO version 2.
16841 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
16842 lzo/lzo1x.h instead of lzo1x.h.
16844 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
16847 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
16848 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
16850 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
16851 copying the data from PARTITION to P.
16853 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16855 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
16856 negative, unload the module.
16858 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
16859 map is "pc_partition_map" but not "pc".
16860 (usage): Fix the description. The options are --boot-image and
16861 --core-image but not --boot-file or --core-file.
16862 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
16863 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
16866 * util/i386/pc/grub-install.in: Do not specify --boot-file or
16867 --core-file. Specify INSTALL_DEVICE as an argument.
16869 * util/console.c: Include config.h.
16870 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
16871 [HAVE_NCURSES_H]: Include ncurses.h.
16872 [HAVE_CURSES_H]: Include curses.h.
16873 [!A_NORMAL] (A_NORMAL): Defined as zero.
16874 [!A_STANDOUT] (A_STANDOUT): Likewise.
16876 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
16878 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
16880 * configure.ac: Check for curses libraries and headers.
16882 * Makefile.in (LIBCURSES): New variable.
16884 * genmk.rb (Script::rule): Set the executable bits.
16886 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
16887 name of the PC partition map is "pc_partition_map" but not "pc".
16889 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16891 * util/i386/pc/grub-install.in (grub_probefs): New variable.
16892 (modules): Likewise.
16893 (usage): Added descriptions for --modules and --grub-probefs.
16894 Handle --modules and --grub-probefs. Save the arguments in MODULES
16895 and GRUB_PROBEFS, respectively.
16896 Auto-detect a filesystem module against GRUBDIR. If the result is
16897 empty and modules are not specified explicitly, abort the
16898 installation. Add the result to MODULES.
16900 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
16901 disk/powerpc/ieee1275/ofdisk.c,
16902 include/grub/powerpc/ieee1275/init.h and
16903 term/powerpc/ieee1275/ofconsole.c.
16904 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
16905 term/ieee1275/ofconsole.c.
16907 * include/grub/powerpc/ieee1275/console.h: Resurrected.
16909 * COPYING: Upgraded to the latest version. Only the address of the
16910 FSF office has changed.
16912 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
16914 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
16915 kern/ieee1275.c with kern/ieee1275/of.c.
16917 * kern/ieee1275.c: Moved to ...
16918 * kern/ieee1275/of.c: ... here.
16920 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
16922 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
16925 * config.guess: Updated to the latest version from gnulib.
16926 * config.sub: Likewise.
16927 * install.sh: Likewise.
16928 * mkinstalldirs: Likewise.
16930 * include/grub/console.h: Removed. This file is arch-specific. Do
16931 not put this in include/grub.
16933 * include/grub/i386/pc/console.h: Resurrected.
16935 * util/console.c: Include grub/machine/console.h instead of
16937 * util/grub-emu.c: Likewise.
16939 2005-08-04 Marco Gerards <metgerards@student.han.nl>
16941 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
16944 From Vincent Pelletier <subdino2004@yahoo.fr>
16945 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
16946 Redefined to use grub_getwh.
16947 (grub_term): New member named getwh.
16948 (grub_getwh): New prototype.
16949 * kern/term.c (grub_getwh): New function.
16950 * term/i386/pc/console.c (grub_console_getwh): New function.
16951 (grub_console_term): New member `getwh'.
16952 * term/i386/pc/vga.c (grub_vga_getwh): New function.
16953 (grub_vga_term): New member `getwh'.
16954 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
16956 (grub_ofconsole_getw): New function.
16957 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
16958 (grub_ofconsole_term): New field named getwh and new initial
16961 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
16963 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
16964 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
16965 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
16966 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
16967 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
16968 of <grub/machine/ieee1275.h>.
16969 * commands/ieee1275/reboot.c: Likewise.
16970 * boot/powerpc/ieee1275/ieee1275.c: Move ...
16971 * kern/ieee1275.c: ... to here. All users updated. Change all
16972 parameter structs to use new type `grub_ieee1275_cell_t'.
16973 * term/powerpc/ieee1275/ofconsole.c: Move ...
16974 * term/ieee1275/ofconsole.c: ... to here. All users updated.
16975 * disk/powerpc/ieee1275/ofdisk.c: Move ...
16976 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
16977 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
16979 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
16980 Remove unused prototypes. All users updated.
16981 * include/grub/powerpc/ieee1275/console.h: Removed.
16982 * include/grub/powerpc/ieee1275/ieee1275.h: Define
16983 `grub_ieee1275_cell_t'.
16984 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
16985 Cast comparisons with -1 to the correct type.
16986 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
16987 type to match `grub_ieee1275_entry_fn'.
16989 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
16991 * DISTLIST: Added util/i386/pc/grub-probefs.c.
16993 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
16994 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
16996 (grub_probefs_SOURCES): New variable.
16998 * util/i386/pc/grub-probefs.c: New file.
17000 * util/i386/pc/grub-setup.c (main): Call
17001 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
17002 grub_hfs_init and grub_jfs_init to initialize the system. Call
17003 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17004 grub_pc_partition_map_fini to finish the system.
17006 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17008 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17010 (grub_multiboot_load_elf32): Likewise.
17011 (grub_multiboot_is_elf64): Likewise.
17012 (grub_multiboot_load_elf64): Likewise.
17013 (grub_multiboot_load_elf): Likewise.
17014 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17015 an ELF32 or ELF64 file.
17016 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17018 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17019 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17020 NULL before calling FS->LABEL.
17021 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17022 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17023 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17024 before calling FS->LABEL.
17026 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17028 * util/i386/pc/grub-install.in (datadir): New variable.
17030 (pkgdatadir): New variable.
17031 (pkglibdir): Removed.
17033 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17035 * DISTLIST: Added util/i386/pc/grub-install.in.
17037 * util/i386/pc/grub-install.in: New file.
17039 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17040 (grub_install_SOURCES): Likewise.
17042 * genmk.rb: Added support for scripts.
17043 (Script): New class.
17044 (scripts): New variable.
17046 * Makefile.in (install-local): Install sbin_SCRIPTS by
17048 (uninstall): Remove sbin_SCRIPTS.
17050 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17051 device, try to get a GRUB device by
17052 grub_util_biosdisk_get_grub_dev.
17055 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
17056 description for --device-map.
17058 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17060 Change the semantics of variable hooks. They now return strings
17061 instead of error values.
17063 * util/i386/pc/grub-setup.c: Include grub/env.h.
17064 (setup): Use grub_device_set_root instead of grub_env_set.
17066 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
17067 grub_env_get instead of grub_device_set_root and
17068 grub_device_get_root, respectively.
17070 * kern/main.c (grub_env_write_root): New function.
17071 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
17072 grub_env_set instead of grub_device_set_root.
17074 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
17076 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
17077 rather than calling ENV->WRITE_HOOK afterwards.
17078 (grub_env_get): Return the result of ENV->READ_HOOK rather than
17079 passing a pointer of a pointer.
17080 (grub_register_variable_hook): Change the types of "read_hook" and
17081 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
17083 Allocate the default empty string on the heap, because this string
17084 may be freed later.
17086 * kern/device.c: Include grub/env.h.
17087 (grub_device_set_root): Removed.
17088 (grub_device_get_root): Likewise.
17089 (grub_device_open): Use grub_env_get instead of
17090 grub_device_get_root.
17092 * include/grub/env.h (grub_env_read_hook_t): New type.
17093 (grub_env_write_hook_t): Likewise.
17094 (grub_env_var): Change the types of "read_hook" and "write_hook"
17095 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
17096 (grub_register_variable_hook): Likewise.
17098 * include/grub/device.h (grub_device_set_root): Removed.
17099 (grub_device_set_root): Likewise.
17101 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
17102 make sure that DIRNAME terminates with '/', so that
17103 grub_fat_find_dir will fail if PATH is not a directory.
17105 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
17107 Use the qualifier auto for print_files and print_files_long.
17108 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
17110 Put a newline only if there is no error.
17111 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
17114 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17116 * kern/partition.c (grub_partition_probe): Initialize PART to
17117 NULL. Otherwise, when no partition map is registered, this returns
17120 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
17122 * partmap/apple.c (apple_partition_map_iterate): Check if POS
17123 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
17126 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
17128 * commands/ls.c (grub_ls_list_disks): Print the filesystem
17129 information on each device, if it does not have partitions. Print
17130 "Device" instead of "Disk", because this function is not specific
17133 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
17134 static to ensure that it is put on the memory rather than a
17137 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17139 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
17140 (grub_cat_init): Likewise.
17141 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
17142 (options): Likewise.
17143 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17144 (grub_configfile_init): Likewise.
17145 * font/manager.c (GRUB_MOD_INIT): Likewise.
17146 * commands/help.c (GRUB_MOD_INIT): Likewise.
17147 (grub_help_init): Likewise.
17148 * normal/command.c (grub_command_init): Likewise.
17149 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
17150 * disk/loopback.c (grub_loop_init): Likewise.
17151 (GRUB_MOD_INIT): Likewise.
17152 * commands/ls.c (grub_ls_init): Likewise.
17153 (GRUB_MOD_INIT): Likewise.
17154 (options): Likewise.
17155 * commands/boot.c (grub_boot_init): Likewise.
17156 (GRUB_MOD_INIT): Likewise.
17157 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
17158 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
17159 (GRUB_MOD_INIT): Likewise.
17160 * commands/cmp.c (grub_cmp_init): Likewise.
17161 (GRUB_MOD_INIT): Likewise.
17163 * normal/arg.c: Use <> instead of "" to include header files.
17164 (SHORT_ARG_HELP): New macro.
17165 (SHORT_ARG_USAGE): Likewise.
17166 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
17167 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
17169 (find_short): Check if C is 'h' or 'u' explicitly.
17170 (grub_arg_show_help): Use space characters instead of tabs. Treat
17171 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
17172 are shown with --help and --usage only if they are not used for
17173 the command itself.
17174 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
17177 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
17178 const into "longarg". Change the type of "shortarg" to int.
17180 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17182 * boot/i386/pc/boot.S (boot_drive_check): New label.
17184 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
17187 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
17188 which do not pass a boot drive correctly. Copied from GRUB Legacy.
17190 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17192 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
17193 When turning off Gate A20, skip the check and return immediately,
17194 because this is not fatal usually.
17196 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17198 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
17199 be 0x7C00 instead of 0x8000.
17201 * boot/i386/pc/pxeboot.S: Rewritten.
17203 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
17205 (gate_a20_check_state): Read a byte from 0x108000. Invert the
17208 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
17210 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
17211 robustness. This routine now supports a BIOS call and System
17212 Control Port A to modify the gate A20.
17214 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17215 Increased to 0x440.
17217 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
17219 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
17220 device path and resulting ihandle.
17221 (grub_ofdisk_close): dprintf the ihandle being closed.
17222 (grub_ofdisk_read): dprintf function parameters.
17223 * kern/mm.c (grub_mm_init_region): Likewise.
17224 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
17225 (grub_linux_boot): dprintf the Linux entry point, initrd address and
17226 size, and boot arguments.
17227 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
17228 before loading into memory.
17229 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
17230 before loading into memory.
17232 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
17234 * kern/mm.c: Added much documentation.
17235 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
17236 8, set to 5 instead of 8.
17238 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17240 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
17242 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
17243 (grub_mkdevicemap_SOURCES): New variable.
17245 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
17246 lib/device.c of GRUB Legacy.
17248 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17250 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
17251 instead of PATH is NULL.
17253 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
17255 * commands/cmp.c (BUFFER_SIZE): New macro.
17256 (grub_cmd_cmp): Close the right file at the right time. Compare
17257 only data just read. Don't report files of different size as
17258 identical. Dynamically allocate buffers. Move variable
17259 declarations at the beginning of function.
17261 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
17263 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
17266 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
17268 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
17269 when backspace is pressed at beginning of line.
17271 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
17273 * DISTLIST: Added genfslist.sh.
17275 * normal/main.c (fs_module_list): New variable.
17276 (autoload_fs_module): New function.
17277 (read_fs_list): Likewise.
17278 (grub_normal_execute): Call read_fs_list.
17280 * kern/fs.c (grub_fs_autoload_hook): New variable.
17281 (grub_fs_probe): Added support for auto-loading.
17283 * include/grub/normal.h (struct grub_fs_module_list): New struct.
17284 (grub_fs_module_list_t): New type.
17286 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
17287 (grub_fs_autoload_hook): New prototype.
17289 * genfslist.sh: New file.
17291 * genmk.rb: Added a rule to generate a filesystem list.
17293 2005-06-30 Marco Gerards <metgerards@student.han.nl>
17295 * configure.ac: Fix the test for cross-compiling.
17297 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
17298 define GRUB_UTIL anymore.
17300 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
17301 so this function works on other systems than just big endian.
17302 (load_modules): Likewise.
17303 (add_segments): Likewise.
17305 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
17307 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
17308 contains `l' modifier, get a long from va_arg().
17310 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
17312 * kern/mm.c (grub_free): If the next free block which is being
17313 merged is the first free block, set the first block to the block
17315 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
17317 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17319 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
17320 `grub_ieee1275_chosen'.
17322 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
17324 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
17325 (grub_ieee1275_chosen): New variable.
17326 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
17328 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
17329 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
17330 Rename first argument to `phandle' for consistency.
17331 (grub_ieee1275_get_property_length): Likewise.
17332 (grub_ieee1275_next_property): Likewise. Change type of first argument
17333 to grub_ieee1275_phandle_t.
17334 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
17335 Move export next to declaration.
17336 (grub_ieee1275_chosen): New variable.
17337 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
17338 Correct cosmetic typo.
17339 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
17340 `grub_ieee1275_chosen'.
17341 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
17342 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
17343 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
17344 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
17345 `grub_ieee1275_chosen'.
17347 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
17349 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
17351 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
17352 /chosen/bootargs as "variable=value" pairs.
17354 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
17356 * include/grub/misc.h (grub_dprintf): New macro.
17357 (grub_real_dprintf): New prototype.
17358 (grub_strword): Likewise.
17359 (grub_iswordseparator): Likewise.
17360 * kern/misc.c (grub_real_dprintf): New function.
17361 (grub_strword): Likewise.
17362 (grub_iswordseparator): Likewise.
17364 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
17366 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
17367 (roundup): Remove macro.
17368 (grub_ieee1275_flags): Make static.
17369 (grub_ieee1275_realmode): Remove.
17370 (grub_ieee1275_test_flag): New function.
17371 (grub_ieee1275_set_flag): Likewise.
17372 (find_options): Rename to `grub_ieee1275_find_options'; update
17373 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
17374 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
17375 (cmain): New prototype.
17376 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
17377 `grub_ieee1275_flags' directly.
17378 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
17379 machine/biosdisk.h.
17380 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
17381 Don't include grub/machine/init.h.
17382 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
17383 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
17385 (grub_ieee1275_realmode): Likewise.
17386 (grub_ieee1275_flag): New enum.
17387 (grub_ieee1275_test_flag): New prototype.
17388 (grub_ieee1275_set_flag): New prototype.
17389 * include/grub/powerpc/ieee1275/init.h: Remove file.
17390 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
17391 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
17392 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
17393 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
17395 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
17396 `grub_ieee1275_test_flag'.
17397 (grub_ieee1275_encode_devname): Likewise.
17399 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
17401 * include/grub/powerpc/ieee1275/ieee1275.h
17402 (grub_ieee1275_encode_devname): New prototype.
17403 (grub_ieee1275_get_filename): Likewise.
17404 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
17406 (grub_set_prefix): Likewise.
17407 (grub_machine_init): Call grub_set_prefix.
17408 * kern/powerpc/ieee1275/openfw.c: Fix typos.
17409 (grub_parse_type): New enum.
17410 (grub_ieee1275_get_devargs): New function.
17411 (grub_ieee1275_get_devname): Likewise.
17412 (grub_ieee1275_parse_args): Likewise.
17413 (grub_ieee1275_get_filename): Likewise.
17414 (grub_ieee1275_encode_devname): Likewise.
17416 2005-03-30 Marco Gerards <metgerards@student.han.nl>
17418 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
17419 `grub_loader_unset'.
17421 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
17423 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
17424 instead of grub_ieee1275_interpret.
17425 (grub_halt_init): New function.
17426 (grub_halt_fini): Likewise.
17427 (GRUB_MOD_INIT): Correct message grammar.
17428 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
17429 instead of grub_ieee1275_interpret.
17430 (grub_reboot_init): New function.
17431 (grub_reboot_fini): Likewise.
17432 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
17433 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
17434 util/i386/pc/misc.c with commands/ieee1275/halt.c,
17435 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
17436 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
17438 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
17440 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
17442 (grub_halt): Likewise.
17443 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
17444 (cmain): Remove __attribute__((unused)).
17445 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
17446 (grub_heap_len): Likewise.
17447 (grub_machine_fini): New function.
17448 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
17449 (grub_halt): Likewise.
17450 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
17452 * util/powerpc/ieee1275/misc.c: New file.
17454 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
17456 * DISTLIST: New file.
17457 * gendistlist.sh: Likewise.
17459 * Makefile.in (COMMON_DISTFILES): Removed.
17460 (BOOT_DISTFILES): Likewise.
17461 (CONF_DISTFILES): Likewise.
17462 (DISK_DISTFILES): Likewise.
17463 (FS_DISTFILES): Likewise.
17464 (INCLUDE_DISTFILES): Likewise.
17465 (KERN_DISTFILES): Likewise.
17466 (LOADER_DISTFILES): Likewise.
17467 (TERM_DISTFILES): Likewise.
17468 (UTIL_DISTFILES): Likewise.
17469 (DISTFILES): Likewise.
17470 (uninstall): Uninstall files in $(pkgdata_DATA).
17471 (DISTLIST): New target.
17472 (distdir): Use the contents of the file DISTLIST to get a list of
17475 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
17477 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
17478 descriptor. This is ported from GRUB Legacy.
17480 * gencmdlist.sh: Added an extra semicolon to make it work with
17481 old sed versions. Reported by Robert Bihlmeyer
17482 <robbe@orcus.priv.at>.
17484 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
17486 Automatic loading of commands is supported.
17488 * normal/main.c (read_command_list): New function.
17489 (grub_normal_execute): Call read_command_list.
17491 * normal/command.c (grub_register_command): Return zero or CMD.
17492 Allocate CMD->NAME from the heap.
17493 Initialize CMD->MODULE_NAME to zero.
17494 Find the same name as well. If the same command is found and it is
17495 a dummy command, overwrite members. If it is not a dummy command,
17497 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
17498 (grub_command_find): If a dummy command is found, load a module
17499 and retry to find a command only once.
17501 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
17502 make sure that each command is loaded.
17504 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
17506 (struct grub_command): Remove const from the member `name'.
17507 Add a new member `module_name'.
17508 (grub_register_command): Return grub_command_t.
17510 * commands/help.c (grub_cmd_help): Call grub_command_find to make
17511 sure that each command is loaded.
17513 * genmk.rb (PModule::rule): Specify a module name without the
17514 suffix ".mod" to gencmdlist.sh.
17516 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
17518 * gencmdlist.sh: New file.
17520 * genmk.rb (PModule::rule): Generate a rule for a command list.
17522 Generate command.lst from $(COMMANDFILES).
17524 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
17525 (DATA): Added $(pkgdata_DATA).
17526 (install-local): Install files in $(pkgdata_DATA).
17528 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
17530 * term/i386/pc/vga.c (debug_command): Removed.
17531 (GRUB_MOD_INIT): Do not register the command "debug".
17533 From Hollis Blanchard:
17534 * commands/configfile.c: New file.
17535 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
17536 commands/configfile.c.
17537 (pkgdata_MODULES): Added configfile.mod.
17538 (configfile_mod_SOURCES): New variable.
17539 (configfile_mod_CFLAGS): Likewise.
17540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17541 commands/configfile.c.
17542 (pkgdata_MODULES): Added configfile.mod.
17543 (configfile_mod_SOURCES): New variable.
17544 (configfile_mod_CFLAGS): Likewise.
17545 * util/grub-emu.c (main): Call grub_configfile_init and
17546 grub_configfile_fini.
17547 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
17549 [GRUB_UTIL] (grub_configfile_fini): Likewise.
17551 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
17553 * normal/arg.c (grub_arg_show_help): Do not show the bug report
17556 * commands/help.c (grub_cmd_help): Do not print newlines after
17557 the last command in print_command_help.
17559 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
17561 * commands/default.h: New file.
17562 * commands/timeout.h: Likewise.
17563 * normal/context.c: Likewise.
17565 * util/misc.c: Do not include sys/times.h.
17566 Include sys/time.h and grub/machine/time.h.
17567 (grub_get_rtc): Rewritten with gettimeofday.
17569 * util/grub-emu.c (main): Call grub_default_init and
17570 grub_timeout_init before grub_normal_init, and call
17571 grub_timeout_fini and grub_default_fini after grub_main.
17573 * util/console.c (grub_ncurses_checkkey): Return the read
17576 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
17579 * normal/main.c (read_config_file): Push MENU. If this fails,
17580 print an error and wait for a user input.
17581 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
17582 If a menu is empty or an error occurs, pop MENU.
17583 (grub_normal_execute): Pop and free MENU after grub_menu_run
17586 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
17588 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
17590 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
17592 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
17594 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
17597 * include/grub/normal.h (struct grub_menu_list): New struct.
17598 (grub_menu_list_t): New type.
17599 (struct grub_context): New struct.
17600 (grub_context_t): New type.
17601 (grub_register_command): Got rid of EXPORT_FUNC.
17602 (grub_unregister_command): Likewise.
17603 (grub_context_get): New prototype.
17604 (grub_context_get_current_menu): Likewise.
17605 (grub_context_push_menu): Likewise.
17606 (grub_context_pop_menu): Likewise.
17607 [GRUB_UTIL] (grub_default_init): Likewise.
17608 [GRUB_UTIL] (grub_default_fini): Likewise.
17609 [GRUB_UTIL] (grub_timeout_init): Likewise.
17610 [GRUB_UTIL] (grub_timeout_fini): Likewise.
17612 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
17613 commands/timeout.c and normal/context.c.
17614 (pkgdata_MODULES): Added default.mod and timeout.mod.
17615 (normal_mod_SOURCES): Added normal/context.c.
17616 (default_mod_SOURCES): New variable.
17617 (default_mod_CFLAGS): Likewise.
17618 (timeout_mod_SOURCES): Likewise.
17619 (timeout_mod_CFLAGS): Likewise.
17620 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
17622 (pkgdata_MODULES): Added default.mod and timeout.mod.
17623 (normal_mod_SOURCES): Added normal/context.c.
17624 (default_mod_SOURCES): New variable.
17625 (default_mod_CFLAGS): Likewise.
17626 (timeout_mod_SOURCES): Likewise.
17627 (timeout_mod_CFLAGS): Likewise.
17629 * Makefile.in (all-local): Added $(MKFILES).
17631 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
17633 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
17634 (grub_emu_SOURCES): Likewise.
17635 (pkgdata_MODULES): Add `sun.mod'.
17636 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
17637 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17639 (pkgdata_MODULES): Add `sun.mod'.
17640 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
17641 * include/grub/partition.h (grub_sun_partition_map_init): New
17643 (grub_sun_partition_map_fini): Likewise.
17644 * partmap/sun.c: New file.
17645 * util/grub-emu.c (main): Initialize and de-initialize the sun
17646 partitionmap support.
17648 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
17650 This implements an Emacs-like menu entry editor.
17652 * normal/menu_entry.c: New file.
17654 * util/console.c (grub_ncurses_putchar): Translate some Unicode
17655 characters to ASCII.
17656 (saved_char): New variable.
17657 (grub_ncurses_checkkey): Rewritten completely.
17658 (grub_ncurses_getkey): Likewise.
17659 (grub_ncurses_init): Call raw instead of cbreak.
17661 * normal/menu.c (print_entry): Do not put a space.
17662 (init_page): Renamed to ...
17663 (grub_menu_init_page): ... this. All callers changed.
17664 (edit_menu_entry): Removed.
17665 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
17667 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
17669 * kern/misc.c (grub_vprintf): Call grub_refresh.
17671 * normal/menu.c (DISP_LEFT): Renamed to ...
17672 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
17673 * normal/menu.c (DISP_UP): Renamed to ...
17674 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
17675 * normal/menu.c (DISP_RIGHT): Renamed to ...
17676 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
17677 * normal/menu.c (DISP_DOWN): Renamed to ...
17678 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
17679 * normal/menu.c (DISP_HLINE): Renamed to ...
17680 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
17681 * normal/menu.c (DISP_VLINE): Renamed to ...
17682 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
17683 * normal/menu.c (DISP_UL): Renamed to ...
17684 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
17685 * normal/menu.c (DISP_UR): Renamed to ...
17686 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
17687 * normal/menu.c (DISP_LL): Renamed to ...
17688 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
17689 * normal/menu.c (DISP_LR): Renamed to ...
17690 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
17691 * normal/menu.c (TERM_WIDTH): Renamed to ...
17692 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
17693 * normal/menu.c (TERM_HEIGHT): Renamed to ...
17694 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
17695 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
17696 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
17697 * normal/menu.c (TERM_MARGIN): Renamed to ...
17698 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
17699 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
17700 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
17701 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
17702 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
17703 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
17704 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
17705 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
17706 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
17707 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
17708 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
17709 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
17710 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
17711 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
17712 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
17713 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
17714 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
17715 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
17716 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
17717 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
17718 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
17719 All callers changed.
17721 * include/grub/normal.h: New prototype.
17723 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
17724 normal/menu_entry.c.
17725 (normal_mod_SOURCES): Likewise.
17726 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17727 (normal_mod_SOURCES): Likewise.
17729 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
17731 * include/grub/normal.h (grub_halt_init): New prototype.
17732 (grub_halt_fini): Likewise.
17733 (grub_reboot_init): Likewise.
17734 (grub_reboot_fini): Likewise.
17736 * util/grub-emu.c: Include signal.h.
17737 (main_env): New global variable.
17738 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
17740 (grub_machine_fini): New function.
17741 (main): Call grub_halt_init and grub_reboot_init before
17742 grub_main, and grub_reboot_fini and grub_halt_fini after it.
17743 Call setjmp with MAIN_ENV to go back afterwards.
17744 Call grub_machine_fini right before return.
17746 * include/grub/util/misc.h: Include setjmp.h.
17747 (main_env): New prototype.
17749 * include/grub/kernel.h (grub_machine_fini): New prototype.
17750 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
17751 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
17753 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
17754 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
17755 * term/i386/pc/console.c (grub_console_fini): Likewise.
17757 * util/i386/pc/misc.c: New file.
17759 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
17760 util/i386/pc/misc.c, commands/i386/pc/halt.c and
17761 commands/i386/pc/reboot.c.
17763 2005-02-14 Guillem Jover <guillem@hadrons.org>
17765 * include/grub/dl.h (grub_dl_check_header): New prototype.
17766 (grub_arch_dl_check_header): Change return type to grub_err_t,
17767 remove size parameter and export function. Update all callers.
17768 * kern/dl.c (grub_dl_check_header): New function.
17769 (grub_dl_load_core): Use `grub_dl_check_header' instead of
17770 `grub_arch_dl_check_header'. Check ELF type. Check if sections
17771 are inside the core.
17772 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
17773 independent ELF header checks.
17774 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
17775 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
17776 `grub_dl_check_header' instead of explicit checks. Check for the
17778 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
17779 `grub_dl_check_header' instead of explicit checks. Remove arch
17780 specific ELF header checks.
17782 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
17785 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
17787 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
17788 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
17790 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
17792 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
17793 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
17794 (part_map_iterate): Clear `grub_errno' and return 0 if
17795 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
17796 * partmap/amiga.c (amiga_partition_map_iterate): Return
17797 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
17798 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17800 2005-02-01 Guillem Jover <guillem@hadrons.org>
17802 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
17805 2005-01-31 Marco Gerards <metgerards@student.han.nl>
17807 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
17809 (grub_rescue_cmd_linux): New prototype.
17810 (grub_rescue_cmd_initrd): Likewise.
17811 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
17813 (grub_linux_release_mem): Release the memory for the initrd.
17814 (grub_load_linux): Renamed from this...
17815 (grub_rescue_cmd_linux): ...To this. Changed all callers.
17816 Changed `entry' not to be static. Loop over memory regions to
17817 find another one when the default fails.
17818 (grub_rescue_cmd_initrd): New function.
17819 (grub_linux_init): Remove function.
17820 (grub_linux_fini): Likewise.
17821 (GRUB_MOD_INIT): Register `initrd'.
17822 (GRUB_MOD_FINI): Unregister `initrd'.
17823 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
17825 (grub_linux_normal_fini): Likewise.
17826 (GRUB_MOD_INIT): Register `initrd'.
17827 (GRUB_MOD_FINI): Unregister `initrd'.
17829 2005-01-31 Marco Gerards <metgerards@student.han.nl>
17831 * commands/help.c: New file.
17832 * normal/arg.c (show_help): Renamed to...
17833 (grub_arg_show_help): ... this.
17834 * commands/i386/pc/halt.c: New file.
17835 * commands/i386/pc/reboot.c: Likewise.
17836 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
17837 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
17838 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
17839 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
17841 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17843 (pkgdata_MODULES): Add `help.mod'.
17844 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
17845 * grub/i386/pc/init.h (grub_reboot): New prototype.
17846 (grub_halt): Likewise.
17847 * include/grub/normal.h (grub_arg_show_help): New prototype.
17848 (grub_help_init): Likewise.
17849 (grub_help_fini): Likewise.
17850 * util/grub-emu.c (main): Initialize and deinitialize the help
17853 * normal/cmdline.c (grub_cmdline_get): Doc fix.
17855 * normal/command.c (grub_command_init): Fixed the description of
17856 the `set' and `unset' commands.
17858 2005-01-31 Marco Gerards <metgerards@student.han.nl>
17860 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
17862 * commands/ieee1275/halt.c: New file.
17863 * commands/ieee1275/reboot.c: Likewise.
17864 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
17865 `__attribute__ ((unused))'. Some GCS related fixed.
17866 (grub_suspend_init) [GRUB_UTIL]: Function removed.
17867 (grub_suspend_fini): Likewise.
17868 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
17870 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
17871 (halt_mod_CFLAGS): New variables.
17872 * include/grub/powerpc/ieee1275/ieee1275.h
17873 (grub_ieee1275_interpret): New prototype.
17875 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
17877 * include/grub/misc.h (memmove): New prototype.
17878 (memcpy): Likewise.
17880 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
17882 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
17883 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
17885 2005-01-22 Marco Gerards <metgerards@student.han.nl>
17887 * kern/misc.c (grub_strndup): Function rewritten.
17889 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
17891 * normal/menu.c (TERM_WIDTH): Macro redefined.
17892 (TERM_TOP_BORDER_Y): Likewise.
17893 (draw_border): Replaced while-loop by a for-loop. Make the number
17894 of lines consistent with the number of lines displayed in
17895 print_entries. Added a margin below the rectangle.
17896 (print_entry): Make the entry fit in the rectangle.
17897 (print_entries): Display the scroll arrows next to the right
17900 2005-01-21 Marco Gerards <metgerards@student.han.nl>
17902 * fs/minix.c (grub_minix_find_file): Reserve more space for
17903 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
17904 `grub_strncpy' to copy `path' into it.
17906 2005-01-21 Marco Gerards <metgerards@student.han.nl>
17908 Add the loopback device, a device via which files can be accessed
17911 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
17912 (pkgdata_MODULES): Add loopback.mod.
17913 (loopback_mod_SOURCES): New variable.
17914 (loopback_mod_CFLAGS): Likewise.
17915 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17917 (pkgdata_MODULES): Add loopback.mod.
17918 (loopback_mod_SOURCES): New variable.
17919 (loopback_mod_CFLAGS): Likewise.
17920 * disk/loopback.c: new file.
17921 * include/grub/normal.h (grub_loop_init): New prototype.
17922 (grub_loop_fini): New prototype.
17923 * util/grub-emu.c (main): Initialize and de-initialize loopback
17925 * include/grub/disk.h (grub_disk_dev_id): Add
17926 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
17928 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
17930 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
17932 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
17933 (suspend_mod_SOURCES): New variable.
17934 (suspend_mod_CFLAGS): Likewise.
17935 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
17937 * commands/ieee1275/suspend.c: New file.
17939 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17941 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
17942 ((unused))' to `__attribute__ ((used))'.
17943 (GRUB_MOD_FINI): Likewise.
17944 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
17945 * genmk.rb (PModule): Assign space to common symbols when linking
17948 2005-01-20 Marco Gerards <metgerards@student.han.nl>
17950 * include/grub/mm.h (grub_mm_init_region): Change the type of the
17951 `unsigned' arguments to `grub_size_t'.
17952 (grub_malloc): Likewise.
17953 (grub_realloc): Likewise.
17954 (grub_memalign): Likewise.
17955 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
17956 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
17957 * util/misc.c (grub_malloc): Likewise.
17958 (grub_realloc): Likewise.
17959 * kern/mm.c (get_header_from_pointer): Change the casts to
17960 `unsigned' into a cast to `grub_size_t'.
17962 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
17963 point to `currnode' when `currnode' is changed.
17965 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
17966 Schottelius <nico-linux@schottelius.org>.
17968 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
17970 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
17971 (note_path): Remove variable.
17972 (GRUB_IEEE1275_NOTE_NAME): New macro.
17973 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
17974 (grub_ieee1275_note_hdr): New structure.
17975 (grub_ieee1275_note_desc): Likewise.
17976 (grub_ieee1275_note): Likewise.
17977 (load_note): Remove `dir' argument. All callers updated. Remove
17978 `note_img' and `path'. Do not load a file from `note_path'.
17979 Initialize a struct grub_ieee1275_note and write that to `out'.
17980 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
17982 2005-01-05 Marco Gerards <metgerards@student.han.nl>
17984 * util/misc.c (grub_util_read_image): Revert last change. It
17985 called `grub_util_read_at', which seeks from the beginning of the
17988 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
17990 * TODO: Add note about endianness in grub-mkimage.
17991 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
17993 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
17994 (grub_mkimage_SOURCES): New target.
17995 * include/grub/kernel.h (grub_start_addr): Remove variable.
17996 (grub_end_addr): Likewise.
17997 (grub_total_module_size): Likewise.
17998 (grub_kernel_image_size): Likewise.
17999 (GRUB_MODULE_MAGIC): New constant.
18000 (grub_module_info): New structure.
18001 (grub_arch_modules_addr): New prototype.
18002 (grub_get_end_addr): Remove prototype.
18003 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18004 * include/grub/powerpc/ieee1275/kernel.h: New file.
18005 * include/grub/util/misc.h (grub_util_get_fp_size): New
18007 (grub_util_read_at): Likewise.
18008 (grub_util_write_image_at): Likewise.
18009 * kern/main.c (grub_get_end_addr): Remove function.
18010 (grub_load_modules): Call grub_arch_modules_addr instead of using
18011 grub_end_addr. Look for a grub_module_info struct in memory. Use
18012 the grub_module_info fields instead of calling grub_get_end_addr
18013 as loop conditions. Move grub_add_unused_region code here.
18014 (grub_add_unused_region): Remove function.
18015 * kern/i386/pc/init.c: Include grub/cache.h.
18016 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18017 one call to add_mem_region.
18018 (grub_arch_modules_addr): New function.
18019 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18020 (grub_total_module_size): Likewise.
18021 Include grub/machine/kernel.h.
18022 (grub_arch_modules_addr): New function.
18023 * util/grub-emu.c (grub_end_addr): Remove variable.
18024 (grub_total_module_size): Likewise.
18025 (grub_arch_modules_addr): New function.
18026 * util/misc.c: Include unistd.h.
18027 (grub_util_get_fp_size): New function.
18028 (grub_util_read_at): Likewise.
18029 (grub_util_write_image_at): Likewise.
18030 (grub_util_read_image): Call grub_util_read_at.
18031 (grub_util_write_image): Call grub_util_write_image_at.
18032 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18033 additional memory in kernel_img for a struct grub_module_info.
18034 Fill in that grub_module_info.
18035 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18037 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18039 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18041 * include/grub/powerpc/ieee1275/ieee1275.h
18042 (grub_ieee1275_milliseconds): New prototype.
18043 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18045 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18046 grub_ieee1275_milliseconds.
18048 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18050 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18052 (find_options): New function.
18053 (cmain): Call find_options.
18054 * include/grub/powerpc/ieee1275/ieee1275.h
18055 (grub_ieee1275_realmode): New extern variable.
18056 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
18057 grub_map if grub_ieee1275_realmode is false.
18059 2004-12-29 Marco Gerards <metgerards@student.han.nl>
18061 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
18062 lines are inserted and make it work like readline. Reported by
18063 Vincent Pelletier <subdino2004@yahoo.fr>.
18065 2004-12-28 Marco Gerards <metgerards@student.han.nl>
18067 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
18069 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
18070 `kern/powerpc/cache.S'.
18072 2004-12-27 Marco Gerards <metgerards@student.han.nl>
18074 * genmk.rb: Handle the `Program' class in the main loop. Written
18075 by Johan Rydberg <jrydberg@gnu.org>.
18076 (Program): New class.
18077 (programs): New variable.
18078 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
18079 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
18080 instead of "grub/kernel.h". Include <grub/machine/init.h>.
18081 (help_arch): Function removed.
18082 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
18083 `powerpc/libgcc.h' and `loader.h'.
18084 (pkgdata_PROGRAMS): New variable.
18085 (sbin_UTILITIES): Variable removed.
18086 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
18087 (grubof_SOURCES): Variable re-defined so it only includes the
18088 core functionality.
18089 (grubof_CFLAGS): Remove `-DGRUBOF'.
18090 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
18091 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
18092 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
18093 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
18094 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
18095 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
18096 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
18097 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
18098 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
18099 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
18100 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
18101 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
18102 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
18103 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
18104 (pc_mod_CFLAGS): New variables.
18105 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
18106 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
18107 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
18108 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
18110 * include/grub/i386/pc/init.h (grub_os_area_addr)
18111 (rub_os_area_size): ... to here.
18112 * include/grub/powerpc/ieee1275/ieee1275.h
18113 (grub_ieee1275_entry_fn): Export symbol.
18114 * include/grub/powerpc/ieee1275/init.h: New file.
18115 * include/grub/powerpc/libgcc.h: Likewise.
18116 * include/grub/cache.h: Likewise.
18117 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
18118 <hollis@penguinppc.org>.
18119 * kern/dl.c: Include <grub/cache.h>.
18120 (grub_dl_flush_cache): New function.
18121 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
18123 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
18124 (grub_console_init): Removed prototypes.
18125 (grub_machine_init): Don't initialize the modules anymore.
18126 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
18128 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
18129 Macro undef removed.
18130 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
18131 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
18132 relocation `R_PPC_REL32'. Return an error when the relocation is
18134 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
18135 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
18136 * util/misc.c (grub_arch_sync_caches): Likewise.
18138 2004-12-19 Marco Gerards <metgerards@student.han.nl>
18140 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
18141 `symlist.c', add `grubof_symlist.c'.
18142 (symlist.c): Variable removed.
18143 (grubof_HEADERS): Variable added.
18144 (grubof_symlist.c): New target.
18145 (kernel_syms.lst): Use `grubof_HEADERS' instead of
18146 `kernel_img_HEADERS'.
18147 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
18148 * kern/powerpc/dl.c: New file.
18149 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
18151 (grub_arch_dl_relocate_symbols): Likewise.
18152 (grub_register_exported_symbols): Likewise.
18154 2004-12-13 Marco Gerards <metgerards@student.han.nl>
18156 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
18157 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
18158 to fail instead. Reported by Vincent Pelletier
18159 <subdino2004@yahoo.fr>.
18161 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
18162 it is not allocated. Reported by Vincent Pelletier
18163 <subdino2004@yahoo.fr>.
18165 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
18166 output so the output looks better.
18168 2004-12-04 Marco Gerards <metgerards@student.han.nl>
18170 Modulize the partition map support and add support for the amiga
18173 * commands/ls.c: Include <grub/partition.h> instead of
18174 <grub/machine/partition.h>.
18175 * kern/disk.c: Likewise.
18176 * kern/rescue.c: Likewise.
18177 * loader/i386/pc/chainloader.c: Likewise.
18178 * normal/cmdline.c: Likewise.
18179 * kern/powerpc/ieee1275/init.c: Likewise.
18180 (grub_machine_init): Call `grub_pc_partition_map_init',
18181 `grub_amiga_partition_map_init' and
18182 `grub_apple_partition_map_init'.
18183 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
18184 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
18185 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
18186 `partition.h' and `pc_partition.h'.
18187 (grub_setup_SOURCES): Remove
18188 `disk/i386/pc/partition.c'. Add `kern/partition.c',
18189 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18190 (grub_emu_SOURCES): Likewise.
18191 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
18192 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
18193 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
18194 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18195 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
18196 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18197 (grubof_SOURCES): Likewise.
18198 * disk/i386/pc/partition.c: File removed.
18199 * disk/powerpc/ieee1275/partition.c: Likewise.
18200 * include/grub/powerpc/ieee1275/partition.h: Likewise.
18201 * include/grub/i386/pc/partition.h: Likewise.
18202 * kern/partition.c: New file.
18203 * partmap/amiga.c: Likewise.
18204 * partmap/apple.c: Likewise.
18205 * partmap/pc.c: Likewise.
18206 * include/grub/partition.h: Likewise..
18207 * include/grub/pc_partition.h: Likewise.
18208 * util/grub-emu.c: Include <grub/partition.h> instead of
18209 <grub/machine/partition.h>.
18210 (main): Call `grub_pc_partition_map_init',
18211 `grub_amiga_partition_map_init' and
18212 `grub_apple_partition_map_init' and deinitialize afterwards.
18213 * util/i386/pc/biosdisk.c: Include `#include
18214 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18215 `<grub/machine/partition.h>'.
18216 * util/i386/pc/grub-setup.c: Likewise.
18217 * util/i386/pc/biosdisk.c: Likewise.
18218 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
18219 partition information in case of a PC partition.
18220 * util/i386/pc/grub-setup.c: Include `#include
18221 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18222 `<grub/machine/partition.h>'.
18223 (setup): Only access the PC specific partition information in case
18226 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
18228 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
18229 (grub_longjmp): Likewise.
18230 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
18232 * normal/powerpc/setjmp.S: New file.
18233 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18234 `normal/powerpc/setjmp.S'.
18235 (grubof_CFLAGS): Add `-DGRUBOF'.
18236 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
18237 [GRUB_UTIL && !GRUBOF].
18239 2004-11-16 Marco Gerards <metgerards@student.han.nl>
18241 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
18242 property named `name'. Correctly handle the error returned by
18243 `grub_ieee1275_finddevice' if a device can not be opened.
18245 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
18247 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
18248 `actual' for negativity.
18249 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18252 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18254 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
18255 (PAGE_OFFSET): New macro.
18256 (CRTC_ADDR_PORT): Likewise.
18257 (CRTC_DATA_PORT): Likewise.
18258 (START_ADDR_HIGH_REGISTER): Likewise.
18259 (START_ADDR_LOW_REGISTER): Likewise.
18260 (GRAPHICS_ADDR_PORT): Likewise.
18261 (GRAPHICS_DATA_PORT): Likewise.
18262 (READ_MAP_REGISTER): Likewise.
18263 (INPUT_STATUS1_REGISTER): Likewise.
18264 (INPUT_STATUS1_VERTR_BIT): Likewise.
18265 (page): New variable.
18266 (wait_vretrace): New function.
18267 (set_read_map): Likewise.
18268 (set_start_address): Likewise.
18269 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
18271 (check_vga_mem): Take the page into account.
18272 (write_char): Likewise.
18273 (write_cursor): Likewise.
18274 (scroll_up): Likewise. Copy the page to the page that is not
18275 shown and switch between both pages.
18276 (grub_vga_putchar): Fix off by one error.
18277 (grub_vga_cls): Wait for the vertical retrace. Take the page into
18280 2004-11-01 Marco Gerards <metgerards@student.han.nl>
18282 Add support for iso9660 (including rockridge).
18284 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18285 (iso9660_mod_SOURCES): New variable.
18286 (iso9660_mod_CFLAGS): Likewise.
18287 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
18288 * include/grub/fs.h (grub_iso9660_init): New prototype.
18289 * util/grub-emu.c (main): Call `grub_iso9660_init'.
18290 * fs/iso9660.c: New file.
18292 * include/grub/misc.h (grub_strncat): New prototype.
18293 * kern/misc.c (grub_strncat): New function.
18295 * fs/hfs.c (grub_hfs_mount): Translate the error
18296 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
18297 * fs/jfs.c (grub_jfs_mount): Likewise.
18298 * fs/ufs.c (grub_ufs_mount): Likewise.
18300 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
18302 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
18303 which initialized BAT registers.
18304 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
18305 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18307 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
18308 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
18310 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
18311 (grub_mapclaim): Likewise.
18312 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
18313 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
18316 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
18318 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
18319 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
18320 -ffreestanding and -msoft-float.
18322 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
18324 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
18325 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
18326 set in grub_ieee1275_flags.
18328 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
18330 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
18332 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
18333 grub_console_init first.
18334 Change the memory range used for grub_ieee1275_claim and
18335 grub_mm_init_region.
18336 Print an error message if the claim fails.
18337 Include <grub/misc.h>.
18339 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
18341 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
18342 Call grub_children_iterate for device nodes of type `scsi',
18344 (grub_ofdisk_open): Remove manual device alias resolution.
18345 Fix memory leak when device cannot be opened.
18346 * include/grub/powerpc/ieee1275/ieee1275.h
18347 (grub_children_iterate): New prototype.
18348 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
18350 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18351 Return -1 if args.size was -1.
18353 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18355 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
18356 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
18357 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
18358 Open Firmware's memory for it; claim memory from _start to _end.
18359 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
18360 (_end): New extern.
18361 (_start): Zero BSS from __bss_start to _end.
18362 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18364 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
18366 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
18368 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
18369 -1 if args.base was -1.
18371 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
18373 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
18374 escape sequence instead of a literal ^L. Also call
18375 grub_ofconsole_gotoxy.
18377 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
18379 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
18380 void * arguments to grub_addr_t. All callers updated. Also make
18381 the `result' argument optional.
18382 (grub_ieee1275_release): change void * arguments to grub_addr_t.
18383 All callers updated.
18385 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
18387 * commands/ls.c (grub_ls_list_files): Use the string following the
18388 initial ')', if present, as the filesystem path.
18389 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
18391 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
18393 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
18395 Make the source code of the menu interface more readable.
18397 * normal/menu.c: Include grub/mm.h.
18398 (TERM_WIDTH): New macro.
18399 (TERM_HEIGHT): Likewise.
18400 (TERM_INFO_HEIGHT): Likewise.
18401 (TERM_MARGIN): Likewise.
18402 (TERM_SCROLL_WIDTH): Likewise.
18403 (TERM_TOP_BORDER_Y): Likewise.
18404 (TERM_LEFT_BORDER_X): Likewise.
18405 (TERM_BORDER_WIDTH): Likewise.
18406 (TERM_MESSAGE_HEIGHT): Likewise.
18407 (TERM_BORDER_HEIGHT): Likewise.
18408 (TERM_NUM_ENTRIES): Likewise.
18409 (TERM_FIRST_ENTRY_Y): Likewise.
18410 (TERM_ENTRY_WIDTH): Likewise.
18411 (TERM_CURSOR_X): Likewise.
18412 (draw_border): Use macros instead of magic numbers.
18413 (print_entry): Likewise.
18414 (print_entries): Likewise.
18415 (run_menu): Likewise. Also, handle the key 'e'.
18416 (run_menu_entry): Ignore empty command lines.
18417 (print_message): Added a new argument EDIT. If EDIT is true,
18418 print a different message.
18419 (init_page): Likewise.
18420 (edit_menu_entry): New function. Not implemented yet.
18422 2004-09-17 Marco Gerards <metgerards@student.han.nl>
18424 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
18425 can be loaded from normal mode.
18427 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
18429 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
18430 (multiboot_mod_CFLAGS): New variables.
18431 * loader/i386/pc/linux_normal.c: New file.
18432 * loader/i386/pc/multiboot_normal.c: Likewise.
18434 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
18435 attribute `unused'.
18437 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
18438 `fdiro' to read the mode information from instead of `diro'.
18440 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
18441 looking up a symlink.
18443 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
18445 * normal/command.c (grub_command_execute): Don't parse the
18446 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
18447 flags of the command.
18449 * normal/menu.c (grub_menu_run): Fix typo.
18451 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
18453 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
18455 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
18456 `y + 1' instead of `y - 1'.
18458 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
18460 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
18462 From Hollis Blanchard <hollis@penguinppc.org>:
18463 * kern/misc.c (memmove): New alias for grub_memmove.
18464 (memcmp): New alias for grub_memcmp.
18465 (memset): New alias for grub_memset.
18466 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18467 Change "int handle" to "grub_ieee1275_phandle_t handle".
18468 * include/grub/powerpc/ieee1275/ieee1275.h
18469 (grub_ieee1275_get_property): Likewise.
18471 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
18473 Added normal mode command `chainloader' as module chain.mod, which
18474 depends on normal.mod and _chain.mod.
18476 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
18477 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
18478 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
18480 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
18481 but arguments parsing moved to ...
18482 (grub_chainloader_cmd): ... here. New function.
18483 * include/grub/i386/pc/chainloader.h: New file.
18484 * loader/i386/pc/chainloader_normal.c: Likewise.
18486 2004-09-11 Marco Gerards <metgerards@student.han.nl>
18488 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
18489 (grub_mkimage_LDFLAGS): Likewise.
18490 (grub_emu_SOURCES): Likewise.
18491 (kernel_img_HEADERS): Added fshelp.h.
18492 * fs/ext2.c: Include <grub/fshelp.h>.
18493 (FILETYPE_REG): New macro.
18494 (FILETYPE_INO_REG): Likewise.
18495 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
18497 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
18499 (grub_fshelp_node): New struct.
18500 (grub_ext2_data): Added member `diropen'. Changed member `inode'
18502 (grub_ext2_get_file_block): Removed function.
18503 (grub_ext2_read_block): New function.
18504 (grub_ext2_read_file): Replaced parameter `data' by `node'.
18505 This function was written.
18506 (grub_ext2_mount): Read the root inode. Create a diropen struct.
18507 (grub_ext2_find_file): Removed function.
18508 (grub_ext2_read_symlink): New function.
18509 (grub_ext2_iterate_dir): Likewise.
18510 (grub_ext2_open): Rewritten.
18511 (grub_ext2_dir): Rewritten.
18512 * include/grub/fshelp.h: New file.
18513 * fs/fshelp.c: Likewise.
18515 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
18517 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
18518 (print_message): Add a missing newline.
18519 (run_menu): Added timeout support.
18520 (run_menu_entry): New local function.
18521 (grub_menu_run): Added support for booting.
18523 * kern/loader.c (grub_loader_is_loaded): New function.
18525 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
18526 (grub_get_rtc): Exported.
18528 * include/grub/i386/pc/time.h: Include grub/symbol.h.
18529 (grub_get_rtc): Exported.
18531 * include/grub/normal.h (struct grub_command_list): Remove
18532 constant from the member `command'.
18534 * include/grub/loader.h (grub_loader_is_loaded): Declared.
18536 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
18538 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
18540 2004-08-28 Marco Gerards <metgerards@student.han.nl>
18542 Add support for the JFS filesystem.
18544 * fs/jfs.c: New file.
18545 * include/grub/fs.h (grub_jfs_init): New prototype.
18546 (grub_jfs_fini): New prototype.
18547 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
18548 (grub_emu_SOURCES): Likewise.
18549 (pkgdata_MODULES): Add jfs.mod.
18550 (jfs_mod_SOURCES): New variable.
18551 (jfs_mod_CFLAGS): Likewise.
18552 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
18553 (grubof_SOURCES): Likewise.
18554 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
18556 * fs/fat.c (grub_fat_find_dir): Convert the filename little
18557 endian to the host endian.
18558 (grub_fat_utf16_to_utf8): Move function from there...
18559 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
18560 the endianness of the source string anymore.
18561 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
18563 2004-08-24 Marco Gerards <metgerards@student.han.nl>
18565 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
18566 (grub_boot_fini) [GRUB_UTIL]: Likewise.
18567 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
18568 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
18570 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
18571 (grub_hfs_iterate_dir): Make the function static. Add prototypes
18572 for `node_found' and `it_dir'.
18573 (grub_hfs_dir): Add prototype for `dir_hook'.
18575 * fs/minix.c (grub_minix_get_file_block): Add prototype for
18576 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
18577 and `indir32' to silence a gcc warning.
18579 * include/grub/fs.h (grub_hfs_init): New prototype.
18580 (grub_hfs_fini): Likewise.
18583 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
18585 Each disk device has its own id now. This is useful to make use
18586 of multiple disk devices.
18588 * include/grub/disk.h (grub_disk_dev_id): New enum.
18589 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
18590 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
18592 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
18593 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
18595 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
18596 GRUB_DISK_DEVICE_OFDISK_ID as an id.
18598 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
18599 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
18601 * include/grub/disk.h (struct grub_disk_dev): Added a new member
18602 "id" which is used by the cache manager.
18604 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
18607 2004-08-18 Marco Gerards <metgerards@student.han.nl>
18609 * fs/hfs.c: New file.
18610 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
18611 (grub_emu_SOURCES): Likewise.
18612 (pkgdata_MODULES): Add hfs.mod.
18613 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
18614 (grubof_SOURCES): Likewise.
18615 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
18617 * include/grub/misc.h (grub_strncasecmp): Add prototype.
18618 * kern/misc.c (grub_strncasecmp): Add function.
18620 2004-08-14 Marco Gerards <metgerards@student.han.nl>
18622 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
18625 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
18626 (grub_ext2_dir): In case the directory entry type is unknown, read
18629 2004-08-02 Peter Bruin <pjbruin@dds.nl>
18631 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
18632 grub_load_linux instead of grub_rescue_cmd_linux as second
18633 argument of grub_rescue_register_command.
18635 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
18637 2004-07-27 Marco Gerards <metgerards@student.han.nl>
18639 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
18641 * commands/boot.c: Remove the check for `GRUB_UTIL'.
18642 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18643 `loader/powerpc/ieee1275/linux.c',
18644 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
18645 * include/grub/powerpc/ieee1275/ieee1275.h
18646 (grub_ieee1275_release): New prototype.
18647 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
18648 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
18649 normal, boot, linux and linux_normal.
18650 * loader/powerpc/ieee1275/linux.c: New file.
18651 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
18653 2004-07-12 Marco Gerards <metgerards@student.han.nl>
18655 * normal/arg.c (grub_arg_parse): Correct error handling after
18656 reallocating the argumentlist (check if `argl' is not null instead
18657 of checking if `args' is not null).
18658 * kern/mm.c (grub_realloc): Return the same pointer when using the
18659 same region, instead of returning the header address.
18661 2004-07-11 Marco Gerards <metgerards@student.han.nl>
18663 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
18664 one block instead of two when looking for the initial partition.
18665 (grub_partition_probe): Initialize the local variable `p' with 0.
18666 Use base 10 for the grub_strtoul call.
18667 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
18668 need for one local variable.
18669 (grub_strtoul): Don't add the new value to `num', instead of that
18672 2004-07-11 Marco Gerards <metgerards@student.han.nl>
18674 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
18675 (pxeboot_img_SOURCES): New variable.
18676 (pxeboot_img_ASFLAGS): Likewise.
18677 (pxeboot_img_LDFLAGS): Likewise.
18678 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
18679 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
18680 <lode_leroy@hotmail.com>.
18682 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
18684 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
18685 there was no input.
18687 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
18689 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
18690 the history buffer logic.
18692 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
18694 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
18695 (FILETYPE_INO_SYMLINK): New macros.
18696 (grub_ext2_find_file): Check if the node is a directory using the
18697 inode stat information instead of using the filetype in the
18698 dirent. Exclude the first character of an absolute symlink.
18699 (grub_ext2_dir): Mask out the filetype part of the mode member of
18702 2004-05-24 Marco Gerards <metgerards@student.han.nl>
18704 Add support for UFS version 1 and 2. Add support for the minix
18705 filesystem version 1 and 2, both the variants with 14 and 30 long
18708 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
18710 (grub_emu_SOURCES): Likewise.
18711 (pkgdata_MODULES): Add ufs.mod and minix.mod.
18712 (ufs_mod_SOURCES): New variable.
18713 (ufs_mod_CFLAGS): Likewise.
18714 (minix_mod_SOURCES): Likewise.
18715 (minix_mod_CFLAGS): Likewise.
18716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
18718 (grubof_SOURCES): Likewise.
18719 * fs/ufs.c: New file.
18720 * fs/minix.c: New file.
18721 * include/grub/fs.h (grub_ufs_init): New prototype.
18722 (grub_ufs_fini): Likewise.
18723 (grub_minix_init): Likewise.
18724 (grub_minix_fini): Likewise.
18725 * util/grub-emu.c (main): Initialize and deinitialize UFS and
18728 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
18730 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
18731 commands/ls.c, commands/terminal.c, commands/boot.c,
18732 commands/cmp.c and commands/cat.c.
18733 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
18735 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
18738 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
18740 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
18741 and grub_, respectively. Because the conversion is trivial and
18742 mechanical, I omit the details here. Please refer to the CVS
18743 if you need more information.
18745 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
18747 * include/pupa: Renamed to ...
18748 * include/grub: ... this.
18749 * util/i386/pc/pupa-mkimage.c: Renamed to ...
18750 * util/i386/pc/grub-mkimage.c: ... this.
18751 * util/i386/pc/pupa-setup.c: Renamed to ...
18752 * util/i386/pc/grub-setup.c: ... this.
18753 * util/pupa-emu.c: Renamed to ...
18754 * util/grub-emu.c: ... this.
18756 2004-03-29 Marco Gerards <metgerards@student.han.nl>
18758 Add support for the newworld apple macintosh (PPC). This has been
18759 tested on the powerbook 2000 only. It only adds support for
18760 generic ieee1275 functions, console and disk support. This should
18761 be easy to port to other architectures with support for Open
18764 * configure.ac: Accept the powerpc as host_cpu. In the case of
18765 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
18766 specific tests are only executed while building for the i386.
18767 Inverse test for crosscompile.
18768 * genmk.rb (Utility): Allow assembler files.
18769 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
18770 * conf/powerpc-ieee1275.rmk: New file.
18771 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
18772 * disk/powerpc/ieee1275/partition.c: Likewise.
18773 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
18774 * include/pupa/powerpc/ieee1275/console.h: Likewise.
18775 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
18776 * include/pupa/powerpc/ieee1275/time.h: Likewise.
18777 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
18778 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
18779 * include/pupa/powerpc/ieee1275/loader.h
18780 * include/pupa/powerpc/setjmp.h: Likewise.
18781 * include/pupa/powerpc/types.h: Likewise.
18782 * kern/powerpc/ieee1275/init.c: Likewise.
18783 * kern/powerpc/ieee1275/openfw.c: Likewise.
18784 * term/powerpc/ieee1275/ofconsole.c: Likewise.
18786 These files were written by Johan Rydberg
18787 (jrydberg@night.trouble.net) and I only modified them slightly.
18789 * boot/powerpc/ieee1275/cmain.c: New file.
18790 * boot/powerpc/ieee1275/crt0.S: Likewise.
18791 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
18792 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
18794 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
18796 * Makefile.in: Update copyright.
18797 * genmodsrc.sh: Likewise.
18798 * gensymlist.sh: Likewise.
18799 * term/i386/pc/vga.c: Indent correctly.
18801 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
18802 bugreporting address.
18803 * util/i386/pc/pupa-setup.c (usage): Likewise,
18804 (main): Call pupa_ext2_init and pupa_ext2_fini.
18806 * fs/fat.c (log2): Renamed to ...
18807 (fat_log2): ... this.
18808 All callers changed.
18809 * kern/misc.c (memcpy): Alias to pupa_memmove.
18810 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
18812 * util/console.c (pupa_ncurses_fini): Return 0.
18814 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
18815 Move fail label here.
18816 [__GNU__]: Don't warn when using stat.
18817 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
18818 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
18819 long int. Use strtol instead of strtoul.
18821 2004-03-14 Marco Gerards <metgerards@student.han.nl>
18823 * commands/boot.c: New file.
18824 * commands/cat.c: Likewise.
18825 * commands/cmp.c: Likewise.
18826 * commands/ls.c: Likewise.
18827 * commands/terminal.c: Likewise.
18828 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
18829 (pupa_register_command): Changed interface to match the new
18831 (pupa_command_execute): Changed (almost rewritten) so it uses
18832 pupa_split_command. Added support for setting variables using the
18834 (rescue_command): Changed to work with the new argument parser.
18835 (terminal_command): Moved from here to commands/terminal.c.
18836 (set_command): New function.
18837 (unset_command): New function.
18838 (insmod_command): New function.
18839 (rmmod_command): New function.
18840 (lsmod_command): New function.
18841 (pupa_command_init): Don't initialize the command terminal
18842 anymore. Initialize the commands set, unset, insmod, rmmod and
18844 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
18845 (kernel_img_HEADERS): Add arg.h and env.h.
18846 (pupa_mkimage_LDFLAGS): Add kern/env.c.
18847 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
18848 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
18850 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
18852 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
18853 (boot_mod_SOURCES): New variable.
18854 (terminal_mod_SOURCES): Likewise.
18855 (ls_mod_SOURCES): Likewise.
18856 (cmp_mod_SOURCES): Likewise.
18857 (cat_mod_SOURCES): Likewise.
18859 * normal/arg.c: New file.
18860 * kern/env.c: Likewise.
18861 * include/pupa/arg.h: Likewise.
18862 * include/pupa/env.h: Likewise.
18863 * font/manager.c (font_command): Changed to match argument parsing
18865 (PUPA_MOD_INIT): Likewise.
18866 * hello/hello.c (pupa_cmd_hello): Likewise.
18867 (PUPA_MOD_INIT): Likewise.
18868 * include/pupa/disk.h: Include <pupa/device.h>.
18869 (pupa_print_partinfo): New prototype.
18870 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
18871 (pupa_dl_get_prefix): Likewise.
18872 * include/pupa/misc.h: Include <pupa/err.h>.
18873 (pupa_isgraph): New prototype.
18874 (pupa_isdigit): Likewise.
18875 (pupa_split_cmdline): Likewise.
18876 * include/pupa/normal.h: Include <pupa/arg.h>.
18877 (pupa_command): Changed the prototype of the member `func' to
18878 match the argument parsing interface. Added member `options'.
18879 (pupa_register_command): Updated to match function.
18880 (pupa_arg_parse): New prototype.
18881 (pupa_hello_init) [PUPA_UTIL]: New prototype.
18882 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
18883 (pupa_ls_init) [PUPA_UTIL]: Likewise.
18884 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
18885 (pupa_cat_init) [PUPA_UTIL]: Likewise.
18886 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
18887 (pupa_boot_init) [PUPA_UTIL]: Likewise.
18888 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
18889 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
18890 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
18891 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
18892 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
18893 * kern/disk.c: Include <pupa/file.h>.
18894 (pupa_print_partinfo): New function.
18895 * kern/dl.c: Include <pupa/env.h>.
18896 (pupa_dl_dir): Variable removed.
18897 (pupa_dl_load): Use the environment variable `prefix' instead of
18898 the variable pupa_dl_dir.
18899 (pupa_dl_set_prefix): Function removed.
18900 (pupa_dl_get_prefix): Likewise.
18901 * kern/i386/pc/init.c: Include <pupa/env.h>.
18902 (pupa_machine_init): Use the environment variable `prefix' instead of
18903 using pupa_dl_set_prefix to set the prefix.
18904 * kern/main.c: Include <pupa/env.h>.
18905 (pupa_set_root_dev): Use the environment variable `prefix' instead of
18906 using pupa_dl_get_prefix to get the prefix.
18907 * kern/misc.c: Include <pupa/env.h>.
18908 (pupa_isdigit): New function.
18909 (pupa_isgraph): Likewise.
18910 (pupa_ftoa): Likewise.
18911 (pupa_vsprintf): Added support for printing values of the type
18912 `double'. Make it possible to format variable output when using
18913 formatting like `%1.2%f'.
18914 (pupa_split_cmdline): New function.
18915 * kern/rescue.c: Include <pupa/env.h>.
18916 (next_word): Removed function.
18917 (pupa_rescue_cmd_prefix): Likewise.
18918 (pupa_rescue_cmd_set): New function.
18919 (pupa_rescue_cmd_unset): New function.
18920 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
18921 split the command line instead of splitting it here. Added
18922 support for setting variables using the syntax `foo=bar'. Don't
18923 initialize the prefix command anymore. Initialized the set and
18925 * normal/cmdline.c: Include <pupa/env.h>.
18926 (pupa_tab_complete): Added prototypes for print_simple_completion,
18927 print_partition_completion, add_completion, iterate_commands,
18928 iterate_dev, iterate_part and iterate_dir. Moved code to print
18929 partition information from here to kern/disk.c.
18930 (pupa_cmdline_run): Don't check if the function exists anymore.
18931 * normal/main.c: Include <pupa/env.h>.
18932 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
18933 instead of using pupa_dl_get_prefix to get the prefix.
18934 * term/i386/pc/vga.c: Include <pupa/arg.h>.
18935 (check_vga_mem): Cast pointers to `void *' to silence a gcc
18937 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
18938 (pupa_vga_setcolor): Declare unused variables with `__attribute__
18939 ((unused))' to silence a gcc warning.
18940 (pupa_vga_setcolor): Likewise.
18941 (debug_command): Changed to match argument parsing
18943 * util/pupa-emu.c: Include <pupa/env.h>.
18944 (options): Added 0's for unused fields to silence a gcc warning.
18946 (main): Use the environment variable `prefix' instead of using
18947 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
18948 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
18951 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
18952 * util/misc.c: Include <malloc.h>.
18953 (pupa_malloc): Rewritten so errors are correctly reported.
18954 (pupa_realloc): Likewise.
18955 (pupa_memalign): Likewise.
18956 (pupa_mm_init_region): Declare unused variables with
18957 `__attribute__ ((unused))' to silence a gcc warning.
18958 * normal/i386/setjmp.S: Remove tab at the end of the file to
18959 silence a gcc warning.
18960 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
18961 variables with `__attribute__ ((unused))' to silence a gcc
18963 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
18964 local variable i unsigned to silence a gcc warning.
18966 * kern/term.c: Include <pupa/misc.h>.
18967 (pupa_more_lines): New variable.
18968 (pupa_more): Likewise.
18969 (pupa_putcode): When the pager is active pause at the end of every
18971 (pupa_set_more): New function.
18972 * include/pupa/term.h (pupa_set_more): New prototype.
18975 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
18977 Now this project is GRUB 2 rather than PUPA. The location of
18978 the CVS repository was moved to GRUB's.
18980 * configure.ac: Use bug-grub as the reporting address.
18981 Use GRUB instead of PUPA.
18982 Change the version number to 1.90.
18984 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
18986 * genkernsyms.sh: Updated copyright information.
18987 * genmk.rb: Likewise.
18988 * genmodsrc.sh: Likewise.
18989 * gensymlist.sh: Likewise.
18990 * boot/i386/pc/boot.S: Likewise.
18991 * boot/i386/pc/diskboot.S: Likewise.
18992 * disk/i386/pc/biosdisk.c: Likewise.
18993 * disk/i386/pc/partition.c: Likewise.
18994 * font/manager.c: Likewise.
18995 * fs/ext2.c: Likewise.
18996 * fs/fat.c: Likewise.
18997 * include/pupa/boot.h: Likewise.
18998 * include/pupa/device.h: Likewise.
18999 * include/pupa/disk.h: Likewise.
19000 * include/pupa/dl.h: Likewise.
19001 * include/pupa/elf.h: Likewise.
19002 * include/pupa/err.h: Likewise.
19003 * include/pupa/file.h: Likewise.
19004 * include/pupa/font.h: Likewise.
19005 * include/pupa/fs.h: Likewise.
19006 * include/pupa/kernel.h: Likewise.
19007 * include/pupa/loader.h: Likewise.
19008 * include/pupa/misc.h: Likewise.
19009 * include/pupa/mm.h: Likewise.
19010 * include/pupa/net.h: Likewise.
19011 * include/pupa/normal.h: Likewise.
19012 * include/pupa/rescue.h: Likewise.
19013 * include/pupa/setjmp.h: Likewise.
19014 * include/pupa/symbol.h: Likewise.
19015 * include/pupa/term.h: Likewise.
19016 * include/pupa/types.h: Likewise.
19017 * include/pupa/i386/setjmp.h: Likewise.
19018 * include/pupa/i386/types.h: Likewise.
19019 * include/pupa/i386/pc/biosdisk.h: Likewise.
19020 * include/pupa/i386/pc/boot.h: Likewise.
19021 * include/pupa/i386/pc/console.h: Likewise.
19022 * include/pupa/i386/pc/init.h: Likewise.
19023 * include/pupa/i386/pc/kernel.h: Likewise.
19024 * include/pupa/i386/pc/linux.h: Likewise.
19025 * include/pupa/i386/pc/loader.h: Likewise.
19026 * include/pupa/i386/pc/memory.h: Likewise.
19027 * include/pupa/i386/pc/multiboot.h: Likewise.
19028 * include/pupa/i386/pc/partition.h: Likewise.
19029 * include/pupa/i386/pc/time.h: Likewise.
19030 * include/pupa/i386/pc/vga.h: Likewise.
19031 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19032 * include/pupa/util/getroot.h: Likewise.
19033 * include/pupa/util/misc.h: Likewise.
19034 * include/pupa/util/resolve.h: Likewise.
19035 * kern/device.c: Likewise.
19036 * kern/disk.c: Likewise.
19037 * kern/dl.c: Likewise.
19038 * kern/err.c: Likewise.
19039 * kern/file.c: Likewise.
19040 * kern/fs.c: Likewise.
19041 * kern/loader.c: Likewise.
19042 * kern/main.c: Likewise.
19043 * kern/misc.c: Likewise.
19044 * kern/mm.c: Likewise.
19045 * kern/rescue.c: Likewise.
19046 * kern/term.c: Likewise.
19047 * kern/i386/dl.c: Likewise.
19048 * kern/i386/pc/init.c: Likewise.
19049 * kern/i386/pc/lzo1x.S: Likewise.
19050 * kern/i386/pc/startup.S: Likewise.
19051 * loader/i386/pc/chainloader.c: Likewise.
19052 * loader/i386/pc/linux.c: Likewise.
19053 * loader/i386/pc/multiboot.c: Likewise.
19054 * normal/cmdline.c: Likewise.
19055 * normal/command.c: Likewise.
19056 * normal/main.c: Likewise.
19057 * normal/menu.c: Likewise.
19058 * normal/i386/setjmp.S: Likewise.
19059 * term/i386/pc/console.c: Likewise.
19060 * term/i386/pc/vga.c: Likewise.
19061 * util/console.c: Likewise.
19062 * util/genmoddep.c: Likewise.
19063 * util/misc.c: Likewise.
19064 * util/pupa-emu.c: Likewise.
19065 * util/resolve.c: Likewise.
19066 * util/unifont2pff.rb: Likewise.
19067 * util/i386/pc/biosdisk.c: Likewise.
19068 * util/i386/pc/getroot.c: Likewise.
19069 * util/i386/pc/pupa-mkimage.c: Likewise.
19070 * util/i386/pc/pupa-setup.c: Likewise.
19072 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
19074 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
19075 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
19076 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
19077 reading and reset it after reading.
19078 (pupa_ext2_close): Return PUPA_ERR_NONE.
19080 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
19082 (struct linux_kernel_header): Add kernel_version and
19084 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
19085 pupa_file_read succeeds.
19086 (pupa_rescue_cmd_initrd): Implement.
19088 2003-12-03 Marco Gerards <metgerards@student.han.nl>
19090 * fs/ext2.c (pupa_ext2_label): New function.
19091 (pupa_ext2_fs): Added label.
19092 * fs/fat.c (pupa_fat_label): New function.
19093 (pupa_fat_fs): Added label.
19094 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
19096 * kern/misc.c (pupa_strndup): New function.
19097 * include/pupa/misc.h (pupa_strndup): New prototype.
19099 * include/pupa/normal.h: Include <pupa/err.h>.
19100 (pupa_set_history): New prototype.
19101 (pupa_iterate_commands): New prototype.
19102 * normal/cmdline.c: Include <pupa/machine/partition.h>,
19103 <pupa/disk.h>, <pupa/file.h>.
19104 (hist_size): New variable.
19105 (hist_lines): Likewise.
19106 (hist_end): Likewise.
19107 (hist_used): Likewise.
19108 (pupa_set_history): New function.
19109 (pupa_history_get): Likewise.
19110 (pupa_history_add): Likewise.
19111 (pupa_history_replace): Likewise.
19112 (pupa_tab_complete): Likewise.
19113 (pupa_cmdline_run): Added tab completion and history buffer. Tab
19114 completion shows partitionnames while completing partitions, this
19115 feature was suggested by Jeff Bailey.
19116 * normal/command.c (pupa_iterate_commands): New function.
19117 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
19118 (pupa_normal_init): Initialize history buffer.
19119 (PUPA_MOD_INIT): Likewise.
19120 (pupa_normal_fini): Free the history buffer.
19121 (PUPA_MOD_FINI): Likewise.
19123 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
19126 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
19127 * configure.ac [i386]: Check for regparam bug.
19128 (NESTED_FUNC_ATTR) [! i386]: Defined.
19130 2003-11-17 Marco Gerards <metgerards@student.han.nl>
19132 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
19133 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
19134 (pupa_emu_SOURCES): New variable.
19135 (pupa_emu_LDFLAGS): Likewise.
19136 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
19137 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
19138 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
19139 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19140 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
19141 (pupa_jmp_buf): New typedef.
19142 (pupa_setjmp) [PUPA_UTIL]: New macro.
19143 (pupa_longjmp) [PUPA_UTIL]: Likewise.
19144 * include/pupa/term.h (struct pupa_term): New member `refresh'.
19145 (pupa_refresh): New prototype.
19146 * include/pupa/util/getroot.h: New file.
19147 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
19149 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
19150 (pupa_rescue_cmd_cat): Likewise.
19151 (pupa_rescue_cmd_ls): Likewise.
19152 (pupa_rescue_cmd_testload): Likewise.
19153 (pupa_rescue_cmd_lsmod): Likewise.
19154 * normal/cmdline.c (pupa_cmdline_get): Likewise.
19155 * normal/menu.c (run_menu): Likewise.
19156 * kern/term.c (pupa_cls): Likewise.
19157 (pupa_refresh): New function.
19158 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
19159 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19160 * util/console.c: New file.
19162 * util/i386/pc/getroot.c: New file.
19163 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
19164 (pupa_putchar): New function.
19165 (pupa_refresh): Likewise.
19166 (xgetcwd): Function moved to ...
19167 (strip_extra_slashes): Likewise.
19168 (get_prefix): Likewise.
19169 * util/i386/pc/getroot.c: ... here.
19170 (find_root_device): Function moved and renamed to...
19171 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
19172 Changed all callers.
19173 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
19175 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
19176 Changed all callers.
19177 * util/misc.c (pupa_memalign): New function.
19178 (pupa_mm_init_region): Likewise.
19179 (pupa_register_exported_symbols): Likewise.
19180 (pupa_putchar): Function removed.
19181 * util/pupa-emu.c: New file.
19183 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
19185 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
19186 (_multiboot_mod_SOURCES): New variable.
19187 (_multiboot_mod_CFLAGS): Likewise.
19188 * loader/i386/pc/multiboot.c: New file.
19189 * include/pupa/i386/pc/multiboot.h: Likewise.
19190 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
19191 (pupa_multiboot_real_boot): New function.
19192 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
19193 (pupa_multiboot_real_boot): New prototype.
19194 (pupa_rescue_cmd_multiboot): Likewise
19195 (pupa_rescue_cmd_module): Likewise.
19197 * kern/loader.c (pupa_loader_set): Continue when
19198 pupa_loader_unload_func() fails.
19199 (pupa_loader_unset): New function.
19200 * include/pupa/loader.h (pupa_loader_unset): New prototype.
19202 * kern/misc.c (pupa_stpcpy): New function.
19203 * include/pupa/misc.h (pupa_stpcpy): New prototype.
19205 2003-11-12 Marco Gerards <metgerards@student.han.nl>
19207 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
19208 for available extensions.
19210 * include/pupa/i386/pc/time.h: New file.
19211 * kern/disk.c: Include <pupa/machine/time.h>.
19212 (PUPA_CACHE_TIMEOUT): New macro.
19213 (pupa_last_time): New variable.
19214 (pupa_disk_open): Flush the cache when there was a timeout.
19215 (pupa_disk_close): Reset the timer.
19216 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
19218 * util/misc.c: Include <sys/times.h>
19219 (pupa_get_rtc): New function.
19221 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
19223 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
19225 (pupa_ext2_get_file_block): Use blocks member.
19227 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
19228 first block. Return -1 instead of pupa_errno on error.
19230 2003-10-27 Marco Gerards <metgerards@student.han.nl>
19232 * README: In the pupa-mkimage example use _chain instead of chain
19233 and ext2 instead of fat.
19234 * TODO: Replace ext2fs with jfs as an example. Add an item for
19235 adding journal playback for ext2fs.
19236 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
19237 (pkgdata_MODULES): Added ext2.mod.
19238 (ext2_mod_SOURCES): New variable.
19239 (ext2_mod_CFLAGS): Likewise.
19240 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
19241 * include/pupa/misc.h (pupa_strncpy): New prototype.
19242 (pupa_strcat): Likewise.
19243 (pupa_strncmp): Likewise.
19244 * kern/misc.c (pupa_strcat): Enable function.
19245 (pupa_strncpy): New function.
19246 (pupa_strncmp): Likewise.
19247 * fs/ext2.c: New file.
19249 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
19250 when the read failed before retrying.
19251 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
19252 (_FILE_OFFSET_BITS): Likewise.
19253 * configure.ac: Added AC_SYS_LARGEFILE.
19255 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19257 * genmk.rb (PModule#rule): Make sure to get only symbol names
19258 from the output of nm.
19259 Reported by Robert Millan <zeratul2@wanadoo.es>.
19261 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
19263 I forgot to check in these changes for a long time. This adds
19264 incomplete support for VGA console, and this is still very
19265 buggy. Also, a lot of consideration is required for I18N,
19266 UNICODE, and VGA font issues. Therefore, assume that this is
19267 such that "better than nothing".
19269 * font/manager.c: New file.
19270 * include/pupa/font.h: Likewise.
19271 * include/pupa/i386/pc/vga.h: Likewise.
19272 * term/i386/pc/vga.c: Likewise.
19273 * util/unifont2pff.rb: Likewise.
19275 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
19276 (pkgdata_MODULES): Added vga.mod and font.mod.
19277 (vga_mod_SOURCES): New variables.
19278 (vga_mod_CFLAGS): Likewise.
19279 (font_mod_SOURCES): Likewise.
19280 (font_mod_CFLAGS): Likewise.
19282 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
19284 * include/pupa/term.h: Include pupa/err.h.
19285 (struct pupa_term): Added init and fini.
19286 Changed the argument of putchar to pupa_uint32_t.
19288 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
19289 (pupa_console_real_putchar): New prototype.
19290 (pupa_console_putchar): Removed.
19291 (pupa_console_checkkey): Exported.
19292 (pupa_console_getkey): Likewise.
19294 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
19297 * kern/term.c (pupa_term_set_current): Rewritten.
19298 (pupa_putchar): Likewise.
19299 (pupa_putcode): New function.
19301 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
19302 (pupa_console_real_putchar): ... this.
19303 (pupa_vga_set_mode): New function.
19304 (pupa_vga_get_font): Likewise.
19306 * normal/command.c: Include pupa/term.h.
19307 (terminal_command): New function.
19308 (pupa_command_init): Register the command "terminal".
19310 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
19311 (DISP_UP): Likewise.
19312 (DISP_RIGHT): Likewise.
19313 (DISP_DOWN): Likewise.
19314 (DISP_HLINE): Likewise.
19315 (DISP_VLINE): Likewise.
19316 (DISP_UL): Likewise.
19317 (DISP_UR): Likewise.
19318 (DISP_LL): Likewise.
19319 (DISP_LR): Likewise.
19321 * term/i386/pc/console.c (pupa_console_putchar): New function.
19323 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
19325 * util/resolve.c (pupa_util_resolve_dependencies): BUG
19326 FIX. Reverse the path_list.
19328 * include/pupa/normal.h: Export pupa_register_command and
19329 pupa_unregister_command.
19331 * hello/hello.c (pupa_cmd_hello): New module.
19332 * conf/i386-pc.rmk: Added hello.mod.
19334 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
19336 * kern/i386/pc/lzo1x.S: New file.
19338 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
19339 (compress_kernel): New variable.
19340 (generate_image): Heavily modified to support compressing a
19341 large part of the core image.
19343 * util/misc.c (pupa_util_read_image): Fix a file descriptor
19345 (pupa_util_load_image): New function.
19347 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
19348 (pupa_compressed_size): New variable.
19349 (codestart): Enable Gate A20 here.
19350 Decompress the compressed part of the core image.
19351 Rearrange the code to put functions and variables which are
19352 required for initialization in the non-compressed part.
19355 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
19358 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
19360 * include/pupa/i386/pc/kernel.h
19361 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
19362 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
19363 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19364 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19365 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
19367 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
19369 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
19370 (Utility#rule): Likewise.
19372 * configure.ac: Check if LZO is available.
19374 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
19376 * include/pupa/normal.h: New file.
19377 * include/pupa/setjmp.h: Likewise.
19378 * include/pupa/i386/setjmp.h: Likewise.
19379 * normal/cmdline.c: Likewise.
19380 * normal/command.c: Likewise.
19381 * normal/main.c: Likewise.
19382 * normal/menu.c: Likewise.
19383 * normal/i386/setjmp.S: Likewise.
19385 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
19386 (pupa_rescue_cmd_initrd): Likewise.
19388 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
19391 * kern/i386/pc/startup.S (translation_table): New variable.
19392 (translate_keycode): New function.
19393 (pupa_console_getkey): Call translate_keycode.
19395 * kern/rescue.c (attempt_normal_mode): New function.
19396 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
19397 it failed, print a message.
19399 * kern/mm.c (pupa_real_malloc): Print more information when a
19400 free magic is broken.
19401 (pupa_free): If the first free header is not free actually, set
19404 * kern/main.c (pupa_load_normal_mode): Just load the module
19406 (pupa_main): Don't print the message
19407 "Entering into rescue mode..." here.
19409 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
19411 (pupa_rescue_cmd_initrd): Likewise.
19412 (pupa_rescue_cmd_initrd): Likewise.
19414 * include/pupa/symbol.h (FUNCTION): Specify the type.
19415 (VARIABLE): Likewise.
19417 * include/pupa/err.h (pupa_err_t): Added
19418 PUPA_ERR_UNKNOWN_COMMAND.
19420 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
19421 (pupa_dl_get_prefix): Likewise.
19423 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
19424 Added _chain.mod and _linux.mod instead of chain.mod and
19426 (chain_mod_SOURCES): Renamed to ...
19427 (_chain_mod_SOURCES): ... this.
19428 (chain_mod_CFLAGS): Renamed to ...
19429 (_chain_mod_CFLAGS): ... this.
19430 (linux_mod_SOURCES): Renamed to ...
19431 (_linux_mod_SOURCES): ... this.
19432 (linux_mod_CFLAGS): Renamed to ...
19433 (_linux_mod_CFLAGS): ... this.
19434 (normal_mod_SOURCES): New variable.
19435 (normal_mod_CFLAGS): Likewise.
19436 (normal_mod_ASFLAGS): Likewise.
19438 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
19440 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
19443 * kern/dl.c (pupa_dl_ref): Refer depending modules
19445 (pupa_dl_unref): Unrefer depending modules recursively.
19446 Don't call pupa_dl_unload implicitly, because PUPA can crash if
19447 a module is unloaded before one depending on that module is
19449 (pupa_dl_unload): Unload depending modules explicitly,
19452 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
19454 * include/pupa/i386/pc/linux.h: New file.
19455 * loader/i386/pc/linux.c: Likewise.
19457 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
19459 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
19460 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
19461 of PUPA_CHAINLOADER_BOOT_SECTOR.
19463 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
19464 (pupa_linux_prot_size): New variable.
19465 (pupa_linux_tmp_addr): Likewise.
19466 (pupa_linux_real_addr): Likewise.
19467 (pupa_linux_boot_zimage): New function.
19468 (pupa_linux_boot_bzimage): Likewise.
19470 * kern/i386/pc/init.c (struct mem_region): New structure.
19471 (MAX_REGIONS): New macro.
19472 (mem_regions): New variable.
19473 (num_regions): Likewise.
19474 (pupa_os_area_addr): Likewise.
19475 (pupa_os_area_size): Likewise.
19476 (pupa_lower_mem): Likewise.
19477 (pupa_upper_mem): Likewise.
19478 (add_mem_region): New function.
19479 (compact_mem_regions): Likewise.
19480 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
19481 the size of the conventional memory and that of so-called upper
19482 memory (before the first memory hole).
19483 Instead of adding each found region to free memory, use
19484 add_mem_region and add them after removing overlaps.
19485 Also, add only 1/4 of the upper memory to free memory. The rest
19486 is used for loading OS images. Maybe this is ad hoc, but this
19487 makes it much easier to relocate OS images when booting.
19489 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
19490 (pupa_enter_rescue_mode): Don't register initrd and module.
19492 * kern/mm.c: Include pupa/dl.h.
19494 * kern/main.c: Include pupa/file.h and pupa/device.h.
19496 * kern/loader.c (pupa_loader_load_module_func): Removed.
19497 (pupa_loader_load_module): Likewise.
19499 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
19502 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
19503 (pupa_linux_tmp_addr): Likewise.
19504 (pupa_linux_real_addr): Likewise.
19505 (pupa_linux_boot_zimage): Likewise.
19506 (pupa_linux_boot_bzimage): Likewise.
19508 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
19509 (pupa_upper_mem): Likewise.
19510 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
19511 module is too dangerous.
19513 * include/pupa/loader.h (pupa_os_area_addr): Declared.
19514 (pupa_os_area_size): Likewise.
19515 (pupa_loader_set): Remove the first argument. Loader doesn't
19516 manage modules or initrd any longer.
19517 (pupa_loader_load_module): Removed.
19519 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
19520 (linux_mod_SOURCES): New variable.
19521 (linux_mod_CFLAGS): Likewise.
19523 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
19525 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
19526 the length of a blocklist correctly.
19528 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
19529 Use ioctl only if the OS file is a block device.
19530 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
19531 not very useful for normal files.
19533 * kern/main.c (pupa_set_root_dev): New function.
19534 (pupa_load_normal_mode): Likewise.
19535 (pupa_main): Call those above.
19537 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
19540 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
19542 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19544 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
19545 (setup): Configure the installed partition information and the
19548 * loader/i386/pc/chainloader.c (my_mod): New variable.
19549 (pupa_chainloader_unload): New function.
19550 (pupa_rescue_cmd_chainloader): Refer itself.
19551 (PUPA_MOD_INIT): Save its own module in MY_MOD.
19553 * kern/i386/pc/startup.S (install_partition): Removed.
19554 (version_string): Likewise.
19555 (config_file): Likewise.
19556 (pupa_install_dos_part): New variable.
19557 (pupa_install_bsd_part): Likewise.
19558 (pupa_prefix): Likewise.
19559 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
19561 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
19563 (make_install_device): New function.
19564 (pupa_machine_init): Set the dl prefix.
19566 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
19567 (buf): Renamed to ...
19568 (linebuf): ... this.
19569 (pupa_rescue_cmd_prefix): New function.
19570 (pupa_rescue_cmd_insmod): Likewise.
19571 (pupa_rescue_cmd_rmmod): Likewise.
19572 (pupa_rescue_cmd_lsmod): Likewise.
19573 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
19576 * kern/mm.c (pupa_memalign): If failed even after invalidating
19577 disk caches, unload unneeded modules and retry.
19579 * kern/misc.c (pupa_memmove): New function.
19580 (pupa_memcpy): Removed.
19581 (pupa_strcpy): New function.
19582 (pupa_itoa): Made static.
19584 * kern/dl.c (pupa_dl_iterate): New function.
19585 (pupa_dl_ref): Likewise.
19586 (pupa_dl_unref): Likewise.
19587 (pupa_dl_unload): Return if succeeded or not.
19588 (pupa_dl_unload_unneeded): New function.
19589 (pupa_dl_unload_all): Likewise.
19590 (pupa_dl_init): Renamed to ...
19591 (pupa_dl_set_prefix): ... this.
19592 (pupa_dl_get_prefix): New function.
19594 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
19595 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
19596 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
19597 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
19598 (pupa_install_dos_part): Declared.
19599 (pupa_install_bsd_part): Likewise.
19600 (pupa_prefix): Likewise.
19601 (pupa_boot_drive): Likewise.
19603 * include/pupa/types.h: Fix a typo.
19605 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
19607 (pupa_memmove): Declared.
19608 (pupa_strcpy): Likewise.
19610 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
19611 pupa_mod_init takes one argument, its own module.
19612 (pupa_dl_unload_unneeded): Declared.
19613 (pupa_dl_unload_all): Likewise.
19614 (pupa_dl_ref): Likewise.
19615 (pupa_dl_unref): Likewise.
19616 (pupa_dl_iterate): Likewise.
19617 (pupa_dl_init): Renamed to ...
19618 (pupa_dl_set_prefix): ... this.
19619 (pupa_dl_get_prefix): Declared.
19621 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
19622 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
19624 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
19625 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
19627 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
19628 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
19630 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
19632 * util/i386/pc/pupa-setup.c (setup): Define the internal
19633 function find_first_partition_start at the top level, because GCC
19634 3.0.x cannot compile internal functions in deeper scopes
19636 (find_root_device): Use lstat instead of stat.
19637 Don't follow symbolic links.
19638 Fix the path-constructing code.
19640 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
19641 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
19642 by a BLKGETSIZE ioctl first, because block devices don't fill
19643 the member st_mode of the structure stat on Linux.
19644 [__linux__] (linux_find_partition): Use a temporary buffer
19645 REAL_DEV for the working space. Copy it to DEV before returning.
19646 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
19647 buffer cache consistent.
19648 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
19649 strncmp. The previous value was merely wrong.
19650 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
19652 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
19653 FAT size is 12. The previous value was merely wrong.
19655 * kern/main.c (pupa_main): Don't split the starting message from
19658 * kern/term.c (pupa_putchar): Put CR after LF instead of before
19659 LF, because BIOS goes crazy about character attributes in this
19662 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
19664 * include/i386/pc/util/biosdisk.h: New file.
19665 * util/i386/pc/biosdisk.c: Likewise.
19666 * util/i386/pc/pupa-setup.c: Likewise.
19668 * Makefile.in (INCLUDE_DISTFILES): Added
19669 include/pupa/i386/pc/util/biosdisk.h.
19670 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
19671 directory util/i386/pc.
19672 (install-local): Added a rule for sbin_UTILITIES.
19673 (uninstall): Likewise.
19675 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
19677 * util/misc.c (xrealloc): New function.
19678 (pupa_malloc): Likewise.
19679 (pupa_free): Likewise.
19680 (pupa_realloc): Likewise.
19681 (pupa_stop): Likewise.
19682 (pupa_putchar): Likewise.
19684 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
19686 * include/pupa/util/misc.h (xrealloc): Declared.
19688 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
19690 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
19691 (PUPA_BOOT_MACHINE_BPB_END): ... this.
19693 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
19694 [PUPA_UTIL] (pupa_fat_fini): Likewise.
19696 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
19697 way should be implemented.
19698 [PUPA_UTIL] (pupa_fat_fini): Likewise.
19700 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
19701 the size of NAME for safety.
19702 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
19705 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
19706 (pupa_setup_SOURCES): Likewise.
19708 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
19710 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
19712 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
19713 bunch of pushl's from pusha, because this destroys the return
19716 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
19718 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
19719 This means that any missing prototypes could be fatal. Also, you
19720 must take care when writing assembly code. See the comments at
19721 the beginning of startup.S, for more details.
19723 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
19724 compilation mechanism.
19725 (pupa_chainloader_real_boot): Likewise.
19726 (pupa_biosdisk_rw_int13_extensions): Likewise.
19727 (pupa_biosdisk_rw_standard): Likewise.
19728 (pupa_biosdisk_check_int13_extensions): Likewise.
19729 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
19730 (pupa_biosdisk_get_diskinfo_standard): Likewise.
19731 (pupa_get_memsize): Likewise.
19732 (pupa_get_mmap_entry): Likewise.
19733 (pupa_console_putchar): Likewise.
19734 (pupa_console_setcursor): Likewise.
19735 (pupa_getrtsecs): Use pushl instead of push.
19737 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
19738 memory instead of the stack for a mmap entry, because some
19739 BIOSes may ignore the maximum size and overflow.
19741 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
19743 * genmk.rb (PModule#rule): Compile automatically generated
19744 sources with module-specific CFLAGS as well as other sources.
19746 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
19748 * configure.ac: Check ld.
19749 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
19750 respectively, before checking endianness and sizes.
19752 * Makefile.in (LD): New variable.
19754 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
19756 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
19758 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
19760 * Changelog: New file.